[RS6000] fix rtl-checking internal compiler error
[official-gcc.git] / liboffloadmic / configure
blobebb60f6cffbc8460ec0ab0796b4bbcac512e5969
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for MIC Offload Runtime Library 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='MIC Offload Runtime Library'
558 PACKAGE_TARNAME='liboffloadmic'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='MIC Offload Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 enable_option_checking=no
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 link_offloadmic_target
606 link_offloadmic_host
607 lt_cv_dlopen_libs
608 toolexeclibdir
609 toolexecdir
610 CXXCPP
611 OTOOL64
612 OTOOL
613 LIPO
614 NMEDIT
615 DSYMUTIL
616 RANLIB
618 OBJDUMP
619 LN_S
621 ac_ct_DUMPBIN
622 DUMPBIN
624 FGREP
626 LIBTOOL
627 LIBOFFLOADMIC_HOST_FALSE
628 LIBOFFLOADMIC_HOST_TRUE
629 EGREP
630 GREP
632 ALLOCA
633 subdirs
634 multi_basedir
635 am__fastdepCXX_FALSE
636 am__fastdepCXX_TRUE
637 CXXDEPMODE
638 ac_ct_CXX
639 CXXFLAGS
641 am__fastdepCC_FALSE
642 am__fastdepCC_TRUE
643 CCDEPMODE
644 am__nodep
645 AMDEPBACKSLASH
646 AMDEP_FALSE
647 AMDEP_TRUE
648 am__quote
649 am__include
650 DEPDIR
651 OBJEXT
652 EXEEXT
653 ac_ct_CC
654 CPPFLAGS
655 LDFLAGS
656 CFLAGS
658 MAINT
659 MAINTAINER_MODE_FALSE
660 MAINTAINER_MODE_TRUE
661 am__untar
662 am__tar
663 AMTAR
664 am__leading_dot
665 SET_MAKE
667 mkdir_p
668 MKDIR_P
669 INSTALL_STRIP_PROGRAM
670 STRIP
671 install_sh
672 MAKEINFO
673 AUTOHEADER
674 AUTOMAKE
675 AUTOCONF
676 ACLOCAL
677 VERSION
678 PACKAGE
679 CYGPATH_W
680 am__isrc
681 INSTALL_DATA
682 INSTALL_SCRIPT
683 INSTALL_PROGRAM
684 target_os
685 target_vendor
686 target_cpu
687 target
688 host_os
689 host_vendor
690 host_cpu
691 host
692 build_os
693 build_vendor
694 build_cpu
695 build
696 target_alias
697 host_alias
698 build_alias
699 LIBS
700 ECHO_T
701 ECHO_N
702 ECHO_C
703 DEFS
704 mandir
705 localedir
706 libdir
707 psdir
708 pdfdir
709 dvidir
710 htmldir
711 infodir
712 docdir
713 oldincludedir
714 includedir
715 localstatedir
716 sharedstatedir
717 sysconfdir
718 datadir
719 datarootdir
720 libexecdir
721 sbindir
722 bindir
723 program_transform_name
724 prefix
725 exec_prefix
726 PACKAGE_URL
727 PACKAGE_BUGREPORT
728 PACKAGE_STRING
729 PACKAGE_VERSION
730 PACKAGE_TARNAME
731 PACKAGE_NAME
732 PATH_SEPARATOR
733 SHELL'
734 ac_subst_files=''
735 ac_user_opts='
736 enable_option_checking
737 enable_maintainer_mode
738 enable_dependency_tracking
739 enable_multilib
740 enable_version_specific_runtime_libs
741 enable_shared
742 enable_static
743 with_pic
744 enable_fast_install
745 with_gnu_ld
746 enable_libtool_lock
748 ac_precious_vars='build_alias
749 host_alias
750 target_alias
752 CFLAGS
753 LDFLAGS
754 LIBS
755 CPPFLAGS
757 CXXFLAGS
760 CXXCPP'
761 ac_subdirs_all='plugin'
763 # Initialize some variables set by options.
764 ac_init_help=
765 ac_init_version=false
766 ac_unrecognized_opts=
767 ac_unrecognized_sep=
768 # The variables have the same names as the options, with
769 # dashes changed to underlines.
770 cache_file=/dev/null
771 exec_prefix=NONE
772 no_create=
773 no_recursion=
774 prefix=NONE
775 program_prefix=NONE
776 program_suffix=NONE
777 program_transform_name=s,x,x,
778 silent=
779 site=
780 srcdir=
781 verbose=
782 x_includes=NONE
783 x_libraries=NONE
785 # Installation directory options.
786 # These are left unexpanded so users can "make install exec_prefix=/foo"
787 # and all the variables that are supposed to be based on exec_prefix
788 # by default will actually change.
789 # Use braces instead of parens because sh, perl, etc. also accept them.
790 # (The list follows the same order as the GNU Coding Standards.)
791 bindir='${exec_prefix}/bin'
792 sbindir='${exec_prefix}/sbin'
793 libexecdir='${exec_prefix}/libexec'
794 datarootdir='${prefix}/share'
795 datadir='${datarootdir}'
796 sysconfdir='${prefix}/etc'
797 sharedstatedir='${prefix}/com'
798 localstatedir='${prefix}/var'
799 includedir='${prefix}/include'
800 oldincludedir='/usr/include'
801 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
802 infodir='${datarootdir}/info'
803 htmldir='${docdir}'
804 dvidir='${docdir}'
805 pdfdir='${docdir}'
806 psdir='${docdir}'
807 libdir='${exec_prefix}/lib'
808 localedir='${datarootdir}/locale'
809 mandir='${datarootdir}/man'
811 ac_prev=
812 ac_dashdash=
813 for ac_option
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\$ac_option
818 ac_prev=
819 continue
822 case $ac_option in
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 *) ac_optarg=yes ;;
825 esac
827 # Accept the important Cygnus configure options, so we can diagnose typos.
829 case $ac_dashdash$ac_option in
831 ac_dashdash=yes ;;
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 ac_prev=bindir ;;
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 bindir=$ac_optarg ;;
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
850 --config-cache | -C)
851 cache_file=config.cache ;;
853 -datadir | --datadir | --datadi | --datad)
854 ac_prev=datadir ;;
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
865 -disable-* | --disable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
874 "enable_$ac_useropt"
875 "*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=no ;;
881 -docdir | --docdir | --docdi | --doc | --do)
882 ac_prev=docdir ;;
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 docdir=$ac_optarg ;;
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 ac_prev=dvidir ;;
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 dvidir=$ac_optarg ;;
891 -enable-* | --enable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
900 "enable_$ac_useropt"
901 "*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=\$ac_optarg ;;
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
914 exec_prefix=$ac_optarg ;;
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
918 with_gas=yes ;;
920 -help | --help | --hel | --he | -h)
921 ac_init_help=long ;;
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
927 -host | --host | --hos | --ho)
928 ac_prev=host_alias ;;
929 -host=* | --host=* | --hos=* | --ho=*)
930 host_alias=$ac_optarg ;;
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 ac_prev=htmldir ;;
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 | --ht=*)
936 htmldir=$ac_optarg ;;
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
943 includedir=$ac_optarg ;;
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 ac_prev=infodir ;;
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948 infodir=$ac_optarg ;;
950 -libdir | --libdir | --libdi | --libd)
951 ac_prev=libdir ;;
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
953 libdir=$ac_optarg ;;
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
960 libexecdir=$ac_optarg ;;
962 -localedir | --localedir | --localedi | --localed | --locale)
963 ac_prev=localedir ;;
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
967 -localstatedir | --localstatedir | --localstatedi | --localstated \
968 | --localstate | --localstat | --localsta | --localst | --locals)
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972 localstatedir=$ac_optarg ;;
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 ac_prev=mandir ;;
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977 mandir=$ac_optarg ;;
979 -nfp | --nfp | --nf)
980 # Obsolete; use --without-fp.
981 with_fp=no ;;
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c | -n)
985 no_create=yes ;;
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 no_recursion=yes ;;
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998 oldincludedir=$ac_optarg ;;
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 ac_prev=prefix ;;
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003 prefix=$ac_optarg ;;
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010 program_prefix=$ac_optarg ;;
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017 program_suffix=$ac_optarg ;;
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
1034 program_transform_name=$ac_optarg ;;
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 ac_prev=pdfdir ;;
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1041 -psdir | --psdir | --psdi | --psd | --ps)
1042 ac_prev=psdir ;;
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 psdir=$ac_optarg ;;
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 silent=yes ;;
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 ac_prev=sbindir ;;
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 | --sbi=* | --sb=*)
1054 sbindir=$ac_optarg ;;
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1059 | --sha | --sh)
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 | --sha=* | --sh=*)
1065 sharedstatedir=$ac_optarg ;;
1067 -site | --site | --sit)
1068 ac_prev=site ;;
1069 -site=* | --site=* | --sit=*)
1070 site=$ac_optarg ;;
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 ac_prev=srcdir ;;
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075 srcdir=$ac_optarg ;;
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082 sysconfdir=$ac_optarg ;;
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1085 ac_prev=target_alias ;;
1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087 target_alias=$ac_optarg ;;
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 verbose=yes ;;
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1095 -with-* | --with-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "with_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval with_$ac_useropt=\$ac_optarg ;;
1111 -without-* | --without-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1120 "with_$ac_useropt"
1121 "*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=no ;;
1127 --x)
1128 # Obsolete; use --with-x.
1129 with_x=yes ;;
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136 x_includes=$ac_optarg ;;
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143 x_libraries=$ac_optarg ;;
1145 -*) as_fn_error "unrecognized option: \`$ac_option'
1146 Try \`$0 --help' for more information."
1149 *=*)
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 case $ac_envvar in #(
1153 '' | [0-9]* | *[!_$as_cr_alnum]* )
1154 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1155 esac
1156 eval $ac_envvar=\$ac_optarg
1157 export $ac_envvar ;;
1160 # FIXME: should be removed in autoconf 3.0.
1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167 esac
1168 done
1170 if test -n "$ac_prev"; then
1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172 as_fn_error "missing argument to $ac_option"
1175 if test -n "$ac_unrecognized_opts"; then
1176 case $enable_option_checking in
1177 no) ;;
1178 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1180 esac
1183 # Check all directory arguments for consistency.
1184 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
1189 eval ac_val=\$$ac_var
1190 # Remove trailing slashes.
1191 case $ac_val in
1192 */ )
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
1195 esac
1196 # Be sure to have absolute directory names.
1197 case $ac_val in
1198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200 esac
1201 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1202 done
1204 # There might be people who depend on the old broken behavior: `$host'
1205 # used to hold the argument of --host etc.
1206 # FIXME: To remove some day.
1207 build=$build_alias
1208 host=$host_alias
1209 target=$target_alias
1211 # FIXME: To remove some day.
1212 if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
1215 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1216 If a cross compiler is detected then cross compile mode will be used." >&2
1217 elif test "x$build_alias" != "x$host_alias"; then
1218 cross_compiling=yes
1222 ac_tool_prefix=
1223 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1225 test "$silent" = yes && exec 6>/dev/null
1228 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229 ac_ls_di=`ls -di .` &&
1230 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231 as_fn_error "working directory cannot be determined"
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 as_fn_error "pwd does not report name of working directory"
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$as_myself" ||
1241 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$as_myself" : 'X\(//\)[^/]' \| \
1243 X"$as_myself" : 'X\(//\)$' \| \
1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245 $as_echo X"$as_myself" |
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 s//\1/
1250 /^X\(\/\/\)[^/].*/{
1251 s//\1/
1254 /^X\(\/\/\)$/{
1255 s//\1/
1258 /^X\(\/\).*/{
1259 s//\1/
1262 s/.*/./; q'`
1263 srcdir=$ac_confdir
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 srcdir=..
1267 else
1268 ac_srcdir_defaulted=no
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275 ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1277 pwd)`
1278 # When building in place, set srcdir=.
1279 if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 srcdir=.
1282 # Remove unnecessary trailing slashes from srcdir.
1283 # Double slashes in file names in object file debugging info
1284 # mess up M-x gdb in Emacs.
1285 case $srcdir in
1286 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287 esac
1288 for ac_var in $ac_precious_vars; do
1289 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_${ac_var}_value=\$${ac_var}
1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293 done
1296 # Report the --help message.
1298 if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
1301 cat <<_ACEOF
1302 \`configure' configures MIC Offload Runtime Library 1.0 to adapt to many kinds of systems.
1304 Usage: $0 [OPTION]... [VAR=VALUE]...
1306 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307 VAR=VALUE. See below for descriptions of some of the useful variables.
1309 Defaults for the options are specified in brackets.
1311 Configuration:
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1322 Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
1324 [$ac_default_prefix]
1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1326 [PREFIX]
1328 By default, \`make install' will install all the files in
1329 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331 for instance \`--prefix=\$HOME'.
1333 For better control, use the options below.
1335 Fine tuning of the installation directories:
1336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
1350 --docdir=DIR documentation root [DATAROOTDIR/doc/liboffloadmic]
1351 --htmldir=DIR html documentation [DOCDIR]
1352 --dvidir=DIR dvi documentation [DOCDIR]
1353 --pdfdir=DIR pdf documentation [DOCDIR]
1354 --psdir=DIR ps documentation [DOCDIR]
1355 _ACEOF
1357 cat <<\_ACEOF
1359 Program names:
1360 --program-prefix=PREFIX prepend PREFIX to installed program names
1361 --program-suffix=SUFFIX append SUFFIX to installed program names
1362 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1364 System types:
1365 --build=BUILD configure for building on BUILD [guessed]
1366 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 --target=TARGET configure for building compilers for TARGET [HOST]
1368 _ACEOF
1371 if test -n "$ac_init_help"; then
1372 case $ac_init_help in
1373 short | recursive ) echo "Configuration of MIC Offload Runtime Library 1.0:";;
1374 esac
1375 cat <<\_ACEOF
1377 Optional Features:
1378 --disable-option-checking ignore unrecognized --enable/--with options
1379 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1380 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1381 --enable-maintainer-mode enable make rules and dependencies not useful
1382 (and sometimes confusing) to the casual installer
1383 --disable-dependency-tracking speeds up one-time build
1384 --enable-dependency-tracking do not reject slow dependency extractors
1385 --enable-multilib build many library versions (default)
1386 --enable-version-specific-runtime-libs
1387 Specify that runtime libraries should be installed
1388 in a compiler-specific directory
1389 --enable-shared[=PKGS] build shared libraries [default=yes]
1390 --enable-static[=PKGS] build static libraries [default=yes]
1391 --enable-fast-install[=PKGS]
1392 optimize for fast installation [default=yes]
1393 --disable-libtool-lock avoid locking (might break parallel builds)
1395 Optional Packages:
1396 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1397 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1398 --with-pic try to use only PIC/non-PIC objects [default=use
1399 both]
1400 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1402 Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
1407 LIBS libraries to pass to the linker, e.g. -l<library>
1408 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
1410 CXX C++ compiler command
1411 CXXFLAGS C++ compiler flags
1412 CPP C preprocessor
1413 CXXCPP C++ preprocessor
1415 Use these variables to override the choices made by `configure' or to help
1416 it to find libraries and programs with nonstandard names/locations.
1418 Report bugs to the package provider.
1419 _ACEOF
1420 ac_status=$?
1423 if test "$ac_init_help" = "recursive"; then
1424 # If there are subdirs, report their specific --help.
1425 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1426 test -d "$ac_dir" ||
1427 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1428 continue
1429 ac_builddir=.
1431 case "$ac_dir" in
1432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1435 # A ".." for each directory in $ac_dir_suffix.
1436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1437 case $ac_top_builddir_sub in
1438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1440 esac ;;
1441 esac
1442 ac_abs_top_builddir=$ac_pwd
1443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1444 # for backward compatibility:
1445 ac_top_builddir=$ac_top_build_prefix
1447 case $srcdir in
1448 .) # We are building in place.
1449 ac_srcdir=.
1450 ac_top_srcdir=$ac_top_builddir_sub
1451 ac_abs_top_srcdir=$ac_pwd ;;
1452 [\\/]* | ?:[\\/]* ) # Absolute name.
1453 ac_srcdir=$srcdir$ac_dir_suffix;
1454 ac_top_srcdir=$srcdir
1455 ac_abs_top_srcdir=$srcdir ;;
1456 *) # Relative name.
1457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1458 ac_top_srcdir=$ac_top_build_prefix$srcdir
1459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1460 esac
1461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1463 cd "$ac_dir" || { ac_status=$?; continue; }
1464 # Check for guested configure.
1465 if test -f "$ac_srcdir/configure.gnu"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1468 elif test -f "$ac_srcdir/configure"; then
1469 echo &&
1470 $SHELL "$ac_srcdir/configure" --help=recursive
1471 else
1472 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1473 fi || ac_status=$?
1474 cd "$ac_pwd" || { ac_status=$?; break; }
1475 done
1478 test -n "$ac_init_help" && exit $ac_status
1479 if $ac_init_version; then
1480 cat <<\_ACEOF
1481 MIC Offload Runtime Library configure 1.0
1482 generated by GNU Autoconf 2.64
1484 Copyright (C) 2009 Free Software Foundation, Inc.
1485 This configure script is free software; the Free Software Foundation
1486 gives unlimited permission to copy, distribute and modify it.
1487 _ACEOF
1488 exit
1491 ## ------------------------ ##
1492 ## Autoconf initialization. ##
1493 ## ------------------------ ##
1495 # ac_fn_c_try_compile LINENO
1496 # --------------------------
1497 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1498 ac_fn_c_try_compile ()
1500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1501 rm -f conftest.$ac_objext
1502 if { { ac_try="$ac_compile"
1503 case "(($ac_try" in
1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505 *) ac_try_echo=$ac_try;;
1506 esac
1507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508 $as_echo "$ac_try_echo"; } >&5
1509 (eval "$ac_compile") 2>conftest.err
1510 ac_status=$?
1511 if test -s conftest.err; then
1512 grep -v '^ *+' conftest.err >conftest.er1
1513 cat conftest.er1 >&5
1514 mv -f conftest.er1 conftest.err
1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517 test $ac_status = 0; } && {
1518 test -z "$ac_c_werror_flag" ||
1519 test ! -s conftest.err
1520 } && test -s conftest.$ac_objext; then :
1521 ac_retval=0
1522 else
1523 $as_echo "$as_me: failed program was:" >&5
1524 sed 's/^/| /' conftest.$ac_ext >&5
1526 ac_retval=1
1528 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1529 return $ac_retval
1531 } # ac_fn_c_try_compile
1533 # ac_fn_cxx_try_compile LINENO
1534 # ----------------------------
1535 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_cxx_try_compile ()
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext
1540 if { { ac_try="$ac_compile"
1541 case "(($ac_try" in
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1544 esac
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1548 ac_status=$?
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_cxx_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext; then :
1559 ac_retval=0
1560 else
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1564 ac_retval=1
1566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1567 return $ac_retval
1569 } # ac_fn_cxx_try_compile
1571 # ac_fn_c_try_link LINENO
1572 # -----------------------
1573 # Try to link conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_c_try_link ()
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext conftest$ac_exeext
1578 if { { ac_try="$ac_link"
1579 case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582 esac
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_link") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest$ac_exeext && {
1597 test "$cross_compiling" = yes ||
1598 $as_test_x conftest$ac_exeext
1599 }; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1605 ac_retval=1
1607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1609 # interfere with the next link command; also delete a directory that is
1610 # left behind by Apple's compiler. We do this before executing the actions.
1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1613 return $ac_retval
1615 } # ac_fn_c_try_link
1617 # ac_fn_c_try_cpp LINENO
1618 # ----------------------
1619 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_cpp ()
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if { { ac_try="$ac_cpp conftest.$ac_ext"
1624 case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } >/dev/null && {
1639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 }; then :
1642 ac_retval=0
1643 else
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1647 ac_retval=1
1649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650 return $ac_retval
1652 } # ac_fn_c_try_cpp
1654 # ac_fn_c_check_func LINENO FUNC VAR
1655 # ----------------------------------
1656 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1657 ac_fn_c_check_func ()
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1663 $as_echo_n "(cached) " >&6
1664 else
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1667 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1669 #define $2 innocuous_$2
1671 /* System header to define __stub macros and hopefully few prototypes,
1672 which can conflict with char $2 (); below.
1673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1674 <limits.h> exists even on freestanding compilers. */
1676 #ifdef __STDC__
1677 # include <limits.h>
1678 #else
1679 # include <assert.h>
1680 #endif
1682 #undef $2
1684 /* Override any GCC internal prototype to avoid an error.
1685 Use char because int might match the return type of a GCC
1686 builtin and then its argument prototype would still apply. */
1687 #ifdef __cplusplus
1688 extern "C"
1689 #endif
1690 char $2 ();
1691 /* The GNU C library defines this for functions which it implements
1692 to always fail with ENOSYS. Some functions are actually named
1693 something starting with __ and the normal name is an alias. */
1694 #if defined __stub_$2 || defined __stub___$2
1695 choke me
1696 #endif
1699 main ()
1701 return $2 ();
1703 return 0;
1705 _ACEOF
1706 if ac_fn_c_try_link "$LINENO"; then :
1707 eval "$3=yes"
1708 else
1709 eval "$3=no"
1711 rm -f core conftest.err conftest.$ac_objext \
1712 conftest$ac_exeext conftest.$ac_ext
1714 eval ac_res=\$$3
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 $as_echo "$ac_res" >&6; }
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719 } # ac_fn_c_check_func
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724 # that executables *can* be run.
1725 ac_fn_c_try_run ()
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if { { ac_try="$ac_link"
1729 case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>&5
1736 ac_status=$?
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739 { { case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_try") 2>&5
1746 ac_status=$?
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; }; }; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: program exited with status $ac_status" >&5
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1755 ac_retval=$ac_status
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759 return $ac_retval
1761 } # ac_fn_c_try_run
1763 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists and can be compiled using the include files in
1766 # INCLUDES, setting the cache variable VAR accordingly.
1767 ac_fn_c_check_header_compile ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 $as_echo_n "checking for $2... " >&6; }
1772 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1773 $as_echo_n "(cached) " >&6
1774 else
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1778 #include <$2>
1779 _ACEOF
1780 if ac_fn_c_try_compile "$LINENO"; then :
1781 eval "$3=yes"
1782 else
1783 eval "$3=no"
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787 eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 } # ac_fn_c_check_header_compile
1794 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1797 # the include files in INCLUDES and setting the cache variable VAR
1798 # accordingly.
1799 ac_fn_c_check_header_mongrel ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1806 $as_echo_n "(cached) " >&6
1808 eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 else
1812 # Is the header compilable?
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1814 $as_echo_n "checking $2 usability... " >&6; }
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1818 #include <$2>
1819 _ACEOF
1820 if ac_fn_c_try_compile "$LINENO"; then :
1821 ac_header_compiler=yes
1822 else
1823 ac_header_compiler=no
1825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1827 $as_echo "$ac_header_compiler" >&6; }
1829 # Is the header present?
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1831 $as_echo_n "checking $2 presence... " >&6; }
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 #include <$2>
1835 _ACEOF
1836 if ac_fn_c_try_cpp "$LINENO"; then :
1837 ac_header_preproc=yes
1838 else
1839 ac_header_preproc=no
1841 rm -f conftest.err conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1843 $as_echo "$ac_header_preproc" >&6; }
1845 # So? What about this header?
1846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1847 yes:no: )
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1849 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853 no:yes:* )
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1855 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1857 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1859 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1861 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1865 esac
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867 $as_echo_n "checking for $2... " >&6; }
1868 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1869 $as_echo_n "(cached) " >&6
1870 else
1871 eval "$3=\$ac_header_compiler"
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879 } # ac_fn_c_check_header_mongrel
1881 # ac_fn_cxx_try_cpp LINENO
1882 # ------------------------
1883 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_cxx_try_cpp ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if { { ac_try="$ac_cpp conftest.$ac_ext"
1888 case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1895 ac_status=$?
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } >/dev/null && {
1903 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1904 test ! -s conftest.err
1905 }; then :
1906 ac_retval=0
1907 else
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1911 ac_retval=1
1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914 return $ac_retval
1916 } # ac_fn_cxx_try_cpp
1918 # ac_fn_cxx_try_link LINENO
1919 # -------------------------
1920 # Try to link conftest.$ac_ext, and return whether this succeeded.
1921 ac_fn_cxx_try_link ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 rm -f conftest.$ac_objext conftest$ac_exeext
1925 if { { ac_try="$ac_link"
1926 case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1929 esac
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_link") 2>conftest.err
1933 ac_status=$?
1934 if test -s conftest.err; then
1935 grep -v '^ *+' conftest.err >conftest.er1
1936 cat conftest.er1 >&5
1937 mv -f conftest.er1 conftest.err
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } && {
1941 test -z "$ac_cxx_werror_flag" ||
1942 test ! -s conftest.err
1943 } && test -s conftest$ac_exeext && {
1944 test "$cross_compiling" = yes ||
1945 $as_test_x conftest$ac_exeext
1946 }; then :
1947 ac_retval=0
1948 else
1949 $as_echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1952 ac_retval=1
1954 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1955 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1956 # interfere with the next link command; also delete a directory that is
1957 # left behind by Apple's compiler. We do this before executing the actions.
1958 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1959 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960 return $ac_retval
1962 } # ac_fn_cxx_try_link
1963 cat >config.log <<_ACEOF
1964 This file contains any messages produced by compilers while
1965 running configure, to aid debugging if configure makes a mistake.
1967 It was created by MIC Offload Runtime Library $as_me 1.0, which was
1968 generated by GNU Autoconf 2.64. Invocation command line was
1970 $ $0 $@
1972 _ACEOF
1973 exec 5>>config.log
1975 cat <<_ASUNAME
1976 ## --------- ##
1977 ## Platform. ##
1978 ## --------- ##
1980 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1981 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1982 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1983 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1984 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1986 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1987 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1989 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1990 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1991 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1992 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1993 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1994 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1995 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1997 _ASUNAME
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2002 IFS=$as_save_IFS
2003 test -z "$as_dir" && as_dir=.
2004 $as_echo "PATH: $as_dir"
2005 done
2006 IFS=$as_save_IFS
2008 } >&5
2010 cat >&5 <<_ACEOF
2013 ## ----------- ##
2014 ## Core tests. ##
2015 ## ----------- ##
2017 _ACEOF
2020 # Keep a trace of the command line.
2021 # Strip out --no-create and --no-recursion so they do not pile up.
2022 # Strip out --silent because we don't want to record it for future runs.
2023 # Also quote any args containing shell meta-characters.
2024 # Make two passes to allow for proper duplicate-argument suppression.
2025 ac_configure_args=
2026 ac_configure_args0=
2027 ac_configure_args1=
2028 ac_must_keep_next=false
2029 for ac_pass in 1 2
2031 for ac_arg
2033 case $ac_arg in
2034 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2036 | -silent | --silent | --silen | --sile | --sil)
2037 continue ;;
2038 *\'*)
2039 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2040 esac
2041 case $ac_pass in
2042 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2044 as_fn_append ac_configure_args1 " '$ac_arg'"
2045 if test $ac_must_keep_next = true; then
2046 ac_must_keep_next=false # Got value, back to normal.
2047 else
2048 case $ac_arg in
2049 *=* | --config-cache | -C | -disable-* | --disable-* \
2050 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2051 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2052 | -with-* | --with-* | -without-* | --without-* | --x)
2053 case "$ac_configure_args0 " in
2054 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2055 esac
2057 -* ) ac_must_keep_next=true ;;
2058 esac
2060 as_fn_append ac_configure_args " '$ac_arg'"
2062 esac
2063 done
2064 done
2065 { ac_configure_args0=; unset ac_configure_args0;}
2066 { ac_configure_args1=; unset ac_configure_args1;}
2068 # When interrupted or exit'd, cleanup temporary files, and complete
2069 # config.log. We remove comments because anyway the quotes in there
2070 # would cause problems or look ugly.
2071 # WARNING: Use '\'' to represent an apostrophe within the trap.
2072 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2073 trap 'exit_status=$?
2074 # Save into config.log some information that might help in debugging.
2076 echo
2078 cat <<\_ASBOX
2079 ## ---------------- ##
2080 ## Cache variables. ##
2081 ## ---------------- ##
2082 _ASBOX
2083 echo
2084 # The following way of writing the cache mishandles newlines in values,
2086 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2087 eval ac_val=\$$ac_var
2088 case $ac_val in #(
2089 *${as_nl}*)
2090 case $ac_var in #(
2091 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2092 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2093 esac
2094 case $ac_var in #(
2095 _ | IFS | as_nl) ;; #(
2096 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2097 *) { eval $ac_var=; unset $ac_var;} ;;
2098 esac ;;
2099 esac
2100 done
2101 (set) 2>&1 |
2102 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2103 *${as_nl}ac_space=\ *)
2104 sed -n \
2105 "s/'\''/'\''\\\\'\'''\''/g;
2106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2107 ;; #(
2109 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2111 esac |
2112 sort
2114 echo
2116 cat <<\_ASBOX
2117 ## ----------------- ##
2118 ## Output variables. ##
2119 ## ----------------- ##
2120 _ASBOX
2121 echo
2122 for ac_var in $ac_subst_vars
2124 eval ac_val=\$$ac_var
2125 case $ac_val in
2126 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127 esac
2128 $as_echo "$ac_var='\''$ac_val'\''"
2129 done | sort
2130 echo
2132 if test -n "$ac_subst_files"; then
2133 cat <<\_ASBOX
2134 ## ------------------- ##
2135 ## File substitutions. ##
2136 ## ------------------- ##
2137 _ASBOX
2138 echo
2139 for ac_var in $ac_subst_files
2141 eval ac_val=\$$ac_var
2142 case $ac_val in
2143 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2144 esac
2145 $as_echo "$ac_var='\''$ac_val'\''"
2146 done | sort
2147 echo
2150 if test -s confdefs.h; then
2151 cat <<\_ASBOX
2152 ## ----------- ##
2153 ## confdefs.h. ##
2154 ## ----------- ##
2155 _ASBOX
2156 echo
2157 cat confdefs.h
2158 echo
2160 test "$ac_signal" != 0 &&
2161 $as_echo "$as_me: caught signal $ac_signal"
2162 $as_echo "$as_me: exit $exit_status"
2163 } >&5
2164 rm -f core *.core core.conftest.* &&
2165 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2166 exit $exit_status
2168 for ac_signal in 1 2 13 15; do
2169 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2170 done
2171 ac_signal=0
2173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2174 rm -f -r conftest* confdefs.h
2176 $as_echo "/* confdefs.h */" > confdefs.h
2178 # Predefined preprocessor variables.
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_NAME "$PACKAGE_NAME"
2182 _ACEOF
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2186 _ACEOF
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2190 _ACEOF
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_STRING "$PACKAGE_STRING"
2194 _ACEOF
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2198 _ACEOF
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_URL "$PACKAGE_URL"
2202 _ACEOF
2205 # Let the site file select an alternate cache file if it wants to.
2206 # Prefer an explicitly selected file to automatically selected ones.
2207 ac_site_file1=NONE
2208 ac_site_file2=NONE
2209 if test -n "$CONFIG_SITE"; then
2210 ac_site_file1=$CONFIG_SITE
2211 elif test "x$prefix" != xNONE; then
2212 ac_site_file1=$prefix/share/config.site
2213 ac_site_file2=$prefix/etc/config.site
2214 else
2215 ac_site_file1=$ac_default_prefix/share/config.site
2216 ac_site_file2=$ac_default_prefix/etc/config.site
2218 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2220 test "x$ac_site_file" = xNONE && continue
2221 if test -r "$ac_site_file"; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2223 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2224 sed 's/^/| /' "$ac_site_file" >&5
2225 . "$ac_site_file"
2227 done
2229 if test -r "$cache_file"; then
2230 # Some versions of bash will fail to source /dev/null (special
2231 # files actually), so we avoid doing that.
2232 if test -f "$cache_file"; then
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2234 $as_echo "$as_me: loading cache $cache_file" >&6;}
2235 case $cache_file in
2236 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2237 *) . "./$cache_file";;
2238 esac
2240 else
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2242 $as_echo "$as_me: creating cache $cache_file" >&6;}
2243 >$cache_file
2246 # Check that the precious variables saved in the cache have kept the same
2247 # value.
2248 ac_cache_corrupted=false
2249 for ac_var in $ac_precious_vars; do
2250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2251 eval ac_new_set=\$ac_env_${ac_var}_set
2252 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2253 eval ac_new_val=\$ac_env_${ac_var}_value
2254 case $ac_old_set,$ac_new_set in
2255 set,)
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2257 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2258 ac_cache_corrupted=: ;;
2259 ,set)
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2261 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2262 ac_cache_corrupted=: ;;
2263 ,);;
2265 if test "x$ac_old_val" != "x$ac_new_val"; then
2266 # differences in whitespace do not lead to failure.
2267 ac_old_val_w=`echo x $ac_old_val`
2268 ac_new_val_w=`echo x $ac_new_val`
2269 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2271 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2272 ac_cache_corrupted=:
2273 else
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2275 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2276 eval $ac_var=\$ac_old_val
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2279 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2281 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2282 fi;;
2283 esac
2284 # Pass precious variables to config.status.
2285 if test "$ac_new_set" = set; then
2286 case $ac_new_val in
2287 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2288 *) ac_arg=$ac_var=$ac_new_val ;;
2289 esac
2290 case " $ac_configure_args " in
2291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2292 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2293 esac
2295 done
2296 if $ac_cache_corrupted; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2300 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2301 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2303 ## -------------------- ##
2304 ## Main body of script. ##
2305 ## -------------------- ##
2307 ac_ext=c
2308 ac_cpp='$CPP $CPPFLAGS'
2309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2318 ac_aux_dir=
2319 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2320 for ac_t in install-sh install.sh shtool; do
2321 if test -f "$ac_dir/$ac_t"; then
2322 ac_aux_dir=$ac_dir
2323 ac_install_sh="$ac_aux_dir/$ac_t -c"
2324 break 2
2326 done
2327 done
2328 if test -z "$ac_aux_dir"; then
2329 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2332 # These three variables are undocumented and unsupported,
2333 # and are intended to be withdrawn in a future Autoconf release.
2334 # They can cause serious problems if a builder's source tree is in a directory
2335 # whose full name contains unusual characters.
2336 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2337 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2338 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2341 # Make sure we can run config.sub.
2342 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2343 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2346 $as_echo_n "checking build system type... " >&6; }
2347 if test "${ac_cv_build+set}" = set; then :
2348 $as_echo_n "(cached) " >&6
2349 else
2350 ac_build_alias=$build_alias
2351 test "x$ac_build_alias" = x &&
2352 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2353 test "x$ac_build_alias" = x &&
2354 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2355 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2356 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2360 $as_echo "$ac_cv_build" >&6; }
2361 case $ac_cv_build in
2362 *-*-*) ;;
2363 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2364 esac
2365 build=$ac_cv_build
2366 ac_save_IFS=$IFS; IFS='-'
2367 set x $ac_cv_build
2368 shift
2369 build_cpu=$1
2370 build_vendor=$2
2371 shift; shift
2372 # Remember, the first character of IFS is used to create $*,
2373 # except with old shells:
2374 build_os=$*
2375 IFS=$ac_save_IFS
2376 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2380 $as_echo_n "checking host system type... " >&6; }
2381 if test "${ac_cv_host+set}" = set; then :
2382 $as_echo_n "(cached) " >&6
2383 else
2384 if test "x$host_alias" = x; then
2385 ac_cv_host=$ac_cv_build
2386 else
2387 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2388 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2393 $as_echo "$ac_cv_host" >&6; }
2394 case $ac_cv_host in
2395 *-*-*) ;;
2396 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2397 esac
2398 host=$ac_cv_host
2399 ac_save_IFS=$IFS; IFS='-'
2400 set x $ac_cv_host
2401 shift
2402 host_cpu=$1
2403 host_vendor=$2
2404 shift; shift
2405 # Remember, the first character of IFS is used to create $*,
2406 # except with old shells:
2407 host_os=$*
2408 IFS=$ac_save_IFS
2409 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2413 $as_echo_n "checking target system type... " >&6; }
2414 if test "${ac_cv_target+set}" = set; then :
2415 $as_echo_n "(cached) " >&6
2416 else
2417 if test "x$target_alias" = x; then
2418 ac_cv_target=$ac_cv_host
2419 else
2420 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2421 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2426 $as_echo "$ac_cv_target" >&6; }
2427 case $ac_cv_target in
2428 *-*-*) ;;
2429 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2430 esac
2431 target=$ac_cv_target
2432 ac_save_IFS=$IFS; IFS='-'
2433 set x $ac_cv_target
2434 shift
2435 target_cpu=$1
2436 target_vendor=$2
2437 shift; shift
2438 # Remember, the first character of IFS is used to create $*,
2439 # except with old shells:
2440 target_os=$*
2441 IFS=$ac_save_IFS
2442 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2445 # The aliases save the names the user supplied, while $host etc.
2446 # will get canonicalized.
2447 test -n "$target_alias" &&
2448 test "$program_prefix$program_suffix$program_transform_name" = \
2449 NONENONEs,x,x, &&
2450 program_prefix=${target_alias}-
2452 target_alias=${target_alias-$host_alias}
2455 am__api_version='1.11'
2457 # Find a good install program. We prefer a C program (faster),
2458 # so one script is as good as another. But avoid the broken or
2459 # incompatible versions:
2460 # SysV /etc/install, /usr/sbin/install
2461 # SunOS /usr/etc/install
2462 # IRIX /sbin/install
2463 # AIX /bin/install
2464 # AmigaOS /C/install, which installs bootblocks on floppy discs
2465 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2466 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2467 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2468 # OS/2's system install, which has a completely different semantic
2469 # ./install, which can be erroneously created by make from ./install.sh.
2470 # Reject install programs that cannot install multiple files.
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2472 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2473 if test -z "$INSTALL"; then
2474 if test "${ac_cv_path_install+set}" = set; then :
2475 $as_echo_n "(cached) " >&6
2476 else
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 # Account for people who put trailing slashes in PATH elements.
2483 case $as_dir/ in #((
2484 ./ | .// | /[cC]/* | \
2485 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2486 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2487 /usr/ucb/* ) ;;
2489 # OSF1 and SCO ODT 3.0 have their own names for install.
2490 # Don't use installbsd from OSF since it installs stuff as root
2491 # by default.
2492 for ac_prog in ginstall scoinst install; do
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2495 if test $ac_prog = install &&
2496 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2497 # AIX install. It has an incompatible calling convention.
2499 elif test $ac_prog = install &&
2500 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2501 # program-specific install script used by HP pwplus--don't use.
2503 else
2504 rm -rf conftest.one conftest.two conftest.dir
2505 echo one > conftest.one
2506 echo two > conftest.two
2507 mkdir conftest.dir
2508 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2509 test -s conftest.one && test -s conftest.two &&
2510 test -s conftest.dir/conftest.one &&
2511 test -s conftest.dir/conftest.two
2512 then
2513 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2514 break 3
2518 done
2519 done
2521 esac
2523 done
2524 IFS=$as_save_IFS
2526 rm -rf conftest.one conftest.two conftest.dir
2529 if test "${ac_cv_path_install+set}" = set; then
2530 INSTALL=$ac_cv_path_install
2531 else
2532 # As a last resort, use the slow shell script. Don't cache a
2533 # value for INSTALL within a source directory, because that will
2534 # break other packages using the cache if that directory is
2535 # removed, or if the value is a relative name.
2536 INSTALL=$ac_install_sh
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2540 $as_echo "$INSTALL" >&6; }
2542 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2543 # It thinks the first close brace ends the variable substitution.
2544 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2546 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2548 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2551 $as_echo_n "checking whether build environment is sane... " >&6; }
2552 # Just in case
2553 sleep 1
2554 echo timestamp > conftest.file
2555 # Reject unsafe characters in $srcdir or the absolute working directory
2556 # name. Accept space and tab only in the latter.
2557 am_lf='
2559 case `pwd` in
2560 *[\\\"\#\$\&\'\`$am_lf]*)
2561 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2562 esac
2563 case $srcdir in
2564 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2565 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2566 esac
2568 # Do `set' in a subshell so we don't clobber the current shell's
2569 # arguments. Must try -L first in case configure is actually a
2570 # symlink; some systems play weird games with the mod time of symlinks
2571 # (eg FreeBSD returns the mod time of the symlink's containing
2572 # directory).
2573 if (
2574 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2575 if test "$*" = "X"; then
2576 # -L didn't work.
2577 set X `ls -t "$srcdir/configure" conftest.file`
2579 rm -f conftest.file
2580 if test "$*" != "X $srcdir/configure conftest.file" \
2581 && test "$*" != "X conftest.file $srcdir/configure"; then
2583 # If neither matched, then we have a broken ls. This can happen
2584 # if, for instance, CONFIG_SHELL is bash and it inherits a
2585 # broken ls alias from the environment. This has actually
2586 # happened. Such a system could not be considered "sane".
2587 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2588 alias in your environment" "$LINENO" 5
2591 test "$2" = conftest.file
2593 then
2594 # Ok.
2596 else
2597 as_fn_error "newly created file is older than distributed files!
2598 Check your system clock" "$LINENO" 5
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2601 $as_echo "yes" >&6; }
2602 test "$program_prefix" != NONE &&
2603 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2604 # Use a double $ so make ignores it.
2605 test "$program_suffix" != NONE &&
2606 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2607 # Double any \ or $.
2608 # By default was `s,x,x', remove it if useless.
2609 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2610 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2612 # expand $ac_aux_dir to an absolute path
2613 am_aux_dir=`cd $ac_aux_dir && pwd`
2615 if test x"${MISSING+set}" != xset; then
2616 case $am_aux_dir in
2617 *\ * | *\ *)
2618 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2620 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2621 esac
2623 # Use eval to expand $SHELL
2624 if eval "$MISSING --run true"; then
2625 am_missing_run="$MISSING --run "
2626 else
2627 am_missing_run=
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2629 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2632 if test x"${install_sh}" != xset; then
2633 case $am_aux_dir in
2634 *\ * | *\ *)
2635 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2637 install_sh="\${SHELL} $am_aux_dir/install-sh"
2638 esac
2641 # Installed binaries are usually stripped using `strip' when the user
2642 # run `make install-strip'. However `strip' might not be the right
2643 # tool to use in cross-compilation environments, therefore Automake
2644 # will honor the `STRIP' environment variable to overrule this program.
2645 if test "$cross_compiling" != no; then
2646 if test -n "$ac_tool_prefix"; then
2647 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2648 set dummy ${ac_tool_prefix}strip; ac_word=$2
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if test "${ac_cv_prog_STRIP+set}" = set; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 if test -n "$STRIP"; then
2655 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2668 done
2669 done
2670 IFS=$as_save_IFS
2674 STRIP=$ac_cv_prog_STRIP
2675 if test -n "$STRIP"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2677 $as_echo "$STRIP" >&6; }
2678 else
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680 $as_echo "no" >&6; }
2685 if test -z "$ac_cv_prog_STRIP"; then
2686 ac_ct_STRIP=$STRIP
2687 # Extract the first word of "strip", so it can be a program name with args.
2688 set dummy strip; ac_word=$2
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2692 $as_echo_n "(cached) " >&6
2693 else
2694 if test -n "$ac_ct_STRIP"; then
2695 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2696 else
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2704 ac_cv_prog_ac_ct_STRIP="strip"
2705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 break 2
2708 done
2709 done
2710 IFS=$as_save_IFS
2714 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2715 if test -n "$ac_ct_STRIP"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2717 $as_echo "$ac_ct_STRIP" >&6; }
2718 else
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 $as_echo "no" >&6; }
2723 if test "x$ac_ct_STRIP" = x; then
2724 STRIP=":"
2725 else
2726 case $cross_compiling:$ac_tool_warned in
2727 yes:)
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2730 ac_tool_warned=yes ;;
2731 esac
2732 STRIP=$ac_ct_STRIP
2734 else
2735 STRIP="$ac_cv_prog_STRIP"
2739 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2742 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2743 if test -z "$MKDIR_P"; then
2744 if test "${ac_cv_path_mkdir+set}" = set; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
2752 for ac_prog in mkdir gmkdir; do
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2755 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2756 'mkdir (GNU coreutils) '* | \
2757 'mkdir (coreutils) '* | \
2758 'mkdir (fileutils) '4.1*)
2759 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2760 break 3;;
2761 esac
2762 done
2763 done
2764 done
2765 IFS=$as_save_IFS
2769 if test "${ac_cv_path_mkdir+set}" = set; then
2770 MKDIR_P="$ac_cv_path_mkdir -p"
2771 else
2772 # As a last resort, use the slow shell script. Don't cache a
2773 # value for MKDIR_P within a source directory, because that will
2774 # break other packages using the cache if that directory is
2775 # removed, or if the value is a relative name.
2776 test -d ./--version && rmdir ./--version
2777 MKDIR_P="$ac_install_sh -d"
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2781 $as_echo "$MKDIR_P" >&6; }
2783 mkdir_p="$MKDIR_P"
2784 case $mkdir_p in
2785 [\\/$]* | ?:[\\/]*) ;;
2786 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2787 esac
2789 for ac_prog in gawk mawk nawk awk
2791 # Extract the first word of "$ac_prog", so it can be a program name with args.
2792 set dummy $ac_prog; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if test "${ac_cv_prog_AWK+set}" = set; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 if test -n "$AWK"; then
2799 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 ac_cv_prog_AWK="$ac_prog"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2812 done
2813 done
2814 IFS=$as_save_IFS
2818 AWK=$ac_cv_prog_AWK
2819 if test -n "$AWK"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2821 $as_echo "$AWK" >&6; }
2822 else
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2828 test -n "$AWK" && break
2829 done
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2832 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2833 set x ${MAKE-make}
2834 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2835 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 cat >conftest.make <<\_ACEOF
2839 SHELL = /bin/sh
2840 all:
2841 @echo '@@@%%%=$(MAKE)=@@@%%%'
2842 _ACEOF
2843 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2844 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2845 *@@@%%%=?*=@@@%%%*)
2846 eval ac_cv_prog_make_${ac_make}_set=yes;;
2848 eval ac_cv_prog_make_${ac_make}_set=no;;
2849 esac
2850 rm -f conftest.make
2852 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2854 $as_echo "yes" >&6; }
2855 SET_MAKE=
2856 else
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 $as_echo "no" >&6; }
2859 SET_MAKE="MAKE=${MAKE-make}"
2862 rm -rf .tst 2>/dev/null
2863 mkdir .tst 2>/dev/null
2864 if test -d .tst; then
2865 am__leading_dot=.
2866 else
2867 am__leading_dot=_
2869 rmdir .tst 2>/dev/null
2871 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2872 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2873 # is not polluted with repeated "-I."
2874 am__isrc=' -I$(srcdir)'
2875 # test to see if srcdir already configured
2876 if test -f $srcdir/config.status; then
2877 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2881 # test whether we have cygpath
2882 if test -z "$CYGPATH_W"; then
2883 if (cygpath --version) >/dev/null 2>/dev/null; then
2884 CYGPATH_W='cygpath -w'
2885 else
2886 CYGPATH_W=echo
2891 # Define the identity of the package.
2892 PACKAGE='liboffloadmic'
2893 VERSION='1.0'
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE "$PACKAGE"
2898 _ACEOF
2901 cat >>confdefs.h <<_ACEOF
2902 #define VERSION "$VERSION"
2903 _ACEOF
2905 # Some tools Automake needs.
2907 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2910 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2913 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2916 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2919 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2921 # We need awk for the "check" target. The system "awk" is bad on
2922 # some platforms.
2923 # Always define AMTAR for backward compatibility. Yes, it's still used
2924 # in the wild :-( We should find a proper way to deprecate it ...
2925 AMTAR='$${TAR-tar}'
2927 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2935 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2936 # Check whether --enable-maintainer-mode was given.
2937 if test "${enable_maintainer_mode+set}" = set; then :
2938 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2939 else
2940 USE_MAINTAINER_MODE=no
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2944 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2945 if test $USE_MAINTAINER_MODE = yes; then
2946 MAINTAINER_MODE_TRUE=
2947 MAINTAINER_MODE_FALSE='#'
2948 else
2949 MAINTAINER_MODE_TRUE='#'
2950 MAINTAINER_MODE_FALSE=
2953 MAINT=$MAINTAINER_MODE_TRUE
2957 ac_ext=c
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962 if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if test "${ac_cv_prog_CC+set}" = set; then :
2968 $as_echo_n "(cached) " >&6
2969 else
2970 if test -n "$CC"; then
2971 ac_cv_prog_CC="$CC" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 break 2
2984 done
2985 done
2986 IFS=$as_save_IFS
2990 CC=$ac_cv_prog_CC
2991 if test -n "$CC"; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2993 $as_echo "$CC" >&6; }
2994 else
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
3001 if test -z "$ac_cv_prog_CC"; then
3002 ac_ct_CC=$CC
3003 # Extract the first word of "gcc", so it can be a program name with args.
3004 set dummy gcc; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3008 $as_echo_n "(cached) " >&6
3009 else
3010 if test -n "$ac_ct_CC"; then
3011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3012 else
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020 ac_cv_prog_ac_ct_CC="gcc"
3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 break 2
3024 done
3025 done
3026 IFS=$as_save_IFS
3030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3031 if test -n "$ac_ct_CC"; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3033 $as_echo "$ac_ct_CC" >&6; }
3034 else
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3039 if test "x$ac_ct_CC" = x; then
3040 CC=""
3041 else
3042 case $cross_compiling:$ac_tool_warned in
3043 yes:)
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046 ac_tool_warned=yes ;;
3047 esac
3048 CC=$ac_ct_CC
3050 else
3051 CC="$ac_cv_prog_CC"
3054 if test -z "$CC"; then
3055 if test -n "$ac_tool_prefix"; then
3056 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3057 set dummy ${ac_tool_prefix}cc; ac_word=$2
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if test "${ac_cv_prog_CC+set}" = set; then :
3061 $as_echo_n "(cached) " >&6
3062 else
3063 if test -n "$CC"; then
3064 ac_cv_prog_CC="$CC" # Let the user override the test.
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 ac_cv_prog_CC="${ac_tool_prefix}cc"
3074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3077 done
3078 done
3079 IFS=$as_save_IFS
3083 CC=$ac_cv_prog_CC
3084 if test -n "$CC"; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3086 $as_echo "$CC" >&6; }
3087 else
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3095 if test -z "$CC"; then
3096 # Extract the first word of "cc", so it can be a program name with args.
3097 set dummy cc; ac_word=$2
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if test "${ac_cv_prog_CC+set}" = set; then :
3101 $as_echo_n "(cached) " >&6
3102 else
3103 if test -n "$CC"; then
3104 ac_cv_prog_CC="$CC" # Let the user override the test.
3105 else
3106 ac_prog_rejected=no
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3114 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3115 ac_prog_rejected=yes
3116 continue
3118 ac_cv_prog_CC="cc"
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3122 done
3123 done
3124 IFS=$as_save_IFS
3126 if test $ac_prog_rejected = yes; then
3127 # We found a bogon in the path, so make sure we never use it.
3128 set dummy $ac_cv_prog_CC
3129 shift
3130 if test $# != 0; then
3131 # We chose a different compiler from the bogus one.
3132 # However, it has the same basename, so the bogon will be chosen
3133 # first if we set CC to just the basename; use the full file name.
3134 shift
3135 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3140 CC=$ac_cv_prog_CC
3141 if test -n "$CC"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3143 $as_echo "$CC" >&6; }
3144 else
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3151 if test -z "$CC"; then
3152 if test -n "$ac_tool_prefix"; then
3153 for ac_prog in cl.exe
3155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if test "${ac_cv_prog_CC+set}" = set; then :
3160 $as_echo_n "(cached) " >&6
3161 else
3162 if test -n "$CC"; then
3163 ac_cv_prog_CC="$CC" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3168 IFS=$as_save_IFS
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3172 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 break 2
3176 done
3177 done
3178 IFS=$as_save_IFS
3182 CC=$ac_cv_prog_CC
3183 if test -n "$CC"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185 $as_echo "$CC" >&6; }
3186 else
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3192 test -n "$CC" && break
3193 done
3195 if test -z "$CC"; then
3196 ac_ct_CC=$CC
3197 for ac_prog in cl.exe
3199 # Extract the first word of "$ac_prog", so it can be a program name with args.
3200 set dummy $ac_prog; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3204 $as_echo_n "(cached) " >&6
3205 else
3206 if test -n "$ac_ct_CC"; then
3207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216 ac_cv_prog_ac_ct_CC="$ac_prog"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3220 done
3221 done
3222 IFS=$as_save_IFS
3226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3227 if test -n "$ac_ct_CC"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3229 $as_echo "$ac_ct_CC" >&6; }
3230 else
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3236 test -n "$ac_ct_CC" && break
3237 done
3239 if test "x$ac_ct_CC" = x; then
3240 CC=""
3241 else
3242 case $cross_compiling:$ac_tool_warned in
3243 yes:)
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3246 ac_tool_warned=yes ;;
3247 esac
3248 CC=$ac_ct_CC
3255 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 as_fn_error "no acceptable C compiler found in \$PATH
3258 See \`config.log' for more details." "$LINENO" 5; }
3260 # Provide some information about the compiler.
3261 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3262 set X $ac_compile
3263 ac_compiler=$2
3264 for ac_option in --version -v -V -qversion; do
3265 { { ac_try="$ac_compiler $ac_option >&5"
3266 case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 $as_echo "$ac_try_echo"; } >&5
3272 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3273 ac_status=$?
3274 if test -s conftest.err; then
3275 sed '10a\
3276 ... rest of stderr output deleted ...
3277 10q' conftest.err >conftest.er1
3278 cat conftest.er1 >&5
3279 rm -f conftest.er1 conftest.err
3281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282 test $ac_status = 0; }
3283 done
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3289 main ()
3293 return 0;
3295 _ACEOF
3296 ac_clean_files_save=$ac_clean_files
3297 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3298 # Try to create an executable without -o first, disregard a.out.
3299 # It will help us diagnose broken compilers, and finding out an intuition
3300 # of exeext.
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3302 $as_echo_n "checking for C compiler default output file name... " >&6; }
3303 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3305 # The possible output files:
3306 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3308 ac_rmfiles=
3309 for ac_file in $ac_files
3311 case $ac_file in
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3314 esac
3315 done
3316 rm -f $ac_rmfiles
3318 if { { ac_try="$ac_link_default"
3319 case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 $as_echo "$ac_try_echo"; } >&5
3325 (eval "$ac_link_default") 2>&5
3326 ac_status=$?
3327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328 test $ac_status = 0; }; then :
3329 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3330 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3331 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3332 # so that the user can short-circuit this test for compilers unknown to
3333 # Autoconf.
3334 for ac_file in $ac_files ''
3336 test -f "$ac_file" || continue
3337 case $ac_file in
3338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3340 [ab].out )
3341 # We found the default executable, but exeext='' is most
3342 # certainly right.
3343 break;;
3344 *.* )
3345 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3346 then :; else
3347 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349 # We set ac_cv_exeext here because the later test for it is not
3350 # safe: cross compilers may not add the suffix if given an `-o'
3351 # argument, so we may need to know it at that point already.
3352 # Even if this section looks crufty: it has the advantage of
3353 # actually working.
3354 break;;
3356 break;;
3357 esac
3358 done
3359 test "$ac_cv_exeext" = no && ac_cv_exeext=
3361 else
3362 ac_file=''
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3365 $as_echo "$ac_file" >&6; }
3366 if test -z "$ac_file"; then :
3367 $as_echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 { as_fn_set_status 77
3373 as_fn_error "C compiler cannot create executables
3374 See \`config.log' for more details." "$LINENO" 5; }; }
3376 ac_exeext=$ac_cv_exeext
3378 # Check that the compiler produces executables we can run. If not, either
3379 # the compiler is broken, or we cross compile.
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3381 $as_echo_n "checking whether the C compiler works... " >&6; }
3382 # If not cross compiling, check that we can run a simple program.
3383 if test "$cross_compiling" != yes; then
3384 if { ac_try='./$ac_file'
3385 { { case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_try") 2>&5
3392 ac_status=$?
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }; }; then
3395 cross_compiling=no
3396 else
3397 if test "$cross_compiling" = maybe; then
3398 cross_compiling=yes
3399 else
3400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402 as_fn_error "cannot run C compiled programs.
3403 If you meant to cross compile, use \`--host'.
3404 See \`config.log' for more details." "$LINENO" 5; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3409 $as_echo "yes" >&6; }
3411 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3412 ac_clean_files=$ac_clean_files_save
3413 # Check that the compiler produces executables we can run. If not, either
3414 # the compiler is broken, or we cross compile.
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3416 $as_echo_n "checking whether we are cross compiling... " >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3418 $as_echo "$cross_compiling" >&6; }
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3421 $as_echo_n "checking for suffix of executables... " >&6; }
3422 if { { ac_try="$ac_link"
3423 case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426 esac
3427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428 $as_echo "$ac_try_echo"; } >&5
3429 (eval "$ac_link") 2>&5
3430 ac_status=$?
3431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3432 test $ac_status = 0; }; then :
3433 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3434 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3435 # work properly (i.e., refer to `conftest.exe'), while it won't with
3436 # `rm'.
3437 for ac_file in conftest.exe conftest conftest.*; do
3438 test -f "$ac_file" || continue
3439 case $ac_file in
3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3441 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3442 break;;
3443 * ) break;;
3444 esac
3445 done
3446 else
3447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449 as_fn_error "cannot compute suffix of executables: cannot compile and link
3450 See \`config.log' for more details." "$LINENO" 5; }
3452 rm -f conftest$ac_cv_exeext
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3454 $as_echo "$ac_cv_exeext" >&6; }
3456 rm -f conftest.$ac_ext
3457 EXEEXT=$ac_cv_exeext
3458 ac_exeext=$EXEEXT
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3460 $as_echo_n "checking for suffix of object files... " >&6; }
3461 if test "${ac_cv_objext+set}" = set; then :
3462 $as_echo_n "(cached) " >&6
3463 else
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3468 main ()
3472 return 0;
3474 _ACEOF
3475 rm -f conftest.o conftest.obj
3476 if { { ac_try="$ac_compile"
3477 case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482 $as_echo "$ac_try_echo"; } >&5
3483 (eval "$ac_compile") 2>&5
3484 ac_status=$?
3485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486 test $ac_status = 0; }; then :
3487 for ac_file in conftest.o conftest.obj conftest.*; do
3488 test -f "$ac_file" || continue;
3489 case $ac_file in
3490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3491 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3492 break;;
3493 esac
3494 done
3495 else
3496 $as_echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3501 as_fn_error "cannot compute suffix of object files: cannot compile
3502 See \`config.log' for more details." "$LINENO" 5; }
3504 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3507 $as_echo "$ac_cv_objext" >&6; }
3508 OBJEXT=$ac_cv_objext
3509 ac_objext=$OBJEXT
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3511 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3512 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3519 main ()
3521 #ifndef __GNUC__
3522 choke me
3523 #endif
3526 return 0;
3528 _ACEOF
3529 if ac_fn_c_try_compile "$LINENO"; then :
3530 ac_compiler_gnu=yes
3531 else
3532 ac_compiler_gnu=no
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3539 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3540 if test $ac_compiler_gnu = yes; then
3541 GCC=yes
3542 else
3543 GCC=
3545 ac_test_CFLAGS=${CFLAGS+set}
3546 ac_save_CFLAGS=$CFLAGS
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3548 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3549 if test "${ac_cv_prog_cc_g+set}" = set; then :
3550 $as_echo_n "(cached) " >&6
3551 else
3552 ac_save_c_werror_flag=$ac_c_werror_flag
3553 ac_c_werror_flag=yes
3554 ac_cv_prog_cc_g=no
3555 CFLAGS="-g"
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3560 main ()
3564 return 0;
3566 _ACEOF
3567 if ac_fn_c_try_compile "$LINENO"; then :
3568 ac_cv_prog_cc_g=yes
3569 else
3570 CFLAGS=""
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3575 main ()
3579 return 0;
3581 _ACEOF
3582 if ac_fn_c_try_compile "$LINENO"; then :
3584 else
3585 ac_c_werror_flag=$ac_save_c_werror_flag
3586 CFLAGS="-g"
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3591 main ()
3595 return 0;
3597 _ACEOF
3598 if ac_fn_c_try_compile "$LINENO"; then :
3599 ac_cv_prog_cc_g=yes
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 ac_c_werror_flag=$ac_save_c_werror_flag
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3609 $as_echo "$ac_cv_prog_cc_g" >&6; }
3610 if test "$ac_test_CFLAGS" = set; then
3611 CFLAGS=$ac_save_CFLAGS
3612 elif test $ac_cv_prog_cc_g = yes; then
3613 if test "$GCC" = yes; then
3614 CFLAGS="-g -O2"
3615 else
3616 CFLAGS="-g"
3618 else
3619 if test "$GCC" = yes; then
3620 CFLAGS="-O2"
3621 else
3622 CFLAGS=
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3626 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3627 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3628 $as_echo_n "(cached) " >&6
3629 else
3630 ac_cv_prog_cc_c89=no
3631 ac_save_CC=$CC
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3634 #include <stdarg.h>
3635 #include <stdio.h>
3636 #include <sys/types.h>
3637 #include <sys/stat.h>
3638 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3639 struct buf { int x; };
3640 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3641 static char *e (p, i)
3642 char **p;
3643 int i;
3645 return p[i];
3647 static char *f (char * (*g) (char **, int), char **p, ...)
3649 char *s;
3650 va_list v;
3651 va_start (v,p);
3652 s = g (p, va_arg (v,int));
3653 va_end (v);
3654 return s;
3657 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3658 function prototypes and stuff, but not '\xHH' hex character constants.
3659 These don't provoke an error unfortunately, instead are silently treated
3660 as 'x'. The following induces an error, until -std is added to get
3661 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3662 array size at least. It's necessary to write '\x00'==0 to get something
3663 that's true only with -std. */
3664 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3666 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3667 inside strings and character constants. */
3668 #define FOO(x) 'x'
3669 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3671 int test (int i, double x);
3672 struct s1 {int (*f) (int a);};
3673 struct s2 {int (*f) (double a);};
3674 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3675 int argc;
3676 char **argv;
3678 main ()
3680 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3682 return 0;
3684 _ACEOF
3685 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3686 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3688 CC="$ac_save_CC $ac_arg"
3689 if ac_fn_c_try_compile "$LINENO"; then :
3690 ac_cv_prog_cc_c89=$ac_arg
3692 rm -f core conftest.err conftest.$ac_objext
3693 test "x$ac_cv_prog_cc_c89" != "xno" && break
3694 done
3695 rm -f conftest.$ac_ext
3696 CC=$ac_save_CC
3699 # AC_CACHE_VAL
3700 case "x$ac_cv_prog_cc_c89" in
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3703 $as_echo "none needed" >&6; } ;;
3704 xno)
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3706 $as_echo "unsupported" >&6; } ;;
3708 CC="$CC $ac_cv_prog_cc_c89"
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3710 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3711 esac
3712 if test "x$ac_cv_prog_cc_c89" != xno; then :
3716 ac_ext=c
3717 ac_cpp='$CPP $CPPFLAGS'
3718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721 DEPDIR="${am__leading_dot}deps"
3723 ac_config_commands="$ac_config_commands depfiles"
3726 am_make=${MAKE-make}
3727 cat > confinc << 'END'
3728 am__doit:
3729 @echo this is the am__doit target
3730 .PHONY: am__doit
3732 # If we don't find an include directive, just comment out the code.
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3734 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3735 am__include="#"
3736 am__quote=
3737 _am_result=none
3738 # First try GNU make style include.
3739 echo "include confinc" > confmf
3740 # Ignore all kinds of additional output from `make'.
3741 case `$am_make -s -f confmf 2> /dev/null` in #(
3742 *the\ am__doit\ target*)
3743 am__include=include
3744 am__quote=
3745 _am_result=GNU
3747 esac
3748 # Now try BSD make style include.
3749 if test "$am__include" = "#"; then
3750 echo '.include "confinc"' > confmf
3751 case `$am_make -s -f confmf 2> /dev/null` in #(
3752 *the\ am__doit\ target*)
3753 am__include=.include
3754 am__quote="\""
3755 _am_result=BSD
3757 esac
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3762 $as_echo "$_am_result" >&6; }
3763 rm -f confinc confmf
3765 # Check whether --enable-dependency-tracking was given.
3766 if test "${enable_dependency_tracking+set}" = set; then :
3767 enableval=$enable_dependency_tracking;
3770 if test "x$enable_dependency_tracking" != xno; then
3771 am_depcomp="$ac_aux_dir/depcomp"
3772 AMDEPBACKSLASH='\'
3773 am__nodep='_no'
3775 if test "x$enable_dependency_tracking" != xno; then
3776 AMDEP_TRUE=
3777 AMDEP_FALSE='#'
3778 else
3779 AMDEP_TRUE='#'
3780 AMDEP_FALSE=
3785 depcc="$CC" am_compiler_list=
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3788 $as_echo_n "checking dependency style of $depcc... " >&6; }
3789 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3790 $as_echo_n "(cached) " >&6
3791 else
3792 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3793 # We make a subdir and do the tests there. Otherwise we can end up
3794 # making bogus files that we don't know about and never remove. For
3795 # instance it was reported that on HP-UX the gcc test will end up
3796 # making a dummy file named `D' -- because `-MD' means `put the output
3797 # in D'.
3798 rm -rf conftest.dir
3799 mkdir conftest.dir
3800 # Copy depcomp to subdir because otherwise we won't find it if we're
3801 # using a relative directory.
3802 cp "$am_depcomp" conftest.dir
3803 cd conftest.dir
3804 # We will build objects and dependencies in a subdirectory because
3805 # it helps to detect inapplicable dependency modes. For instance
3806 # both Tru64's cc and ICC support -MD to output dependencies as a
3807 # side effect of compilation, but ICC will put the dependencies in
3808 # the current directory while Tru64 will put them in the object
3809 # directory.
3810 mkdir sub
3812 am_cv_CC_dependencies_compiler_type=none
3813 if test "$am_compiler_list" = ""; then
3814 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3816 am__universal=false
3817 case " $depcc " in #(
3818 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3819 esac
3821 for depmode in $am_compiler_list; do
3822 # Setup a source with many dependencies, because some compilers
3823 # like to wrap large dependency lists on column 80 (with \), and
3824 # we should not choose a depcomp mode which is confused by this.
3826 # We need to recreate these files for each test, as the compiler may
3827 # overwrite some of them when testing with obscure command lines.
3828 # This happens at least with the AIX C compiler.
3829 : > sub/conftest.c
3830 for i in 1 2 3 4 5 6; do
3831 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3832 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3833 # Solaris 8's {/usr,}/bin/sh.
3834 touch sub/conftst$i.h
3835 done
3836 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3838 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3839 # mode. It turns out that the SunPro C++ compiler does not properly
3840 # handle `-M -o', and we need to detect this. Also, some Intel
3841 # versions had trouble with output in subdirs
3842 am__obj=sub/conftest.${OBJEXT-o}
3843 am__minus_obj="-o $am__obj"
3844 case $depmode in
3845 gcc)
3846 # This depmode causes a compiler race in universal mode.
3847 test "$am__universal" = false || continue
3849 nosideeffect)
3850 # after this tag, mechanisms are not by side-effect, so they'll
3851 # only be used when explicitly requested
3852 if test "x$enable_dependency_tracking" = xyes; then
3853 continue
3854 else
3855 break
3858 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3859 # This compiler won't grok `-c -o', but also, the minuso test has
3860 # not run yet. These depmodes are late enough in the game, and
3861 # so weak that their functioning should not be impacted.
3862 am__obj=conftest.${OBJEXT-o}
3863 am__minus_obj=
3865 none) break ;;
3866 esac
3867 if depmode=$depmode \
3868 source=sub/conftest.c object=$am__obj \
3869 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3870 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3871 >/dev/null 2>conftest.err &&
3872 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3873 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3874 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3875 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3876 # icc doesn't choke on unknown options, it will just issue warnings
3877 # or remarks (even with -Werror). So we grep stderr for any message
3878 # that says an option was ignored or not supported.
3879 # When given -MP, icc 7.0 and 7.1 complain thusly:
3880 # icc: Command line warning: ignoring option '-M'; no argument required
3881 # The diagnosis changed in icc 8.0:
3882 # icc: Command line remark: option '-MP' not supported
3883 if (grep 'ignoring option' conftest.err ||
3884 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3885 am_cv_CC_dependencies_compiler_type=$depmode
3886 break
3889 done
3891 cd ..
3892 rm -rf conftest.dir
3893 else
3894 am_cv_CC_dependencies_compiler_type=none
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3899 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3900 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3903 test "x$enable_dependency_tracking" != xno \
3904 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3905 am__fastdepCC_TRUE=
3906 am__fastdepCC_FALSE='#'
3907 else
3908 am__fastdepCC_TRUE='#'
3909 am__fastdepCC_FALSE=
3913 ac_ext=cpp
3914 ac_cpp='$CXXCPP $CPPFLAGS'
3915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3918 if test -z "$CXX"; then
3919 if test -n "$CCC"; then
3920 CXX=$CCC
3921 else
3922 if test -n "$ac_tool_prefix"; then
3923 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3926 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928 $as_echo_n "checking for $ac_word... " >&6; }
3929 if test "${ac_cv_prog_CXX+set}" = set; then :
3930 $as_echo_n "(cached) " >&6
3931 else
3932 if test -n "$CXX"; then
3933 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3934 else
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3942 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 break 2
3946 done
3947 done
3948 IFS=$as_save_IFS
3952 CXX=$ac_cv_prog_CXX
3953 if test -n "$CXX"; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3955 $as_echo "$CXX" >&6; }
3956 else
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958 $as_echo "no" >&6; }
3962 test -n "$CXX" && break
3963 done
3965 if test -z "$CXX"; then
3966 ac_ct_CXX=$CXX
3967 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3969 # Extract the first word of "$ac_prog", so it can be a program name with args.
3970 set dummy $ac_prog; ac_word=$2
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3972 $as_echo_n "checking for $ac_word... " >&6; }
3973 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3974 $as_echo_n "(cached) " >&6
3975 else
3976 if test -n "$ac_ct_CXX"; then
3977 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3978 else
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH
3982 IFS=$as_save_IFS
3983 test -z "$as_dir" && as_dir=.
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3986 ac_cv_prog_ac_ct_CXX="$ac_prog"
3987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3988 break 2
3990 done
3991 done
3992 IFS=$as_save_IFS
3996 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3997 if test -n "$ac_ct_CXX"; then
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3999 $as_echo "$ac_ct_CXX" >&6; }
4000 else
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002 $as_echo "no" >&6; }
4006 test -n "$ac_ct_CXX" && break
4007 done
4009 if test "x$ac_ct_CXX" = x; then
4010 CXX="g++"
4011 else
4012 case $cross_compiling:$ac_tool_warned in
4013 yes:)
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4016 ac_tool_warned=yes ;;
4017 esac
4018 CXX=$ac_ct_CXX
4024 # Provide some information about the compiler.
4025 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4026 set X $ac_compile
4027 ac_compiler=$2
4028 for ac_option in --version -v -V -qversion; do
4029 { { ac_try="$ac_compiler $ac_option >&5"
4030 case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033 esac
4034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035 $as_echo "$ac_try_echo"; } >&5
4036 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4037 ac_status=$?
4038 if test -s conftest.err; then
4039 sed '10a\
4040 ... rest of stderr output deleted ...
4041 10q' conftest.err >conftest.er1
4042 cat conftest.er1 >&5
4043 rm -f conftest.er1 conftest.err
4045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4046 test $ac_status = 0; }
4047 done
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4050 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4051 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4058 main ()
4060 #ifndef __GNUC__
4061 choke me
4062 #endif
4065 return 0;
4067 _ACEOF
4068 if ac_fn_cxx_try_compile "$LINENO"; then :
4069 ac_compiler_gnu=yes
4070 else
4071 ac_compiler_gnu=no
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4078 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4079 if test $ac_compiler_gnu = yes; then
4080 GXX=yes
4081 else
4082 GXX=
4084 ac_test_CXXFLAGS=${CXXFLAGS+set}
4085 ac_save_CXXFLAGS=$CXXFLAGS
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4087 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4088 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4092 ac_cxx_werror_flag=yes
4093 ac_cv_prog_cxx_g=no
4094 CXXFLAGS="-g"
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4099 main ()
4103 return 0;
4105 _ACEOF
4106 if ac_fn_cxx_try_compile "$LINENO"; then :
4107 ac_cv_prog_cxx_g=yes
4108 else
4109 CXXFLAGS=""
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4114 main ()
4118 return 0;
4120 _ACEOF
4121 if ac_fn_cxx_try_compile "$LINENO"; then :
4123 else
4124 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4125 CXXFLAGS="-g"
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4130 main ()
4134 return 0;
4136 _ACEOF
4137 if ac_fn_cxx_try_compile "$LINENO"; then :
4138 ac_cv_prog_cxx_g=yes
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4148 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4149 if test "$ac_test_CXXFLAGS" = set; then
4150 CXXFLAGS=$ac_save_CXXFLAGS
4151 elif test $ac_cv_prog_cxx_g = yes; then
4152 if test "$GXX" = yes; then
4153 CXXFLAGS="-g -O2"
4154 else
4155 CXXFLAGS="-g"
4157 else
4158 if test "$GXX" = yes; then
4159 CXXFLAGS="-O2"
4160 else
4161 CXXFLAGS=
4164 ac_ext=c
4165 ac_cpp='$CPP $CPPFLAGS'
4166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4170 depcc="$CXX" am_compiler_list=
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4173 $as_echo_n "checking dependency style of $depcc... " >&6; }
4174 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4178 # We make a subdir and do the tests there. Otherwise we can end up
4179 # making bogus files that we don't know about and never remove. For
4180 # instance it was reported that on HP-UX the gcc test will end up
4181 # making a dummy file named `D' -- because `-MD' means `put the output
4182 # in D'.
4183 rm -rf conftest.dir
4184 mkdir conftest.dir
4185 # Copy depcomp to subdir because otherwise we won't find it if we're
4186 # using a relative directory.
4187 cp "$am_depcomp" conftest.dir
4188 cd conftest.dir
4189 # We will build objects and dependencies in a subdirectory because
4190 # it helps to detect inapplicable dependency modes. For instance
4191 # both Tru64's cc and ICC support -MD to output dependencies as a
4192 # side effect of compilation, but ICC will put the dependencies in
4193 # the current directory while Tru64 will put them in the object
4194 # directory.
4195 mkdir sub
4197 am_cv_CXX_dependencies_compiler_type=none
4198 if test "$am_compiler_list" = ""; then
4199 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4201 am__universal=false
4202 case " $depcc " in #(
4203 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4204 esac
4206 for depmode in $am_compiler_list; do
4207 # Setup a source with many dependencies, because some compilers
4208 # like to wrap large dependency lists on column 80 (with \), and
4209 # we should not choose a depcomp mode which is confused by this.
4211 # We need to recreate these files for each test, as the compiler may
4212 # overwrite some of them when testing with obscure command lines.
4213 # This happens at least with the AIX C compiler.
4214 : > sub/conftest.c
4215 for i in 1 2 3 4 5 6; do
4216 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4217 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4218 # Solaris 8's {/usr,}/bin/sh.
4219 touch sub/conftst$i.h
4220 done
4221 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4223 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4224 # mode. It turns out that the SunPro C++ compiler does not properly
4225 # handle `-M -o', and we need to detect this. Also, some Intel
4226 # versions had trouble with output in subdirs
4227 am__obj=sub/conftest.${OBJEXT-o}
4228 am__minus_obj="-o $am__obj"
4229 case $depmode in
4230 gcc)
4231 # This depmode causes a compiler race in universal mode.
4232 test "$am__universal" = false || continue
4234 nosideeffect)
4235 # after this tag, mechanisms are not by side-effect, so they'll
4236 # only be used when explicitly requested
4237 if test "x$enable_dependency_tracking" = xyes; then
4238 continue
4239 else
4240 break
4243 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4244 # This compiler won't grok `-c -o', but also, the minuso test has
4245 # not run yet. These depmodes are late enough in the game, and
4246 # so weak that their functioning should not be impacted.
4247 am__obj=conftest.${OBJEXT-o}
4248 am__minus_obj=
4250 none) break ;;
4251 esac
4252 if depmode=$depmode \
4253 source=sub/conftest.c object=$am__obj \
4254 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4255 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4256 >/dev/null 2>conftest.err &&
4257 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4258 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4259 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4260 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4261 # icc doesn't choke on unknown options, it will just issue warnings
4262 # or remarks (even with -Werror). So we grep stderr for any message
4263 # that says an option was ignored or not supported.
4264 # When given -MP, icc 7.0 and 7.1 complain thusly:
4265 # icc: Command line warning: ignoring option '-M'; no argument required
4266 # The diagnosis changed in icc 8.0:
4267 # icc: Command line remark: option '-MP' not supported
4268 if (grep 'ignoring option' conftest.err ||
4269 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4270 am_cv_CXX_dependencies_compiler_type=$depmode
4271 break
4274 done
4276 cd ..
4277 rm -rf conftest.dir
4278 else
4279 am_cv_CXX_dependencies_compiler_type=none
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4284 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4285 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4288 test "x$enable_dependency_tracking" != xno \
4289 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4290 am__fastdepCXX_TRUE=
4291 am__fastdepCXX_FALSE='#'
4292 else
4293 am__fastdepCXX_TRUE='#'
4294 am__fastdepCXX_FALSE=
4298 ac_config_files="$ac_config_files Makefile liboffloadmic_host.spec liboffloadmic_target.spec"
4300 # Default to --enable-multilib
4301 # Check whether --enable-multilib was given.
4302 if test "${enable_multilib+set}" = set; then :
4303 enableval=$enable_multilib; case "$enableval" in
4304 yes) multilib=yes ;;
4305 no) multilib=no ;;
4306 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
4307 esac
4308 else
4309 multilib=yes
4313 # We may get other options which we leave undocumented:
4314 # --with-target-subdir, --with-multisrctop, --with-multisubdir
4315 # See config-ml.in if you want the gory details.
4317 if test "$srcdir" = "."; then
4318 if test "$with_target_subdir" != "."; then
4319 multi_basedir="$srcdir/$with_multisrctop../.."
4320 else
4321 multi_basedir="$srcdir/$with_multisrctop.."
4323 else
4324 multi_basedir="$srcdir/.."
4328 # Even if the default multilib is not a cross compilation,
4329 # it may be that some of the other multilibs are.
4330 if test $cross_compiling = no && test $multilib = yes \
4331 && test "x${with_multisubdir}" != x ; then
4332 cross_compiling=maybe
4335 ac_config_commands="$ac_config_commands default-1"
4339 subdirs="$subdirs plugin"
4342 ac_ext=c
4343 ac_cpp='$CPP $CPPFLAGS'
4344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4348 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4349 # On Suns, sometimes $CPP names a directory.
4350 if test -n "$CPP" && test -d "$CPP"; then
4351 CPP=
4353 if test -z "$CPP"; then
4354 if test "${ac_cv_prog_CPP+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 # Double quotes because CPP needs to be expanded
4358 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4360 ac_preproc_ok=false
4361 for ac_c_preproc_warn_flag in '' yes
4363 # Use a header file that comes with gcc, so configuring glibc
4364 # with a fresh cross-compiler works.
4365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4366 # <limits.h> exists even on freestanding compilers.
4367 # On the NeXT, cc -E runs the code through the compiler's parser,
4368 # not just through cpp. "Syntax error" is here to catch this case.
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4371 #ifdef __STDC__
4372 # include <limits.h>
4373 #else
4374 # include <assert.h>
4375 #endif
4376 Syntax error
4377 _ACEOF
4378 if ac_fn_c_try_cpp "$LINENO"; then :
4380 else
4381 # Broken: fails on valid input.
4382 continue
4384 rm -f conftest.err conftest.$ac_ext
4386 # OK, works on sane cases. Now check whether nonexistent headers
4387 # can be detected and how.
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4390 #include <ac_nonexistent.h>
4391 _ACEOF
4392 if ac_fn_c_try_cpp "$LINENO"; then :
4393 # Broken: success on invalid input.
4394 continue
4395 else
4396 # Passes both tests.
4397 ac_preproc_ok=:
4398 break
4400 rm -f conftest.err conftest.$ac_ext
4402 done
4403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4404 rm -f conftest.err conftest.$ac_ext
4405 if $ac_preproc_ok; then :
4406 break
4409 done
4410 ac_cv_prog_CPP=$CPP
4413 CPP=$ac_cv_prog_CPP
4414 else
4415 ac_cv_prog_CPP=$CPP
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4418 $as_echo "$CPP" >&6; }
4419 ac_preproc_ok=false
4420 for ac_c_preproc_warn_flag in '' yes
4422 # Use a header file that comes with gcc, so configuring glibc
4423 # with a fresh cross-compiler works.
4424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4425 # <limits.h> exists even on freestanding compilers.
4426 # On the NeXT, cc -E runs the code through the compiler's parser,
4427 # not just through cpp. "Syntax error" is here to catch this case.
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4430 #ifdef __STDC__
4431 # include <limits.h>
4432 #else
4433 # include <assert.h>
4434 #endif
4435 Syntax error
4436 _ACEOF
4437 if ac_fn_c_try_cpp "$LINENO"; then :
4439 else
4440 # Broken: fails on valid input.
4441 continue
4443 rm -f conftest.err conftest.$ac_ext
4445 # OK, works on sane cases. Now check whether nonexistent headers
4446 # can be detected and how.
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4449 #include <ac_nonexistent.h>
4450 _ACEOF
4451 if ac_fn_c_try_cpp "$LINENO"; then :
4452 # Broken: success on invalid input.
4453 continue
4454 else
4455 # Passes both tests.
4456 ac_preproc_ok=:
4457 break
4459 rm -f conftest.err conftest.$ac_ext
4461 done
4462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4463 rm -f conftest.err conftest.$ac_ext
4464 if $ac_preproc_ok; then :
4466 else
4467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4469 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4470 See \`config.log' for more details." "$LINENO" 5; }
4473 ac_ext=c
4474 ac_cpp='$CPP $CPPFLAGS'
4475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4481 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4482 if test "${ac_cv_path_GREP+set}" = set; then :
4483 $as_echo_n "(cached) " >&6
4484 else
4485 if test -z "$GREP"; then
4486 ac_path_GREP_found=false
4487 # Loop through the user's path and test for each of PROGNAME-LIST
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4491 IFS=$as_save_IFS
4492 test -z "$as_dir" && as_dir=.
4493 for ac_prog in grep ggrep; do
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4496 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4497 # Check for GNU ac_path_GREP and select it if it is found.
4498 # Check for GNU $ac_path_GREP
4499 case `"$ac_path_GREP" --version 2>&1` in
4500 *GNU*)
4501 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4503 ac_count=0
4504 $as_echo_n 0123456789 >"conftest.in"
4505 while :
4507 cat "conftest.in" "conftest.in" >"conftest.tmp"
4508 mv "conftest.tmp" "conftest.in"
4509 cp "conftest.in" "conftest.nl"
4510 $as_echo 'GREP' >> "conftest.nl"
4511 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4512 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4513 as_fn_arith $ac_count + 1 && ac_count=$as_val
4514 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4515 # Best one so far, save it but keep looking for a better one
4516 ac_cv_path_GREP="$ac_path_GREP"
4517 ac_path_GREP_max=$ac_count
4519 # 10*(2^10) chars as input seems more than enough
4520 test $ac_count -gt 10 && break
4521 done
4522 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4523 esac
4525 $ac_path_GREP_found && break 3
4526 done
4527 done
4528 done
4529 IFS=$as_save_IFS
4530 if test -z "$ac_cv_path_GREP"; then
4531 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4533 else
4534 ac_cv_path_GREP=$GREP
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4539 $as_echo "$ac_cv_path_GREP" >&6; }
4540 GREP="$ac_cv_path_GREP"
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4544 $as_echo_n "checking for egrep... " >&6; }
4545 if test "${ac_cv_path_EGREP+set}" = set; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4549 then ac_cv_path_EGREP="$GREP -E"
4550 else
4551 if test -z "$EGREP"; then
4552 ac_path_EGREP_found=false
4553 # Loop through the user's path and test for each of PROGNAME-LIST
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_prog in egrep; do
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4562 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4563 # Check for GNU ac_path_EGREP and select it if it is found.
4564 # Check for GNU $ac_path_EGREP
4565 case `"$ac_path_EGREP" --version 2>&1` in
4566 *GNU*)
4567 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4569 ac_count=0
4570 $as_echo_n 0123456789 >"conftest.in"
4571 while :
4573 cat "conftest.in" "conftest.in" >"conftest.tmp"
4574 mv "conftest.tmp" "conftest.in"
4575 cp "conftest.in" "conftest.nl"
4576 $as_echo 'EGREP' >> "conftest.nl"
4577 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4578 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4579 as_fn_arith $ac_count + 1 && ac_count=$as_val
4580 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4581 # Best one so far, save it but keep looking for a better one
4582 ac_cv_path_EGREP="$ac_path_EGREP"
4583 ac_path_EGREP_max=$ac_count
4585 # 10*(2^10) chars as input seems more than enough
4586 test $ac_count -gt 10 && break
4587 done
4588 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4589 esac
4591 $ac_path_EGREP_found && break 3
4592 done
4593 done
4594 done
4595 IFS=$as_save_IFS
4596 if test -z "$ac_cv_path_EGREP"; then
4597 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4599 else
4600 ac_cv_path_EGREP=$EGREP
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4606 $as_echo "$ac_cv_path_EGREP" >&6; }
4607 EGREP="$ac_cv_path_EGREP"
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4611 $as_echo_n "checking for ANSI C header files... " >&6; }
4612 if test "${ac_cv_header_stdc+set}" = set; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4617 #include <stdlib.h>
4618 #include <stdarg.h>
4619 #include <string.h>
4620 #include <float.h>
4623 main ()
4627 return 0;
4629 _ACEOF
4630 if ac_fn_c_try_compile "$LINENO"; then :
4631 ac_cv_header_stdc=yes
4632 else
4633 ac_cv_header_stdc=no
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 if test $ac_cv_header_stdc = yes; then
4638 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h. */
4641 #include <string.h>
4643 _ACEOF
4644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4645 $EGREP "memchr" >/dev/null 2>&1; then :
4647 else
4648 ac_cv_header_stdc=no
4650 rm -f conftest*
4654 if test $ac_cv_header_stdc = yes; then
4655 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4658 #include <stdlib.h>
4660 _ACEOF
4661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4662 $EGREP "free" >/dev/null 2>&1; then :
4664 else
4665 ac_cv_header_stdc=no
4667 rm -f conftest*
4671 if test $ac_cv_header_stdc = yes; then
4672 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4673 if test "$cross_compiling" = yes; then :
4675 else
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4678 #include <ctype.h>
4679 #include <stdlib.h>
4680 #if ((' ' & 0x0FF) == 0x020)
4681 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4682 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4683 #else
4684 # define ISLOWER(c) \
4685 (('a' <= (c) && (c) <= 'i') \
4686 || ('j' <= (c) && (c) <= 'r') \
4687 || ('s' <= (c) && (c) <= 'z'))
4688 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4689 #endif
4691 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4693 main ()
4695 int i;
4696 for (i = 0; i < 256; i++)
4697 if (XOR (islower (i), ISLOWER (i))
4698 || toupper (i) != TOUPPER (i))
4699 return 2;
4700 return 0;
4702 _ACEOF
4703 if ac_fn_c_try_run "$LINENO"; then :
4705 else
4706 ac_cv_header_stdc=no
4708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4709 conftest.$ac_objext conftest.beam conftest.$ac_ext
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4715 $as_echo "$ac_cv_header_stdc" >&6; }
4716 if test $ac_cv_header_stdc = yes; then
4718 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4722 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4723 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4724 inttypes.h stdint.h unistd.h
4725 do :
4726 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4727 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4729 eval as_val=\$$as_ac_Header
4730 if test "x$as_val" = x""yes; then :
4731 cat >>confdefs.h <<_ACEOF
4732 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4733 _ACEOF
4737 done
4740 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4741 # for constant arguments. Useless!
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4743 $as_echo_n "checking for working alloca.h... " >&6; }
4744 if test "${ac_cv_working_alloca_h+set}" = set; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4749 #include <alloca.h>
4751 main ()
4753 char *p = (char *) alloca (2 * sizeof (int));
4754 if (p) return 0;
4756 return 0;
4758 _ACEOF
4759 if ac_fn_c_try_link "$LINENO"; then :
4760 ac_cv_working_alloca_h=yes
4761 else
4762 ac_cv_working_alloca_h=no
4764 rm -f core conftest.err conftest.$ac_objext \
4765 conftest$ac_exeext conftest.$ac_ext
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4768 $as_echo "$ac_cv_working_alloca_h" >&6; }
4769 if test $ac_cv_working_alloca_h = yes; then
4771 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4776 $as_echo_n "checking for alloca... " >&6; }
4777 if test "${ac_cv_func_alloca_works+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4782 #ifdef __GNUC__
4783 # define alloca __builtin_alloca
4784 #else
4785 # ifdef _MSC_VER
4786 # include <malloc.h>
4787 # define alloca _alloca
4788 # else
4789 # ifdef HAVE_ALLOCA_H
4790 # include <alloca.h>
4791 # else
4792 # ifdef _AIX
4793 #pragma alloca
4794 # else
4795 # ifndef alloca /* predefined by HP cc +Olibcalls */
4796 char *alloca ();
4797 # endif
4798 # endif
4799 # endif
4800 # endif
4801 #endif
4804 main ()
4806 char *p = (char *) alloca (1);
4807 if (p) return 0;
4809 return 0;
4811 _ACEOF
4812 if ac_fn_c_try_link "$LINENO"; then :
4813 ac_cv_func_alloca_works=yes
4814 else
4815 ac_cv_func_alloca_works=no
4817 rm -f core conftest.err conftest.$ac_objext \
4818 conftest$ac_exeext conftest.$ac_ext
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4821 $as_echo "$ac_cv_func_alloca_works" >&6; }
4823 if test $ac_cv_func_alloca_works = yes; then
4825 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4827 else
4828 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4829 # that cause trouble. Some versions do not even contain alloca or
4830 # contain a buggy version. If you still want to use their alloca,
4831 # use ar to extract alloca.o from them instead of compiling alloca.c.
4833 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4835 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4839 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4840 if test "${ac_cv_os_cray+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4845 #if defined CRAY && ! defined CRAY2
4846 webecray
4847 #else
4848 wenotbecray
4849 #endif
4851 _ACEOF
4852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4853 $EGREP "webecray" >/dev/null 2>&1; then :
4854 ac_cv_os_cray=yes
4855 else
4856 ac_cv_os_cray=no
4858 rm -f conftest*
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4862 $as_echo "$ac_cv_os_cray" >&6; }
4863 if test $ac_cv_os_cray = yes; then
4864 for ac_func in _getb67 GETB67 getb67; do
4865 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4866 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4867 eval as_val=\$$as_ac_var
4868 if test "x$as_val" = x""yes; then :
4870 cat >>confdefs.h <<_ACEOF
4871 #define CRAY_STACKSEG_END $ac_func
4872 _ACEOF
4874 break
4877 done
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4881 $as_echo_n "checking stack direction for C alloca... " >&6; }
4882 if test "${ac_cv_c_stack_direction+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 if test "$cross_compiling" = yes; then :
4886 ac_cv_c_stack_direction=0
4887 else
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4890 $ac_includes_default
4892 find_stack_direction ()
4894 static char *addr = 0;
4895 auto char dummy;
4896 if (addr == 0)
4898 addr = &dummy;
4899 return find_stack_direction ();
4901 else
4902 return (&dummy > addr) ? 1 : -1;
4906 main ()
4908 return find_stack_direction () < 0;
4910 _ACEOF
4911 if ac_fn_c_try_run "$LINENO"; then :
4912 ac_cv_c_stack_direction=1
4913 else
4914 ac_cv_c_stack_direction=-1
4916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4917 conftest.$ac_objext conftest.beam conftest.$ac_ext
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4922 $as_echo "$ac_cv_c_stack_direction" >&6; }
4923 cat >>confdefs.h <<_ACEOF
4924 #define STACK_DIRECTION $ac_cv_c_stack_direction
4925 _ACEOF
4930 for ac_header in mm_malloc.h
4931 do :
4932 ac_fn_c_check_header_mongrel "$LINENO" "mm_malloc.h" "ac_cv_header_mm_malloc_h" "$ac_includes_default"
4933 if test "x$ac_cv_header_mm_malloc_h" = x""yes; then :
4934 cat >>confdefs.h <<_ACEOF
4935 #define HAVE_MM_MALLOC_H 1
4936 _ACEOF
4938 else
4939 as_fn_error "\"Couldn't find mm_malloc.h\"" "$LINENO" 5
4942 done
4944 for ac_func in __secure_getenv secure_getenv
4945 do :
4946 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4947 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4948 eval as_val=\$$as_ac_var
4949 if test "x$as_val" = x""yes; then :
4950 cat >>confdefs.h <<_ACEOF
4951 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4952 _ACEOF
4955 done
4958 # Get target configure.
4959 . ${srcdir}/configure.tgt
4960 if test -n "$UNSUPPORTED"; then
4961 as_fn_error "Configuration ${target} is unsupported" "$LINENO" 5
4964 if test "${multilib}" = "yes"; then
4965 multilib_arg="--enable-multilib"
4966 else
4967 multilib_arg=
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
4971 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
4972 # Check whether --enable-version-specific-runtime-libs was given.
4973 if test "${enable_version_specific_runtime_libs+set}" = set; then :
4974 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4975 yes) enable_version_specific_runtime_libs=yes ;;
4976 no) enable_version_specific_runtime_libs=no ;;
4977 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
4978 esac
4979 else
4980 enable_version_specific_runtime_libs=no
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
4984 $as_echo "$enable_version_specific_runtime_libs" >&6; }
4986 # Make sure liboffloadmic is enabled
4987 case "$enable_liboffloadmic" in
4988 host | target)
4991 as_fn_error "Liboffloadmic is disabled" "$LINENO" 5 ;;
4992 esac
4993 if test x"$enable_liboffloadmic" = xhost; then
4994 LIBOFFLOADMIC_HOST_TRUE=
4995 LIBOFFLOADMIC_HOST_FALSE='#'
4996 else
4997 LIBOFFLOADMIC_HOST_TRUE='#'
4998 LIBOFFLOADMIC_HOST_FALSE=
5002 # Calculate toolexeclibdir.
5003 # Also toolexecdir, though it's only used in toolexeclibdir.
5004 case ${enable_version_specific_runtime_libs} in
5005 yes)
5006 # Need the gcc compiler version to know where to install libraries
5007 # and header files if --enable-version-specific-runtime-libs option
5008 # is selected.
5009 toolexecdir='$(libdir)/gcc/$(target_alias)'
5010 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5013 if test -n "$with_cross_host" &&
5014 test x"$with_cross_host" != x"no"; then
5015 # Install a library built with a cross compiler in tooldir, not libdir.
5016 toolexecdir='$(exec_prefix)/$(target_alias)'
5017 toolexeclibdir='$(toolexecdir)/lib'
5018 else
5019 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5020 toolexeclibdir='$(libdir)'
5022 multi_os_directory=`$CC -print-multi-os-directory`
5023 case $multi_os_directory in
5024 .) ;; # Avoid trailing /.
5025 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5026 esac
5028 esac
5030 enable_dlopen=yes
5034 case `pwd` in
5035 *\ * | *\ *)
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5037 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5038 esac
5042 macro_version='2.2.7a'
5043 macro_revision='1.3134'
5057 ltmain="$ac_aux_dir/ltmain.sh"
5059 # Backslashify metacharacters that are still active within
5060 # double-quoted strings.
5061 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5063 # Same as above, but do not quote variable references.
5064 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5066 # Sed substitution to delay expansion of an escaped shell variable in a
5067 # double_quote_subst'ed string.
5068 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5070 # Sed substitution to delay expansion of an escaped single quote.
5071 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5073 # Sed substitution to avoid accidental globbing in evaled expressions
5074 no_glob_subst='s/\*/\\\*/g'
5076 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5077 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5078 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5081 $as_echo_n "checking how to print strings... " >&6; }
5082 # Test print first, because it will be a builtin if present.
5083 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5084 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5085 ECHO='print -r --'
5086 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5087 ECHO='printf %s\n'
5088 else
5089 # Use this function as a fallback that always works.
5090 func_fallback_echo ()
5092 eval 'cat <<_LTECHO_EOF
5094 _LTECHO_EOF'
5096 ECHO='func_fallback_echo'
5099 # func_echo_all arg...
5100 # Invoke $ECHO with all args, space-separated.
5101 func_echo_all ()
5103 $ECHO ""
5106 case "$ECHO" in
5107 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5108 $as_echo "printf" >&6; } ;;
5109 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5110 $as_echo "print -r" >&6; } ;;
5111 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5112 $as_echo "cat" >&6; } ;;
5113 esac
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5129 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5130 if test "${ac_cv_path_SED+set}" = set; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5134 for ac_i in 1 2 3 4 5 6 7; do
5135 ac_script="$ac_script$as_nl$ac_script"
5136 done
5137 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5138 { ac_script=; unset ac_script;}
5139 if test -z "$SED"; then
5140 ac_path_SED_found=false
5141 # Loop through the user's path and test for each of PROGNAME-LIST
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_prog in sed gsed; do
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5150 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5151 # Check for GNU ac_path_SED and select it if it is found.
5152 # Check for GNU $ac_path_SED
5153 case `"$ac_path_SED" --version 2>&1` in
5154 *GNU*)
5155 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5157 ac_count=0
5158 $as_echo_n 0123456789 >"conftest.in"
5159 while :
5161 cat "conftest.in" "conftest.in" >"conftest.tmp"
5162 mv "conftest.tmp" "conftest.in"
5163 cp "conftest.in" "conftest.nl"
5164 $as_echo '' >> "conftest.nl"
5165 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5167 as_fn_arith $ac_count + 1 && ac_count=$as_val
5168 if test $ac_count -gt ${ac_path_SED_max-0}; then
5169 # Best one so far, save it but keep looking for a better one
5170 ac_cv_path_SED="$ac_path_SED"
5171 ac_path_SED_max=$ac_count
5173 # 10*(2^10) chars as input seems more than enough
5174 test $ac_count -gt 10 && break
5175 done
5176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5177 esac
5179 $ac_path_SED_found && break 3
5180 done
5181 done
5182 done
5183 IFS=$as_save_IFS
5184 if test -z "$ac_cv_path_SED"; then
5185 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5187 else
5188 ac_cv_path_SED=$SED
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5193 $as_echo "$ac_cv_path_SED" >&6; }
5194 SED="$ac_cv_path_SED"
5195 rm -f conftest.sed
5197 test -z "$SED" && SED=sed
5198 Xsed="$SED -e 1s/^X//"
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5211 $as_echo_n "checking for fgrep... " >&6; }
5212 if test "${ac_cv_path_FGREP+set}" = set; then :
5213 $as_echo_n "(cached) " >&6
5214 else
5215 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5216 then ac_cv_path_FGREP="$GREP -F"
5217 else
5218 if test -z "$FGREP"; then
5219 ac_path_FGREP_found=false
5220 # Loop through the user's path and test for each of PROGNAME-LIST
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_prog in fgrep; do
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5229 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5230 # Check for GNU ac_path_FGREP and select it if it is found.
5231 # Check for GNU $ac_path_FGREP
5232 case `"$ac_path_FGREP" --version 2>&1` in
5233 *GNU*)
5234 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5236 ac_count=0
5237 $as_echo_n 0123456789 >"conftest.in"
5238 while :
5240 cat "conftest.in" "conftest.in" >"conftest.tmp"
5241 mv "conftest.tmp" "conftest.in"
5242 cp "conftest.in" "conftest.nl"
5243 $as_echo 'FGREP' >> "conftest.nl"
5244 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5246 as_fn_arith $ac_count + 1 && ac_count=$as_val
5247 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5248 # Best one so far, save it but keep looking for a better one
5249 ac_cv_path_FGREP="$ac_path_FGREP"
5250 ac_path_FGREP_max=$ac_count
5252 # 10*(2^10) chars as input seems more than enough
5253 test $ac_count -gt 10 && break
5254 done
5255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5256 esac
5258 $ac_path_FGREP_found && break 3
5259 done
5260 done
5261 done
5262 IFS=$as_save_IFS
5263 if test -z "$ac_cv_path_FGREP"; then
5264 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5266 else
5267 ac_cv_path_FGREP=$FGREP
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5273 $as_echo "$ac_cv_path_FGREP" >&6; }
5274 FGREP="$ac_cv_path_FGREP"
5277 test -z "$GREP" && GREP=grep
5297 # Check whether --with-gnu-ld was given.
5298 if test "${with_gnu_ld+set}" = set; then :
5299 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5300 else
5301 with_gnu_ld=no
5304 ac_prog=ld
5305 if test "$GCC" = yes; then
5306 # Check if gcc -print-prog-name=ld gives a path.
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5308 $as_echo_n "checking for ld used by $CC... " >&6; }
5309 case $host in
5310 *-*-mingw*)
5311 # gcc leaves a trailing carriage return which upsets mingw
5312 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5314 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5315 esac
5316 case $ac_prog in
5317 # Accept absolute paths.
5318 [\\/]* | ?:[\\/]*)
5319 re_direlt='/[^/][^/]*/\.\./'
5320 # Canonicalize the pathname of ld
5321 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5322 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5323 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5324 done
5325 test -z "$LD" && LD="$ac_prog"
5328 # If it fails, then pretend we aren't using GCC.
5329 ac_prog=ld
5332 # If it is relative, then search for the first ld in PATH.
5333 with_gnu_ld=unknown
5335 esac
5336 elif test "$with_gnu_ld" = yes; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5338 $as_echo_n "checking for GNU ld... " >&6; }
5339 else
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5341 $as_echo_n "checking for non-GNU ld... " >&6; }
5343 if test "${lt_cv_path_LD+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 if test -z "$LD"; then
5347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5348 for ac_dir in $PATH; do
5349 IFS="$lt_save_ifs"
5350 test -z "$ac_dir" && ac_dir=.
5351 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5352 lt_cv_path_LD="$ac_dir/$ac_prog"
5353 # Check to see if the program is GNU ld. I'd rather use --version,
5354 # but apparently some variants of GNU ld only accept -v.
5355 # Break only if it was the GNU/non-GNU ld that we prefer.
5356 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5357 *GNU* | *'with BFD'*)
5358 test "$with_gnu_ld" != no && break
5361 test "$with_gnu_ld" != yes && break
5363 esac
5365 done
5366 IFS="$lt_save_ifs"
5367 else
5368 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5372 LD="$lt_cv_path_LD"
5373 if test -n "$LD"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5375 $as_echo "$LD" >&6; }
5376 else
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5380 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5382 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5383 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5387 case `$LD -v 2>&1 </dev/null` in
5388 *GNU* | *'with BFD'*)
5389 lt_cv_prog_gnu_ld=yes
5392 lt_cv_prog_gnu_ld=no
5394 esac
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5397 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5398 with_gnu_ld=$lt_cv_prog_gnu_ld
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5409 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5410 if test "${lt_cv_path_NM+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 if test -n "$NM"; then
5414 # Let the user override the test.
5415 lt_cv_path_NM="$NM"
5416 else
5417 lt_nm_to_check="${ac_tool_prefix}nm"
5418 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5419 lt_nm_to_check="$lt_nm_to_check nm"
5421 for lt_tmp_nm in $lt_nm_to_check; do
5422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5423 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5424 IFS="$lt_save_ifs"
5425 test -z "$ac_dir" && ac_dir=.
5426 tmp_nm="$ac_dir/$lt_tmp_nm"
5427 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5428 # Check to see if the nm accepts a BSD-compat flag.
5429 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5430 # nm: unknown option "B" ignored
5431 # Tru64's nm complains that /dev/null is an invalid object file
5432 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5433 */dev/null* | *'Invalid file or object type'*)
5434 lt_cv_path_NM="$tmp_nm -B"
5435 break
5438 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5439 */dev/null*)
5440 lt_cv_path_NM="$tmp_nm -p"
5441 break
5444 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5445 continue # so that we can try to find one that supports BSD flags
5447 esac
5449 esac
5451 done
5452 IFS="$lt_save_ifs"
5453 done
5454 : ${lt_cv_path_NM=no}
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5458 $as_echo "$lt_cv_path_NM" >&6; }
5459 if test "$lt_cv_path_NM" != "no"; then
5460 NM="$lt_cv_path_NM"
5461 else
5462 # Didn't find any BSD compatible name lister, look for dumpbin.
5463 if test -n "$DUMPBIN"; then :
5464 # Let the user override the test.
5465 else
5466 if test -n "$ac_tool_prefix"; then
5467 for ac_prog in dumpbin "link -dump"
5469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5470 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 if test -n "$DUMPBIN"; then
5477 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5478 else
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
5490 done
5491 done
5492 IFS=$as_save_IFS
5496 DUMPBIN=$ac_cv_prog_DUMPBIN
5497 if test -n "$DUMPBIN"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5499 $as_echo "$DUMPBIN" >&6; }
5500 else
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5506 test -n "$DUMPBIN" && break
5507 done
5509 if test -z "$DUMPBIN"; then
5510 ac_ct_DUMPBIN=$DUMPBIN
5511 for ac_prog in dumpbin "link -dump"
5513 # Extract the first word of "$ac_prog", so it can be a program name with args.
5514 set dummy $ac_prog; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 if test -n "$ac_ct_DUMPBIN"; then
5521 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5522 else
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5526 IFS=$as_save_IFS
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5530 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 break 2
5534 done
5535 done
5536 IFS=$as_save_IFS
5540 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5541 if test -n "$ac_ct_DUMPBIN"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5543 $as_echo "$ac_ct_DUMPBIN" >&6; }
5544 else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5550 test -n "$ac_ct_DUMPBIN" && break
5551 done
5553 if test "x$ac_ct_DUMPBIN" = x; then
5554 DUMPBIN=":"
5555 else
5556 case $cross_compiling:$ac_tool_warned in
5557 yes:)
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5560 ac_tool_warned=yes ;;
5561 esac
5562 DUMPBIN=$ac_ct_DUMPBIN
5566 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5567 *COFF*)
5568 DUMPBIN="$DUMPBIN -symbols"
5571 DUMPBIN=:
5573 esac
5576 if test "$DUMPBIN" != ":"; then
5577 NM="$DUMPBIN"
5580 test -z "$NM" && NM=nm
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5588 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5589 if test "${lt_cv_nm_interface+set}" = set; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 lt_cv_nm_interface="BSD nm"
5593 echo "int some_variable = 0;" > conftest.$ac_ext
5594 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5595 (eval "$ac_compile" 2>conftest.err)
5596 cat conftest.err >&5
5597 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5598 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5599 cat conftest.err >&5
5600 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5601 cat conftest.out >&5
5602 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5603 lt_cv_nm_interface="MS dumpbin"
5605 rm -f conftest*
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5608 $as_echo "$lt_cv_nm_interface" >&6; }
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5611 $as_echo_n "checking whether ln -s works... " >&6; }
5612 LN_S=$as_ln_s
5613 if test "$LN_S" = "ln -s"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5615 $as_echo "yes" >&6; }
5616 else
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5618 $as_echo "no, using $LN_S" >&6; }
5621 # find the maximum length of command line arguments
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5623 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5624 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5625 $as_echo_n "(cached) " >&6
5626 else
5628 teststring="ABCD"
5630 case $build_os in
5631 msdosdjgpp*)
5632 # On DJGPP, this test can blow up pretty badly due to problems in libc
5633 # (any single argument exceeding 2000 bytes causes a buffer overrun
5634 # during glob expansion). Even if it were fixed, the result of this
5635 # check would be larger than it should be.
5636 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5639 gnu*)
5640 # Under GNU Hurd, this test is not required because there is
5641 # no limit to the length of command line arguments.
5642 # Libtool will interpret -1 as no limit whatsoever
5643 lt_cv_sys_max_cmd_len=-1;
5646 cygwin* | mingw* | cegcc*)
5647 # On Win9x/ME, this test blows up -- it succeeds, but takes
5648 # about 5 minutes as the teststring grows exponentially.
5649 # Worse, since 9x/ME are not pre-emptively multitasking,
5650 # you end up with a "frozen" computer, even though with patience
5651 # the test eventually succeeds (with a max line length of 256k).
5652 # Instead, let's just punt: use the minimum linelength reported by
5653 # all of the supported platforms: 8192 (on NT/2K/XP).
5654 lt_cv_sys_max_cmd_len=8192;
5657 mint*)
5658 # On MiNT this can take a long time and run out of memory.
5659 lt_cv_sys_max_cmd_len=8192;
5662 amigaos*)
5663 # On AmigaOS with pdksh, this test takes hours, literally.
5664 # So we just punt and use a minimum line length of 8192.
5665 lt_cv_sys_max_cmd_len=8192;
5668 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5669 # This has been around since 386BSD, at least. Likely further.
5670 if test -x /sbin/sysctl; then
5671 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5672 elif test -x /usr/sbin/sysctl; then
5673 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5674 else
5675 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5677 # And add a safety zone
5678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5682 interix*)
5683 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5684 lt_cv_sys_max_cmd_len=196608
5687 osf*)
5688 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5689 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5690 # nice to cause kernel panics so lets avoid the loop below.
5691 # First set a reasonable default.
5692 lt_cv_sys_max_cmd_len=16384
5694 if test -x /sbin/sysconfig; then
5695 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5696 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5697 esac
5700 sco3.2v5*)
5701 lt_cv_sys_max_cmd_len=102400
5703 sysv5* | sco5v6* | sysv4.2uw2*)
5704 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5705 if test -n "$kargmax"; then
5706 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5707 else
5708 lt_cv_sys_max_cmd_len=32768
5712 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5713 if test -n "$lt_cv_sys_max_cmd_len"; then
5714 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5716 else
5717 # Make teststring a little bigger before we do anything with it.
5718 # a 1K string should be a reasonable start.
5719 for i in 1 2 3 4 5 6 7 8 ; do
5720 teststring=$teststring$teststring
5721 done
5722 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5723 # If test is not a shell built-in, we'll probably end up computing a
5724 # maximum length that is only half of the actual maximum length, but
5725 # we can't tell.
5726 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5727 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5728 test $i != 17 # 1/2 MB should be enough
5730 i=`expr $i + 1`
5731 teststring=$teststring$teststring
5732 done
5733 # Only check the string length outside the loop.
5734 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5735 teststring=
5736 # Add a significant safety factor because C++ compilers can tack on
5737 # massive amounts of additional arguments before passing them to the
5738 # linker. It appears as though 1/2 is a usable value.
5739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5742 esac
5746 if test -n $lt_cv_sys_max_cmd_len ; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5748 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5749 else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5751 $as_echo "none" >&6; }
5753 max_cmd_len=$lt_cv_sys_max_cmd_len
5760 : ${CP="cp -f"}
5761 : ${MV="mv -f"}
5762 : ${RM="rm -f"}
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5765 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5766 # Try some XSI features
5767 xsi_shell=no
5768 ( _lt_dummy="a/b/c"
5769 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5770 = c,a/b,, \
5771 && eval 'test $(( 1 + 1 )) -eq 2 \
5772 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5773 && xsi_shell=yes
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5775 $as_echo "$xsi_shell" >&6; }
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5779 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5780 lt_shell_append=no
5781 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5782 >/dev/null 2>&1 \
5783 && lt_shell_append=yes
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5785 $as_echo "$lt_shell_append" >&6; }
5788 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5789 lt_unset=unset
5790 else
5791 lt_unset=false
5798 # test EBCDIC or ASCII
5799 case `echo X|tr X '\101'` in
5800 A) # ASCII based system
5801 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5802 lt_SP2NL='tr \040 \012'
5803 lt_NL2SP='tr \015\012 \040\040'
5805 *) # EBCDIC based system
5806 lt_SP2NL='tr \100 \n'
5807 lt_NL2SP='tr \r\n \100\100'
5809 esac
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5820 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5821 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5824 lt_cv_ld_reload_flag='-r'
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5827 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5828 reload_flag=$lt_cv_ld_reload_flag
5829 case $reload_flag in
5830 "" | " "*) ;;
5831 *) reload_flag=" $reload_flag" ;;
5832 esac
5833 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5834 case $host_os in
5835 darwin*)
5836 if test "$GCC" = yes; then
5837 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5838 else
5839 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5842 esac
5852 if test -n "$ac_tool_prefix"; then
5853 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5854 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 if test -n "$OBJDUMP"; then
5861 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5862 else
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 break 2
5874 done
5875 done
5876 IFS=$as_save_IFS
5880 OBJDUMP=$ac_cv_prog_OBJDUMP
5881 if test -n "$OBJDUMP"; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5883 $as_echo "$OBJDUMP" >&6; }
5884 else
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5891 if test -z "$ac_cv_prog_OBJDUMP"; then
5892 ac_ct_OBJDUMP=$OBJDUMP
5893 # Extract the first word of "objdump", so it can be a program name with args.
5894 set dummy objdump; ac_word=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
5899 else
5900 if test -n "$ac_ct_OBJDUMP"; then
5901 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5906 IFS=$as_save_IFS
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5910 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 break 2
5914 done
5915 done
5916 IFS=$as_save_IFS
5920 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5921 if test -n "$ac_ct_OBJDUMP"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5923 $as_echo "$ac_ct_OBJDUMP" >&6; }
5924 else
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5929 if test "x$ac_ct_OBJDUMP" = x; then
5930 OBJDUMP="false"
5931 else
5932 case $cross_compiling:$ac_tool_warned in
5933 yes:)
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5936 ac_tool_warned=yes ;;
5937 esac
5938 OBJDUMP=$ac_ct_OBJDUMP
5940 else
5941 OBJDUMP="$ac_cv_prog_OBJDUMP"
5944 test -z "$OBJDUMP" && OBJDUMP=objdump
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5955 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5956 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 lt_cv_file_magic_cmd='$MAGIC_CMD'
5960 lt_cv_file_magic_test_file=
5961 lt_cv_deplibs_check_method='unknown'
5962 # Need to set the preceding variable on all platforms that support
5963 # interlibrary dependencies.
5964 # 'none' -- dependencies not supported.
5965 # `unknown' -- same as none, but documents that we really don't know.
5966 # 'pass_all' -- all dependencies passed with no checks.
5967 # 'test_compile' -- check by making test program.
5968 # 'file_magic [[regex]]' -- check by looking for files in library path
5969 # which responds to the $file_magic_cmd with a given extended regex.
5970 # If you have `file' or equivalent on your system and you're not sure
5971 # whether `pass_all' will *always* work, you probably want this one.
5973 case $host_os in
5974 aix[4-9]*)
5975 lt_cv_deplibs_check_method=pass_all
5978 beos*)
5979 lt_cv_deplibs_check_method=pass_all
5982 bsdi[45]*)
5983 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5984 lt_cv_file_magic_cmd='/usr/bin/file -L'
5985 lt_cv_file_magic_test_file=/shlib/libc.so
5988 cygwin*)
5989 # func_win32_libid is a shell function defined in ltmain.sh
5990 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5991 lt_cv_file_magic_cmd='func_win32_libid'
5994 mingw* | pw32*)
5995 # Base MSYS/MinGW do not provide the 'file' command needed by
5996 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5997 # unless we find 'file', for example because we are cross-compiling.
5998 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5999 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6000 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6001 lt_cv_file_magic_cmd='func_win32_libid'
6002 else
6003 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6004 lt_cv_file_magic_cmd='$OBJDUMP -f'
6008 cegcc*)
6009 # use the weaker test based on 'objdump'. See mingw*.
6010 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6011 lt_cv_file_magic_cmd='$OBJDUMP -f'
6014 darwin* | rhapsody*)
6015 lt_cv_deplibs_check_method=pass_all
6018 freebsd* | dragonfly*)
6019 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6020 case $host_cpu in
6021 i*86 )
6022 # Not sure whether the presence of OpenBSD here was a mistake.
6023 # Let's accept both of them until this is cleared up.
6024 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6025 lt_cv_file_magic_cmd=/usr/bin/file
6026 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6028 esac
6029 else
6030 lt_cv_deplibs_check_method=pass_all
6034 gnu*)
6035 lt_cv_deplibs_check_method=pass_all
6038 haiku*)
6039 lt_cv_deplibs_check_method=pass_all
6042 hpux10.20* | hpux11*)
6043 lt_cv_file_magic_cmd=/usr/bin/file
6044 case $host_cpu in
6045 ia64*)
6046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6047 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6049 hppa*64*)
6050 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]'
6051 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6054 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6055 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6057 esac
6060 interix[3-9]*)
6061 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6065 irix5* | irix6* | nonstopux*)
6066 case $LD in
6067 *-32|*"-32 ") libmagic=32-bit;;
6068 *-n32|*"-n32 ") libmagic=N32;;
6069 *-64|*"-64 ") libmagic=64-bit;;
6070 *) libmagic=never-match;;
6071 esac
6072 lt_cv_deplibs_check_method=pass_all
6075 # This must be Linux ELF.
6076 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6077 lt_cv_deplibs_check_method=pass_all
6080 netbsd*)
6081 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6083 else
6084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6088 newos6*)
6089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6090 lt_cv_file_magic_cmd=/usr/bin/file
6091 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6094 *nto* | *qnx*)
6095 lt_cv_deplibs_check_method=pass_all
6098 openbsd*)
6099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6101 else
6102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6106 osf3* | osf4* | osf5*)
6107 lt_cv_deplibs_check_method=pass_all
6110 rdos*)
6111 lt_cv_deplibs_check_method=pass_all
6114 solaris*)
6115 lt_cv_deplibs_check_method=pass_all
6118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6119 lt_cv_deplibs_check_method=pass_all
6122 sysv4 | sysv4.3*)
6123 case $host_vendor in
6124 motorola)
6125 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]'
6126 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6128 ncr)
6129 lt_cv_deplibs_check_method=pass_all
6131 sequent)
6132 lt_cv_file_magic_cmd='/bin/file'
6133 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6135 sni)
6136 lt_cv_file_magic_cmd='/bin/file'
6137 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6138 lt_cv_file_magic_test_file=/lib/libc.so
6140 siemens)
6141 lt_cv_deplibs_check_method=pass_all
6144 lt_cv_deplibs_check_method=pass_all
6146 esac
6149 tpf*)
6150 lt_cv_deplibs_check_method=pass_all
6152 esac
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6156 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6157 file_magic_cmd=$lt_cv_file_magic_cmd
6158 deplibs_check_method=$lt_cv_deplibs_check_method
6159 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6172 if test -n "$ac_tool_prefix"; then
6173 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6174 set dummy ${ac_tool_prefix}ar; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if test "${ac_cv_prog_AR+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6179 else
6180 if test -n "$AR"; then
6181 ac_cv_prog_AR="$AR" # Let the user override the test.
6182 else
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6186 IFS=$as_save_IFS
6187 test -z "$as_dir" && as_dir=.
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6190 ac_cv_prog_AR="${ac_tool_prefix}ar"
6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 break 2
6194 done
6195 done
6196 IFS=$as_save_IFS
6200 AR=$ac_cv_prog_AR
6201 if test -n "$AR"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6203 $as_echo "$AR" >&6; }
6204 else
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6211 if test -z "$ac_cv_prog_AR"; then
6212 ac_ct_AR=$AR
6213 # Extract the first word of "ar", so it can be a program name with args.
6214 set dummy ar; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 if test -n "$ac_ct_AR"; then
6221 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6230 ac_cv_prog_ac_ct_AR="ar"
6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 break 2
6234 done
6235 done
6236 IFS=$as_save_IFS
6240 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6241 if test -n "$ac_ct_AR"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6243 $as_echo "$ac_ct_AR" >&6; }
6244 else
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6249 if test "x$ac_ct_AR" = x; then
6250 AR="false"
6251 else
6252 case $cross_compiling:$ac_tool_warned in
6253 yes:)
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6256 ac_tool_warned=yes ;;
6257 esac
6258 AR=$ac_ct_AR
6260 else
6261 AR="$ac_cv_prog_AR"
6264 test -z "$AR" && AR=ar
6265 test -z "$AR_FLAGS" && AR_FLAGS=cru
6277 if test -n "$ac_tool_prefix"; then
6278 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6279 set dummy ${ac_tool_prefix}strip; ac_word=$2
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if test "${ac_cv_prog_STRIP+set}" = set; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6285 if test -n "$STRIP"; then
6286 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6287 else
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 break 2
6299 done
6300 done
6301 IFS=$as_save_IFS
6305 STRIP=$ac_cv_prog_STRIP
6306 if test -n "$STRIP"; then
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6308 $as_echo "$STRIP" >&6; }
6309 else
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311 $as_echo "no" >&6; }
6316 if test -z "$ac_cv_prog_STRIP"; then
6317 ac_ct_STRIP=$STRIP
6318 # Extract the first word of "strip", so it can be a program name with args.
6319 set dummy strip; ac_word=$2
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321 $as_echo_n "checking for $ac_word... " >&6; }
6322 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6323 $as_echo_n "(cached) " >&6
6324 else
6325 if test -n "$ac_ct_STRIP"; then
6326 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6327 else
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6335 ac_cv_prog_ac_ct_STRIP="strip"
6336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 break 2
6339 done
6340 done
6341 IFS=$as_save_IFS
6345 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6346 if test -n "$ac_ct_STRIP"; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6348 $as_echo "$ac_ct_STRIP" >&6; }
6349 else
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351 $as_echo "no" >&6; }
6354 if test "x$ac_ct_STRIP" = x; then
6355 STRIP=":"
6356 else
6357 case $cross_compiling:$ac_tool_warned in
6358 yes:)
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6361 ac_tool_warned=yes ;;
6362 esac
6363 STRIP=$ac_ct_STRIP
6365 else
6366 STRIP="$ac_cv_prog_STRIP"
6369 test -z "$STRIP" && STRIP=:
6376 if test -n "$ac_tool_prefix"; then
6377 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6378 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 if test -n "$RANLIB"; then
6385 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6398 done
6399 done
6400 IFS=$as_save_IFS
6404 RANLIB=$ac_cv_prog_RANLIB
6405 if test -n "$RANLIB"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6407 $as_echo "$RANLIB" >&6; }
6408 else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6415 if test -z "$ac_cv_prog_RANLIB"; then
6416 ac_ct_RANLIB=$RANLIB
6417 # Extract the first word of "ranlib", so it can be a program name with args.
6418 set dummy ranlib; ac_word=$2
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6422 $as_echo_n "(cached) " >&6
6423 else
6424 if test -n "$ac_ct_RANLIB"; then
6425 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6426 else
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_ac_ct_RANLIB="ranlib"
6435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6438 done
6439 done
6440 IFS=$as_save_IFS
6444 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6445 if test -n "$ac_ct_RANLIB"; then
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6447 $as_echo "$ac_ct_RANLIB" >&6; }
6448 else
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 $as_echo "no" >&6; }
6453 if test "x$ac_ct_RANLIB" = x; then
6454 RANLIB=":"
6455 else
6456 case $cross_compiling:$ac_tool_warned in
6457 yes:)
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460 ac_tool_warned=yes ;;
6461 esac
6462 RANLIB=$ac_ct_RANLIB
6464 else
6465 RANLIB="$ac_cv_prog_RANLIB"
6468 test -z "$RANLIB" && RANLIB=:
6475 # Determine commands to create old-style static archives.
6476 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6477 old_postinstall_cmds='chmod 644 $oldlib'
6478 old_postuninstall_cmds=
6480 if test -n "$RANLIB"; then
6481 case $host_os in
6482 openbsd*)
6483 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6486 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6488 esac
6489 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6492 case $host_os in
6493 darwin*)
6494 lock_old_archive_extraction=yes ;;
6496 lock_old_archive_extraction=no ;;
6497 esac
6537 # If no C compiler was specified, use CC.
6538 LTCC=${LTCC-"$CC"}
6540 # If no C compiler flags were specified, use CFLAGS.
6541 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6543 # Allow CC to be a program name with arguments.
6544 compiler=$CC
6547 # Check for command to grab the raw symbol name followed by C symbol from nm.
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6549 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6550 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6551 $as_echo_n "(cached) " >&6
6552 else
6554 # These are sane defaults that work on at least a few old systems.
6555 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6557 # Character class describing NM global symbol codes.
6558 symcode='[BCDEGRST]'
6560 # Regexp to match symbols that can be accessed directly from C.
6561 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6563 # Define system-specific variables.
6564 case $host_os in
6565 aix*)
6566 symcode='[BCDT]'
6568 cygwin* | mingw* | pw32* | cegcc*)
6569 symcode='[ABCDGISTW]'
6571 hpux*)
6572 if test "$host_cpu" = ia64; then
6573 symcode='[ABCDEGRST]'
6576 irix* | nonstopux*)
6577 symcode='[BCDEGRST]'
6579 osf*)
6580 symcode='[BCDEGQRST]'
6582 solaris*)
6583 symcode='[BDRT]'
6585 sco3.2v5*)
6586 symcode='[DT]'
6588 sysv4.2uw2*)
6589 symcode='[DT]'
6591 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6592 symcode='[ABDT]'
6594 sysv4)
6595 symcode='[DFNSTU]'
6597 esac
6599 # If we're using GNU nm, then use its standard symbol codes.
6600 case `$NM -V 2>&1` in
6601 *GNU* | *'with BFD'*)
6602 symcode='[ABCDGIRSTW]' ;;
6603 esac
6605 # Transform an extracted symbol line into a proper C declaration.
6606 # Some systems (esp. on ia64) link data and code symbols differently,
6607 # so use this general approach.
6608 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6610 # Transform an extracted symbol line into symbol name and symbol address
6611 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6612 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'"
6614 # Handle CRLF in mingw tool chain
6615 opt_cr=
6616 case $build_os in
6617 mingw*)
6618 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6620 esac
6622 # Try without a prefix underscore, then with it.
6623 for ac_symprfx in "" "_"; do
6625 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6626 symxfrm="\\1 $ac_symprfx\\2 \\2"
6628 # Write the raw and C identifiers.
6629 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6630 # Fake it for dumpbin and say T for any non-static function
6631 # and D for any global variable.
6632 # Also find C++ and __fastcall symbols from MSVC++,
6633 # which start with @ or ?.
6634 lt_cv_sys_global_symbol_pipe="$AWK '"\
6635 " {last_section=section; section=\$ 3};"\
6636 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6637 " \$ 0!~/External *\|/{next};"\
6638 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6639 " {if(hide[section]) next};"\
6640 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6641 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6642 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6643 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6644 " ' prfx=^$ac_symprfx"
6645 else
6646 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6649 # Check to see that the pipe works correctly.
6650 pipe_works=no
6652 rm -f conftest*
6653 cat > conftest.$ac_ext <<_LT_EOF
6654 #ifdef __cplusplus
6655 extern "C" {
6656 #endif
6657 char nm_test_var;
6658 void nm_test_func(void);
6659 void nm_test_func(void){}
6660 #ifdef __cplusplus
6662 #endif
6663 int main(){nm_test_var='a';nm_test_func();return(0);}
6664 _LT_EOF
6666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6667 (eval $ac_compile) 2>&5
6668 ac_status=$?
6669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6670 test $ac_status = 0; }; then
6671 # Now try to grab the symbols.
6672 nlist=conftest.nm
6673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6674 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6675 ac_status=$?
6676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6677 test $ac_status = 0; } && test -s "$nlist"; then
6678 # Try sorting and uniquifying the output.
6679 if sort "$nlist" | uniq > "$nlist"T; then
6680 mv -f "$nlist"T "$nlist"
6681 else
6682 rm -f "$nlist"T
6685 # Make sure that we snagged all the symbols we need.
6686 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6687 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6688 cat <<_LT_EOF > conftest.$ac_ext
6689 #ifdef __cplusplus
6690 extern "C" {
6691 #endif
6693 _LT_EOF
6694 # Now generate the symbol file.
6695 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6697 cat <<_LT_EOF >> conftest.$ac_ext
6699 /* The mapping between symbol names and symbols. */
6700 const struct {
6701 const char *name;
6702 void *address;
6704 lt__PROGRAM__LTX_preloaded_symbols[] =
6706 { "@PROGRAM@", (void *) 0 },
6707 _LT_EOF
6708 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6709 cat <<\_LT_EOF >> conftest.$ac_ext
6710 {0, (void *) 0}
6713 /* This works around a problem in FreeBSD linker */
6714 #ifdef FREEBSD_WORKAROUND
6715 static const void *lt_preloaded_setup() {
6716 return lt__PROGRAM__LTX_preloaded_symbols;
6718 #endif
6720 #ifdef __cplusplus
6722 #endif
6723 _LT_EOF
6724 # Now try linking the two files.
6725 mv conftest.$ac_objext conftstm.$ac_objext
6726 lt_save_LIBS="$LIBS"
6727 lt_save_CFLAGS="$CFLAGS"
6728 LIBS="conftstm.$ac_objext"
6729 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6731 (eval $ac_link) 2>&5
6732 ac_status=$?
6733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6735 pipe_works=yes
6737 LIBS="$lt_save_LIBS"
6738 CFLAGS="$lt_save_CFLAGS"
6739 else
6740 echo "cannot find nm_test_func in $nlist" >&5
6742 else
6743 echo "cannot find nm_test_var in $nlist" >&5
6745 else
6746 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6748 else
6749 echo "$progname: failed program was:" >&5
6750 cat conftest.$ac_ext >&5
6752 rm -rf conftest* conftst*
6754 # Do not use the global_symbol_pipe unless it works.
6755 if test "$pipe_works" = yes; then
6756 break
6757 else
6758 lt_cv_sys_global_symbol_pipe=
6760 done
6764 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6765 lt_cv_sys_global_symbol_to_cdecl=
6767 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6769 $as_echo "failed" >&6; }
6770 else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6772 $as_echo "ok" >&6; }
6796 # Check whether --enable-libtool-lock was given.
6797 if test "${enable_libtool_lock+set}" = set; then :
6798 enableval=$enable_libtool_lock;
6801 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6803 # Some flags need to be propagated to the compiler or linker for good
6804 # libtool support.
6805 case $host in
6806 ia64-*-hpux*)
6807 # Find out which ABI we are using.
6808 echo 'int i;' > conftest.$ac_ext
6809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6810 (eval $ac_compile) 2>&5
6811 ac_status=$?
6812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6813 test $ac_status = 0; }; then
6814 case `/usr/bin/file conftest.$ac_objext` in
6815 *ELF-32*)
6816 HPUX_IA64_MODE="32"
6818 *ELF-64*)
6819 HPUX_IA64_MODE="64"
6821 esac
6823 rm -rf conftest*
6825 *-*-irix6*)
6826 # Find out which ABI we are using.
6827 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6829 (eval $ac_compile) 2>&5
6830 ac_status=$?
6831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6832 test $ac_status = 0; }; then
6833 if test "$lt_cv_prog_gnu_ld" = yes; then
6834 case `/usr/bin/file conftest.$ac_objext` in
6835 *32-bit*)
6836 LD="${LD-ld} -melf32bsmip"
6838 *N32*)
6839 LD="${LD-ld} -melf32bmipn32"
6841 *64-bit*)
6842 LD="${LD-ld} -melf64bmip"
6844 esac
6845 else
6846 case `/usr/bin/file conftest.$ac_objext` in
6847 *32-bit*)
6848 LD="${LD-ld} -32"
6850 *N32*)
6851 LD="${LD-ld} -n32"
6853 *64-bit*)
6854 LD="${LD-ld} -64"
6856 esac
6859 rm -rf conftest*
6862 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6863 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6864 # Find out which ABI we are using.
6865 echo 'int i;' > conftest.$ac_ext
6866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6867 (eval $ac_compile) 2>&5
6868 ac_status=$?
6869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6870 test $ac_status = 0; }; then
6871 case `/usr/bin/file conftest.o` in
6872 *32-bit*)
6873 case $host in
6874 x86_64-*kfreebsd*-gnu)
6875 LD="${LD-ld} -m elf_i386_fbsd"
6877 x86_64-*linux*)
6878 case `/usr/bin/file conftest.o` in
6879 *x86-64*)
6880 LD="${LD-ld} -m elf32_x86_64"
6883 LD="${LD-ld} -m elf_i386"
6885 esac
6887 powerpc64le-*linux*)
6888 LD="${LD-ld} -m elf32lppclinux"
6890 powerpc64-*linux*)
6891 LD="${LD-ld} -m elf32ppclinux"
6893 s390x-*linux*)
6894 LD="${LD-ld} -m elf_s390"
6896 sparc64-*linux*)
6897 LD="${LD-ld} -m elf32_sparc"
6899 esac
6901 *64-bit*)
6902 case $host in
6903 x86_64-*kfreebsd*-gnu)
6904 LD="${LD-ld} -m elf_x86_64_fbsd"
6906 x86_64-*linux*)
6907 LD="${LD-ld} -m elf_x86_64"
6909 powerpcle-*linux*)
6910 LD="${LD-ld} -m elf64lppc"
6912 powerpc-*linux*)
6913 LD="${LD-ld} -m elf64ppc"
6915 s390*-*linux*|s390*-*tpf*)
6916 LD="${LD-ld} -m elf64_s390"
6918 sparc*-*linux*)
6919 LD="${LD-ld} -m elf64_sparc"
6921 esac
6923 esac
6925 rm -rf conftest*
6928 *-*-sco3.2v5*)
6929 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6930 SAVE_CFLAGS="$CFLAGS"
6931 CFLAGS="$CFLAGS -belf"
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6933 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6934 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6935 $as_echo_n "(cached) " >&6
6936 else
6937 ac_ext=c
6938 ac_cpp='$CPP $CPPFLAGS'
6939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944 /* end confdefs.h. */
6947 main ()
6951 return 0;
6953 _ACEOF
6954 if ac_fn_c_try_link "$LINENO"; then :
6955 lt_cv_cc_needs_belf=yes
6956 else
6957 lt_cv_cc_needs_belf=no
6959 rm -f core conftest.err conftest.$ac_objext \
6960 conftest$ac_exeext conftest.$ac_ext
6961 ac_ext=c
6962 ac_cpp='$CPP $CPPFLAGS'
6963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6969 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6970 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6971 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6972 CFLAGS="$SAVE_CFLAGS"
6975 sparc*-*solaris*)
6976 # Find out which ABI we are using.
6977 echo 'int i;' > conftest.$ac_ext
6978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6979 (eval $ac_compile) 2>&5
6980 ac_status=$?
6981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6982 test $ac_status = 0; }; then
6983 case `/usr/bin/file conftest.o` in
6984 *64-bit*)
6985 case $lt_cv_prog_gnu_ld in
6986 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6988 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6989 LD="${LD-ld} -64"
6992 esac
6994 esac
6996 rm -rf conftest*
6998 esac
7000 need_locks="$enable_libtool_lock"
7003 case $host_os in
7004 rhapsody* | darwin*)
7005 if test -n "$ac_tool_prefix"; then
7006 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7007 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009 $as_echo_n "checking for $ac_word... " >&6; }
7010 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7011 $as_echo_n "(cached) " >&6
7012 else
7013 if test -n "$DSYMUTIL"; then
7014 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7015 else
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7023 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7027 done
7028 done
7029 IFS=$as_save_IFS
7033 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7034 if test -n "$DSYMUTIL"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7036 $as_echo "$DSYMUTIL" >&6; }
7037 else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7044 if test -z "$ac_cv_prog_DSYMUTIL"; then
7045 ac_ct_DSYMUTIL=$DSYMUTIL
7046 # Extract the first word of "dsymutil", so it can be a program name with args.
7047 set dummy dsymutil; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049 $as_echo_n "checking for $ac_word... " >&6; }
7050 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7053 if test -n "$ac_ct_DSYMUTIL"; then
7054 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7055 else
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7063 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7067 done
7068 done
7069 IFS=$as_save_IFS
7073 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7074 if test -n "$ac_ct_DSYMUTIL"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7076 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7077 else
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7082 if test "x$ac_ct_DSYMUTIL" = x; then
7083 DSYMUTIL=":"
7084 else
7085 case $cross_compiling:$ac_tool_warned in
7086 yes:)
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089 ac_tool_warned=yes ;;
7090 esac
7091 DSYMUTIL=$ac_ct_DSYMUTIL
7093 else
7094 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7097 if test -n "$ac_tool_prefix"; then
7098 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7099 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 if test -n "$NMEDIT"; then
7106 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7107 else
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7119 done
7120 done
7121 IFS=$as_save_IFS
7125 NMEDIT=$ac_cv_prog_NMEDIT
7126 if test -n "$NMEDIT"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7128 $as_echo "$NMEDIT" >&6; }
7129 else
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7136 if test -z "$ac_cv_prog_NMEDIT"; then
7137 ac_ct_NMEDIT=$NMEDIT
7138 # Extract the first word of "nmedit", so it can be a program name with args.
7139 set dummy nmedit; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7143 $as_echo_n "(cached) " >&6
7144 else
7145 if test -n "$ac_ct_NMEDIT"; then
7146 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7159 done
7160 done
7161 IFS=$as_save_IFS
7165 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7166 if test -n "$ac_ct_NMEDIT"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7168 $as_echo "$ac_ct_NMEDIT" >&6; }
7169 else
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7174 if test "x$ac_ct_NMEDIT" = x; then
7175 NMEDIT=":"
7176 else
7177 case $cross_compiling:$ac_tool_warned in
7178 yes:)
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7181 ac_tool_warned=yes ;;
7182 esac
7183 NMEDIT=$ac_ct_NMEDIT
7185 else
7186 NMEDIT="$ac_cv_prog_NMEDIT"
7189 if test -n "$ac_tool_prefix"; then
7190 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7191 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193 $as_echo_n "checking for $ac_word... " >&6; }
7194 if test "${ac_cv_prog_LIPO+set}" = set; then :
7195 $as_echo_n "(cached) " >&6
7196 else
7197 if test -n "$LIPO"; then
7198 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7207 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7211 done
7212 done
7213 IFS=$as_save_IFS
7217 LIPO=$ac_cv_prog_LIPO
7218 if test -n "$LIPO"; then
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7220 $as_echo "$LIPO" >&6; }
7221 else
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223 $as_echo "no" >&6; }
7228 if test -z "$ac_cv_prog_LIPO"; then
7229 ac_ct_LIPO=$LIPO
7230 # Extract the first word of "lipo", so it can be a program name with args.
7231 set dummy lipo; ac_word=$2
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7233 $as_echo_n "checking for $ac_word... " >&6; }
7234 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7235 $as_echo_n "(cached) " >&6
7236 else
7237 if test -n "$ac_ct_LIPO"; then
7238 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7239 else
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_prog_ac_ct_LIPO="lipo"
7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
7251 done
7252 done
7253 IFS=$as_save_IFS
7257 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7258 if test -n "$ac_ct_LIPO"; then
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7260 $as_echo "$ac_ct_LIPO" >&6; }
7261 else
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263 $as_echo "no" >&6; }
7266 if test "x$ac_ct_LIPO" = x; then
7267 LIPO=":"
7268 else
7269 case $cross_compiling:$ac_tool_warned in
7270 yes:)
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7273 ac_tool_warned=yes ;;
7274 esac
7275 LIPO=$ac_ct_LIPO
7277 else
7278 LIPO="$ac_cv_prog_LIPO"
7281 if test -n "$ac_tool_prefix"; then
7282 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7283 set dummy ${ac_tool_prefix}otool; ac_word=$2
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7285 $as_echo_n "checking for $ac_word... " >&6; }
7286 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 if test -n "$OTOOL"; then
7290 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7291 else
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7295 IFS=$as_save_IFS
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7299 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 break 2
7303 done
7304 done
7305 IFS=$as_save_IFS
7309 OTOOL=$ac_cv_prog_OTOOL
7310 if test -n "$OTOOL"; then
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7312 $as_echo "$OTOOL" >&6; }
7313 else
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315 $as_echo "no" >&6; }
7320 if test -z "$ac_cv_prog_OTOOL"; then
7321 ac_ct_OTOOL=$OTOOL
7322 # Extract the first word of "otool", so it can be a program name with args.
7323 set dummy otool; ac_word=$2
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7325 $as_echo_n "checking for $ac_word... " >&6; }
7326 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7327 $as_echo_n "(cached) " >&6
7328 else
7329 if test -n "$ac_ct_OTOOL"; then
7330 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7331 else
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 for as_dir in $PATH
7335 IFS=$as_save_IFS
7336 test -z "$as_dir" && as_dir=.
7337 for ac_exec_ext in '' $ac_executable_extensions; do
7338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7339 ac_cv_prog_ac_ct_OTOOL="otool"
7340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7341 break 2
7343 done
7344 done
7345 IFS=$as_save_IFS
7349 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7350 if test -n "$ac_ct_OTOOL"; then
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7352 $as_echo "$ac_ct_OTOOL" >&6; }
7353 else
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355 $as_echo "no" >&6; }
7358 if test "x$ac_ct_OTOOL" = x; then
7359 OTOOL=":"
7360 else
7361 case $cross_compiling:$ac_tool_warned in
7362 yes:)
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7365 ac_tool_warned=yes ;;
7366 esac
7367 OTOOL=$ac_ct_OTOOL
7369 else
7370 OTOOL="$ac_cv_prog_OTOOL"
7373 if test -n "$ac_tool_prefix"; then
7374 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7375 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7379 $as_echo_n "(cached) " >&6
7380 else
7381 if test -n "$OTOOL64"; then
7382 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7383 else
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7387 IFS=$as_save_IFS
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7391 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 break 2
7395 done
7396 done
7397 IFS=$as_save_IFS
7401 OTOOL64=$ac_cv_prog_OTOOL64
7402 if test -n "$OTOOL64"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7404 $as_echo "$OTOOL64" >&6; }
7405 else
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7412 if test -z "$ac_cv_prog_OTOOL64"; then
7413 ac_ct_OTOOL64=$OTOOL64
7414 # Extract the first word of "otool64", so it can be a program name with args.
7415 set dummy otool64; ac_word=$2
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7417 $as_echo_n "checking for $ac_word... " >&6; }
7418 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7419 $as_echo_n "(cached) " >&6
7420 else
7421 if test -n "$ac_ct_OTOOL64"; then
7422 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7423 else
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 for as_dir in $PATH
7427 IFS=$as_save_IFS
7428 test -z "$as_dir" && as_dir=.
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7431 ac_cv_prog_ac_ct_OTOOL64="otool64"
7432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7433 break 2
7435 done
7436 done
7437 IFS=$as_save_IFS
7441 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7442 if test -n "$ac_ct_OTOOL64"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7444 $as_echo "$ac_ct_OTOOL64" >&6; }
7445 else
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7450 if test "x$ac_ct_OTOOL64" = x; then
7451 OTOOL64=":"
7452 else
7453 case $cross_compiling:$ac_tool_warned in
7454 yes:)
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7457 ac_tool_warned=yes ;;
7458 esac
7459 OTOOL64=$ac_ct_OTOOL64
7461 else
7462 OTOOL64="$ac_cv_prog_OTOOL64"
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7492 $as_echo_n "checking for -single_module linker flag... " >&6; }
7493 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7494 $as_echo_n "(cached) " >&6
7495 else
7496 lt_cv_apple_cc_single_mod=no
7497 if test -z "${LT_MULTI_MODULE}"; then
7498 # By default we will add the -single_module flag. You can override
7499 # by either setting the environment variable LT_MULTI_MODULE
7500 # non-empty at configure time, or by adding -multi_module to the
7501 # link flags.
7502 rm -rf libconftest.dylib*
7503 echo "int foo(void){return 1;}" > conftest.c
7504 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7505 -dynamiclib -Wl,-single_module conftest.c" >&5
7506 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7507 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7508 _lt_result=$?
7509 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7510 lt_cv_apple_cc_single_mod=yes
7511 else
7512 cat conftest.err >&5
7514 rm -rf libconftest.dylib*
7515 rm -f conftest.*
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7519 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7521 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7522 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7523 $as_echo_n "(cached) " >&6
7524 else
7525 lt_cv_ld_exported_symbols_list=no
7526 save_LDFLAGS=$LDFLAGS
7527 echo "_main" > conftest.sym
7528 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h. */
7533 main ()
7537 return 0;
7539 _ACEOF
7540 if ac_fn_c_try_link "$LINENO"; then :
7541 lt_cv_ld_exported_symbols_list=yes
7542 else
7543 lt_cv_ld_exported_symbols_list=no
7545 rm -f core conftest.err conftest.$ac_objext \
7546 conftest$ac_exeext conftest.$ac_ext
7547 LDFLAGS="$save_LDFLAGS"
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7551 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7553 $as_echo_n "checking for -force_load linker flag... " >&6; }
7554 if test "${lt_cv_ld_force_load+set}" = set; then :
7555 $as_echo_n "(cached) " >&6
7556 else
7557 lt_cv_ld_force_load=no
7558 cat > conftest.c << _LT_EOF
7559 int forced_loaded() { return 2;}
7560 _LT_EOF
7561 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7562 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7563 echo "$AR cru libconftest.a conftest.o" >&5
7564 $AR cru libconftest.a conftest.o 2>&5
7565 cat > conftest.c << _LT_EOF
7566 int main() { return 0;}
7567 _LT_EOF
7568 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7569 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7570 _lt_result=$?
7571 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7572 lt_cv_ld_force_load=yes
7573 else
7574 cat conftest.err >&5
7576 rm -f conftest.err libconftest.a conftest conftest.c
7577 rm -rf conftest.dSYM
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7581 $as_echo "$lt_cv_ld_force_load" >&6; }
7582 case $host_os in
7583 rhapsody* | darwin1.[012])
7584 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7585 darwin1.*)
7586 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7587 darwin*) # darwin 5.x on
7588 # if running on 10.5 or later, the deployment target defaults
7589 # to the OS version, if on x86, and 10.4, the deployment
7590 # target defaults to 10.4. Don't you love it?
7591 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7592 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7593 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7594 10.[012][,.]*)
7595 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7596 10.*)
7597 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7598 esac
7600 esac
7601 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7602 _lt_dar_single_mod='$single_module'
7604 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7605 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7606 else
7607 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7609 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7610 _lt_dsymutil='~$DSYMUTIL $lib || :'
7611 else
7612 _lt_dsymutil=
7615 esac
7617 for ac_header in dlfcn.h
7618 do :
7619 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7621 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7622 cat >>confdefs.h <<_ACEOF
7623 #define HAVE_DLFCN_H 1
7624 _ACEOF
7628 done
7635 # Set options
7640 enable_win32_dll=no
7643 # Check whether --enable-shared was given.
7644 if test "${enable_shared+set}" = set; then :
7645 enableval=$enable_shared; p=${PACKAGE-default}
7646 case $enableval in
7647 yes) enable_shared=yes ;;
7648 no) enable_shared=no ;;
7650 enable_shared=no
7651 # Look at the argument we got. We use all the common list separators.
7652 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7653 for pkg in $enableval; do
7654 IFS="$lt_save_ifs"
7655 if test "X$pkg" = "X$p"; then
7656 enable_shared=yes
7658 done
7659 IFS="$lt_save_ifs"
7661 esac
7662 else
7663 enable_shared=yes
7674 # Check whether --enable-static was given.
7675 if test "${enable_static+set}" = set; then :
7676 enableval=$enable_static; p=${PACKAGE-default}
7677 case $enableval in
7678 yes) enable_static=yes ;;
7679 no) enable_static=no ;;
7681 enable_static=no
7682 # Look at the argument we got. We use all the common list separators.
7683 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7684 for pkg in $enableval; do
7685 IFS="$lt_save_ifs"
7686 if test "X$pkg" = "X$p"; then
7687 enable_static=yes
7689 done
7690 IFS="$lt_save_ifs"
7692 esac
7693 else
7694 enable_static=yes
7706 # Check whether --with-pic was given.
7707 if test "${with_pic+set}" = set; then :
7708 withval=$with_pic; pic_mode="$withval"
7709 else
7710 pic_mode=default
7714 test -z "$pic_mode" && pic_mode=default
7722 # Check whether --enable-fast-install was given.
7723 if test "${enable_fast_install+set}" = set; then :
7724 enableval=$enable_fast_install; p=${PACKAGE-default}
7725 case $enableval in
7726 yes) enable_fast_install=yes ;;
7727 no) enable_fast_install=no ;;
7729 enable_fast_install=no
7730 # Look at the argument we got. We use all the common list separators.
7731 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7732 for pkg in $enableval; do
7733 IFS="$lt_save_ifs"
7734 if test "X$pkg" = "X$p"; then
7735 enable_fast_install=yes
7737 done
7738 IFS="$lt_save_ifs"
7740 esac
7741 else
7742 enable_fast_install=yes
7755 # This can be used to rebuild libtool when needed
7756 LIBTOOL_DEPS="$ltmain"
7758 # Always use our own libtool.
7759 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7786 test -z "$LN_S" && LN_S="ln -s"
7801 if test -n "${ZSH_VERSION+set}" ; then
7802 setopt NO_GLOB_SUBST
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7806 $as_echo_n "checking for objdir... " >&6; }
7807 if test "${lt_cv_objdir+set}" = set; then :
7808 $as_echo_n "(cached) " >&6
7809 else
7810 rm -f .libs 2>/dev/null
7811 mkdir .libs 2>/dev/null
7812 if test -d .libs; then
7813 lt_cv_objdir=.libs
7814 else
7815 # MS-DOS does not allow filenames that begin with a dot.
7816 lt_cv_objdir=_libs
7818 rmdir .libs 2>/dev/null
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7821 $as_echo "$lt_cv_objdir" >&6; }
7822 objdir=$lt_cv_objdir
7828 cat >>confdefs.h <<_ACEOF
7829 #define LT_OBJDIR "$lt_cv_objdir/"
7830 _ACEOF
7835 case $host_os in
7836 aix3*)
7837 # AIX sometimes has problems with the GCC collect2 program. For some
7838 # reason, if we set the COLLECT_NAMES environment variable, the problems
7839 # vanish in a puff of smoke.
7840 if test "X${COLLECT_NAMES+set}" != Xset; then
7841 COLLECT_NAMES=
7842 export COLLECT_NAMES
7845 esac
7847 # Global variables:
7848 ofile=libtool
7849 can_build_shared=yes
7851 # All known linkers require a `.a' archive for static linking (except MSVC,
7852 # which needs '.lib').
7853 libext=a
7855 with_gnu_ld="$lt_cv_prog_gnu_ld"
7857 old_CC="$CC"
7858 old_CFLAGS="$CFLAGS"
7860 # Set sane defaults for various variables
7861 test -z "$CC" && CC=cc
7862 test -z "$LTCC" && LTCC=$CC
7863 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7864 test -z "$LD" && LD=ld
7865 test -z "$ac_objext" && ac_objext=o
7867 for cc_temp in $compiler""; do
7868 case $cc_temp in
7869 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7870 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7871 \-*) ;;
7872 *) break;;
7873 esac
7874 done
7875 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7878 # Only perform the check for file, if the check method requires it
7879 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7880 case $deplibs_check_method in
7881 file_magic*)
7882 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7884 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7885 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 case $MAGIC_CMD in
7889 [\\/*] | ?:[\\/]*)
7890 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7893 lt_save_MAGIC_CMD="$MAGIC_CMD"
7894 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7895 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7896 for ac_dir in $ac_dummy; do
7897 IFS="$lt_save_ifs"
7898 test -z "$ac_dir" && ac_dir=.
7899 if test -f $ac_dir/${ac_tool_prefix}file; then
7900 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7901 if test -n "$file_magic_test_file"; then
7902 case $deplibs_check_method in
7903 "file_magic "*)
7904 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7905 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7906 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7907 $EGREP "$file_magic_regex" > /dev/null; then
7909 else
7910 cat <<_LT_EOF 1>&2
7912 *** Warning: the command libtool uses to detect shared libraries,
7913 *** $file_magic_cmd, produces output that libtool cannot recognize.
7914 *** The result is that libtool may fail to recognize shared libraries
7915 *** as such. This will affect the creation of libtool libraries that
7916 *** depend on shared libraries, but programs linked with such libtool
7917 *** libraries will work regardless of this problem. Nevertheless, you
7918 *** may want to report the problem to your system manager and/or to
7919 *** bug-libtool@gnu.org
7921 _LT_EOF
7922 fi ;;
7923 esac
7925 break
7927 done
7928 IFS="$lt_save_ifs"
7929 MAGIC_CMD="$lt_save_MAGIC_CMD"
7931 esac
7934 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7935 if test -n "$MAGIC_CMD"; then
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7937 $as_echo "$MAGIC_CMD" >&6; }
7938 else
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940 $as_echo "no" >&6; }
7947 if test -z "$lt_cv_path_MAGIC_CMD"; then
7948 if test -n "$ac_tool_prefix"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7950 $as_echo_n "checking for file... " >&6; }
7951 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7952 $as_echo_n "(cached) " >&6
7953 else
7954 case $MAGIC_CMD in
7955 [\\/*] | ?:[\\/]*)
7956 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7959 lt_save_MAGIC_CMD="$MAGIC_CMD"
7960 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7961 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7962 for ac_dir in $ac_dummy; do
7963 IFS="$lt_save_ifs"
7964 test -z "$ac_dir" && ac_dir=.
7965 if test -f $ac_dir/file; then
7966 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7967 if test -n "$file_magic_test_file"; then
7968 case $deplibs_check_method in
7969 "file_magic "*)
7970 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7971 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7972 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7973 $EGREP "$file_magic_regex" > /dev/null; then
7975 else
7976 cat <<_LT_EOF 1>&2
7978 *** Warning: the command libtool uses to detect shared libraries,
7979 *** $file_magic_cmd, produces output that libtool cannot recognize.
7980 *** The result is that libtool may fail to recognize shared libraries
7981 *** as such. This will affect the creation of libtool libraries that
7982 *** depend on shared libraries, but programs linked with such libtool
7983 *** libraries will work regardless of this problem. Nevertheless, you
7984 *** may want to report the problem to your system manager and/or to
7985 *** bug-libtool@gnu.org
7987 _LT_EOF
7988 fi ;;
7989 esac
7991 break
7993 done
7994 IFS="$lt_save_ifs"
7995 MAGIC_CMD="$lt_save_MAGIC_CMD"
7997 esac
8000 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8001 if test -n "$MAGIC_CMD"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8003 $as_echo "$MAGIC_CMD" >&6; }
8004 else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8010 else
8011 MAGIC_CMD=:
8017 esac
8019 # Use C for the default configuration in the libtool script
8021 lt_save_CC="$CC"
8022 ac_ext=c
8023 ac_cpp='$CPP $CPPFLAGS'
8024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8029 # Source file extension for C test sources.
8030 ac_ext=c
8032 # Object file extension for compiled C test sources.
8033 objext=o
8034 objext=$objext
8036 # Code to be used in simple compile tests
8037 lt_simple_compile_test_code="int some_variable = 0;"
8039 # Code to be used in simple link tests
8040 lt_simple_link_test_code='int main(){return(0);}'
8048 # If no C compiler was specified, use CC.
8049 LTCC=${LTCC-"$CC"}
8051 # If no C compiler flags were specified, use CFLAGS.
8052 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8054 # Allow CC to be a program name with arguments.
8055 compiler=$CC
8057 # Save the default compiler, since it gets overwritten when the other
8058 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8059 compiler_DEFAULT=$CC
8061 # save warnings/boilerplate of simple test code
8062 ac_outfile=conftest.$ac_objext
8063 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8064 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8065 _lt_compiler_boilerplate=`cat conftest.err`
8066 $RM conftest*
8068 ac_outfile=conftest.$ac_objext
8069 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8070 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8071 _lt_linker_boilerplate=`cat conftest.err`
8072 $RM -r conftest*
8075 ## CAVEAT EMPTOR:
8076 ## There is no encapsulation within the following macros, do not change
8077 ## the running order or otherwise move them around unless you know exactly
8078 ## what you are doing...
8079 if test -n "$compiler"; then
8081 lt_prog_compiler_no_builtin_flag=
8083 if test "$GCC" = yes; then
8084 case $cc_basename in
8085 nvcc*)
8086 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8088 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8089 esac
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8092 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8093 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8096 lt_cv_prog_compiler_rtti_exceptions=no
8097 ac_outfile=conftest.$ac_objext
8098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8099 lt_compiler_flag="-fno-rtti -fno-exceptions"
8100 # Insert the option either (1) after the last *FLAGS variable, or
8101 # (2) before a word containing "conftest.", or (3) at the end.
8102 # Note that $ac_compile itself does not contain backslashes and begins
8103 # with a dollar sign (not a hyphen), so the echo should work correctly.
8104 # The option is referenced via a variable to avoid confusing sed.
8105 lt_compile=`echo "$ac_compile" | $SED \
8106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8108 -e 's:$: $lt_compiler_flag:'`
8109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8110 (eval "$lt_compile" 2>conftest.err)
8111 ac_status=$?
8112 cat conftest.err >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 if (exit $ac_status) && test -s "$ac_outfile"; then
8115 # The compiler can only warn and ignore the option if not recognized
8116 # So say no if there are warnings other than the usual output.
8117 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8119 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8120 lt_cv_prog_compiler_rtti_exceptions=yes
8123 $RM conftest*
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8127 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8129 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8130 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8131 else
8142 lt_prog_compiler_wl=
8143 lt_prog_compiler_pic=
8144 lt_prog_compiler_static=
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8147 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8149 if test "$GCC" = yes; then
8150 lt_prog_compiler_wl='-Wl,'
8151 lt_prog_compiler_static='-static'
8153 case $host_os in
8154 aix*)
8155 # All AIX code is PIC.
8156 if test "$host_cpu" = ia64; then
8157 # AIX 5 now supports IA64 processor
8158 lt_prog_compiler_static='-Bstatic'
8160 lt_prog_compiler_pic='-fPIC'
8163 amigaos*)
8164 case $host_cpu in
8165 powerpc)
8166 # see comment about AmigaOS4 .so support
8167 lt_prog_compiler_pic='-fPIC'
8169 m68k)
8170 # FIXME: we need at least 68020 code to build shared libraries, but
8171 # adding the `-m68020' flag to GCC prevents building anything better,
8172 # like `-m68040'.
8173 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8175 esac
8178 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8179 # PIC is the default for these OSes.
8182 mingw* | cygwin* | pw32* | os2* | cegcc*)
8183 # This hack is so that the source file can tell whether it is being
8184 # built for inclusion in a dll (and should export symbols for example).
8185 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8186 # (--disable-auto-import) libraries
8187 lt_prog_compiler_pic='-DDLL_EXPORT'
8190 darwin* | rhapsody*)
8191 # PIC is the default on this platform
8192 # Common symbols not allowed in MH_DYLIB files
8193 lt_prog_compiler_pic='-fno-common'
8196 haiku*)
8197 # PIC is the default for Haiku.
8198 # The "-static" flag exists, but is broken.
8199 lt_prog_compiler_static=
8202 hpux*)
8203 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8204 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8205 # sets the default TLS model and affects inlining.
8206 case $host_cpu in
8207 hppa*64*)
8208 # +Z the default
8211 lt_prog_compiler_pic='-fPIC'
8213 esac
8216 interix[3-9]*)
8217 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8218 # Instead, we relocate shared libraries at runtime.
8221 msdosdjgpp*)
8222 # Just because we use GCC doesn't mean we suddenly get shared libraries
8223 # on systems that don't support them.
8224 lt_prog_compiler_can_build_shared=no
8225 enable_shared=no
8228 *nto* | *qnx*)
8229 # QNX uses GNU C++, but need to define -shared option too, otherwise
8230 # it will coredump.
8231 lt_prog_compiler_pic='-fPIC -shared'
8234 sysv4*MP*)
8235 if test -d /usr/nec; then
8236 lt_prog_compiler_pic=-Kconform_pic
8241 lt_prog_compiler_pic='-fPIC'
8243 esac
8245 case $cc_basename in
8246 nvcc*) # Cuda Compiler Driver 2.2
8247 lt_prog_compiler_wl='-Xlinker '
8248 lt_prog_compiler_pic='-Xcompiler -fPIC'
8250 esac
8251 else
8252 # PORTME Check for flag to pass linker flags through the system compiler.
8253 case $host_os in
8254 aix*)
8255 lt_prog_compiler_wl='-Wl,'
8256 if test "$host_cpu" = ia64; then
8257 # AIX 5 now supports IA64 processor
8258 lt_prog_compiler_static='-Bstatic'
8259 else
8260 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8264 mingw* | cygwin* | pw32* | os2* | cegcc*)
8265 # This hack is so that the source file can tell whether it is being
8266 # built for inclusion in a dll (and should export symbols for example).
8267 lt_prog_compiler_pic='-DDLL_EXPORT'
8270 hpux9* | hpux10* | hpux11*)
8271 lt_prog_compiler_wl='-Wl,'
8272 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8273 # not for PA HP-UX.
8274 case $host_cpu in
8275 hppa*64*|ia64*)
8276 # +Z the default
8279 lt_prog_compiler_pic='+Z'
8281 esac
8282 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8283 lt_prog_compiler_static='${wl}-a ${wl}archive'
8286 irix5* | irix6* | nonstopux*)
8287 lt_prog_compiler_wl='-Wl,'
8288 # PIC (with -KPIC) is the default.
8289 lt_prog_compiler_static='-non_shared'
8292 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8293 case $cc_basename in
8294 # old Intel for x86_64 which still supported -KPIC.
8295 ecc*)
8296 lt_prog_compiler_wl='-Wl,'
8297 lt_prog_compiler_pic='-KPIC'
8298 lt_prog_compiler_static='-static'
8300 # icc used to be incompatible with GCC.
8301 # ICC 10 doesn't accept -KPIC any more.
8302 icc* | ifort*)
8303 lt_prog_compiler_wl='-Wl,'
8304 lt_prog_compiler_pic='-fPIC'
8305 lt_prog_compiler_static='-static'
8307 # Lahey Fortran 8.1.
8308 lf95*)
8309 lt_prog_compiler_wl='-Wl,'
8310 lt_prog_compiler_pic='--shared'
8311 lt_prog_compiler_static='--static'
8313 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8314 # Portland Group compilers (*not* the Pentium gcc compiler,
8315 # which looks to be a dead project)
8316 lt_prog_compiler_wl='-Wl,'
8317 lt_prog_compiler_pic='-fpic'
8318 lt_prog_compiler_static='-Bstatic'
8320 ccc*)
8321 lt_prog_compiler_wl='-Wl,'
8322 # All Alpha code is PIC.
8323 lt_prog_compiler_static='-non_shared'
8325 xl* | bgxl* | bgf* | mpixl*)
8326 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8327 lt_prog_compiler_wl='-Wl,'
8328 lt_prog_compiler_pic='-qpic'
8329 lt_prog_compiler_static='-qstaticlink'
8332 case `$CC -V 2>&1 | sed 5q` in
8333 *Sun\ F* | *Sun*Fortran*)
8334 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8335 lt_prog_compiler_pic='-KPIC'
8336 lt_prog_compiler_static='-Bstatic'
8337 lt_prog_compiler_wl=''
8339 *Sun\ C*)
8340 # Sun C 5.9
8341 lt_prog_compiler_pic='-KPIC'
8342 lt_prog_compiler_static='-Bstatic'
8343 lt_prog_compiler_wl='-Wl,'
8345 esac
8347 esac
8350 newsos6)
8351 lt_prog_compiler_pic='-KPIC'
8352 lt_prog_compiler_static='-Bstatic'
8355 *nto* | *qnx*)
8356 # QNX uses GNU C++, but need to define -shared option too, otherwise
8357 # it will coredump.
8358 lt_prog_compiler_pic='-fPIC -shared'
8361 osf3* | osf4* | osf5*)
8362 lt_prog_compiler_wl='-Wl,'
8363 # All OSF/1 code is PIC.
8364 lt_prog_compiler_static='-non_shared'
8367 rdos*)
8368 lt_prog_compiler_static='-non_shared'
8371 solaris*)
8372 lt_prog_compiler_pic='-KPIC'
8373 lt_prog_compiler_static='-Bstatic'
8374 case $cc_basename in
8375 f77* | f90* | f95*)
8376 lt_prog_compiler_wl='-Qoption ld ';;
8378 lt_prog_compiler_wl='-Wl,';;
8379 esac
8382 sunos4*)
8383 lt_prog_compiler_wl='-Qoption ld '
8384 lt_prog_compiler_pic='-PIC'
8385 lt_prog_compiler_static='-Bstatic'
8388 sysv4 | sysv4.2uw2* | sysv4.3*)
8389 lt_prog_compiler_wl='-Wl,'
8390 lt_prog_compiler_pic='-KPIC'
8391 lt_prog_compiler_static='-Bstatic'
8394 sysv4*MP*)
8395 if test -d /usr/nec ;then
8396 lt_prog_compiler_pic='-Kconform_pic'
8397 lt_prog_compiler_static='-Bstatic'
8401 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8402 lt_prog_compiler_wl='-Wl,'
8403 lt_prog_compiler_pic='-KPIC'
8404 lt_prog_compiler_static='-Bstatic'
8407 unicos*)
8408 lt_prog_compiler_wl='-Wl,'
8409 lt_prog_compiler_can_build_shared=no
8412 uts4*)
8413 lt_prog_compiler_pic='-pic'
8414 lt_prog_compiler_static='-Bstatic'
8418 lt_prog_compiler_can_build_shared=no
8420 esac
8423 case $host_os in
8424 # For platforms which do not support PIC, -DPIC is meaningless:
8425 *djgpp*)
8426 lt_prog_compiler_pic=
8429 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8431 esac
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8433 $as_echo "$lt_prog_compiler_pic" >&6; }
8441 # Check to make sure the PIC flag actually works.
8443 if test -n "$lt_prog_compiler_pic"; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8445 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8446 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8447 $as_echo_n "(cached) " >&6
8448 else
8449 lt_cv_prog_compiler_pic_works=no
8450 ac_outfile=conftest.$ac_objext
8451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8452 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8453 # Insert the option either (1) after the last *FLAGS variable, or
8454 # (2) before a word containing "conftest.", or (3) at the end.
8455 # Note that $ac_compile itself does not contain backslashes and begins
8456 # with a dollar sign (not a hyphen), so the echo should work correctly.
8457 # The option is referenced via a variable to avoid confusing sed.
8458 lt_compile=`echo "$ac_compile" | $SED \
8459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8461 -e 's:$: $lt_compiler_flag:'`
8462 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8463 (eval "$lt_compile" 2>conftest.err)
8464 ac_status=$?
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 if (exit $ac_status) && test -s "$ac_outfile"; then
8468 # The compiler can only warn and ignore the option if not recognized
8469 # So say no if there are warnings other than the usual output.
8470 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8472 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8473 lt_cv_prog_compiler_pic_works=yes
8476 $RM conftest*
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8480 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8482 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8483 case $lt_prog_compiler_pic in
8484 "" | " "*) ;;
8485 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8486 esac
8487 else
8488 lt_prog_compiler_pic=
8489 lt_prog_compiler_can_build_shared=no
8500 # Check to make sure the static flag actually works.
8502 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8504 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8505 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8506 $as_echo_n "(cached) " >&6
8507 else
8508 lt_cv_prog_compiler_static_works=no
8509 save_LDFLAGS="$LDFLAGS"
8510 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8511 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8512 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8513 # The linker can only warn and ignore the option if not recognized
8514 # So say no if there are warnings
8515 if test -s conftest.err; then
8516 # Append any errors to the config.log.
8517 cat conftest.err 1>&5
8518 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8520 if diff conftest.exp conftest.er2 >/dev/null; then
8521 lt_cv_prog_compiler_static_works=yes
8523 else
8524 lt_cv_prog_compiler_static_works=yes
8527 $RM -r conftest*
8528 LDFLAGS="$save_LDFLAGS"
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8532 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8534 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8536 else
8537 lt_prog_compiler_static=
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8547 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8548 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8549 $as_echo_n "(cached) " >&6
8550 else
8551 lt_cv_prog_compiler_c_o=no
8552 $RM -r conftest 2>/dev/null
8553 mkdir conftest
8554 cd conftest
8555 mkdir out
8556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8558 lt_compiler_flag="-o out/conftest2.$ac_objext"
8559 # Insert the option either (1) after the last *FLAGS variable, or
8560 # (2) before a word containing "conftest.", or (3) at the end.
8561 # Note that $ac_compile itself does not contain backslashes and begins
8562 # with a dollar sign (not a hyphen), so the echo should work correctly.
8563 lt_compile=`echo "$ac_compile" | $SED \
8564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8566 -e 's:$: $lt_compiler_flag:'`
8567 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8568 (eval "$lt_compile" 2>out/conftest.err)
8569 ac_status=$?
8570 cat out/conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8573 then
8574 # The compiler can only warn and ignore the option if not recognized
8575 # So say no if there are warnings
8576 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8579 lt_cv_prog_compiler_c_o=yes
8582 chmod u+w . 2>&5
8583 $RM conftest*
8584 # SGI C++ compiler will create directory out/ii_files/ for
8585 # template instantiation
8586 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8587 $RM out/* && rmdir out
8588 cd ..
8589 $RM -r conftest
8590 $RM conftest*
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8594 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8602 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8603 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8604 $as_echo_n "(cached) " >&6
8605 else
8606 lt_cv_prog_compiler_c_o=no
8607 $RM -r conftest 2>/dev/null
8608 mkdir conftest
8609 cd conftest
8610 mkdir out
8611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8613 lt_compiler_flag="-o out/conftest2.$ac_objext"
8614 # Insert the option either (1) after the last *FLAGS variable, or
8615 # (2) before a word containing "conftest.", or (3) at the end.
8616 # Note that $ac_compile itself does not contain backslashes and begins
8617 # with a dollar sign (not a hyphen), so the echo should work correctly.
8618 lt_compile=`echo "$ac_compile" | $SED \
8619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8621 -e 's:$: $lt_compiler_flag:'`
8622 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8623 (eval "$lt_compile" 2>out/conftest.err)
8624 ac_status=$?
8625 cat out/conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8628 then
8629 # The compiler can only warn and ignore the option if not recognized
8630 # So say no if there are warnings
8631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8632 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8633 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8634 lt_cv_prog_compiler_c_o=yes
8637 chmod u+w . 2>&5
8638 $RM conftest*
8639 # SGI C++ compiler will create directory out/ii_files/ for
8640 # template instantiation
8641 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8642 $RM out/* && rmdir out
8643 cd ..
8644 $RM -r conftest
8645 $RM conftest*
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8649 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8654 hard_links="nottested"
8655 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8656 # do not overwrite the value of need_locks provided by the user
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8658 $as_echo_n "checking if we can lock with hard links... " >&6; }
8659 hard_links=yes
8660 $RM conftest*
8661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8662 touch conftest.a
8663 ln conftest.a conftest.b 2>&5 || hard_links=no
8664 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8666 $as_echo "$hard_links" >&6; }
8667 if test "$hard_links" = no; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8669 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8670 need_locks=warn
8672 else
8673 need_locks=no
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8682 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8684 runpath_var=
8685 allow_undefined_flag=
8686 always_export_symbols=no
8687 archive_cmds=
8688 archive_expsym_cmds=
8689 compiler_needs_object=no
8690 enable_shared_with_static_runtimes=no
8691 export_dynamic_flag_spec=
8692 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8693 hardcode_automatic=no
8694 hardcode_direct=no
8695 hardcode_direct_absolute=no
8696 hardcode_libdir_flag_spec=
8697 hardcode_libdir_flag_spec_ld=
8698 hardcode_libdir_separator=
8699 hardcode_minus_L=no
8700 hardcode_shlibpath_var=unsupported
8701 inherit_rpath=no
8702 link_all_deplibs=unknown
8703 module_cmds=
8704 module_expsym_cmds=
8705 old_archive_from_new_cmds=
8706 old_archive_from_expsyms_cmds=
8707 thread_safe_flag_spec=
8708 whole_archive_flag_spec=
8709 # include_expsyms should be a list of space-separated symbols to be *always*
8710 # included in the symbol list
8711 include_expsyms=
8712 # exclude_expsyms can be an extended regexp of symbols to exclude
8713 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8714 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8715 # as well as any symbol that contains `d'.
8716 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8717 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8718 # platforms (ab)use it in PIC code, but their linkers get confused if
8719 # the symbol is explicitly referenced. Since portable code cannot
8720 # rely on this symbol name, it's probably fine to never include it in
8721 # preloaded symbol tables.
8722 # Exclude shared library initialization/finalization symbols.
8723 extract_expsyms_cmds=
8725 case $host_os in
8726 cygwin* | mingw* | pw32* | cegcc*)
8727 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8728 # When not using gcc, we currently assume that we are using
8729 # Microsoft Visual C++.
8730 if test "$GCC" != yes; then
8731 with_gnu_ld=no
8734 interix*)
8735 # we just hope/assume this is gcc and not c89 (= MSVC++)
8736 with_gnu_ld=yes
8738 openbsd*)
8739 with_gnu_ld=no
8741 esac
8743 ld_shlibs=yes
8745 # On some targets, GNU ld is compatible enough with the native linker
8746 # that we're better off using the native interface for both.
8747 lt_use_gnu_ld_interface=no
8748 if test "$with_gnu_ld" = yes; then
8749 case $host_os in
8750 aix*)
8751 # The AIX port of GNU ld has always aspired to compatibility
8752 # with the native linker. However, as the warning in the GNU ld
8753 # block says, versions before 2.19.5* couldn't really create working
8754 # shared libraries, regardless of the interface used.
8755 case `$LD -v 2>&1` in
8756 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8757 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8758 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8760 lt_use_gnu_ld_interface=yes
8762 esac
8765 lt_use_gnu_ld_interface=yes
8767 esac
8770 if test "$lt_use_gnu_ld_interface" = yes; then
8771 # If archive_cmds runs LD, not CC, wlarc should be empty
8772 wlarc='${wl}'
8774 # Set some defaults for GNU ld with shared library support. These
8775 # are reset later if shared libraries are not supported. Putting them
8776 # here allows them to be overridden if necessary.
8777 runpath_var=LD_RUN_PATH
8778 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8779 export_dynamic_flag_spec='${wl}--export-dynamic'
8780 # ancient GNU ld didn't support --whole-archive et. al.
8781 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8782 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8783 else
8784 whole_archive_flag_spec=
8786 supports_anon_versioning=no
8787 case `$LD -v 2>&1` in
8788 *GNU\ gold*) supports_anon_versioning=yes ;;
8789 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8790 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8791 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8792 *\ 2.11.*) ;; # other 2.11 versions
8793 *) supports_anon_versioning=yes ;;
8794 esac
8796 # See if GNU ld supports shared libraries.
8797 case $host_os in
8798 aix[3-9]*)
8799 # On AIX/PPC, the GNU linker is very broken
8800 if test "$host_cpu" != ia64; then
8801 ld_shlibs=no
8802 cat <<_LT_EOF 1>&2
8804 *** Warning: the GNU linker, at least up to release 2.19, is reported
8805 *** to be unable to reliably create shared libraries on AIX.
8806 *** Therefore, libtool is disabling shared libraries support. If you
8807 *** really care for shared libraries, you may want to install binutils
8808 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8809 *** You will then need to restart the configuration process.
8811 _LT_EOF
8815 amigaos*)
8816 case $host_cpu in
8817 powerpc)
8818 # see comment about AmigaOS4 .so support
8819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8820 archive_expsym_cmds=''
8822 m68k)
8823 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)'
8824 hardcode_libdir_flag_spec='-L$libdir'
8825 hardcode_minus_L=yes
8827 esac
8830 beos*)
8831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8832 allow_undefined_flag=unsupported
8833 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8834 # support --undefined. This deserves some investigation. FIXME
8835 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8836 else
8837 ld_shlibs=no
8841 cygwin* | mingw* | pw32* | cegcc*)
8842 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8843 # as there is no search path for DLLs.
8844 hardcode_libdir_flag_spec='-L$libdir'
8845 export_dynamic_flag_spec='${wl}--export-all-symbols'
8846 allow_undefined_flag=unsupported
8847 always_export_symbols=no
8848 enable_shared_with_static_runtimes=yes
8849 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8851 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8852 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8853 # If the export-symbols file already is a .def file (1st line
8854 # is EXPORTS), use it as is; otherwise, prepend...
8855 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8856 cp $export_symbols $output_objdir/$soname.def;
8857 else
8858 echo EXPORTS > $output_objdir/$soname.def;
8859 cat $export_symbols >> $output_objdir/$soname.def;
8861 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8862 else
8863 ld_shlibs=no
8867 haiku*)
8868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8869 link_all_deplibs=yes
8872 interix[3-9]*)
8873 hardcode_direct=no
8874 hardcode_shlibpath_var=no
8875 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8876 export_dynamic_flag_spec='${wl}-E'
8877 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8878 # Instead, shared libraries are loaded at an image base (0x10000000 by
8879 # default) and relocated if they conflict, which is a slow very memory
8880 # consuming and fragmenting process. To avoid this, we pick a random,
8881 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8882 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8883 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8884 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'
8887 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8888 tmp_diet=no
8889 if test "$host_os" = linux-dietlibc; then
8890 case $cc_basename in
8891 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8892 esac
8894 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8895 && test "$tmp_diet" = no
8896 then
8897 tmp_addflag=' $pic_flag'
8898 tmp_sharedflag='-shared'
8899 case $cc_basename,$host_cpu in
8900 pgcc*) # Portland Group C compiler
8901 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'
8902 tmp_addflag=' $pic_flag'
8904 pgf77* | pgf90* | pgf95* | pgfortran*)
8905 # Portland Group f77 and f90 compilers
8906 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'
8907 tmp_addflag=' $pic_flag -Mnomain' ;;
8908 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8909 tmp_addflag=' -i_dynamic' ;;
8910 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8911 tmp_addflag=' -i_dynamic -nofor_main' ;;
8912 ifc* | ifort*) # Intel Fortran compiler
8913 tmp_addflag=' -nofor_main' ;;
8914 lf95*) # Lahey Fortran 8.1
8915 whole_archive_flag_spec=
8916 tmp_sharedflag='--shared' ;;
8917 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8918 tmp_sharedflag='-qmkshrobj'
8919 tmp_addflag= ;;
8920 nvcc*) # Cuda Compiler Driver 2.2
8921 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'
8922 compiler_needs_object=yes
8924 esac
8925 case `$CC -V 2>&1 | sed 5q` in
8926 *Sun\ C*) # Sun C 5.9
8927 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'
8928 compiler_needs_object=yes
8929 tmp_sharedflag='-G' ;;
8930 *Sun\ F*) # Sun Fortran 8.3
8931 tmp_sharedflag='-G' ;;
8932 esac
8933 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8935 if test "x$supports_anon_versioning" = xyes; then
8936 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8937 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8938 echo "local: *; };" >> $output_objdir/$libname.ver~
8939 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8942 case $cc_basename in
8943 xlf* | bgf* | bgxlf* | mpixlf*)
8944 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8945 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8946 hardcode_libdir_flag_spec=
8947 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8948 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8949 if test "x$supports_anon_versioning" = xyes; then
8950 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8952 echo "local: *; };" >> $output_objdir/$libname.ver~
8953 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8956 esac
8957 else
8958 ld_shlibs=no
8962 netbsd*)
8963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8964 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8965 wlarc=
8966 else
8967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8968 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8972 solaris*)
8973 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8974 ld_shlibs=no
8975 cat <<_LT_EOF 1>&2
8977 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8978 *** create shared libraries on Solaris systems. Therefore, libtool
8979 *** is disabling shared libraries support. We urge you to upgrade GNU
8980 *** binutils to release 2.9.1 or newer. Another option is to modify
8981 *** your PATH or compiler configuration so that the native linker is
8982 *** used, and then restart.
8984 _LT_EOF
8985 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8988 else
8989 ld_shlibs=no
8993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8994 case `$LD -v 2>&1` in
8995 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8996 ld_shlibs=no
8997 cat <<_LT_EOF 1>&2
8999 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9000 *** reliably create shared libraries on SCO systems. Therefore, libtool
9001 *** is disabling shared libraries support. We urge you to upgrade GNU
9002 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9003 *** your PATH or compiler configuration so that the native linker is
9004 *** used, and then restart.
9006 _LT_EOF
9009 # For security reasons, it is highly recommended that you always
9010 # use absolute paths for naming shared libraries, and exclude the
9011 # DT_RUNPATH tag from executables and libraries. But doing so
9012 # requires that you compile everything twice, which is a pain.
9013 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9017 else
9018 ld_shlibs=no
9021 esac
9024 sunos4*)
9025 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9026 wlarc=
9027 hardcode_direct=yes
9028 hardcode_shlibpath_var=no
9032 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9035 else
9036 ld_shlibs=no
9039 esac
9041 if test "$ld_shlibs" = no; then
9042 runpath_var=
9043 hardcode_libdir_flag_spec=
9044 export_dynamic_flag_spec=
9045 whole_archive_flag_spec=
9047 else
9048 # PORTME fill in a description of your system's linker (not GNU ld)
9049 case $host_os in
9050 aix3*)
9051 allow_undefined_flag=unsupported
9052 always_export_symbols=yes
9053 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'
9054 # Note: this linker hardcodes the directories in LIBPATH if there
9055 # are no directories specified by -L.
9056 hardcode_minus_L=yes
9057 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9058 # Neither direct hardcoding nor static linking is supported with a
9059 # broken collect2.
9060 hardcode_direct=unsupported
9064 aix[4-9]*)
9065 if test "$host_cpu" = ia64; then
9066 # On IA64, the linker does run time linking by default, so we don't
9067 # have to do anything special.
9068 aix_use_runtimelinking=no
9069 exp_sym_flag='-Bexport'
9070 no_entry_flag=""
9071 else
9072 # If we're using GNU nm, then we don't want the "-C" option.
9073 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9074 # Also, AIX nm treats weak defined symbols like other global
9075 # defined symbols, whereas GNU nm marks them as "W".
9076 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9077 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'
9078 else
9079 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'
9081 aix_use_runtimelinking=no
9083 # Test if we are trying to use run time linking or normal
9084 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9085 # need to do runtime linking.
9086 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9087 for ld_flag in $LDFLAGS; do
9088 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9089 aix_use_runtimelinking=yes
9090 break
9092 done
9094 esac
9096 exp_sym_flag='-bexport'
9097 no_entry_flag='-bnoentry'
9100 # When large executables or shared objects are built, AIX ld can
9101 # have problems creating the table of contents. If linking a library
9102 # or program results in "error TOC overflow" add -mminimal-toc to
9103 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9104 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9106 archive_cmds=''
9107 hardcode_direct=yes
9108 hardcode_direct_absolute=yes
9109 hardcode_libdir_separator=':'
9110 link_all_deplibs=yes
9111 file_list_spec='${wl}-f,'
9113 if test "$GCC" = yes; then
9114 case $host_os in aix4.[012]|aix4.[012].*)
9115 # We only want to do this on AIX 4.2 and lower, the check
9116 # below for broken collect2 doesn't work under 4.3+
9117 collect2name=`${CC} -print-prog-name=collect2`
9118 if test -f "$collect2name" &&
9119 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9120 then
9121 # We have reworked collect2
9123 else
9124 # We have old collect2
9125 hardcode_direct=unsupported
9126 # It fails to find uninstalled libraries when the uninstalled
9127 # path is not listed in the libpath. Setting hardcode_minus_L
9128 # to unsupported forces relinking
9129 hardcode_minus_L=yes
9130 hardcode_libdir_flag_spec='-L$libdir'
9131 hardcode_libdir_separator=
9134 esac
9135 shared_flag='-shared'
9136 if test "$aix_use_runtimelinking" = yes; then
9137 shared_flag="$shared_flag "'${wl}-G'
9139 else
9140 # not using gcc
9141 if test "$host_cpu" = ia64; then
9142 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9143 # chokes on -Wl,-G. The following line is correct:
9144 shared_flag='-G'
9145 else
9146 if test "$aix_use_runtimelinking" = yes; then
9147 shared_flag='${wl}-G'
9148 else
9149 shared_flag='${wl}-bM:SRE'
9154 export_dynamic_flag_spec='${wl}-bexpall'
9155 # It seems that -bexpall does not export symbols beginning with
9156 # underscore (_), so it is better to generate a list of symbols to export.
9157 always_export_symbols=yes
9158 if test "$aix_use_runtimelinking" = yes; then
9159 # Warning - without using the other runtime loading flags (-brtl),
9160 # -berok will link without error, but may produce a broken library.
9161 allow_undefined_flag='-berok'
9162 # Determine the default libpath from the value encoded in an
9163 # empty executable.
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9168 main ()
9172 return 0;
9174 _ACEOF
9175 if ac_fn_c_try_link "$LINENO"; then :
9177 lt_aix_libpath_sed='
9178 /Import File Strings/,/^$/ {
9179 /^0/ {
9180 s/^0 *\(.*\)$/\1/
9184 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9185 # Check for a 64-bit object if we didn't find anything.
9186 if test -z "$aix_libpath"; then
9187 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9190 rm -f core conftest.err conftest.$ac_objext \
9191 conftest$ac_exeext conftest.$ac_ext
9192 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9194 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9195 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"
9196 else
9197 if test "$host_cpu" = ia64; then
9198 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9199 allow_undefined_flag="-z nodefs"
9200 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"
9201 else
9202 # Determine the default libpath from the value encoded in an
9203 # empty executable.
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205 /* end confdefs.h. */
9208 main ()
9212 return 0;
9214 _ACEOF
9215 if ac_fn_c_try_link "$LINENO"; then :
9217 lt_aix_libpath_sed='
9218 /Import File Strings/,/^$/ {
9219 /^0/ {
9220 s/^0 *\(.*\)$/\1/
9224 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9225 # Check for a 64-bit object if we didn't find anything.
9226 if test -z "$aix_libpath"; then
9227 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9230 rm -f core conftest.err conftest.$ac_objext \
9231 conftest$ac_exeext conftest.$ac_ext
9232 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9234 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9235 # Warning - without using the other run time loading flags,
9236 # -berok will link without error, but may produce a broken library.
9237 no_undefined_flag=' ${wl}-bernotok'
9238 allow_undefined_flag=' ${wl}-berok'
9239 if test "$with_gnu_ld" = yes; then
9240 # We only use this code for GNU lds that support --whole-archive.
9241 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9242 else
9243 # Exported symbols can be pulled into shared objects from archives
9244 whole_archive_flag_spec='$convenience'
9246 archive_cmds_need_lc=yes
9247 # This is similar to how AIX traditionally builds its shared libraries.
9248 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'
9253 amigaos*)
9254 case $host_cpu in
9255 powerpc)
9256 # see comment about AmigaOS4 .so support
9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9258 archive_expsym_cmds=''
9260 m68k)
9261 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)'
9262 hardcode_libdir_flag_spec='-L$libdir'
9263 hardcode_minus_L=yes
9265 esac
9268 bsdi[45]*)
9269 export_dynamic_flag_spec=-rdynamic
9272 cygwin* | mingw* | pw32* | cegcc*)
9273 # When not using gcc, we currently assume that we are using
9274 # Microsoft Visual C++.
9275 # hardcode_libdir_flag_spec is actually meaningless, as there is
9276 # no search path for DLLs.
9277 hardcode_libdir_flag_spec=' '
9278 allow_undefined_flag=unsupported
9279 # Tell ltmain to make .lib files, not .a files.
9280 libext=lib
9281 # Tell ltmain to make .dll files, not .so files.
9282 shrext_cmds=".dll"
9283 # FIXME: Setting linknames here is a bad hack.
9284 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9285 # The linker will automatically build a .lib file if we build a DLL.
9286 old_archive_from_new_cmds='true'
9287 # FIXME: Should let the user specify the lib program.
9288 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9289 fix_srcfile_path='`cygpath -w "$srcfile"`'
9290 enable_shared_with_static_runtimes=yes
9293 darwin* | rhapsody*)
9296 archive_cmds_need_lc=no
9297 hardcode_direct=no
9298 hardcode_automatic=yes
9299 hardcode_shlibpath_var=unsupported
9300 if test "$lt_cv_ld_force_load" = "yes"; then
9301 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\"`'
9302 else
9303 whole_archive_flag_spec=''
9305 link_all_deplibs=yes
9306 allow_undefined_flag="$_lt_dar_allow_undefined"
9307 case $cc_basename in
9308 ifort*) _lt_dar_can_shared=yes ;;
9309 *) _lt_dar_can_shared=$GCC ;;
9310 esac
9311 if test "$_lt_dar_can_shared" = "yes"; then
9312 output_verbose_link_cmd=func_echo_all
9313 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9314 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9315 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}"
9316 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}"
9318 else
9319 ld_shlibs=no
9324 dgux*)
9325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9326 hardcode_libdir_flag_spec='-L$libdir'
9327 hardcode_shlibpath_var=no
9330 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9331 # support. Future versions do this automatically, but an explicit c++rt0.o
9332 # does not break anything, and helps significantly (at the cost of a little
9333 # extra space).
9334 freebsd2.2*)
9335 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9336 hardcode_libdir_flag_spec='-R$libdir'
9337 hardcode_direct=yes
9338 hardcode_shlibpath_var=no
9341 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9342 freebsd2.*)
9343 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9344 hardcode_direct=yes
9345 hardcode_minus_L=yes
9346 hardcode_shlibpath_var=no
9349 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9350 freebsd* | dragonfly*)
9351 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9352 hardcode_libdir_flag_spec='-R$libdir'
9353 hardcode_direct=yes
9354 hardcode_shlibpath_var=no
9357 hpux9*)
9358 if test "$GCC" = yes; then
9359 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'
9360 else
9361 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'
9363 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9364 hardcode_libdir_separator=:
9365 hardcode_direct=yes
9367 # hardcode_minus_L: Not really in the search PATH,
9368 # but as the default location of the library.
9369 hardcode_minus_L=yes
9370 export_dynamic_flag_spec='${wl}-E'
9373 hpux10*)
9374 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9375 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9376 else
9377 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9379 if test "$with_gnu_ld" = no; then
9380 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9381 hardcode_libdir_flag_spec_ld='+b $libdir'
9382 hardcode_libdir_separator=:
9383 hardcode_direct=yes
9384 hardcode_direct_absolute=yes
9385 export_dynamic_flag_spec='${wl}-E'
9386 # hardcode_minus_L: Not really in the search PATH,
9387 # but as the default location of the library.
9388 hardcode_minus_L=yes
9392 hpux11*)
9393 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9394 case $host_cpu in
9395 hppa*64*)
9396 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9398 ia64*)
9399 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9402 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9404 esac
9405 else
9406 case $host_cpu in
9407 hppa*64*)
9408 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9410 ia64*)
9411 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9415 # Older versions of the 11.00 compiler do not understand -b yet
9416 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9418 $as_echo_n "checking if $CC understands -b... " >&6; }
9419 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9420 $as_echo_n "(cached) " >&6
9421 else
9422 lt_cv_prog_compiler__b=no
9423 save_LDFLAGS="$LDFLAGS"
9424 LDFLAGS="$LDFLAGS -b"
9425 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9426 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9427 # The linker can only warn and ignore the option if not recognized
9428 # So say no if there are warnings
9429 if test -s conftest.err; then
9430 # Append any errors to the config.log.
9431 cat conftest.err 1>&5
9432 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9434 if diff conftest.exp conftest.er2 >/dev/null; then
9435 lt_cv_prog_compiler__b=yes
9437 else
9438 lt_cv_prog_compiler__b=yes
9441 $RM -r conftest*
9442 LDFLAGS="$save_LDFLAGS"
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9446 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9448 if test x"$lt_cv_prog_compiler__b" = xyes; then
9449 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9450 else
9451 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9455 esac
9457 if test "$with_gnu_ld" = no; then
9458 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9459 hardcode_libdir_separator=:
9461 case $host_cpu in
9462 hppa*64*|ia64*)
9463 hardcode_direct=no
9464 hardcode_shlibpath_var=no
9467 hardcode_direct=yes
9468 hardcode_direct_absolute=yes
9469 export_dynamic_flag_spec='${wl}-E'
9471 # hardcode_minus_L: Not really in the search PATH,
9472 # but as the default location of the library.
9473 hardcode_minus_L=yes
9475 esac
9479 irix5* | irix6* | nonstopux*)
9480 if test "$GCC" = yes; then
9481 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'
9482 # Try to use the -exported_symbol ld option, if it does not
9483 # work, assume that -exports_file does not work either and
9484 # implicitly export all symbols.
9485 save_LDFLAGS="$LDFLAGS"
9486 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488 /* end confdefs.h. */
9489 int foo(void) {}
9490 _ACEOF
9491 if ac_fn_c_try_link "$LINENO"; then :
9492 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'
9495 rm -f core conftest.err conftest.$ac_objext \
9496 conftest$ac_exeext conftest.$ac_ext
9497 LDFLAGS="$save_LDFLAGS"
9498 else
9499 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'
9500 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'
9502 archive_cmds_need_lc='no'
9503 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9504 hardcode_libdir_separator=:
9505 inherit_rpath=yes
9506 link_all_deplibs=yes
9509 netbsd*)
9510 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9511 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9512 else
9513 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9515 hardcode_libdir_flag_spec='-R$libdir'
9516 hardcode_direct=yes
9517 hardcode_shlibpath_var=no
9520 newsos6)
9521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9522 hardcode_direct=yes
9523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9524 hardcode_libdir_separator=:
9525 hardcode_shlibpath_var=no
9528 *nto* | *qnx*)
9531 openbsd*)
9532 if test -f /usr/libexec/ld.so; then
9533 hardcode_direct=yes
9534 hardcode_shlibpath_var=no
9535 hardcode_direct_absolute=yes
9536 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9537 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9538 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9539 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9540 export_dynamic_flag_spec='${wl}-E'
9541 else
9542 case $host_os in
9543 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9545 hardcode_libdir_flag_spec='-R$libdir'
9548 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9549 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9551 esac
9553 else
9554 ld_shlibs=no
9558 os2*)
9559 hardcode_libdir_flag_spec='-L$libdir'
9560 hardcode_minus_L=yes
9561 allow_undefined_flag=unsupported
9562 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'
9563 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9566 osf3*)
9567 if test "$GCC" = yes; then
9568 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9569 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'
9570 else
9571 allow_undefined_flag=' -expect_unresolved \*'
9572 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'
9574 archive_cmds_need_lc='no'
9575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9576 hardcode_libdir_separator=:
9579 osf4* | osf5*) # as osf3* with the addition of -msym flag
9580 if test "$GCC" = yes; then
9581 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9582 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'
9583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9584 else
9585 allow_undefined_flag=' -expect_unresolved \*'
9586 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'
9587 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~
9588 $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'
9590 # Both c and cxx compiler support -rpath directly
9591 hardcode_libdir_flag_spec='-rpath $libdir'
9593 archive_cmds_need_lc='no'
9594 hardcode_libdir_separator=:
9597 solaris*)
9598 no_undefined_flag=' -z defs'
9599 if test "$GCC" = yes; then
9600 wlarc='${wl}'
9601 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9602 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9603 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9604 else
9605 case `$CC -V 2>&1` in
9606 *"Compilers 5.0"*)
9607 wlarc=''
9608 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9609 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9610 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9613 wlarc='${wl}'
9614 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9615 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9616 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9618 esac
9620 hardcode_libdir_flag_spec='-R$libdir'
9621 hardcode_shlibpath_var=no
9622 case $host_os in
9623 solaris2.[0-5] | solaris2.[0-5].*) ;;
9625 # The compiler driver will combine and reorder linker options,
9626 # but understands `-z linker_flag'. GCC discards it without `$wl',
9627 # but is careful enough not to reorder.
9628 # Supported since Solaris 2.6 (maybe 2.5.1?)
9629 if test "$GCC" = yes; then
9630 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9631 else
9632 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9635 esac
9636 link_all_deplibs=yes
9639 sunos4*)
9640 if test "x$host_vendor" = xsequent; then
9641 # Use $CC to link under sequent, because it throws in some extra .o
9642 # files that make .init and .fini sections work.
9643 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9644 else
9645 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9647 hardcode_libdir_flag_spec='-L$libdir'
9648 hardcode_direct=yes
9649 hardcode_minus_L=yes
9650 hardcode_shlibpath_var=no
9653 sysv4)
9654 case $host_vendor in
9655 sni)
9656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657 hardcode_direct=yes # is this really true???
9659 siemens)
9660 ## LD is ld it makes a PLAMLIB
9661 ## CC just makes a GrossModule.
9662 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9663 reload_cmds='$CC -r -o $output$reload_objs'
9664 hardcode_direct=no
9666 motorola)
9667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9668 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9670 esac
9671 runpath_var='LD_RUN_PATH'
9672 hardcode_shlibpath_var=no
9675 sysv4.3*)
9676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9677 hardcode_shlibpath_var=no
9678 export_dynamic_flag_spec='-Bexport'
9681 sysv4*MP*)
9682 if test -d /usr/nec; then
9683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9684 hardcode_shlibpath_var=no
9685 runpath_var=LD_RUN_PATH
9686 hardcode_runpath_var=yes
9687 ld_shlibs=yes
9691 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9692 no_undefined_flag='${wl}-z,text'
9693 archive_cmds_need_lc=no
9694 hardcode_shlibpath_var=no
9695 runpath_var='LD_RUN_PATH'
9697 if test "$GCC" = yes; then
9698 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700 else
9701 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9702 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9706 sysv5* | sco3.2v5* | sco5v6*)
9707 # Note: We can NOT use -z defs as we might desire, because we do not
9708 # link with -lc, and that would cause any symbols used from libc to
9709 # always be unresolved, which means just about no library would
9710 # ever link correctly. If we're not using GNU ld we use -z text
9711 # though, which does catch some bad symbols but isn't as heavy-handed
9712 # as -z defs.
9713 no_undefined_flag='${wl}-z,text'
9714 allow_undefined_flag='${wl}-z,nodefs'
9715 archive_cmds_need_lc=no
9716 hardcode_shlibpath_var=no
9717 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9718 hardcode_libdir_separator=':'
9719 link_all_deplibs=yes
9720 export_dynamic_flag_spec='${wl}-Bexport'
9721 runpath_var='LD_RUN_PATH'
9723 if test "$GCC" = yes; then
9724 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726 else
9727 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9732 uts4*)
9733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9734 hardcode_libdir_flag_spec='-L$libdir'
9735 hardcode_shlibpath_var=no
9739 ld_shlibs=no
9741 esac
9743 if test x$host_vendor = xsni; then
9744 case $host in
9745 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9746 export_dynamic_flag_spec='${wl}-Blargedynsym'
9748 esac
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9753 $as_echo "$ld_shlibs" >&6; }
9754 test "$ld_shlibs" = no && can_build_shared=no
9756 with_gnu_ld=$with_gnu_ld
9773 # Do we need to explicitly link libc?
9775 case "x$archive_cmds_need_lc" in
9776 x|xyes)
9777 # Assume -lc should be added
9778 archive_cmds_need_lc=yes
9780 if test "$enable_shared" = yes && test "$GCC" = yes; then
9781 case $archive_cmds in
9782 *'~'*)
9783 # FIXME: we may have to deal with multi-command sequences.
9785 '$CC '*)
9786 # Test whether the compiler implicitly links with -lc since on some
9787 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9788 # to ld, don't add -lc before -lgcc.
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9790 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9791 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9792 $as_echo_n "(cached) " >&6
9793 else
9794 $RM conftest*
9795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9798 (eval $ac_compile) 2>&5
9799 ac_status=$?
9800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9801 test $ac_status = 0; } 2>conftest.err; then
9802 soname=conftest
9803 lib=conftest
9804 libobjs=conftest.$ac_objext
9805 deplibs=
9806 wl=$lt_prog_compiler_wl
9807 pic_flag=$lt_prog_compiler_pic
9808 compiler_flags=-v
9809 linker_flags=-v
9810 verstring=
9811 output_objdir=.
9812 libname=conftest
9813 lt_save_allow_undefined_flag=$allow_undefined_flag
9814 allow_undefined_flag=
9815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9816 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9817 ac_status=$?
9818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9819 test $ac_status = 0; }
9820 then
9821 lt_cv_archive_cmds_need_lc=no
9822 else
9823 lt_cv_archive_cmds_need_lc=yes
9825 allow_undefined_flag=$lt_save_allow_undefined_flag
9826 else
9827 cat conftest.err 1>&5
9829 $RM conftest*
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9833 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9834 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9836 esac
9839 esac
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9998 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10000 if test "$GCC" = yes; then
10001 case $host_os in
10002 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10003 *) lt_awk_arg="/^libraries:/" ;;
10004 esac
10005 case $host_os in
10006 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10007 *) lt_sed_strip_eq="s,=/,/,g" ;;
10008 esac
10009 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10010 case $lt_search_path_spec in
10011 *\;*)
10012 # if the path contains ";" then we assume it to be the separator
10013 # otherwise default to the standard path separator (i.e. ":") - it is
10014 # assumed that no part of a normal pathname contains ";" but that should
10015 # okay in the real world where ";" in dirpaths is itself problematic.
10016 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10019 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10021 esac
10022 # Ok, now we have the path, separated by spaces, we can step through it
10023 # and add multilib dir if necessary.
10024 lt_tmp_lt_search_path_spec=
10025 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10026 for lt_sys_path in $lt_search_path_spec; do
10027 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10028 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10029 else
10030 test -d "$lt_sys_path" && \
10031 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10033 done
10034 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10035 BEGIN {RS=" "; FS="/|\n";} {
10036 lt_foo="";
10037 lt_count=0;
10038 for (lt_i = NF; lt_i > 0; lt_i--) {
10039 if ($lt_i != "" && $lt_i != ".") {
10040 if ($lt_i == "..") {
10041 lt_count++;
10042 } else {
10043 if (lt_count == 0) {
10044 lt_foo="/" $lt_i lt_foo;
10045 } else {
10046 lt_count--;
10051 if (lt_foo != "") { lt_freq[lt_foo]++; }
10052 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10054 # AWK program above erroneously prepends '/' to C:/dos/paths
10055 # for these hosts.
10056 case $host_os in
10057 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10058 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10059 esac
10060 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10061 else
10062 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10064 library_names_spec=
10065 libname_spec='lib$name'
10066 soname_spec=
10067 shrext_cmds=".so"
10068 postinstall_cmds=
10069 postuninstall_cmds=
10070 finish_cmds=
10071 finish_eval=
10072 shlibpath_var=
10073 shlibpath_overrides_runpath=unknown
10074 version_type=none
10075 dynamic_linker="$host_os ld.so"
10076 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10077 need_lib_prefix=unknown
10078 hardcode_into_libs=no
10080 # when you set need_version to no, make sure it does not cause -set_version
10081 # flags to be left without arguments
10082 need_version=unknown
10084 case $host_os in
10085 aix3*)
10086 version_type=linux
10087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10088 shlibpath_var=LIBPATH
10090 # AIX 3 has no versioning support, so we append a major version to the name.
10091 soname_spec='${libname}${release}${shared_ext}$major'
10094 aix[4-9]*)
10095 version_type=linux
10096 need_lib_prefix=no
10097 need_version=no
10098 hardcode_into_libs=yes
10099 if test "$host_cpu" = ia64; then
10100 # AIX 5 supports IA64
10101 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10102 shlibpath_var=LD_LIBRARY_PATH
10103 else
10104 # With GCC up to 2.95.x, collect2 would create an import file
10105 # for dependence libraries. The import file would start with
10106 # the line `#! .'. This would cause the generated library to
10107 # depend on `.', always an invalid library. This was fixed in
10108 # development snapshots of GCC prior to 3.0.
10109 case $host_os in
10110 aix4 | aix4.[01] | aix4.[01].*)
10111 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10112 echo ' yes '
10113 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10115 else
10116 can_build_shared=no
10119 esac
10120 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10121 # soname into executable. Probably we can add versioning support to
10122 # collect2, so additional links can be useful in future.
10123 if test "$aix_use_runtimelinking" = yes; then
10124 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10125 # instead of lib<name>.a to let people know that these are not
10126 # typical AIX shared libraries.
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128 else
10129 # We preserve .a as extension for shared libraries through AIX4.2
10130 # and later when we are not doing run time linking.
10131 library_names_spec='${libname}${release}.a $libname.a'
10132 soname_spec='${libname}${release}${shared_ext}$major'
10134 shlibpath_var=LIBPATH
10138 amigaos*)
10139 case $host_cpu in
10140 powerpc)
10141 # Since July 2007 AmigaOS4 officially supports .so libraries.
10142 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145 m68k)
10146 library_names_spec='$libname.ixlibrary $libname.a'
10147 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10148 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'
10150 esac
10153 beos*)
10154 library_names_spec='${libname}${shared_ext}'
10155 dynamic_linker="$host_os ld.so"
10156 shlibpath_var=LIBRARY_PATH
10159 bsdi[45]*)
10160 version_type=linux
10161 need_version=no
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163 soname_spec='${libname}${release}${shared_ext}$major'
10164 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10165 shlibpath_var=LD_LIBRARY_PATH
10166 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10167 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10168 # the default ld.so.conf also contains /usr/contrib/lib and
10169 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10170 # libtool to hard-code these into programs
10173 cygwin* | mingw* | pw32* | cegcc*)
10174 version_type=windows
10175 shrext_cmds=".dll"
10176 need_version=no
10177 need_lib_prefix=no
10179 case $GCC,$host_os in
10180 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10181 library_names_spec='$libname.dll.a'
10182 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10183 postinstall_cmds='base_file=`basename \${file}`~
10184 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10185 dldir=$destdir/`dirname \$dlpath`~
10186 test -d \$dldir || mkdir -p \$dldir~
10187 $install_prog $dir/$dlname \$dldir/$dlname~
10188 chmod a+x \$dldir/$dlname~
10189 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10190 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10192 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10193 dlpath=$dir/\$dldll~
10194 $RM \$dlpath'
10195 shlibpath_overrides_runpath=yes
10197 case $host_os in
10198 cygwin*)
10199 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10200 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10202 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10204 mingw* | cegcc*)
10205 # MinGW DLLs use traditional 'lib' prefix
10206 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10208 pw32*)
10209 # pw32 DLLs use 'pw' prefix rather than 'lib'
10210 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10212 esac
10216 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10218 esac
10219 dynamic_linker='Win32 ld.exe'
10220 # FIXME: first we should search . and the directory the executable is in
10221 shlibpath_var=PATH
10224 darwin* | rhapsody*)
10225 dynamic_linker="$host_os dyld"
10226 version_type=darwin
10227 need_lib_prefix=no
10228 need_version=no
10229 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10230 soname_spec='${libname}${release}${major}$shared_ext'
10231 shlibpath_overrides_runpath=yes
10232 shlibpath_var=DYLD_LIBRARY_PATH
10233 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10235 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10236 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10239 dgux*)
10240 version_type=linux
10241 need_lib_prefix=no
10242 need_version=no
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10244 soname_spec='${libname}${release}${shared_ext}$major'
10245 shlibpath_var=LD_LIBRARY_PATH
10248 freebsd* | dragonfly*)
10249 # DragonFly does not have aout. When/if they implement a new
10250 # versioning mechanism, adjust this.
10251 if test -x /usr/bin/objformat; then
10252 objformat=`/usr/bin/objformat`
10253 else
10254 case $host_os in
10255 freebsd[23].*) objformat=aout ;;
10256 *) objformat=elf ;;
10257 esac
10259 version_type=freebsd-$objformat
10260 case $version_type in
10261 freebsd-elf*)
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10263 need_version=no
10264 need_lib_prefix=no
10266 freebsd-*)
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10268 need_version=yes
10270 esac
10271 shlibpath_var=LD_LIBRARY_PATH
10272 case $host_os in
10273 freebsd2.*)
10274 shlibpath_overrides_runpath=yes
10276 freebsd3.[01]* | freebsdelf3.[01]*)
10277 shlibpath_overrides_runpath=yes
10278 hardcode_into_libs=yes
10280 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10281 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10282 shlibpath_overrides_runpath=no
10283 hardcode_into_libs=yes
10285 *) # from 4.6 on, and DragonFly
10286 shlibpath_overrides_runpath=yes
10287 hardcode_into_libs=yes
10289 esac
10292 gnu*)
10293 version_type=linux
10294 need_lib_prefix=no
10295 need_version=no
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10297 soname_spec='${libname}${release}${shared_ext}$major'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 hardcode_into_libs=yes
10302 haiku*)
10303 version_type=linux
10304 need_lib_prefix=no
10305 need_version=no
10306 dynamic_linker="$host_os runtime_loader"
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10308 soname_spec='${libname}${release}${shared_ext}$major'
10309 shlibpath_var=LIBRARY_PATH
10310 shlibpath_overrides_runpath=yes
10311 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10312 hardcode_into_libs=yes
10315 hpux9* | hpux10* | hpux11*)
10316 # Give a soname corresponding to the major version so that dld.sl refuses to
10317 # link against other versions.
10318 version_type=sunos
10319 need_lib_prefix=no
10320 need_version=no
10321 case $host_cpu in
10322 ia64*)
10323 shrext_cmds='.so'
10324 hardcode_into_libs=yes
10325 dynamic_linker="$host_os dld.so"
10326 shlibpath_var=LD_LIBRARY_PATH
10327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 if test "X$HPUX_IA64_MODE" = X32; then
10331 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10332 else
10333 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10335 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10337 hppa*64*)
10338 shrext_cmds='.sl'
10339 hardcode_into_libs=yes
10340 dynamic_linker="$host_os dld.sl"
10341 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344 soname_spec='${libname}${release}${shared_ext}$major'
10345 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10349 shrext_cmds='.sl'
10350 dynamic_linker="$host_os dld.sl"
10351 shlibpath_var=SHLIB_PATH
10352 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10356 esac
10357 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10358 postinstall_cmds='chmod 555 $lib'
10359 # or fails outright, so override atomically:
10360 install_override_mode=555
10363 interix[3-9]*)
10364 version_type=linux
10365 need_lib_prefix=no
10366 need_version=no
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=no
10372 hardcode_into_libs=yes
10375 irix5* | irix6* | nonstopux*)
10376 case $host_os in
10377 nonstopux*) version_type=nonstopux ;;
10379 if test "$lt_cv_prog_gnu_ld" = yes; then
10380 version_type=linux
10381 else
10382 version_type=irix
10383 fi ;;
10384 esac
10385 need_lib_prefix=no
10386 need_version=no
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10389 case $host_os in
10390 irix5* | nonstopux*)
10391 libsuff= shlibsuff=
10394 case $LD in # libtool.m4 will add one of these switches to LD
10395 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10396 libsuff= shlibsuff= libmagic=32-bit;;
10397 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10398 libsuff=32 shlibsuff=N32 libmagic=N32;;
10399 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10400 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10401 *) libsuff= shlibsuff= libmagic=never-match;;
10402 esac
10404 esac
10405 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10406 shlibpath_overrides_runpath=no
10407 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10408 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10409 hardcode_into_libs=yes
10412 # No shared lib support for Linux oldld, aout, or coff.
10413 linux*oldld* | linux*aout* | linux*coff*)
10414 dynamic_linker=no
10417 # This must be Linux ELF.
10418 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10419 version_type=linux
10420 need_lib_prefix=no
10421 need_version=no
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10423 soname_spec='${libname}${release}${shared_ext}$major'
10424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10425 shlibpath_var=LD_LIBRARY_PATH
10426 shlibpath_overrides_runpath=no
10428 # Some binutils ld are patched to set DT_RUNPATH
10429 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 lt_cv_shlibpath_overrides_runpath=no
10433 save_LDFLAGS=$LDFLAGS
10434 save_libdir=$libdir
10435 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10436 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438 /* end confdefs.h. */
10441 main ()
10445 return 0;
10447 _ACEOF
10448 if ac_fn_c_try_link "$LINENO"; then :
10449 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10450 lt_cv_shlibpath_overrides_runpath=yes
10453 rm -f core conftest.err conftest.$ac_objext \
10454 conftest$ac_exeext conftest.$ac_ext
10455 LDFLAGS=$save_LDFLAGS
10456 libdir=$save_libdir
10460 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10462 # This implies no fast_install, which is unacceptable.
10463 # Some rework will be needed to allow for fast_install
10464 # before this can be enabled.
10465 hardcode_into_libs=yes
10467 # Append ld.so.conf contents to the search path
10468 if test -f /etc/ld.so.conf; then
10469 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' ' '`
10470 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10473 # We used to test for /lib/ld.so.1 and disable shared libraries on
10474 # powerpc, because MkLinux only supported shared libraries with the
10475 # GNU dynamic linker. Since this was broken with cross compilers,
10476 # most powerpc-linux boxes support dynamic linking these days and
10477 # people can always --disable-shared, the test was removed, and we
10478 # assume the GNU/Linux dynamic linker is in use.
10479 dynamic_linker='GNU/Linux ld.so'
10482 netbsd*)
10483 version_type=sunos
10484 need_lib_prefix=no
10485 need_version=no
10486 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10489 dynamic_linker='NetBSD (a.out) ld.so'
10490 else
10491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10492 soname_spec='${libname}${release}${shared_ext}$major'
10493 dynamic_linker='NetBSD ld.elf_so'
10495 shlibpath_var=LD_LIBRARY_PATH
10496 shlibpath_overrides_runpath=yes
10497 hardcode_into_libs=yes
10500 newsos6)
10501 version_type=linux
10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503 shlibpath_var=LD_LIBRARY_PATH
10504 shlibpath_overrides_runpath=yes
10507 *nto* | *qnx*)
10508 version_type=qnx
10509 need_lib_prefix=no
10510 need_version=no
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10512 soname_spec='${libname}${release}${shared_ext}$major'
10513 shlibpath_var=LD_LIBRARY_PATH
10514 shlibpath_overrides_runpath=no
10515 hardcode_into_libs=yes
10516 dynamic_linker='ldqnx.so'
10519 openbsd*)
10520 version_type=sunos
10521 sys_lib_dlsearch_path_spec="/usr/lib"
10522 need_lib_prefix=no
10523 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10524 case $host_os in
10525 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10526 *) need_version=no ;;
10527 esac
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10532 case $host_os in
10533 openbsd2.[89] | openbsd2.[89].*)
10534 shlibpath_overrides_runpath=no
10537 shlibpath_overrides_runpath=yes
10539 esac
10540 else
10541 shlibpath_overrides_runpath=yes
10545 os2*)
10546 libname_spec='$name'
10547 shrext_cmds=".dll"
10548 need_lib_prefix=no
10549 library_names_spec='$libname${shared_ext} $libname.a'
10550 dynamic_linker='OS/2 ld.exe'
10551 shlibpath_var=LIBPATH
10554 osf3* | osf4* | osf5*)
10555 version_type=osf
10556 need_lib_prefix=no
10557 need_version=no
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10562 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10565 rdos*)
10566 dynamic_linker=no
10569 solaris*)
10570 version_type=linux
10571 need_lib_prefix=no
10572 need_version=no
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574 soname_spec='${libname}${release}${shared_ext}$major'
10575 shlibpath_var=LD_LIBRARY_PATH
10576 shlibpath_overrides_runpath=yes
10577 hardcode_into_libs=yes
10578 # ldd complains unless libraries are executable
10579 postinstall_cmds='chmod +x $lib'
10582 sunos4*)
10583 version_type=sunos
10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10585 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 shlibpath_overrides_runpath=yes
10588 if test "$with_gnu_ld" = yes; then
10589 need_lib_prefix=no
10591 need_version=yes
10594 sysv4 | sysv4.3*)
10595 version_type=linux
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 case $host_vendor in
10600 sni)
10601 shlibpath_overrides_runpath=no
10602 need_lib_prefix=no
10603 runpath_var=LD_RUN_PATH
10605 siemens)
10606 need_lib_prefix=no
10608 motorola)
10609 need_lib_prefix=no
10610 need_version=no
10611 shlibpath_overrides_runpath=no
10612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10614 esac
10617 sysv4*MP*)
10618 if test -d /usr/nec ;then
10619 version_type=linux
10620 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10621 soname_spec='$libname${shared_ext}.$major'
10622 shlibpath_var=LD_LIBRARY_PATH
10626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10627 version_type=freebsd-elf
10628 need_lib_prefix=no
10629 need_version=no
10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10631 soname_spec='${libname}${release}${shared_ext}$major'
10632 shlibpath_var=LD_LIBRARY_PATH
10633 shlibpath_overrides_runpath=yes
10634 hardcode_into_libs=yes
10635 if test "$with_gnu_ld" = yes; then
10636 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10637 else
10638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10639 case $host_os in
10640 sco3.2v5*)
10641 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10643 esac
10645 sys_lib_dlsearch_path_spec='/usr/lib'
10648 tpf*)
10649 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10650 version_type=linux
10651 need_lib_prefix=no
10652 need_version=no
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10654 shlibpath_var=LD_LIBRARY_PATH
10655 shlibpath_overrides_runpath=no
10656 hardcode_into_libs=yes
10659 uts4*)
10660 version_type=linux
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662 soname_spec='${libname}${release}${shared_ext}$major'
10663 shlibpath_var=LD_LIBRARY_PATH
10667 dynamic_linker=no
10669 esac
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10671 $as_echo "$dynamic_linker" >&6; }
10672 test "$dynamic_linker" = no && can_build_shared=no
10674 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10675 if test "$GCC" = yes; then
10676 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10679 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10680 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10682 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10683 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10778 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10779 hardcode_action=
10780 if test -n "$hardcode_libdir_flag_spec" ||
10781 test -n "$runpath_var" ||
10782 test "X$hardcode_automatic" = "Xyes" ; then
10784 # We can hardcode non-existent directories.
10785 if test "$hardcode_direct" != no &&
10786 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10787 # have to relink, otherwise we might link with an installed library
10788 # when we should be linking with a yet-to-be-installed one
10789 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10790 test "$hardcode_minus_L" != no; then
10791 # Linking always hardcodes the temporary library directory.
10792 hardcode_action=relink
10793 else
10794 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10795 hardcode_action=immediate
10797 else
10798 # We cannot hardcode anything, or else we can only hardcode existing
10799 # directories.
10800 hardcode_action=unsupported
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10803 $as_echo "$hardcode_action" >&6; }
10805 if test "$hardcode_action" = relink ||
10806 test "$inherit_rpath" = yes; then
10807 # Fast installation is not supported
10808 enable_fast_install=no
10809 elif test "$shlibpath_overrides_runpath" = yes ||
10810 test "$enable_shared" = no; then
10811 # Fast installation is not necessary
10812 enable_fast_install=needless
10820 if test "x$enable_dlopen" != xyes; then
10821 enable_dlopen=unknown
10822 enable_dlopen_self=unknown
10823 enable_dlopen_self_static=unknown
10824 else
10825 lt_cv_dlopen=no
10826 lt_cv_dlopen_libs=
10828 case $host_os in
10829 beos*)
10830 lt_cv_dlopen="load_add_on"
10831 lt_cv_dlopen_libs=
10832 lt_cv_dlopen_self=yes
10835 mingw* | pw32* | cegcc*)
10836 lt_cv_dlopen="LoadLibrary"
10837 lt_cv_dlopen_libs=
10840 cygwin*)
10841 lt_cv_dlopen="dlopen"
10842 lt_cv_dlopen_libs=
10845 darwin*)
10846 # if libdl is installed we need to link against it
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10848 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10849 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10850 $as_echo_n "(cached) " >&6
10851 else
10852 ac_check_lib_save_LIBS=$LIBS
10853 LIBS="-ldl $LIBS"
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10857 /* Override any GCC internal prototype to avoid an error.
10858 Use char because int might match the return type of a GCC
10859 builtin and then its argument prototype would still apply. */
10860 #ifdef __cplusplus
10861 extern "C"
10862 #endif
10863 char dlopen ();
10865 main ()
10867 return dlopen ();
10869 return 0;
10871 _ACEOF
10872 if ac_fn_c_try_link "$LINENO"; then :
10873 ac_cv_lib_dl_dlopen=yes
10874 else
10875 ac_cv_lib_dl_dlopen=no
10877 rm -f core conftest.err conftest.$ac_objext \
10878 conftest$ac_exeext conftest.$ac_ext
10879 LIBS=$ac_check_lib_save_LIBS
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10882 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10883 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10884 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10885 else
10887 lt_cv_dlopen="dyld"
10888 lt_cv_dlopen_libs=
10889 lt_cv_dlopen_self=yes
10896 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10897 if test "x$ac_cv_func_shl_load" = x""yes; then :
10898 lt_cv_dlopen="shl_load"
10899 else
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10901 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10902 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10903 $as_echo_n "(cached) " >&6
10904 else
10905 ac_check_lib_save_LIBS=$LIBS
10906 LIBS="-ldld $LIBS"
10907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908 /* end confdefs.h. */
10910 /* Override any GCC internal prototype to avoid an error.
10911 Use char because int might match the return type of a GCC
10912 builtin and then its argument prototype would still apply. */
10913 #ifdef __cplusplus
10914 extern "C"
10915 #endif
10916 char shl_load ();
10918 main ()
10920 return shl_load ();
10922 return 0;
10924 _ACEOF
10925 if ac_fn_c_try_link "$LINENO"; then :
10926 ac_cv_lib_dld_shl_load=yes
10927 else
10928 ac_cv_lib_dld_shl_load=no
10930 rm -f core conftest.err conftest.$ac_objext \
10931 conftest$ac_exeext conftest.$ac_ext
10932 LIBS=$ac_check_lib_save_LIBS
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10935 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10936 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10937 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10938 else
10939 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10940 if test "x$ac_cv_func_dlopen" = x""yes; then :
10941 lt_cv_dlopen="dlopen"
10942 else
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10944 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10945 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10946 $as_echo_n "(cached) " >&6
10947 else
10948 ac_check_lib_save_LIBS=$LIBS
10949 LIBS="-ldl $LIBS"
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10953 /* Override any GCC internal prototype to avoid an error.
10954 Use char because int might match the return type of a GCC
10955 builtin and then its argument prototype would still apply. */
10956 #ifdef __cplusplus
10957 extern "C"
10958 #endif
10959 char dlopen ();
10961 main ()
10963 return dlopen ();
10965 return 0;
10967 _ACEOF
10968 if ac_fn_c_try_link "$LINENO"; then :
10969 ac_cv_lib_dl_dlopen=yes
10970 else
10971 ac_cv_lib_dl_dlopen=no
10973 rm -f core conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10975 LIBS=$ac_check_lib_save_LIBS
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10978 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10979 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10981 else
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10983 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10984 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10985 $as_echo_n "(cached) " >&6
10986 else
10987 ac_check_lib_save_LIBS=$LIBS
10988 LIBS="-lsvld $LIBS"
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10992 /* Override any GCC internal prototype to avoid an error.
10993 Use char because int might match the return type of a GCC
10994 builtin and then its argument prototype would still apply. */
10995 #ifdef __cplusplus
10996 extern "C"
10997 #endif
10998 char dlopen ();
11000 main ()
11002 return dlopen ();
11004 return 0;
11006 _ACEOF
11007 if ac_fn_c_try_link "$LINENO"; then :
11008 ac_cv_lib_svld_dlopen=yes
11009 else
11010 ac_cv_lib_svld_dlopen=no
11012 rm -f core conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
11014 LIBS=$ac_check_lib_save_LIBS
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11017 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11018 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11020 else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11022 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11023 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11024 $as_echo_n "(cached) " >&6
11025 else
11026 ac_check_lib_save_LIBS=$LIBS
11027 LIBS="-ldld $LIBS"
11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11031 /* Override any GCC internal prototype to avoid an error.
11032 Use char because int might match the return type of a GCC
11033 builtin and then its argument prototype would still apply. */
11034 #ifdef __cplusplus
11035 extern "C"
11036 #endif
11037 char dld_link ();
11039 main ()
11041 return dld_link ();
11043 return 0;
11045 _ACEOF
11046 if ac_fn_c_try_link "$LINENO"; then :
11047 ac_cv_lib_dld_dld_link=yes
11048 else
11049 ac_cv_lib_dld_dld_link=no
11051 rm -f core conftest.err conftest.$ac_objext \
11052 conftest$ac_exeext conftest.$ac_ext
11053 LIBS=$ac_check_lib_save_LIBS
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11056 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11057 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11058 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11077 esac
11079 if test "x$lt_cv_dlopen" != xno; then
11080 enable_dlopen=yes
11081 else
11082 enable_dlopen=no
11085 case $lt_cv_dlopen in
11086 dlopen)
11087 save_CPPFLAGS="$CPPFLAGS"
11088 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11090 save_LDFLAGS="$LDFLAGS"
11091 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11093 save_LIBS="$LIBS"
11094 LIBS="$lt_cv_dlopen_libs $LIBS"
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11097 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11098 if test "${lt_cv_dlopen_self+set}" = set; then :
11099 $as_echo_n "(cached) " >&6
11100 else
11101 if test "$cross_compiling" = yes; then :
11102 lt_cv_dlopen_self=cross
11103 else
11104 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11105 lt_status=$lt_dlunknown
11106 cat > conftest.$ac_ext <<_LT_EOF
11107 #line 11107 "configure"
11108 #include "confdefs.h"
11110 #if HAVE_DLFCN_H
11111 #include <dlfcn.h>
11112 #endif
11114 #include <stdio.h>
11116 #ifdef RTLD_GLOBAL
11117 # define LT_DLGLOBAL RTLD_GLOBAL
11118 #else
11119 # ifdef DL_GLOBAL
11120 # define LT_DLGLOBAL DL_GLOBAL
11121 # else
11122 # define LT_DLGLOBAL 0
11123 # endif
11124 #endif
11126 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11127 find out it does not work in some platform. */
11128 #ifndef LT_DLLAZY_OR_NOW
11129 # ifdef RTLD_LAZY
11130 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11131 # else
11132 # ifdef DL_LAZY
11133 # define LT_DLLAZY_OR_NOW DL_LAZY
11134 # else
11135 # ifdef RTLD_NOW
11136 # define LT_DLLAZY_OR_NOW RTLD_NOW
11137 # else
11138 # ifdef DL_NOW
11139 # define LT_DLLAZY_OR_NOW DL_NOW
11140 # else
11141 # define LT_DLLAZY_OR_NOW 0
11142 # endif
11143 # endif
11144 # endif
11145 # endif
11146 #endif
11148 /* When -fvisbility=hidden is used, assume the code has been annotated
11149 correspondingly for the symbols needed. */
11150 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11151 void fnord () __attribute__((visibility("default")));
11152 #endif
11154 void fnord () { int i=42; }
11155 int main ()
11157 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11158 int status = $lt_dlunknown;
11160 if (self)
11162 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11163 else
11165 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11166 else puts (dlerror ());
11168 /* dlclose (self); */
11170 else
11171 puts (dlerror ());
11173 return status;
11175 _LT_EOF
11176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11177 (eval $ac_link) 2>&5
11178 ac_status=$?
11179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11180 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11181 (./conftest; exit; ) >&5 2>/dev/null
11182 lt_status=$?
11183 case x$lt_status in
11184 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11185 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11186 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11187 esac
11188 else :
11189 # compilation failed
11190 lt_cv_dlopen_self=no
11193 rm -fr conftest*
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11198 $as_echo "$lt_cv_dlopen_self" >&6; }
11200 if test "x$lt_cv_dlopen_self" = xyes; then
11201 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11203 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11204 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11205 $as_echo_n "(cached) " >&6
11206 else
11207 if test "$cross_compiling" = yes; then :
11208 lt_cv_dlopen_self_static=cross
11209 else
11210 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11211 lt_status=$lt_dlunknown
11212 cat > conftest.$ac_ext <<_LT_EOF
11213 #line 11213 "configure"
11214 #include "confdefs.h"
11216 #if HAVE_DLFCN_H
11217 #include <dlfcn.h>
11218 #endif
11220 #include <stdio.h>
11222 #ifdef RTLD_GLOBAL
11223 # define LT_DLGLOBAL RTLD_GLOBAL
11224 #else
11225 # ifdef DL_GLOBAL
11226 # define LT_DLGLOBAL DL_GLOBAL
11227 # else
11228 # define LT_DLGLOBAL 0
11229 # endif
11230 #endif
11232 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11233 find out it does not work in some platform. */
11234 #ifndef LT_DLLAZY_OR_NOW
11235 # ifdef RTLD_LAZY
11236 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11237 # else
11238 # ifdef DL_LAZY
11239 # define LT_DLLAZY_OR_NOW DL_LAZY
11240 # else
11241 # ifdef RTLD_NOW
11242 # define LT_DLLAZY_OR_NOW RTLD_NOW
11243 # else
11244 # ifdef DL_NOW
11245 # define LT_DLLAZY_OR_NOW DL_NOW
11246 # else
11247 # define LT_DLLAZY_OR_NOW 0
11248 # endif
11249 # endif
11250 # endif
11251 # endif
11252 #endif
11254 /* When -fvisbility=hidden is used, assume the code has been annotated
11255 correspondingly for the symbols needed. */
11256 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11257 void fnord () __attribute__((visibility("default")));
11258 #endif
11260 void fnord () { int i=42; }
11261 int main ()
11263 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11264 int status = $lt_dlunknown;
11266 if (self)
11268 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11269 else
11271 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11272 else puts (dlerror ());
11274 /* dlclose (self); */
11276 else
11277 puts (dlerror ());
11279 return status;
11281 _LT_EOF
11282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11283 (eval $ac_link) 2>&5
11284 ac_status=$?
11285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11286 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11287 (./conftest; exit; ) >&5 2>/dev/null
11288 lt_status=$?
11289 case x$lt_status in
11290 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11291 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11292 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11293 esac
11294 else :
11295 # compilation failed
11296 lt_cv_dlopen_self_static=no
11299 rm -fr conftest*
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11304 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11307 CPPFLAGS="$save_CPPFLAGS"
11308 LDFLAGS="$save_LDFLAGS"
11309 LIBS="$save_LIBS"
11311 esac
11313 case $lt_cv_dlopen_self in
11314 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11315 *) enable_dlopen_self=unknown ;;
11316 esac
11318 case $lt_cv_dlopen_self_static in
11319 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11320 *) enable_dlopen_self_static=unknown ;;
11321 esac
11340 striplib=
11341 old_striplib=
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11343 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11344 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11345 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11346 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11348 $as_echo "yes" >&6; }
11349 else
11350 # FIXME - insert some real tests, host_os isn't really good enough
11351 case $host_os in
11352 darwin*)
11353 if test -n "$STRIP" ; then
11354 striplib="$STRIP -x"
11355 old_striplib="$STRIP -S"
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11357 $as_echo "yes" >&6; }
11358 else
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11360 $as_echo "no" >&6; }
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365 $as_echo "no" >&6; }
11367 esac
11381 # Report which library types will actually be built
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11383 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11385 $as_echo "$can_build_shared" >&6; }
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11388 $as_echo_n "checking whether to build shared libraries... " >&6; }
11389 test "$can_build_shared" = "no" && enable_shared=no
11391 # On AIX, shared libraries and static libraries use the same namespace, and
11392 # are all built from PIC.
11393 case $host_os in
11394 aix3*)
11395 test "$enable_shared" = yes && enable_static=no
11396 if test -n "$RANLIB"; then
11397 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11398 postinstall_cmds='$RANLIB $lib'
11402 aix[4-9]*)
11403 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11404 test "$enable_shared" = yes && enable_static=no
11407 esac
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11409 $as_echo "$enable_shared" >&6; }
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11412 $as_echo_n "checking whether to build static libraries... " >&6; }
11413 # Make sure either enable_shared or enable_static is yes.
11414 test "$enable_shared" = yes || enable_static=yes
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11416 $as_echo "$enable_static" >&6; }
11422 ac_ext=c
11423 ac_cpp='$CPP $CPPFLAGS'
11424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11428 CC="$lt_save_CC"
11430 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11431 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11432 (test "X$CXX" != "Xg++"))) ; then
11433 ac_ext=cpp
11434 ac_cpp='$CXXCPP $CPPFLAGS'
11435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11439 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11440 if test -z "$CXXCPP"; then
11441 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11442 $as_echo_n "(cached) " >&6
11443 else
11444 # Double quotes because CXXCPP needs to be expanded
11445 for CXXCPP in "$CXX -E" "/lib/cpp"
11447 ac_preproc_ok=false
11448 for ac_cxx_preproc_warn_flag in '' yes
11450 # Use a header file that comes with gcc, so configuring glibc
11451 # with a fresh cross-compiler works.
11452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11453 # <limits.h> exists even on freestanding compilers.
11454 # On the NeXT, cc -E runs the code through the compiler's parser,
11455 # not just through cpp. "Syntax error" is here to catch this case.
11456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11457 /* end confdefs.h. */
11458 #ifdef __STDC__
11459 # include <limits.h>
11460 #else
11461 # include <assert.h>
11462 #endif
11463 Syntax error
11464 _ACEOF
11465 if ac_fn_cxx_try_cpp "$LINENO"; then :
11467 else
11468 # Broken: fails on valid input.
11469 continue
11471 rm -f conftest.err conftest.$ac_ext
11473 # OK, works on sane cases. Now check whether nonexistent headers
11474 # can be detected and how.
11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h. */
11477 #include <ac_nonexistent.h>
11478 _ACEOF
11479 if ac_fn_cxx_try_cpp "$LINENO"; then :
11480 # Broken: success on invalid input.
11481 continue
11482 else
11483 # Passes both tests.
11484 ac_preproc_ok=:
11485 break
11487 rm -f conftest.err conftest.$ac_ext
11489 done
11490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11491 rm -f conftest.err conftest.$ac_ext
11492 if $ac_preproc_ok; then :
11493 break
11496 done
11497 ac_cv_prog_CXXCPP=$CXXCPP
11500 CXXCPP=$ac_cv_prog_CXXCPP
11501 else
11502 ac_cv_prog_CXXCPP=$CXXCPP
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11505 $as_echo "$CXXCPP" >&6; }
11506 ac_preproc_ok=false
11507 for ac_cxx_preproc_warn_flag in '' yes
11509 # Use a header file that comes with gcc, so configuring glibc
11510 # with a fresh cross-compiler works.
11511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11512 # <limits.h> exists even on freestanding compilers.
11513 # On the NeXT, cc -E runs the code through the compiler's parser,
11514 # not just through cpp. "Syntax error" is here to catch this case.
11515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516 /* end confdefs.h. */
11517 #ifdef __STDC__
11518 # include <limits.h>
11519 #else
11520 # include <assert.h>
11521 #endif
11522 Syntax error
11523 _ACEOF
11524 if ac_fn_cxx_try_cpp "$LINENO"; then :
11526 else
11527 # Broken: fails on valid input.
11528 continue
11530 rm -f conftest.err conftest.$ac_ext
11532 # OK, works on sane cases. Now check whether nonexistent headers
11533 # can be detected and how.
11534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535 /* end confdefs.h. */
11536 #include <ac_nonexistent.h>
11537 _ACEOF
11538 if ac_fn_cxx_try_cpp "$LINENO"; then :
11539 # Broken: success on invalid input.
11540 continue
11541 else
11542 # Passes both tests.
11543 ac_preproc_ok=:
11544 break
11546 rm -f conftest.err conftest.$ac_ext
11548 done
11549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11550 rm -f conftest.err conftest.$ac_ext
11551 if $ac_preproc_ok; then :
11553 else
11554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11556 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11557 See \`config.log' for more details." "$LINENO" 5; }
11560 ac_ext=c
11561 ac_cpp='$CPP $CPPFLAGS'
11562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11566 else
11567 _lt_caught_CXX_error=yes
11570 ac_ext=cpp
11571 ac_cpp='$CXXCPP $CPPFLAGS'
11572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11576 archive_cmds_need_lc_CXX=no
11577 allow_undefined_flag_CXX=
11578 always_export_symbols_CXX=no
11579 archive_expsym_cmds_CXX=
11580 compiler_needs_object_CXX=no
11581 export_dynamic_flag_spec_CXX=
11582 hardcode_direct_CXX=no
11583 hardcode_direct_absolute_CXX=no
11584 hardcode_libdir_flag_spec_CXX=
11585 hardcode_libdir_flag_spec_ld_CXX=
11586 hardcode_libdir_separator_CXX=
11587 hardcode_minus_L_CXX=no
11588 hardcode_shlibpath_var_CXX=unsupported
11589 hardcode_automatic_CXX=no
11590 inherit_rpath_CXX=no
11591 module_cmds_CXX=
11592 module_expsym_cmds_CXX=
11593 link_all_deplibs_CXX=unknown
11594 old_archive_cmds_CXX=$old_archive_cmds
11595 reload_flag_CXX=$reload_flag
11596 reload_cmds_CXX=$reload_cmds
11597 no_undefined_flag_CXX=
11598 whole_archive_flag_spec_CXX=
11599 enable_shared_with_static_runtimes_CXX=no
11601 # Source file extension for C++ test sources.
11602 ac_ext=cpp
11604 # Object file extension for compiled C++ test sources.
11605 objext=o
11606 objext_CXX=$objext
11608 # No sense in running all these tests if we already determined that
11609 # the CXX compiler isn't working. Some variables (like enable_shared)
11610 # are currently assumed to apply to all compilers on this platform,
11611 # and will be corrupted by setting them based on a non-working compiler.
11612 if test "$_lt_caught_CXX_error" != yes; then
11613 # Code to be used in simple compile tests
11614 lt_simple_compile_test_code="int some_variable = 0;"
11616 # Code to be used in simple link tests
11617 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11619 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11626 # If no C compiler was specified, use CC.
11627 LTCC=${LTCC-"$CC"}
11629 # If no C compiler flags were specified, use CFLAGS.
11630 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11632 # Allow CC to be a program name with arguments.
11633 compiler=$CC
11636 # save warnings/boilerplate of simple test code
11637 ac_outfile=conftest.$ac_objext
11638 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11639 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11640 _lt_compiler_boilerplate=`cat conftest.err`
11641 $RM conftest*
11643 ac_outfile=conftest.$ac_objext
11644 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11645 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11646 _lt_linker_boilerplate=`cat conftest.err`
11647 $RM -r conftest*
11650 # Allow CC to be a program name with arguments.
11651 lt_save_CC=$CC
11652 lt_save_LD=$LD
11653 lt_save_GCC=$GCC
11654 GCC=$GXX
11655 lt_save_with_gnu_ld=$with_gnu_ld
11656 lt_save_path_LD=$lt_cv_path_LD
11657 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11658 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11659 else
11660 $as_unset lt_cv_prog_gnu_ld
11662 if test -n "${lt_cv_path_LDCXX+set}"; then
11663 lt_cv_path_LD=$lt_cv_path_LDCXX
11664 else
11665 $as_unset lt_cv_path_LD
11667 test -z "${LDCXX+set}" || LD=$LDCXX
11668 CC=${CXX-"c++"}
11669 compiler=$CC
11670 compiler_CXX=$CC
11671 for cc_temp in $compiler""; do
11672 case $cc_temp in
11673 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11674 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11675 \-*) ;;
11676 *) break;;
11677 esac
11678 done
11679 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11682 if test -n "$compiler"; then
11683 # We don't want -fno-exception when compiling C++ code, so set the
11684 # no_builtin_flag separately
11685 if test "$GXX" = yes; then
11686 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11687 else
11688 lt_prog_compiler_no_builtin_flag_CXX=
11691 if test "$GXX" = yes; then
11692 # Set up default GNU C++ configuration
11696 # Check whether --with-gnu-ld was given.
11697 if test "${with_gnu_ld+set}" = set; then :
11698 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11699 else
11700 with_gnu_ld=no
11703 ac_prog=ld
11704 if test "$GCC" = yes; then
11705 # Check if gcc -print-prog-name=ld gives a path.
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11707 $as_echo_n "checking for ld used by $CC... " >&6; }
11708 case $host in
11709 *-*-mingw*)
11710 # gcc leaves a trailing carriage return which upsets mingw
11711 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11713 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11714 esac
11715 case $ac_prog in
11716 # Accept absolute paths.
11717 [\\/]* | ?:[\\/]*)
11718 re_direlt='/[^/][^/]*/\.\./'
11719 # Canonicalize the pathname of ld
11720 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11721 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11722 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11723 done
11724 test -z "$LD" && LD="$ac_prog"
11727 # If it fails, then pretend we aren't using GCC.
11728 ac_prog=ld
11731 # If it is relative, then search for the first ld in PATH.
11732 with_gnu_ld=unknown
11734 esac
11735 elif test "$with_gnu_ld" = yes; then
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11737 $as_echo_n "checking for GNU ld... " >&6; }
11738 else
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11740 $as_echo_n "checking for non-GNU ld... " >&6; }
11742 if test "${lt_cv_path_LD+set}" = set; then :
11743 $as_echo_n "(cached) " >&6
11744 else
11745 if test -z "$LD"; then
11746 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11747 for ac_dir in $PATH; do
11748 IFS="$lt_save_ifs"
11749 test -z "$ac_dir" && ac_dir=.
11750 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11751 lt_cv_path_LD="$ac_dir/$ac_prog"
11752 # Check to see if the program is GNU ld. I'd rather use --version,
11753 # but apparently some variants of GNU ld only accept -v.
11754 # Break only if it was the GNU/non-GNU ld that we prefer.
11755 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11756 *GNU* | *'with BFD'*)
11757 test "$with_gnu_ld" != no && break
11760 test "$with_gnu_ld" != yes && break
11762 esac
11764 done
11765 IFS="$lt_save_ifs"
11766 else
11767 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11771 LD="$lt_cv_path_LD"
11772 if test -n "$LD"; then
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11774 $as_echo "$LD" >&6; }
11775 else
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777 $as_echo "no" >&6; }
11779 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11781 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11782 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11783 $as_echo_n "(cached) " >&6
11784 else
11785 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11786 case `$LD -v 2>&1 </dev/null` in
11787 *GNU* | *'with BFD'*)
11788 lt_cv_prog_gnu_ld=yes
11791 lt_cv_prog_gnu_ld=no
11793 esac
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11796 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11797 with_gnu_ld=$lt_cv_prog_gnu_ld
11805 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11806 # archiving commands below assume that GNU ld is being used.
11807 if test "$with_gnu_ld" = yes; then
11808 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11809 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'
11811 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11812 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11814 # If archive_cmds runs LD, not CC, wlarc should be empty
11815 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11816 # investigate it a little bit more. (MM)
11817 wlarc='${wl}'
11819 # ancient GNU ld didn't support --whole-archive et. al.
11820 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11821 $GREP 'no-whole-archive' > /dev/null; then
11822 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11823 else
11824 whole_archive_flag_spec_CXX=
11826 else
11827 with_gnu_ld=no
11828 wlarc=
11830 # A generic and very simple default shared library creation
11831 # command for GNU C++ for the case where it uses the native
11832 # linker, instead of GNU ld. If possible, this setting should
11833 # overridden to take advantage of the native linker features on
11834 # the platform it is being used on.
11835 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11838 # Commands to make compiler produce verbose output that lists
11839 # what "hidden" libraries, object files and flags are used when
11840 # linking a shared library.
11841 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11843 else
11844 GXX=no
11845 with_gnu_ld=no
11846 wlarc=
11849 # PORTME: fill in a description of your system's C++ link characteristics
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11851 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11852 ld_shlibs_CXX=yes
11853 case $host_os in
11854 aix3*)
11855 # FIXME: insert proper C++ library support
11856 ld_shlibs_CXX=no
11858 aix[4-9]*)
11859 if test "$host_cpu" = ia64; then
11860 # On IA64, the linker does run time linking by default, so we don't
11861 # have to do anything special.
11862 aix_use_runtimelinking=no
11863 exp_sym_flag='-Bexport'
11864 no_entry_flag=""
11865 else
11866 aix_use_runtimelinking=no
11868 # Test if we are trying to use run time linking or normal
11869 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11870 # need to do runtime linking.
11871 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11872 for ld_flag in $LDFLAGS; do
11873 case $ld_flag in
11874 *-brtl*)
11875 aix_use_runtimelinking=yes
11876 break
11878 esac
11879 done
11881 esac
11883 exp_sym_flag='-bexport'
11884 no_entry_flag='-bnoentry'
11887 # When large executables or shared objects are built, AIX ld can
11888 # have problems creating the table of contents. If linking a library
11889 # or program results in "error TOC overflow" add -mminimal-toc to
11890 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11891 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11893 archive_cmds_CXX=''
11894 hardcode_direct_CXX=yes
11895 hardcode_direct_absolute_CXX=yes
11896 hardcode_libdir_separator_CXX=':'
11897 link_all_deplibs_CXX=yes
11898 file_list_spec_CXX='${wl}-f,'
11900 if test "$GXX" = yes; then
11901 case $host_os in aix4.[012]|aix4.[012].*)
11902 # We only want to do this on AIX 4.2 and lower, the check
11903 # below for broken collect2 doesn't work under 4.3+
11904 collect2name=`${CC} -print-prog-name=collect2`
11905 if test -f "$collect2name" &&
11906 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11907 then
11908 # We have reworked collect2
11910 else
11911 # We have old collect2
11912 hardcode_direct_CXX=unsupported
11913 # It fails to find uninstalled libraries when the uninstalled
11914 # path is not listed in the libpath. Setting hardcode_minus_L
11915 # to unsupported forces relinking
11916 hardcode_minus_L_CXX=yes
11917 hardcode_libdir_flag_spec_CXX='-L$libdir'
11918 hardcode_libdir_separator_CXX=
11920 esac
11921 shared_flag='-shared'
11922 if test "$aix_use_runtimelinking" = yes; then
11923 shared_flag="$shared_flag "'${wl}-G'
11925 else
11926 # not using gcc
11927 if test "$host_cpu" = ia64; then
11928 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11929 # chokes on -Wl,-G. The following line is correct:
11930 shared_flag='-G'
11931 else
11932 if test "$aix_use_runtimelinking" = yes; then
11933 shared_flag='${wl}-G'
11934 else
11935 shared_flag='${wl}-bM:SRE'
11940 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11941 # It seems that -bexpall does not export symbols beginning with
11942 # underscore (_), so it is better to generate a list of symbols to
11943 # export.
11944 always_export_symbols_CXX=yes
11945 if test "$aix_use_runtimelinking" = yes; then
11946 # Warning - without using the other runtime loading flags (-brtl),
11947 # -berok will link without error, but may produce a broken library.
11948 allow_undefined_flag_CXX='-berok'
11949 # Determine the default libpath from the value encoded in an empty
11950 # executable.
11951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952 /* end confdefs.h. */
11955 main ()
11959 return 0;
11961 _ACEOF
11962 if ac_fn_cxx_try_link "$LINENO"; then :
11964 lt_aix_libpath_sed='
11965 /Import File Strings/,/^$/ {
11966 /^0/ {
11967 s/^0 *\(.*\)$/\1/
11971 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11972 # Check for a 64-bit object if we didn't find anything.
11973 if test -z "$aix_libpath"; then
11974 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11977 rm -f core conftest.err conftest.$ac_objext \
11978 conftest$ac_exeext conftest.$ac_ext
11979 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11981 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11983 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"
11984 else
11985 if test "$host_cpu" = ia64; then
11986 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11987 allow_undefined_flag_CXX="-z nodefs"
11988 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"
11989 else
11990 # Determine the default libpath from the value encoded in an
11991 # empty executable.
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h. */
11996 main ()
12000 return 0;
12002 _ACEOF
12003 if ac_fn_cxx_try_link "$LINENO"; then :
12005 lt_aix_libpath_sed='
12006 /Import File Strings/,/^$/ {
12007 /^0/ {
12008 s/^0 *\(.*\)$/\1/
12012 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12013 # Check for a 64-bit object if we didn't find anything.
12014 if test -z "$aix_libpath"; then
12015 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12018 rm -f core conftest.err conftest.$ac_objext \
12019 conftest$ac_exeext conftest.$ac_ext
12020 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12022 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12023 # Warning - without using the other run time loading flags,
12024 # -berok will link without error, but may produce a broken library.
12025 no_undefined_flag_CXX=' ${wl}-bernotok'
12026 allow_undefined_flag_CXX=' ${wl}-berok'
12027 if test "$with_gnu_ld" = yes; then
12028 # We only use this code for GNU lds that support --whole-archive.
12029 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12030 else
12031 # Exported symbols can be pulled into shared objects from archives
12032 whole_archive_flag_spec_CXX='$convenience'
12034 archive_cmds_need_lc_CXX=yes
12035 # This is similar to how AIX traditionally builds its shared
12036 # libraries.
12037 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'
12042 beos*)
12043 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12044 allow_undefined_flag_CXX=unsupported
12045 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12046 # support --undefined. This deserves some investigation. FIXME
12047 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12048 else
12049 ld_shlibs_CXX=no
12053 chorus*)
12054 case $cc_basename in
12056 # FIXME: insert proper C++ library support
12057 ld_shlibs_CXX=no
12059 esac
12062 cygwin* | mingw* | pw32* | cegcc*)
12063 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12064 # as there is no search path for DLLs.
12065 hardcode_libdir_flag_spec_CXX='-L$libdir'
12066 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12067 allow_undefined_flag_CXX=unsupported
12068 always_export_symbols_CXX=no
12069 enable_shared_with_static_runtimes_CXX=yes
12071 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12072 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'
12073 # If the export-symbols file already is a .def file (1st line
12074 # is EXPORTS), use it as is; otherwise, prepend...
12075 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12076 cp $export_symbols $output_objdir/$soname.def;
12077 else
12078 echo EXPORTS > $output_objdir/$soname.def;
12079 cat $export_symbols >> $output_objdir/$soname.def;
12081 $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'
12082 else
12083 ld_shlibs_CXX=no
12086 darwin* | rhapsody*)
12089 archive_cmds_need_lc_CXX=no
12090 hardcode_direct_CXX=no
12091 hardcode_automatic_CXX=yes
12092 hardcode_shlibpath_var_CXX=unsupported
12093 if test "$lt_cv_ld_force_load" = "yes"; then
12094 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\"`'
12095 else
12096 whole_archive_flag_spec_CXX=''
12098 link_all_deplibs_CXX=yes
12099 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12100 case $cc_basename in
12101 ifort*) _lt_dar_can_shared=yes ;;
12102 *) _lt_dar_can_shared=$GCC ;;
12103 esac
12104 if test "$_lt_dar_can_shared" = "yes"; then
12105 output_verbose_link_cmd=func_echo_all
12106 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}"
12107 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12108 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}"
12109 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}"
12110 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12111 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}"
12112 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}"
12115 else
12116 ld_shlibs_CXX=no
12121 dgux*)
12122 case $cc_basename in
12123 ec++*)
12124 # FIXME: insert proper C++ library support
12125 ld_shlibs_CXX=no
12127 ghcx*)
12128 # Green Hills C++ Compiler
12129 # FIXME: insert proper C++ library support
12130 ld_shlibs_CXX=no
12133 # FIXME: insert proper C++ library support
12134 ld_shlibs_CXX=no
12136 esac
12139 freebsd2.*)
12140 # C++ shared libraries reported to be fairly broken before
12141 # switch to ELF
12142 ld_shlibs_CXX=no
12145 freebsd-elf*)
12146 archive_cmds_need_lc_CXX=no
12149 freebsd* | dragonfly*)
12150 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12151 # conventions
12152 ld_shlibs_CXX=yes
12155 gnu*)
12158 haiku*)
12159 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12160 link_all_deplibs_CXX=yes
12163 hpux9*)
12164 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12165 hardcode_libdir_separator_CXX=:
12166 export_dynamic_flag_spec_CXX='${wl}-E'
12167 hardcode_direct_CXX=yes
12168 hardcode_minus_L_CXX=yes # Not in the search PATH,
12169 # but as the default
12170 # location of the library.
12172 case $cc_basename in
12173 CC*)
12174 # FIXME: insert proper C++ library support
12175 ld_shlibs_CXX=no
12177 aCC*)
12178 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'
12179 # Commands to make compiler produce verbose output that lists
12180 # what "hidden" libraries, object files and flags are used when
12181 # linking a shared library.
12183 # There doesn't appear to be a way to prevent this compiler from
12184 # explicitly linking system object files so we need to strip them
12185 # from the output so that they don't get included in the library
12186 # dependencies.
12187 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"'
12190 if test "$GXX" = yes; then
12191 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'
12192 else
12193 # FIXME: insert proper C++ library support
12194 ld_shlibs_CXX=no
12197 esac
12200 hpux10*|hpux11*)
12201 if test $with_gnu_ld = no; then
12202 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12203 hardcode_libdir_separator_CXX=:
12205 case $host_cpu in
12206 hppa*64*|ia64*)
12209 export_dynamic_flag_spec_CXX='${wl}-E'
12211 esac
12213 case $host_cpu in
12214 hppa*64*|ia64*)
12215 hardcode_direct_CXX=no
12216 hardcode_shlibpath_var_CXX=no
12219 hardcode_direct_CXX=yes
12220 hardcode_direct_absolute_CXX=yes
12221 hardcode_minus_L_CXX=yes # Not in the search PATH,
12222 # but as the default
12223 # location of the library.
12225 esac
12227 case $cc_basename in
12228 CC*)
12229 # FIXME: insert proper C++ library support
12230 ld_shlibs_CXX=no
12232 aCC*)
12233 case $host_cpu in
12234 hppa*64*)
12235 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12237 ia64*)
12238 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12241 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12243 esac
12244 # Commands to make compiler produce verbose output that lists
12245 # what "hidden" libraries, object files and flags are used when
12246 # linking a shared library.
12248 # There doesn't appear to be a way to prevent this compiler from
12249 # explicitly linking system object files so we need to strip them
12250 # from the output so that they don't get included in the library
12251 # dependencies.
12252 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"'
12255 if test "$GXX" = yes; then
12256 if test $with_gnu_ld = no; then
12257 case $host_cpu in
12258 hppa*64*)
12259 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12261 ia64*)
12262 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12265 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'
12267 esac
12269 else
12270 # FIXME: insert proper C++ library support
12271 ld_shlibs_CXX=no
12274 esac
12277 interix[3-9]*)
12278 hardcode_direct_CXX=no
12279 hardcode_shlibpath_var_CXX=no
12280 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12281 export_dynamic_flag_spec_CXX='${wl}-E'
12282 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12283 # Instead, shared libraries are loaded at an image base (0x10000000 by
12284 # default) and relocated if they conflict, which is a slow very memory
12285 # consuming and fragmenting process. To avoid this, we pick a random,
12286 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12287 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12288 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'
12289 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'
12291 irix5* | irix6*)
12292 case $cc_basename in
12293 CC*)
12294 # SGI C++
12295 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'
12297 # Archives containing C++ object files must be created using
12298 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12299 # necessary to make sure instantiated templates are included
12300 # in the archive.
12301 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12304 if test "$GXX" = yes; then
12305 if test "$with_gnu_ld" = no; then
12306 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'
12307 else
12308 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'
12311 link_all_deplibs_CXX=yes
12313 esac
12314 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12315 hardcode_libdir_separator_CXX=:
12316 inherit_rpath_CXX=yes
12319 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12320 case $cc_basename in
12321 KCC*)
12322 # Kuck and Associates, Inc. (KAI) C++ Compiler
12324 # KCC will only create a shared library if the output file
12325 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12326 # to its proper name (with version) after linking.
12327 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'
12328 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'
12329 # Commands to make compiler produce verbose output that lists
12330 # what "hidden" libraries, object files and flags are used when
12331 # linking a shared library.
12333 # There doesn't appear to be a way to prevent this compiler from
12334 # explicitly linking system object files so we need to strip them
12335 # from the output so that they don't get included in the library
12336 # dependencies.
12337 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"'
12339 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12340 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12342 # Archives containing C++ object files must be created using
12343 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12344 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12346 icpc* | ecpc* )
12347 # Intel C++
12348 with_gnu_ld=yes
12349 # version 8.0 and above of icpc choke on multiply defined symbols
12350 # if we add $predep_objects and $postdep_objects, however 7.1 and
12351 # earlier do not add the objects themselves.
12352 case `$CC -V 2>&1` in
12353 *"Version 7."*)
12354 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12355 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'
12357 *) # Version 8.0 or newer
12358 tmp_idyn=
12359 case $host_cpu in
12360 ia64*) tmp_idyn=' -i_dynamic';;
12361 esac
12362 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12363 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'
12365 esac
12366 archive_cmds_need_lc_CXX=no
12367 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12368 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12369 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12371 pgCC* | pgcpp*)
12372 # Portland Group C++ compiler
12373 case `$CC -V` in
12374 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12375 prelink_cmds_CXX='tpldir=Template.dir~
12376 rm -rf $tpldir~
12377 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12378 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12379 old_archive_cmds_CXX='tpldir=Template.dir~
12380 rm -rf $tpldir~
12381 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12382 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12383 $RANLIB $oldlib'
12384 archive_cmds_CXX='tpldir=Template.dir~
12385 rm -rf $tpldir~
12386 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12387 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12388 archive_expsym_cmds_CXX='tpldir=Template.dir~
12389 rm -rf $tpldir~
12390 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12391 $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'
12393 *) # Version 6 and above use weak symbols
12394 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12395 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'
12397 esac
12399 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12400 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12401 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'
12403 cxx*)
12404 # Compaq C++
12405 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12406 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'
12408 runpath_var=LD_RUN_PATH
12409 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12410 hardcode_libdir_separator_CXX=:
12412 # Commands to make compiler produce verbose output that lists
12413 # what "hidden" libraries, object files and flags are used when
12414 # linking a shared library.
12416 # There doesn't appear to be a way to prevent this compiler from
12417 # explicitly linking system object files so we need to strip them
12418 # from the output so that they don't get included in the library
12419 # dependencies.
12420 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'
12422 xl* | mpixl* | bgxl*)
12423 # IBM XL 8.0 on PPC, with GNU ld
12424 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12425 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12426 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12427 if test "x$supports_anon_versioning" = xyes; then
12428 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12429 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12430 echo "local: *; };" >> $output_objdir/$libname.ver~
12431 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12435 case `$CC -V 2>&1 | sed 5q` in
12436 *Sun\ C*)
12437 # Sun C++ 5.9
12438 no_undefined_flag_CXX=' -zdefs'
12439 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12440 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'
12441 hardcode_libdir_flag_spec_CXX='-R$libdir'
12442 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'
12443 compiler_needs_object_CXX=yes
12445 # Not sure whether something based on
12446 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12447 # would be better.
12448 output_verbose_link_cmd='func_echo_all'
12450 # Archives containing C++ object files must be created using
12451 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12452 # necessary to make sure instantiated templates are included
12453 # in the archive.
12454 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12456 esac
12458 esac
12461 lynxos*)
12462 # FIXME: insert proper C++ library support
12463 ld_shlibs_CXX=no
12466 m88k*)
12467 # FIXME: insert proper C++ library support
12468 ld_shlibs_CXX=no
12471 mvs*)
12472 case $cc_basename in
12473 cxx*)
12474 # FIXME: insert proper C++ library support
12475 ld_shlibs_CXX=no
12478 # FIXME: insert proper C++ library support
12479 ld_shlibs_CXX=no
12481 esac
12484 netbsd*)
12485 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12486 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12487 wlarc=
12488 hardcode_libdir_flag_spec_CXX='-R$libdir'
12489 hardcode_direct_CXX=yes
12490 hardcode_shlibpath_var_CXX=no
12492 # Workaround some broken pre-1.5 toolchains
12493 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12496 *nto* | *qnx*)
12497 ld_shlibs_CXX=yes
12500 openbsd2*)
12501 # C++ shared libraries are fairly broken
12502 ld_shlibs_CXX=no
12505 openbsd*)
12506 if test -f /usr/libexec/ld.so; then
12507 hardcode_direct_CXX=yes
12508 hardcode_shlibpath_var_CXX=no
12509 hardcode_direct_absolute_CXX=yes
12510 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12511 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12512 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12513 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12514 export_dynamic_flag_spec_CXX='${wl}-E'
12515 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12517 output_verbose_link_cmd=func_echo_all
12518 else
12519 ld_shlibs_CXX=no
12523 osf3* | osf4* | osf5*)
12524 case $cc_basename in
12525 KCC*)
12526 # Kuck and Associates, Inc. (KAI) C++ Compiler
12528 # KCC will only create a shared library if the output file
12529 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12530 # to its proper name (with version) after linking.
12531 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'
12533 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12534 hardcode_libdir_separator_CXX=:
12536 # Archives containing C++ object files must be created using
12537 # the KAI C++ compiler.
12538 case $host in
12539 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12540 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12541 esac
12543 RCC*)
12544 # Rational C++ 2.4.1
12545 # FIXME: insert proper C++ library support
12546 ld_shlibs_CXX=no
12548 cxx*)
12549 case $host in
12550 osf3*)
12551 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12552 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'
12553 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12556 allow_undefined_flag_CXX=' -expect_unresolved \*'
12557 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'
12558 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12559 echo "-hidden">> $lib.exp~
12560 $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~
12561 $RM $lib.exp'
12562 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12564 esac
12566 hardcode_libdir_separator_CXX=:
12568 # Commands to make compiler produce verbose output that lists
12569 # what "hidden" libraries, object files and flags are used when
12570 # linking a shared library.
12572 # There doesn't appear to be a way to prevent this compiler from
12573 # explicitly linking system object files so we need to strip them
12574 # from the output so that they don't get included in the library
12575 # dependencies.
12576 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"'
12579 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12580 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12581 case $host in
12582 osf3*)
12583 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'
12586 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'
12588 esac
12590 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12591 hardcode_libdir_separator_CXX=:
12593 # Commands to make compiler produce verbose output that lists
12594 # what "hidden" libraries, object files and flags are used when
12595 # linking a shared library.
12596 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12598 else
12599 # FIXME: insert proper C++ library support
12600 ld_shlibs_CXX=no
12603 esac
12606 psos*)
12607 # FIXME: insert proper C++ library support
12608 ld_shlibs_CXX=no
12611 sunos4*)
12612 case $cc_basename in
12613 CC*)
12614 # Sun C++ 4.x
12615 # FIXME: insert proper C++ library support
12616 ld_shlibs_CXX=no
12618 lcc*)
12619 # Lucid
12620 # FIXME: insert proper C++ library support
12621 ld_shlibs_CXX=no
12624 # FIXME: insert proper C++ library support
12625 ld_shlibs_CXX=no
12627 esac
12630 solaris*)
12631 case $cc_basename in
12632 CC*)
12633 # Sun C++ 4.2, 5.x and Centerline C++
12634 archive_cmds_need_lc_CXX=yes
12635 no_undefined_flag_CXX=' -zdefs'
12636 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12637 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12638 $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'
12640 hardcode_libdir_flag_spec_CXX='-R$libdir'
12641 hardcode_shlibpath_var_CXX=no
12642 case $host_os in
12643 solaris2.[0-5] | solaris2.[0-5].*) ;;
12645 # The compiler driver will combine and reorder linker options,
12646 # but understands `-z linker_flag'.
12647 # Supported since Solaris 2.6 (maybe 2.5.1?)
12648 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12650 esac
12651 link_all_deplibs_CXX=yes
12653 output_verbose_link_cmd='func_echo_all'
12655 # Archives containing C++ object files must be created using
12656 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12657 # necessary to make sure instantiated templates are included
12658 # in the archive.
12659 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12661 gcx*)
12662 # Green Hills C++ Compiler
12663 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12665 # The C++ compiler must be used to create the archive.
12666 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12669 # GNU C++ compiler with Solaris linker
12670 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12671 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12672 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12673 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12674 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12675 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12677 # Commands to make compiler produce verbose output that lists
12678 # what "hidden" libraries, object files and flags are used when
12679 # linking a shared library.
12680 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12681 else
12682 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12683 # platform.
12684 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12685 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12686 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12688 # Commands to make compiler produce verbose output that lists
12689 # what "hidden" libraries, object files and flags are used when
12690 # linking a shared library.
12691 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12694 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12695 case $host_os in
12696 solaris2.[0-5] | solaris2.[0-5].*) ;;
12698 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12700 esac
12703 esac
12706 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12707 no_undefined_flag_CXX='${wl}-z,text'
12708 archive_cmds_need_lc_CXX=no
12709 hardcode_shlibpath_var_CXX=no
12710 runpath_var='LD_RUN_PATH'
12712 case $cc_basename in
12713 CC*)
12714 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12715 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12718 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12719 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12721 esac
12724 sysv5* | sco3.2v5* | sco5v6*)
12725 # Note: We can NOT use -z defs as we might desire, because we do not
12726 # link with -lc, and that would cause any symbols used from libc to
12727 # always be unresolved, which means just about no library would
12728 # ever link correctly. If we're not using GNU ld we use -z text
12729 # though, which does catch some bad symbols but isn't as heavy-handed
12730 # as -z defs.
12731 no_undefined_flag_CXX='${wl}-z,text'
12732 allow_undefined_flag_CXX='${wl}-z,nodefs'
12733 archive_cmds_need_lc_CXX=no
12734 hardcode_shlibpath_var_CXX=no
12735 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12736 hardcode_libdir_separator_CXX=':'
12737 link_all_deplibs_CXX=yes
12738 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12739 runpath_var='LD_RUN_PATH'
12741 case $cc_basename in
12742 CC*)
12743 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12744 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12745 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12746 '"$old_archive_cmds_CXX"
12747 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12748 '"$reload_cmds_CXX"
12751 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12752 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12754 esac
12757 tandem*)
12758 case $cc_basename in
12759 NCC*)
12760 # NonStop-UX NCC 3.20
12761 # FIXME: insert proper C++ library support
12762 ld_shlibs_CXX=no
12765 # FIXME: insert proper C++ library support
12766 ld_shlibs_CXX=no
12768 esac
12771 vxworks*)
12772 # FIXME: insert proper C++ library support
12773 ld_shlibs_CXX=no
12777 # FIXME: insert proper C++ library support
12778 ld_shlibs_CXX=no
12780 esac
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12783 $as_echo "$ld_shlibs_CXX" >&6; }
12784 test "$ld_shlibs_CXX" = no && can_build_shared=no
12786 GCC_CXX="$GXX"
12787 LD_CXX="$LD"
12789 ## CAVEAT EMPTOR:
12790 ## There is no encapsulation within the following macros, do not change
12791 ## the running order or otherwise move them around unless you know exactly
12792 ## what you are doing...
12793 # Dependencies to place before and after the object being linked:
12794 predep_objects_CXX=
12795 postdep_objects_CXX=
12796 predeps_CXX=
12797 postdeps_CXX=
12798 compiler_lib_search_path_CXX=
12800 cat > conftest.$ac_ext <<_LT_EOF
12801 class Foo
12803 public:
12804 Foo (void) { a = 0; }
12805 private:
12806 int a;
12808 _LT_EOF
12810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12811 (eval $ac_compile) 2>&5
12812 ac_status=$?
12813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12814 test $ac_status = 0; }; then
12815 # Parse the compiler output and extract the necessary
12816 # objects, libraries and library flags.
12818 # Sentinel used to keep track of whether or not we are before
12819 # the conftest object file.
12820 pre_test_object_deps_done=no
12822 for p in `eval "$output_verbose_link_cmd"`; do
12823 case $p in
12825 -L* | -R* | -l*)
12826 # Some compilers place space between "-{L,R}" and the path.
12827 # Remove the space.
12828 if test $p = "-L" ||
12829 test $p = "-R"; then
12830 prev=$p
12831 continue
12832 else
12833 prev=
12836 if test "$pre_test_object_deps_done" = no; then
12837 case $p in
12838 -L* | -R*)
12839 # Internal compiler library paths should come after those
12840 # provided the user. The postdeps already come after the
12841 # user supplied libs so there is no need to process them.
12842 if test -z "$compiler_lib_search_path_CXX"; then
12843 compiler_lib_search_path_CXX="${prev}${p}"
12844 else
12845 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12848 # The "-l" case would never come before the object being
12849 # linked, so don't bother handling this case.
12850 esac
12851 else
12852 if test -z "$postdeps_CXX"; then
12853 postdeps_CXX="${prev}${p}"
12854 else
12855 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12860 *.$objext)
12861 # This assumes that the test object file only shows up
12862 # once in the compiler output.
12863 if test "$p" = "conftest.$objext"; then
12864 pre_test_object_deps_done=yes
12865 continue
12868 if test "$pre_test_object_deps_done" = no; then
12869 if test -z "$predep_objects_CXX"; then
12870 predep_objects_CXX="$p"
12871 else
12872 predep_objects_CXX="$predep_objects_CXX $p"
12874 else
12875 if test -z "$postdep_objects_CXX"; then
12876 postdep_objects_CXX="$p"
12877 else
12878 postdep_objects_CXX="$postdep_objects_CXX $p"
12883 *) ;; # Ignore the rest.
12885 esac
12886 done
12888 # Clean up.
12889 rm -f a.out a.exe
12890 else
12891 echo "libtool.m4: error: problem compiling CXX test program"
12894 $RM -f confest.$objext
12896 # PORTME: override above test on systems where it is broken
12897 case $host_os in
12898 interix[3-9]*)
12899 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12900 # hack all around it, let's just trust "g++" to DTRT.
12901 predep_objects_CXX=
12902 postdep_objects_CXX=
12903 postdeps_CXX=
12906 linux*)
12907 case `$CC -V 2>&1 | sed 5q` in
12908 *Sun\ C*)
12909 # Sun C++ 5.9
12911 # The more standards-conforming stlport4 library is
12912 # incompatible with the Cstd library. Avoid specifying
12913 # it if it's in CXXFLAGS. Ignore libCrun as
12914 # -library=stlport4 depends on it.
12915 case " $CXX $CXXFLAGS " in
12916 *" -library=stlport4 "*)
12917 solaris_use_stlport4=yes
12919 esac
12921 if test "$solaris_use_stlport4" != yes; then
12922 postdeps_CXX='-library=Cstd -library=Crun'
12925 esac
12928 solaris*)
12929 case $cc_basename in
12930 CC*)
12931 # The more standards-conforming stlport4 library is
12932 # incompatible with the Cstd library. Avoid specifying
12933 # it if it's in CXXFLAGS. Ignore libCrun as
12934 # -library=stlport4 depends on it.
12935 case " $CXX $CXXFLAGS " in
12936 *" -library=stlport4 "*)
12937 solaris_use_stlport4=yes
12939 esac
12941 # Adding this requires a known-good setup of shared libraries for
12942 # Sun compiler versions before 5.6, else PIC objects from an old
12943 # archive will be linked into the output, leading to subtle bugs.
12944 if test "$solaris_use_stlport4" != yes; then
12945 postdeps_CXX='-library=Cstd -library=Crun'
12948 esac
12950 esac
12953 case " $postdeps_CXX " in
12954 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12955 esac
12956 compiler_lib_search_dirs_CXX=
12957 if test -n "${compiler_lib_search_path_CXX}"; then
12958 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12991 lt_prog_compiler_wl_CXX=
12992 lt_prog_compiler_pic_CXX=
12993 lt_prog_compiler_static_CXX=
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12996 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12998 # C++ specific cases for pic, static, wl, etc.
12999 if test "$GXX" = yes; then
13000 lt_prog_compiler_wl_CXX='-Wl,'
13001 lt_prog_compiler_static_CXX='-static'
13003 case $host_os in
13004 aix*)
13005 # All AIX code is PIC.
13006 if test "$host_cpu" = ia64; then
13007 # AIX 5 now supports IA64 processor
13008 lt_prog_compiler_static_CXX='-Bstatic'
13010 lt_prog_compiler_pic_CXX='-fPIC'
13013 amigaos*)
13014 case $host_cpu in
13015 powerpc)
13016 # see comment about AmigaOS4 .so support
13017 lt_prog_compiler_pic_CXX='-fPIC'
13019 m68k)
13020 # FIXME: we need at least 68020 code to build shared libraries, but
13021 # adding the `-m68020' flag to GCC prevents building anything better,
13022 # like `-m68040'.
13023 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13025 esac
13028 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13029 # PIC is the default for these OSes.
13031 mingw* | cygwin* | os2* | pw32* | cegcc*)
13032 # This hack is so that the source file can tell whether it is being
13033 # built for inclusion in a dll (and should export symbols for example).
13034 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13035 # (--disable-auto-import) libraries
13036 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13038 darwin* | rhapsody*)
13039 # PIC is the default on this platform
13040 # Common symbols not allowed in MH_DYLIB files
13041 lt_prog_compiler_pic_CXX='-fno-common'
13043 *djgpp*)
13044 # DJGPP does not support shared libraries at all
13045 lt_prog_compiler_pic_CXX=
13047 haiku*)
13048 # PIC is the default for Haiku.
13049 # The "-static" flag exists, but is broken.
13050 lt_prog_compiler_static_CXX=
13052 interix[3-9]*)
13053 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13054 # Instead, we relocate shared libraries at runtime.
13056 sysv4*MP*)
13057 if test -d /usr/nec; then
13058 lt_prog_compiler_pic_CXX=-Kconform_pic
13061 hpux*)
13062 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13063 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13064 # sets the default TLS model and affects inlining.
13065 case $host_cpu in
13066 hppa*64*)
13069 lt_prog_compiler_pic_CXX='-fPIC'
13071 esac
13073 *qnx* | *nto*)
13074 # QNX uses GNU C++, but need to define -shared option too, otherwise
13075 # it will coredump.
13076 lt_prog_compiler_pic_CXX='-fPIC -shared'
13079 lt_prog_compiler_pic_CXX='-fPIC'
13081 esac
13082 else
13083 case $host_os in
13084 aix[4-9]*)
13085 # All AIX code is PIC.
13086 if test "$host_cpu" = ia64; then
13087 # AIX 5 now supports IA64 processor
13088 lt_prog_compiler_static_CXX='-Bstatic'
13089 else
13090 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13093 chorus*)
13094 case $cc_basename in
13095 cxch68*)
13096 # Green Hills C++ Compiler
13097 # _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"
13099 esac
13101 dgux*)
13102 case $cc_basename in
13103 ec++*)
13104 lt_prog_compiler_pic_CXX='-KPIC'
13106 ghcx*)
13107 # Green Hills C++ Compiler
13108 lt_prog_compiler_pic_CXX='-pic'
13112 esac
13114 freebsd* | dragonfly*)
13115 # FreeBSD uses GNU C++
13117 hpux9* | hpux10* | hpux11*)
13118 case $cc_basename in
13119 CC*)
13120 lt_prog_compiler_wl_CXX='-Wl,'
13121 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13122 if test "$host_cpu" != ia64; then
13123 lt_prog_compiler_pic_CXX='+Z'
13126 aCC*)
13127 lt_prog_compiler_wl_CXX='-Wl,'
13128 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13129 case $host_cpu in
13130 hppa*64*|ia64*)
13131 # +Z the default
13134 lt_prog_compiler_pic_CXX='+Z'
13136 esac
13140 esac
13142 interix*)
13143 # This is c89, which is MS Visual C++ (no shared libs)
13144 # Anyone wants to do a port?
13146 irix5* | irix6* | nonstopux*)
13147 case $cc_basename in
13148 CC*)
13149 lt_prog_compiler_wl_CXX='-Wl,'
13150 lt_prog_compiler_static_CXX='-non_shared'
13151 # CC pic flag -KPIC is the default.
13155 esac
13157 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13158 case $cc_basename in
13159 KCC*)
13160 # KAI C++ Compiler
13161 lt_prog_compiler_wl_CXX='--backend -Wl,'
13162 lt_prog_compiler_pic_CXX='-fPIC'
13164 ecpc* )
13165 # old Intel C++ for x86_64 which still supported -KPIC.
13166 lt_prog_compiler_wl_CXX='-Wl,'
13167 lt_prog_compiler_pic_CXX='-KPIC'
13168 lt_prog_compiler_static_CXX='-static'
13170 icpc* )
13171 # Intel C++, used to be incompatible with GCC.
13172 # ICC 10 doesn't accept -KPIC any more.
13173 lt_prog_compiler_wl_CXX='-Wl,'
13174 lt_prog_compiler_pic_CXX='-fPIC'
13175 lt_prog_compiler_static_CXX='-static'
13177 pgCC* | pgcpp*)
13178 # Portland Group C++ compiler
13179 lt_prog_compiler_wl_CXX='-Wl,'
13180 lt_prog_compiler_pic_CXX='-fpic'
13181 lt_prog_compiler_static_CXX='-Bstatic'
13183 cxx*)
13184 # Compaq C++
13185 # Make sure the PIC flag is empty. It appears that all Alpha
13186 # Linux and Compaq Tru64 Unix objects are PIC.
13187 lt_prog_compiler_pic_CXX=
13188 lt_prog_compiler_static_CXX='-non_shared'
13190 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13191 # IBM XL 8.0, 9.0 on PPC and BlueGene
13192 lt_prog_compiler_wl_CXX='-Wl,'
13193 lt_prog_compiler_pic_CXX='-qpic'
13194 lt_prog_compiler_static_CXX='-qstaticlink'
13197 case `$CC -V 2>&1 | sed 5q` in
13198 *Sun\ C*)
13199 # Sun C++ 5.9
13200 lt_prog_compiler_pic_CXX='-KPIC'
13201 lt_prog_compiler_static_CXX='-Bstatic'
13202 lt_prog_compiler_wl_CXX='-Qoption ld '
13204 esac
13206 esac
13208 lynxos*)
13210 m88k*)
13212 mvs*)
13213 case $cc_basename in
13214 cxx*)
13215 lt_prog_compiler_pic_CXX='-W c,exportall'
13219 esac
13221 netbsd*)
13223 *qnx* | *nto*)
13224 # QNX uses GNU C++, but need to define -shared option too, otherwise
13225 # it will coredump.
13226 lt_prog_compiler_pic_CXX='-fPIC -shared'
13228 osf3* | osf4* | osf5*)
13229 case $cc_basename in
13230 KCC*)
13231 lt_prog_compiler_wl_CXX='--backend -Wl,'
13233 RCC*)
13234 # Rational C++ 2.4.1
13235 lt_prog_compiler_pic_CXX='-pic'
13237 cxx*)
13238 # Digital/Compaq C++
13239 lt_prog_compiler_wl_CXX='-Wl,'
13240 # Make sure the PIC flag is empty. It appears that all Alpha
13241 # Linux and Compaq Tru64 Unix objects are PIC.
13242 lt_prog_compiler_pic_CXX=
13243 lt_prog_compiler_static_CXX='-non_shared'
13247 esac
13249 psos*)
13251 solaris*)
13252 case $cc_basename in
13253 CC*)
13254 # Sun C++ 4.2, 5.x and Centerline C++
13255 lt_prog_compiler_pic_CXX='-KPIC'
13256 lt_prog_compiler_static_CXX='-Bstatic'
13257 lt_prog_compiler_wl_CXX='-Qoption ld '
13259 gcx*)
13260 # Green Hills C++ Compiler
13261 lt_prog_compiler_pic_CXX='-PIC'
13265 esac
13267 sunos4*)
13268 case $cc_basename in
13269 CC*)
13270 # Sun C++ 4.x
13271 lt_prog_compiler_pic_CXX='-pic'
13272 lt_prog_compiler_static_CXX='-Bstatic'
13274 lcc*)
13275 # Lucid
13276 lt_prog_compiler_pic_CXX='-pic'
13280 esac
13282 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13283 case $cc_basename in
13284 CC*)
13285 lt_prog_compiler_wl_CXX='-Wl,'
13286 lt_prog_compiler_pic_CXX='-KPIC'
13287 lt_prog_compiler_static_CXX='-Bstatic'
13289 esac
13291 tandem*)
13292 case $cc_basename in
13293 NCC*)
13294 # NonStop-UX NCC 3.20
13295 lt_prog_compiler_pic_CXX='-KPIC'
13299 esac
13301 vxworks*)
13304 lt_prog_compiler_can_build_shared_CXX=no
13306 esac
13309 case $host_os in
13310 # For platforms which do not support PIC, -DPIC is meaningless:
13311 *djgpp*)
13312 lt_prog_compiler_pic_CXX=
13315 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13317 esac
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13319 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13324 # Check to make sure the PIC flag actually works.
13326 if test -n "$lt_prog_compiler_pic_CXX"; then
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13328 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13329 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13330 $as_echo_n "(cached) " >&6
13331 else
13332 lt_cv_prog_compiler_pic_works_CXX=no
13333 ac_outfile=conftest.$ac_objext
13334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13335 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13336 # Insert the option either (1) after the last *FLAGS variable, or
13337 # (2) before a word containing "conftest.", or (3) at the end.
13338 # Note that $ac_compile itself does not contain backslashes and begins
13339 # with a dollar sign (not a hyphen), so the echo should work correctly.
13340 # The option is referenced via a variable to avoid confusing sed.
13341 lt_compile=`echo "$ac_compile" | $SED \
13342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13344 -e 's:$: $lt_compiler_flag:'`
13345 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13346 (eval "$lt_compile" 2>conftest.err)
13347 ac_status=$?
13348 cat conftest.err >&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 if (exit $ac_status) && test -s "$ac_outfile"; then
13351 # The compiler can only warn and ignore the option if not recognized
13352 # So say no if there are warnings other than the usual output.
13353 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13355 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13356 lt_cv_prog_compiler_pic_works_CXX=yes
13359 $RM conftest*
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13363 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13365 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13366 case $lt_prog_compiler_pic_CXX in
13367 "" | " "*) ;;
13368 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13369 esac
13370 else
13371 lt_prog_compiler_pic_CXX=
13372 lt_prog_compiler_can_build_shared_CXX=no
13380 # Check to make sure the static flag actually works.
13382 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13384 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13385 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13386 $as_echo_n "(cached) " >&6
13387 else
13388 lt_cv_prog_compiler_static_works_CXX=no
13389 save_LDFLAGS="$LDFLAGS"
13390 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13391 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13392 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13393 # The linker can only warn and ignore the option if not recognized
13394 # So say no if there are warnings
13395 if test -s conftest.err; then
13396 # Append any errors to the config.log.
13397 cat conftest.err 1>&5
13398 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13400 if diff conftest.exp conftest.er2 >/dev/null; then
13401 lt_cv_prog_compiler_static_works_CXX=yes
13403 else
13404 lt_cv_prog_compiler_static_works_CXX=yes
13407 $RM -r conftest*
13408 LDFLAGS="$save_LDFLAGS"
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13412 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13414 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13416 else
13417 lt_prog_compiler_static_CXX=
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13424 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13425 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13426 $as_echo_n "(cached) " >&6
13427 else
13428 lt_cv_prog_compiler_c_o_CXX=no
13429 $RM -r conftest 2>/dev/null
13430 mkdir conftest
13431 cd conftest
13432 mkdir out
13433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13435 lt_compiler_flag="-o out/conftest2.$ac_objext"
13436 # Insert the option either (1) after the last *FLAGS variable, or
13437 # (2) before a word containing "conftest.", or (3) at the end.
13438 # Note that $ac_compile itself does not contain backslashes and begins
13439 # with a dollar sign (not a hyphen), so the echo should work correctly.
13440 lt_compile=`echo "$ac_compile" | $SED \
13441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13443 -e 's:$: $lt_compiler_flag:'`
13444 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13445 (eval "$lt_compile" 2>out/conftest.err)
13446 ac_status=$?
13447 cat out/conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13450 then
13451 # The compiler can only warn and ignore the option if not recognized
13452 # So say no if there are warnings
13453 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13454 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13455 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13456 lt_cv_prog_compiler_c_o_CXX=yes
13459 chmod u+w . 2>&5
13460 $RM conftest*
13461 # SGI C++ compiler will create directory out/ii_files/ for
13462 # template instantiation
13463 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13464 $RM out/* && rmdir out
13465 cd ..
13466 $RM -r conftest
13467 $RM conftest*
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13471 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13476 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13477 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13478 $as_echo_n "(cached) " >&6
13479 else
13480 lt_cv_prog_compiler_c_o_CXX=no
13481 $RM -r conftest 2>/dev/null
13482 mkdir conftest
13483 cd conftest
13484 mkdir out
13485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13487 lt_compiler_flag="-o out/conftest2.$ac_objext"
13488 # Insert the option either (1) after the last *FLAGS variable, or
13489 # (2) before a word containing "conftest.", or (3) at the end.
13490 # Note that $ac_compile itself does not contain backslashes and begins
13491 # with a dollar sign (not a hyphen), so the echo should work correctly.
13492 lt_compile=`echo "$ac_compile" | $SED \
13493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13495 -e 's:$: $lt_compiler_flag:'`
13496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13497 (eval "$lt_compile" 2>out/conftest.err)
13498 ac_status=$?
13499 cat out/conftest.err >&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13502 then
13503 # The compiler can only warn and ignore the option if not recognized
13504 # So say no if there are warnings
13505 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13506 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13507 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13508 lt_cv_prog_compiler_c_o_CXX=yes
13511 chmod u+w . 2>&5
13512 $RM conftest*
13513 # SGI C++ compiler will create directory out/ii_files/ for
13514 # template instantiation
13515 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13516 $RM out/* && rmdir out
13517 cd ..
13518 $RM -r conftest
13519 $RM conftest*
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13523 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13528 hard_links="nottested"
13529 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13530 # do not overwrite the value of need_locks provided by the user
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13532 $as_echo_n "checking if we can lock with hard links... " >&6; }
13533 hard_links=yes
13534 $RM conftest*
13535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13536 touch conftest.a
13537 ln conftest.a conftest.b 2>&5 || hard_links=no
13538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13540 $as_echo "$hard_links" >&6; }
13541 if test "$hard_links" = no; then
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13543 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13544 need_locks=warn
13546 else
13547 need_locks=no
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13553 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13555 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13556 case $host_os in
13557 aix[4-9]*)
13558 # If we're using GNU nm, then we don't want the "-C" option.
13559 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13560 # Also, AIX nm treats weak defined symbols like other global defined
13561 # symbols, whereas GNU nm marks them as "W".
13562 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13563 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'
13564 else
13565 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'
13568 pw32*)
13569 export_symbols_cmds_CXX="$ltdll_cmds"
13571 cygwin* | mingw* | cegcc*)
13572 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'
13575 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13577 esac
13578 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13581 $as_echo "$ld_shlibs_CXX" >&6; }
13582 test "$ld_shlibs_CXX" = no && can_build_shared=no
13584 with_gnu_ld_CXX=$with_gnu_ld
13592 # Do we need to explicitly link libc?
13594 case "x$archive_cmds_need_lc_CXX" in
13595 x|xyes)
13596 # Assume -lc should be added
13597 archive_cmds_need_lc_CXX=yes
13599 if test "$enable_shared" = yes && test "$GCC" = yes; then
13600 case $archive_cmds_CXX in
13601 *'~'*)
13602 # FIXME: we may have to deal with multi-command sequences.
13604 '$CC '*)
13605 # Test whether the compiler implicitly links with -lc since on some
13606 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13607 # to ld, don't add -lc before -lgcc.
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13609 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13610 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13611 $as_echo_n "(cached) " >&6
13612 else
13613 $RM conftest*
13614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13617 (eval $ac_compile) 2>&5
13618 ac_status=$?
13619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13620 test $ac_status = 0; } 2>conftest.err; then
13621 soname=conftest
13622 lib=conftest
13623 libobjs=conftest.$ac_objext
13624 deplibs=
13625 wl=$lt_prog_compiler_wl_CXX
13626 pic_flag=$lt_prog_compiler_pic_CXX
13627 compiler_flags=-v
13628 linker_flags=-v
13629 verstring=
13630 output_objdir=.
13631 libname=conftest
13632 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13633 allow_undefined_flag_CXX=
13634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13635 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13636 ac_status=$?
13637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13638 test $ac_status = 0; }
13639 then
13640 lt_cv_archive_cmds_need_lc_CXX=no
13641 else
13642 lt_cv_archive_cmds_need_lc_CXX=yes
13644 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13645 else
13646 cat conftest.err 1>&5
13648 $RM conftest*
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13652 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13653 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13655 esac
13658 esac
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13724 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13726 library_names_spec=
13727 libname_spec='lib$name'
13728 soname_spec=
13729 shrext_cmds=".so"
13730 postinstall_cmds=
13731 postuninstall_cmds=
13732 finish_cmds=
13733 finish_eval=
13734 shlibpath_var=
13735 shlibpath_overrides_runpath=unknown
13736 version_type=none
13737 dynamic_linker="$host_os ld.so"
13738 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13739 need_lib_prefix=unknown
13740 hardcode_into_libs=no
13742 # when you set need_version to no, make sure it does not cause -set_version
13743 # flags to be left without arguments
13744 need_version=unknown
13746 case $host_os in
13747 aix3*)
13748 version_type=linux
13749 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13750 shlibpath_var=LIBPATH
13752 # AIX 3 has no versioning support, so we append a major version to the name.
13753 soname_spec='${libname}${release}${shared_ext}$major'
13756 aix[4-9]*)
13757 version_type=linux
13758 need_lib_prefix=no
13759 need_version=no
13760 hardcode_into_libs=yes
13761 if test "$host_cpu" = ia64; then
13762 # AIX 5 supports IA64
13763 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13764 shlibpath_var=LD_LIBRARY_PATH
13765 else
13766 # With GCC up to 2.95.x, collect2 would create an import file
13767 # for dependence libraries. The import file would start with
13768 # the line `#! .'. This would cause the generated library to
13769 # depend on `.', always an invalid library. This was fixed in
13770 # development snapshots of GCC prior to 3.0.
13771 case $host_os in
13772 aix4 | aix4.[01] | aix4.[01].*)
13773 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13774 echo ' yes '
13775 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13777 else
13778 can_build_shared=no
13781 esac
13782 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13783 # soname into executable. Probably we can add versioning support to
13784 # collect2, so additional links can be useful in future.
13785 if test "$aix_use_runtimelinking" = yes; then
13786 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13787 # instead of lib<name>.a to let people know that these are not
13788 # typical AIX shared libraries.
13789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13790 else
13791 # We preserve .a as extension for shared libraries through AIX4.2
13792 # and later when we are not doing run time linking.
13793 library_names_spec='${libname}${release}.a $libname.a'
13794 soname_spec='${libname}${release}${shared_ext}$major'
13796 shlibpath_var=LIBPATH
13800 amigaos*)
13801 case $host_cpu in
13802 powerpc)
13803 # Since July 2007 AmigaOS4 officially supports .so libraries.
13804 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13807 m68k)
13808 library_names_spec='$libname.ixlibrary $libname.a'
13809 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13810 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'
13812 esac
13815 beos*)
13816 library_names_spec='${libname}${shared_ext}'
13817 dynamic_linker="$host_os ld.so"
13818 shlibpath_var=LIBRARY_PATH
13821 bsdi[45]*)
13822 version_type=linux
13823 need_version=no
13824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13825 soname_spec='${libname}${release}${shared_ext}$major'
13826 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13827 shlibpath_var=LD_LIBRARY_PATH
13828 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13829 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13830 # the default ld.so.conf also contains /usr/contrib/lib and
13831 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13832 # libtool to hard-code these into programs
13835 cygwin* | mingw* | pw32* | cegcc*)
13836 version_type=windows
13837 shrext_cmds=".dll"
13838 need_version=no
13839 need_lib_prefix=no
13841 case $GCC,$host_os in
13842 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13843 library_names_spec='$libname.dll.a'
13844 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13845 postinstall_cmds='base_file=`basename \${file}`~
13846 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13847 dldir=$destdir/`dirname \$dlpath`~
13848 test -d \$dldir || mkdir -p \$dldir~
13849 $install_prog $dir/$dlname \$dldir/$dlname~
13850 chmod a+x \$dldir/$dlname~
13851 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13852 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13854 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13855 dlpath=$dir/\$dldll~
13856 $RM \$dlpath'
13857 shlibpath_overrides_runpath=yes
13859 case $host_os in
13860 cygwin*)
13861 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13862 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13865 mingw* | cegcc*)
13866 # MinGW DLLs use traditional 'lib' prefix
13867 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13869 pw32*)
13870 # pw32 DLLs use 'pw' prefix rather than 'lib'
13871 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13873 esac
13877 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13879 esac
13880 dynamic_linker='Win32 ld.exe'
13881 # FIXME: first we should search . and the directory the executable is in
13882 shlibpath_var=PATH
13885 darwin* | rhapsody*)
13886 dynamic_linker="$host_os dyld"
13887 version_type=darwin
13888 need_lib_prefix=no
13889 need_version=no
13890 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13891 soname_spec='${libname}${release}${major}$shared_ext'
13892 shlibpath_overrides_runpath=yes
13893 shlibpath_var=DYLD_LIBRARY_PATH
13894 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13896 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13899 dgux*)
13900 version_type=linux
13901 need_lib_prefix=no
13902 need_version=no
13903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13904 soname_spec='${libname}${release}${shared_ext}$major'
13905 shlibpath_var=LD_LIBRARY_PATH
13908 freebsd* | dragonfly*)
13909 # DragonFly does not have aout. When/if they implement a new
13910 # versioning mechanism, adjust this.
13911 if test -x /usr/bin/objformat; then
13912 objformat=`/usr/bin/objformat`
13913 else
13914 case $host_os in
13915 freebsd[23].*) objformat=aout ;;
13916 *) objformat=elf ;;
13917 esac
13919 version_type=freebsd-$objformat
13920 case $version_type in
13921 freebsd-elf*)
13922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13923 need_version=no
13924 need_lib_prefix=no
13926 freebsd-*)
13927 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13928 need_version=yes
13930 esac
13931 shlibpath_var=LD_LIBRARY_PATH
13932 case $host_os in
13933 freebsd2.*)
13934 shlibpath_overrides_runpath=yes
13936 freebsd3.[01]* | freebsdelf3.[01]*)
13937 shlibpath_overrides_runpath=yes
13938 hardcode_into_libs=yes
13940 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13941 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13942 shlibpath_overrides_runpath=no
13943 hardcode_into_libs=yes
13945 *) # from 4.6 on, and DragonFly
13946 shlibpath_overrides_runpath=yes
13947 hardcode_into_libs=yes
13949 esac
13952 gnu*)
13953 version_type=linux
13954 need_lib_prefix=no
13955 need_version=no
13956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13957 soname_spec='${libname}${release}${shared_ext}$major'
13958 shlibpath_var=LD_LIBRARY_PATH
13959 hardcode_into_libs=yes
13962 haiku*)
13963 version_type=linux
13964 need_lib_prefix=no
13965 need_version=no
13966 dynamic_linker="$host_os runtime_loader"
13967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13968 soname_spec='${libname}${release}${shared_ext}$major'
13969 shlibpath_var=LIBRARY_PATH
13970 shlibpath_overrides_runpath=yes
13971 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13972 hardcode_into_libs=yes
13975 hpux9* | hpux10* | hpux11*)
13976 # Give a soname corresponding to the major version so that dld.sl refuses to
13977 # link against other versions.
13978 version_type=sunos
13979 need_lib_prefix=no
13980 need_version=no
13981 case $host_cpu in
13982 ia64*)
13983 shrext_cmds='.so'
13984 hardcode_into_libs=yes
13985 dynamic_linker="$host_os dld.so"
13986 shlibpath_var=LD_LIBRARY_PATH
13987 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13989 soname_spec='${libname}${release}${shared_ext}$major'
13990 if test "X$HPUX_IA64_MODE" = X32; then
13991 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13992 else
13993 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13997 hppa*64*)
13998 shrext_cmds='.sl'
13999 hardcode_into_libs=yes
14000 dynamic_linker="$host_os dld.sl"
14001 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14002 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14004 soname_spec='${libname}${release}${shared_ext}$major'
14005 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14006 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14009 shrext_cmds='.sl'
14010 dynamic_linker="$host_os dld.sl"
14011 shlibpath_var=SHLIB_PATH
14012 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14014 soname_spec='${libname}${release}${shared_ext}$major'
14016 esac
14017 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14018 postinstall_cmds='chmod 555 $lib'
14019 # or fails outright, so override atomically:
14020 install_override_mode=555
14023 interix[3-9]*)
14024 version_type=linux
14025 need_lib_prefix=no
14026 need_version=no
14027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14028 soname_spec='${libname}${release}${shared_ext}$major'
14029 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14030 shlibpath_var=LD_LIBRARY_PATH
14031 shlibpath_overrides_runpath=no
14032 hardcode_into_libs=yes
14035 irix5* | irix6* | nonstopux*)
14036 case $host_os in
14037 nonstopux*) version_type=nonstopux ;;
14039 if test "$lt_cv_prog_gnu_ld" = yes; then
14040 version_type=linux
14041 else
14042 version_type=irix
14043 fi ;;
14044 esac
14045 need_lib_prefix=no
14046 need_version=no
14047 soname_spec='${libname}${release}${shared_ext}$major'
14048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14049 case $host_os in
14050 irix5* | nonstopux*)
14051 libsuff= shlibsuff=
14054 case $LD in # libtool.m4 will add one of these switches to LD
14055 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14056 libsuff= shlibsuff= libmagic=32-bit;;
14057 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14058 libsuff=32 shlibsuff=N32 libmagic=N32;;
14059 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14060 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14061 *) libsuff= shlibsuff= libmagic=never-match;;
14062 esac
14064 esac
14065 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14066 shlibpath_overrides_runpath=no
14067 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14068 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14069 hardcode_into_libs=yes
14072 # No shared lib support for Linux oldld, aout, or coff.
14073 linux*oldld* | linux*aout* | linux*coff*)
14074 dynamic_linker=no
14077 # This must be Linux ELF.
14078 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14079 version_type=linux
14080 need_lib_prefix=no
14081 need_version=no
14082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14083 soname_spec='${libname}${release}${shared_ext}$major'
14084 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14085 shlibpath_var=LD_LIBRARY_PATH
14086 shlibpath_overrides_runpath=no
14088 # Some binutils ld are patched to set DT_RUNPATH
14089 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14090 $as_echo_n "(cached) " >&6
14091 else
14092 lt_cv_shlibpath_overrides_runpath=no
14093 save_LDFLAGS=$LDFLAGS
14094 save_libdir=$libdir
14095 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14096 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h. */
14101 main ()
14105 return 0;
14107 _ACEOF
14108 if ac_fn_cxx_try_link "$LINENO"; then :
14109 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14110 lt_cv_shlibpath_overrides_runpath=yes
14113 rm -f core conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
14115 LDFLAGS=$save_LDFLAGS
14116 libdir=$save_libdir
14120 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14122 # This implies no fast_install, which is unacceptable.
14123 # Some rework will be needed to allow for fast_install
14124 # before this can be enabled.
14125 hardcode_into_libs=yes
14127 # Append ld.so.conf contents to the search path
14128 if test -f /etc/ld.so.conf; then
14129 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' ' '`
14130 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14133 # We used to test for /lib/ld.so.1 and disable shared libraries on
14134 # powerpc, because MkLinux only supported shared libraries with the
14135 # GNU dynamic linker. Since this was broken with cross compilers,
14136 # most powerpc-linux boxes support dynamic linking these days and
14137 # people can always --disable-shared, the test was removed, and we
14138 # assume the GNU/Linux dynamic linker is in use.
14139 dynamic_linker='GNU/Linux ld.so'
14142 netbsd*)
14143 version_type=sunos
14144 need_lib_prefix=no
14145 need_version=no
14146 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14149 dynamic_linker='NetBSD (a.out) ld.so'
14150 else
14151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14152 soname_spec='${libname}${release}${shared_ext}$major'
14153 dynamic_linker='NetBSD ld.elf_so'
14155 shlibpath_var=LD_LIBRARY_PATH
14156 shlibpath_overrides_runpath=yes
14157 hardcode_into_libs=yes
14160 newsos6)
14161 version_type=linux
14162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14163 shlibpath_var=LD_LIBRARY_PATH
14164 shlibpath_overrides_runpath=yes
14167 *nto* | *qnx*)
14168 version_type=qnx
14169 need_lib_prefix=no
14170 need_version=no
14171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14172 soname_spec='${libname}${release}${shared_ext}$major'
14173 shlibpath_var=LD_LIBRARY_PATH
14174 shlibpath_overrides_runpath=no
14175 hardcode_into_libs=yes
14176 dynamic_linker='ldqnx.so'
14179 openbsd*)
14180 version_type=sunos
14181 sys_lib_dlsearch_path_spec="/usr/lib"
14182 need_lib_prefix=no
14183 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14184 case $host_os in
14185 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14186 *) need_version=no ;;
14187 esac
14188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14190 shlibpath_var=LD_LIBRARY_PATH
14191 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14192 case $host_os in
14193 openbsd2.[89] | openbsd2.[89].*)
14194 shlibpath_overrides_runpath=no
14197 shlibpath_overrides_runpath=yes
14199 esac
14200 else
14201 shlibpath_overrides_runpath=yes
14205 os2*)
14206 libname_spec='$name'
14207 shrext_cmds=".dll"
14208 need_lib_prefix=no
14209 library_names_spec='$libname${shared_ext} $libname.a'
14210 dynamic_linker='OS/2 ld.exe'
14211 shlibpath_var=LIBPATH
14214 osf3* | osf4* | osf5*)
14215 version_type=osf
14216 need_lib_prefix=no
14217 need_version=no
14218 soname_spec='${libname}${release}${shared_ext}$major'
14219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14220 shlibpath_var=LD_LIBRARY_PATH
14221 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14222 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14225 rdos*)
14226 dynamic_linker=no
14229 solaris*)
14230 version_type=linux
14231 need_lib_prefix=no
14232 need_version=no
14233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14234 soname_spec='${libname}${release}${shared_ext}$major'
14235 shlibpath_var=LD_LIBRARY_PATH
14236 shlibpath_overrides_runpath=yes
14237 hardcode_into_libs=yes
14238 # ldd complains unless libraries are executable
14239 postinstall_cmds='chmod +x $lib'
14242 sunos4*)
14243 version_type=sunos
14244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14245 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14246 shlibpath_var=LD_LIBRARY_PATH
14247 shlibpath_overrides_runpath=yes
14248 if test "$with_gnu_ld" = yes; then
14249 need_lib_prefix=no
14251 need_version=yes
14254 sysv4 | sysv4.3*)
14255 version_type=linux
14256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14257 soname_spec='${libname}${release}${shared_ext}$major'
14258 shlibpath_var=LD_LIBRARY_PATH
14259 case $host_vendor in
14260 sni)
14261 shlibpath_overrides_runpath=no
14262 need_lib_prefix=no
14263 runpath_var=LD_RUN_PATH
14265 siemens)
14266 need_lib_prefix=no
14268 motorola)
14269 need_lib_prefix=no
14270 need_version=no
14271 shlibpath_overrides_runpath=no
14272 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14274 esac
14277 sysv4*MP*)
14278 if test -d /usr/nec ;then
14279 version_type=linux
14280 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14281 soname_spec='$libname${shared_ext}.$major'
14282 shlibpath_var=LD_LIBRARY_PATH
14286 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14287 version_type=freebsd-elf
14288 need_lib_prefix=no
14289 need_version=no
14290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14291 soname_spec='${libname}${release}${shared_ext}$major'
14292 shlibpath_var=LD_LIBRARY_PATH
14293 shlibpath_overrides_runpath=yes
14294 hardcode_into_libs=yes
14295 if test "$with_gnu_ld" = yes; then
14296 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14297 else
14298 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14299 case $host_os in
14300 sco3.2v5*)
14301 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14303 esac
14305 sys_lib_dlsearch_path_spec='/usr/lib'
14308 tpf*)
14309 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14310 version_type=linux
14311 need_lib_prefix=no
14312 need_version=no
14313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14314 shlibpath_var=LD_LIBRARY_PATH
14315 shlibpath_overrides_runpath=no
14316 hardcode_into_libs=yes
14319 uts4*)
14320 version_type=linux
14321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14322 soname_spec='${libname}${release}${shared_ext}$major'
14323 shlibpath_var=LD_LIBRARY_PATH
14327 dynamic_linker=no
14329 esac
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14331 $as_echo "$dynamic_linker" >&6; }
14332 test "$dynamic_linker" = no && can_build_shared=no
14334 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14335 if test "$GCC" = yes; then
14336 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14339 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14340 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14342 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14343 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14384 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14385 hardcode_action_CXX=
14386 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14387 test -n "$runpath_var_CXX" ||
14388 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14390 # We can hardcode non-existent directories.
14391 if test "$hardcode_direct_CXX" != no &&
14392 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14393 # have to relink, otherwise we might link with an installed library
14394 # when we should be linking with a yet-to-be-installed one
14395 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14396 test "$hardcode_minus_L_CXX" != no; then
14397 # Linking always hardcodes the temporary library directory.
14398 hardcode_action_CXX=relink
14399 else
14400 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14401 hardcode_action_CXX=immediate
14403 else
14404 # We cannot hardcode anything, or else we can only hardcode existing
14405 # directories.
14406 hardcode_action_CXX=unsupported
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14409 $as_echo "$hardcode_action_CXX" >&6; }
14411 if test "$hardcode_action_CXX" = relink ||
14412 test "$inherit_rpath_CXX" = yes; then
14413 # Fast installation is not supported
14414 enable_fast_install=no
14415 elif test "$shlibpath_overrides_runpath" = yes ||
14416 test "$enable_shared" = no; then
14417 # Fast installation is not necessary
14418 enable_fast_install=needless
14427 fi # test -n "$compiler"
14429 CC=$lt_save_CC
14430 LDCXX=$LD
14431 LD=$lt_save_LD
14432 GCC=$lt_save_GCC
14433 with_gnu_ld=$lt_save_with_gnu_ld
14434 lt_cv_path_LDCXX=$lt_cv_path_LD
14435 lt_cv_path_LD=$lt_save_path_LD
14436 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14437 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14438 fi # test "$_lt_caught_CXX_error" != yes
14440 ac_ext=c
14441 ac_cpp='$CPP $CPPFLAGS'
14442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14458 ac_config_commands="$ac_config_commands libtool"
14463 # Only expand once:
14466 # Forbid libtool to hardcode RPATH, because we want to be able to specify
14467 # library search directory using LD_LIBRARY_PATH
14468 hardcode_into_libs=no
14474 if test $enable_shared = yes; then
14475 link_offloadmic_host="-loffloadmic_host %{static: $LIBS}"
14476 link_offloadmic_target="-loffloadmic_target %{static: $LIBS}"
14477 else
14478 link_offloadmic_host="-loffloadmic_host $LIBS"
14479 link_offloadmic_target="-loffloadmic_target $LIBS"
14484 # Must be last
14485 cat >confcache <<\_ACEOF
14486 # This file is a shell script that caches the results of configure
14487 # tests run on this system so they can be shared between configure
14488 # scripts and configure runs, see configure's option --config-cache.
14489 # It is not useful on other systems. If it contains results you don't
14490 # want to keep, you may remove or edit it.
14492 # config.status only pays attention to the cache file if you give it
14493 # the --recheck option to rerun configure.
14495 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14496 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14497 # following values.
14499 _ACEOF
14501 # The following way of writing the cache mishandles newlines in values,
14502 # but we know of no workaround that is simple, portable, and efficient.
14503 # So, we kill variables containing newlines.
14504 # Ultrix sh set writes to stderr and can't be redirected directly,
14505 # and sets the high bit in the cache file unless we assign to the vars.
14507 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14508 eval ac_val=\$$ac_var
14509 case $ac_val in #(
14510 *${as_nl}*)
14511 case $ac_var in #(
14512 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14513 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14514 esac
14515 case $ac_var in #(
14516 _ | IFS | as_nl) ;; #(
14517 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14518 *) { eval $ac_var=; unset $ac_var;} ;;
14519 esac ;;
14520 esac
14521 done
14523 (set) 2>&1 |
14524 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14525 *${as_nl}ac_space=\ *)
14526 # `set' does not quote correctly, so add quotes: double-quote
14527 # substitution turns \\\\ into \\, and sed turns \\ into \.
14528 sed -n \
14529 "s/'/'\\\\''/g;
14530 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14531 ;; #(
14533 # `set' quotes correctly as required by POSIX, so do not add quotes.
14534 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14536 esac |
14537 sort
14539 sed '
14540 /^ac_cv_env_/b end
14541 t clear
14542 :clear
14543 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14544 t end
14545 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14546 :end' >>confcache
14547 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14548 if test -w "$cache_file"; then
14549 test "x$cache_file" != "x/dev/null" &&
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14551 $as_echo "$as_me: updating cache $cache_file" >&6;}
14552 cat confcache >$cache_file
14553 else
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14555 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14558 rm -f confcache
14560 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14561 # Let make expand exec_prefix.
14562 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14564 # Transform confdefs.h into DEFS.
14565 # Protect against shell expansion while executing Makefile rules.
14566 # Protect against Makefile macro expansion.
14568 # If the first sed substitution is executed (which looks for macros that
14569 # take arguments), then branch to the quote section. Otherwise,
14570 # look for a macro that doesn't take arguments.
14571 ac_script='
14572 :mline
14573 /\\$/{
14575 s,\\\n,,
14576 b mline
14578 t clear
14579 :clear
14580 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14581 t quote
14582 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14583 t quote
14584 b any
14585 :quote
14586 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14587 s/\[/\\&/g
14588 s/\]/\\&/g
14589 s/\$/$$/g
14591 :any
14594 s/^\n//
14595 s/\n/ /g
14599 DEFS=`sed -n "$ac_script" confdefs.h`
14602 ac_libobjs=
14603 ac_ltlibobjs=
14604 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14605 # 1. Remove the extension, and $U if already installed.
14606 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14607 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14608 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14609 # will be set to the directory where LIBOBJS objects are built.
14610 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14611 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14612 done
14613 LIBOBJS=$ac_libobjs
14615 LTLIBOBJS=$ac_ltlibobjs
14618 if test -n "$EXEEXT"; then
14619 am__EXEEXT_TRUE=
14620 am__EXEEXT_FALSE='#'
14621 else
14622 am__EXEEXT_TRUE='#'
14623 am__EXEEXT_FALSE=
14626 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14627 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14630 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14631 as_fn_error "conditional \"AMDEP\" was never defined.
14632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14634 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14635 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14638 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14639 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14642 if test -z "${LIBOFFLOADMIC_HOST_TRUE}" && test -z "${LIBOFFLOADMIC_HOST_FALSE}"; then
14643 as_fn_error "conditional \"LIBOFFLOADMIC_HOST\" was never defined.
14644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14647 : ${CONFIG_STATUS=./config.status}
14648 ac_write_fail=0
14649 ac_clean_files_save=$ac_clean_files
14650 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14652 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14653 as_write_fail=0
14654 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14655 #! $SHELL
14656 # Generated by $as_me.
14657 # Run this file to recreate the current configuration.
14658 # Compiler output produced by configure, useful for debugging
14659 # configure, is in config.log if it exists.
14661 debug=false
14662 ac_cs_recheck=false
14663 ac_cs_silent=false
14665 SHELL=\${CONFIG_SHELL-$SHELL}
14666 export SHELL
14667 _ASEOF
14668 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14669 ## -------------------- ##
14670 ## M4sh Initialization. ##
14671 ## -------------------- ##
14673 # Be more Bourne compatible
14674 DUALCASE=1; export DUALCASE # for MKS sh
14675 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14676 emulate sh
14677 NULLCMD=:
14678 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14679 # is contrary to our usage. Disable this feature.
14680 alias -g '${1+"$@"}'='"$@"'
14681 setopt NO_GLOB_SUBST
14682 else
14683 case `(set -o) 2>/dev/null` in #(
14684 *posix*) :
14685 set -o posix ;; #(
14686 *) :
14688 esac
14692 as_nl='
14694 export as_nl
14695 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14696 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14697 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14698 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14699 # Prefer a ksh shell builtin over an external printf program on Solaris,
14700 # but without wasting forks for bash or zsh.
14701 if test -z "$BASH_VERSION$ZSH_VERSION" \
14702 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14703 as_echo='print -r --'
14704 as_echo_n='print -rn --'
14705 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14706 as_echo='printf %s\n'
14707 as_echo_n='printf %s'
14708 else
14709 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14710 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14711 as_echo_n='/usr/ucb/echo -n'
14712 else
14713 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14714 as_echo_n_body='eval
14715 arg=$1;
14716 case $arg in #(
14717 *"$as_nl"*)
14718 expr "X$arg" : "X\\(.*\\)$as_nl";
14719 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14720 esac;
14721 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14723 export as_echo_n_body
14724 as_echo_n='sh -c $as_echo_n_body as_echo'
14726 export as_echo_body
14727 as_echo='sh -c $as_echo_body as_echo'
14730 # The user is always right.
14731 if test "${PATH_SEPARATOR+set}" != set; then
14732 PATH_SEPARATOR=:
14733 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14734 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14735 PATH_SEPARATOR=';'
14740 # IFS
14741 # We need space, tab and new line, in precisely that order. Quoting is
14742 # there to prevent editors from complaining about space-tab.
14743 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14744 # splitting by setting IFS to empty value.)
14745 IFS=" "" $as_nl"
14747 # Find who we are. Look in the path if we contain no directory separator.
14748 case $0 in #((
14749 *[\\/]* ) as_myself=$0 ;;
14750 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14751 for as_dir in $PATH
14753 IFS=$as_save_IFS
14754 test -z "$as_dir" && as_dir=.
14755 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14756 done
14757 IFS=$as_save_IFS
14760 esac
14761 # We did not find ourselves, most probably we were run as `sh COMMAND'
14762 # in which case we are not to be found in the path.
14763 if test "x$as_myself" = x; then
14764 as_myself=$0
14766 if test ! -f "$as_myself"; then
14767 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14768 exit 1
14771 # Unset variables that we do not need and which cause bugs (e.g. in
14772 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14773 # suppresses any "Segmentation fault" message there. '((' could
14774 # trigger a bug in pdksh 5.2.14.
14775 for as_var in BASH_ENV ENV MAIL MAILPATH
14776 do eval test x\${$as_var+set} = xset \
14777 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14778 done
14779 PS1='$ '
14780 PS2='> '
14781 PS4='+ '
14783 # NLS nuisances.
14784 LC_ALL=C
14785 export LC_ALL
14786 LANGUAGE=C
14787 export LANGUAGE
14789 # CDPATH.
14790 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14793 # as_fn_error ERROR [LINENO LOG_FD]
14794 # ---------------------------------
14795 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14796 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14797 # script with status $?, using 1 if that was 0.
14798 as_fn_error ()
14800 as_status=$?; test $as_status -eq 0 && as_status=1
14801 if test "$3"; then
14802 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14803 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14805 $as_echo "$as_me: error: $1" >&2
14806 as_fn_exit $as_status
14807 } # as_fn_error
14810 # as_fn_set_status STATUS
14811 # -----------------------
14812 # Set $? to STATUS, without forking.
14813 as_fn_set_status ()
14815 return $1
14816 } # as_fn_set_status
14818 # as_fn_exit STATUS
14819 # -----------------
14820 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14821 as_fn_exit ()
14823 set +e
14824 as_fn_set_status $1
14825 exit $1
14826 } # as_fn_exit
14828 # as_fn_unset VAR
14829 # ---------------
14830 # Portably unset VAR.
14831 as_fn_unset ()
14833 { eval $1=; unset $1;}
14835 as_unset=as_fn_unset
14836 # as_fn_append VAR VALUE
14837 # ----------------------
14838 # Append the text in VALUE to the end of the definition contained in VAR. Take
14839 # advantage of any shell optimizations that allow amortized linear growth over
14840 # repeated appends, instead of the typical quadratic growth present in naive
14841 # implementations.
14842 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14843 eval 'as_fn_append ()
14845 eval $1+=\$2
14847 else
14848 as_fn_append ()
14850 eval $1=\$$1\$2
14852 fi # as_fn_append
14854 # as_fn_arith ARG...
14855 # ------------------
14856 # Perform arithmetic evaluation on the ARGs, and store the result in the
14857 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14858 # must be portable across $(()) and expr.
14859 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14860 eval 'as_fn_arith ()
14862 as_val=$(( $* ))
14864 else
14865 as_fn_arith ()
14867 as_val=`expr "$@" || test $? -eq 1`
14869 fi # as_fn_arith
14872 if expr a : '\(a\)' >/dev/null 2>&1 &&
14873 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14874 as_expr=expr
14875 else
14876 as_expr=false
14879 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14880 as_basename=basename
14881 else
14882 as_basename=false
14885 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14886 as_dirname=dirname
14887 else
14888 as_dirname=false
14891 as_me=`$as_basename -- "$0" ||
14892 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14893 X"$0" : 'X\(//\)$' \| \
14894 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14895 $as_echo X/"$0" |
14896 sed '/^.*\/\([^/][^/]*\)\/*$/{
14897 s//\1/
14900 /^X\/\(\/\/\)$/{
14901 s//\1/
14904 /^X\/\(\/\).*/{
14905 s//\1/
14908 s/.*/./; q'`
14910 # Avoid depending upon Character Ranges.
14911 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14912 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14913 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14914 as_cr_digits='0123456789'
14915 as_cr_alnum=$as_cr_Letters$as_cr_digits
14917 ECHO_C= ECHO_N= ECHO_T=
14918 case `echo -n x` in #(((((
14919 -n*)
14920 case `echo 'xy\c'` in
14921 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14922 xy) ECHO_C='\c';;
14923 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14924 ECHO_T=' ';;
14925 esac;;
14927 ECHO_N='-n';;
14928 esac
14930 rm -f conf$$ conf$$.exe conf$$.file
14931 if test -d conf$$.dir; then
14932 rm -f conf$$.dir/conf$$.file
14933 else
14934 rm -f conf$$.dir
14935 mkdir conf$$.dir 2>/dev/null
14937 if (echo >conf$$.file) 2>/dev/null; then
14938 if ln -s conf$$.file conf$$ 2>/dev/null; then
14939 as_ln_s='ln -s'
14940 # ... but there are two gotchas:
14941 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14942 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14943 # In both cases, we have to default to `cp -p'.
14944 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14945 as_ln_s='cp -p'
14946 elif ln conf$$.file conf$$ 2>/dev/null; then
14947 as_ln_s=ln
14948 else
14949 as_ln_s='cp -p'
14951 else
14952 as_ln_s='cp -p'
14954 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14955 rmdir conf$$.dir 2>/dev/null
14958 # as_fn_mkdir_p
14959 # -------------
14960 # Create "$as_dir" as a directory, including parents if necessary.
14961 as_fn_mkdir_p ()
14964 case $as_dir in #(
14965 -*) as_dir=./$as_dir;;
14966 esac
14967 test -d "$as_dir" || eval $as_mkdir_p || {
14968 as_dirs=
14969 while :; do
14970 case $as_dir in #(
14971 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14972 *) as_qdir=$as_dir;;
14973 esac
14974 as_dirs="'$as_qdir' $as_dirs"
14975 as_dir=`$as_dirname -- "$as_dir" ||
14976 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14977 X"$as_dir" : 'X\(//\)[^/]' \| \
14978 X"$as_dir" : 'X\(//\)$' \| \
14979 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14980 $as_echo X"$as_dir" |
14981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14982 s//\1/
14985 /^X\(\/\/\)[^/].*/{
14986 s//\1/
14989 /^X\(\/\/\)$/{
14990 s//\1/
14993 /^X\(\/\).*/{
14994 s//\1/
14997 s/.*/./; q'`
14998 test -d "$as_dir" && break
14999 done
15000 test -z "$as_dirs" || eval "mkdir $as_dirs"
15001 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15004 } # as_fn_mkdir_p
15005 if mkdir -p . 2>/dev/null; then
15006 as_mkdir_p='mkdir -p "$as_dir"'
15007 else
15008 test -d ./-p && rmdir ./-p
15009 as_mkdir_p=false
15012 if test -x / >/dev/null 2>&1; then
15013 as_test_x='test -x'
15014 else
15015 if ls -dL / >/dev/null 2>&1; then
15016 as_ls_L_option=L
15017 else
15018 as_ls_L_option=
15020 as_test_x='
15021 eval sh -c '\''
15022 if test -d "$1"; then
15023 test -d "$1/.";
15024 else
15025 case $1 in #(
15026 -*)set "./$1";;
15027 esac;
15028 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15029 ???[sx]*):;;*)false;;esac;fi
15030 '\'' sh
15033 as_executable_p=$as_test_x
15035 # Sed expression to map a string onto a valid CPP name.
15036 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15038 # Sed expression to map a string onto a valid variable name.
15039 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15042 exec 6>&1
15043 ## ----------------------------------- ##
15044 ## Main body of $CONFIG_STATUS script. ##
15045 ## ----------------------------------- ##
15046 _ASEOF
15047 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15050 # Save the log message, to keep $0 and so on meaningful, and to
15051 # report actual input values of CONFIG_FILES etc. instead of their
15052 # values after options handling.
15053 ac_log="
15054 This file was extended by MIC Offload Runtime Library $as_me 1.0, which was
15055 generated by GNU Autoconf 2.64. Invocation command line was
15057 CONFIG_FILES = $CONFIG_FILES
15058 CONFIG_HEADERS = $CONFIG_HEADERS
15059 CONFIG_LINKS = $CONFIG_LINKS
15060 CONFIG_COMMANDS = $CONFIG_COMMANDS
15061 $ $0 $@
15063 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15066 _ACEOF
15068 case $ac_config_files in *"
15069 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15070 esac
15074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15075 # Files that config.status was made for.
15076 config_files="$ac_config_files"
15077 config_commands="$ac_config_commands"
15079 _ACEOF
15081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15082 ac_cs_usage="\
15083 \`$as_me' instantiates files and other configuration actions
15084 from templates according to the current configuration. Unless the files
15085 and actions are specified as TAGs, all are instantiated by default.
15087 Usage: $0 [OPTION]... [TAG]...
15089 -h, --help print this help, then exit
15090 -V, --version print version number and configuration settings, then exit
15091 -q, --quiet, --silent
15092 do not print progress messages
15093 -d, --debug don't remove temporary files
15094 --recheck update $as_me by reconfiguring in the same conditions
15095 --file=FILE[:TEMPLATE]
15096 instantiate the configuration file FILE
15098 Configuration files:
15099 $config_files
15101 Configuration commands:
15102 $config_commands
15104 Report bugs to the package provider."
15106 _ACEOF
15107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15108 ac_cs_version="\\
15109 MIC Offload Runtime Library config.status 1.0
15110 configured by $0, generated by GNU Autoconf 2.64,
15111 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15113 Copyright (C) 2009 Free Software Foundation, Inc.
15114 This config.status script is free software; the Free Software Foundation
15115 gives unlimited permission to copy, distribute and modify it."
15117 ac_pwd='$ac_pwd'
15118 srcdir='$srcdir'
15119 INSTALL='$INSTALL'
15120 MKDIR_P='$MKDIR_P'
15121 AWK='$AWK'
15122 test -n "\$AWK" || AWK=awk
15123 _ACEOF
15125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15126 # The default lists apply if the user does not specify any file.
15127 ac_need_defaults=:
15128 while test $# != 0
15130 case $1 in
15131 --*=*)
15132 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15133 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15134 ac_shift=:
15137 ac_option=$1
15138 ac_optarg=$2
15139 ac_shift=shift
15141 esac
15143 case $ac_option in
15144 # Handling of the options.
15145 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15146 ac_cs_recheck=: ;;
15147 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15148 $as_echo "$ac_cs_version"; exit ;;
15149 --debug | --debu | --deb | --de | --d | -d )
15150 debug=: ;;
15151 --file | --fil | --fi | --f )
15152 $ac_shift
15153 case $ac_optarg in
15154 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15155 esac
15156 as_fn_append CONFIG_FILES " '$ac_optarg'"
15157 ac_need_defaults=false;;
15158 --he | --h | --help | --hel | -h )
15159 $as_echo "$ac_cs_usage"; exit ;;
15160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15161 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15162 ac_cs_silent=: ;;
15164 # This is an error.
15165 -*) as_fn_error "unrecognized option: \`$1'
15166 Try \`$0 --help' for more information." ;;
15168 *) as_fn_append ac_config_targets " $1"
15169 ac_need_defaults=false ;;
15171 esac
15172 shift
15173 done
15175 ac_configure_extra_args=
15177 if $ac_cs_silent; then
15178 exec 6>/dev/null
15179 ac_configure_extra_args="$ac_configure_extra_args --silent"
15182 _ACEOF
15183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15184 if \$ac_cs_recheck; then
15185 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15186 shift
15187 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15188 CONFIG_SHELL='$SHELL'
15189 export CONFIG_SHELL
15190 exec "\$@"
15193 _ACEOF
15194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15195 exec 5>>config.log
15197 echo
15198 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15199 ## Running $as_me. ##
15200 _ASBOX
15201 $as_echo "$ac_log"
15202 } >&5
15204 _ACEOF
15205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15207 # INIT-COMMANDS
15209 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15211 srcdir="$srcdir"
15212 host="$host"
15213 target="$target"
15214 with_multisubdir="$with_multisubdir"
15215 with_multisrctop="$with_multisrctop"
15216 with_target_subdir="$with_target_subdir"
15217 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15218 multi_basedir="$multi_basedir"
15219 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15220 CC="$CC"
15221 CXX="$CXX"
15222 GFORTRAN="$GFORTRAN"
15225 # The HP-UX ksh and POSIX shell print the target directory to stdout
15226 # if CDPATH is set.
15227 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15229 sed_quote_subst='$sed_quote_subst'
15230 double_quote_subst='$double_quote_subst'
15231 delay_variable_subst='$delay_variable_subst'
15232 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15233 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15234 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15235 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15236 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15237 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15238 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15239 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15240 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15241 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15242 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15243 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15244 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15245 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15246 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15247 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15248 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15249 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15250 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15251 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15252 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15253 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15254 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15255 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15256 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15257 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15258 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15259 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15260 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15261 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15262 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15263 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15264 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15265 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15266 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15267 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15268 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15269 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15270 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15271 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15272 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15273 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15274 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15275 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15276 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15277 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15278 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15279 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15280 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"`'
15281 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15282 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15283 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15284 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15285 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15286 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15287 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15288 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15289 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15290 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15291 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15292 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15293 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15294 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15295 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15296 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15297 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15298 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15299 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15300 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15301 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15302 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15303 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15304 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15305 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15306 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15307 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15308 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15309 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15310 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15311 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15312 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15313 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15314 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15315 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15316 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15317 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15318 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15319 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15320 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15321 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15322 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15323 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15324 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15325 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15326 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15327 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15328 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15329 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15330 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15331 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15332 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15333 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15334 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15335 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15336 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15337 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15338 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15339 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15340 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15341 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15342 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15343 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15344 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15345 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15346 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15347 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15348 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15349 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15350 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15351 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15352 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15353 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15354 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15355 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15356 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15357 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15358 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15359 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15360 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15361 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15362 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15363 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15364 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15365 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15366 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15367 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15368 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15369 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15370 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15371 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15372 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15373 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15374 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15375 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15376 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15377 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15378 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15379 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15380 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15381 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15382 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15383 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15384 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15385 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15386 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15387 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15388 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15389 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15390 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15391 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15392 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15393 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15394 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15395 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15396 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15397 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15398 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15399 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15400 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15401 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15402 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15403 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15404 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15405 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15406 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15408 LTCC='$LTCC'
15409 LTCFLAGS='$LTCFLAGS'
15410 compiler='$compiler_DEFAULT'
15412 # A function that is used when there is no print builtin or printf.
15413 func_fallback_echo ()
15415 eval 'cat <<_LTECHO_EOF
15417 _LTECHO_EOF'
15420 # Quote evaled strings.
15421 for var in SHELL \
15422 ECHO \
15423 SED \
15424 GREP \
15425 EGREP \
15426 FGREP \
15427 LD \
15428 NM \
15429 LN_S \
15430 lt_SP2NL \
15431 lt_NL2SP \
15432 reload_flag \
15433 OBJDUMP \
15434 deplibs_check_method \
15435 file_magic_cmd \
15436 AR \
15437 AR_FLAGS \
15438 STRIP \
15439 RANLIB \
15440 CC \
15441 CFLAGS \
15442 compiler \
15443 lt_cv_sys_global_symbol_pipe \
15444 lt_cv_sys_global_symbol_to_cdecl \
15445 lt_cv_sys_global_symbol_to_c_name_address \
15446 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15447 lt_prog_compiler_no_builtin_flag \
15448 lt_prog_compiler_wl \
15449 lt_prog_compiler_pic \
15450 lt_prog_compiler_static \
15451 lt_cv_prog_compiler_c_o \
15452 need_locks \
15453 DSYMUTIL \
15454 NMEDIT \
15455 LIPO \
15456 OTOOL \
15457 OTOOL64 \
15458 shrext_cmds \
15459 export_dynamic_flag_spec \
15460 whole_archive_flag_spec \
15461 compiler_needs_object \
15462 with_gnu_ld \
15463 allow_undefined_flag \
15464 no_undefined_flag \
15465 hardcode_libdir_flag_spec \
15466 hardcode_libdir_flag_spec_ld \
15467 hardcode_libdir_separator \
15468 fix_srcfile_path \
15469 exclude_expsyms \
15470 include_expsyms \
15471 file_list_spec \
15472 variables_saved_for_relink \
15473 libname_spec \
15474 library_names_spec \
15475 soname_spec \
15476 install_override_mode \
15477 finish_eval \
15478 old_striplib \
15479 striplib \
15480 compiler_lib_search_dirs \
15481 predep_objects \
15482 postdep_objects \
15483 predeps \
15484 postdeps \
15485 compiler_lib_search_path \
15486 LD_CXX \
15487 reload_flag_CXX \
15488 compiler_CXX \
15489 lt_prog_compiler_no_builtin_flag_CXX \
15490 lt_prog_compiler_wl_CXX \
15491 lt_prog_compiler_pic_CXX \
15492 lt_prog_compiler_static_CXX \
15493 lt_cv_prog_compiler_c_o_CXX \
15494 export_dynamic_flag_spec_CXX \
15495 whole_archive_flag_spec_CXX \
15496 compiler_needs_object_CXX \
15497 with_gnu_ld_CXX \
15498 allow_undefined_flag_CXX \
15499 no_undefined_flag_CXX \
15500 hardcode_libdir_flag_spec_CXX \
15501 hardcode_libdir_flag_spec_ld_CXX \
15502 hardcode_libdir_separator_CXX \
15503 fix_srcfile_path_CXX \
15504 exclude_expsyms_CXX \
15505 include_expsyms_CXX \
15506 file_list_spec_CXX \
15507 compiler_lib_search_dirs_CXX \
15508 predep_objects_CXX \
15509 postdep_objects_CXX \
15510 predeps_CXX \
15511 postdeps_CXX \
15512 compiler_lib_search_path_CXX; do
15513 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15514 *[\\\\\\\`\\"\\\$]*)
15515 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15518 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15520 esac
15521 done
15523 # Double-quote double-evaled strings.
15524 for var in reload_cmds \
15525 old_postinstall_cmds \
15526 old_postuninstall_cmds \
15527 old_archive_cmds \
15528 extract_expsyms_cmds \
15529 old_archive_from_new_cmds \
15530 old_archive_from_expsyms_cmds \
15531 archive_cmds \
15532 archive_expsym_cmds \
15533 module_cmds \
15534 module_expsym_cmds \
15535 export_symbols_cmds \
15536 prelink_cmds \
15537 postinstall_cmds \
15538 postuninstall_cmds \
15539 finish_cmds \
15540 sys_lib_search_path_spec \
15541 sys_lib_dlsearch_path_spec \
15542 reload_cmds_CXX \
15543 old_archive_cmds_CXX \
15544 old_archive_from_new_cmds_CXX \
15545 old_archive_from_expsyms_cmds_CXX \
15546 archive_cmds_CXX \
15547 archive_expsym_cmds_CXX \
15548 module_cmds_CXX \
15549 module_expsym_cmds_CXX \
15550 export_symbols_cmds_CXX \
15551 prelink_cmds_CXX; do
15552 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15553 *[\\\\\\\`\\"\\\$]*)
15554 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15557 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15559 esac
15560 done
15562 ac_aux_dir='$ac_aux_dir'
15563 xsi_shell='$xsi_shell'
15564 lt_shell_append='$lt_shell_append'
15566 # See if we are running on zsh, and set the options which allow our
15567 # commands through without removal of \ escapes INIT.
15568 if test -n "\${ZSH_VERSION+set}" ; then
15569 setopt NO_GLOB_SUBST
15573 PACKAGE='$PACKAGE'
15574 VERSION='$VERSION'
15575 TIMESTAMP='$TIMESTAMP'
15576 RM='$RM'
15577 ofile='$ofile'
15584 _ACEOF
15586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15588 # Handling of arguments.
15589 for ac_config_target in $ac_config_targets
15591 case $ac_config_target in
15592 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15593 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15594 "liboffloadmic_host.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_host.spec" ;;
15595 "liboffloadmic_target.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_target.spec" ;;
15596 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15597 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15599 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15600 esac
15601 done
15604 # If the user did not use the arguments to specify the items to instantiate,
15605 # then the envvar interface is used. Set only those that are not.
15606 # We use the long form for the default assignment because of an extremely
15607 # bizarre bug on SunOS 4.1.3.
15608 if $ac_need_defaults; then
15609 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15610 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15613 # Have a temporary directory for convenience. Make it in the build tree
15614 # simply because there is no reason against having it here, and in addition,
15615 # creating and moving files from /tmp can sometimes cause problems.
15616 # Hook for its removal unless debugging.
15617 # Note that there is a small window in which the directory will not be cleaned:
15618 # after its creation but before its name has been assigned to `$tmp'.
15619 $debug ||
15621 tmp=
15622 trap 'exit_status=$?
15623 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15625 trap 'as_fn_exit 1' 1 2 13 15
15627 # Create a (secure) tmp directory for tmp files.
15630 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15631 test -n "$tmp" && test -d "$tmp"
15632 } ||
15634 tmp=./conf$$-$RANDOM
15635 (umask 077 && mkdir "$tmp")
15636 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15638 # Set up the scripts for CONFIG_FILES section.
15639 # No need to generate them if there are no CONFIG_FILES.
15640 # This happens for instance with `./config.status config.h'.
15641 if test -n "$CONFIG_FILES"; then
15644 ac_cr=`echo X | tr X '\015'`
15645 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15646 # But we know of no other shell where ac_cr would be empty at this
15647 # point, so we can use a bashism as a fallback.
15648 if test "x$ac_cr" = x; then
15649 eval ac_cr=\$\'\\r\'
15651 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15652 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15653 ac_cs_awk_cr='\r'
15654 else
15655 ac_cs_awk_cr=$ac_cr
15658 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15659 _ACEOF
15663 echo "cat >conf$$subs.awk <<_ACEOF" &&
15664 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15665 echo "_ACEOF"
15666 } >conf$$subs.sh ||
15667 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15668 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15669 ac_delim='%!_!# '
15670 for ac_last_try in false false false false false :; do
15671 . ./conf$$subs.sh ||
15672 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15674 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15675 if test $ac_delim_n = $ac_delim_num; then
15676 break
15677 elif $ac_last_try; then
15678 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15679 else
15680 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15682 done
15683 rm -f conf$$subs.sh
15685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15686 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15687 _ACEOF
15688 sed -n '
15690 s/^/S["/; s/!.*/"]=/
15693 s/^[^!]*!//
15694 :repl
15695 t repl
15696 s/'"$ac_delim"'$//
15697 t delim
15700 s/\(.\{148\}\).*/\1/
15701 t more1
15702 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15705 b repl
15706 :more1
15707 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15710 s/.\{148\}//
15711 t nl
15712 :delim
15714 s/\(.\{148\}\).*/\1/
15715 t more2
15716 s/["\\]/\\&/g; s/^/"/; s/$/"/
15719 :more2
15720 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15723 s/.\{148\}//
15724 t delim
15725 ' <conf$$subs.awk | sed '
15726 /^[^""]/{
15728 s/\n//
15730 ' >>$CONFIG_STATUS || ac_write_fail=1
15731 rm -f conf$$subs.awk
15732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15733 _ACAWK
15734 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15735 for (key in S) S_is_set[key] = 1
15736 FS = "\a"
15740 line = $ 0
15741 nfields = split(line, field, "@")
15742 substed = 0
15743 len = length(field[1])
15744 for (i = 2; i < nfields; i++) {
15745 key = field[i]
15746 keylen = length(key)
15747 if (S_is_set[key]) {
15748 value = S[key]
15749 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15750 len += length(value) + length(field[++i])
15751 substed = 1
15752 } else
15753 len += 1 + keylen
15756 print line
15759 _ACAWK
15760 _ACEOF
15761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15762 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15763 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15764 else
15766 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15767 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15768 _ACEOF
15770 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15771 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15772 # trailing colons and then remove the whole line if VPATH becomes empty
15773 # (actually we leave an empty line to preserve line numbers).
15774 if test "x$srcdir" = x.; then
15775 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15776 s/:*\$(srcdir):*/:/
15777 s/:*\${srcdir}:*/:/
15778 s/:*@srcdir@:*/:/
15779 s/^\([^=]*=[ ]*\):*/\1/
15780 s/:*$//
15781 s/^[^=]*=[ ]*$//
15785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15786 fi # test -n "$CONFIG_FILES"
15789 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15790 shift
15791 for ac_tag
15793 case $ac_tag in
15794 :[FHLC]) ac_mode=$ac_tag; continue;;
15795 esac
15796 case $ac_mode$ac_tag in
15797 :[FHL]*:*);;
15798 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15799 :[FH]-) ac_tag=-:-;;
15800 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15801 esac
15802 ac_save_IFS=$IFS
15803 IFS=:
15804 set x $ac_tag
15805 IFS=$ac_save_IFS
15806 shift
15807 ac_file=$1
15808 shift
15810 case $ac_mode in
15811 :L) ac_source=$1;;
15812 :[FH])
15813 ac_file_inputs=
15814 for ac_f
15816 case $ac_f in
15817 -) ac_f="$tmp/stdin";;
15818 *) # Look for the file first in the build tree, then in the source tree
15819 # (if the path is not absolute). The absolute path cannot be DOS-style,
15820 # because $ac_f cannot contain `:'.
15821 test -f "$ac_f" ||
15822 case $ac_f in
15823 [\\/$]*) false;;
15824 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15825 esac ||
15826 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15827 esac
15828 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15829 as_fn_append ac_file_inputs " '$ac_f'"
15830 done
15832 # Let's still pretend it is `configure' which instantiates (i.e., don't
15833 # use $as_me), people would be surprised to read:
15834 # /* config.h. Generated by config.status. */
15835 configure_input='Generated from '`
15836 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15837 `' by configure.'
15838 if test x"$ac_file" != x-; then
15839 configure_input="$ac_file. $configure_input"
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15841 $as_echo "$as_me: creating $ac_file" >&6;}
15843 # Neutralize special characters interpreted by sed in replacement strings.
15844 case $configure_input in #(
15845 *\&* | *\|* | *\\* )
15846 ac_sed_conf_input=`$as_echo "$configure_input" |
15847 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15848 *) ac_sed_conf_input=$configure_input;;
15849 esac
15851 case $ac_tag in
15852 *:-:* | *:-) cat >"$tmp/stdin" \
15853 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15854 esac
15856 esac
15858 ac_dir=`$as_dirname -- "$ac_file" ||
15859 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15860 X"$ac_file" : 'X\(//\)[^/]' \| \
15861 X"$ac_file" : 'X\(//\)$' \| \
15862 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15863 $as_echo X"$ac_file" |
15864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15865 s//\1/
15868 /^X\(\/\/\)[^/].*/{
15869 s//\1/
15872 /^X\(\/\/\)$/{
15873 s//\1/
15876 /^X\(\/\).*/{
15877 s//\1/
15880 s/.*/./; q'`
15881 as_dir="$ac_dir"; as_fn_mkdir_p
15882 ac_builddir=.
15884 case "$ac_dir" in
15885 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15887 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15888 # A ".." for each directory in $ac_dir_suffix.
15889 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15890 case $ac_top_builddir_sub in
15891 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15892 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15893 esac ;;
15894 esac
15895 ac_abs_top_builddir=$ac_pwd
15896 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15897 # for backward compatibility:
15898 ac_top_builddir=$ac_top_build_prefix
15900 case $srcdir in
15901 .) # We are building in place.
15902 ac_srcdir=.
15903 ac_top_srcdir=$ac_top_builddir_sub
15904 ac_abs_top_srcdir=$ac_pwd ;;
15905 [\\/]* | ?:[\\/]* ) # Absolute name.
15906 ac_srcdir=$srcdir$ac_dir_suffix;
15907 ac_top_srcdir=$srcdir
15908 ac_abs_top_srcdir=$srcdir ;;
15909 *) # Relative name.
15910 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15911 ac_top_srcdir=$ac_top_build_prefix$srcdir
15912 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15913 esac
15914 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15917 case $ac_mode in
15920 # CONFIG_FILE
15923 case $INSTALL in
15924 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15925 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15926 esac
15927 ac_MKDIR_P=$MKDIR_P
15928 case $MKDIR_P in
15929 [\\/$]* | ?:[\\/]* ) ;;
15930 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15931 esac
15932 _ACEOF
15934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15935 # If the template does not know about datarootdir, expand it.
15936 # FIXME: This hack should be removed a few years after 2.60.
15937 ac_datarootdir_hack=; ac_datarootdir_seen=
15938 ac_sed_dataroot='
15939 /datarootdir/ {
15943 /@datadir@/p
15944 /@docdir@/p
15945 /@infodir@/p
15946 /@localedir@/p
15947 /@mandir@/p'
15948 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15949 *datarootdir*) ac_datarootdir_seen=yes;;
15950 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15952 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15953 _ACEOF
15954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15955 ac_datarootdir_hack='
15956 s&@datadir@&$datadir&g
15957 s&@docdir@&$docdir&g
15958 s&@infodir@&$infodir&g
15959 s&@localedir@&$localedir&g
15960 s&@mandir@&$mandir&g
15961 s&\\\${datarootdir}&$datarootdir&g' ;;
15962 esac
15963 _ACEOF
15965 # Neutralize VPATH when `$srcdir' = `.'.
15966 # Shell code in configure.ac might set extrasub.
15967 # FIXME: do we really want to maintain this feature?
15968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15969 ac_sed_extra="$ac_vpsub
15970 $extrasub
15971 _ACEOF
15972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15974 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15975 s|@configure_input@|$ac_sed_conf_input|;t t
15976 s&@top_builddir@&$ac_top_builddir_sub&;t t
15977 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15978 s&@srcdir@&$ac_srcdir&;t t
15979 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15980 s&@top_srcdir@&$ac_top_srcdir&;t t
15981 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15982 s&@builddir@&$ac_builddir&;t t
15983 s&@abs_builddir@&$ac_abs_builddir&;t t
15984 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15985 s&@INSTALL@&$ac_INSTALL&;t t
15986 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15987 $ac_datarootdir_hack
15989 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15990 || as_fn_error "could not create $ac_file" "$LINENO" 5
15992 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15993 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15994 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15996 which seems to be undefined. Please make sure it is defined." >&5
15997 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15998 which seems to be undefined. Please make sure it is defined." >&2;}
16000 rm -f "$tmp/stdin"
16001 case $ac_file in
16002 -) cat "$tmp/out" && rm -f "$tmp/out";;
16003 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16004 esac \
16005 || as_fn_error "could not create $ac_file" "$LINENO" 5
16009 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16010 $as_echo "$as_me: executing $ac_file commands" >&6;}
16012 esac
16015 case $ac_file$ac_mode in
16016 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16017 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16018 # are listed without --file. Let's play safe and only enable the eval
16019 # if we detect the quoting.
16020 case $CONFIG_FILES in
16021 *\'*) eval set x "$CONFIG_FILES" ;;
16022 *) set x $CONFIG_FILES ;;
16023 esac
16024 shift
16025 for mf
16027 # Strip MF so we end up with the name of the file.
16028 mf=`echo "$mf" | sed -e 's/:.*$//'`
16029 # Check whether this is an Automake generated Makefile or not.
16030 # We used to match only the files named `Makefile.in', but
16031 # some people rename them; so instead we look at the file content.
16032 # Grep'ing the first line is not enough: some people post-process
16033 # each Makefile.in and add a new line on top of each file to say so.
16034 # Grep'ing the whole file is not good either: AIX grep has a line
16035 # limit of 2048, but all sed's we know have understand at least 4000.
16036 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16037 dirpart=`$as_dirname -- "$mf" ||
16038 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16039 X"$mf" : 'X\(//\)[^/]' \| \
16040 X"$mf" : 'X\(//\)$' \| \
16041 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16042 $as_echo X"$mf" |
16043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16044 s//\1/
16047 /^X\(\/\/\)[^/].*/{
16048 s//\1/
16051 /^X\(\/\/\)$/{
16052 s//\1/
16055 /^X\(\/\).*/{
16056 s//\1/
16059 s/.*/./; q'`
16060 else
16061 continue
16063 # Extract the definition of DEPDIR, am__include, and am__quote
16064 # from the Makefile without running `make'.
16065 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16066 test -z "$DEPDIR" && continue
16067 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16068 test -z "am__include" && continue
16069 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16070 # When using ansi2knr, U may be empty or an underscore; expand it
16071 U=`sed -n 's/^U = //p' < "$mf"`
16072 # Find all dependency output files, they are included files with
16073 # $(DEPDIR) in their names. We invoke sed twice because it is the
16074 # simplest approach to changing $(DEPDIR) to its actual value in the
16075 # expansion.
16076 for file in `sed -n "
16077 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16078 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16079 # Make sure the directory exists.
16080 test -f "$dirpart/$file" && continue
16081 fdir=`$as_dirname -- "$file" ||
16082 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16083 X"$file" : 'X\(//\)[^/]' \| \
16084 X"$file" : 'X\(//\)$' \| \
16085 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16086 $as_echo X"$file" |
16087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16088 s//\1/
16091 /^X\(\/\/\)[^/].*/{
16092 s//\1/
16095 /^X\(\/\/\)$/{
16096 s//\1/
16099 /^X\(\/\).*/{
16100 s//\1/
16103 s/.*/./; q'`
16104 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16105 # echo "creating $dirpart/$file"
16106 echo '# dummy' > "$dirpart/$file"
16107 done
16108 done
16111 "default-1":C)
16112 # Only add multilib support code if we just rebuilt the top-level
16113 # Makefile.
16114 case " $CONFIG_FILES " in
16115 *" Makefile "*)
16116 ac_file=Makefile . ${multi_basedir}/config-ml.in
16118 esac ;;
16119 "libtool":C)
16121 # See if we are running on zsh, and set the options which allow our
16122 # commands through without removal of \ escapes.
16123 if test -n "${ZSH_VERSION+set}" ; then
16124 setopt NO_GLOB_SUBST
16127 cfgfile="${ofile}T"
16128 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16129 $RM "$cfgfile"
16131 cat <<_LT_EOF >> "$cfgfile"
16132 #! $SHELL
16134 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16135 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16136 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16137 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16139 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16140 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16141 # Written by Gordon Matzigkeit, 1996
16143 # This file is part of GNU Libtool.
16145 # GNU Libtool is free software; you can redistribute it and/or
16146 # modify it under the terms of the GNU General Public License as
16147 # published by the Free Software Foundation; either version 2 of
16148 # the License, or (at your option) any later version.
16150 # As a special exception to the GNU General Public License,
16151 # if you distribute this file as part of a program or library that
16152 # is built using GNU Libtool, you may include this file under the
16153 # same distribution terms that you use for the rest of that program.
16155 # GNU Libtool is distributed in the hope that it will be useful,
16156 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16157 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16158 # GNU General Public License for more details.
16160 # You should have received a copy of the GNU General Public License
16161 # along with GNU Libtool; see the file COPYING. If not, a copy
16162 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16163 # obtained by writing to the Free Software Foundation, Inc.,
16164 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16167 # The names of the tagged configurations supported by this script.
16168 available_tags="CXX "
16170 # ### BEGIN LIBTOOL CONFIG
16172 # Which release of libtool.m4 was used?
16173 macro_version=$macro_version
16174 macro_revision=$macro_revision
16176 # Whether or not to build shared libraries.
16177 build_libtool_libs=$enable_shared
16179 # Whether or not to build static libraries.
16180 build_old_libs=$enable_static
16182 # What type of objects to build.
16183 pic_mode=$pic_mode
16185 # Whether or not to optimize for fast installation.
16186 fast_install=$enable_fast_install
16188 # Shell to use when invoking shell scripts.
16189 SHELL=$lt_SHELL
16191 # An echo program that protects backslashes.
16192 ECHO=$lt_ECHO
16194 # The host system.
16195 host_alias=$host_alias
16196 host=$host
16197 host_os=$host_os
16199 # The build system.
16200 build_alias=$build_alias
16201 build=$build
16202 build_os=$build_os
16204 # A sed program that does not truncate output.
16205 SED=$lt_SED
16207 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16208 Xsed="\$SED -e 1s/^X//"
16210 # A grep program that handles long lines.
16211 GREP=$lt_GREP
16213 # An ERE matcher.
16214 EGREP=$lt_EGREP
16216 # A literal string matcher.
16217 FGREP=$lt_FGREP
16219 # A BSD- or MS-compatible name lister.
16220 NM=$lt_NM
16222 # Whether we need soft or hard links.
16223 LN_S=$lt_LN_S
16225 # What is the maximum length of a command?
16226 max_cmd_len=$max_cmd_len
16228 # Object file suffix (normally "o").
16229 objext=$ac_objext
16231 # Executable file suffix (normally "").
16232 exeext=$exeext
16234 # whether the shell understands "unset".
16235 lt_unset=$lt_unset
16237 # turn spaces into newlines.
16238 SP2NL=$lt_lt_SP2NL
16240 # turn newlines into spaces.
16241 NL2SP=$lt_lt_NL2SP
16243 # An object symbol dumper.
16244 OBJDUMP=$lt_OBJDUMP
16246 # Method to check whether dependent libraries are shared objects.
16247 deplibs_check_method=$lt_deplibs_check_method
16249 # Command to use when deplibs_check_method == "file_magic".
16250 file_magic_cmd=$lt_file_magic_cmd
16252 # The archiver.
16253 AR=$lt_AR
16254 AR_FLAGS=$lt_AR_FLAGS
16256 # A symbol stripping program.
16257 STRIP=$lt_STRIP
16259 # Commands used to install an old-style archive.
16260 RANLIB=$lt_RANLIB
16261 old_postinstall_cmds=$lt_old_postinstall_cmds
16262 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16264 # Whether to use a lock for old archive extraction.
16265 lock_old_archive_extraction=$lock_old_archive_extraction
16267 # A C compiler.
16268 LTCC=$lt_CC
16270 # LTCC compiler flags.
16271 LTCFLAGS=$lt_CFLAGS
16273 # Take the output of nm and produce a listing of raw symbols and C names.
16274 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16276 # Transform the output of nm in a proper C declaration.
16277 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16279 # Transform the output of nm in a C name address pair.
16280 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16282 # Transform the output of nm in a C name address pair when lib prefix is needed.
16283 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16285 # The name of the directory that contains temporary libtool files.
16286 objdir=$objdir
16288 # Used to examine libraries when file_magic_cmd begins with "file".
16289 MAGIC_CMD=$MAGIC_CMD
16291 # Must we lock files when doing compilation?
16292 need_locks=$lt_need_locks
16294 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16295 DSYMUTIL=$lt_DSYMUTIL
16297 # Tool to change global to local symbols on Mac OS X.
16298 NMEDIT=$lt_NMEDIT
16300 # Tool to manipulate fat objects and archives on Mac OS X.
16301 LIPO=$lt_LIPO
16303 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16304 OTOOL=$lt_OTOOL
16306 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16307 OTOOL64=$lt_OTOOL64
16309 # Old archive suffix (normally "a").
16310 libext=$libext
16312 # Shared library suffix (normally ".so").
16313 shrext_cmds=$lt_shrext_cmds
16315 # The commands to extract the exported symbol list from a shared archive.
16316 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16318 # Variables whose values should be saved in libtool wrapper scripts and
16319 # restored at link time.
16320 variables_saved_for_relink=$lt_variables_saved_for_relink
16322 # Do we need the "lib" prefix for modules?
16323 need_lib_prefix=$need_lib_prefix
16325 # Do we need a version for libraries?
16326 need_version=$need_version
16328 # Library versioning type.
16329 version_type=$version_type
16331 # Shared library runtime path variable.
16332 runpath_var=$runpath_var
16334 # Shared library path variable.
16335 shlibpath_var=$shlibpath_var
16337 # Is shlibpath searched before the hard-coded library search path?
16338 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16340 # Format of library name prefix.
16341 libname_spec=$lt_libname_spec
16343 # List of archive names. First name is the real one, the rest are links.
16344 # The last name is the one that the linker finds with -lNAME
16345 library_names_spec=$lt_library_names_spec
16347 # The coded name of the library, if different from the real name.
16348 soname_spec=$lt_soname_spec
16350 # Permission mode override for installation of shared libraries.
16351 install_override_mode=$lt_install_override_mode
16353 # Command to use after installation of a shared archive.
16354 postinstall_cmds=$lt_postinstall_cmds
16356 # Command to use after uninstallation of a shared archive.
16357 postuninstall_cmds=$lt_postuninstall_cmds
16359 # Commands used to finish a libtool library installation in a directory.
16360 finish_cmds=$lt_finish_cmds
16362 # As "finish_cmds", except a single script fragment to be evaled but
16363 # not shown.
16364 finish_eval=$lt_finish_eval
16366 # Whether we should hardcode library paths into libraries.
16367 hardcode_into_libs=$hardcode_into_libs
16369 # Compile-time system search path for libraries.
16370 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16372 # Run-time system search path for libraries.
16373 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16375 # Whether dlopen is supported.
16376 dlopen_support=$enable_dlopen
16378 # Whether dlopen of programs is supported.
16379 dlopen_self=$enable_dlopen_self
16381 # Whether dlopen of statically linked programs is supported.
16382 dlopen_self_static=$enable_dlopen_self_static
16384 # Commands to strip libraries.
16385 old_striplib=$lt_old_striplib
16386 striplib=$lt_striplib
16389 # The linker used to build libraries.
16390 LD=$lt_LD
16392 # How to create reloadable object files.
16393 reload_flag=$lt_reload_flag
16394 reload_cmds=$lt_reload_cmds
16396 # Commands used to build an old-style archive.
16397 old_archive_cmds=$lt_old_archive_cmds
16399 # A language specific compiler.
16400 CC=$lt_compiler
16402 # Is the compiler the GNU compiler?
16403 with_gcc=$GCC
16405 # Compiler flag to turn off builtin functions.
16406 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16408 # How to pass a linker flag through the compiler.
16409 wl=$lt_lt_prog_compiler_wl
16411 # Additional compiler flags for building library objects.
16412 pic_flag=$lt_lt_prog_compiler_pic
16414 # Compiler flag to prevent dynamic linking.
16415 link_static_flag=$lt_lt_prog_compiler_static
16417 # Does compiler simultaneously support -c and -o options?
16418 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16420 # Whether or not to add -lc for building shared libraries.
16421 build_libtool_need_lc=$archive_cmds_need_lc
16423 # Whether or not to disallow shared libs when runtime libs are static.
16424 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16426 # Compiler flag to allow reflexive dlopens.
16427 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16429 # Compiler flag to generate shared objects directly from archives.
16430 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16432 # Whether the compiler copes with passing no objects directly.
16433 compiler_needs_object=$lt_compiler_needs_object
16435 # Create an old-style archive from a shared archive.
16436 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16438 # Create a temporary old-style archive to link instead of a shared archive.
16439 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16441 # Commands used to build a shared archive.
16442 archive_cmds=$lt_archive_cmds
16443 archive_expsym_cmds=$lt_archive_expsym_cmds
16445 # Commands used to build a loadable module if different from building
16446 # a shared archive.
16447 module_cmds=$lt_module_cmds
16448 module_expsym_cmds=$lt_module_expsym_cmds
16450 # Whether we are building with GNU ld or not.
16451 with_gnu_ld=$lt_with_gnu_ld
16453 # Flag that allows shared libraries with undefined symbols to be built.
16454 allow_undefined_flag=$lt_allow_undefined_flag
16456 # Flag that enforces no undefined symbols.
16457 no_undefined_flag=$lt_no_undefined_flag
16459 # Flag to hardcode \$libdir into a binary during linking.
16460 # This must work even if \$libdir does not exist
16461 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16463 # If ld is used when linking, flag to hardcode \$libdir into a binary
16464 # during linking. This must work even if \$libdir does not exist.
16465 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16467 # Whether we need a single "-rpath" flag with a separated argument.
16468 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16470 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16471 # DIR into the resulting binary.
16472 hardcode_direct=$hardcode_direct
16474 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16475 # DIR into the resulting binary and the resulting library dependency is
16476 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16477 # library is relocated.
16478 hardcode_direct_absolute=$hardcode_direct_absolute
16480 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16481 # into the resulting binary.
16482 hardcode_minus_L=$hardcode_minus_L
16484 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16485 # into the resulting binary.
16486 hardcode_shlibpath_var=$hardcode_shlibpath_var
16488 # Set to "yes" if building a shared library automatically hardcodes DIR
16489 # into the library and all subsequent libraries and executables linked
16490 # against it.
16491 hardcode_automatic=$hardcode_automatic
16493 # Set to yes if linker adds runtime paths of dependent libraries
16494 # to runtime path list.
16495 inherit_rpath=$inherit_rpath
16497 # Whether libtool must link a program against all its dependency libraries.
16498 link_all_deplibs=$link_all_deplibs
16500 # Fix the shell variable \$srcfile for the compiler.
16501 fix_srcfile_path=$lt_fix_srcfile_path
16503 # Set to "yes" if exported symbols are required.
16504 always_export_symbols=$always_export_symbols
16506 # The commands to list exported symbols.
16507 export_symbols_cmds=$lt_export_symbols_cmds
16509 # Symbols that should not be listed in the preloaded symbols.
16510 exclude_expsyms=$lt_exclude_expsyms
16512 # Symbols that must always be exported.
16513 include_expsyms=$lt_include_expsyms
16515 # Commands necessary for linking programs (against libraries) with templates.
16516 prelink_cmds=$lt_prelink_cmds
16518 # Specify filename containing input files.
16519 file_list_spec=$lt_file_list_spec
16521 # How to hardcode a shared library path into an executable.
16522 hardcode_action=$hardcode_action
16524 # The directories searched by this compiler when creating a shared library.
16525 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16527 # Dependencies to place before and after the objects being linked to
16528 # create a shared library.
16529 predep_objects=$lt_predep_objects
16530 postdep_objects=$lt_postdep_objects
16531 predeps=$lt_predeps
16532 postdeps=$lt_postdeps
16534 # The library search path used internally by the compiler when linking
16535 # a shared library.
16536 compiler_lib_search_path=$lt_compiler_lib_search_path
16538 # ### END LIBTOOL CONFIG
16540 _LT_EOF
16542 case $host_os in
16543 aix3*)
16544 cat <<\_LT_EOF >> "$cfgfile"
16545 # AIX sometimes has problems with the GCC collect2 program. For some
16546 # reason, if we set the COLLECT_NAMES environment variable, the problems
16547 # vanish in a puff of smoke.
16548 if test "X${COLLECT_NAMES+set}" != Xset; then
16549 COLLECT_NAMES=
16550 export COLLECT_NAMES
16552 _LT_EOF
16554 esac
16557 ltmain="$ac_aux_dir/ltmain.sh"
16560 # We use sed instead of cat because bash on DJGPP gets confused if
16561 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16562 # text mode, it properly converts lines to CR/LF. This bash problem
16563 # is reportedly fixed, but why not run on old versions too?
16564 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16565 || (rm -f "$cfgfile"; exit 1)
16567 case $xsi_shell in
16568 yes)
16569 cat << \_LT_EOF >> "$cfgfile"
16571 # func_dirname file append nondir_replacement
16572 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16573 # otherwise set result to NONDIR_REPLACEMENT.
16574 func_dirname ()
16576 case ${1} in
16577 */*) func_dirname_result="${1%/*}${2}" ;;
16578 * ) func_dirname_result="${3}" ;;
16579 esac
16582 # func_basename file
16583 func_basename ()
16585 func_basename_result="${1##*/}"
16588 # func_dirname_and_basename file append nondir_replacement
16589 # perform func_basename and func_dirname in a single function
16590 # call:
16591 # dirname: Compute the dirname of FILE. If nonempty,
16592 # add APPEND to the result, otherwise set result
16593 # to NONDIR_REPLACEMENT.
16594 # value returned in "$func_dirname_result"
16595 # basename: Compute filename of FILE.
16596 # value retuned in "$func_basename_result"
16597 # Implementation must be kept synchronized with func_dirname
16598 # and func_basename. For efficiency, we do not delegate to
16599 # those functions but instead duplicate the functionality here.
16600 func_dirname_and_basename ()
16602 case ${1} in
16603 */*) func_dirname_result="${1%/*}${2}" ;;
16604 * ) func_dirname_result="${3}" ;;
16605 esac
16606 func_basename_result="${1##*/}"
16609 # func_stripname prefix suffix name
16610 # strip PREFIX and SUFFIX off of NAME.
16611 # PREFIX and SUFFIX must not contain globbing or regex special
16612 # characters, hashes, percent signs, but SUFFIX may contain a leading
16613 # dot (in which case that matches only a dot).
16614 func_stripname ()
16616 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16617 # positional parameters, so assign one to ordinary parameter first.
16618 func_stripname_result=${3}
16619 func_stripname_result=${func_stripname_result#"${1}"}
16620 func_stripname_result=${func_stripname_result%"${2}"}
16623 # func_opt_split
16624 func_opt_split ()
16626 func_opt_split_opt=${1%%=*}
16627 func_opt_split_arg=${1#*=}
16630 # func_lo2o object
16631 func_lo2o ()
16633 case ${1} in
16634 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16635 *) func_lo2o_result=${1} ;;
16636 esac
16639 # func_xform libobj-or-source
16640 func_xform ()
16642 func_xform_result=${1%.*}.lo
16645 # func_arith arithmetic-term...
16646 func_arith ()
16648 func_arith_result=$(( $* ))
16651 # func_len string
16652 # STRING may not start with a hyphen.
16653 func_len ()
16655 func_len_result=${#1}
16658 _LT_EOF
16660 *) # Bourne compatible functions.
16661 cat << \_LT_EOF >> "$cfgfile"
16663 # func_dirname file append nondir_replacement
16664 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16665 # otherwise set result to NONDIR_REPLACEMENT.
16666 func_dirname ()
16668 # Extract subdirectory from the argument.
16669 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16670 if test "X$func_dirname_result" = "X${1}"; then
16671 func_dirname_result="${3}"
16672 else
16673 func_dirname_result="$func_dirname_result${2}"
16677 # func_basename file
16678 func_basename ()
16680 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16684 # func_stripname prefix suffix name
16685 # strip PREFIX and SUFFIX off of NAME.
16686 # PREFIX and SUFFIX must not contain globbing or regex special
16687 # characters, hashes, percent signs, but SUFFIX may contain a leading
16688 # dot (in which case that matches only a dot).
16689 # func_strip_suffix prefix name
16690 func_stripname ()
16692 case ${2} in
16693 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16694 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16695 esac
16698 # sed scripts:
16699 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16700 my_sed_long_arg='1s/^-[^=]*=//'
16702 # func_opt_split
16703 func_opt_split ()
16705 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16706 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16709 # func_lo2o object
16710 func_lo2o ()
16712 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16715 # func_xform libobj-or-source
16716 func_xform ()
16718 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16721 # func_arith arithmetic-term...
16722 func_arith ()
16724 func_arith_result=`expr "$@"`
16727 # func_len string
16728 # STRING may not start with a hyphen.
16729 func_len ()
16731 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16734 _LT_EOF
16735 esac
16737 case $lt_shell_append in
16738 yes)
16739 cat << \_LT_EOF >> "$cfgfile"
16741 # func_append var value
16742 # Append VALUE to the end of shell variable VAR.
16743 func_append ()
16745 eval "$1+=\$2"
16747 _LT_EOF
16750 cat << \_LT_EOF >> "$cfgfile"
16752 # func_append var value
16753 # Append VALUE to the end of shell variable VAR.
16754 func_append ()
16756 eval "$1=\$$1\$2"
16759 _LT_EOF
16761 esac
16764 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16765 || (rm -f "$cfgfile"; exit 1)
16767 mv -f "$cfgfile" "$ofile" ||
16768 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16769 chmod +x "$ofile"
16772 cat <<_LT_EOF >> "$ofile"
16774 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16776 # The linker used to build libraries.
16777 LD=$lt_LD_CXX
16779 # How to create reloadable object files.
16780 reload_flag=$lt_reload_flag_CXX
16781 reload_cmds=$lt_reload_cmds_CXX
16783 # Commands used to build an old-style archive.
16784 old_archive_cmds=$lt_old_archive_cmds_CXX
16786 # A language specific compiler.
16787 CC=$lt_compiler_CXX
16789 # Is the compiler the GNU compiler?
16790 with_gcc=$GCC_CXX
16792 # Compiler flag to turn off builtin functions.
16793 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16795 # How to pass a linker flag through the compiler.
16796 wl=$lt_lt_prog_compiler_wl_CXX
16798 # Additional compiler flags for building library objects.
16799 pic_flag=$lt_lt_prog_compiler_pic_CXX
16801 # Compiler flag to prevent dynamic linking.
16802 link_static_flag=$lt_lt_prog_compiler_static_CXX
16804 # Does compiler simultaneously support -c and -o options?
16805 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16807 # Whether or not to add -lc for building shared libraries.
16808 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16810 # Whether or not to disallow shared libs when runtime libs are static.
16811 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16813 # Compiler flag to allow reflexive dlopens.
16814 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16816 # Compiler flag to generate shared objects directly from archives.
16817 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16819 # Whether the compiler copes with passing no objects directly.
16820 compiler_needs_object=$lt_compiler_needs_object_CXX
16822 # Create an old-style archive from a shared archive.
16823 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16825 # Create a temporary old-style archive to link instead of a shared archive.
16826 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16828 # Commands used to build a shared archive.
16829 archive_cmds=$lt_archive_cmds_CXX
16830 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16832 # Commands used to build a loadable module if different from building
16833 # a shared archive.
16834 module_cmds=$lt_module_cmds_CXX
16835 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16837 # Whether we are building with GNU ld or not.
16838 with_gnu_ld=$lt_with_gnu_ld_CXX
16840 # Flag that allows shared libraries with undefined symbols to be built.
16841 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16843 # Flag that enforces no undefined symbols.
16844 no_undefined_flag=$lt_no_undefined_flag_CXX
16846 # Flag to hardcode \$libdir into a binary during linking.
16847 # This must work even if \$libdir does not exist
16848 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16850 # If ld is used when linking, flag to hardcode \$libdir into a binary
16851 # during linking. This must work even if \$libdir does not exist.
16852 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16854 # Whether we need a single "-rpath" flag with a separated argument.
16855 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16857 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16858 # DIR into the resulting binary.
16859 hardcode_direct=$hardcode_direct_CXX
16861 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16862 # DIR into the resulting binary and the resulting library dependency is
16863 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16864 # library is relocated.
16865 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16867 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16868 # into the resulting binary.
16869 hardcode_minus_L=$hardcode_minus_L_CXX
16871 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16872 # into the resulting binary.
16873 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16875 # Set to "yes" if building a shared library automatically hardcodes DIR
16876 # into the library and all subsequent libraries and executables linked
16877 # against it.
16878 hardcode_automatic=$hardcode_automatic_CXX
16880 # Set to yes if linker adds runtime paths of dependent libraries
16881 # to runtime path list.
16882 inherit_rpath=$inherit_rpath_CXX
16884 # Whether libtool must link a program against all its dependency libraries.
16885 link_all_deplibs=$link_all_deplibs_CXX
16887 # Fix the shell variable \$srcfile for the compiler.
16888 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16890 # Set to "yes" if exported symbols are required.
16891 always_export_symbols=$always_export_symbols_CXX
16893 # The commands to list exported symbols.
16894 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16896 # Symbols that should not be listed in the preloaded symbols.
16897 exclude_expsyms=$lt_exclude_expsyms_CXX
16899 # Symbols that must always be exported.
16900 include_expsyms=$lt_include_expsyms_CXX
16902 # Commands necessary for linking programs (against libraries) with templates.
16903 prelink_cmds=$lt_prelink_cmds_CXX
16905 # Specify filename containing input files.
16906 file_list_spec=$lt_file_list_spec_CXX
16908 # How to hardcode a shared library path into an executable.
16909 hardcode_action=$hardcode_action_CXX
16911 # The directories searched by this compiler when creating a shared library.
16912 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16914 # Dependencies to place before and after the objects being linked to
16915 # create a shared library.
16916 predep_objects=$lt_predep_objects_CXX
16917 postdep_objects=$lt_postdep_objects_CXX
16918 predeps=$lt_predeps_CXX
16919 postdeps=$lt_postdeps_CXX
16921 # The library search path used internally by the compiler when linking
16922 # a shared library.
16923 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16925 # ### END LIBTOOL TAG CONFIG: CXX
16926 _LT_EOF
16930 esac
16931 done # for ac_tag
16934 as_fn_exit 0
16935 _ACEOF
16936 ac_clean_files=$ac_clean_files_save
16938 test $ac_write_fail = 0 ||
16939 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16942 # configure is writing to config.log, and then calls config.status.
16943 # config.status does its own redirection, appending to config.log.
16944 # Unfortunately, on DOS this fails, as config.log is still kept open
16945 # by configure, so config.status won't be able to write to it; its
16946 # output is simply discarded. So we exec the FD to /dev/null,
16947 # effectively closing config.log, so it can be properly (re)opened and
16948 # appended to by config.status. When coming back to configure, we
16949 # need to make the FD available again.
16950 if test "$no_create" != yes; then
16951 ac_cs_success=:
16952 ac_config_status_args=
16953 test "$silent" = yes &&
16954 ac_config_status_args="$ac_config_status_args --quiet"
16955 exec 5>/dev/null
16956 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16957 exec 5>>config.log
16958 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16959 # would make configure fail if this is the last instruction.
16960 $ac_cs_success || as_fn_exit $?
16964 # CONFIG_SUBDIRS section.
16966 if test "$no_recursion" != yes; then
16968 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16969 # so they do not pile up.
16970 ac_sub_configure_args=
16971 ac_prev=
16972 eval "set x $ac_configure_args"
16973 shift
16974 for ac_arg
16976 if test -n "$ac_prev"; then
16977 ac_prev=
16978 continue
16980 case $ac_arg in
16981 -cache-file | --cache-file | --cache-fil | --cache-fi \
16982 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16983 ac_prev=cache_file ;;
16984 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16985 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16986 | --c=*)
16988 --config-cache | -C)
16990 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16991 ac_prev=srcdir ;;
16992 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16994 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16995 ac_prev=prefix ;;
16996 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16998 --disable-option-checking)
17001 case $ac_arg in
17002 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17003 esac
17004 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17005 esac
17006 done
17008 # Always prepend --prefix to ensure using the same prefix
17009 # in subdir configurations.
17010 ac_arg="--prefix=$prefix"
17011 case $ac_arg in
17012 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17013 esac
17014 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17016 # Pass --silent
17017 if test "$silent" = yes; then
17018 ac_sub_configure_args="--silent $ac_sub_configure_args"
17021 # Always prepend --disable-option-checking to silence warnings, since
17022 # different subdirs can have different --enable and --with options.
17023 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17025 ac_popdir=`pwd`
17026 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17028 # Do not complain, so a configure script can configure whichever
17029 # parts of a large source tree are present.
17030 test -d "$srcdir/$ac_dir" || continue
17032 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17033 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17034 $as_echo "$ac_msg" >&6
17035 as_dir="$ac_dir"; as_fn_mkdir_p
17036 ac_builddir=.
17038 case "$ac_dir" in
17039 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17041 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17042 # A ".." for each directory in $ac_dir_suffix.
17043 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17044 case $ac_top_builddir_sub in
17045 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17046 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17047 esac ;;
17048 esac
17049 ac_abs_top_builddir=$ac_pwd
17050 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17051 # for backward compatibility:
17052 ac_top_builddir=$ac_top_build_prefix
17054 case $srcdir in
17055 .) # We are building in place.
17056 ac_srcdir=.
17057 ac_top_srcdir=$ac_top_builddir_sub
17058 ac_abs_top_srcdir=$ac_pwd ;;
17059 [\\/]* | ?:[\\/]* ) # Absolute name.
17060 ac_srcdir=$srcdir$ac_dir_suffix;
17061 ac_top_srcdir=$srcdir
17062 ac_abs_top_srcdir=$srcdir ;;
17063 *) # Relative name.
17064 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17065 ac_top_srcdir=$ac_top_build_prefix$srcdir
17066 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17067 esac
17068 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17071 cd "$ac_dir"
17073 # Check for guested configure; otherwise get Cygnus style configure.
17074 if test -f "$ac_srcdir/configure.gnu"; then
17075 ac_sub_configure=$ac_srcdir/configure.gnu
17076 elif test -f "$ac_srcdir/configure"; then
17077 ac_sub_configure=$ac_srcdir/configure
17078 elif test -f "$ac_srcdir/configure.ac"; then
17079 # This should be Cygnus configure.
17080 ac_sub_configure=$ac_aux_dir/configure
17081 else
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17083 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17084 ac_sub_configure=
17087 # The recursion is here.
17088 if test -n "$ac_sub_configure"; then
17089 # Make the cache file name correct relative to the subdirectory.
17090 case $cache_file in
17091 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17092 *) # Relative name.
17093 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17094 esac
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17097 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17098 # The eval makes quoting arguments work.
17099 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17100 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17101 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17104 cd "$ac_popdir"
17105 done
17107 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17109 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}