[NDS32] Add DSP extension instructions.
[official-gcc.git] / liboffloadmic / configure
blobf873716991bbe4b22ae7907f4e25720d32c870ae
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 get_gcc_base_ver
606 link_offloadmic_target
607 link_offloadmic_host
608 lt_cv_dlopen_libs
609 toolexeclibdir
610 toolexecdir
611 CXXCPP
612 OTOOL64
613 OTOOL
614 LIPO
615 NMEDIT
616 DSYMUTIL
617 RANLIB
619 OBJDUMP
620 LN_S
622 ac_ct_DUMPBIN
623 DUMPBIN
625 FGREP
627 LIBTOOL
628 LIBOFFLOADMIC_HOST_FALSE
629 LIBOFFLOADMIC_HOST_TRUE
630 EGREP
631 GREP
633 ALLOCA
634 subdirs
635 multi_basedir
636 am__fastdepCXX_FALSE
637 am__fastdepCXX_TRUE
638 CXXDEPMODE
639 ac_ct_CXX
640 CXXFLAGS
642 am__fastdepCC_FALSE
643 am__fastdepCC_TRUE
644 CCDEPMODE
645 am__nodep
646 AMDEPBACKSLASH
647 AMDEP_FALSE
648 AMDEP_TRUE
649 am__quote
650 am__include
651 DEPDIR
652 OBJEXT
653 EXEEXT
654 ac_ct_CC
655 CPPFLAGS
656 LDFLAGS
657 CFLAGS
659 MAINT
660 MAINTAINER_MODE_FALSE
661 MAINTAINER_MODE_TRUE
662 am__untar
663 am__tar
664 AMTAR
665 am__leading_dot
666 SET_MAKE
668 mkdir_p
669 MKDIR_P
670 INSTALL_STRIP_PROGRAM
671 STRIP
672 install_sh
673 MAKEINFO
674 AUTOHEADER
675 AUTOMAKE
676 AUTOCONF
677 ACLOCAL
678 VERSION
679 PACKAGE
680 CYGPATH_W
681 am__isrc
682 INSTALL_DATA
683 INSTALL_SCRIPT
684 INSTALL_PROGRAM
685 target_os
686 target_vendor
687 target_cpu
688 target
689 host_os
690 host_vendor
691 host_cpu
692 host
693 build_os
694 build_vendor
695 build_cpu
696 build
697 target_alias
698 host_alias
699 build_alias
700 LIBS
701 ECHO_T
702 ECHO_N
703 ECHO_C
704 DEFS
705 mandir
706 localedir
707 libdir
708 psdir
709 pdfdir
710 dvidir
711 htmldir
712 infodir
713 docdir
714 oldincludedir
715 includedir
716 localstatedir
717 sharedstatedir
718 sysconfdir
719 datadir
720 datarootdir
721 libexecdir
722 sbindir
723 bindir
724 program_transform_name
725 prefix
726 exec_prefix
727 PACKAGE_URL
728 PACKAGE_BUGREPORT
729 PACKAGE_STRING
730 PACKAGE_VERSION
731 PACKAGE_TARNAME
732 PACKAGE_NAME
733 PATH_SEPARATOR
734 SHELL'
735 ac_subst_files=''
736 ac_user_opts='
737 enable_option_checking
738 enable_maintainer_mode
739 enable_dependency_tracking
740 enable_multilib
741 enable_version_specific_runtime_libs
742 enable_shared
743 enable_static
744 with_pic
745 enable_fast_install
746 with_gnu_ld
747 enable_libtool_lock
748 with_gcc_major_version_only
750 ac_precious_vars='build_alias
751 host_alias
752 target_alias
754 CFLAGS
755 LDFLAGS
756 LIBS
757 CPPFLAGS
759 CXXFLAGS
762 CXXCPP'
763 ac_subdirs_all='plugin'
765 # Initialize some variables set by options.
766 ac_init_help=
767 ac_init_version=false
768 ac_unrecognized_opts=
769 ac_unrecognized_sep=
770 # The variables have the same names as the options, with
771 # dashes changed to underlines.
772 cache_file=/dev/null
773 exec_prefix=NONE
774 no_create=
775 no_recursion=
776 prefix=NONE
777 program_prefix=NONE
778 program_suffix=NONE
779 program_transform_name=s,x,x,
780 silent=
781 site=
782 srcdir=
783 verbose=
784 x_includes=NONE
785 x_libraries=NONE
787 # Installation directory options.
788 # These are left unexpanded so users can "make install exec_prefix=/foo"
789 # and all the variables that are supposed to be based on exec_prefix
790 # by default will actually change.
791 # Use braces instead of parens because sh, perl, etc. also accept them.
792 # (The list follows the same order as the GNU Coding Standards.)
793 bindir='${exec_prefix}/bin'
794 sbindir='${exec_prefix}/sbin'
795 libexecdir='${exec_prefix}/libexec'
796 datarootdir='${prefix}/share'
797 datadir='${datarootdir}'
798 sysconfdir='${prefix}/etc'
799 sharedstatedir='${prefix}/com'
800 localstatedir='${prefix}/var'
801 includedir='${prefix}/include'
802 oldincludedir='/usr/include'
803 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
804 infodir='${datarootdir}/info'
805 htmldir='${docdir}'
806 dvidir='${docdir}'
807 pdfdir='${docdir}'
808 psdir='${docdir}'
809 libdir='${exec_prefix}/lib'
810 localedir='${datarootdir}/locale'
811 mandir='${datarootdir}/man'
813 ac_prev=
814 ac_dashdash=
815 for ac_option
817 # If the previous option needs an argument, assign it.
818 if test -n "$ac_prev"; then
819 eval $ac_prev=\$ac_option
820 ac_prev=
821 continue
824 case $ac_option in
825 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
826 *) ac_optarg=yes ;;
827 esac
829 # Accept the important Cygnus configure options, so we can diagnose typos.
831 case $ac_dashdash$ac_option in
833 ac_dashdash=yes ;;
835 -bindir | --bindir | --bindi | --bind | --bin | --bi)
836 ac_prev=bindir ;;
837 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838 bindir=$ac_optarg ;;
840 -build | --build | --buil | --bui | --bu)
841 ac_prev=build_alias ;;
842 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
843 build_alias=$ac_optarg ;;
845 -cache-file | --cache-file | --cache-fil | --cache-fi \
846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
847 ac_prev=cache_file ;;
848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
850 cache_file=$ac_optarg ;;
852 --config-cache | -C)
853 cache_file=config.cache ;;
855 -datadir | --datadir | --datadi | --datad)
856 ac_prev=datadir ;;
857 -datadir=* | --datadir=* | --datadi=* | --datad=*)
858 datadir=$ac_optarg ;;
860 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861 | --dataroo | --dataro | --datar)
862 ac_prev=datarootdir ;;
863 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865 datarootdir=$ac_optarg ;;
867 -disable-* | --disable-*)
868 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 as_fn_error "invalid feature name: $ac_useropt"
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
876 "enable_$ac_useropt"
877 "*) ;;
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
880 esac
881 eval enable_$ac_useropt=no ;;
883 -docdir | --docdir | --docdi | --doc | --do)
884 ac_prev=docdir ;;
885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 docdir=$ac_optarg ;;
888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889 ac_prev=dvidir ;;
890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 dvidir=$ac_optarg ;;
893 -enable-* | --enable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
902 "enable_$ac_useropt"
903 "*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=\$ac_optarg ;;
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
920 with_gas=yes ;;
922 -help | --help | --hel | --he | -h)
923 ac_init_help=long ;;
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 ac_prev=htmldir ;;
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 | --ht=*)
938 htmldir=$ac_optarg ;;
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 ac_prev=infodir ;;
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
952 -libdir | --libdir | --libdi | --libd)
953 ac_prev=libdir ;;
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 libdir=$ac_optarg ;;
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
964 -localedir | --localedir | --localedi | --localed | --locale)
965 ac_prev=localedir ;;
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 ac_prev=mandir ;;
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979 mandir=$ac_optarg ;;
981 -nfp | --nfp | --nf)
982 # Obsolete; use --without-fp.
983 with_fp=no ;;
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
987 no_create=yes ;;
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 no_recursion=yes ;;
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 ac_prev=prefix ;;
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 ac_prev=pdfdir ;;
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1043 -psdir | --psdir | --psdi | --psd | --ps)
1044 ac_prev=psdir ;;
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 psdir=$ac_optarg ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 silent=yes ;;
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 ac_prev=sbindir ;;
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 | --sbi=* | --sb=*)
1056 sbindir=$ac_optarg ;;
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1061 | --sha | --sh)
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 | --sha=* | --sh=*)
1067 sharedstatedir=$ac_optarg ;;
1069 -site | --site | --sit)
1070 ac_prev=site ;;
1071 -site=* | --site=* | --sit=*)
1072 site=$ac_optarg ;;
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 ac_prev=srcdir ;;
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 verbose=yes ;;
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1097 -with-* | --with-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error "invalid package name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1106 "with_$ac_useropt"
1107 "*) ;;
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1110 esac
1111 eval with_$ac_useropt=\$ac_optarg ;;
1113 -without-* | --without-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1122 "with_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=no ;;
1129 --x)
1130 # Obsolete; use --with-x.
1131 with_x=yes ;;
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1147 -*) as_fn_error "unrecognized option: \`$ac_option'
1148 Try \`$0 --help' for more information."
1151 *=*)
1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 # Reject names that are not valid shell variable names.
1154 case $ac_envvar in #(
1155 '' | [0-9]* | *[!_$as_cr_alnum]* )
1156 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1157 esac
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1162 # FIXME: should be removed in autoconf 3.0.
1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1169 esac
1170 done
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 as_fn_error "missing argument to $ac_option"
1177 if test -n "$ac_unrecognized_opts"; then
1178 case $enable_option_checking in
1179 no) ;;
1180 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1181 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1182 esac
1185 # Check all directory arguments for consistency.
1186 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187 datadir sysconfdir sharedstatedir localstatedir includedir \
1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189 libdir localedir mandir
1191 eval ac_val=\$$ac_var
1192 # Remove trailing slashes.
1193 case $ac_val in
1194 */ )
1195 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1196 eval $ac_var=\$ac_val;;
1197 esac
1198 # Be sure to have absolute directory names.
1199 case $ac_val in
1200 [\\/$]* | ?:[\\/]* ) continue;;
1201 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1202 esac
1203 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1204 done
1206 # There might be people who depend on the old broken behavior: `$host'
1207 # used to hold the argument of --host etc.
1208 # FIXME: To remove some day.
1209 build=$build_alias
1210 host=$host_alias
1211 target=$target_alias
1213 # FIXME: To remove some day.
1214 if test "x$host_alias" != x; then
1215 if test "x$build_alias" = x; then
1216 cross_compiling=maybe
1217 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1218 If a cross compiler is detected then cross compile mode will be used." >&2
1219 elif test "x$build_alias" != "x$host_alias"; then
1220 cross_compiling=yes
1224 ac_tool_prefix=
1225 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1227 test "$silent" = yes && exec 6>/dev/null
1230 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231 ac_ls_di=`ls -di .` &&
1232 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233 as_fn_error "working directory cannot be determined"
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 as_fn_error "pwd does not report name of working directory"
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249 s//\1/
1252 /^X\(\/\/\)[^/].*/{
1253 s//\1/
1256 /^X\(\/\/\)$/{
1257 s//\1/
1260 /^X\(\/\).*/{
1261 s//\1/
1264 s/.*/./; q'`
1265 srcdir=$ac_confdir
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 srcdir=..
1269 else
1270 ac_srcdir_defaulted=no
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 ac_abs_confdir=`(
1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1279 pwd)`
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 srcdir=.
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1287 case $srcdir in
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 esac
1290 for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 done
1298 # Report the --help message.
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1303 cat <<_ACEOF
1304 \`configure' configures MIC Offload Runtime Library 1.0 to adapt to many kinds of systems.
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1311 Defaults for the options are specified in brackets.
1313 Configuration:
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1328 [PREFIX]
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1335 For better control, use the options below.
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/liboffloadmic]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1357 _ACEOF
1359 cat <<\_ACEOF
1361 Program names:
1362 --program-prefix=PREFIX prepend PREFIX to installed program names
1363 --program-suffix=SUFFIX append SUFFIX to installed program names
1364 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1366 System types:
1367 --build=BUILD configure for building on BUILD [guessed]
1368 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1369 --target=TARGET configure for building compilers for TARGET [HOST]
1370 _ACEOF
1373 if test -n "$ac_init_help"; then
1374 case $ac_init_help in
1375 short | recursive ) echo "Configuration of MIC Offload Runtime Library 1.0:";;
1376 esac
1377 cat <<\_ACEOF
1379 Optional Features:
1380 --disable-option-checking ignore unrecognized --enable/--with options
1381 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1382 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1383 --enable-maintainer-mode enable make rules and dependencies not useful
1384 (and sometimes confusing) to the casual installer
1385 --disable-dependency-tracking speeds up one-time build
1386 --enable-dependency-tracking do not reject slow dependency extractors
1387 --enable-multilib build many library versions (default)
1388 --enable-version-specific-runtime-libs
1389 Specify that runtime libraries should be installed
1390 in a compiler-specific directory
1391 --enable-shared[=PKGS] build shared libraries [default=yes]
1392 --enable-static[=PKGS] build static libraries [default=yes]
1393 --enable-fast-install[=PKGS]
1394 optimize for fast installation [default=yes]
1395 --disable-libtool-lock avoid locking (might break parallel builds)
1397 Optional Packages:
1398 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1399 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1400 --with-pic try to use only PIC/non-PIC objects [default=use
1401 both]
1402 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1403 --with-gcc-major-version-only
1404 use only GCC major number in filesystem paths
1406 Some influential environment variables:
1407 CC C compiler command
1408 CFLAGS C compiler flags
1409 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1410 nonstandard directory <lib dir>
1411 LIBS libraries to pass to the linker, e.g. -l<library>
1412 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1413 you have headers in a nonstandard directory <include dir>
1414 CXX C++ compiler command
1415 CXXFLAGS C++ compiler flags
1416 CPP C preprocessor
1417 CXXCPP C++ preprocessor
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1422 Report bugs to the package provider.
1423 _ACEOF
1424 ac_status=$?
1427 if test "$ac_init_help" = "recursive"; then
1428 # If there are subdirs, report their specific --help.
1429 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430 test -d "$ac_dir" ||
1431 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1432 continue
1433 ac_builddir=.
1435 case "$ac_dir" in
1436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1439 # A ".." for each directory in $ac_dir_suffix.
1440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1441 case $ac_top_builddir_sub in
1442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1444 esac ;;
1445 esac
1446 ac_abs_top_builddir=$ac_pwd
1447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1448 # for backward compatibility:
1449 ac_top_builddir=$ac_top_build_prefix
1451 case $srcdir in
1452 .) # We are building in place.
1453 ac_srcdir=.
1454 ac_top_srcdir=$ac_top_builddir_sub
1455 ac_abs_top_srcdir=$ac_pwd ;;
1456 [\\/]* | ?:[\\/]* ) # Absolute name.
1457 ac_srcdir=$srcdir$ac_dir_suffix;
1458 ac_top_srcdir=$srcdir
1459 ac_abs_top_srcdir=$srcdir ;;
1460 *) # Relative name.
1461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1462 ac_top_srcdir=$ac_top_build_prefix$srcdir
1463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464 esac
1465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467 cd "$ac_dir" || { ac_status=$?; continue; }
1468 # Check for guested configure.
1469 if test -f "$ac_srcdir/configure.gnu"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1472 elif test -f "$ac_srcdir/configure"; then
1473 echo &&
1474 $SHELL "$ac_srcdir/configure" --help=recursive
1475 else
1476 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 fi || ac_status=$?
1478 cd "$ac_pwd" || { ac_status=$?; break; }
1479 done
1482 test -n "$ac_init_help" && exit $ac_status
1483 if $ac_init_version; then
1484 cat <<\_ACEOF
1485 MIC Offload Runtime Library configure 1.0
1486 generated by GNU Autoconf 2.64
1488 Copyright (C) 2009 Free Software Foundation, Inc.
1489 This configure script is free software; the Free Software Foundation
1490 gives unlimited permission to copy, distribute and modify it.
1491 _ACEOF
1492 exit
1495 ## ------------------------ ##
1496 ## Autoconf initialization. ##
1497 ## ------------------------ ##
1499 # ac_fn_c_try_compile LINENO
1500 # --------------------------
1501 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1502 ac_fn_c_try_compile ()
1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 rm -f conftest.$ac_objext
1506 if { { ac_try="$ac_compile"
1507 case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510 esac
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_compile") 2>conftest.err
1514 ac_status=$?
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } && {
1522 test -z "$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1524 } && test -s conftest.$ac_objext; then :
1525 ac_retval=0
1526 else
1527 $as_echo "$as_me: failed program was:" >&5
1528 sed 's/^/| /' conftest.$ac_ext >&5
1530 ac_retval=1
1532 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1533 return $ac_retval
1535 } # ac_fn_c_try_compile
1537 # ac_fn_cxx_try_compile LINENO
1538 # ----------------------------
1539 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1540 ac_fn_cxx_try_compile ()
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext
1544 if { { ac_try="$ac_compile"
1545 case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548 esac
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_cxx_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext; then :
1563 ac_retval=0
1564 else
1565 $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1568 ac_retval=1
1570 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1571 return $ac_retval
1573 } # ac_fn_cxx_try_compile
1575 # ac_fn_c_try_link LINENO
1576 # -----------------------
1577 # Try to link conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_link ()
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext conftest$ac_exeext
1582 if { { ac_try="$ac_link"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_link") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest$ac_exeext && {
1601 test "$cross_compiling" = yes ||
1602 $as_test_x conftest$ac_exeext
1603 }; then :
1604 ac_retval=0
1605 else
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1609 ac_retval=1
1611 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1612 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1613 # interfere with the next link command; also delete a directory that is
1614 # left behind by Apple's compiler. We do this before executing the actions.
1615 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1616 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1617 return $ac_retval
1619 } # ac_fn_c_try_link
1621 # ac_fn_c_try_cpp LINENO
1622 # ----------------------
1623 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_cpp ()
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 if { { ac_try="$ac_cpp conftest.$ac_ext"
1628 case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } >/dev/null && {
1643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 }; then :
1646 ac_retval=0
1647 else
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1651 ac_retval=1
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654 return $ac_retval
1656 } # ac_fn_c_try_cpp
1658 # ac_fn_c_check_func LINENO FUNC VAR
1659 # ----------------------------------
1660 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1661 ac_fn_c_check_func ()
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1667 $as_echo_n "(cached) " >&6
1668 else
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1671 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1673 #define $2 innocuous_$2
1675 /* System header to define __stub macros and hopefully few prototypes,
1676 which can conflict with char $2 (); below.
1677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1678 <limits.h> exists even on freestanding compilers. */
1680 #ifdef __STDC__
1681 # include <limits.h>
1682 #else
1683 # include <assert.h>
1684 #endif
1686 #undef $2
1688 /* Override any GCC internal prototype to avoid an error.
1689 Use char because int might match the return type of a GCC
1690 builtin and then its argument prototype would still apply. */
1691 #ifdef __cplusplus
1692 extern "C"
1693 #endif
1694 char $2 ();
1695 /* The GNU C library defines this for functions which it implements
1696 to always fail with ENOSYS. Some functions are actually named
1697 something starting with __ and the normal name is an alias. */
1698 #if defined __stub_$2 || defined __stub___$2
1699 choke me
1700 #endif
1703 main ()
1705 return $2 ();
1707 return 0;
1709 _ACEOF
1710 if ac_fn_c_try_link "$LINENO"; then :
1711 eval "$3=yes"
1712 else
1713 eval "$3=no"
1715 rm -f core conftest.err conftest.$ac_objext \
1716 conftest$ac_exeext conftest.$ac_ext
1718 eval ac_res=\$$3
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720 $as_echo "$ac_res" >&6; }
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 } # ac_fn_c_check_func
1725 # ac_fn_c_try_run LINENO
1726 # ----------------------
1727 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1728 # that executables *can* be run.
1729 ac_fn_c_try_run ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_link"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>&5
1740 ac_status=$?
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1743 { { case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_try") 2>&5
1750 ac_status=$?
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; }; }; then :
1753 ac_retval=0
1754 else
1755 $as_echo "$as_me: program exited with status $ac_status" >&5
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1759 ac_retval=$ac_status
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1763 return $ac_retval
1765 } # ac_fn_c_try_run
1767 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1768 # -------------------------------------------------------
1769 # Tests whether HEADER exists and can be compiled using the include files in
1770 # INCLUDES, setting the cache variable VAR accordingly.
1771 ac_fn_c_check_header_compile ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1778 else
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1782 #include <$2>
1783 _ACEOF
1784 if ac_fn_c_try_compile "$LINENO"; then :
1785 eval "$3=yes"
1786 else
1787 eval "$3=no"
1789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791 eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 $as_echo "$ac_res" >&6; }
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796 } # ac_fn_c_check_header_compile
1798 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1799 # -------------------------------------------------------
1800 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1801 # the include files in INCLUDES and setting the cache variable VAR
1802 # accordingly.
1803 ac_fn_c_check_header_mongrel ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1810 $as_echo_n "(cached) " >&6
1812 eval ac_res=\$$3
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 else
1816 # Is the header compilable?
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1818 $as_echo_n "checking $2 usability... " >&6; }
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1822 #include <$2>
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825 ac_header_compiler=yes
1826 else
1827 ac_header_compiler=no
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1831 $as_echo "$ac_header_compiler" >&6; }
1833 # Is the header present?
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1835 $as_echo_n "checking $2 presence... " >&6; }
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 #include <$2>
1839 _ACEOF
1840 if ac_fn_c_try_cpp "$LINENO"; then :
1841 ac_header_preproc=yes
1842 else
1843 ac_header_preproc=no
1845 rm -f conftest.err conftest.$ac_ext
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1847 $as_echo "$ac_header_preproc" >&6; }
1849 # So? What about this header?
1850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1851 yes:no: )
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1853 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1855 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1857 no:yes:* )
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1859 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1861 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1863 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1865 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869 esac
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1873 $as_echo_n "(cached) " >&6
1874 else
1875 eval "$3=\$ac_header_compiler"
1877 eval ac_res=\$$3
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 } # ac_fn_c_check_header_mongrel
1885 # ac_fn_cxx_try_cpp LINENO
1886 # ------------------------
1887 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1888 ac_fn_cxx_try_cpp ()
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 if { { ac_try="$ac_cpp conftest.$ac_ext"
1892 case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895 esac
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1899 ac_status=$?
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } >/dev/null && {
1907 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1908 test ! -s conftest.err
1909 }; then :
1910 ac_retval=0
1911 else
1912 $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1915 ac_retval=1
1917 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918 return $ac_retval
1920 } # ac_fn_cxx_try_cpp
1922 # ac_fn_cxx_try_link LINENO
1923 # -------------------------
1924 # Try to link conftest.$ac_ext, and return whether this succeeded.
1925 ac_fn_cxx_try_link ()
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 rm -f conftest.$ac_objext conftest$ac_exeext
1929 if { { ac_try="$ac_link"
1930 case "(($ac_try" in
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1933 esac
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936 (eval "$ac_link") 2>conftest.err
1937 ac_status=$?
1938 if test -s conftest.err; then
1939 grep -v '^ *+' conftest.err >conftest.er1
1940 cat conftest.er1 >&5
1941 mv -f conftest.er1 conftest.err
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; } && {
1945 test -z "$ac_cxx_werror_flag" ||
1946 test ! -s conftest.err
1947 } && test -s conftest$ac_exeext && {
1948 test "$cross_compiling" = yes ||
1949 $as_test_x conftest$ac_exeext
1950 }; then :
1951 ac_retval=0
1952 else
1953 $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1956 ac_retval=1
1958 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1959 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1960 # interfere with the next link command; also delete a directory that is
1961 # left behind by Apple's compiler. We do this before executing the actions.
1962 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1963 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964 return $ac_retval
1966 } # ac_fn_cxx_try_link
1967 cat >config.log <<_ACEOF
1968 This file contains any messages produced by compilers while
1969 running configure, to aid debugging if configure makes a mistake.
1971 It was created by MIC Offload Runtime Library $as_me 1.0, which was
1972 generated by GNU Autoconf 2.64. Invocation command line was
1974 $ $0 $@
1976 _ACEOF
1977 exec 5>>config.log
1979 cat <<_ASUNAME
1980 ## --------- ##
1981 ## Platform. ##
1982 ## --------- ##
1984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1991 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1993 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1994 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1996 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1997 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1998 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1999 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2001 _ASUNAME
2003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004 for as_dir in $PATH
2006 IFS=$as_save_IFS
2007 test -z "$as_dir" && as_dir=.
2008 $as_echo "PATH: $as_dir"
2009 done
2010 IFS=$as_save_IFS
2012 } >&5
2014 cat >&5 <<_ACEOF
2017 ## ----------- ##
2018 ## Core tests. ##
2019 ## ----------- ##
2021 _ACEOF
2024 # Keep a trace of the command line.
2025 # Strip out --no-create and --no-recursion so they do not pile up.
2026 # Strip out --silent because we don't want to record it for future runs.
2027 # Also quote any args containing shell meta-characters.
2028 # Make two passes to allow for proper duplicate-argument suppression.
2029 ac_configure_args=
2030 ac_configure_args0=
2031 ac_configure_args1=
2032 ac_must_keep_next=false
2033 for ac_pass in 1 2
2035 for ac_arg
2037 case $ac_arg in
2038 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2040 | -silent | --silent | --silen | --sile | --sil)
2041 continue ;;
2042 *\'*)
2043 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2044 esac
2045 case $ac_pass in
2046 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2048 as_fn_append ac_configure_args1 " '$ac_arg'"
2049 if test $ac_must_keep_next = true; then
2050 ac_must_keep_next=false # Got value, back to normal.
2051 else
2052 case $ac_arg in
2053 *=* | --config-cache | -C | -disable-* | --disable-* \
2054 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2055 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2056 | -with-* | --with-* | -without-* | --without-* | --x)
2057 case "$ac_configure_args0 " in
2058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2059 esac
2061 -* ) ac_must_keep_next=true ;;
2062 esac
2064 as_fn_append ac_configure_args " '$ac_arg'"
2066 esac
2067 done
2068 done
2069 { ac_configure_args0=; unset ac_configure_args0;}
2070 { ac_configure_args1=; unset ac_configure_args1;}
2072 # When interrupted or exit'd, cleanup temporary files, and complete
2073 # config.log. We remove comments because anyway the quotes in there
2074 # would cause problems or look ugly.
2075 # WARNING: Use '\'' to represent an apostrophe within the trap.
2076 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2077 trap 'exit_status=$?
2078 # Save into config.log some information that might help in debugging.
2080 echo
2082 cat <<\_ASBOX
2083 ## ---------------- ##
2084 ## Cache variables. ##
2085 ## ---------------- ##
2086 _ASBOX
2087 echo
2088 # The following way of writing the cache mishandles newlines in values,
2090 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2091 eval ac_val=\$$ac_var
2092 case $ac_val in #(
2093 *${as_nl}*)
2094 case $ac_var in #(
2095 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2096 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2097 esac
2098 case $ac_var in #(
2099 _ | IFS | as_nl) ;; #(
2100 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2101 *) { eval $ac_var=; unset $ac_var;} ;;
2102 esac ;;
2103 esac
2104 done
2105 (set) 2>&1 |
2106 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2107 *${as_nl}ac_space=\ *)
2108 sed -n \
2109 "s/'\''/'\''\\\\'\'''\''/g;
2110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2111 ;; #(
2113 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2115 esac |
2116 sort
2118 echo
2120 cat <<\_ASBOX
2121 ## ----------------- ##
2122 ## Output variables. ##
2123 ## ----------------- ##
2124 _ASBOX
2125 echo
2126 for ac_var in $ac_subst_vars
2128 eval ac_val=\$$ac_var
2129 case $ac_val in
2130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131 esac
2132 $as_echo "$ac_var='\''$ac_val'\''"
2133 done | sort
2134 echo
2136 if test -n "$ac_subst_files"; then
2137 cat <<\_ASBOX
2138 ## ------------------- ##
2139 ## File substitutions. ##
2140 ## ------------------- ##
2141 _ASBOX
2142 echo
2143 for ac_var in $ac_subst_files
2145 eval ac_val=\$$ac_var
2146 case $ac_val in
2147 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2148 esac
2149 $as_echo "$ac_var='\''$ac_val'\''"
2150 done | sort
2151 echo
2154 if test -s confdefs.h; then
2155 cat <<\_ASBOX
2156 ## ----------- ##
2157 ## confdefs.h. ##
2158 ## ----------- ##
2159 _ASBOX
2160 echo
2161 cat confdefs.h
2162 echo
2164 test "$ac_signal" != 0 &&
2165 $as_echo "$as_me: caught signal $ac_signal"
2166 $as_echo "$as_me: exit $exit_status"
2167 } >&5
2168 rm -f core *.core core.conftest.* &&
2169 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2170 exit $exit_status
2172 for ac_signal in 1 2 13 15; do
2173 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2174 done
2175 ac_signal=0
2177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2178 rm -f -r conftest* confdefs.h
2180 $as_echo "/* confdefs.h */" > confdefs.h
2182 # Predefined preprocessor variables.
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_NAME "$PACKAGE_NAME"
2186 _ACEOF
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2190 _ACEOF
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2194 _ACEOF
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_STRING "$PACKAGE_STRING"
2198 _ACEOF
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2202 _ACEOF
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_URL "$PACKAGE_URL"
2206 _ACEOF
2209 # Let the site file select an alternate cache file if it wants to.
2210 # Prefer an explicitly selected file to automatically selected ones.
2211 ac_site_file1=NONE
2212 ac_site_file2=NONE
2213 if test -n "$CONFIG_SITE"; then
2214 ac_site_file1=$CONFIG_SITE
2215 elif test "x$prefix" != xNONE; then
2216 ac_site_file1=$prefix/share/config.site
2217 ac_site_file2=$prefix/etc/config.site
2218 else
2219 ac_site_file1=$ac_default_prefix/share/config.site
2220 ac_site_file2=$ac_default_prefix/etc/config.site
2222 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2224 test "x$ac_site_file" = xNONE && continue
2225 if test -r "$ac_site_file"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2227 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2228 sed 's/^/| /' "$ac_site_file" >&5
2229 . "$ac_site_file"
2231 done
2233 if test -r "$cache_file"; then
2234 # Some versions of bash will fail to source /dev/null (special
2235 # files actually), so we avoid doing that.
2236 if test -f "$cache_file"; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2238 $as_echo "$as_me: loading cache $cache_file" >&6;}
2239 case $cache_file in
2240 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2241 *) . "./$cache_file";;
2242 esac
2244 else
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2246 $as_echo "$as_me: creating cache $cache_file" >&6;}
2247 >$cache_file
2250 # Check that the precious variables saved in the cache have kept the same
2251 # value.
2252 ac_cache_corrupted=false
2253 for ac_var in $ac_precious_vars; do
2254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2255 eval ac_new_set=\$ac_env_${ac_var}_set
2256 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2257 eval ac_new_val=\$ac_env_${ac_var}_value
2258 case $ac_old_set,$ac_new_set in
2259 set,)
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2261 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2262 ac_cache_corrupted=: ;;
2263 ,set)
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2265 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2266 ac_cache_corrupted=: ;;
2267 ,);;
2269 if test "x$ac_old_val" != "x$ac_new_val"; then
2270 # differences in whitespace do not lead to failure.
2271 ac_old_val_w=`echo x $ac_old_val`
2272 ac_new_val_w=`echo x $ac_new_val`
2273 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2275 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2276 ac_cache_corrupted=:
2277 else
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2279 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2280 eval $ac_var=\$ac_old_val
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2283 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2285 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2286 fi;;
2287 esac
2288 # Pass precious variables to config.status.
2289 if test "$ac_new_set" = set; then
2290 case $ac_new_val in
2291 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2292 *) ac_arg=$ac_var=$ac_new_val ;;
2293 esac
2294 case " $ac_configure_args " in
2295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2296 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2297 esac
2299 done
2300 if $ac_cache_corrupted; then
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2304 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2305 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2307 ## -------------------- ##
2308 ## Main body of script. ##
2309 ## -------------------- ##
2311 ac_ext=c
2312 ac_cpp='$CPP $CPPFLAGS'
2313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322 ac_aux_dir=
2323 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2324 for ac_t in install-sh install.sh shtool; do
2325 if test -f "$ac_dir/$ac_t"; then
2326 ac_aux_dir=$ac_dir
2327 ac_install_sh="$ac_aux_dir/$ac_t -c"
2328 break 2
2330 done
2331 done
2332 if test -z "$ac_aux_dir"; then
2333 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2336 # These three variables are undocumented and unsupported,
2337 # and are intended to be withdrawn in a future Autoconf release.
2338 # They can cause serious problems if a builder's source tree is in a directory
2339 # whose full name contains unusual characters.
2340 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2341 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2342 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2345 # Make sure we can run config.sub.
2346 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2347 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2350 $as_echo_n "checking build system type... " >&6; }
2351 if test "${ac_cv_build+set}" = set; then :
2352 $as_echo_n "(cached) " >&6
2353 else
2354 ac_build_alias=$build_alias
2355 test "x$ac_build_alias" = x &&
2356 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2357 test "x$ac_build_alias" = x &&
2358 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2359 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2360 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2364 $as_echo "$ac_cv_build" >&6; }
2365 case $ac_cv_build in
2366 *-*-*) ;;
2367 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2368 esac
2369 build=$ac_cv_build
2370 ac_save_IFS=$IFS; IFS='-'
2371 set x $ac_cv_build
2372 shift
2373 build_cpu=$1
2374 build_vendor=$2
2375 shift; shift
2376 # Remember, the first character of IFS is used to create $*,
2377 # except with old shells:
2378 build_os=$*
2379 IFS=$ac_save_IFS
2380 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2384 $as_echo_n "checking host system type... " >&6; }
2385 if test "${ac_cv_host+set}" = set; then :
2386 $as_echo_n "(cached) " >&6
2387 else
2388 if test "x$host_alias" = x; then
2389 ac_cv_host=$ac_cv_build
2390 else
2391 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2392 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2397 $as_echo "$ac_cv_host" >&6; }
2398 case $ac_cv_host in
2399 *-*-*) ;;
2400 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2401 esac
2402 host=$ac_cv_host
2403 ac_save_IFS=$IFS; IFS='-'
2404 set x $ac_cv_host
2405 shift
2406 host_cpu=$1
2407 host_vendor=$2
2408 shift; shift
2409 # Remember, the first character of IFS is used to create $*,
2410 # except with old shells:
2411 host_os=$*
2412 IFS=$ac_save_IFS
2413 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2417 $as_echo_n "checking target system type... " >&6; }
2418 if test "${ac_cv_target+set}" = set; then :
2419 $as_echo_n "(cached) " >&6
2420 else
2421 if test "x$target_alias" = x; then
2422 ac_cv_target=$ac_cv_host
2423 else
2424 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2425 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2430 $as_echo "$ac_cv_target" >&6; }
2431 case $ac_cv_target in
2432 *-*-*) ;;
2433 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2434 esac
2435 target=$ac_cv_target
2436 ac_save_IFS=$IFS; IFS='-'
2437 set x $ac_cv_target
2438 shift
2439 target_cpu=$1
2440 target_vendor=$2
2441 shift; shift
2442 # Remember, the first character of IFS is used to create $*,
2443 # except with old shells:
2444 target_os=$*
2445 IFS=$ac_save_IFS
2446 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2449 # The aliases save the names the user supplied, while $host etc.
2450 # will get canonicalized.
2451 test -n "$target_alias" &&
2452 test "$program_prefix$program_suffix$program_transform_name" = \
2453 NONENONEs,x,x, &&
2454 program_prefix=${target_alias}-
2456 target_alias=${target_alias-$host_alias}
2459 am__api_version='1.11'
2461 # Find a good install program. We prefer a C program (faster),
2462 # so one script is as good as another. But avoid the broken or
2463 # incompatible versions:
2464 # SysV /etc/install, /usr/sbin/install
2465 # SunOS /usr/etc/install
2466 # IRIX /sbin/install
2467 # AIX /bin/install
2468 # AmigaOS /C/install, which installs bootblocks on floppy discs
2469 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2470 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2471 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2472 # OS/2's system install, which has a completely different semantic
2473 # ./install, which can be erroneously created by make from ./install.sh.
2474 # Reject install programs that cannot install multiple files.
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2476 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2477 if test -z "$INSTALL"; then
2478 if test "${ac_cv_path_install+set}" = set; then :
2479 $as_echo_n "(cached) " >&6
2480 else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 # Account for people who put trailing slashes in PATH elements.
2487 case $as_dir/ in #((
2488 ./ | .// | /[cC]/* | \
2489 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2490 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2491 /usr/ucb/* ) ;;
2493 # OSF1 and SCO ODT 3.0 have their own names for install.
2494 # Don't use installbsd from OSF since it installs stuff as root
2495 # by default.
2496 for ac_prog in ginstall scoinst install; do
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2499 if test $ac_prog = install &&
2500 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2501 # AIX install. It has an incompatible calling convention.
2503 elif test $ac_prog = install &&
2504 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2505 # program-specific install script used by HP pwplus--don't use.
2507 else
2508 rm -rf conftest.one conftest.two conftest.dir
2509 echo one > conftest.one
2510 echo two > conftest.two
2511 mkdir conftest.dir
2512 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2513 test -s conftest.one && test -s conftest.two &&
2514 test -s conftest.dir/conftest.one &&
2515 test -s conftest.dir/conftest.two
2516 then
2517 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2518 break 3
2522 done
2523 done
2525 esac
2527 done
2528 IFS=$as_save_IFS
2530 rm -rf conftest.one conftest.two conftest.dir
2533 if test "${ac_cv_path_install+set}" = set; then
2534 INSTALL=$ac_cv_path_install
2535 else
2536 # As a last resort, use the slow shell script. Don't cache a
2537 # value for INSTALL within a source directory, because that will
2538 # break other packages using the cache if that directory is
2539 # removed, or if the value is a relative name.
2540 INSTALL=$ac_install_sh
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2544 $as_echo "$INSTALL" >&6; }
2546 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2547 # It thinks the first close brace ends the variable substitution.
2548 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2550 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2552 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2555 $as_echo_n "checking whether build environment is sane... " >&6; }
2556 # Just in case
2557 sleep 1
2558 echo timestamp > conftest.file
2559 # Reject unsafe characters in $srcdir or the absolute working directory
2560 # name. Accept space and tab only in the latter.
2561 am_lf='
2563 case `pwd` in
2564 *[\\\"\#\$\&\'\`$am_lf]*)
2565 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2566 esac
2567 case $srcdir in
2568 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2569 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2570 esac
2572 # Do `set' in a subshell so we don't clobber the current shell's
2573 # arguments. Must try -L first in case configure is actually a
2574 # symlink; some systems play weird games with the mod time of symlinks
2575 # (eg FreeBSD returns the mod time of the symlink's containing
2576 # directory).
2577 if (
2578 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2579 if test "$*" = "X"; then
2580 # -L didn't work.
2581 set X `ls -t "$srcdir/configure" conftest.file`
2583 rm -f conftest.file
2584 if test "$*" != "X $srcdir/configure conftest.file" \
2585 && test "$*" != "X conftest.file $srcdir/configure"; then
2587 # If neither matched, then we have a broken ls. This can happen
2588 # if, for instance, CONFIG_SHELL is bash and it inherits a
2589 # broken ls alias from the environment. This has actually
2590 # happened. Such a system could not be considered "sane".
2591 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2592 alias in your environment" "$LINENO" 5
2595 test "$2" = conftest.file
2597 then
2598 # Ok.
2600 else
2601 as_fn_error "newly created file is older than distributed files!
2602 Check your system clock" "$LINENO" 5
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2605 $as_echo "yes" >&6; }
2606 test "$program_prefix" != NONE &&
2607 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2608 # Use a double $ so make ignores it.
2609 test "$program_suffix" != NONE &&
2610 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2611 # Double any \ or $.
2612 # By default was `s,x,x', remove it if useless.
2613 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2614 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2616 # expand $ac_aux_dir to an absolute path
2617 am_aux_dir=`cd $ac_aux_dir && pwd`
2619 if test x"${MISSING+set}" != xset; then
2620 case $am_aux_dir in
2621 *\ * | *\ *)
2622 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2624 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2625 esac
2627 # Use eval to expand $SHELL
2628 if eval "$MISSING --run true"; then
2629 am_missing_run="$MISSING --run "
2630 else
2631 am_missing_run=
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2633 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2636 if test x"${install_sh}" != xset; then
2637 case $am_aux_dir in
2638 *\ * | *\ *)
2639 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2641 install_sh="\${SHELL} $am_aux_dir/install-sh"
2642 esac
2645 # Installed binaries are usually stripped using `strip' when the user
2646 # run `make install-strip'. However `strip' might not be the right
2647 # tool to use in cross-compilation environments, therefore Automake
2648 # will honor the `STRIP' environment variable to overrule this program.
2649 if test "$cross_compiling" != no; then
2650 if test -n "$ac_tool_prefix"; then
2651 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2652 set dummy ${ac_tool_prefix}strip; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if test "${ac_cv_prog_STRIP+set}" = set; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 if test -n "$STRIP"; then
2659 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2672 done
2673 done
2674 IFS=$as_save_IFS
2678 STRIP=$ac_cv_prog_STRIP
2679 if test -n "$STRIP"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2681 $as_echo "$STRIP" >&6; }
2682 else
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2689 if test -z "$ac_cv_prog_STRIP"; then
2690 ac_ct_STRIP=$STRIP
2691 # Extract the first word of "strip", so it can be a program name with args.
2692 set dummy strip; ac_word=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 if test -n "$ac_ct_STRIP"; then
2699 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 ac_cv_prog_ac_ct_STRIP="strip"
2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2712 done
2713 done
2714 IFS=$as_save_IFS
2718 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2719 if test -n "$ac_ct_STRIP"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2721 $as_echo "$ac_ct_STRIP" >&6; }
2722 else
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2727 if test "x$ac_ct_STRIP" = x; then
2728 STRIP=":"
2729 else
2730 case $cross_compiling:$ac_tool_warned in
2731 yes:)
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2734 ac_tool_warned=yes ;;
2735 esac
2736 STRIP=$ac_ct_STRIP
2738 else
2739 STRIP="$ac_cv_prog_STRIP"
2743 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2746 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2747 if test -z "$MKDIR_P"; then
2748 if test "${ac_cv_path_mkdir+set}" = set; then :
2749 $as_echo_n "(cached) " >&6
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2754 IFS=$as_save_IFS
2755 test -z "$as_dir" && as_dir=.
2756 for ac_prog in mkdir gmkdir; do
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2759 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2760 'mkdir (GNU coreutils) '* | \
2761 'mkdir (coreutils) '* | \
2762 'mkdir (fileutils) '4.1*)
2763 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2764 break 3;;
2765 esac
2766 done
2767 done
2768 done
2769 IFS=$as_save_IFS
2773 if test "${ac_cv_path_mkdir+set}" = set; then
2774 MKDIR_P="$ac_cv_path_mkdir -p"
2775 else
2776 # As a last resort, use the slow shell script. Don't cache a
2777 # value for MKDIR_P within a source directory, because that will
2778 # break other packages using the cache if that directory is
2779 # removed, or if the value is a relative name.
2780 test -d ./--version && rmdir ./--version
2781 MKDIR_P="$ac_install_sh -d"
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2785 $as_echo "$MKDIR_P" >&6; }
2787 mkdir_p="$MKDIR_P"
2788 case $mkdir_p in
2789 [\\/$]* | ?:[\\/]*) ;;
2790 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2791 esac
2793 for ac_prog in gawk mawk nawk awk
2795 # Extract the first word of "$ac_prog", so it can be a program name with args.
2796 set dummy $ac_prog; ac_word=$2
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if test "${ac_cv_prog_AWK+set}" = set; then :
2800 $as_echo_n "(cached) " >&6
2801 else
2802 if test -n "$AWK"; then
2803 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 ac_cv_prog_AWK="$ac_prog"
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 break 2
2816 done
2817 done
2818 IFS=$as_save_IFS
2822 AWK=$ac_cv_prog_AWK
2823 if test -n "$AWK"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2825 $as_echo "$AWK" >&6; }
2826 else
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2832 test -n "$AWK" && break
2833 done
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2836 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2837 set x ${MAKE-make}
2838 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2839 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 cat >conftest.make <<\_ACEOF
2843 SHELL = /bin/sh
2844 all:
2845 @echo '@@@%%%=$(MAKE)=@@@%%%'
2846 _ACEOF
2847 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2848 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2849 *@@@%%%=?*=@@@%%%*)
2850 eval ac_cv_prog_make_${ac_make}_set=yes;;
2852 eval ac_cv_prog_make_${ac_make}_set=no;;
2853 esac
2854 rm -f conftest.make
2856 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2858 $as_echo "yes" >&6; }
2859 SET_MAKE=
2860 else
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2863 SET_MAKE="MAKE=${MAKE-make}"
2866 rm -rf .tst 2>/dev/null
2867 mkdir .tst 2>/dev/null
2868 if test -d .tst; then
2869 am__leading_dot=.
2870 else
2871 am__leading_dot=_
2873 rmdir .tst 2>/dev/null
2875 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2876 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2877 # is not polluted with repeated "-I."
2878 am__isrc=' -I$(srcdir)'
2879 # test to see if srcdir already configured
2880 if test -f $srcdir/config.status; then
2881 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2885 # test whether we have cygpath
2886 if test -z "$CYGPATH_W"; then
2887 if (cygpath --version) >/dev/null 2>/dev/null; then
2888 CYGPATH_W='cygpath -w'
2889 else
2890 CYGPATH_W=echo
2895 # Define the identity of the package.
2896 PACKAGE='liboffloadmic'
2897 VERSION='1.0'
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE "$PACKAGE"
2902 _ACEOF
2905 cat >>confdefs.h <<_ACEOF
2906 #define VERSION "$VERSION"
2907 _ACEOF
2909 # Some tools Automake needs.
2911 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2914 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2917 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2920 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2923 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2925 # We need awk for the "check" target. The system "awk" is bad on
2926 # some platforms.
2927 # Always define AMTAR for backward compatibility. Yes, it's still used
2928 # in the wild :-( We should find a proper way to deprecate it ...
2929 AMTAR='$${TAR-tar}'
2931 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2939 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2940 # Check whether --enable-maintainer-mode was given.
2941 if test "${enable_maintainer_mode+set}" = set; then :
2942 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2943 else
2944 USE_MAINTAINER_MODE=no
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2948 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2949 if test $USE_MAINTAINER_MODE = yes; then
2950 MAINTAINER_MODE_TRUE=
2951 MAINTAINER_MODE_FALSE='#'
2952 else
2953 MAINTAINER_MODE_TRUE='#'
2954 MAINTAINER_MODE_FALSE=
2957 MAINT=$MAINTAINER_MODE_TRUE
2961 ac_ext=c
2962 ac_cpp='$CPP $CPPFLAGS'
2963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2966 if test -n "$ac_tool_prefix"; then
2967 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2968 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if test "${ac_cv_prog_CC+set}" = set; then :
2972 $as_echo_n "(cached) " >&6
2973 else
2974 if test -n "$CC"; then
2975 ac_cv_prog_CC="$CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2988 done
2989 done
2990 IFS=$as_save_IFS
2994 CC=$ac_cv_prog_CC
2995 if test -n "$CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2997 $as_echo "$CC" >&6; }
2998 else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3005 if test -z "$ac_cv_prog_CC"; then
3006 ac_ct_CC=$CC
3007 # Extract the first word of "gcc", so it can be a program name with args.
3008 set dummy gcc; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3012 $as_echo_n "(cached) " >&6
3013 else
3014 if test -n "$ac_ct_CC"; then
3015 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024 ac_cv_prog_ac_ct_CC="gcc"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3028 done
3029 done
3030 IFS=$as_save_IFS
3034 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3035 if test -n "$ac_ct_CC"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3037 $as_echo "$ac_ct_CC" >&6; }
3038 else
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3043 if test "x$ac_ct_CC" = x; then
3044 CC=""
3045 else
3046 case $cross_compiling:$ac_tool_warned in
3047 yes:)
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3050 ac_tool_warned=yes ;;
3051 esac
3052 CC=$ac_ct_CC
3054 else
3055 CC="$ac_cv_prog_CC"
3058 if test -z "$CC"; then
3059 if test -n "$ac_tool_prefix"; then
3060 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3061 set dummy ${ac_tool_prefix}cc; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if test "${ac_cv_prog_CC+set}" = set; then :
3065 $as_echo_n "(cached) " >&6
3066 else
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC="$CC" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077 ac_cv_prog_CC="${ac_tool_prefix}cc"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3081 done
3082 done
3083 IFS=$as_save_IFS
3087 CC=$ac_cv_prog_CC
3088 if test -n "$CC"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3090 $as_echo "$CC" >&6; }
3091 else
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3099 if test -z "$CC"; then
3100 # Extract the first word of "cc", so it can be a program name with args.
3101 set dummy cc; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if test "${ac_cv_prog_CC+set}" = set; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 if test -n "$CC"; then
3108 ac_cv_prog_CC="$CC" # Let the user override the test.
3109 else
3110 ac_prog_rejected=no
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3118 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3119 ac_prog_rejected=yes
3120 continue
3122 ac_cv_prog_CC="cc"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3126 done
3127 done
3128 IFS=$as_save_IFS
3130 if test $ac_prog_rejected = yes; then
3131 # We found a bogon in the path, so make sure we never use it.
3132 set dummy $ac_cv_prog_CC
3133 shift
3134 if test $# != 0; then
3135 # We chose a different compiler from the bogus one.
3136 # However, it has the same basename, so the bogon will be chosen
3137 # first if we set CC to just the basename; use the full file name.
3138 shift
3139 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3144 CC=$ac_cv_prog_CC
3145 if test -n "$CC"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3147 $as_echo "$CC" >&6; }
3148 else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3155 if test -z "$CC"; then
3156 if test -n "$ac_tool_prefix"; then
3157 for ac_prog in cl.exe
3159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if test "${ac_cv_prog_CC+set}" = set; then :
3164 $as_echo_n "(cached) " >&6
3165 else
3166 if test -n "$CC"; then
3167 ac_cv_prog_CC="$CC" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3180 done
3181 done
3182 IFS=$as_save_IFS
3186 CC=$ac_cv_prog_CC
3187 if test -n "$CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3190 else
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3196 test -n "$CC" && break
3197 done
3199 if test -z "$CC"; then
3200 ac_ct_CC=$CC
3201 for ac_prog in cl.exe
3203 # Extract the first word of "$ac_prog", so it can be a program name with args.
3204 set dummy $ac_prog; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3208 $as_echo_n "(cached) " >&6
3209 else
3210 if test -n "$ac_ct_CC"; then
3211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3216 IFS=$as_save_IFS
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220 ac_cv_prog_ac_ct_CC="$ac_prog"
3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 break 2
3224 done
3225 done
3226 IFS=$as_save_IFS
3230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3231 if test -n "$ac_ct_CC"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3233 $as_echo "$ac_ct_CC" >&6; }
3234 else
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3240 test -n "$ac_ct_CC" && break
3241 done
3243 if test "x$ac_ct_CC" = x; then
3244 CC=""
3245 else
3246 case $cross_compiling:$ac_tool_warned in
3247 yes:)
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3250 ac_tool_warned=yes ;;
3251 esac
3252 CC=$ac_ct_CC
3259 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261 as_fn_error "no acceptable C compiler found in \$PATH
3262 See \`config.log' for more details." "$LINENO" 5; }
3264 # Provide some information about the compiler.
3265 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3266 set X $ac_compile
3267 ac_compiler=$2
3268 for ac_option in --version -v -V -qversion; do
3269 { { ac_try="$ac_compiler $ac_option >&5"
3270 case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3277 ac_status=$?
3278 if test -s conftest.err; then
3279 sed '10a\
3280 ... rest of stderr output deleted ...
3281 10q' conftest.err >conftest.er1
3282 cat conftest.er1 >&5
3283 rm -f conftest.er1 conftest.err
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }
3287 done
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3293 main ()
3297 return 0;
3299 _ACEOF
3300 ac_clean_files_save=$ac_clean_files
3301 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3302 # Try to create an executable without -o first, disregard a.out.
3303 # It will help us diagnose broken compilers, and finding out an intuition
3304 # of exeext.
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3306 $as_echo_n "checking for C compiler default output file name... " >&6; }
3307 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3309 # The possible output files:
3310 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3312 ac_rmfiles=
3313 for ac_file in $ac_files
3315 case $ac_file in
3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3317 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3318 esac
3319 done
3320 rm -f $ac_rmfiles
3322 if { { ac_try="$ac_link_default"
3323 case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326 esac
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_link_default") 2>&5
3330 ac_status=$?
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }; then :
3333 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3334 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3335 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3336 # so that the user can short-circuit this test for compilers unknown to
3337 # Autoconf.
3338 for ac_file in $ac_files ''
3340 test -f "$ac_file" || continue
3341 case $ac_file in
3342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3344 [ab].out )
3345 # We found the default executable, but exeext='' is most
3346 # certainly right.
3347 break;;
3348 *.* )
3349 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3350 then :; else
3351 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353 # We set ac_cv_exeext here because the later test for it is not
3354 # safe: cross compilers may not add the suffix if given an `-o'
3355 # argument, so we may need to know it at that point already.
3356 # Even if this section looks crufty: it has the advantage of
3357 # actually working.
3358 break;;
3360 break;;
3361 esac
3362 done
3363 test "$ac_cv_exeext" = no && ac_cv_exeext=
3365 else
3366 ac_file=''
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3369 $as_echo "$ac_file" >&6; }
3370 if test -z "$ac_file"; then :
3371 $as_echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 { as_fn_set_status 77
3377 as_fn_error "C compiler cannot create executables
3378 See \`config.log' for more details." "$LINENO" 5; }; }
3380 ac_exeext=$ac_cv_exeext
3382 # Check that the compiler produces executables we can run. If not, either
3383 # the compiler is broken, or we cross compile.
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3385 $as_echo_n "checking whether the C compiler works... " >&6; }
3386 # If not cross compiling, check that we can run a simple program.
3387 if test "$cross_compiling" != yes; then
3388 if { ac_try='./$ac_file'
3389 { { case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392 esac
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_try") 2>&5
3396 ac_status=$?
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }; }; then
3399 cross_compiling=no
3400 else
3401 if test "$cross_compiling" = maybe; then
3402 cross_compiling=yes
3403 else
3404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3406 as_fn_error "cannot run C compiled programs.
3407 If you meant to cross compile, use \`--host'.
3408 See \`config.log' for more details." "$LINENO" 5; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3413 $as_echo "yes" >&6; }
3415 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3416 ac_clean_files=$ac_clean_files_save
3417 # Check that the compiler produces executables we can run. If not, either
3418 # the compiler is broken, or we cross compile.
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3420 $as_echo_n "checking whether we are cross compiling... " >&6; }
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3422 $as_echo "$cross_compiling" >&6; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3425 $as_echo_n "checking for suffix of executables... " >&6; }
3426 if { { ac_try="$ac_link"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_link") 2>&5
3434 ac_status=$?
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }; then :
3437 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3438 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3439 # work properly (i.e., refer to `conftest.exe'), while it won't with
3440 # `rm'.
3441 for ac_file in conftest.exe conftest conftest.*; do
3442 test -f "$ac_file" || continue
3443 case $ac_file in
3444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3445 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446 break;;
3447 * ) break;;
3448 esac
3449 done
3450 else
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error "cannot compute suffix of executables: cannot compile and link
3454 See \`config.log' for more details." "$LINENO" 5; }
3456 rm -f conftest$ac_cv_exeext
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3458 $as_echo "$ac_cv_exeext" >&6; }
3460 rm -f conftest.$ac_ext
3461 EXEEXT=$ac_cv_exeext
3462 ac_exeext=$EXEEXT
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3464 $as_echo_n "checking for suffix of object files... " >&6; }
3465 if test "${ac_cv_objext+set}" = set; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3472 main ()
3476 return 0;
3478 _ACEOF
3479 rm -f conftest.o conftest.obj
3480 if { { ac_try="$ac_compile"
3481 case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484 esac
3485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486 $as_echo "$ac_try_echo"; } >&5
3487 (eval "$ac_compile") 2>&5
3488 ac_status=$?
3489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490 test $ac_status = 0; }; then :
3491 for ac_file in conftest.o conftest.obj conftest.*; do
3492 test -f "$ac_file" || continue;
3493 case $ac_file in
3494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3495 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3496 break;;
3497 esac
3498 done
3499 else
3500 $as_echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505 as_fn_error "cannot compute suffix of object files: cannot compile
3506 See \`config.log' for more details." "$LINENO" 5; }
3508 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3511 $as_echo "$ac_cv_objext" >&6; }
3512 OBJEXT=$ac_cv_objext
3513 ac_objext=$OBJEXT
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3515 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3516 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3518 else
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3523 main ()
3525 #ifndef __GNUC__
3526 choke me
3527 #endif
3530 return 0;
3532 _ACEOF
3533 if ac_fn_c_try_compile "$LINENO"; then :
3534 ac_compiler_gnu=yes
3535 else
3536 ac_compiler_gnu=no
3538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3543 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3544 if test $ac_compiler_gnu = yes; then
3545 GCC=yes
3546 else
3547 GCC=
3549 ac_test_CFLAGS=${CFLAGS+set}
3550 ac_save_CFLAGS=$CFLAGS
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3552 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3553 if test "${ac_cv_prog_cc_g+set}" = set; then :
3554 $as_echo_n "(cached) " >&6
3555 else
3556 ac_save_c_werror_flag=$ac_c_werror_flag
3557 ac_c_werror_flag=yes
3558 ac_cv_prog_cc_g=no
3559 CFLAGS="-g"
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3564 main ()
3568 return 0;
3570 _ACEOF
3571 if ac_fn_c_try_compile "$LINENO"; then :
3572 ac_cv_prog_cc_g=yes
3573 else
3574 CFLAGS=""
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3579 main ()
3583 return 0;
3585 _ACEOF
3586 if ac_fn_c_try_compile "$LINENO"; then :
3588 else
3589 ac_c_werror_flag=$ac_save_c_werror_flag
3590 CFLAGS="-g"
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3595 main ()
3599 return 0;
3601 _ACEOF
3602 if ac_fn_c_try_compile "$LINENO"; then :
3603 ac_cv_prog_cc_g=yes
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610 ac_c_werror_flag=$ac_save_c_werror_flag
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3613 $as_echo "$ac_cv_prog_cc_g" >&6; }
3614 if test "$ac_test_CFLAGS" = set; then
3615 CFLAGS=$ac_save_CFLAGS
3616 elif test $ac_cv_prog_cc_g = yes; then
3617 if test "$GCC" = yes; then
3618 CFLAGS="-g -O2"
3619 else
3620 CFLAGS="-g"
3622 else
3623 if test "$GCC" = yes; then
3624 CFLAGS="-O2"
3625 else
3626 CFLAGS=
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3630 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3631 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 ac_cv_prog_cc_c89=no
3635 ac_save_CC=$CC
3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h. */
3638 #include <stdarg.h>
3639 #include <stdio.h>
3640 #include <sys/types.h>
3641 #include <sys/stat.h>
3642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3643 struct buf { int x; };
3644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3645 static char *e (p, i)
3646 char **p;
3647 int i;
3649 return p[i];
3651 static char *f (char * (*g) (char **, int), char **p, ...)
3653 char *s;
3654 va_list v;
3655 va_start (v,p);
3656 s = g (p, va_arg (v,int));
3657 va_end (v);
3658 return s;
3661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3662 function prototypes and stuff, but not '\xHH' hex character constants.
3663 These don't provoke an error unfortunately, instead are silently treated
3664 as 'x'. The following induces an error, until -std is added to get
3665 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3666 array size at least. It's necessary to write '\x00'==0 to get something
3667 that's true only with -std. */
3668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3670 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3671 inside strings and character constants. */
3672 #define FOO(x) 'x'
3673 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3675 int test (int i, double x);
3676 struct s1 {int (*f) (int a);};
3677 struct s2 {int (*f) (double a);};
3678 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3679 int argc;
3680 char **argv;
3682 main ()
3684 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3686 return 0;
3688 _ACEOF
3689 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3690 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3692 CC="$ac_save_CC $ac_arg"
3693 if ac_fn_c_try_compile "$LINENO"; then :
3694 ac_cv_prog_cc_c89=$ac_arg
3696 rm -f core conftest.err conftest.$ac_objext
3697 test "x$ac_cv_prog_cc_c89" != "xno" && break
3698 done
3699 rm -f conftest.$ac_ext
3700 CC=$ac_save_CC
3703 # AC_CACHE_VAL
3704 case "x$ac_cv_prog_cc_c89" in
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3707 $as_echo "none needed" >&6; } ;;
3708 xno)
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3710 $as_echo "unsupported" >&6; } ;;
3712 CC="$CC $ac_cv_prog_cc_c89"
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3714 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3715 esac
3716 if test "x$ac_cv_prog_cc_c89" != xno; then :
3720 ac_ext=c
3721 ac_cpp='$CPP $CPPFLAGS'
3722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725 DEPDIR="${am__leading_dot}deps"
3727 ac_config_commands="$ac_config_commands depfiles"
3730 am_make=${MAKE-make}
3731 cat > confinc << 'END'
3732 am__doit:
3733 @echo this is the am__doit target
3734 .PHONY: am__doit
3736 # If we don't find an include directive, just comment out the code.
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3738 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3739 am__include="#"
3740 am__quote=
3741 _am_result=none
3742 # First try GNU make style include.
3743 echo "include confinc" > confmf
3744 # Ignore all kinds of additional output from `make'.
3745 case `$am_make -s -f confmf 2> /dev/null` in #(
3746 *the\ am__doit\ target*)
3747 am__include=include
3748 am__quote=
3749 _am_result=GNU
3751 esac
3752 # Now try BSD make style include.
3753 if test "$am__include" = "#"; then
3754 echo '.include "confinc"' > confmf
3755 case `$am_make -s -f confmf 2> /dev/null` in #(
3756 *the\ am__doit\ target*)
3757 am__include=.include
3758 am__quote="\""
3759 _am_result=BSD
3761 esac
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3766 $as_echo "$_am_result" >&6; }
3767 rm -f confinc confmf
3769 # Check whether --enable-dependency-tracking was given.
3770 if test "${enable_dependency_tracking+set}" = set; then :
3771 enableval=$enable_dependency_tracking;
3774 if test "x$enable_dependency_tracking" != xno; then
3775 am_depcomp="$ac_aux_dir/depcomp"
3776 AMDEPBACKSLASH='\'
3777 am__nodep='_no'
3779 if test "x$enable_dependency_tracking" != xno; then
3780 AMDEP_TRUE=
3781 AMDEP_FALSE='#'
3782 else
3783 AMDEP_TRUE='#'
3784 AMDEP_FALSE=
3789 depcc="$CC" am_compiler_list=
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3792 $as_echo_n "checking dependency style of $depcc... " >&6; }
3793 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3794 $as_echo_n "(cached) " >&6
3795 else
3796 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3797 # We make a subdir and do the tests there. Otherwise we can end up
3798 # making bogus files that we don't know about and never remove. For
3799 # instance it was reported that on HP-UX the gcc test will end up
3800 # making a dummy file named `D' -- because `-MD' means `put the output
3801 # in D'.
3802 rm -rf conftest.dir
3803 mkdir conftest.dir
3804 # Copy depcomp to subdir because otherwise we won't find it if we're
3805 # using a relative directory.
3806 cp "$am_depcomp" conftest.dir
3807 cd conftest.dir
3808 # We will build objects and dependencies in a subdirectory because
3809 # it helps to detect inapplicable dependency modes. For instance
3810 # both Tru64's cc and ICC support -MD to output dependencies as a
3811 # side effect of compilation, but ICC will put the dependencies in
3812 # the current directory while Tru64 will put them in the object
3813 # directory.
3814 mkdir sub
3816 am_cv_CC_dependencies_compiler_type=none
3817 if test "$am_compiler_list" = ""; then
3818 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3820 am__universal=false
3821 case " $depcc " in #(
3822 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3823 esac
3825 for depmode in $am_compiler_list; do
3826 # Setup a source with many dependencies, because some compilers
3827 # like to wrap large dependency lists on column 80 (with \), and
3828 # we should not choose a depcomp mode which is confused by this.
3830 # We need to recreate these files for each test, as the compiler may
3831 # overwrite some of them when testing with obscure command lines.
3832 # This happens at least with the AIX C compiler.
3833 : > sub/conftest.c
3834 for i in 1 2 3 4 5 6; do
3835 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3836 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3837 # Solaris 8's {/usr,}/bin/sh.
3838 touch sub/conftst$i.h
3839 done
3840 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3842 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3843 # mode. It turns out that the SunPro C++ compiler does not properly
3844 # handle `-M -o', and we need to detect this. Also, some Intel
3845 # versions had trouble with output in subdirs
3846 am__obj=sub/conftest.${OBJEXT-o}
3847 am__minus_obj="-o $am__obj"
3848 case $depmode in
3849 gcc)
3850 # This depmode causes a compiler race in universal mode.
3851 test "$am__universal" = false || continue
3853 nosideeffect)
3854 # after this tag, mechanisms are not by side-effect, so they'll
3855 # only be used when explicitly requested
3856 if test "x$enable_dependency_tracking" = xyes; then
3857 continue
3858 else
3859 break
3862 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3863 # This compiler won't grok `-c -o', but also, the minuso test has
3864 # not run yet. These depmodes are late enough in the game, and
3865 # so weak that their functioning should not be impacted.
3866 am__obj=conftest.${OBJEXT-o}
3867 am__minus_obj=
3869 none) break ;;
3870 esac
3871 if depmode=$depmode \
3872 source=sub/conftest.c object=$am__obj \
3873 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3874 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3875 >/dev/null 2>conftest.err &&
3876 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3877 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3878 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3879 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3880 # icc doesn't choke on unknown options, it will just issue warnings
3881 # or remarks (even with -Werror). So we grep stderr for any message
3882 # that says an option was ignored or not supported.
3883 # When given -MP, icc 7.0 and 7.1 complain thusly:
3884 # icc: Command line warning: ignoring option '-M'; no argument required
3885 # The diagnosis changed in icc 8.0:
3886 # icc: Command line remark: option '-MP' not supported
3887 if (grep 'ignoring option' conftest.err ||
3888 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3889 am_cv_CC_dependencies_compiler_type=$depmode
3890 break
3893 done
3895 cd ..
3896 rm -rf conftest.dir
3897 else
3898 am_cv_CC_dependencies_compiler_type=none
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3903 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3904 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3907 test "x$enable_dependency_tracking" != xno \
3908 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3909 am__fastdepCC_TRUE=
3910 am__fastdepCC_FALSE='#'
3911 else
3912 am__fastdepCC_TRUE='#'
3913 am__fastdepCC_FALSE=
3917 ac_ext=cpp
3918 ac_cpp='$CXXCPP $CPPFLAGS'
3919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3922 if test -z "$CXX"; then
3923 if test -n "$CCC"; then
3924 CXX=$CCC
3925 else
3926 if test -n "$ac_tool_prefix"; then
3927 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3930 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932 $as_echo_n "checking for $ac_word... " >&6; }
3933 if test "${ac_cv_prog_CXX+set}" = set; then :
3934 $as_echo_n "(cached) " >&6
3935 else
3936 if test -n "$CXX"; then
3937 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3938 else
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in $PATH
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3946 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 break 2
3950 done
3951 done
3952 IFS=$as_save_IFS
3956 CXX=$ac_cv_prog_CXX
3957 if test -n "$CXX"; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3959 $as_echo "$CXX" >&6; }
3960 else
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962 $as_echo "no" >&6; }
3966 test -n "$CXX" && break
3967 done
3969 if test -z "$CXX"; then
3970 ac_ct_CXX=$CXX
3971 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3973 # Extract the first word of "$ac_prog", so it can be a program name with args.
3974 set dummy $ac_prog; ac_word=$2
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976 $as_echo_n "checking for $ac_word... " >&6; }
3977 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 if test -n "$ac_ct_CXX"; then
3981 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3982 else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3990 ac_cv_prog_ac_ct_CXX="$ac_prog"
3991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 break 2
3994 done
3995 done
3996 IFS=$as_save_IFS
4000 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4001 if test -n "$ac_ct_CXX"; then
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4003 $as_echo "$ac_ct_CXX" >&6; }
4004 else
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 $as_echo "no" >&6; }
4010 test -n "$ac_ct_CXX" && break
4011 done
4013 if test "x$ac_ct_CXX" = x; then
4014 CXX="g++"
4015 else
4016 case $cross_compiling:$ac_tool_warned in
4017 yes:)
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4020 ac_tool_warned=yes ;;
4021 esac
4022 CXX=$ac_ct_CXX
4028 # Provide some information about the compiler.
4029 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4030 set X $ac_compile
4031 ac_compiler=$2
4032 for ac_option in --version -v -V -qversion; do
4033 { { ac_try="$ac_compiler $ac_option >&5"
4034 case "(($ac_try" in
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4037 esac
4038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039 $as_echo "$ac_try_echo"; } >&5
4040 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4041 ac_status=$?
4042 if test -s conftest.err; then
4043 sed '10a\
4044 ... rest of stderr output deleted ...
4045 10q' conftest.err >conftest.er1
4046 cat conftest.er1 >&5
4047 rm -f conftest.er1 conftest.err
4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050 test $ac_status = 0; }
4051 done
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4054 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4055 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4056 $as_echo_n "(cached) " >&6
4057 else
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4062 main ()
4064 #ifndef __GNUC__
4065 choke me
4066 #endif
4069 return 0;
4071 _ACEOF
4072 if ac_fn_cxx_try_compile "$LINENO"; then :
4073 ac_compiler_gnu=yes
4074 else
4075 ac_compiler_gnu=no
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4082 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4083 if test $ac_compiler_gnu = yes; then
4084 GXX=yes
4085 else
4086 GXX=
4088 ac_test_CXXFLAGS=${CXXFLAGS+set}
4089 ac_save_CXXFLAGS=$CXXFLAGS
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4091 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4092 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4093 $as_echo_n "(cached) " >&6
4094 else
4095 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4096 ac_cxx_werror_flag=yes
4097 ac_cv_prog_cxx_g=no
4098 CXXFLAGS="-g"
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4103 main ()
4107 return 0;
4109 _ACEOF
4110 if ac_fn_cxx_try_compile "$LINENO"; then :
4111 ac_cv_prog_cxx_g=yes
4112 else
4113 CXXFLAGS=""
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4118 main ()
4122 return 0;
4124 _ACEOF
4125 if ac_fn_cxx_try_compile "$LINENO"; then :
4127 else
4128 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4129 CXXFLAGS="-g"
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4134 main ()
4138 return 0;
4140 _ACEOF
4141 if ac_fn_cxx_try_compile "$LINENO"; then :
4142 ac_cv_prog_cxx_g=yes
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4152 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4153 if test "$ac_test_CXXFLAGS" = set; then
4154 CXXFLAGS=$ac_save_CXXFLAGS
4155 elif test $ac_cv_prog_cxx_g = yes; then
4156 if test "$GXX" = yes; then
4157 CXXFLAGS="-g -O2"
4158 else
4159 CXXFLAGS="-g"
4161 else
4162 if test "$GXX" = yes; then
4163 CXXFLAGS="-O2"
4164 else
4165 CXXFLAGS=
4168 ac_ext=c
4169 ac_cpp='$CPP $CPPFLAGS'
4170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4174 depcc="$CXX" am_compiler_list=
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4177 $as_echo_n "checking dependency style of $depcc... " >&6; }
4178 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4182 # We make a subdir and do the tests there. Otherwise we can end up
4183 # making bogus files that we don't know about and never remove. For
4184 # instance it was reported that on HP-UX the gcc test will end up
4185 # making a dummy file named `D' -- because `-MD' means `put the output
4186 # in D'.
4187 rm -rf conftest.dir
4188 mkdir conftest.dir
4189 # Copy depcomp to subdir because otherwise we won't find it if we're
4190 # using a relative directory.
4191 cp "$am_depcomp" conftest.dir
4192 cd conftest.dir
4193 # We will build objects and dependencies in a subdirectory because
4194 # it helps to detect inapplicable dependency modes. For instance
4195 # both Tru64's cc and ICC support -MD to output dependencies as a
4196 # side effect of compilation, but ICC will put the dependencies in
4197 # the current directory while Tru64 will put them in the object
4198 # directory.
4199 mkdir sub
4201 am_cv_CXX_dependencies_compiler_type=none
4202 if test "$am_compiler_list" = ""; then
4203 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4205 am__universal=false
4206 case " $depcc " in #(
4207 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4208 esac
4210 for depmode in $am_compiler_list; do
4211 # Setup a source with many dependencies, because some compilers
4212 # like to wrap large dependency lists on column 80 (with \), and
4213 # we should not choose a depcomp mode which is confused by this.
4215 # We need to recreate these files for each test, as the compiler may
4216 # overwrite some of them when testing with obscure command lines.
4217 # This happens at least with the AIX C compiler.
4218 : > sub/conftest.c
4219 for i in 1 2 3 4 5 6; do
4220 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4221 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4222 # Solaris 8's {/usr,}/bin/sh.
4223 touch sub/conftst$i.h
4224 done
4225 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4227 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4228 # mode. It turns out that the SunPro C++ compiler does not properly
4229 # handle `-M -o', and we need to detect this. Also, some Intel
4230 # versions had trouble with output in subdirs
4231 am__obj=sub/conftest.${OBJEXT-o}
4232 am__minus_obj="-o $am__obj"
4233 case $depmode in
4234 gcc)
4235 # This depmode causes a compiler race in universal mode.
4236 test "$am__universal" = false || continue
4238 nosideeffect)
4239 # after this tag, mechanisms are not by side-effect, so they'll
4240 # only be used when explicitly requested
4241 if test "x$enable_dependency_tracking" = xyes; then
4242 continue
4243 else
4244 break
4247 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4248 # This compiler won't grok `-c -o', but also, the minuso test has
4249 # not run yet. These depmodes are late enough in the game, and
4250 # so weak that their functioning should not be impacted.
4251 am__obj=conftest.${OBJEXT-o}
4252 am__minus_obj=
4254 none) break ;;
4255 esac
4256 if depmode=$depmode \
4257 source=sub/conftest.c object=$am__obj \
4258 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4259 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4260 >/dev/null 2>conftest.err &&
4261 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4262 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4263 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4264 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4265 # icc doesn't choke on unknown options, it will just issue warnings
4266 # or remarks (even with -Werror). So we grep stderr for any message
4267 # that says an option was ignored or not supported.
4268 # When given -MP, icc 7.0 and 7.1 complain thusly:
4269 # icc: Command line warning: ignoring option '-M'; no argument required
4270 # The diagnosis changed in icc 8.0:
4271 # icc: Command line remark: option '-MP' not supported
4272 if (grep 'ignoring option' conftest.err ||
4273 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4274 am_cv_CXX_dependencies_compiler_type=$depmode
4275 break
4278 done
4280 cd ..
4281 rm -rf conftest.dir
4282 else
4283 am_cv_CXX_dependencies_compiler_type=none
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4288 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4289 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4292 test "x$enable_dependency_tracking" != xno \
4293 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4294 am__fastdepCXX_TRUE=
4295 am__fastdepCXX_FALSE='#'
4296 else
4297 am__fastdepCXX_TRUE='#'
4298 am__fastdepCXX_FALSE=
4302 ac_config_files="$ac_config_files Makefile liboffloadmic_host.spec liboffloadmic_target.spec"
4304 # Default to --enable-multilib
4305 # Check whether --enable-multilib was given.
4306 if test "${enable_multilib+set}" = set; then :
4307 enableval=$enable_multilib; case "$enableval" in
4308 yes) multilib=yes ;;
4309 no) multilib=no ;;
4310 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
4311 esac
4312 else
4313 multilib=yes
4317 # We may get other options which we leave undocumented:
4318 # --with-target-subdir, --with-multisrctop, --with-multisubdir
4319 # See config-ml.in if you want the gory details.
4321 if test "$srcdir" = "."; then
4322 if test "$with_target_subdir" != "."; then
4323 multi_basedir="$srcdir/$with_multisrctop../.."
4324 else
4325 multi_basedir="$srcdir/$with_multisrctop.."
4327 else
4328 multi_basedir="$srcdir/.."
4332 # Even if the default multilib is not a cross compilation,
4333 # it may be that some of the other multilibs are.
4334 if test $cross_compiling = no && test $multilib = yes \
4335 && test "x${with_multisubdir}" != x ; then
4336 cross_compiling=maybe
4339 ac_config_commands="$ac_config_commands default-1"
4343 subdirs="$subdirs plugin"
4346 ac_ext=c
4347 ac_cpp='$CPP $CPPFLAGS'
4348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4352 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4353 # On Suns, sometimes $CPP names a directory.
4354 if test -n "$CPP" && test -d "$CPP"; then
4355 CPP=
4357 if test -z "$CPP"; then
4358 if test "${ac_cv_prog_CPP+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 # Double quotes because CPP needs to be expanded
4362 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4364 ac_preproc_ok=false
4365 for ac_c_preproc_warn_flag in '' yes
4367 # Use a header file that comes with gcc, so configuring glibc
4368 # with a fresh cross-compiler works.
4369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4370 # <limits.h> exists even on freestanding compilers.
4371 # On the NeXT, cc -E runs the code through the compiler's parser,
4372 # not just through cpp. "Syntax error" is here to catch this case.
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4375 #ifdef __STDC__
4376 # include <limits.h>
4377 #else
4378 # include <assert.h>
4379 #endif
4380 Syntax error
4381 _ACEOF
4382 if ac_fn_c_try_cpp "$LINENO"; then :
4384 else
4385 # Broken: fails on valid input.
4386 continue
4388 rm -f conftest.err conftest.$ac_ext
4390 # OK, works on sane cases. Now check whether nonexistent headers
4391 # can be detected and how.
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4394 #include <ac_nonexistent.h>
4395 _ACEOF
4396 if ac_fn_c_try_cpp "$LINENO"; then :
4397 # Broken: success on invalid input.
4398 continue
4399 else
4400 # Passes both tests.
4401 ac_preproc_ok=:
4402 break
4404 rm -f conftest.err conftest.$ac_ext
4406 done
4407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4408 rm -f conftest.err conftest.$ac_ext
4409 if $ac_preproc_ok; then :
4410 break
4413 done
4414 ac_cv_prog_CPP=$CPP
4417 CPP=$ac_cv_prog_CPP
4418 else
4419 ac_cv_prog_CPP=$CPP
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4422 $as_echo "$CPP" >&6; }
4423 ac_preproc_ok=false
4424 for ac_c_preproc_warn_flag in '' yes
4426 # Use a header file that comes with gcc, so configuring glibc
4427 # with a fresh cross-compiler works.
4428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4429 # <limits.h> exists even on freestanding compilers.
4430 # On the NeXT, cc -E runs the code through the compiler's parser,
4431 # not just through cpp. "Syntax error" is here to catch this case.
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4434 #ifdef __STDC__
4435 # include <limits.h>
4436 #else
4437 # include <assert.h>
4438 #endif
4439 Syntax error
4440 _ACEOF
4441 if ac_fn_c_try_cpp "$LINENO"; then :
4443 else
4444 # Broken: fails on valid input.
4445 continue
4447 rm -f conftest.err conftest.$ac_ext
4449 # OK, works on sane cases. Now check whether nonexistent headers
4450 # can be detected and how.
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4453 #include <ac_nonexistent.h>
4454 _ACEOF
4455 if ac_fn_c_try_cpp "$LINENO"; then :
4456 # Broken: success on invalid input.
4457 continue
4458 else
4459 # Passes both tests.
4460 ac_preproc_ok=:
4461 break
4463 rm -f conftest.err conftest.$ac_ext
4465 done
4466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4467 rm -f conftest.err conftest.$ac_ext
4468 if $ac_preproc_ok; then :
4470 else
4471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4473 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4474 See \`config.log' for more details." "$LINENO" 5; }
4477 ac_ext=c
4478 ac_cpp='$CPP $CPPFLAGS'
4479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4485 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4486 if test "${ac_cv_path_GREP+set}" = set; then :
4487 $as_echo_n "(cached) " >&6
4488 else
4489 if test -z "$GREP"; then
4490 ac_path_GREP_found=false
4491 # Loop through the user's path and test for each of PROGNAME-LIST
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4495 IFS=$as_save_IFS
4496 test -z "$as_dir" && as_dir=.
4497 for ac_prog in grep ggrep; do
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4500 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4501 # Check for GNU ac_path_GREP and select it if it is found.
4502 # Check for GNU $ac_path_GREP
4503 case `"$ac_path_GREP" --version 2>&1` in
4504 *GNU*)
4505 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4507 ac_count=0
4508 $as_echo_n 0123456789 >"conftest.in"
4509 while :
4511 cat "conftest.in" "conftest.in" >"conftest.tmp"
4512 mv "conftest.tmp" "conftest.in"
4513 cp "conftest.in" "conftest.nl"
4514 $as_echo 'GREP' >> "conftest.nl"
4515 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4516 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4517 as_fn_arith $ac_count + 1 && ac_count=$as_val
4518 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4519 # Best one so far, save it but keep looking for a better one
4520 ac_cv_path_GREP="$ac_path_GREP"
4521 ac_path_GREP_max=$ac_count
4523 # 10*(2^10) chars as input seems more than enough
4524 test $ac_count -gt 10 && break
4525 done
4526 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4527 esac
4529 $ac_path_GREP_found && break 3
4530 done
4531 done
4532 done
4533 IFS=$as_save_IFS
4534 if test -z "$ac_cv_path_GREP"; then
4535 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4537 else
4538 ac_cv_path_GREP=$GREP
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4543 $as_echo "$ac_cv_path_GREP" >&6; }
4544 GREP="$ac_cv_path_GREP"
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4548 $as_echo_n "checking for egrep... " >&6; }
4549 if test "${ac_cv_path_EGREP+set}" = set; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4553 then ac_cv_path_EGREP="$GREP -E"
4554 else
4555 if test -z "$EGREP"; then
4556 ac_path_EGREP_found=false
4557 # Loop through the user's path and test for each of PROGNAME-LIST
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_prog in egrep; do
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4566 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4567 # Check for GNU ac_path_EGREP and select it if it is found.
4568 # Check for GNU $ac_path_EGREP
4569 case `"$ac_path_EGREP" --version 2>&1` in
4570 *GNU*)
4571 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4573 ac_count=0
4574 $as_echo_n 0123456789 >"conftest.in"
4575 while :
4577 cat "conftest.in" "conftest.in" >"conftest.tmp"
4578 mv "conftest.tmp" "conftest.in"
4579 cp "conftest.in" "conftest.nl"
4580 $as_echo 'EGREP' >> "conftest.nl"
4581 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4583 as_fn_arith $ac_count + 1 && ac_count=$as_val
4584 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4585 # Best one so far, save it but keep looking for a better one
4586 ac_cv_path_EGREP="$ac_path_EGREP"
4587 ac_path_EGREP_max=$ac_count
4589 # 10*(2^10) chars as input seems more than enough
4590 test $ac_count -gt 10 && break
4591 done
4592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4593 esac
4595 $ac_path_EGREP_found && break 3
4596 done
4597 done
4598 done
4599 IFS=$as_save_IFS
4600 if test -z "$ac_cv_path_EGREP"; then
4601 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4603 else
4604 ac_cv_path_EGREP=$EGREP
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4610 $as_echo "$ac_cv_path_EGREP" >&6; }
4611 EGREP="$ac_cv_path_EGREP"
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4615 $as_echo_n "checking for ANSI C header files... " >&6; }
4616 if test "${ac_cv_header_stdc+set}" = set; then :
4617 $as_echo_n "(cached) " >&6
4618 else
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4621 #include <stdlib.h>
4622 #include <stdarg.h>
4623 #include <string.h>
4624 #include <float.h>
4627 main ()
4631 return 0;
4633 _ACEOF
4634 if ac_fn_c_try_compile "$LINENO"; then :
4635 ac_cv_header_stdc=yes
4636 else
4637 ac_cv_header_stdc=no
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 if test $ac_cv_header_stdc = yes; then
4642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4645 #include <string.h>
4647 _ACEOF
4648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4649 $EGREP "memchr" >/dev/null 2>&1; then :
4651 else
4652 ac_cv_header_stdc=no
4654 rm -f conftest*
4658 if test $ac_cv_header_stdc = yes; then
4659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662 #include <stdlib.h>
4664 _ACEOF
4665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4666 $EGREP "free" >/dev/null 2>&1; then :
4668 else
4669 ac_cv_header_stdc=no
4671 rm -f conftest*
4675 if test $ac_cv_header_stdc = yes; then
4676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4677 if test "$cross_compiling" = yes; then :
4679 else
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4682 #include <ctype.h>
4683 #include <stdlib.h>
4684 #if ((' ' & 0x0FF) == 0x020)
4685 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4686 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4687 #else
4688 # define ISLOWER(c) \
4689 (('a' <= (c) && (c) <= 'i') \
4690 || ('j' <= (c) && (c) <= 'r') \
4691 || ('s' <= (c) && (c) <= 'z'))
4692 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4693 #endif
4695 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4697 main ()
4699 int i;
4700 for (i = 0; i < 256; i++)
4701 if (XOR (islower (i), ISLOWER (i))
4702 || toupper (i) != TOUPPER (i))
4703 return 2;
4704 return 0;
4706 _ACEOF
4707 if ac_fn_c_try_run "$LINENO"; then :
4709 else
4710 ac_cv_header_stdc=no
4712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4713 conftest.$ac_objext conftest.beam conftest.$ac_ext
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4719 $as_echo "$ac_cv_header_stdc" >&6; }
4720 if test $ac_cv_header_stdc = yes; then
4722 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4726 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4727 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4728 inttypes.h stdint.h unistd.h
4729 do :
4730 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4731 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4733 eval as_val=\$$as_ac_Header
4734 if test "x$as_val" = x""yes; then :
4735 cat >>confdefs.h <<_ACEOF
4736 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4737 _ACEOF
4741 done
4744 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4745 # for constant arguments. Useless!
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4747 $as_echo_n "checking for working alloca.h... " >&6; }
4748 if test "${ac_cv_working_alloca_h+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4753 #include <alloca.h>
4755 main ()
4757 char *p = (char *) alloca (2 * sizeof (int));
4758 if (p) return 0;
4760 return 0;
4762 _ACEOF
4763 if ac_fn_c_try_link "$LINENO"; then :
4764 ac_cv_working_alloca_h=yes
4765 else
4766 ac_cv_working_alloca_h=no
4768 rm -f core conftest.err conftest.$ac_objext \
4769 conftest$ac_exeext conftest.$ac_ext
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4772 $as_echo "$ac_cv_working_alloca_h" >&6; }
4773 if test $ac_cv_working_alloca_h = yes; then
4775 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4780 $as_echo_n "checking for alloca... " >&6; }
4781 if test "${ac_cv_func_alloca_works+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4786 #ifdef __GNUC__
4787 # define alloca __builtin_alloca
4788 #else
4789 # ifdef _MSC_VER
4790 # include <malloc.h>
4791 # define alloca _alloca
4792 # else
4793 # ifdef HAVE_ALLOCA_H
4794 # include <alloca.h>
4795 # else
4796 # ifdef _AIX
4797 #pragma alloca
4798 # else
4799 # ifndef alloca /* predefined by HP cc +Olibcalls */
4800 char *alloca ();
4801 # endif
4802 # endif
4803 # endif
4804 # endif
4805 #endif
4808 main ()
4810 char *p = (char *) alloca (1);
4811 if (p) return 0;
4813 return 0;
4815 _ACEOF
4816 if ac_fn_c_try_link "$LINENO"; then :
4817 ac_cv_func_alloca_works=yes
4818 else
4819 ac_cv_func_alloca_works=no
4821 rm -f core conftest.err conftest.$ac_objext \
4822 conftest$ac_exeext conftest.$ac_ext
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4825 $as_echo "$ac_cv_func_alloca_works" >&6; }
4827 if test $ac_cv_func_alloca_works = yes; then
4829 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4831 else
4832 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4833 # that cause trouble. Some versions do not even contain alloca or
4834 # contain a buggy version. If you still want to use their alloca,
4835 # use ar to extract alloca.o from them instead of compiling alloca.c.
4837 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4839 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4843 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4844 if test "${ac_cv_os_cray+set}" = set; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849 #if defined CRAY && ! defined CRAY2
4850 webecray
4851 #else
4852 wenotbecray
4853 #endif
4855 _ACEOF
4856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4857 $EGREP "webecray" >/dev/null 2>&1; then :
4858 ac_cv_os_cray=yes
4859 else
4860 ac_cv_os_cray=no
4862 rm -f conftest*
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4866 $as_echo "$ac_cv_os_cray" >&6; }
4867 if test $ac_cv_os_cray = yes; then
4868 for ac_func in _getb67 GETB67 getb67; do
4869 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4870 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4871 eval as_val=\$$as_ac_var
4872 if test "x$as_val" = x""yes; then :
4874 cat >>confdefs.h <<_ACEOF
4875 #define CRAY_STACKSEG_END $ac_func
4876 _ACEOF
4878 break
4881 done
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4885 $as_echo_n "checking stack direction for C alloca... " >&6; }
4886 if test "${ac_cv_c_stack_direction+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 if test "$cross_compiling" = yes; then :
4890 ac_cv_c_stack_direction=0
4891 else
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4894 $ac_includes_default
4896 find_stack_direction ()
4898 static char *addr = 0;
4899 auto char dummy;
4900 if (addr == 0)
4902 addr = &dummy;
4903 return find_stack_direction ();
4905 else
4906 return (&dummy > addr) ? 1 : -1;
4910 main ()
4912 return find_stack_direction () < 0;
4914 _ACEOF
4915 if ac_fn_c_try_run "$LINENO"; then :
4916 ac_cv_c_stack_direction=1
4917 else
4918 ac_cv_c_stack_direction=-1
4920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4921 conftest.$ac_objext conftest.beam conftest.$ac_ext
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4926 $as_echo "$ac_cv_c_stack_direction" >&6; }
4927 cat >>confdefs.h <<_ACEOF
4928 #define STACK_DIRECTION $ac_cv_c_stack_direction
4929 _ACEOF
4934 for ac_header in mm_malloc.h
4935 do :
4936 ac_fn_c_check_header_mongrel "$LINENO" "mm_malloc.h" "ac_cv_header_mm_malloc_h" "$ac_includes_default"
4937 if test "x$ac_cv_header_mm_malloc_h" = x""yes; then :
4938 cat >>confdefs.h <<_ACEOF
4939 #define HAVE_MM_MALLOC_H 1
4940 _ACEOF
4942 else
4943 as_fn_error "\"Couldn't find mm_malloc.h\"" "$LINENO" 5
4946 done
4948 for ac_func in __secure_getenv secure_getenv
4949 do :
4950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4951 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4952 eval as_val=\$$as_ac_var
4953 if test "x$as_val" = x""yes; then :
4954 cat >>confdefs.h <<_ACEOF
4955 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4956 _ACEOF
4959 done
4962 # Get target configure.
4963 . ${srcdir}/configure.tgt
4964 if test -n "$UNSUPPORTED"; then
4965 as_fn_error "Configuration ${target} is unsupported" "$LINENO" 5
4968 if test "${multilib}" = "yes"; then
4969 multilib_arg="--enable-multilib"
4970 else
4971 multilib_arg=
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
4975 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
4976 # Check whether --enable-version-specific-runtime-libs was given.
4977 if test "${enable_version_specific_runtime_libs+set}" = set; then :
4978 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4979 yes) enable_version_specific_runtime_libs=yes ;;
4980 no) enable_version_specific_runtime_libs=no ;;
4981 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
4982 esac
4983 else
4984 enable_version_specific_runtime_libs=no
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
4988 $as_echo "$enable_version_specific_runtime_libs" >&6; }
4990 # Make sure liboffloadmic is enabled
4991 case "$enable_liboffloadmic" in
4992 host | target)
4995 as_fn_error "Liboffloadmic is disabled" "$LINENO" 5 ;;
4996 esac
4997 if test x"$enable_liboffloadmic" = xhost; then
4998 LIBOFFLOADMIC_HOST_TRUE=
4999 LIBOFFLOADMIC_HOST_FALSE='#'
5000 else
5001 LIBOFFLOADMIC_HOST_TRUE='#'
5002 LIBOFFLOADMIC_HOST_FALSE=
5006 # Calculate toolexeclibdir.
5007 # Also toolexecdir, though it's only used in toolexeclibdir.
5008 case ${enable_version_specific_runtime_libs} in
5009 yes)
5010 # Need the gcc compiler version to know where to install libraries
5011 # and header files if --enable-version-specific-runtime-libs option
5012 # is selected.
5013 toolexecdir='$(libdir)/gcc/$(target_alias)'
5014 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5017 if test -n "$with_cross_host" &&
5018 test x"$with_cross_host" != x"no"; then
5019 # Install a library built with a cross compiler in tooldir, not libdir.
5020 toolexecdir='$(exec_prefix)/$(target_alias)'
5021 toolexeclibdir='$(toolexecdir)/lib'
5022 else
5023 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5024 toolexeclibdir='$(libdir)'
5026 multi_os_directory=`$CC -print-multi-os-directory`
5027 case $multi_os_directory in
5028 .) ;; # Avoid trailing /.
5029 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5030 esac
5032 esac
5034 enable_dlopen=yes
5038 case `pwd` in
5039 *\ * | *\ *)
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5041 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5042 esac
5046 macro_version='2.2.7a'
5047 macro_revision='1.3134'
5061 ltmain="$ac_aux_dir/ltmain.sh"
5063 # Backslashify metacharacters that are still active within
5064 # double-quoted strings.
5065 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5067 # Same as above, but do not quote variable references.
5068 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5070 # Sed substitution to delay expansion of an escaped shell variable in a
5071 # double_quote_subst'ed string.
5072 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5074 # Sed substitution to delay expansion of an escaped single quote.
5075 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5077 # Sed substitution to avoid accidental globbing in evaled expressions
5078 no_glob_subst='s/\*/\\\*/g'
5080 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5081 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5082 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5085 $as_echo_n "checking how to print strings... " >&6; }
5086 # Test print first, because it will be a builtin if present.
5087 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5088 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5089 ECHO='print -r --'
5090 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5091 ECHO='printf %s\n'
5092 else
5093 # Use this function as a fallback that always works.
5094 func_fallback_echo ()
5096 eval 'cat <<_LTECHO_EOF
5098 _LTECHO_EOF'
5100 ECHO='func_fallback_echo'
5103 # func_echo_all arg...
5104 # Invoke $ECHO with all args, space-separated.
5105 func_echo_all ()
5107 $ECHO ""
5110 case "$ECHO" in
5111 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5112 $as_echo "printf" >&6; } ;;
5113 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5114 $as_echo "print -r" >&6; } ;;
5115 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5116 $as_echo "cat" >&6; } ;;
5117 esac
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5133 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5134 if test "${ac_cv_path_SED+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5138 for ac_i in 1 2 3 4 5 6 7; do
5139 ac_script="$ac_script$as_nl$ac_script"
5140 done
5141 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5142 { ac_script=; unset ac_script;}
5143 if test -z "$SED"; then
5144 ac_path_SED_found=false
5145 # Loop through the user's path and test for each of PROGNAME-LIST
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_prog in sed gsed; do
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5154 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5155 # Check for GNU ac_path_SED and select it if it is found.
5156 # Check for GNU $ac_path_SED
5157 case `"$ac_path_SED" --version 2>&1` in
5158 *GNU*)
5159 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5161 ac_count=0
5162 $as_echo_n 0123456789 >"conftest.in"
5163 while :
5165 cat "conftest.in" "conftest.in" >"conftest.tmp"
5166 mv "conftest.tmp" "conftest.in"
5167 cp "conftest.in" "conftest.nl"
5168 $as_echo '' >> "conftest.nl"
5169 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5171 as_fn_arith $ac_count + 1 && ac_count=$as_val
5172 if test $ac_count -gt ${ac_path_SED_max-0}; then
5173 # Best one so far, save it but keep looking for a better one
5174 ac_cv_path_SED="$ac_path_SED"
5175 ac_path_SED_max=$ac_count
5177 # 10*(2^10) chars as input seems more than enough
5178 test $ac_count -gt 10 && break
5179 done
5180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5181 esac
5183 $ac_path_SED_found && break 3
5184 done
5185 done
5186 done
5187 IFS=$as_save_IFS
5188 if test -z "$ac_cv_path_SED"; then
5189 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5191 else
5192 ac_cv_path_SED=$SED
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5197 $as_echo "$ac_cv_path_SED" >&6; }
5198 SED="$ac_cv_path_SED"
5199 rm -f conftest.sed
5201 test -z "$SED" && SED=sed
5202 Xsed="$SED -e 1s/^X//"
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5215 $as_echo_n "checking for fgrep... " >&6; }
5216 if test "${ac_cv_path_FGREP+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5220 then ac_cv_path_FGREP="$GREP -F"
5221 else
5222 if test -z "$FGREP"; then
5223 ac_path_FGREP_found=false
5224 # Loop through the user's path and test for each of PROGNAME-LIST
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_prog in fgrep; do
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5233 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5234 # Check for GNU ac_path_FGREP and select it if it is found.
5235 # Check for GNU $ac_path_FGREP
5236 case `"$ac_path_FGREP" --version 2>&1` in
5237 *GNU*)
5238 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5240 ac_count=0
5241 $as_echo_n 0123456789 >"conftest.in"
5242 while :
5244 cat "conftest.in" "conftest.in" >"conftest.tmp"
5245 mv "conftest.tmp" "conftest.in"
5246 cp "conftest.in" "conftest.nl"
5247 $as_echo 'FGREP' >> "conftest.nl"
5248 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5250 as_fn_arith $ac_count + 1 && ac_count=$as_val
5251 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5252 # Best one so far, save it but keep looking for a better one
5253 ac_cv_path_FGREP="$ac_path_FGREP"
5254 ac_path_FGREP_max=$ac_count
5256 # 10*(2^10) chars as input seems more than enough
5257 test $ac_count -gt 10 && break
5258 done
5259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5260 esac
5262 $ac_path_FGREP_found && break 3
5263 done
5264 done
5265 done
5266 IFS=$as_save_IFS
5267 if test -z "$ac_cv_path_FGREP"; then
5268 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5270 else
5271 ac_cv_path_FGREP=$FGREP
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5277 $as_echo "$ac_cv_path_FGREP" >&6; }
5278 FGREP="$ac_cv_path_FGREP"
5281 test -z "$GREP" && GREP=grep
5301 # Check whether --with-gnu-ld was given.
5302 if test "${with_gnu_ld+set}" = set; then :
5303 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5304 else
5305 with_gnu_ld=no
5308 ac_prog=ld
5309 if test "$GCC" = yes; then
5310 # Check if gcc -print-prog-name=ld gives a path.
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5312 $as_echo_n "checking for ld used by $CC... " >&6; }
5313 case $host in
5314 *-*-mingw*)
5315 # gcc leaves a trailing carriage return which upsets mingw
5316 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5318 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5319 esac
5320 case $ac_prog in
5321 # Accept absolute paths.
5322 [\\/]* | ?:[\\/]*)
5323 re_direlt='/[^/][^/]*/\.\./'
5324 # Canonicalize the pathname of ld
5325 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5326 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5327 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5328 done
5329 test -z "$LD" && LD="$ac_prog"
5332 # If it fails, then pretend we aren't using GCC.
5333 ac_prog=ld
5336 # If it is relative, then search for the first ld in PATH.
5337 with_gnu_ld=unknown
5339 esac
5340 elif test "$with_gnu_ld" = yes; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5342 $as_echo_n "checking for GNU ld... " >&6; }
5343 else
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5345 $as_echo_n "checking for non-GNU ld... " >&6; }
5347 if test "${lt_cv_path_LD+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 if test -z "$LD"; then
5351 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5352 for ac_dir in $PATH; do
5353 IFS="$lt_save_ifs"
5354 test -z "$ac_dir" && ac_dir=.
5355 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5356 lt_cv_path_LD="$ac_dir/$ac_prog"
5357 # Check to see if the program is GNU ld. I'd rather use --version,
5358 # but apparently some variants of GNU ld only accept -v.
5359 # Break only if it was the GNU/non-GNU ld that we prefer.
5360 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5361 *GNU* | *'with BFD'*)
5362 test "$with_gnu_ld" != no && break
5365 test "$with_gnu_ld" != yes && break
5367 esac
5369 done
5370 IFS="$lt_save_ifs"
5371 else
5372 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5376 LD="$lt_cv_path_LD"
5377 if test -n "$LD"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5379 $as_echo "$LD" >&6; }
5380 else
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5384 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5386 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5387 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5388 $as_echo_n "(cached) " >&6
5389 else
5390 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5391 case `$LD -v 2>&1 </dev/null` in
5392 *GNU* | *'with BFD'*)
5393 lt_cv_prog_gnu_ld=yes
5396 lt_cv_prog_gnu_ld=no
5398 esac
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5401 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5402 with_gnu_ld=$lt_cv_prog_gnu_ld
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5413 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5414 if test "${lt_cv_path_NM+set}" = set; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 if test -n "$NM"; then
5418 # Let the user override the test.
5419 lt_cv_path_NM="$NM"
5420 else
5421 lt_nm_to_check="${ac_tool_prefix}nm"
5422 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5423 lt_nm_to_check="$lt_nm_to_check nm"
5425 for lt_tmp_nm in $lt_nm_to_check; do
5426 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5427 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5428 IFS="$lt_save_ifs"
5429 test -z "$ac_dir" && ac_dir=.
5430 tmp_nm="$ac_dir/$lt_tmp_nm"
5431 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5432 # Check to see if the nm accepts a BSD-compat flag.
5433 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5434 # nm: unknown option "B" ignored
5435 # Tru64's nm complains that /dev/null is an invalid object file
5436 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5437 */dev/null* | *'Invalid file or object type'*)
5438 lt_cv_path_NM="$tmp_nm -B"
5439 break
5442 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5443 */dev/null*)
5444 lt_cv_path_NM="$tmp_nm -p"
5445 break
5448 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5449 continue # so that we can try to find one that supports BSD flags
5451 esac
5453 esac
5455 done
5456 IFS="$lt_save_ifs"
5457 done
5458 : ${lt_cv_path_NM=no}
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5462 $as_echo "$lt_cv_path_NM" >&6; }
5463 if test "$lt_cv_path_NM" != "no"; then
5464 NM="$lt_cv_path_NM"
5465 else
5466 # Didn't find any BSD compatible name lister, look for dumpbin.
5467 if test -n "$DUMPBIN"; then :
5468 # Let the user override the test.
5469 else
5470 if test -n "$ac_tool_prefix"; then
5471 for ac_prog in dumpbin "link -dump"
5473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 if test -n "$DUMPBIN"; then
5481 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5482 else
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5490 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 break 2
5494 done
5495 done
5496 IFS=$as_save_IFS
5500 DUMPBIN=$ac_cv_prog_DUMPBIN
5501 if test -n "$DUMPBIN"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5503 $as_echo "$DUMPBIN" >&6; }
5504 else
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5510 test -n "$DUMPBIN" && break
5511 done
5513 if test -z "$DUMPBIN"; then
5514 ac_ct_DUMPBIN=$DUMPBIN
5515 for ac_prog in dumpbin "link -dump"
5517 # Extract the first word of "$ac_prog", so it can be a program name with args.
5518 set dummy $ac_prog; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 if test -n "$ac_ct_DUMPBIN"; then
5525 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5534 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5538 done
5539 done
5540 IFS=$as_save_IFS
5544 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5545 if test -n "$ac_ct_DUMPBIN"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5547 $as_echo "$ac_ct_DUMPBIN" >&6; }
5548 else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5554 test -n "$ac_ct_DUMPBIN" && break
5555 done
5557 if test "x$ac_ct_DUMPBIN" = x; then
5558 DUMPBIN=":"
5559 else
5560 case $cross_compiling:$ac_tool_warned in
5561 yes:)
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5564 ac_tool_warned=yes ;;
5565 esac
5566 DUMPBIN=$ac_ct_DUMPBIN
5570 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5571 *COFF*)
5572 DUMPBIN="$DUMPBIN -symbols"
5575 DUMPBIN=:
5577 esac
5580 if test "$DUMPBIN" != ":"; then
5581 NM="$DUMPBIN"
5584 test -z "$NM" && NM=nm
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5592 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5593 if test "${lt_cv_nm_interface+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 lt_cv_nm_interface="BSD nm"
5597 echo "int some_variable = 0;" > conftest.$ac_ext
5598 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5599 (eval "$ac_compile" 2>conftest.err)
5600 cat conftest.err >&5
5601 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5602 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5603 cat conftest.err >&5
5604 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5605 cat conftest.out >&5
5606 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5607 lt_cv_nm_interface="MS dumpbin"
5609 rm -f conftest*
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5612 $as_echo "$lt_cv_nm_interface" >&6; }
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5615 $as_echo_n "checking whether ln -s works... " >&6; }
5616 LN_S=$as_ln_s
5617 if test "$LN_S" = "ln -s"; then
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5619 $as_echo "yes" >&6; }
5620 else
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5622 $as_echo "no, using $LN_S" >&6; }
5625 # find the maximum length of command line arguments
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5627 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5628 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5629 $as_echo_n "(cached) " >&6
5630 else
5632 teststring="ABCD"
5634 case $build_os in
5635 msdosdjgpp*)
5636 # On DJGPP, this test can blow up pretty badly due to problems in libc
5637 # (any single argument exceeding 2000 bytes causes a buffer overrun
5638 # during glob expansion). Even if it were fixed, the result of this
5639 # check would be larger than it should be.
5640 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5643 gnu*)
5644 # Under GNU Hurd, this test is not required because there is
5645 # no limit to the length of command line arguments.
5646 # Libtool will interpret -1 as no limit whatsoever
5647 lt_cv_sys_max_cmd_len=-1;
5650 cygwin* | mingw* | cegcc*)
5651 # On Win9x/ME, this test blows up -- it succeeds, but takes
5652 # about 5 minutes as the teststring grows exponentially.
5653 # Worse, since 9x/ME are not pre-emptively multitasking,
5654 # you end up with a "frozen" computer, even though with patience
5655 # the test eventually succeeds (with a max line length of 256k).
5656 # Instead, let's just punt: use the minimum linelength reported by
5657 # all of the supported platforms: 8192 (on NT/2K/XP).
5658 lt_cv_sys_max_cmd_len=8192;
5661 mint*)
5662 # On MiNT this can take a long time and run out of memory.
5663 lt_cv_sys_max_cmd_len=8192;
5666 amigaos*)
5667 # On AmigaOS with pdksh, this test takes hours, literally.
5668 # So we just punt and use a minimum line length of 8192.
5669 lt_cv_sys_max_cmd_len=8192;
5672 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5673 # This has been around since 386BSD, at least. Likely further.
5674 if test -x /sbin/sysctl; then
5675 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5676 elif test -x /usr/sbin/sysctl; then
5677 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5678 else
5679 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5681 # And add a safety zone
5682 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5683 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5686 interix*)
5687 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5688 lt_cv_sys_max_cmd_len=196608
5691 osf*)
5692 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5693 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5694 # nice to cause kernel panics so lets avoid the loop below.
5695 # First set a reasonable default.
5696 lt_cv_sys_max_cmd_len=16384
5698 if test -x /sbin/sysconfig; then
5699 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5700 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5701 esac
5704 sco3.2v5*)
5705 lt_cv_sys_max_cmd_len=102400
5707 sysv5* | sco5v6* | sysv4.2uw2*)
5708 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5709 if test -n "$kargmax"; then
5710 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5711 else
5712 lt_cv_sys_max_cmd_len=32768
5716 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5717 if test -n "$lt_cv_sys_max_cmd_len"; then
5718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5720 else
5721 # Make teststring a little bigger before we do anything with it.
5722 # a 1K string should be a reasonable start.
5723 for i in 1 2 3 4 5 6 7 8 ; do
5724 teststring=$teststring$teststring
5725 done
5726 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5727 # If test is not a shell built-in, we'll probably end up computing a
5728 # maximum length that is only half of the actual maximum length, but
5729 # we can't tell.
5730 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5731 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5732 test $i != 17 # 1/2 MB should be enough
5734 i=`expr $i + 1`
5735 teststring=$teststring$teststring
5736 done
5737 # Only check the string length outside the loop.
5738 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5739 teststring=
5740 # Add a significant safety factor because C++ compilers can tack on
5741 # massive amounts of additional arguments before passing them to the
5742 # linker. It appears as though 1/2 is a usable value.
5743 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5746 esac
5750 if test -n $lt_cv_sys_max_cmd_len ; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5752 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5753 else
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5755 $as_echo "none" >&6; }
5757 max_cmd_len=$lt_cv_sys_max_cmd_len
5764 : ${CP="cp -f"}
5765 : ${MV="mv -f"}
5766 : ${RM="rm -f"}
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5769 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5770 # Try some XSI features
5771 xsi_shell=no
5772 ( _lt_dummy="a/b/c"
5773 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5774 = c,a/b,, \
5775 && eval 'test $(( 1 + 1 )) -eq 2 \
5776 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5777 && xsi_shell=yes
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5779 $as_echo "$xsi_shell" >&6; }
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5783 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5784 lt_shell_append=no
5785 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5786 >/dev/null 2>&1 \
5787 && lt_shell_append=yes
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5789 $as_echo "$lt_shell_append" >&6; }
5792 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5793 lt_unset=unset
5794 else
5795 lt_unset=false
5802 # test EBCDIC or ASCII
5803 case `echo X|tr X '\101'` in
5804 A) # ASCII based system
5805 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5806 lt_SP2NL='tr \040 \012'
5807 lt_NL2SP='tr \015\012 \040\040'
5809 *) # EBCDIC based system
5810 lt_SP2NL='tr \100 \n'
5811 lt_NL2SP='tr \r\n \100\100'
5813 esac
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5824 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5825 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5826 $as_echo_n "(cached) " >&6
5827 else
5828 lt_cv_ld_reload_flag='-r'
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5831 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5832 reload_flag=$lt_cv_ld_reload_flag
5833 case $reload_flag in
5834 "" | " "*) ;;
5835 *) reload_flag=" $reload_flag" ;;
5836 esac
5837 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5838 case $host_os in
5839 darwin*)
5840 if test "$GCC" = yes; then
5841 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5842 else
5843 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5846 esac
5856 if test -n "$ac_tool_prefix"; then
5857 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5858 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860 $as_echo_n "checking for $ac_word... " >&6; }
5861 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 if test -n "$OBJDUMP"; then
5865 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5866 else
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 for as_dir in $PATH
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 break 2
5878 done
5879 done
5880 IFS=$as_save_IFS
5884 OBJDUMP=$ac_cv_prog_OBJDUMP
5885 if test -n "$OBJDUMP"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5887 $as_echo "$OBJDUMP" >&6; }
5888 else
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }
5895 if test -z "$ac_cv_prog_OBJDUMP"; then
5896 ac_ct_OBJDUMP=$OBJDUMP
5897 # Extract the first word of "objdump", so it can be a program name with args.
5898 set dummy objdump; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 if test -n "$ac_ct_OBJDUMP"; then
5905 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5906 else
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5914 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5918 done
5919 done
5920 IFS=$as_save_IFS
5924 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5925 if test -n "$ac_ct_OBJDUMP"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5927 $as_echo "$ac_ct_OBJDUMP" >&6; }
5928 else
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5933 if test "x$ac_ct_OBJDUMP" = x; then
5934 OBJDUMP="false"
5935 else
5936 case $cross_compiling:$ac_tool_warned in
5937 yes:)
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5940 ac_tool_warned=yes ;;
5941 esac
5942 OBJDUMP=$ac_ct_OBJDUMP
5944 else
5945 OBJDUMP="$ac_cv_prog_OBJDUMP"
5948 test -z "$OBJDUMP" && OBJDUMP=objdump
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5959 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5960 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 lt_cv_file_magic_cmd='$MAGIC_CMD'
5964 lt_cv_file_magic_test_file=
5965 lt_cv_deplibs_check_method='unknown'
5966 # Need to set the preceding variable on all platforms that support
5967 # interlibrary dependencies.
5968 # 'none' -- dependencies not supported.
5969 # `unknown' -- same as none, but documents that we really don't know.
5970 # 'pass_all' -- all dependencies passed with no checks.
5971 # 'test_compile' -- check by making test program.
5972 # 'file_magic [[regex]]' -- check by looking for files in library path
5973 # which responds to the $file_magic_cmd with a given extended regex.
5974 # If you have `file' or equivalent on your system and you're not sure
5975 # whether `pass_all' will *always* work, you probably want this one.
5977 case $host_os in
5978 aix[4-9]*)
5979 lt_cv_deplibs_check_method=pass_all
5982 beos*)
5983 lt_cv_deplibs_check_method=pass_all
5986 bsdi[45]*)
5987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5988 lt_cv_file_magic_cmd='/usr/bin/file -L'
5989 lt_cv_file_magic_test_file=/shlib/libc.so
5992 cygwin*)
5993 # func_win32_libid is a shell function defined in ltmain.sh
5994 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5995 lt_cv_file_magic_cmd='func_win32_libid'
5998 mingw* | pw32*)
5999 # Base MSYS/MinGW do not provide the 'file' command needed by
6000 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6001 # unless we find 'file', for example because we are cross-compiling.
6002 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6003 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6004 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6005 lt_cv_file_magic_cmd='func_win32_libid'
6006 else
6007 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6008 lt_cv_file_magic_cmd='$OBJDUMP -f'
6012 cegcc*)
6013 # use the weaker test based on 'objdump'. See mingw*.
6014 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6015 lt_cv_file_magic_cmd='$OBJDUMP -f'
6018 darwin* | rhapsody*)
6019 lt_cv_deplibs_check_method=pass_all
6022 freebsd* | dragonfly*)
6023 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6024 case $host_cpu in
6025 i*86 )
6026 # Not sure whether the presence of OpenBSD here was a mistake.
6027 # Let's accept both of them until this is cleared up.
6028 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6029 lt_cv_file_magic_cmd=/usr/bin/file
6030 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6032 esac
6033 else
6034 lt_cv_deplibs_check_method=pass_all
6038 gnu*)
6039 lt_cv_deplibs_check_method=pass_all
6042 haiku*)
6043 lt_cv_deplibs_check_method=pass_all
6046 hpux10.20* | hpux11*)
6047 lt_cv_file_magic_cmd=/usr/bin/file
6048 case $host_cpu in
6049 ia64*)
6050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6051 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6053 hppa*64*)
6054 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]'
6055 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6058 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6059 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6061 esac
6064 interix[3-9]*)
6065 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6069 irix5* | irix6* | nonstopux*)
6070 case $LD in
6071 *-32|*"-32 ") libmagic=32-bit;;
6072 *-n32|*"-n32 ") libmagic=N32;;
6073 *-64|*"-64 ") libmagic=64-bit;;
6074 *) libmagic=never-match;;
6075 esac
6076 lt_cv_deplibs_check_method=pass_all
6079 # This must be Linux ELF.
6080 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6081 lt_cv_deplibs_check_method=pass_all
6084 netbsd*)
6085 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6087 else
6088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6092 newos6*)
6093 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6094 lt_cv_file_magic_cmd=/usr/bin/file
6095 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6098 *nto* | *qnx*)
6099 lt_cv_deplibs_check_method=pass_all
6102 openbsd*)
6103 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6105 else
6106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6110 osf3* | osf4* | osf5*)
6111 lt_cv_deplibs_check_method=pass_all
6114 rdos*)
6115 lt_cv_deplibs_check_method=pass_all
6118 solaris*)
6119 lt_cv_deplibs_check_method=pass_all
6122 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6123 lt_cv_deplibs_check_method=pass_all
6126 sysv4 | sysv4.3*)
6127 case $host_vendor in
6128 motorola)
6129 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]'
6130 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6132 ncr)
6133 lt_cv_deplibs_check_method=pass_all
6135 sequent)
6136 lt_cv_file_magic_cmd='/bin/file'
6137 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6139 sni)
6140 lt_cv_file_magic_cmd='/bin/file'
6141 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6142 lt_cv_file_magic_test_file=/lib/libc.so
6144 siemens)
6145 lt_cv_deplibs_check_method=pass_all
6148 lt_cv_deplibs_check_method=pass_all
6150 esac
6153 tpf*)
6154 lt_cv_deplibs_check_method=pass_all
6156 esac
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6160 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6161 file_magic_cmd=$lt_cv_file_magic_cmd
6162 deplibs_check_method=$lt_cv_deplibs_check_method
6163 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6176 if test -n "$ac_tool_prefix"; then
6177 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6178 set dummy ${ac_tool_prefix}ar; ac_word=$2
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180 $as_echo_n "checking for $ac_word... " >&6; }
6181 if test "${ac_cv_prog_AR+set}" = set; then :
6182 $as_echo_n "(cached) " >&6
6183 else
6184 if test -n "$AR"; then
6185 ac_cv_prog_AR="$AR" # Let the user override the test.
6186 else
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 for as_dir in $PATH
6190 IFS=$as_save_IFS
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6194 ac_cv_prog_AR="${ac_tool_prefix}ar"
6195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 break 2
6198 done
6199 done
6200 IFS=$as_save_IFS
6204 AR=$ac_cv_prog_AR
6205 if test -n "$AR"; then
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6207 $as_echo "$AR" >&6; }
6208 else
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210 $as_echo "no" >&6; }
6215 if test -z "$ac_cv_prog_AR"; then
6216 ac_ct_AR=$AR
6217 # Extract the first word of "ar", so it can be a program name with args.
6218 set dummy ar; ac_word=$2
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220 $as_echo_n "checking for $ac_word... " >&6; }
6221 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6222 $as_echo_n "(cached) " >&6
6223 else
6224 if test -n "$ac_ct_AR"; then
6225 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6226 else
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 for as_dir in $PATH
6230 IFS=$as_save_IFS
6231 test -z "$as_dir" && as_dir=.
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6234 ac_cv_prog_ac_ct_AR="ar"
6235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 break 2
6238 done
6239 done
6240 IFS=$as_save_IFS
6244 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6245 if test -n "$ac_ct_AR"; then
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6247 $as_echo "$ac_ct_AR" >&6; }
6248 else
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250 $as_echo "no" >&6; }
6253 if test "x$ac_ct_AR" = x; then
6254 AR="false"
6255 else
6256 case $cross_compiling:$ac_tool_warned in
6257 yes:)
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6260 ac_tool_warned=yes ;;
6261 esac
6262 AR=$ac_ct_AR
6264 else
6265 AR="$ac_cv_prog_AR"
6268 test -z "$AR" && AR=ar
6269 test -z "$AR_FLAGS" && AR_FLAGS=cru
6281 if test -n "$ac_tool_prefix"; then
6282 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6283 set dummy ${ac_tool_prefix}strip; ac_word=$2
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285 $as_echo_n "checking for $ac_word... " >&6; }
6286 if test "${ac_cv_prog_STRIP+set}" = set; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 if test -n "$STRIP"; then
6290 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6291 else
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6295 IFS=$as_save_IFS
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6299 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 break 2
6303 done
6304 done
6305 IFS=$as_save_IFS
6309 STRIP=$ac_cv_prog_STRIP
6310 if test -n "$STRIP"; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6312 $as_echo "$STRIP" >&6; }
6313 else
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6320 if test -z "$ac_cv_prog_STRIP"; then
6321 ac_ct_STRIP=$STRIP
6322 # Extract the first word of "strip", so it can be a program name with args.
6323 set dummy strip; ac_word=$2
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325 $as_echo_n "checking for $ac_word... " >&6; }
6326 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 if test -n "$ac_ct_STRIP"; then
6330 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6331 else
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $PATH
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_prog_ac_ct_STRIP="strip"
6340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 break 2
6343 done
6344 done
6345 IFS=$as_save_IFS
6349 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6350 if test -n "$ac_ct_STRIP"; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6352 $as_echo "$ac_ct_STRIP" >&6; }
6353 else
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 $as_echo "no" >&6; }
6358 if test "x$ac_ct_STRIP" = x; then
6359 STRIP=":"
6360 else
6361 case $cross_compiling:$ac_tool_warned in
6362 yes:)
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6365 ac_tool_warned=yes ;;
6366 esac
6367 STRIP=$ac_ct_STRIP
6369 else
6370 STRIP="$ac_cv_prog_STRIP"
6373 test -z "$STRIP" && STRIP=:
6380 if test -n "$ac_tool_prefix"; then
6381 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6382 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384 $as_echo_n "checking for $ac_word... " >&6; }
6385 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6386 $as_echo_n "(cached) " >&6
6387 else
6388 if test -n "$RANLIB"; then
6389 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6390 else
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6394 IFS=$as_save_IFS
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6398 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400 break 2
6402 done
6403 done
6404 IFS=$as_save_IFS
6408 RANLIB=$ac_cv_prog_RANLIB
6409 if test -n "$RANLIB"; then
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6411 $as_echo "$RANLIB" >&6; }
6412 else
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414 $as_echo "no" >&6; }
6419 if test -z "$ac_cv_prog_RANLIB"; then
6420 ac_ct_RANLIB=$RANLIB
6421 # Extract the first word of "ranlib", so it can be a program name with args.
6422 set dummy ranlib; ac_word=$2
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424 $as_echo_n "checking for $ac_word... " >&6; }
6425 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6426 $as_echo_n "(cached) " >&6
6427 else
6428 if test -n "$ac_ct_RANLIB"; then
6429 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6430 else
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6434 IFS=$as_save_IFS
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6438 ac_cv_prog_ac_ct_RANLIB="ranlib"
6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 break 2
6442 done
6443 done
6444 IFS=$as_save_IFS
6448 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6449 if test -n "$ac_ct_RANLIB"; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6451 $as_echo "$ac_ct_RANLIB" >&6; }
6452 else
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6457 if test "x$ac_ct_RANLIB" = x; then
6458 RANLIB=":"
6459 else
6460 case $cross_compiling:$ac_tool_warned in
6461 yes:)
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6464 ac_tool_warned=yes ;;
6465 esac
6466 RANLIB=$ac_ct_RANLIB
6468 else
6469 RANLIB="$ac_cv_prog_RANLIB"
6472 test -z "$RANLIB" && RANLIB=:
6479 # Determine commands to create old-style static archives.
6480 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6481 old_postinstall_cmds='chmod 644 $oldlib'
6482 old_postuninstall_cmds=
6484 if test -n "$RANLIB"; then
6485 case $host_os in
6486 openbsd*)
6487 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6490 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6492 esac
6493 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6496 case $host_os in
6497 darwin*)
6498 lock_old_archive_extraction=yes ;;
6500 lock_old_archive_extraction=no ;;
6501 esac
6541 # If no C compiler was specified, use CC.
6542 LTCC=${LTCC-"$CC"}
6544 # If no C compiler flags were specified, use CFLAGS.
6545 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6547 # Allow CC to be a program name with arguments.
6548 compiler=$CC
6551 # Check for command to grab the raw symbol name followed by C symbol from nm.
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6553 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6554 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6558 # These are sane defaults that work on at least a few old systems.
6559 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6561 # Character class describing NM global symbol codes.
6562 symcode='[BCDEGRST]'
6564 # Regexp to match symbols that can be accessed directly from C.
6565 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6567 # Define system-specific variables.
6568 case $host_os in
6569 aix*)
6570 symcode='[BCDT]'
6572 cygwin* | mingw* | pw32* | cegcc*)
6573 symcode='[ABCDGISTW]'
6575 hpux*)
6576 if test "$host_cpu" = ia64; then
6577 symcode='[ABCDEGRST]'
6580 irix* | nonstopux*)
6581 symcode='[BCDEGRST]'
6583 osf*)
6584 symcode='[BCDEGQRST]'
6586 solaris*)
6587 symcode='[BDRT]'
6589 sco3.2v5*)
6590 symcode='[DT]'
6592 sysv4.2uw2*)
6593 symcode='[DT]'
6595 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6596 symcode='[ABDT]'
6598 sysv4)
6599 symcode='[DFNSTU]'
6601 esac
6603 # If we're using GNU nm, then use its standard symbol codes.
6604 case `$NM -V 2>&1` in
6605 *GNU* | *'with BFD'*)
6606 symcode='[ABCDGIRSTW]' ;;
6607 esac
6609 # Transform an extracted symbol line into a proper C declaration.
6610 # Some systems (esp. on ia64) link data and code symbols differently,
6611 # so use this general approach.
6612 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6614 # Transform an extracted symbol line into symbol name and symbol address
6615 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6616 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'"
6618 # Handle CRLF in mingw tool chain
6619 opt_cr=
6620 case $build_os in
6621 mingw*)
6622 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6624 esac
6626 # Try without a prefix underscore, then with it.
6627 for ac_symprfx in "" "_"; do
6629 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6630 symxfrm="\\1 $ac_symprfx\\2 \\2"
6632 # Write the raw and C identifiers.
6633 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6634 # Fake it for dumpbin and say T for any non-static function
6635 # and D for any global variable.
6636 # Also find C++ and __fastcall symbols from MSVC++,
6637 # which start with @ or ?.
6638 lt_cv_sys_global_symbol_pipe="$AWK '"\
6639 " {last_section=section; section=\$ 3};"\
6640 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6641 " \$ 0!~/External *\|/{next};"\
6642 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6643 " {if(hide[section]) next};"\
6644 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6645 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6646 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6647 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6648 " ' prfx=^$ac_symprfx"
6649 else
6650 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6653 # Check to see that the pipe works correctly.
6654 pipe_works=no
6656 rm -f conftest*
6657 cat > conftest.$ac_ext <<_LT_EOF
6658 #ifdef __cplusplus
6659 extern "C" {
6660 #endif
6661 char nm_test_var;
6662 void nm_test_func(void);
6663 void nm_test_func(void){}
6664 #ifdef __cplusplus
6666 #endif
6667 int main(){nm_test_var='a';nm_test_func();return(0);}
6668 _LT_EOF
6670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6671 (eval $ac_compile) 2>&5
6672 ac_status=$?
6673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6674 test $ac_status = 0; }; then
6675 # Now try to grab the symbols.
6676 nlist=conftest.nm
6677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6678 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6679 ac_status=$?
6680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681 test $ac_status = 0; } && test -s "$nlist"; then
6682 # Try sorting and uniquifying the output.
6683 if sort "$nlist" | uniq > "$nlist"T; then
6684 mv -f "$nlist"T "$nlist"
6685 else
6686 rm -f "$nlist"T
6689 # Make sure that we snagged all the symbols we need.
6690 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6691 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6692 cat <<_LT_EOF > conftest.$ac_ext
6693 #ifdef __cplusplus
6694 extern "C" {
6695 #endif
6697 _LT_EOF
6698 # Now generate the symbol file.
6699 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6701 cat <<_LT_EOF >> conftest.$ac_ext
6703 /* The mapping between symbol names and symbols. */
6704 const struct {
6705 const char *name;
6706 void *address;
6708 lt__PROGRAM__LTX_preloaded_symbols[] =
6710 { "@PROGRAM@", (void *) 0 },
6711 _LT_EOF
6712 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6713 cat <<\_LT_EOF >> conftest.$ac_ext
6714 {0, (void *) 0}
6717 /* This works around a problem in FreeBSD linker */
6718 #ifdef FREEBSD_WORKAROUND
6719 static const void *lt_preloaded_setup() {
6720 return lt__PROGRAM__LTX_preloaded_symbols;
6722 #endif
6724 #ifdef __cplusplus
6726 #endif
6727 _LT_EOF
6728 # Now try linking the two files.
6729 mv conftest.$ac_objext conftstm.$ac_objext
6730 lt_save_LIBS="$LIBS"
6731 lt_save_CFLAGS="$CFLAGS"
6732 LIBS="conftstm.$ac_objext"
6733 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6735 (eval $ac_link) 2>&5
6736 ac_status=$?
6737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6738 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6739 pipe_works=yes
6741 LIBS="$lt_save_LIBS"
6742 CFLAGS="$lt_save_CFLAGS"
6743 else
6744 echo "cannot find nm_test_func in $nlist" >&5
6746 else
6747 echo "cannot find nm_test_var in $nlist" >&5
6749 else
6750 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6752 else
6753 echo "$progname: failed program was:" >&5
6754 cat conftest.$ac_ext >&5
6756 rm -rf conftest* conftst*
6758 # Do not use the global_symbol_pipe unless it works.
6759 if test "$pipe_works" = yes; then
6760 break
6761 else
6762 lt_cv_sys_global_symbol_pipe=
6764 done
6768 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6769 lt_cv_sys_global_symbol_to_cdecl=
6771 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6773 $as_echo "failed" >&6; }
6774 else
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6776 $as_echo "ok" >&6; }
6800 # Check whether --enable-libtool-lock was given.
6801 if test "${enable_libtool_lock+set}" = set; then :
6802 enableval=$enable_libtool_lock;
6805 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6807 # Some flags need to be propagated to the compiler or linker for good
6808 # libtool support.
6809 case $host in
6810 ia64-*-hpux*)
6811 # Find out which ABI we are using.
6812 echo 'int i;' > conftest.$ac_ext
6813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6814 (eval $ac_compile) 2>&5
6815 ac_status=$?
6816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6817 test $ac_status = 0; }; then
6818 case `/usr/bin/file conftest.$ac_objext` in
6819 *ELF-32*)
6820 HPUX_IA64_MODE="32"
6822 *ELF-64*)
6823 HPUX_IA64_MODE="64"
6825 esac
6827 rm -rf conftest*
6829 *-*-irix6*)
6830 # Find out which ABI we are using.
6831 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6833 (eval $ac_compile) 2>&5
6834 ac_status=$?
6835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6836 test $ac_status = 0; }; then
6837 if test "$lt_cv_prog_gnu_ld" = yes; then
6838 case `/usr/bin/file conftest.$ac_objext` in
6839 *32-bit*)
6840 LD="${LD-ld} -melf32bsmip"
6842 *N32*)
6843 LD="${LD-ld} -melf32bmipn32"
6845 *64-bit*)
6846 LD="${LD-ld} -melf64bmip"
6848 esac
6849 else
6850 case `/usr/bin/file conftest.$ac_objext` in
6851 *32-bit*)
6852 LD="${LD-ld} -32"
6854 *N32*)
6855 LD="${LD-ld} -n32"
6857 *64-bit*)
6858 LD="${LD-ld} -64"
6860 esac
6863 rm -rf conftest*
6866 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6867 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6868 # Find out which ABI we are using.
6869 echo 'int i;' > conftest.$ac_ext
6870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6871 (eval $ac_compile) 2>&5
6872 ac_status=$?
6873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6874 test $ac_status = 0; }; then
6875 case `/usr/bin/file conftest.o` in
6876 *32-bit*)
6877 case $host in
6878 x86_64-*kfreebsd*-gnu)
6879 LD="${LD-ld} -m elf_i386_fbsd"
6881 x86_64-*linux*)
6882 case `/usr/bin/file conftest.o` in
6883 *x86-64*)
6884 LD="${LD-ld} -m elf32_x86_64"
6887 LD="${LD-ld} -m elf_i386"
6889 esac
6891 powerpc64le-*linux*)
6892 LD="${LD-ld} -m elf32lppclinux"
6894 powerpc64-*linux*)
6895 LD="${LD-ld} -m elf32ppclinux"
6897 s390x-*linux*)
6898 LD="${LD-ld} -m elf_s390"
6900 sparc64-*linux*)
6901 LD="${LD-ld} -m elf32_sparc"
6903 esac
6905 *64-bit*)
6906 case $host in
6907 x86_64-*kfreebsd*-gnu)
6908 LD="${LD-ld} -m elf_x86_64_fbsd"
6910 x86_64-*linux*)
6911 LD="${LD-ld} -m elf_x86_64"
6913 powerpcle-*linux*)
6914 LD="${LD-ld} -m elf64lppc"
6916 powerpc-*linux*)
6917 LD="${LD-ld} -m elf64ppc"
6919 s390*-*linux*|s390*-*tpf*)
6920 LD="${LD-ld} -m elf64_s390"
6922 sparc*-*linux*)
6923 LD="${LD-ld} -m elf64_sparc"
6925 esac
6927 esac
6929 rm -rf conftest*
6932 *-*-sco3.2v5*)
6933 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6934 SAVE_CFLAGS="$CFLAGS"
6935 CFLAGS="$CFLAGS -belf"
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6937 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6938 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6939 $as_echo_n "(cached) " >&6
6940 else
6941 ac_ext=c
6942 ac_cpp='$CPP $CPPFLAGS'
6943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6951 main ()
6955 return 0;
6957 _ACEOF
6958 if ac_fn_c_try_link "$LINENO"; then :
6959 lt_cv_cc_needs_belf=yes
6960 else
6961 lt_cv_cc_needs_belf=no
6963 rm -f core conftest.err conftest.$ac_objext \
6964 conftest$ac_exeext conftest.$ac_ext
6965 ac_ext=c
6966 ac_cpp='$CPP $CPPFLAGS'
6967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6973 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6974 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6975 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6976 CFLAGS="$SAVE_CFLAGS"
6979 sparc*-*solaris*)
6980 # Find out which ABI we are using.
6981 echo 'int i;' > conftest.$ac_ext
6982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6983 (eval $ac_compile) 2>&5
6984 ac_status=$?
6985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6986 test $ac_status = 0; }; then
6987 case `/usr/bin/file conftest.o` in
6988 *64-bit*)
6989 case $lt_cv_prog_gnu_ld in
6990 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6992 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6993 LD="${LD-ld} -64"
6996 esac
6998 esac
7000 rm -rf conftest*
7002 esac
7004 need_locks="$enable_libtool_lock"
7007 case $host_os in
7008 rhapsody* | darwin*)
7009 if test -n "$ac_tool_prefix"; then
7010 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7011 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7015 $as_echo_n "(cached) " >&6
7016 else
7017 if test -n "$DSYMUTIL"; then
7018 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7019 else
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7027 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 break 2
7031 done
7032 done
7033 IFS=$as_save_IFS
7037 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7038 if test -n "$DSYMUTIL"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7040 $as_echo "$DSYMUTIL" >&6; }
7041 else
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7048 if test -z "$ac_cv_prog_DSYMUTIL"; then
7049 ac_ct_DSYMUTIL=$DSYMUTIL
7050 # Extract the first word of "dsymutil", so it can be a program name with args.
7051 set dummy dsymutil; ac_word=$2
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053 $as_echo_n "checking for $ac_word... " >&6; }
7054 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 if test -n "$ac_ct_DSYMUTIL"; then
7058 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7059 else
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 for as_dir in $PATH
7063 IFS=$as_save_IFS
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
7066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7067 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 break 2
7071 done
7072 done
7073 IFS=$as_save_IFS
7077 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7078 if test -n "$ac_ct_DSYMUTIL"; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7080 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7081 else
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7086 if test "x$ac_ct_DSYMUTIL" = x; then
7087 DSYMUTIL=":"
7088 else
7089 case $cross_compiling:$ac_tool_warned in
7090 yes:)
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7093 ac_tool_warned=yes ;;
7094 esac
7095 DSYMUTIL=$ac_ct_DSYMUTIL
7097 else
7098 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7101 if test -n "$ac_tool_prefix"; then
7102 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7103 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7105 $as_echo_n "checking for $ac_word... " >&6; }
7106 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7107 $as_echo_n "(cached) " >&6
7108 else
7109 if test -n "$NMEDIT"; then
7110 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7111 else
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 for as_dir in $PATH
7115 IFS=$as_save_IFS
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7119 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 break 2
7123 done
7124 done
7125 IFS=$as_save_IFS
7129 NMEDIT=$ac_cv_prog_NMEDIT
7130 if test -n "$NMEDIT"; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7132 $as_echo "$NMEDIT" >&6; }
7133 else
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135 $as_echo "no" >&6; }
7140 if test -z "$ac_cv_prog_NMEDIT"; then
7141 ac_ct_NMEDIT=$NMEDIT
7142 # Extract the first word of "nmedit", so it can be a program name with args.
7143 set dummy nmedit; ac_word=$2
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7145 $as_echo_n "checking for $ac_word... " >&6; }
7146 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7147 $as_echo_n "(cached) " >&6
7148 else
7149 if test -n "$ac_ct_NMEDIT"; then
7150 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7151 else
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 for as_dir in $PATH
7155 IFS=$as_save_IFS
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7159 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 break 2
7163 done
7164 done
7165 IFS=$as_save_IFS
7169 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7170 if test -n "$ac_ct_NMEDIT"; then
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7172 $as_echo "$ac_ct_NMEDIT" >&6; }
7173 else
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175 $as_echo "no" >&6; }
7178 if test "x$ac_ct_NMEDIT" = x; then
7179 NMEDIT=":"
7180 else
7181 case $cross_compiling:$ac_tool_warned in
7182 yes:)
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7185 ac_tool_warned=yes ;;
7186 esac
7187 NMEDIT=$ac_ct_NMEDIT
7189 else
7190 NMEDIT="$ac_cv_prog_NMEDIT"
7193 if test -n "$ac_tool_prefix"; then
7194 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7195 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197 $as_echo_n "checking for $ac_word... " >&6; }
7198 if test "${ac_cv_prog_LIPO+set}" = set; then :
7199 $as_echo_n "(cached) " >&6
7200 else
7201 if test -n "$LIPO"; then
7202 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7203 else
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7211 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 break 2
7215 done
7216 done
7217 IFS=$as_save_IFS
7221 LIPO=$ac_cv_prog_LIPO
7222 if test -n "$LIPO"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7224 $as_echo "$LIPO" >&6; }
7225 else
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 $as_echo "no" >&6; }
7232 if test -z "$ac_cv_prog_LIPO"; then
7233 ac_ct_LIPO=$LIPO
7234 # Extract the first word of "lipo", so it can be a program name with args.
7235 set dummy lipo; ac_word=$2
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237 $as_echo_n "checking for $ac_word... " >&6; }
7238 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 if test -n "$ac_ct_LIPO"; then
7242 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7243 else
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7251 ac_cv_prog_ac_ct_LIPO="lipo"
7252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 break 2
7255 done
7256 done
7257 IFS=$as_save_IFS
7261 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7262 if test -n "$ac_ct_LIPO"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7264 $as_echo "$ac_ct_LIPO" >&6; }
7265 else
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7270 if test "x$ac_ct_LIPO" = x; then
7271 LIPO=":"
7272 else
7273 case $cross_compiling:$ac_tool_warned in
7274 yes:)
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7277 ac_tool_warned=yes ;;
7278 esac
7279 LIPO=$ac_ct_LIPO
7281 else
7282 LIPO="$ac_cv_prog_LIPO"
7285 if test -n "$ac_tool_prefix"; then
7286 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7287 set dummy ${ac_tool_prefix}otool; ac_word=$2
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7289 $as_echo_n "checking for $ac_word... " >&6; }
7290 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7291 $as_echo_n "(cached) " >&6
7292 else
7293 if test -n "$OTOOL"; then
7294 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7295 else
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7303 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 break 2
7307 done
7308 done
7309 IFS=$as_save_IFS
7313 OTOOL=$ac_cv_prog_OTOOL
7314 if test -n "$OTOOL"; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7316 $as_echo "$OTOOL" >&6; }
7317 else
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }
7324 if test -z "$ac_cv_prog_OTOOL"; then
7325 ac_ct_OTOOL=$OTOOL
7326 # Extract the first word of "otool", so it can be a program name with args.
7327 set dummy otool; ac_word=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 $as_echo_n "checking for $ac_word... " >&6; }
7330 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7331 $as_echo_n "(cached) " >&6
7332 else
7333 if test -n "$ac_ct_OTOOL"; then
7334 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7335 else
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7339 IFS=$as_save_IFS
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7343 ac_cv_prog_ac_ct_OTOOL="otool"
7344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 break 2
7347 done
7348 done
7349 IFS=$as_save_IFS
7353 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7354 if test -n "$ac_ct_OTOOL"; then
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7356 $as_echo "$ac_ct_OTOOL" >&6; }
7357 else
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359 $as_echo "no" >&6; }
7362 if test "x$ac_ct_OTOOL" = x; then
7363 OTOOL=":"
7364 else
7365 case $cross_compiling:$ac_tool_warned in
7366 yes:)
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7369 ac_tool_warned=yes ;;
7370 esac
7371 OTOOL=$ac_ct_OTOOL
7373 else
7374 OTOOL="$ac_cv_prog_OTOOL"
7377 if test -n "$ac_tool_prefix"; then
7378 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7379 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7381 $as_echo_n "checking for $ac_word... " >&6; }
7382 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7383 $as_echo_n "(cached) " >&6
7384 else
7385 if test -n "$OTOOL64"; then
7386 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7387 else
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 for as_dir in $PATH
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7395 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 break 2
7399 done
7400 done
7401 IFS=$as_save_IFS
7405 OTOOL64=$ac_cv_prog_OTOOL64
7406 if test -n "$OTOOL64"; then
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7408 $as_echo "$OTOOL64" >&6; }
7409 else
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411 $as_echo "no" >&6; }
7416 if test -z "$ac_cv_prog_OTOOL64"; then
7417 ac_ct_OTOOL64=$OTOOL64
7418 # Extract the first word of "otool64", so it can be a program name with args.
7419 set dummy otool64; ac_word=$2
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421 $as_echo_n "checking for $ac_word... " >&6; }
7422 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7425 if test -n "$ac_ct_OTOOL64"; then
7426 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7427 else
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 for as_dir in $PATH
7431 IFS=$as_save_IFS
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7435 ac_cv_prog_ac_ct_OTOOL64="otool64"
7436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7437 break 2
7439 done
7440 done
7441 IFS=$as_save_IFS
7445 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7446 if test -n "$ac_ct_OTOOL64"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7448 $as_echo "$ac_ct_OTOOL64" >&6; }
7449 else
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7454 if test "x$ac_ct_OTOOL64" = x; then
7455 OTOOL64=":"
7456 else
7457 case $cross_compiling:$ac_tool_warned in
7458 yes:)
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7461 ac_tool_warned=yes ;;
7462 esac
7463 OTOOL64=$ac_ct_OTOOL64
7465 else
7466 OTOOL64="$ac_cv_prog_OTOOL64"
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7496 $as_echo_n "checking for -single_module linker flag... " >&6; }
7497 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7498 $as_echo_n "(cached) " >&6
7499 else
7500 lt_cv_apple_cc_single_mod=no
7501 if test -z "${LT_MULTI_MODULE}"; then
7502 # By default we will add the -single_module flag. You can override
7503 # by either setting the environment variable LT_MULTI_MODULE
7504 # non-empty at configure time, or by adding -multi_module to the
7505 # link flags.
7506 rm -rf libconftest.dylib*
7507 echo "int foo(void){return 1;}" > conftest.c
7508 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7509 -dynamiclib -Wl,-single_module conftest.c" >&5
7510 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7511 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7512 _lt_result=$?
7513 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7514 lt_cv_apple_cc_single_mod=yes
7515 else
7516 cat conftest.err >&5
7518 rm -rf libconftest.dylib*
7519 rm -f conftest.*
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7523 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7525 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7526 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7529 lt_cv_ld_exported_symbols_list=no
7530 save_LDFLAGS=$LDFLAGS
7531 echo "_main" > conftest.sym
7532 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h. */
7537 main ()
7541 return 0;
7543 _ACEOF
7544 if ac_fn_c_try_link "$LINENO"; then :
7545 lt_cv_ld_exported_symbols_list=yes
7546 else
7547 lt_cv_ld_exported_symbols_list=no
7549 rm -f core conftest.err conftest.$ac_objext \
7550 conftest$ac_exeext conftest.$ac_ext
7551 LDFLAGS="$save_LDFLAGS"
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7555 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7557 $as_echo_n "checking for -force_load linker flag... " >&6; }
7558 if test "${lt_cv_ld_force_load+set}" = set; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 lt_cv_ld_force_load=no
7562 cat > conftest.c << _LT_EOF
7563 int forced_loaded() { return 2;}
7564 _LT_EOF
7565 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7566 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7567 echo "$AR cru libconftest.a conftest.o" >&5
7568 $AR cru libconftest.a conftest.o 2>&5
7569 cat > conftest.c << _LT_EOF
7570 int main() { return 0;}
7571 _LT_EOF
7572 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7573 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7574 _lt_result=$?
7575 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7576 lt_cv_ld_force_load=yes
7577 else
7578 cat conftest.err >&5
7580 rm -f conftest.err libconftest.a conftest conftest.c
7581 rm -rf conftest.dSYM
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7585 $as_echo "$lt_cv_ld_force_load" >&6; }
7586 case $host_os in
7587 rhapsody* | darwin1.[012])
7588 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7589 darwin1.*)
7590 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7591 darwin*) # darwin 5.x on
7592 # if running on 10.5 or later, the deployment target defaults
7593 # to the OS version, if on x86, and 10.4, the deployment
7594 # target defaults to 10.4. Don't you love it?
7595 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7596 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7597 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7598 10.[012][,.]*)
7599 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7600 10.*)
7601 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7602 esac
7604 esac
7605 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7606 _lt_dar_single_mod='$single_module'
7608 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7609 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7610 else
7611 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7613 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7614 _lt_dsymutil='~$DSYMUTIL $lib || :'
7615 else
7616 _lt_dsymutil=
7619 esac
7621 for ac_header in dlfcn.h
7622 do :
7623 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7625 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7626 cat >>confdefs.h <<_ACEOF
7627 #define HAVE_DLFCN_H 1
7628 _ACEOF
7632 done
7639 # Set options
7644 enable_win32_dll=no
7647 # Check whether --enable-shared was given.
7648 if test "${enable_shared+set}" = set; then :
7649 enableval=$enable_shared; p=${PACKAGE-default}
7650 case $enableval in
7651 yes) enable_shared=yes ;;
7652 no) enable_shared=no ;;
7654 enable_shared=no
7655 # Look at the argument we got. We use all the common list separators.
7656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7657 for pkg in $enableval; do
7658 IFS="$lt_save_ifs"
7659 if test "X$pkg" = "X$p"; then
7660 enable_shared=yes
7662 done
7663 IFS="$lt_save_ifs"
7665 esac
7666 else
7667 enable_shared=yes
7678 # Check whether --enable-static was given.
7679 if test "${enable_static+set}" = set; then :
7680 enableval=$enable_static; p=${PACKAGE-default}
7681 case $enableval in
7682 yes) enable_static=yes ;;
7683 no) enable_static=no ;;
7685 enable_static=no
7686 # Look at the argument we got. We use all the common list separators.
7687 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7688 for pkg in $enableval; do
7689 IFS="$lt_save_ifs"
7690 if test "X$pkg" = "X$p"; then
7691 enable_static=yes
7693 done
7694 IFS="$lt_save_ifs"
7696 esac
7697 else
7698 enable_static=yes
7710 # Check whether --with-pic was given.
7711 if test "${with_pic+set}" = set; then :
7712 withval=$with_pic; pic_mode="$withval"
7713 else
7714 pic_mode=default
7718 test -z "$pic_mode" && pic_mode=default
7726 # Check whether --enable-fast-install was given.
7727 if test "${enable_fast_install+set}" = set; then :
7728 enableval=$enable_fast_install; p=${PACKAGE-default}
7729 case $enableval in
7730 yes) enable_fast_install=yes ;;
7731 no) enable_fast_install=no ;;
7733 enable_fast_install=no
7734 # Look at the argument we got. We use all the common list separators.
7735 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7736 for pkg in $enableval; do
7737 IFS="$lt_save_ifs"
7738 if test "X$pkg" = "X$p"; then
7739 enable_fast_install=yes
7741 done
7742 IFS="$lt_save_ifs"
7744 esac
7745 else
7746 enable_fast_install=yes
7759 # This can be used to rebuild libtool when needed
7760 LIBTOOL_DEPS="$ltmain"
7762 # Always use our own libtool.
7763 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7790 test -z "$LN_S" && LN_S="ln -s"
7805 if test -n "${ZSH_VERSION+set}" ; then
7806 setopt NO_GLOB_SUBST
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7810 $as_echo_n "checking for objdir... " >&6; }
7811 if test "${lt_cv_objdir+set}" = set; then :
7812 $as_echo_n "(cached) " >&6
7813 else
7814 rm -f .libs 2>/dev/null
7815 mkdir .libs 2>/dev/null
7816 if test -d .libs; then
7817 lt_cv_objdir=.libs
7818 else
7819 # MS-DOS does not allow filenames that begin with a dot.
7820 lt_cv_objdir=_libs
7822 rmdir .libs 2>/dev/null
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7825 $as_echo "$lt_cv_objdir" >&6; }
7826 objdir=$lt_cv_objdir
7832 cat >>confdefs.h <<_ACEOF
7833 #define LT_OBJDIR "$lt_cv_objdir/"
7834 _ACEOF
7839 case $host_os in
7840 aix3*)
7841 # AIX sometimes has problems with the GCC collect2 program. For some
7842 # reason, if we set the COLLECT_NAMES environment variable, the problems
7843 # vanish in a puff of smoke.
7844 if test "X${COLLECT_NAMES+set}" != Xset; then
7845 COLLECT_NAMES=
7846 export COLLECT_NAMES
7849 esac
7851 # Global variables:
7852 ofile=libtool
7853 can_build_shared=yes
7855 # All known linkers require a `.a' archive for static linking (except MSVC,
7856 # which needs '.lib').
7857 libext=a
7859 with_gnu_ld="$lt_cv_prog_gnu_ld"
7861 old_CC="$CC"
7862 old_CFLAGS="$CFLAGS"
7864 # Set sane defaults for various variables
7865 test -z "$CC" && CC=cc
7866 test -z "$LTCC" && LTCC=$CC
7867 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7868 test -z "$LD" && LD=ld
7869 test -z "$ac_objext" && ac_objext=o
7871 for cc_temp in $compiler""; do
7872 case $cc_temp in
7873 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7874 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7875 \-*) ;;
7876 *) break;;
7877 esac
7878 done
7879 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7882 # Only perform the check for file, if the check method requires it
7883 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7884 case $deplibs_check_method in
7885 file_magic*)
7886 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7888 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7889 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7890 $as_echo_n "(cached) " >&6
7891 else
7892 case $MAGIC_CMD in
7893 [\\/*] | ?:[\\/]*)
7894 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7897 lt_save_MAGIC_CMD="$MAGIC_CMD"
7898 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7899 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7900 for ac_dir in $ac_dummy; do
7901 IFS="$lt_save_ifs"
7902 test -z "$ac_dir" && ac_dir=.
7903 if test -f $ac_dir/${ac_tool_prefix}file; then
7904 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7905 if test -n "$file_magic_test_file"; then
7906 case $deplibs_check_method in
7907 "file_magic "*)
7908 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7909 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7910 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7911 $EGREP "$file_magic_regex" > /dev/null; then
7913 else
7914 cat <<_LT_EOF 1>&2
7916 *** Warning: the command libtool uses to detect shared libraries,
7917 *** $file_magic_cmd, produces output that libtool cannot recognize.
7918 *** The result is that libtool may fail to recognize shared libraries
7919 *** as such. This will affect the creation of libtool libraries that
7920 *** depend on shared libraries, but programs linked with such libtool
7921 *** libraries will work regardless of this problem. Nevertheless, you
7922 *** may want to report the problem to your system manager and/or to
7923 *** bug-libtool@gnu.org
7925 _LT_EOF
7926 fi ;;
7927 esac
7929 break
7931 done
7932 IFS="$lt_save_ifs"
7933 MAGIC_CMD="$lt_save_MAGIC_CMD"
7935 esac
7938 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7939 if test -n "$MAGIC_CMD"; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7941 $as_echo "$MAGIC_CMD" >&6; }
7942 else
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7951 if test -z "$lt_cv_path_MAGIC_CMD"; then
7952 if test -n "$ac_tool_prefix"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7954 $as_echo_n "checking for file... " >&6; }
7955 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7956 $as_echo_n "(cached) " >&6
7957 else
7958 case $MAGIC_CMD in
7959 [\\/*] | ?:[\\/]*)
7960 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7963 lt_save_MAGIC_CMD="$MAGIC_CMD"
7964 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7965 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7966 for ac_dir in $ac_dummy; do
7967 IFS="$lt_save_ifs"
7968 test -z "$ac_dir" && ac_dir=.
7969 if test -f $ac_dir/file; then
7970 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7971 if test -n "$file_magic_test_file"; then
7972 case $deplibs_check_method in
7973 "file_magic "*)
7974 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7975 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7976 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7977 $EGREP "$file_magic_regex" > /dev/null; then
7979 else
7980 cat <<_LT_EOF 1>&2
7982 *** Warning: the command libtool uses to detect shared libraries,
7983 *** $file_magic_cmd, produces output that libtool cannot recognize.
7984 *** The result is that libtool may fail to recognize shared libraries
7985 *** as such. This will affect the creation of libtool libraries that
7986 *** depend on shared libraries, but programs linked with such libtool
7987 *** libraries will work regardless of this problem. Nevertheless, you
7988 *** may want to report the problem to your system manager and/or to
7989 *** bug-libtool@gnu.org
7991 _LT_EOF
7992 fi ;;
7993 esac
7995 break
7997 done
7998 IFS="$lt_save_ifs"
7999 MAGIC_CMD="$lt_save_MAGIC_CMD"
8001 esac
8004 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8005 if test -n "$MAGIC_CMD"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8007 $as_echo "$MAGIC_CMD" >&6; }
8008 else
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8014 else
8015 MAGIC_CMD=:
8021 esac
8023 # Use C for the default configuration in the libtool script
8025 lt_save_CC="$CC"
8026 ac_ext=c
8027 ac_cpp='$CPP $CPPFLAGS'
8028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8033 # Source file extension for C test sources.
8034 ac_ext=c
8036 # Object file extension for compiled C test sources.
8037 objext=o
8038 objext=$objext
8040 # Code to be used in simple compile tests
8041 lt_simple_compile_test_code="int some_variable = 0;"
8043 # Code to be used in simple link tests
8044 lt_simple_link_test_code='int main(){return(0);}'
8052 # If no C compiler was specified, use CC.
8053 LTCC=${LTCC-"$CC"}
8055 # If no C compiler flags were specified, use CFLAGS.
8056 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8058 # Allow CC to be a program name with arguments.
8059 compiler=$CC
8061 # Save the default compiler, since it gets overwritten when the other
8062 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8063 compiler_DEFAULT=$CC
8065 # save warnings/boilerplate of simple test code
8066 ac_outfile=conftest.$ac_objext
8067 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8068 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8069 _lt_compiler_boilerplate=`cat conftest.err`
8070 $RM conftest*
8072 ac_outfile=conftest.$ac_objext
8073 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8074 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8075 _lt_linker_boilerplate=`cat conftest.err`
8076 $RM -r conftest*
8079 ## CAVEAT EMPTOR:
8080 ## There is no encapsulation within the following macros, do not change
8081 ## the running order or otherwise move them around unless you know exactly
8082 ## what you are doing...
8083 if test -n "$compiler"; then
8085 lt_prog_compiler_no_builtin_flag=
8087 if test "$GCC" = yes; then
8088 case $cc_basename in
8089 nvcc*)
8090 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8092 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8093 esac
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8096 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8097 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8098 $as_echo_n "(cached) " >&6
8099 else
8100 lt_cv_prog_compiler_rtti_exceptions=no
8101 ac_outfile=conftest.$ac_objext
8102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8103 lt_compiler_flag="-fno-rtti -fno-exceptions"
8104 # Insert the option either (1) after the last *FLAGS variable, or
8105 # (2) before a word containing "conftest.", or (3) at the end.
8106 # Note that $ac_compile itself does not contain backslashes and begins
8107 # with a dollar sign (not a hyphen), so the echo should work correctly.
8108 # The option is referenced via a variable to avoid confusing sed.
8109 lt_compile=`echo "$ac_compile" | $SED \
8110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8112 -e 's:$: $lt_compiler_flag:'`
8113 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8114 (eval "$lt_compile" 2>conftest.err)
8115 ac_status=$?
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 if (exit $ac_status) && test -s "$ac_outfile"; then
8119 # The compiler can only warn and ignore the option if not recognized
8120 # So say no if there are warnings other than the usual output.
8121 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8123 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8124 lt_cv_prog_compiler_rtti_exceptions=yes
8127 $RM conftest*
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8131 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8133 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8134 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8135 else
8146 lt_prog_compiler_wl=
8147 lt_prog_compiler_pic=
8148 lt_prog_compiler_static=
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8151 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8153 if test "$GCC" = yes; then
8154 lt_prog_compiler_wl='-Wl,'
8155 lt_prog_compiler_static='-static'
8157 case $host_os in
8158 aix*)
8159 # All AIX code is PIC.
8160 if test "$host_cpu" = ia64; then
8161 # AIX 5 now supports IA64 processor
8162 lt_prog_compiler_static='-Bstatic'
8164 lt_prog_compiler_pic='-fPIC'
8167 amigaos*)
8168 case $host_cpu in
8169 powerpc)
8170 # see comment about AmigaOS4 .so support
8171 lt_prog_compiler_pic='-fPIC'
8173 m68k)
8174 # FIXME: we need at least 68020 code to build shared libraries, but
8175 # adding the `-m68020' flag to GCC prevents building anything better,
8176 # like `-m68040'.
8177 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8179 esac
8182 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8183 # PIC is the default for these OSes.
8186 mingw* | cygwin* | pw32* | os2* | cegcc*)
8187 # This hack is so that the source file can tell whether it is being
8188 # built for inclusion in a dll (and should export symbols for example).
8189 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8190 # (--disable-auto-import) libraries
8191 lt_prog_compiler_pic='-DDLL_EXPORT'
8194 darwin* | rhapsody*)
8195 # PIC is the default on this platform
8196 # Common symbols not allowed in MH_DYLIB files
8197 lt_prog_compiler_pic='-fno-common'
8200 haiku*)
8201 # PIC is the default for Haiku.
8202 # The "-static" flag exists, but is broken.
8203 lt_prog_compiler_static=
8206 hpux*)
8207 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8208 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8209 # sets the default TLS model and affects inlining.
8210 case $host_cpu in
8211 hppa*64*)
8212 # +Z the default
8215 lt_prog_compiler_pic='-fPIC'
8217 esac
8220 interix[3-9]*)
8221 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8222 # Instead, we relocate shared libraries at runtime.
8225 msdosdjgpp*)
8226 # Just because we use GCC doesn't mean we suddenly get shared libraries
8227 # on systems that don't support them.
8228 lt_prog_compiler_can_build_shared=no
8229 enable_shared=no
8232 *nto* | *qnx*)
8233 # QNX uses GNU C++, but need to define -shared option too, otherwise
8234 # it will coredump.
8235 lt_prog_compiler_pic='-fPIC -shared'
8238 sysv4*MP*)
8239 if test -d /usr/nec; then
8240 lt_prog_compiler_pic=-Kconform_pic
8245 lt_prog_compiler_pic='-fPIC'
8247 esac
8249 case $cc_basename in
8250 nvcc*) # Cuda Compiler Driver 2.2
8251 lt_prog_compiler_wl='-Xlinker '
8252 lt_prog_compiler_pic='-Xcompiler -fPIC'
8254 esac
8255 else
8256 # PORTME Check for flag to pass linker flags through the system compiler.
8257 case $host_os in
8258 aix*)
8259 lt_prog_compiler_wl='-Wl,'
8260 if test "$host_cpu" = ia64; then
8261 # AIX 5 now supports IA64 processor
8262 lt_prog_compiler_static='-Bstatic'
8263 else
8264 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8268 mingw* | cygwin* | pw32* | os2* | cegcc*)
8269 # This hack is so that the source file can tell whether it is being
8270 # built for inclusion in a dll (and should export symbols for example).
8271 lt_prog_compiler_pic='-DDLL_EXPORT'
8274 hpux9* | hpux10* | hpux11*)
8275 lt_prog_compiler_wl='-Wl,'
8276 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8277 # not for PA HP-UX.
8278 case $host_cpu in
8279 hppa*64*|ia64*)
8280 # +Z the default
8283 lt_prog_compiler_pic='+Z'
8285 esac
8286 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8287 lt_prog_compiler_static='${wl}-a ${wl}archive'
8290 irix5* | irix6* | nonstopux*)
8291 lt_prog_compiler_wl='-Wl,'
8292 # PIC (with -KPIC) is the default.
8293 lt_prog_compiler_static='-non_shared'
8296 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8297 case $cc_basename in
8298 # old Intel for x86_64 which still supported -KPIC.
8299 ecc*)
8300 lt_prog_compiler_wl='-Wl,'
8301 lt_prog_compiler_pic='-KPIC'
8302 lt_prog_compiler_static='-static'
8304 # icc used to be incompatible with GCC.
8305 # ICC 10 doesn't accept -KPIC any more.
8306 icc* | ifort*)
8307 lt_prog_compiler_wl='-Wl,'
8308 lt_prog_compiler_pic='-fPIC'
8309 lt_prog_compiler_static='-static'
8311 # Lahey Fortran 8.1.
8312 lf95*)
8313 lt_prog_compiler_wl='-Wl,'
8314 lt_prog_compiler_pic='--shared'
8315 lt_prog_compiler_static='--static'
8317 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8318 # Portland Group compilers (*not* the Pentium gcc compiler,
8319 # which looks to be a dead project)
8320 lt_prog_compiler_wl='-Wl,'
8321 lt_prog_compiler_pic='-fpic'
8322 lt_prog_compiler_static='-Bstatic'
8324 ccc*)
8325 lt_prog_compiler_wl='-Wl,'
8326 # All Alpha code is PIC.
8327 lt_prog_compiler_static='-non_shared'
8329 xl* | bgxl* | bgf* | mpixl*)
8330 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8331 lt_prog_compiler_wl='-Wl,'
8332 lt_prog_compiler_pic='-qpic'
8333 lt_prog_compiler_static='-qstaticlink'
8336 case `$CC -V 2>&1 | sed 5q` in
8337 *Sun\ F* | *Sun*Fortran*)
8338 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8339 lt_prog_compiler_pic='-KPIC'
8340 lt_prog_compiler_static='-Bstatic'
8341 lt_prog_compiler_wl=''
8343 *Sun\ C*)
8344 # Sun C 5.9
8345 lt_prog_compiler_pic='-KPIC'
8346 lt_prog_compiler_static='-Bstatic'
8347 lt_prog_compiler_wl='-Wl,'
8349 esac
8351 esac
8354 newsos6)
8355 lt_prog_compiler_pic='-KPIC'
8356 lt_prog_compiler_static='-Bstatic'
8359 *nto* | *qnx*)
8360 # QNX uses GNU C++, but need to define -shared option too, otherwise
8361 # it will coredump.
8362 lt_prog_compiler_pic='-fPIC -shared'
8365 osf3* | osf4* | osf5*)
8366 lt_prog_compiler_wl='-Wl,'
8367 # All OSF/1 code is PIC.
8368 lt_prog_compiler_static='-non_shared'
8371 rdos*)
8372 lt_prog_compiler_static='-non_shared'
8375 solaris*)
8376 lt_prog_compiler_pic='-KPIC'
8377 lt_prog_compiler_static='-Bstatic'
8378 case $cc_basename in
8379 f77* | f90* | f95*)
8380 lt_prog_compiler_wl='-Qoption ld ';;
8382 lt_prog_compiler_wl='-Wl,';;
8383 esac
8386 sunos4*)
8387 lt_prog_compiler_wl='-Qoption ld '
8388 lt_prog_compiler_pic='-PIC'
8389 lt_prog_compiler_static='-Bstatic'
8392 sysv4 | sysv4.2uw2* | sysv4.3*)
8393 lt_prog_compiler_wl='-Wl,'
8394 lt_prog_compiler_pic='-KPIC'
8395 lt_prog_compiler_static='-Bstatic'
8398 sysv4*MP*)
8399 if test -d /usr/nec ;then
8400 lt_prog_compiler_pic='-Kconform_pic'
8401 lt_prog_compiler_static='-Bstatic'
8405 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8406 lt_prog_compiler_wl='-Wl,'
8407 lt_prog_compiler_pic='-KPIC'
8408 lt_prog_compiler_static='-Bstatic'
8411 unicos*)
8412 lt_prog_compiler_wl='-Wl,'
8413 lt_prog_compiler_can_build_shared=no
8416 uts4*)
8417 lt_prog_compiler_pic='-pic'
8418 lt_prog_compiler_static='-Bstatic'
8422 lt_prog_compiler_can_build_shared=no
8424 esac
8427 case $host_os in
8428 # For platforms which do not support PIC, -DPIC is meaningless:
8429 *djgpp*)
8430 lt_prog_compiler_pic=
8433 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8435 esac
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8437 $as_echo "$lt_prog_compiler_pic" >&6; }
8445 # Check to make sure the PIC flag actually works.
8447 if test -n "$lt_prog_compiler_pic"; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8449 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8450 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 lt_cv_prog_compiler_pic_works=no
8454 ac_outfile=conftest.$ac_objext
8455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8456 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8457 # Insert the option either (1) after the last *FLAGS variable, or
8458 # (2) before a word containing "conftest.", or (3) at the end.
8459 # Note that $ac_compile itself does not contain backslashes and begins
8460 # with a dollar sign (not a hyphen), so the echo should work correctly.
8461 # The option is referenced via a variable to avoid confusing sed.
8462 lt_compile=`echo "$ac_compile" | $SED \
8463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8465 -e 's:$: $lt_compiler_flag:'`
8466 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8467 (eval "$lt_compile" 2>conftest.err)
8468 ac_status=$?
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 if (exit $ac_status) && test -s "$ac_outfile"; then
8472 # The compiler can only warn and ignore the option if not recognized
8473 # So say no if there are warnings other than the usual output.
8474 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8477 lt_cv_prog_compiler_pic_works=yes
8480 $RM conftest*
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8484 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8486 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8487 case $lt_prog_compiler_pic in
8488 "" | " "*) ;;
8489 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8490 esac
8491 else
8492 lt_prog_compiler_pic=
8493 lt_prog_compiler_can_build_shared=no
8504 # Check to make sure the static flag actually works.
8506 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8508 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8509 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8510 $as_echo_n "(cached) " >&6
8511 else
8512 lt_cv_prog_compiler_static_works=no
8513 save_LDFLAGS="$LDFLAGS"
8514 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8515 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8516 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8517 # The linker can only warn and ignore the option if not recognized
8518 # So say no if there are warnings
8519 if test -s conftest.err; then
8520 # Append any errors to the config.log.
8521 cat conftest.err 1>&5
8522 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8524 if diff conftest.exp conftest.er2 >/dev/null; then
8525 lt_cv_prog_compiler_static_works=yes
8527 else
8528 lt_cv_prog_compiler_static_works=yes
8531 $RM -r conftest*
8532 LDFLAGS="$save_LDFLAGS"
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8536 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8538 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8540 else
8541 lt_prog_compiler_static=
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8551 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8552 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8553 $as_echo_n "(cached) " >&6
8554 else
8555 lt_cv_prog_compiler_c_o=no
8556 $RM -r conftest 2>/dev/null
8557 mkdir conftest
8558 cd conftest
8559 mkdir out
8560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8562 lt_compiler_flag="-o out/conftest2.$ac_objext"
8563 # Insert the option either (1) after the last *FLAGS variable, or
8564 # (2) before a word containing "conftest.", or (3) at the end.
8565 # Note that $ac_compile itself does not contain backslashes and begins
8566 # with a dollar sign (not a hyphen), so the echo should work correctly.
8567 lt_compile=`echo "$ac_compile" | $SED \
8568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8570 -e 's:$: $lt_compiler_flag:'`
8571 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8572 (eval "$lt_compile" 2>out/conftest.err)
8573 ac_status=$?
8574 cat out/conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8577 then
8578 # The compiler can only warn and ignore the option if not recognized
8579 # So say no if there are warnings
8580 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8581 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8582 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8583 lt_cv_prog_compiler_c_o=yes
8586 chmod u+w . 2>&5
8587 $RM conftest*
8588 # SGI C++ compiler will create directory out/ii_files/ for
8589 # template instantiation
8590 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8591 $RM out/* && rmdir out
8592 cd ..
8593 $RM -r conftest
8594 $RM conftest*
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8598 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8606 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8607 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8608 $as_echo_n "(cached) " >&6
8609 else
8610 lt_cv_prog_compiler_c_o=no
8611 $RM -r conftest 2>/dev/null
8612 mkdir conftest
8613 cd conftest
8614 mkdir out
8615 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8617 lt_compiler_flag="-o out/conftest2.$ac_objext"
8618 # Insert the option either (1) after the last *FLAGS variable, or
8619 # (2) before a word containing "conftest.", or (3) at the end.
8620 # Note that $ac_compile itself does not contain backslashes and begins
8621 # with a dollar sign (not a hyphen), so the echo should work correctly.
8622 lt_compile=`echo "$ac_compile" | $SED \
8623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8625 -e 's:$: $lt_compiler_flag:'`
8626 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8627 (eval "$lt_compile" 2>out/conftest.err)
8628 ac_status=$?
8629 cat out/conftest.err >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8632 then
8633 # The compiler can only warn and ignore the option if not recognized
8634 # So say no if there are warnings
8635 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8636 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8637 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8638 lt_cv_prog_compiler_c_o=yes
8641 chmod u+w . 2>&5
8642 $RM conftest*
8643 # SGI C++ compiler will create directory out/ii_files/ for
8644 # template instantiation
8645 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8646 $RM out/* && rmdir out
8647 cd ..
8648 $RM -r conftest
8649 $RM conftest*
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8653 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8658 hard_links="nottested"
8659 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8660 # do not overwrite the value of need_locks provided by the user
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8662 $as_echo_n "checking if we can lock with hard links... " >&6; }
8663 hard_links=yes
8664 $RM conftest*
8665 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8666 touch conftest.a
8667 ln conftest.a conftest.b 2>&5 || hard_links=no
8668 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8670 $as_echo "$hard_links" >&6; }
8671 if test "$hard_links" = no; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8673 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8674 need_locks=warn
8676 else
8677 need_locks=no
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8686 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8688 runpath_var=
8689 allow_undefined_flag=
8690 always_export_symbols=no
8691 archive_cmds=
8692 archive_expsym_cmds=
8693 compiler_needs_object=no
8694 enable_shared_with_static_runtimes=no
8695 export_dynamic_flag_spec=
8696 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8697 hardcode_automatic=no
8698 hardcode_direct=no
8699 hardcode_direct_absolute=no
8700 hardcode_libdir_flag_spec=
8701 hardcode_libdir_flag_spec_ld=
8702 hardcode_libdir_separator=
8703 hardcode_minus_L=no
8704 hardcode_shlibpath_var=unsupported
8705 inherit_rpath=no
8706 link_all_deplibs=unknown
8707 module_cmds=
8708 module_expsym_cmds=
8709 old_archive_from_new_cmds=
8710 old_archive_from_expsyms_cmds=
8711 thread_safe_flag_spec=
8712 whole_archive_flag_spec=
8713 # include_expsyms should be a list of space-separated symbols to be *always*
8714 # included in the symbol list
8715 include_expsyms=
8716 # exclude_expsyms can be an extended regexp of symbols to exclude
8717 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8718 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8719 # as well as any symbol that contains `d'.
8720 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8721 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8722 # platforms (ab)use it in PIC code, but their linkers get confused if
8723 # the symbol is explicitly referenced. Since portable code cannot
8724 # rely on this symbol name, it's probably fine to never include it in
8725 # preloaded symbol tables.
8726 # Exclude shared library initialization/finalization symbols.
8727 extract_expsyms_cmds=
8729 case $host_os in
8730 cygwin* | mingw* | pw32* | cegcc*)
8731 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8732 # When not using gcc, we currently assume that we are using
8733 # Microsoft Visual C++.
8734 if test "$GCC" != yes; then
8735 with_gnu_ld=no
8738 interix*)
8739 # we just hope/assume this is gcc and not c89 (= MSVC++)
8740 with_gnu_ld=yes
8742 openbsd*)
8743 with_gnu_ld=no
8745 esac
8747 ld_shlibs=yes
8749 # On some targets, GNU ld is compatible enough with the native linker
8750 # that we're better off using the native interface for both.
8751 lt_use_gnu_ld_interface=no
8752 if test "$with_gnu_ld" = yes; then
8753 case $host_os in
8754 aix*)
8755 # The AIX port of GNU ld has always aspired to compatibility
8756 # with the native linker. However, as the warning in the GNU ld
8757 # block says, versions before 2.19.5* couldn't really create working
8758 # shared libraries, regardless of the interface used.
8759 case `$LD -v 2>&1` in
8760 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8761 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8762 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8764 lt_use_gnu_ld_interface=yes
8766 esac
8769 lt_use_gnu_ld_interface=yes
8771 esac
8774 if test "$lt_use_gnu_ld_interface" = yes; then
8775 # If archive_cmds runs LD, not CC, wlarc should be empty
8776 wlarc='${wl}'
8778 # Set some defaults for GNU ld with shared library support. These
8779 # are reset later if shared libraries are not supported. Putting them
8780 # here allows them to be overridden if necessary.
8781 runpath_var=LD_RUN_PATH
8782 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8783 export_dynamic_flag_spec='${wl}--export-dynamic'
8784 # ancient GNU ld didn't support --whole-archive et. al.
8785 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8786 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8787 else
8788 whole_archive_flag_spec=
8790 supports_anon_versioning=no
8791 case `$LD -v 2>&1` in
8792 *GNU\ gold*) supports_anon_versioning=yes ;;
8793 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8794 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8795 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8796 *\ 2.11.*) ;; # other 2.11 versions
8797 *) supports_anon_versioning=yes ;;
8798 esac
8800 # See if GNU ld supports shared libraries.
8801 case $host_os in
8802 aix[3-9]*)
8803 # On AIX/PPC, the GNU linker is very broken
8804 if test "$host_cpu" != ia64; then
8805 ld_shlibs=no
8806 cat <<_LT_EOF 1>&2
8808 *** Warning: the GNU linker, at least up to release 2.19, is reported
8809 *** to be unable to reliably create shared libraries on AIX.
8810 *** Therefore, libtool is disabling shared libraries support. If you
8811 *** really care for shared libraries, you may want to install binutils
8812 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8813 *** You will then need to restart the configuration process.
8815 _LT_EOF
8819 amigaos*)
8820 case $host_cpu in
8821 powerpc)
8822 # see comment about AmigaOS4 .so support
8823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8824 archive_expsym_cmds=''
8826 m68k)
8827 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)'
8828 hardcode_libdir_flag_spec='-L$libdir'
8829 hardcode_minus_L=yes
8831 esac
8834 beos*)
8835 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8836 allow_undefined_flag=unsupported
8837 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8838 # support --undefined. This deserves some investigation. FIXME
8839 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8840 else
8841 ld_shlibs=no
8845 cygwin* | mingw* | pw32* | cegcc*)
8846 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8847 # as there is no search path for DLLs.
8848 hardcode_libdir_flag_spec='-L$libdir'
8849 export_dynamic_flag_spec='${wl}--export-all-symbols'
8850 allow_undefined_flag=unsupported
8851 always_export_symbols=no
8852 enable_shared_with_static_runtimes=yes
8853 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8855 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8856 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8857 # If the export-symbols file already is a .def file (1st line
8858 # is EXPORTS), use it as is; otherwise, prepend...
8859 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8860 cp $export_symbols $output_objdir/$soname.def;
8861 else
8862 echo EXPORTS > $output_objdir/$soname.def;
8863 cat $export_symbols >> $output_objdir/$soname.def;
8865 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8866 else
8867 ld_shlibs=no
8871 haiku*)
8872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8873 link_all_deplibs=yes
8876 interix[3-9]*)
8877 hardcode_direct=no
8878 hardcode_shlibpath_var=no
8879 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8880 export_dynamic_flag_spec='${wl}-E'
8881 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8882 # Instead, shared libraries are loaded at an image base (0x10000000 by
8883 # default) and relocated if they conflict, which is a slow very memory
8884 # consuming and fragmenting process. To avoid this, we pick a random,
8885 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8886 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8887 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8888 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'
8891 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8892 tmp_diet=no
8893 if test "$host_os" = linux-dietlibc; then
8894 case $cc_basename in
8895 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8896 esac
8898 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8899 && test "$tmp_diet" = no
8900 then
8901 tmp_addflag=' $pic_flag'
8902 tmp_sharedflag='-shared'
8903 case $cc_basename,$host_cpu in
8904 pgcc*) # Portland Group C compiler
8905 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'
8906 tmp_addflag=' $pic_flag'
8908 pgf77* | pgf90* | pgf95* | pgfortran*)
8909 # Portland Group f77 and f90 compilers
8910 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'
8911 tmp_addflag=' $pic_flag -Mnomain' ;;
8912 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8913 tmp_addflag=' -i_dynamic' ;;
8914 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8915 tmp_addflag=' -i_dynamic -nofor_main' ;;
8916 ifc* | ifort*) # Intel Fortran compiler
8917 tmp_addflag=' -nofor_main' ;;
8918 lf95*) # Lahey Fortran 8.1
8919 whole_archive_flag_spec=
8920 tmp_sharedflag='--shared' ;;
8921 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8922 tmp_sharedflag='-qmkshrobj'
8923 tmp_addflag= ;;
8924 nvcc*) # Cuda Compiler Driver 2.2
8925 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'
8926 compiler_needs_object=yes
8928 esac
8929 case `$CC -V 2>&1 | sed 5q` in
8930 *Sun\ C*) # Sun C 5.9
8931 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'
8932 compiler_needs_object=yes
8933 tmp_sharedflag='-G' ;;
8934 *Sun\ F*) # Sun Fortran 8.3
8935 tmp_sharedflag='-G' ;;
8936 esac
8937 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8939 if test "x$supports_anon_versioning" = xyes; then
8940 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8941 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8942 echo "local: *; };" >> $output_objdir/$libname.ver~
8943 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8946 case $cc_basename in
8947 xlf* | bgf* | bgxlf* | mpixlf*)
8948 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8949 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8950 hardcode_libdir_flag_spec=
8951 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8952 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8953 if test "x$supports_anon_versioning" = xyes; then
8954 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8955 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8956 echo "local: *; };" >> $output_objdir/$libname.ver~
8957 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8960 esac
8961 else
8962 ld_shlibs=no
8966 netbsd*)
8967 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8968 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8969 wlarc=
8970 else
8971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8972 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8976 solaris*)
8977 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8978 ld_shlibs=no
8979 cat <<_LT_EOF 1>&2
8981 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8982 *** create shared libraries on Solaris systems. Therefore, libtool
8983 *** is disabling shared libraries support. We urge you to upgrade GNU
8984 *** binutils to release 2.9.1 or newer. Another option is to modify
8985 *** your PATH or compiler configuration so that the native linker is
8986 *** used, and then restart.
8988 _LT_EOF
8989 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8991 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8992 else
8993 ld_shlibs=no
8997 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8998 case `$LD -v 2>&1` in
8999 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9000 ld_shlibs=no
9001 cat <<_LT_EOF 1>&2
9003 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9004 *** reliably create shared libraries on SCO systems. Therefore, libtool
9005 *** is disabling shared libraries support. We urge you to upgrade GNU
9006 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9007 *** your PATH or compiler configuration so that the native linker is
9008 *** used, and then restart.
9010 _LT_EOF
9013 # For security reasons, it is highly recommended that you always
9014 # use absolute paths for naming shared libraries, and exclude the
9015 # DT_RUNPATH tag from executables and libraries. But doing so
9016 # requires that you compile everything twice, which is a pain.
9017 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9020 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9021 else
9022 ld_shlibs=no
9025 esac
9028 sunos4*)
9029 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9030 wlarc=
9031 hardcode_direct=yes
9032 hardcode_shlibpath_var=no
9036 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9039 else
9040 ld_shlibs=no
9043 esac
9045 if test "$ld_shlibs" = no; then
9046 runpath_var=
9047 hardcode_libdir_flag_spec=
9048 export_dynamic_flag_spec=
9049 whole_archive_flag_spec=
9051 else
9052 # PORTME fill in a description of your system's linker (not GNU ld)
9053 case $host_os in
9054 aix3*)
9055 allow_undefined_flag=unsupported
9056 always_export_symbols=yes
9057 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'
9058 # Note: this linker hardcodes the directories in LIBPATH if there
9059 # are no directories specified by -L.
9060 hardcode_minus_L=yes
9061 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9062 # Neither direct hardcoding nor static linking is supported with a
9063 # broken collect2.
9064 hardcode_direct=unsupported
9068 aix[4-9]*)
9069 if test "$host_cpu" = ia64; then
9070 # On IA64, the linker does run time linking by default, so we don't
9071 # have to do anything special.
9072 aix_use_runtimelinking=no
9073 exp_sym_flag='-Bexport'
9074 no_entry_flag=""
9075 else
9076 # If we're using GNU nm, then we don't want the "-C" option.
9077 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9078 # Also, AIX nm treats weak defined symbols like other global
9079 # defined symbols, whereas GNU nm marks them as "W".
9080 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9081 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'
9082 else
9083 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'
9085 aix_use_runtimelinking=no
9087 # Test if we are trying to use run time linking or normal
9088 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9089 # need to do runtime linking.
9090 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9091 for ld_flag in $LDFLAGS; do
9092 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9093 aix_use_runtimelinking=yes
9094 break
9096 done
9098 esac
9100 exp_sym_flag='-bexport'
9101 no_entry_flag='-bnoentry'
9104 # When large executables or shared objects are built, AIX ld can
9105 # have problems creating the table of contents. If linking a library
9106 # or program results in "error TOC overflow" add -mminimal-toc to
9107 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9108 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9110 archive_cmds=''
9111 hardcode_direct=yes
9112 hardcode_direct_absolute=yes
9113 hardcode_libdir_separator=':'
9114 link_all_deplibs=yes
9115 file_list_spec='${wl}-f,'
9117 if test "$GCC" = yes; then
9118 case $host_os in aix4.[012]|aix4.[012].*)
9119 # We only want to do this on AIX 4.2 and lower, the check
9120 # below for broken collect2 doesn't work under 4.3+
9121 collect2name=`${CC} -print-prog-name=collect2`
9122 if test -f "$collect2name" &&
9123 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9124 then
9125 # We have reworked collect2
9127 else
9128 # We have old collect2
9129 hardcode_direct=unsupported
9130 # It fails to find uninstalled libraries when the uninstalled
9131 # path is not listed in the libpath. Setting hardcode_minus_L
9132 # to unsupported forces relinking
9133 hardcode_minus_L=yes
9134 hardcode_libdir_flag_spec='-L$libdir'
9135 hardcode_libdir_separator=
9138 esac
9139 shared_flag='-shared'
9140 if test "$aix_use_runtimelinking" = yes; then
9141 shared_flag="$shared_flag "'${wl}-G'
9143 else
9144 # not using gcc
9145 if test "$host_cpu" = ia64; then
9146 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9147 # chokes on -Wl,-G. The following line is correct:
9148 shared_flag='-G'
9149 else
9150 if test "$aix_use_runtimelinking" = yes; then
9151 shared_flag='${wl}-G'
9152 else
9153 shared_flag='${wl}-bM:SRE'
9158 export_dynamic_flag_spec='${wl}-bexpall'
9159 # It seems that -bexpall does not export symbols beginning with
9160 # underscore (_), so it is better to generate a list of symbols to export.
9161 always_export_symbols=yes
9162 if test "$aix_use_runtimelinking" = yes; then
9163 # Warning - without using the other runtime loading flags (-brtl),
9164 # -berok will link without error, but may produce a broken library.
9165 allow_undefined_flag='-berok'
9166 # Determine the default libpath from the value encoded in an
9167 # empty executable.
9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h. */
9172 main ()
9176 return 0;
9178 _ACEOF
9179 if ac_fn_c_try_link "$LINENO"; then :
9181 lt_aix_libpath_sed='
9182 /Import File Strings/,/^$/ {
9183 /^0/ {
9184 s/^0 *\(.*\)$/\1/
9188 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9189 # Check for a 64-bit object if we didn't find anything.
9190 if test -z "$aix_libpath"; then
9191 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9194 rm -f core conftest.err conftest.$ac_objext \
9195 conftest$ac_exeext conftest.$ac_ext
9196 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9198 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9199 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"
9200 else
9201 if test "$host_cpu" = ia64; then
9202 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9203 allow_undefined_flag="-z nodefs"
9204 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"
9205 else
9206 # Determine the default libpath from the value encoded in an
9207 # empty executable.
9208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209 /* end confdefs.h. */
9212 main ()
9216 return 0;
9218 _ACEOF
9219 if ac_fn_c_try_link "$LINENO"; then :
9221 lt_aix_libpath_sed='
9222 /Import File Strings/,/^$/ {
9223 /^0/ {
9224 s/^0 *\(.*\)$/\1/
9228 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9229 # Check for a 64-bit object if we didn't find anything.
9230 if test -z "$aix_libpath"; then
9231 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9234 rm -f core conftest.err conftest.$ac_objext \
9235 conftest$ac_exeext conftest.$ac_ext
9236 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9238 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9239 # Warning - without using the other run time loading flags,
9240 # -berok will link without error, but may produce a broken library.
9241 no_undefined_flag=' ${wl}-bernotok'
9242 allow_undefined_flag=' ${wl}-berok'
9243 if test "$with_gnu_ld" = yes; then
9244 # We only use this code for GNU lds that support --whole-archive.
9245 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9246 else
9247 # Exported symbols can be pulled into shared objects from archives
9248 whole_archive_flag_spec='$convenience'
9250 archive_cmds_need_lc=yes
9251 # This is similar to how AIX traditionally builds its shared libraries.
9252 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'
9257 amigaos*)
9258 case $host_cpu in
9259 powerpc)
9260 # see comment about AmigaOS4 .so support
9261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9262 archive_expsym_cmds=''
9264 m68k)
9265 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)'
9266 hardcode_libdir_flag_spec='-L$libdir'
9267 hardcode_minus_L=yes
9269 esac
9272 bsdi[45]*)
9273 export_dynamic_flag_spec=-rdynamic
9276 cygwin* | mingw* | pw32* | cegcc*)
9277 # When not using gcc, we currently assume that we are using
9278 # Microsoft Visual C++.
9279 # hardcode_libdir_flag_spec is actually meaningless, as there is
9280 # no search path for DLLs.
9281 hardcode_libdir_flag_spec=' '
9282 allow_undefined_flag=unsupported
9283 # Tell ltmain to make .lib files, not .a files.
9284 libext=lib
9285 # Tell ltmain to make .dll files, not .so files.
9286 shrext_cmds=".dll"
9287 # FIXME: Setting linknames here is a bad hack.
9288 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9289 # The linker will automatically build a .lib file if we build a DLL.
9290 old_archive_from_new_cmds='true'
9291 # FIXME: Should let the user specify the lib program.
9292 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9293 fix_srcfile_path='`cygpath -w "$srcfile"`'
9294 enable_shared_with_static_runtimes=yes
9297 darwin* | rhapsody*)
9300 archive_cmds_need_lc=no
9301 hardcode_direct=no
9302 hardcode_automatic=yes
9303 hardcode_shlibpath_var=unsupported
9304 if test "$lt_cv_ld_force_load" = "yes"; then
9305 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\"`'
9306 else
9307 whole_archive_flag_spec=''
9309 link_all_deplibs=yes
9310 allow_undefined_flag="$_lt_dar_allow_undefined"
9311 case $cc_basename in
9312 ifort*) _lt_dar_can_shared=yes ;;
9313 *) _lt_dar_can_shared=$GCC ;;
9314 esac
9315 if test "$_lt_dar_can_shared" = "yes"; then
9316 output_verbose_link_cmd=func_echo_all
9317 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9318 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9319 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}"
9320 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}"
9322 else
9323 ld_shlibs=no
9328 dgux*)
9329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330 hardcode_libdir_flag_spec='-L$libdir'
9331 hardcode_shlibpath_var=no
9334 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9335 # support. Future versions do this automatically, but an explicit c++rt0.o
9336 # does not break anything, and helps significantly (at the cost of a little
9337 # extra space).
9338 freebsd2.2*)
9339 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9340 hardcode_libdir_flag_spec='-R$libdir'
9341 hardcode_direct=yes
9342 hardcode_shlibpath_var=no
9345 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9346 freebsd2.*)
9347 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9348 hardcode_direct=yes
9349 hardcode_minus_L=yes
9350 hardcode_shlibpath_var=no
9353 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9354 freebsd* | dragonfly*)
9355 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9356 hardcode_libdir_flag_spec='-R$libdir'
9357 hardcode_direct=yes
9358 hardcode_shlibpath_var=no
9361 hpux9*)
9362 if test "$GCC" = yes; then
9363 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'
9364 else
9365 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'
9367 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9368 hardcode_libdir_separator=:
9369 hardcode_direct=yes
9371 # hardcode_minus_L: Not really in the search PATH,
9372 # but as the default location of the library.
9373 hardcode_minus_L=yes
9374 export_dynamic_flag_spec='${wl}-E'
9377 hpux10*)
9378 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9379 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9380 else
9381 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9383 if test "$with_gnu_ld" = no; then
9384 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9385 hardcode_libdir_flag_spec_ld='+b $libdir'
9386 hardcode_libdir_separator=:
9387 hardcode_direct=yes
9388 hardcode_direct_absolute=yes
9389 export_dynamic_flag_spec='${wl}-E'
9390 # hardcode_minus_L: Not really in the search PATH,
9391 # but as the default location of the library.
9392 hardcode_minus_L=yes
9396 hpux11*)
9397 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9398 case $host_cpu in
9399 hppa*64*)
9400 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9402 ia64*)
9403 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9406 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9408 esac
9409 else
9410 case $host_cpu in
9411 hppa*64*)
9412 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9414 ia64*)
9415 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9419 # Older versions of the 11.00 compiler do not understand -b yet
9420 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9422 $as_echo_n "checking if $CC understands -b... " >&6; }
9423 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9424 $as_echo_n "(cached) " >&6
9425 else
9426 lt_cv_prog_compiler__b=no
9427 save_LDFLAGS="$LDFLAGS"
9428 LDFLAGS="$LDFLAGS -b"
9429 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9430 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9431 # The linker can only warn and ignore the option if not recognized
9432 # So say no if there are warnings
9433 if test -s conftest.err; then
9434 # Append any errors to the config.log.
9435 cat conftest.err 1>&5
9436 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9438 if diff conftest.exp conftest.er2 >/dev/null; then
9439 lt_cv_prog_compiler__b=yes
9441 else
9442 lt_cv_prog_compiler__b=yes
9445 $RM -r conftest*
9446 LDFLAGS="$save_LDFLAGS"
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9450 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9452 if test x"$lt_cv_prog_compiler__b" = xyes; then
9453 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9454 else
9455 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9459 esac
9461 if test "$with_gnu_ld" = no; then
9462 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9463 hardcode_libdir_separator=:
9465 case $host_cpu in
9466 hppa*64*|ia64*)
9467 hardcode_direct=no
9468 hardcode_shlibpath_var=no
9471 hardcode_direct=yes
9472 hardcode_direct_absolute=yes
9473 export_dynamic_flag_spec='${wl}-E'
9475 # hardcode_minus_L: Not really in the search PATH,
9476 # but as the default location of the library.
9477 hardcode_minus_L=yes
9479 esac
9483 irix5* | irix6* | nonstopux*)
9484 if test "$GCC" = yes; then
9485 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'
9486 # Try to use the -exported_symbol ld option, if it does not
9487 # work, assume that -exports_file does not work either and
9488 # implicitly export all symbols.
9489 save_LDFLAGS="$LDFLAGS"
9490 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492 /* end confdefs.h. */
9493 int foo(void) {}
9494 _ACEOF
9495 if ac_fn_c_try_link "$LINENO"; then :
9496 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'
9499 rm -f core conftest.err conftest.$ac_objext \
9500 conftest$ac_exeext conftest.$ac_ext
9501 LDFLAGS="$save_LDFLAGS"
9502 else
9503 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'
9504 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'
9506 archive_cmds_need_lc='no'
9507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9508 hardcode_libdir_separator=:
9509 inherit_rpath=yes
9510 link_all_deplibs=yes
9513 netbsd*)
9514 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9515 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9516 else
9517 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9519 hardcode_libdir_flag_spec='-R$libdir'
9520 hardcode_direct=yes
9521 hardcode_shlibpath_var=no
9524 newsos6)
9525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9526 hardcode_direct=yes
9527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9528 hardcode_libdir_separator=:
9529 hardcode_shlibpath_var=no
9532 *nto* | *qnx*)
9535 openbsd*)
9536 if test -f /usr/libexec/ld.so; then
9537 hardcode_direct=yes
9538 hardcode_shlibpath_var=no
9539 hardcode_direct_absolute=yes
9540 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9541 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9542 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9543 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9544 export_dynamic_flag_spec='${wl}-E'
9545 else
9546 case $host_os in
9547 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9548 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9549 hardcode_libdir_flag_spec='-R$libdir'
9552 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9553 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9555 esac
9557 else
9558 ld_shlibs=no
9562 os2*)
9563 hardcode_libdir_flag_spec='-L$libdir'
9564 hardcode_minus_L=yes
9565 allow_undefined_flag=unsupported
9566 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'
9567 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9570 osf3*)
9571 if test "$GCC" = yes; then
9572 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9573 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'
9574 else
9575 allow_undefined_flag=' -expect_unresolved \*'
9576 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'
9578 archive_cmds_need_lc='no'
9579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9580 hardcode_libdir_separator=:
9583 osf4* | osf5*) # as osf3* with the addition of -msym flag
9584 if test "$GCC" = yes; then
9585 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9586 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'
9587 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9588 else
9589 allow_undefined_flag=' -expect_unresolved \*'
9590 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'
9591 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~
9592 $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'
9594 # Both c and cxx compiler support -rpath directly
9595 hardcode_libdir_flag_spec='-rpath $libdir'
9597 archive_cmds_need_lc='no'
9598 hardcode_libdir_separator=:
9601 solaris*)
9602 no_undefined_flag=' -z defs'
9603 if test "$GCC" = yes; then
9604 wlarc='${wl}'
9605 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9606 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9607 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9608 else
9609 case `$CC -V 2>&1` in
9610 *"Compilers 5.0"*)
9611 wlarc=''
9612 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9613 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9614 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9617 wlarc='${wl}'
9618 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9619 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9620 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9622 esac
9624 hardcode_libdir_flag_spec='-R$libdir'
9625 hardcode_shlibpath_var=no
9626 case $host_os in
9627 solaris2.[0-5] | solaris2.[0-5].*) ;;
9629 # The compiler driver will combine and reorder linker options,
9630 # but understands `-z linker_flag'. GCC discards it without `$wl',
9631 # but is careful enough not to reorder.
9632 # Supported since Solaris 2.6 (maybe 2.5.1?)
9633 if test "$GCC" = yes; then
9634 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9635 else
9636 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9639 esac
9640 link_all_deplibs=yes
9643 sunos4*)
9644 if test "x$host_vendor" = xsequent; then
9645 # Use $CC to link under sequent, because it throws in some extra .o
9646 # files that make .init and .fini sections work.
9647 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9648 else
9649 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9651 hardcode_libdir_flag_spec='-L$libdir'
9652 hardcode_direct=yes
9653 hardcode_minus_L=yes
9654 hardcode_shlibpath_var=no
9657 sysv4)
9658 case $host_vendor in
9659 sni)
9660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9661 hardcode_direct=yes # is this really true???
9663 siemens)
9664 ## LD is ld it makes a PLAMLIB
9665 ## CC just makes a GrossModule.
9666 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9667 reload_cmds='$CC -r -o $output$reload_objs'
9668 hardcode_direct=no
9670 motorola)
9671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9672 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9674 esac
9675 runpath_var='LD_RUN_PATH'
9676 hardcode_shlibpath_var=no
9679 sysv4.3*)
9680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9681 hardcode_shlibpath_var=no
9682 export_dynamic_flag_spec='-Bexport'
9685 sysv4*MP*)
9686 if test -d /usr/nec; then
9687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9688 hardcode_shlibpath_var=no
9689 runpath_var=LD_RUN_PATH
9690 hardcode_runpath_var=yes
9691 ld_shlibs=yes
9695 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9696 no_undefined_flag='${wl}-z,text'
9697 archive_cmds_need_lc=no
9698 hardcode_shlibpath_var=no
9699 runpath_var='LD_RUN_PATH'
9701 if test "$GCC" = yes; then
9702 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9703 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9704 else
9705 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9706 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9710 sysv5* | sco3.2v5* | sco5v6*)
9711 # Note: We can NOT use -z defs as we might desire, because we do not
9712 # link with -lc, and that would cause any symbols used from libc to
9713 # always be unresolved, which means just about no library would
9714 # ever link correctly. If we're not using GNU ld we use -z text
9715 # though, which does catch some bad symbols but isn't as heavy-handed
9716 # as -z defs.
9717 no_undefined_flag='${wl}-z,text'
9718 allow_undefined_flag='${wl}-z,nodefs'
9719 archive_cmds_need_lc=no
9720 hardcode_shlibpath_var=no
9721 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9722 hardcode_libdir_separator=':'
9723 link_all_deplibs=yes
9724 export_dynamic_flag_spec='${wl}-Bexport'
9725 runpath_var='LD_RUN_PATH'
9727 if test "$GCC" = yes; then
9728 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9729 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9730 else
9731 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9732 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9736 uts4*)
9737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9738 hardcode_libdir_flag_spec='-L$libdir'
9739 hardcode_shlibpath_var=no
9743 ld_shlibs=no
9745 esac
9747 if test x$host_vendor = xsni; then
9748 case $host in
9749 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9750 export_dynamic_flag_spec='${wl}-Blargedynsym'
9752 esac
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9757 $as_echo "$ld_shlibs" >&6; }
9758 test "$ld_shlibs" = no && can_build_shared=no
9760 with_gnu_ld=$with_gnu_ld
9777 # Do we need to explicitly link libc?
9779 case "x$archive_cmds_need_lc" in
9780 x|xyes)
9781 # Assume -lc should be added
9782 archive_cmds_need_lc=yes
9784 if test "$enable_shared" = yes && test "$GCC" = yes; then
9785 case $archive_cmds in
9786 *'~'*)
9787 # FIXME: we may have to deal with multi-command sequences.
9789 '$CC '*)
9790 # Test whether the compiler implicitly links with -lc since on some
9791 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9792 # to ld, don't add -lc before -lgcc.
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9794 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9795 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9796 $as_echo_n "(cached) " >&6
9797 else
9798 $RM conftest*
9799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9802 (eval $ac_compile) 2>&5
9803 ac_status=$?
9804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9805 test $ac_status = 0; } 2>conftest.err; then
9806 soname=conftest
9807 lib=conftest
9808 libobjs=conftest.$ac_objext
9809 deplibs=
9810 wl=$lt_prog_compiler_wl
9811 pic_flag=$lt_prog_compiler_pic
9812 compiler_flags=-v
9813 linker_flags=-v
9814 verstring=
9815 output_objdir=.
9816 libname=conftest
9817 lt_save_allow_undefined_flag=$allow_undefined_flag
9818 allow_undefined_flag=
9819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9820 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9821 ac_status=$?
9822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9823 test $ac_status = 0; }
9824 then
9825 lt_cv_archive_cmds_need_lc=no
9826 else
9827 lt_cv_archive_cmds_need_lc=yes
9829 allow_undefined_flag=$lt_save_allow_undefined_flag
9830 else
9831 cat conftest.err 1>&5
9833 $RM conftest*
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9837 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9838 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9840 esac
9843 esac
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10002 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10004 if test "$GCC" = yes; then
10005 case $host_os in
10006 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10007 *) lt_awk_arg="/^libraries:/" ;;
10008 esac
10009 case $host_os in
10010 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10011 *) lt_sed_strip_eq="s,=/,/,g" ;;
10012 esac
10013 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10014 case $lt_search_path_spec in
10015 *\;*)
10016 # if the path contains ";" then we assume it to be the separator
10017 # otherwise default to the standard path separator (i.e. ":") - it is
10018 # assumed that no part of a normal pathname contains ";" but that should
10019 # okay in the real world where ";" in dirpaths is itself problematic.
10020 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10023 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10025 esac
10026 # Ok, now we have the path, separated by spaces, we can step through it
10027 # and add multilib dir if necessary.
10028 lt_tmp_lt_search_path_spec=
10029 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10030 for lt_sys_path in $lt_search_path_spec; do
10031 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10032 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10033 else
10034 test -d "$lt_sys_path" && \
10035 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10037 done
10038 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10039 BEGIN {RS=" "; FS="/|\n";} {
10040 lt_foo="";
10041 lt_count=0;
10042 for (lt_i = NF; lt_i > 0; lt_i--) {
10043 if ($lt_i != "" && $lt_i != ".") {
10044 if ($lt_i == "..") {
10045 lt_count++;
10046 } else {
10047 if (lt_count == 0) {
10048 lt_foo="/" $lt_i lt_foo;
10049 } else {
10050 lt_count--;
10055 if (lt_foo != "") { lt_freq[lt_foo]++; }
10056 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10058 # AWK program above erroneously prepends '/' to C:/dos/paths
10059 # for these hosts.
10060 case $host_os in
10061 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10062 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10063 esac
10064 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10065 else
10066 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10068 library_names_spec=
10069 libname_spec='lib$name'
10070 soname_spec=
10071 shrext_cmds=".so"
10072 postinstall_cmds=
10073 postuninstall_cmds=
10074 finish_cmds=
10075 finish_eval=
10076 shlibpath_var=
10077 shlibpath_overrides_runpath=unknown
10078 version_type=none
10079 dynamic_linker="$host_os ld.so"
10080 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10081 need_lib_prefix=unknown
10082 hardcode_into_libs=no
10084 # when you set need_version to no, make sure it does not cause -set_version
10085 # flags to be left without arguments
10086 need_version=unknown
10088 case $host_os in
10089 aix3*)
10090 version_type=linux
10091 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10092 shlibpath_var=LIBPATH
10094 # AIX 3 has no versioning support, so we append a major version to the name.
10095 soname_spec='${libname}${release}${shared_ext}$major'
10098 aix[4-9]*)
10099 version_type=linux
10100 need_lib_prefix=no
10101 need_version=no
10102 hardcode_into_libs=yes
10103 if test "$host_cpu" = ia64; then
10104 # AIX 5 supports IA64
10105 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10106 shlibpath_var=LD_LIBRARY_PATH
10107 else
10108 # With GCC up to 2.95.x, collect2 would create an import file
10109 # for dependence libraries. The import file would start with
10110 # the line `#! .'. This would cause the generated library to
10111 # depend on `.', always an invalid library. This was fixed in
10112 # development snapshots of GCC prior to 3.0.
10113 case $host_os in
10114 aix4 | aix4.[01] | aix4.[01].*)
10115 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10116 echo ' yes '
10117 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10119 else
10120 can_build_shared=no
10123 esac
10124 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10125 # soname into executable. Probably we can add versioning support to
10126 # collect2, so additional links can be useful in future.
10127 if test "$aix_use_runtimelinking" = yes; then
10128 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10129 # instead of lib<name>.a to let people know that these are not
10130 # typical AIX shared libraries.
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132 else
10133 # We preserve .a as extension for shared libraries through AIX4.2
10134 # and later when we are not doing run time linking.
10135 library_names_spec='${libname}${release}.a $libname.a'
10136 soname_spec='${libname}${release}${shared_ext}$major'
10138 shlibpath_var=LIBPATH
10142 amigaos*)
10143 case $host_cpu in
10144 powerpc)
10145 # Since July 2007 AmigaOS4 officially supports .so libraries.
10146 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10149 m68k)
10150 library_names_spec='$libname.ixlibrary $libname.a'
10151 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10152 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'
10154 esac
10157 beos*)
10158 library_names_spec='${libname}${shared_ext}'
10159 dynamic_linker="$host_os ld.so"
10160 shlibpath_var=LIBRARY_PATH
10163 bsdi[45]*)
10164 version_type=linux
10165 need_version=no
10166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10167 soname_spec='${libname}${release}${shared_ext}$major'
10168 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10169 shlibpath_var=LD_LIBRARY_PATH
10170 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10171 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10172 # the default ld.so.conf also contains /usr/contrib/lib and
10173 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10174 # libtool to hard-code these into programs
10177 cygwin* | mingw* | pw32* | cegcc*)
10178 version_type=windows
10179 shrext_cmds=".dll"
10180 need_version=no
10181 need_lib_prefix=no
10183 case $GCC,$host_os in
10184 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10185 library_names_spec='$libname.dll.a'
10186 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10187 postinstall_cmds='base_file=`basename \${file}`~
10188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10189 dldir=$destdir/`dirname \$dlpath`~
10190 test -d \$dldir || mkdir -p \$dldir~
10191 $install_prog $dir/$dlname \$dldir/$dlname~
10192 chmod a+x \$dldir/$dlname~
10193 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10194 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10196 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10197 dlpath=$dir/\$dldll~
10198 $RM \$dlpath'
10199 shlibpath_overrides_runpath=yes
10201 case $host_os in
10202 cygwin*)
10203 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10204 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10206 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10208 mingw* | cegcc*)
10209 # MinGW DLLs use traditional 'lib' prefix
10210 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10212 pw32*)
10213 # pw32 DLLs use 'pw' prefix rather than 'lib'
10214 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10216 esac
10220 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10222 esac
10223 dynamic_linker='Win32 ld.exe'
10224 # FIXME: first we should search . and the directory the executable is in
10225 shlibpath_var=PATH
10228 darwin* | rhapsody*)
10229 dynamic_linker="$host_os dyld"
10230 version_type=darwin
10231 need_lib_prefix=no
10232 need_version=no
10233 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10234 soname_spec='${libname}${release}${major}$shared_ext'
10235 shlibpath_overrides_runpath=yes
10236 shlibpath_var=DYLD_LIBRARY_PATH
10237 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10239 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10240 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10243 dgux*)
10244 version_type=linux
10245 need_lib_prefix=no
10246 need_version=no
10247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10248 soname_spec='${libname}${release}${shared_ext}$major'
10249 shlibpath_var=LD_LIBRARY_PATH
10252 freebsd* | dragonfly*)
10253 # DragonFly does not have aout. When/if they implement a new
10254 # versioning mechanism, adjust this.
10255 if test -x /usr/bin/objformat; then
10256 objformat=`/usr/bin/objformat`
10257 else
10258 case $host_os in
10259 freebsd[23].*) objformat=aout ;;
10260 *) objformat=elf ;;
10261 esac
10263 version_type=freebsd-$objformat
10264 case $version_type in
10265 freebsd-elf*)
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10267 need_version=no
10268 need_lib_prefix=no
10270 freebsd-*)
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10272 need_version=yes
10274 esac
10275 shlibpath_var=LD_LIBRARY_PATH
10276 case $host_os in
10277 freebsd2.*)
10278 shlibpath_overrides_runpath=yes
10280 freebsd3.[01]* | freebsdelf3.[01]*)
10281 shlibpath_overrides_runpath=yes
10282 hardcode_into_libs=yes
10284 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10285 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10286 shlibpath_overrides_runpath=no
10287 hardcode_into_libs=yes
10289 *) # from 4.6 on, and DragonFly
10290 shlibpath_overrides_runpath=yes
10291 hardcode_into_libs=yes
10293 esac
10296 gnu*)
10297 version_type=linux
10298 need_lib_prefix=no
10299 need_version=no
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10301 soname_spec='${libname}${release}${shared_ext}$major'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 hardcode_into_libs=yes
10306 haiku*)
10307 version_type=linux
10308 need_lib_prefix=no
10309 need_version=no
10310 dynamic_linker="$host_os runtime_loader"
10311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10312 soname_spec='${libname}${release}${shared_ext}$major'
10313 shlibpath_var=LIBRARY_PATH
10314 shlibpath_overrides_runpath=yes
10315 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10316 hardcode_into_libs=yes
10319 hpux9* | hpux10* | hpux11*)
10320 # Give a soname corresponding to the major version so that dld.sl refuses to
10321 # link against other versions.
10322 version_type=sunos
10323 need_lib_prefix=no
10324 need_version=no
10325 case $host_cpu in
10326 ia64*)
10327 shrext_cmds='.so'
10328 hardcode_into_libs=yes
10329 dynamic_linker="$host_os dld.so"
10330 shlibpath_var=LD_LIBRARY_PATH
10331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 if test "X$HPUX_IA64_MODE" = X32; then
10335 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10336 else
10337 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10341 hppa*64*)
10342 shrext_cmds='.sl'
10343 hardcode_into_libs=yes
10344 dynamic_linker="$host_os dld.sl"
10345 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10353 shrext_cmds='.sl'
10354 dynamic_linker="$host_os dld.sl"
10355 shlibpath_var=SHLIB_PATH
10356 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10360 esac
10361 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10362 postinstall_cmds='chmod 555 $lib'
10363 # or fails outright, so override atomically:
10364 install_override_mode=555
10367 interix[3-9]*)
10368 version_type=linux
10369 need_lib_prefix=no
10370 need_version=no
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10372 soname_spec='${libname}${release}${shared_ext}$major'
10373 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10374 shlibpath_var=LD_LIBRARY_PATH
10375 shlibpath_overrides_runpath=no
10376 hardcode_into_libs=yes
10379 irix5* | irix6* | nonstopux*)
10380 case $host_os in
10381 nonstopux*) version_type=nonstopux ;;
10383 if test "$lt_cv_prog_gnu_ld" = yes; then
10384 version_type=linux
10385 else
10386 version_type=irix
10387 fi ;;
10388 esac
10389 need_lib_prefix=no
10390 need_version=no
10391 soname_spec='${libname}${release}${shared_ext}$major'
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10393 case $host_os in
10394 irix5* | nonstopux*)
10395 libsuff= shlibsuff=
10398 case $LD in # libtool.m4 will add one of these switches to LD
10399 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10400 libsuff= shlibsuff= libmagic=32-bit;;
10401 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10402 libsuff=32 shlibsuff=N32 libmagic=N32;;
10403 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10404 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10405 *) libsuff= shlibsuff= libmagic=never-match;;
10406 esac
10408 esac
10409 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10410 shlibpath_overrides_runpath=no
10411 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10412 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10413 hardcode_into_libs=yes
10416 # No shared lib support for Linux oldld, aout, or coff.
10417 linux*oldld* | linux*aout* | linux*coff*)
10418 dynamic_linker=no
10421 # This must be Linux ELF.
10422 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10423 version_type=linux
10424 need_lib_prefix=no
10425 need_version=no
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427 soname_spec='${libname}${release}${shared_ext}$major'
10428 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10429 shlibpath_var=LD_LIBRARY_PATH
10430 shlibpath_overrides_runpath=no
10432 # Some binutils ld are patched to set DT_RUNPATH
10433 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10434 $as_echo_n "(cached) " >&6
10435 else
10436 lt_cv_shlibpath_overrides_runpath=no
10437 save_LDFLAGS=$LDFLAGS
10438 save_libdir=$libdir
10439 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10440 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h. */
10445 main ()
10449 return 0;
10451 _ACEOF
10452 if ac_fn_c_try_link "$LINENO"; then :
10453 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10454 lt_cv_shlibpath_overrides_runpath=yes
10457 rm -f core conftest.err conftest.$ac_objext \
10458 conftest$ac_exeext conftest.$ac_ext
10459 LDFLAGS=$save_LDFLAGS
10460 libdir=$save_libdir
10464 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10466 # This implies no fast_install, which is unacceptable.
10467 # Some rework will be needed to allow for fast_install
10468 # before this can be enabled.
10469 hardcode_into_libs=yes
10471 # Append ld.so.conf contents to the search path
10472 if test -f /etc/ld.so.conf; then
10473 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' ' '`
10474 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10477 # We used to test for /lib/ld.so.1 and disable shared libraries on
10478 # powerpc, because MkLinux only supported shared libraries with the
10479 # GNU dynamic linker. Since this was broken with cross compilers,
10480 # most powerpc-linux boxes support dynamic linking these days and
10481 # people can always --disable-shared, the test was removed, and we
10482 # assume the GNU/Linux dynamic linker is in use.
10483 dynamic_linker='GNU/Linux ld.so'
10486 netbsd*)
10487 version_type=sunos
10488 need_lib_prefix=no
10489 need_version=no
10490 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10493 dynamic_linker='NetBSD (a.out) ld.so'
10494 else
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10496 soname_spec='${libname}${release}${shared_ext}$major'
10497 dynamic_linker='NetBSD ld.elf_so'
10499 shlibpath_var=LD_LIBRARY_PATH
10500 shlibpath_overrides_runpath=yes
10501 hardcode_into_libs=yes
10504 newsos6)
10505 version_type=linux
10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10507 shlibpath_var=LD_LIBRARY_PATH
10508 shlibpath_overrides_runpath=yes
10511 *nto* | *qnx*)
10512 version_type=qnx
10513 need_lib_prefix=no
10514 need_version=no
10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10516 soname_spec='${libname}${release}${shared_ext}$major'
10517 shlibpath_var=LD_LIBRARY_PATH
10518 shlibpath_overrides_runpath=no
10519 hardcode_into_libs=yes
10520 dynamic_linker='ldqnx.so'
10523 openbsd*)
10524 version_type=sunos
10525 sys_lib_dlsearch_path_spec="/usr/lib"
10526 need_lib_prefix=no
10527 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10528 case $host_os in
10529 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10530 *) need_version=no ;;
10531 esac
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10534 shlibpath_var=LD_LIBRARY_PATH
10535 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10536 case $host_os in
10537 openbsd2.[89] | openbsd2.[89].*)
10538 shlibpath_overrides_runpath=no
10541 shlibpath_overrides_runpath=yes
10543 esac
10544 else
10545 shlibpath_overrides_runpath=yes
10549 os2*)
10550 libname_spec='$name'
10551 shrext_cmds=".dll"
10552 need_lib_prefix=no
10553 library_names_spec='$libname${shared_ext} $libname.a'
10554 dynamic_linker='OS/2 ld.exe'
10555 shlibpath_var=LIBPATH
10558 osf3* | osf4* | osf5*)
10559 version_type=osf
10560 need_lib_prefix=no
10561 need_version=no
10562 soname_spec='${libname}${release}${shared_ext}$major'
10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564 shlibpath_var=LD_LIBRARY_PATH
10565 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10566 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10569 rdos*)
10570 dynamic_linker=no
10573 solaris*)
10574 version_type=linux
10575 need_lib_prefix=no
10576 need_version=no
10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578 soname_spec='${libname}${release}${shared_ext}$major'
10579 shlibpath_var=LD_LIBRARY_PATH
10580 shlibpath_overrides_runpath=yes
10581 hardcode_into_libs=yes
10582 # ldd complains unless libraries are executable
10583 postinstall_cmds='chmod +x $lib'
10586 sunos4*)
10587 version_type=sunos
10588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10589 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10590 shlibpath_var=LD_LIBRARY_PATH
10591 shlibpath_overrides_runpath=yes
10592 if test "$with_gnu_ld" = yes; then
10593 need_lib_prefix=no
10595 need_version=yes
10598 sysv4 | sysv4.3*)
10599 version_type=linux
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10601 soname_spec='${libname}${release}${shared_ext}$major'
10602 shlibpath_var=LD_LIBRARY_PATH
10603 case $host_vendor in
10604 sni)
10605 shlibpath_overrides_runpath=no
10606 need_lib_prefix=no
10607 runpath_var=LD_RUN_PATH
10609 siemens)
10610 need_lib_prefix=no
10612 motorola)
10613 need_lib_prefix=no
10614 need_version=no
10615 shlibpath_overrides_runpath=no
10616 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10618 esac
10621 sysv4*MP*)
10622 if test -d /usr/nec ;then
10623 version_type=linux
10624 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10625 soname_spec='$libname${shared_ext}.$major'
10626 shlibpath_var=LD_LIBRARY_PATH
10630 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10631 version_type=freebsd-elf
10632 need_lib_prefix=no
10633 need_version=no
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10635 soname_spec='${libname}${release}${shared_ext}$major'
10636 shlibpath_var=LD_LIBRARY_PATH
10637 shlibpath_overrides_runpath=yes
10638 hardcode_into_libs=yes
10639 if test "$with_gnu_ld" = yes; then
10640 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10641 else
10642 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10643 case $host_os in
10644 sco3.2v5*)
10645 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10647 esac
10649 sys_lib_dlsearch_path_spec='/usr/lib'
10652 tpf*)
10653 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10654 version_type=linux
10655 need_lib_prefix=no
10656 need_version=no
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10658 shlibpath_var=LD_LIBRARY_PATH
10659 shlibpath_overrides_runpath=no
10660 hardcode_into_libs=yes
10663 uts4*)
10664 version_type=linux
10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10666 soname_spec='${libname}${release}${shared_ext}$major'
10667 shlibpath_var=LD_LIBRARY_PATH
10671 dynamic_linker=no
10673 esac
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10675 $as_echo "$dynamic_linker" >&6; }
10676 test "$dynamic_linker" = no && can_build_shared=no
10678 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10679 if test "$GCC" = yes; then
10680 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10683 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10684 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10686 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10687 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10782 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10783 hardcode_action=
10784 if test -n "$hardcode_libdir_flag_spec" ||
10785 test -n "$runpath_var" ||
10786 test "X$hardcode_automatic" = "Xyes" ; then
10788 # We can hardcode non-existent directories.
10789 if test "$hardcode_direct" != no &&
10790 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10791 # have to relink, otherwise we might link with an installed library
10792 # when we should be linking with a yet-to-be-installed one
10793 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10794 test "$hardcode_minus_L" != no; then
10795 # Linking always hardcodes the temporary library directory.
10796 hardcode_action=relink
10797 else
10798 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10799 hardcode_action=immediate
10801 else
10802 # We cannot hardcode anything, or else we can only hardcode existing
10803 # directories.
10804 hardcode_action=unsupported
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10807 $as_echo "$hardcode_action" >&6; }
10809 if test "$hardcode_action" = relink ||
10810 test "$inherit_rpath" = yes; then
10811 # Fast installation is not supported
10812 enable_fast_install=no
10813 elif test "$shlibpath_overrides_runpath" = yes ||
10814 test "$enable_shared" = no; then
10815 # Fast installation is not necessary
10816 enable_fast_install=needless
10824 if test "x$enable_dlopen" != xyes; then
10825 enable_dlopen=unknown
10826 enable_dlopen_self=unknown
10827 enable_dlopen_self_static=unknown
10828 else
10829 lt_cv_dlopen=no
10830 lt_cv_dlopen_libs=
10832 case $host_os in
10833 beos*)
10834 lt_cv_dlopen="load_add_on"
10835 lt_cv_dlopen_libs=
10836 lt_cv_dlopen_self=yes
10839 mingw* | pw32* | cegcc*)
10840 lt_cv_dlopen="LoadLibrary"
10841 lt_cv_dlopen_libs=
10844 cygwin*)
10845 lt_cv_dlopen="dlopen"
10846 lt_cv_dlopen_libs=
10849 darwin*)
10850 # if libdl is installed we need to link against it
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10852 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10853 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10854 $as_echo_n "(cached) " >&6
10855 else
10856 ac_check_lib_save_LIBS=$LIBS
10857 LIBS="-ldl $LIBS"
10858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859 /* end confdefs.h. */
10861 /* Override any GCC internal prototype to avoid an error.
10862 Use char because int might match the return type of a GCC
10863 builtin and then its argument prototype would still apply. */
10864 #ifdef __cplusplus
10865 extern "C"
10866 #endif
10867 char dlopen ();
10869 main ()
10871 return dlopen ();
10873 return 0;
10875 _ACEOF
10876 if ac_fn_c_try_link "$LINENO"; then :
10877 ac_cv_lib_dl_dlopen=yes
10878 else
10879 ac_cv_lib_dl_dlopen=no
10881 rm -f core conftest.err conftest.$ac_objext \
10882 conftest$ac_exeext conftest.$ac_ext
10883 LIBS=$ac_check_lib_save_LIBS
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10886 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10887 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10888 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10889 else
10891 lt_cv_dlopen="dyld"
10892 lt_cv_dlopen_libs=
10893 lt_cv_dlopen_self=yes
10900 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10901 if test "x$ac_cv_func_shl_load" = x""yes; then :
10902 lt_cv_dlopen="shl_load"
10903 else
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10905 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10906 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10907 $as_echo_n "(cached) " >&6
10908 else
10909 ac_check_lib_save_LIBS=$LIBS
10910 LIBS="-ldld $LIBS"
10911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10912 /* end confdefs.h. */
10914 /* Override any GCC internal prototype to avoid an error.
10915 Use char because int might match the return type of a GCC
10916 builtin and then its argument prototype would still apply. */
10917 #ifdef __cplusplus
10918 extern "C"
10919 #endif
10920 char shl_load ();
10922 main ()
10924 return shl_load ();
10926 return 0;
10928 _ACEOF
10929 if ac_fn_c_try_link "$LINENO"; then :
10930 ac_cv_lib_dld_shl_load=yes
10931 else
10932 ac_cv_lib_dld_shl_load=no
10934 rm -f core conftest.err conftest.$ac_objext \
10935 conftest$ac_exeext conftest.$ac_ext
10936 LIBS=$ac_check_lib_save_LIBS
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10939 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10940 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10941 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10942 else
10943 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10944 if test "x$ac_cv_func_dlopen" = x""yes; then :
10945 lt_cv_dlopen="dlopen"
10946 else
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10948 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10949 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10950 $as_echo_n "(cached) " >&6
10951 else
10952 ac_check_lib_save_LIBS=$LIBS
10953 LIBS="-ldl $LIBS"
10954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10955 /* end confdefs.h. */
10957 /* Override any GCC internal prototype to avoid an error.
10958 Use char because int might match the return type of a GCC
10959 builtin and then its argument prototype would still apply. */
10960 #ifdef __cplusplus
10961 extern "C"
10962 #endif
10963 char dlopen ();
10965 main ()
10967 return dlopen ();
10969 return 0;
10971 _ACEOF
10972 if ac_fn_c_try_link "$LINENO"; then :
10973 ac_cv_lib_dl_dlopen=yes
10974 else
10975 ac_cv_lib_dl_dlopen=no
10977 rm -f core conftest.err conftest.$ac_objext \
10978 conftest$ac_exeext conftest.$ac_ext
10979 LIBS=$ac_check_lib_save_LIBS
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10982 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10983 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10984 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10985 else
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10987 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10988 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10989 $as_echo_n "(cached) " >&6
10990 else
10991 ac_check_lib_save_LIBS=$LIBS
10992 LIBS="-lsvld $LIBS"
10993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h. */
10996 /* Override any GCC internal prototype to avoid an error.
10997 Use char because int might match the return type of a GCC
10998 builtin and then its argument prototype would still apply. */
10999 #ifdef __cplusplus
11000 extern "C"
11001 #endif
11002 char dlopen ();
11004 main ()
11006 return dlopen ();
11008 return 0;
11010 _ACEOF
11011 if ac_fn_c_try_link "$LINENO"; then :
11012 ac_cv_lib_svld_dlopen=yes
11013 else
11014 ac_cv_lib_svld_dlopen=no
11016 rm -f core conftest.err conftest.$ac_objext \
11017 conftest$ac_exeext conftest.$ac_ext
11018 LIBS=$ac_check_lib_save_LIBS
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11021 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11022 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11023 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11024 else
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11026 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11027 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11028 $as_echo_n "(cached) " >&6
11029 else
11030 ac_check_lib_save_LIBS=$LIBS
11031 LIBS="-ldld $LIBS"
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h. */
11035 /* Override any GCC internal prototype to avoid an error.
11036 Use char because int might match the return type of a GCC
11037 builtin and then its argument prototype would still apply. */
11038 #ifdef __cplusplus
11039 extern "C"
11040 #endif
11041 char dld_link ();
11043 main ()
11045 return dld_link ();
11047 return 0;
11049 _ACEOF
11050 if ac_fn_c_try_link "$LINENO"; then :
11051 ac_cv_lib_dld_dld_link=yes
11052 else
11053 ac_cv_lib_dld_dld_link=no
11055 rm -f core conftest.err conftest.$ac_objext \
11056 conftest$ac_exeext conftest.$ac_ext
11057 LIBS=$ac_check_lib_save_LIBS
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11060 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11061 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11062 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11081 esac
11083 if test "x$lt_cv_dlopen" != xno; then
11084 enable_dlopen=yes
11085 else
11086 enable_dlopen=no
11089 case $lt_cv_dlopen in
11090 dlopen)
11091 save_CPPFLAGS="$CPPFLAGS"
11092 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11094 save_LDFLAGS="$LDFLAGS"
11095 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11097 save_LIBS="$LIBS"
11098 LIBS="$lt_cv_dlopen_libs $LIBS"
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11101 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11102 if test "${lt_cv_dlopen_self+set}" = set; then :
11103 $as_echo_n "(cached) " >&6
11104 else
11105 if test "$cross_compiling" = yes; then :
11106 lt_cv_dlopen_self=cross
11107 else
11108 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11109 lt_status=$lt_dlunknown
11110 cat > conftest.$ac_ext <<_LT_EOF
11111 #line 11111 "configure"
11112 #include "confdefs.h"
11114 #if HAVE_DLFCN_H
11115 #include <dlfcn.h>
11116 #endif
11118 #include <stdio.h>
11120 #ifdef RTLD_GLOBAL
11121 # define LT_DLGLOBAL RTLD_GLOBAL
11122 #else
11123 # ifdef DL_GLOBAL
11124 # define LT_DLGLOBAL DL_GLOBAL
11125 # else
11126 # define LT_DLGLOBAL 0
11127 # endif
11128 #endif
11130 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11131 find out it does not work in some platform. */
11132 #ifndef LT_DLLAZY_OR_NOW
11133 # ifdef RTLD_LAZY
11134 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11135 # else
11136 # ifdef DL_LAZY
11137 # define LT_DLLAZY_OR_NOW DL_LAZY
11138 # else
11139 # ifdef RTLD_NOW
11140 # define LT_DLLAZY_OR_NOW RTLD_NOW
11141 # else
11142 # ifdef DL_NOW
11143 # define LT_DLLAZY_OR_NOW DL_NOW
11144 # else
11145 # define LT_DLLAZY_OR_NOW 0
11146 # endif
11147 # endif
11148 # endif
11149 # endif
11150 #endif
11152 /* When -fvisbility=hidden is used, assume the code has been annotated
11153 correspondingly for the symbols needed. */
11154 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11155 void fnord () __attribute__((visibility("default")));
11156 #endif
11158 void fnord () { int i=42; }
11159 int main ()
11161 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11162 int status = $lt_dlunknown;
11164 if (self)
11166 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11167 else
11169 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11170 else puts (dlerror ());
11172 /* dlclose (self); */
11174 else
11175 puts (dlerror ());
11177 return status;
11179 _LT_EOF
11180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11181 (eval $ac_link) 2>&5
11182 ac_status=$?
11183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11184 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11185 (./conftest; exit; ) >&5 2>/dev/null
11186 lt_status=$?
11187 case x$lt_status in
11188 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11189 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11190 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11191 esac
11192 else :
11193 # compilation failed
11194 lt_cv_dlopen_self=no
11197 rm -fr conftest*
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11202 $as_echo "$lt_cv_dlopen_self" >&6; }
11204 if test "x$lt_cv_dlopen_self" = xyes; then
11205 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11207 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11208 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11209 $as_echo_n "(cached) " >&6
11210 else
11211 if test "$cross_compiling" = yes; then :
11212 lt_cv_dlopen_self_static=cross
11213 else
11214 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11215 lt_status=$lt_dlunknown
11216 cat > conftest.$ac_ext <<_LT_EOF
11217 #line 11217 "configure"
11218 #include "confdefs.h"
11220 #if HAVE_DLFCN_H
11221 #include <dlfcn.h>
11222 #endif
11224 #include <stdio.h>
11226 #ifdef RTLD_GLOBAL
11227 # define LT_DLGLOBAL RTLD_GLOBAL
11228 #else
11229 # ifdef DL_GLOBAL
11230 # define LT_DLGLOBAL DL_GLOBAL
11231 # else
11232 # define LT_DLGLOBAL 0
11233 # endif
11234 #endif
11236 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11237 find out it does not work in some platform. */
11238 #ifndef LT_DLLAZY_OR_NOW
11239 # ifdef RTLD_LAZY
11240 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11241 # else
11242 # ifdef DL_LAZY
11243 # define LT_DLLAZY_OR_NOW DL_LAZY
11244 # else
11245 # ifdef RTLD_NOW
11246 # define LT_DLLAZY_OR_NOW RTLD_NOW
11247 # else
11248 # ifdef DL_NOW
11249 # define LT_DLLAZY_OR_NOW DL_NOW
11250 # else
11251 # define LT_DLLAZY_OR_NOW 0
11252 # endif
11253 # endif
11254 # endif
11255 # endif
11256 #endif
11258 /* When -fvisbility=hidden is used, assume the code has been annotated
11259 correspondingly for the symbols needed. */
11260 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11261 void fnord () __attribute__((visibility("default")));
11262 #endif
11264 void fnord () { int i=42; }
11265 int main ()
11267 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11268 int status = $lt_dlunknown;
11270 if (self)
11272 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11273 else
11275 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11276 else puts (dlerror ());
11278 /* dlclose (self); */
11280 else
11281 puts (dlerror ());
11283 return status;
11285 _LT_EOF
11286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11287 (eval $ac_link) 2>&5
11288 ac_status=$?
11289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11290 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11291 (./conftest; exit; ) >&5 2>/dev/null
11292 lt_status=$?
11293 case x$lt_status in
11294 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11295 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11296 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11297 esac
11298 else :
11299 # compilation failed
11300 lt_cv_dlopen_self_static=no
11303 rm -fr conftest*
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11308 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11311 CPPFLAGS="$save_CPPFLAGS"
11312 LDFLAGS="$save_LDFLAGS"
11313 LIBS="$save_LIBS"
11315 esac
11317 case $lt_cv_dlopen_self in
11318 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11319 *) enable_dlopen_self=unknown ;;
11320 esac
11322 case $lt_cv_dlopen_self_static in
11323 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11324 *) enable_dlopen_self_static=unknown ;;
11325 esac
11344 striplib=
11345 old_striplib=
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11347 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11348 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11349 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11350 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11352 $as_echo "yes" >&6; }
11353 else
11354 # FIXME - insert some real tests, host_os isn't really good enough
11355 case $host_os in
11356 darwin*)
11357 if test -n "$STRIP" ; then
11358 striplib="$STRIP -x"
11359 old_striplib="$STRIP -S"
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11361 $as_echo "yes" >&6; }
11362 else
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11364 $as_echo "no" >&6; }
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11369 $as_echo "no" >&6; }
11371 esac
11385 # Report which library types will actually be built
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11387 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11389 $as_echo "$can_build_shared" >&6; }
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11392 $as_echo_n "checking whether to build shared libraries... " >&6; }
11393 test "$can_build_shared" = "no" && enable_shared=no
11395 # On AIX, shared libraries and static libraries use the same namespace, and
11396 # are all built from PIC.
11397 case $host_os in
11398 aix3*)
11399 test "$enable_shared" = yes && enable_static=no
11400 if test -n "$RANLIB"; then
11401 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11402 postinstall_cmds='$RANLIB $lib'
11406 aix[4-9]*)
11407 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11408 test "$enable_shared" = yes && enable_static=no
11411 esac
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11413 $as_echo "$enable_shared" >&6; }
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11416 $as_echo_n "checking whether to build static libraries... " >&6; }
11417 # Make sure either enable_shared or enable_static is yes.
11418 test "$enable_shared" = yes || enable_static=yes
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11420 $as_echo "$enable_static" >&6; }
11426 ac_ext=c
11427 ac_cpp='$CPP $CPPFLAGS'
11428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11432 CC="$lt_save_CC"
11434 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11435 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11436 (test "X$CXX" != "Xg++"))) ; then
11437 ac_ext=cpp
11438 ac_cpp='$CXXCPP $CPPFLAGS'
11439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11443 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11444 if test -z "$CXXCPP"; then
11445 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 # Double quotes because CXXCPP needs to be expanded
11449 for CXXCPP in "$CXX -E" "/lib/cpp"
11451 ac_preproc_ok=false
11452 for ac_cxx_preproc_warn_flag in '' yes
11454 # Use a header file that comes with gcc, so configuring glibc
11455 # with a fresh cross-compiler works.
11456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11457 # <limits.h> exists even on freestanding compilers.
11458 # On the NeXT, cc -E runs the code through the compiler's parser,
11459 # not just through cpp. "Syntax error" is here to catch this case.
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461 /* end confdefs.h. */
11462 #ifdef __STDC__
11463 # include <limits.h>
11464 #else
11465 # include <assert.h>
11466 #endif
11467 Syntax error
11468 _ACEOF
11469 if ac_fn_cxx_try_cpp "$LINENO"; then :
11471 else
11472 # Broken: fails on valid input.
11473 continue
11475 rm -f conftest.err conftest.$ac_ext
11477 # OK, works on sane cases. Now check whether nonexistent headers
11478 # can be detected and how.
11479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11480 /* end confdefs.h. */
11481 #include <ac_nonexistent.h>
11482 _ACEOF
11483 if ac_fn_cxx_try_cpp "$LINENO"; then :
11484 # Broken: success on invalid input.
11485 continue
11486 else
11487 # Passes both tests.
11488 ac_preproc_ok=:
11489 break
11491 rm -f conftest.err conftest.$ac_ext
11493 done
11494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11495 rm -f conftest.err conftest.$ac_ext
11496 if $ac_preproc_ok; then :
11497 break
11500 done
11501 ac_cv_prog_CXXCPP=$CXXCPP
11504 CXXCPP=$ac_cv_prog_CXXCPP
11505 else
11506 ac_cv_prog_CXXCPP=$CXXCPP
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11509 $as_echo "$CXXCPP" >&6; }
11510 ac_preproc_ok=false
11511 for ac_cxx_preproc_warn_flag in '' yes
11513 # Use a header file that comes with gcc, so configuring glibc
11514 # with a fresh cross-compiler works.
11515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11516 # <limits.h> exists even on freestanding compilers.
11517 # On the NeXT, cc -E runs the code through the compiler's parser,
11518 # not just through cpp. "Syntax error" is here to catch this case.
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11521 #ifdef __STDC__
11522 # include <limits.h>
11523 #else
11524 # include <assert.h>
11525 #endif
11526 Syntax error
11527 _ACEOF
11528 if ac_fn_cxx_try_cpp "$LINENO"; then :
11530 else
11531 # Broken: fails on valid input.
11532 continue
11534 rm -f conftest.err conftest.$ac_ext
11536 # OK, works on sane cases. Now check whether nonexistent headers
11537 # can be detected and how.
11538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11539 /* end confdefs.h. */
11540 #include <ac_nonexistent.h>
11541 _ACEOF
11542 if ac_fn_cxx_try_cpp "$LINENO"; then :
11543 # Broken: success on invalid input.
11544 continue
11545 else
11546 # Passes both tests.
11547 ac_preproc_ok=:
11548 break
11550 rm -f conftest.err conftest.$ac_ext
11552 done
11553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11554 rm -f conftest.err conftest.$ac_ext
11555 if $ac_preproc_ok; then :
11557 else
11558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11560 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11561 See \`config.log' for more details." "$LINENO" 5; }
11564 ac_ext=c
11565 ac_cpp='$CPP $CPPFLAGS'
11566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11570 else
11571 _lt_caught_CXX_error=yes
11574 ac_ext=cpp
11575 ac_cpp='$CXXCPP $CPPFLAGS'
11576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11580 archive_cmds_need_lc_CXX=no
11581 allow_undefined_flag_CXX=
11582 always_export_symbols_CXX=no
11583 archive_expsym_cmds_CXX=
11584 compiler_needs_object_CXX=no
11585 export_dynamic_flag_spec_CXX=
11586 hardcode_direct_CXX=no
11587 hardcode_direct_absolute_CXX=no
11588 hardcode_libdir_flag_spec_CXX=
11589 hardcode_libdir_flag_spec_ld_CXX=
11590 hardcode_libdir_separator_CXX=
11591 hardcode_minus_L_CXX=no
11592 hardcode_shlibpath_var_CXX=unsupported
11593 hardcode_automatic_CXX=no
11594 inherit_rpath_CXX=no
11595 module_cmds_CXX=
11596 module_expsym_cmds_CXX=
11597 link_all_deplibs_CXX=unknown
11598 old_archive_cmds_CXX=$old_archive_cmds
11599 reload_flag_CXX=$reload_flag
11600 reload_cmds_CXX=$reload_cmds
11601 no_undefined_flag_CXX=
11602 whole_archive_flag_spec_CXX=
11603 enable_shared_with_static_runtimes_CXX=no
11605 # Source file extension for C++ test sources.
11606 ac_ext=cpp
11608 # Object file extension for compiled C++ test sources.
11609 objext=o
11610 objext_CXX=$objext
11612 # No sense in running all these tests if we already determined that
11613 # the CXX compiler isn't working. Some variables (like enable_shared)
11614 # are currently assumed to apply to all compilers on this platform,
11615 # and will be corrupted by setting them based on a non-working compiler.
11616 if test "$_lt_caught_CXX_error" != yes; then
11617 # Code to be used in simple compile tests
11618 lt_simple_compile_test_code="int some_variable = 0;"
11620 # Code to be used in simple link tests
11621 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11623 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11630 # If no C compiler was specified, use CC.
11631 LTCC=${LTCC-"$CC"}
11633 # If no C compiler flags were specified, use CFLAGS.
11634 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11636 # Allow CC to be a program name with arguments.
11637 compiler=$CC
11640 # save warnings/boilerplate of simple test code
11641 ac_outfile=conftest.$ac_objext
11642 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11643 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11644 _lt_compiler_boilerplate=`cat conftest.err`
11645 $RM conftest*
11647 ac_outfile=conftest.$ac_objext
11648 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11649 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11650 _lt_linker_boilerplate=`cat conftest.err`
11651 $RM -r conftest*
11654 # Allow CC to be a program name with arguments.
11655 lt_save_CC=$CC
11656 lt_save_LD=$LD
11657 lt_save_GCC=$GCC
11658 GCC=$GXX
11659 lt_save_with_gnu_ld=$with_gnu_ld
11660 lt_save_path_LD=$lt_cv_path_LD
11661 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11662 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11663 else
11664 $as_unset lt_cv_prog_gnu_ld
11666 if test -n "${lt_cv_path_LDCXX+set}"; then
11667 lt_cv_path_LD=$lt_cv_path_LDCXX
11668 else
11669 $as_unset lt_cv_path_LD
11671 test -z "${LDCXX+set}" || LD=$LDCXX
11672 CC=${CXX-"c++"}
11673 compiler=$CC
11674 compiler_CXX=$CC
11675 for cc_temp in $compiler""; do
11676 case $cc_temp in
11677 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11678 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11679 \-*) ;;
11680 *) break;;
11681 esac
11682 done
11683 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11686 if test -n "$compiler"; then
11687 # We don't want -fno-exception when compiling C++ code, so set the
11688 # no_builtin_flag separately
11689 if test "$GXX" = yes; then
11690 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11691 else
11692 lt_prog_compiler_no_builtin_flag_CXX=
11695 if test "$GXX" = yes; then
11696 # Set up default GNU C++ configuration
11700 # Check whether --with-gnu-ld was given.
11701 if test "${with_gnu_ld+set}" = set; then :
11702 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11703 else
11704 with_gnu_ld=no
11707 ac_prog=ld
11708 if test "$GCC" = yes; then
11709 # Check if gcc -print-prog-name=ld gives a path.
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11711 $as_echo_n "checking for ld used by $CC... " >&6; }
11712 case $host in
11713 *-*-mingw*)
11714 # gcc leaves a trailing carriage return which upsets mingw
11715 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11717 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11718 esac
11719 case $ac_prog in
11720 # Accept absolute paths.
11721 [\\/]* | ?:[\\/]*)
11722 re_direlt='/[^/][^/]*/\.\./'
11723 # Canonicalize the pathname of ld
11724 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11725 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11726 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11727 done
11728 test -z "$LD" && LD="$ac_prog"
11731 # If it fails, then pretend we aren't using GCC.
11732 ac_prog=ld
11735 # If it is relative, then search for the first ld in PATH.
11736 with_gnu_ld=unknown
11738 esac
11739 elif test "$with_gnu_ld" = yes; then
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11741 $as_echo_n "checking for GNU ld... " >&6; }
11742 else
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11744 $as_echo_n "checking for non-GNU ld... " >&6; }
11746 if test "${lt_cv_path_LD+set}" = set; then :
11747 $as_echo_n "(cached) " >&6
11748 else
11749 if test -z "$LD"; then
11750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11751 for ac_dir in $PATH; do
11752 IFS="$lt_save_ifs"
11753 test -z "$ac_dir" && ac_dir=.
11754 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11755 lt_cv_path_LD="$ac_dir/$ac_prog"
11756 # Check to see if the program is GNU ld. I'd rather use --version,
11757 # but apparently some variants of GNU ld only accept -v.
11758 # Break only if it was the GNU/non-GNU ld that we prefer.
11759 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11760 *GNU* | *'with BFD'*)
11761 test "$with_gnu_ld" != no && break
11764 test "$with_gnu_ld" != yes && break
11766 esac
11768 done
11769 IFS="$lt_save_ifs"
11770 else
11771 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11775 LD="$lt_cv_path_LD"
11776 if test -n "$LD"; then
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11778 $as_echo "$LD" >&6; }
11779 else
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781 $as_echo "no" >&6; }
11783 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11785 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11786 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11787 $as_echo_n "(cached) " >&6
11788 else
11789 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11790 case `$LD -v 2>&1 </dev/null` in
11791 *GNU* | *'with BFD'*)
11792 lt_cv_prog_gnu_ld=yes
11795 lt_cv_prog_gnu_ld=no
11797 esac
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11800 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11801 with_gnu_ld=$lt_cv_prog_gnu_ld
11809 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11810 # archiving commands below assume that GNU ld is being used.
11811 if test "$with_gnu_ld" = yes; then
11812 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11813 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'
11815 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11816 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11818 # If archive_cmds runs LD, not CC, wlarc should be empty
11819 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11820 # investigate it a little bit more. (MM)
11821 wlarc='${wl}'
11823 # ancient GNU ld didn't support --whole-archive et. al.
11824 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11825 $GREP 'no-whole-archive' > /dev/null; then
11826 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11827 else
11828 whole_archive_flag_spec_CXX=
11830 else
11831 with_gnu_ld=no
11832 wlarc=
11834 # A generic and very simple default shared library creation
11835 # command for GNU C++ for the case where it uses the native
11836 # linker, instead of GNU ld. If possible, this setting should
11837 # overridden to take advantage of the native linker features on
11838 # the platform it is being used on.
11839 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11842 # Commands to make compiler produce verbose output that lists
11843 # what "hidden" libraries, object files and flags are used when
11844 # linking a shared library.
11845 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11847 else
11848 GXX=no
11849 with_gnu_ld=no
11850 wlarc=
11853 # PORTME: fill in a description of your system's C++ link characteristics
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11855 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11856 ld_shlibs_CXX=yes
11857 case $host_os in
11858 aix3*)
11859 # FIXME: insert proper C++ library support
11860 ld_shlibs_CXX=no
11862 aix[4-9]*)
11863 if test "$host_cpu" = ia64; then
11864 # On IA64, the linker does run time linking by default, so we don't
11865 # have to do anything special.
11866 aix_use_runtimelinking=no
11867 exp_sym_flag='-Bexport'
11868 no_entry_flag=""
11869 else
11870 aix_use_runtimelinking=no
11872 # Test if we are trying to use run time linking or normal
11873 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11874 # need to do runtime linking.
11875 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11876 for ld_flag in $LDFLAGS; do
11877 case $ld_flag in
11878 *-brtl*)
11879 aix_use_runtimelinking=yes
11880 break
11882 esac
11883 done
11885 esac
11887 exp_sym_flag='-bexport'
11888 no_entry_flag='-bnoentry'
11891 # When large executables or shared objects are built, AIX ld can
11892 # have problems creating the table of contents. If linking a library
11893 # or program results in "error TOC overflow" add -mminimal-toc to
11894 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11895 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11897 archive_cmds_CXX=''
11898 hardcode_direct_CXX=yes
11899 hardcode_direct_absolute_CXX=yes
11900 hardcode_libdir_separator_CXX=':'
11901 link_all_deplibs_CXX=yes
11902 file_list_spec_CXX='${wl}-f,'
11904 if test "$GXX" = yes; then
11905 case $host_os in aix4.[012]|aix4.[012].*)
11906 # We only want to do this on AIX 4.2 and lower, the check
11907 # below for broken collect2 doesn't work under 4.3+
11908 collect2name=`${CC} -print-prog-name=collect2`
11909 if test -f "$collect2name" &&
11910 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11911 then
11912 # We have reworked collect2
11914 else
11915 # We have old collect2
11916 hardcode_direct_CXX=unsupported
11917 # It fails to find uninstalled libraries when the uninstalled
11918 # path is not listed in the libpath. Setting hardcode_minus_L
11919 # to unsupported forces relinking
11920 hardcode_minus_L_CXX=yes
11921 hardcode_libdir_flag_spec_CXX='-L$libdir'
11922 hardcode_libdir_separator_CXX=
11924 esac
11925 shared_flag='-shared'
11926 if test "$aix_use_runtimelinking" = yes; then
11927 shared_flag="$shared_flag "'${wl}-G'
11929 else
11930 # not using gcc
11931 if test "$host_cpu" = ia64; then
11932 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11933 # chokes on -Wl,-G. The following line is correct:
11934 shared_flag='-G'
11935 else
11936 if test "$aix_use_runtimelinking" = yes; then
11937 shared_flag='${wl}-G'
11938 else
11939 shared_flag='${wl}-bM:SRE'
11944 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11945 # It seems that -bexpall does not export symbols beginning with
11946 # underscore (_), so it is better to generate a list of symbols to
11947 # export.
11948 always_export_symbols_CXX=yes
11949 if test "$aix_use_runtimelinking" = yes; then
11950 # Warning - without using the other runtime loading flags (-brtl),
11951 # -berok will link without error, but may produce a broken library.
11952 allow_undefined_flag_CXX='-berok'
11953 # Determine the default libpath from the value encoded in an empty
11954 # executable.
11955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11956 /* end confdefs.h. */
11959 main ()
11963 return 0;
11965 _ACEOF
11966 if ac_fn_cxx_try_link "$LINENO"; then :
11968 lt_aix_libpath_sed='
11969 /Import File Strings/,/^$/ {
11970 /^0/ {
11971 s/^0 *\(.*\)$/\1/
11975 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11976 # Check for a 64-bit object if we didn't find anything.
11977 if test -z "$aix_libpath"; then
11978 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11981 rm -f core conftest.err conftest.$ac_objext \
11982 conftest$ac_exeext conftest.$ac_ext
11983 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11985 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11987 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"
11988 else
11989 if test "$host_cpu" = ia64; then
11990 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11991 allow_undefined_flag_CXX="-z nodefs"
11992 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"
11993 else
11994 # Determine the default libpath from the value encoded in an
11995 # empty executable.
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
12000 main ()
12004 return 0;
12006 _ACEOF
12007 if ac_fn_cxx_try_link "$LINENO"; then :
12009 lt_aix_libpath_sed='
12010 /Import File Strings/,/^$/ {
12011 /^0/ {
12012 s/^0 *\(.*\)$/\1/
12016 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12017 # Check for a 64-bit object if we didn't find anything.
12018 if test -z "$aix_libpath"; then
12019 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12022 rm -f core conftest.err conftest.$ac_objext \
12023 conftest$ac_exeext conftest.$ac_ext
12024 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12026 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12027 # Warning - without using the other run time loading flags,
12028 # -berok will link without error, but may produce a broken library.
12029 no_undefined_flag_CXX=' ${wl}-bernotok'
12030 allow_undefined_flag_CXX=' ${wl}-berok'
12031 if test "$with_gnu_ld" = yes; then
12032 # We only use this code for GNU lds that support --whole-archive.
12033 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12034 else
12035 # Exported symbols can be pulled into shared objects from archives
12036 whole_archive_flag_spec_CXX='$convenience'
12038 archive_cmds_need_lc_CXX=yes
12039 # This is similar to how AIX traditionally builds its shared
12040 # libraries.
12041 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'
12046 beos*)
12047 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12048 allow_undefined_flag_CXX=unsupported
12049 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12050 # support --undefined. This deserves some investigation. FIXME
12051 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12052 else
12053 ld_shlibs_CXX=no
12057 chorus*)
12058 case $cc_basename in
12060 # FIXME: insert proper C++ library support
12061 ld_shlibs_CXX=no
12063 esac
12066 cygwin* | mingw* | pw32* | cegcc*)
12067 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12068 # as there is no search path for DLLs.
12069 hardcode_libdir_flag_spec_CXX='-L$libdir'
12070 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12071 allow_undefined_flag_CXX=unsupported
12072 always_export_symbols_CXX=no
12073 enable_shared_with_static_runtimes_CXX=yes
12075 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12076 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'
12077 # If the export-symbols file already is a .def file (1st line
12078 # is EXPORTS), use it as is; otherwise, prepend...
12079 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12080 cp $export_symbols $output_objdir/$soname.def;
12081 else
12082 echo EXPORTS > $output_objdir/$soname.def;
12083 cat $export_symbols >> $output_objdir/$soname.def;
12085 $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'
12086 else
12087 ld_shlibs_CXX=no
12090 darwin* | rhapsody*)
12093 archive_cmds_need_lc_CXX=no
12094 hardcode_direct_CXX=no
12095 hardcode_automatic_CXX=yes
12096 hardcode_shlibpath_var_CXX=unsupported
12097 if test "$lt_cv_ld_force_load" = "yes"; then
12098 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\"`'
12099 else
12100 whole_archive_flag_spec_CXX=''
12102 link_all_deplibs_CXX=yes
12103 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12104 case $cc_basename in
12105 ifort*) _lt_dar_can_shared=yes ;;
12106 *) _lt_dar_can_shared=$GCC ;;
12107 esac
12108 if test "$_lt_dar_can_shared" = "yes"; then
12109 output_verbose_link_cmd=func_echo_all
12110 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}"
12111 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12112 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}"
12113 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}"
12114 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12115 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}"
12116 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}"
12119 else
12120 ld_shlibs_CXX=no
12125 dgux*)
12126 case $cc_basename in
12127 ec++*)
12128 # FIXME: insert proper C++ library support
12129 ld_shlibs_CXX=no
12131 ghcx*)
12132 # Green Hills C++ Compiler
12133 # FIXME: insert proper C++ library support
12134 ld_shlibs_CXX=no
12137 # FIXME: insert proper C++ library support
12138 ld_shlibs_CXX=no
12140 esac
12143 freebsd2.*)
12144 # C++ shared libraries reported to be fairly broken before
12145 # switch to ELF
12146 ld_shlibs_CXX=no
12149 freebsd-elf*)
12150 archive_cmds_need_lc_CXX=no
12153 freebsd* | dragonfly*)
12154 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12155 # conventions
12156 ld_shlibs_CXX=yes
12159 gnu*)
12162 haiku*)
12163 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12164 link_all_deplibs_CXX=yes
12167 hpux9*)
12168 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12169 hardcode_libdir_separator_CXX=:
12170 export_dynamic_flag_spec_CXX='${wl}-E'
12171 hardcode_direct_CXX=yes
12172 hardcode_minus_L_CXX=yes # Not in the search PATH,
12173 # but as the default
12174 # location of the library.
12176 case $cc_basename in
12177 CC*)
12178 # FIXME: insert proper C++ library support
12179 ld_shlibs_CXX=no
12181 aCC*)
12182 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'
12183 # Commands to make compiler produce verbose output that lists
12184 # what "hidden" libraries, object files and flags are used when
12185 # linking a shared library.
12187 # There doesn't appear to be a way to prevent this compiler from
12188 # explicitly linking system object files so we need to strip them
12189 # from the output so that they don't get included in the library
12190 # dependencies.
12191 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"'
12194 if test "$GXX" = yes; then
12195 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'
12196 else
12197 # FIXME: insert proper C++ library support
12198 ld_shlibs_CXX=no
12201 esac
12204 hpux10*|hpux11*)
12205 if test $with_gnu_ld = no; then
12206 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12207 hardcode_libdir_separator_CXX=:
12209 case $host_cpu in
12210 hppa*64*|ia64*)
12213 export_dynamic_flag_spec_CXX='${wl}-E'
12215 esac
12217 case $host_cpu in
12218 hppa*64*|ia64*)
12219 hardcode_direct_CXX=no
12220 hardcode_shlibpath_var_CXX=no
12223 hardcode_direct_CXX=yes
12224 hardcode_direct_absolute_CXX=yes
12225 hardcode_minus_L_CXX=yes # Not in the search PATH,
12226 # but as the default
12227 # location of the library.
12229 esac
12231 case $cc_basename in
12232 CC*)
12233 # FIXME: insert proper C++ library support
12234 ld_shlibs_CXX=no
12236 aCC*)
12237 case $host_cpu in
12238 hppa*64*)
12239 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12241 ia64*)
12242 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12245 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12247 esac
12248 # Commands to make compiler produce verbose output that lists
12249 # what "hidden" libraries, object files and flags are used when
12250 # linking a shared library.
12252 # There doesn't appear to be a way to prevent this compiler from
12253 # explicitly linking system object files so we need to strip them
12254 # from the output so that they don't get included in the library
12255 # dependencies.
12256 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"'
12259 if test "$GXX" = yes; then
12260 if test $with_gnu_ld = no; then
12261 case $host_cpu in
12262 hppa*64*)
12263 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12265 ia64*)
12266 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12269 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'
12271 esac
12273 else
12274 # FIXME: insert proper C++ library support
12275 ld_shlibs_CXX=no
12278 esac
12281 interix[3-9]*)
12282 hardcode_direct_CXX=no
12283 hardcode_shlibpath_var_CXX=no
12284 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12285 export_dynamic_flag_spec_CXX='${wl}-E'
12286 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12287 # Instead, shared libraries are loaded at an image base (0x10000000 by
12288 # default) and relocated if they conflict, which is a slow very memory
12289 # consuming and fragmenting process. To avoid this, we pick a random,
12290 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12291 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12292 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'
12293 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'
12295 irix5* | irix6*)
12296 case $cc_basename in
12297 CC*)
12298 # SGI C++
12299 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'
12301 # Archives containing C++ object files must be created using
12302 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12303 # necessary to make sure instantiated templates are included
12304 # in the archive.
12305 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12308 if test "$GXX" = yes; then
12309 if test "$with_gnu_ld" = no; then
12310 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'
12311 else
12312 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'
12315 link_all_deplibs_CXX=yes
12317 esac
12318 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12319 hardcode_libdir_separator_CXX=:
12320 inherit_rpath_CXX=yes
12323 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12324 case $cc_basename in
12325 KCC*)
12326 # Kuck and Associates, Inc. (KAI) C++ Compiler
12328 # KCC will only create a shared library if the output file
12329 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12330 # to its proper name (with version) after linking.
12331 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'
12332 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'
12333 # Commands to make compiler produce verbose output that lists
12334 # what "hidden" libraries, object files and flags are used when
12335 # linking a shared library.
12337 # There doesn't appear to be a way to prevent this compiler from
12338 # explicitly linking system object files so we need to strip them
12339 # from the output so that they don't get included in the library
12340 # dependencies.
12341 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"'
12343 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12344 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12346 # Archives containing C++ object files must be created using
12347 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12348 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12350 icpc* | ecpc* )
12351 # Intel C++
12352 with_gnu_ld=yes
12353 # version 8.0 and above of icpc choke on multiply defined symbols
12354 # if we add $predep_objects and $postdep_objects, however 7.1 and
12355 # earlier do not add the objects themselves.
12356 case `$CC -V 2>&1` in
12357 *"Version 7."*)
12358 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12359 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'
12361 *) # Version 8.0 or newer
12362 tmp_idyn=
12363 case $host_cpu in
12364 ia64*) tmp_idyn=' -i_dynamic';;
12365 esac
12366 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12367 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'
12369 esac
12370 archive_cmds_need_lc_CXX=no
12371 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12372 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12373 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12375 pgCC* | pgcpp*)
12376 # Portland Group C++ compiler
12377 case `$CC -V` in
12378 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12379 prelink_cmds_CXX='tpldir=Template.dir~
12380 rm -rf $tpldir~
12381 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12382 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12383 old_archive_cmds_CXX='tpldir=Template.dir~
12384 rm -rf $tpldir~
12385 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12386 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12387 $RANLIB $oldlib'
12388 archive_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 -o $lib'
12392 archive_expsym_cmds_CXX='tpldir=Template.dir~
12393 rm -rf $tpldir~
12394 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12395 $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'
12397 *) # Version 6 and above use weak symbols
12398 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12399 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'
12401 esac
12403 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12404 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12405 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'
12407 cxx*)
12408 # Compaq C++
12409 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12410 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'
12412 runpath_var=LD_RUN_PATH
12413 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12414 hardcode_libdir_separator_CXX=:
12416 # Commands to make compiler produce verbose output that lists
12417 # what "hidden" libraries, object files and flags are used when
12418 # linking a shared library.
12420 # There doesn't appear to be a way to prevent this compiler from
12421 # explicitly linking system object files so we need to strip them
12422 # from the output so that they don't get included in the library
12423 # dependencies.
12424 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'
12426 xl* | mpixl* | bgxl*)
12427 # IBM XL 8.0 on PPC, with GNU ld
12428 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12429 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12430 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12431 if test "x$supports_anon_versioning" = xyes; then
12432 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12433 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12434 echo "local: *; };" >> $output_objdir/$libname.ver~
12435 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12439 case `$CC -V 2>&1 | sed 5q` in
12440 *Sun\ C*)
12441 # Sun C++ 5.9
12442 no_undefined_flag_CXX=' -zdefs'
12443 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12444 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'
12445 hardcode_libdir_flag_spec_CXX='-R$libdir'
12446 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'
12447 compiler_needs_object_CXX=yes
12449 # Not sure whether something based on
12450 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12451 # would be better.
12452 output_verbose_link_cmd='func_echo_all'
12454 # Archives containing C++ object files must be created using
12455 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12456 # necessary to make sure instantiated templates are included
12457 # in the archive.
12458 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12460 esac
12462 esac
12465 lynxos*)
12466 # FIXME: insert proper C++ library support
12467 ld_shlibs_CXX=no
12470 m88k*)
12471 # FIXME: insert proper C++ library support
12472 ld_shlibs_CXX=no
12475 mvs*)
12476 case $cc_basename in
12477 cxx*)
12478 # FIXME: insert proper C++ library support
12479 ld_shlibs_CXX=no
12482 # FIXME: insert proper C++ library support
12483 ld_shlibs_CXX=no
12485 esac
12488 netbsd*)
12489 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12490 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12491 wlarc=
12492 hardcode_libdir_flag_spec_CXX='-R$libdir'
12493 hardcode_direct_CXX=yes
12494 hardcode_shlibpath_var_CXX=no
12496 # Workaround some broken pre-1.5 toolchains
12497 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12500 *nto* | *qnx*)
12501 ld_shlibs_CXX=yes
12504 openbsd2*)
12505 # C++ shared libraries are fairly broken
12506 ld_shlibs_CXX=no
12509 openbsd*)
12510 if test -f /usr/libexec/ld.so; then
12511 hardcode_direct_CXX=yes
12512 hardcode_shlibpath_var_CXX=no
12513 hardcode_direct_absolute_CXX=yes
12514 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12515 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12516 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12517 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12518 export_dynamic_flag_spec_CXX='${wl}-E'
12519 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12521 output_verbose_link_cmd=func_echo_all
12522 else
12523 ld_shlibs_CXX=no
12527 osf3* | osf4* | osf5*)
12528 case $cc_basename in
12529 KCC*)
12530 # Kuck and Associates, Inc. (KAI) C++ Compiler
12532 # KCC will only create a shared library if the output file
12533 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12534 # to its proper name (with version) after linking.
12535 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'
12537 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12538 hardcode_libdir_separator_CXX=:
12540 # Archives containing C++ object files must be created using
12541 # the KAI C++ compiler.
12542 case $host in
12543 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12544 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12545 esac
12547 RCC*)
12548 # Rational C++ 2.4.1
12549 # FIXME: insert proper C++ library support
12550 ld_shlibs_CXX=no
12552 cxx*)
12553 case $host in
12554 osf3*)
12555 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12556 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'
12557 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12560 allow_undefined_flag_CXX=' -expect_unresolved \*'
12561 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'
12562 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12563 echo "-hidden">> $lib.exp~
12564 $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~
12565 $RM $lib.exp'
12566 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12568 esac
12570 hardcode_libdir_separator_CXX=:
12572 # Commands to make compiler produce verbose output that lists
12573 # what "hidden" libraries, object files and flags are used when
12574 # linking a shared library.
12576 # There doesn't appear to be a way to prevent this compiler from
12577 # explicitly linking system object files so we need to strip them
12578 # from the output so that they don't get included in the library
12579 # dependencies.
12580 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"'
12583 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12584 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12585 case $host in
12586 osf3*)
12587 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'
12590 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'
12592 esac
12594 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12595 hardcode_libdir_separator_CXX=:
12597 # Commands to make compiler produce verbose output that lists
12598 # what "hidden" libraries, object files and flags are used when
12599 # linking a shared library.
12600 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12602 else
12603 # FIXME: insert proper C++ library support
12604 ld_shlibs_CXX=no
12607 esac
12610 psos*)
12611 # FIXME: insert proper C++ library support
12612 ld_shlibs_CXX=no
12615 sunos4*)
12616 case $cc_basename in
12617 CC*)
12618 # Sun C++ 4.x
12619 # FIXME: insert proper C++ library support
12620 ld_shlibs_CXX=no
12622 lcc*)
12623 # Lucid
12624 # FIXME: insert proper C++ library support
12625 ld_shlibs_CXX=no
12628 # FIXME: insert proper C++ library support
12629 ld_shlibs_CXX=no
12631 esac
12634 solaris*)
12635 case $cc_basename in
12636 CC*)
12637 # Sun C++ 4.2, 5.x and Centerline C++
12638 archive_cmds_need_lc_CXX=yes
12639 no_undefined_flag_CXX=' -zdefs'
12640 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12641 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12642 $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'
12644 hardcode_libdir_flag_spec_CXX='-R$libdir'
12645 hardcode_shlibpath_var_CXX=no
12646 case $host_os in
12647 solaris2.[0-5] | solaris2.[0-5].*) ;;
12649 # The compiler driver will combine and reorder linker options,
12650 # but understands `-z linker_flag'.
12651 # Supported since Solaris 2.6 (maybe 2.5.1?)
12652 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12654 esac
12655 link_all_deplibs_CXX=yes
12657 output_verbose_link_cmd='func_echo_all'
12659 # Archives containing C++ object files must be created using
12660 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12661 # necessary to make sure instantiated templates are included
12662 # in the archive.
12663 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12665 gcx*)
12666 # Green Hills C++ Compiler
12667 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12669 # The C++ compiler must be used to create the archive.
12670 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12673 # GNU C++ compiler with Solaris linker
12674 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12675 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12676 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12677 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12678 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12679 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12681 # Commands to make compiler produce verbose output that lists
12682 # what "hidden" libraries, object files and flags are used when
12683 # linking a shared library.
12684 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12685 else
12686 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12687 # platform.
12688 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12689 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12690 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12692 # Commands to make compiler produce verbose output that lists
12693 # what "hidden" libraries, object files and flags are used when
12694 # linking a shared library.
12695 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12698 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12699 case $host_os in
12700 solaris2.[0-5] | solaris2.[0-5].*) ;;
12702 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12704 esac
12707 esac
12710 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12711 no_undefined_flag_CXX='${wl}-z,text'
12712 archive_cmds_need_lc_CXX=no
12713 hardcode_shlibpath_var_CXX=no
12714 runpath_var='LD_RUN_PATH'
12716 case $cc_basename in
12717 CC*)
12718 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12719 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12722 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12723 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12725 esac
12728 sysv5* | sco3.2v5* | sco5v6*)
12729 # Note: We can NOT use -z defs as we might desire, because we do not
12730 # link with -lc, and that would cause any symbols used from libc to
12731 # always be unresolved, which means just about no library would
12732 # ever link correctly. If we're not using GNU ld we use -z text
12733 # though, which does catch some bad symbols but isn't as heavy-handed
12734 # as -z defs.
12735 no_undefined_flag_CXX='${wl}-z,text'
12736 allow_undefined_flag_CXX='${wl}-z,nodefs'
12737 archive_cmds_need_lc_CXX=no
12738 hardcode_shlibpath_var_CXX=no
12739 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12740 hardcode_libdir_separator_CXX=':'
12741 link_all_deplibs_CXX=yes
12742 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12743 runpath_var='LD_RUN_PATH'
12745 case $cc_basename in
12746 CC*)
12747 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12748 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12749 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12750 '"$old_archive_cmds_CXX"
12751 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12752 '"$reload_cmds_CXX"
12755 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12756 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12758 esac
12761 tandem*)
12762 case $cc_basename in
12763 NCC*)
12764 # NonStop-UX NCC 3.20
12765 # FIXME: insert proper C++ library support
12766 ld_shlibs_CXX=no
12769 # FIXME: insert proper C++ library support
12770 ld_shlibs_CXX=no
12772 esac
12775 vxworks*)
12776 # FIXME: insert proper C++ library support
12777 ld_shlibs_CXX=no
12781 # FIXME: insert proper C++ library support
12782 ld_shlibs_CXX=no
12784 esac
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12787 $as_echo "$ld_shlibs_CXX" >&6; }
12788 test "$ld_shlibs_CXX" = no && can_build_shared=no
12790 GCC_CXX="$GXX"
12791 LD_CXX="$LD"
12793 ## CAVEAT EMPTOR:
12794 ## There is no encapsulation within the following macros, do not change
12795 ## the running order or otherwise move them around unless you know exactly
12796 ## what you are doing...
12797 # Dependencies to place before and after the object being linked:
12798 predep_objects_CXX=
12799 postdep_objects_CXX=
12800 predeps_CXX=
12801 postdeps_CXX=
12802 compiler_lib_search_path_CXX=
12804 cat > conftest.$ac_ext <<_LT_EOF
12805 class Foo
12807 public:
12808 Foo (void) { a = 0; }
12809 private:
12810 int a;
12812 _LT_EOF
12814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12815 (eval $ac_compile) 2>&5
12816 ac_status=$?
12817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12818 test $ac_status = 0; }; then
12819 # Parse the compiler output and extract the necessary
12820 # objects, libraries and library flags.
12822 # Sentinel used to keep track of whether or not we are before
12823 # the conftest object file.
12824 pre_test_object_deps_done=no
12826 for p in `eval "$output_verbose_link_cmd"`; do
12827 case $p in
12829 -L* | -R* | -l*)
12830 # Some compilers place space between "-{L,R}" and the path.
12831 # Remove the space.
12832 if test $p = "-L" ||
12833 test $p = "-R"; then
12834 prev=$p
12835 continue
12836 else
12837 prev=
12840 if test "$pre_test_object_deps_done" = no; then
12841 case $p in
12842 -L* | -R*)
12843 # Internal compiler library paths should come after those
12844 # provided the user. The postdeps already come after the
12845 # user supplied libs so there is no need to process them.
12846 if test -z "$compiler_lib_search_path_CXX"; then
12847 compiler_lib_search_path_CXX="${prev}${p}"
12848 else
12849 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12852 # The "-l" case would never come before the object being
12853 # linked, so don't bother handling this case.
12854 esac
12855 else
12856 if test -z "$postdeps_CXX"; then
12857 postdeps_CXX="${prev}${p}"
12858 else
12859 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12864 *.$objext)
12865 # This assumes that the test object file only shows up
12866 # once in the compiler output.
12867 if test "$p" = "conftest.$objext"; then
12868 pre_test_object_deps_done=yes
12869 continue
12872 if test "$pre_test_object_deps_done" = no; then
12873 if test -z "$predep_objects_CXX"; then
12874 predep_objects_CXX="$p"
12875 else
12876 predep_objects_CXX="$predep_objects_CXX $p"
12878 else
12879 if test -z "$postdep_objects_CXX"; then
12880 postdep_objects_CXX="$p"
12881 else
12882 postdep_objects_CXX="$postdep_objects_CXX $p"
12887 *) ;; # Ignore the rest.
12889 esac
12890 done
12892 # Clean up.
12893 rm -f a.out a.exe
12894 else
12895 echo "libtool.m4: error: problem compiling CXX test program"
12898 $RM -f confest.$objext
12900 # PORTME: override above test on systems where it is broken
12901 case $host_os in
12902 interix[3-9]*)
12903 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12904 # hack all around it, let's just trust "g++" to DTRT.
12905 predep_objects_CXX=
12906 postdep_objects_CXX=
12907 postdeps_CXX=
12910 linux*)
12911 case `$CC -V 2>&1 | sed 5q` in
12912 *Sun\ C*)
12913 # Sun C++ 5.9
12915 # The more standards-conforming stlport4 library is
12916 # incompatible with the Cstd library. Avoid specifying
12917 # it if it's in CXXFLAGS. Ignore libCrun as
12918 # -library=stlport4 depends on it.
12919 case " $CXX $CXXFLAGS " in
12920 *" -library=stlport4 "*)
12921 solaris_use_stlport4=yes
12923 esac
12925 if test "$solaris_use_stlport4" != yes; then
12926 postdeps_CXX='-library=Cstd -library=Crun'
12929 esac
12932 solaris*)
12933 case $cc_basename in
12934 CC*)
12935 # The more standards-conforming stlport4 library is
12936 # incompatible with the Cstd library. Avoid specifying
12937 # it if it's in CXXFLAGS. Ignore libCrun as
12938 # -library=stlport4 depends on it.
12939 case " $CXX $CXXFLAGS " in
12940 *" -library=stlport4 "*)
12941 solaris_use_stlport4=yes
12943 esac
12945 # Adding this requires a known-good setup of shared libraries for
12946 # Sun compiler versions before 5.6, else PIC objects from an old
12947 # archive will be linked into the output, leading to subtle bugs.
12948 if test "$solaris_use_stlport4" != yes; then
12949 postdeps_CXX='-library=Cstd -library=Crun'
12952 esac
12954 esac
12957 case " $postdeps_CXX " in
12958 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12959 esac
12960 compiler_lib_search_dirs_CXX=
12961 if test -n "${compiler_lib_search_path_CXX}"; then
12962 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12995 lt_prog_compiler_wl_CXX=
12996 lt_prog_compiler_pic_CXX=
12997 lt_prog_compiler_static_CXX=
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13000 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13002 # C++ specific cases for pic, static, wl, etc.
13003 if test "$GXX" = yes; then
13004 lt_prog_compiler_wl_CXX='-Wl,'
13005 lt_prog_compiler_static_CXX='-static'
13007 case $host_os in
13008 aix*)
13009 # All AIX code is PIC.
13010 if test "$host_cpu" = ia64; then
13011 # AIX 5 now supports IA64 processor
13012 lt_prog_compiler_static_CXX='-Bstatic'
13014 lt_prog_compiler_pic_CXX='-fPIC'
13017 amigaos*)
13018 case $host_cpu in
13019 powerpc)
13020 # see comment about AmigaOS4 .so support
13021 lt_prog_compiler_pic_CXX='-fPIC'
13023 m68k)
13024 # FIXME: we need at least 68020 code to build shared libraries, but
13025 # adding the `-m68020' flag to GCC prevents building anything better,
13026 # like `-m68040'.
13027 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13029 esac
13032 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13033 # PIC is the default for these OSes.
13035 mingw* | cygwin* | os2* | pw32* | cegcc*)
13036 # This hack is so that the source file can tell whether it is being
13037 # built for inclusion in a dll (and should export symbols for example).
13038 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13039 # (--disable-auto-import) libraries
13040 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13042 darwin* | rhapsody*)
13043 # PIC is the default on this platform
13044 # Common symbols not allowed in MH_DYLIB files
13045 lt_prog_compiler_pic_CXX='-fno-common'
13047 *djgpp*)
13048 # DJGPP does not support shared libraries at all
13049 lt_prog_compiler_pic_CXX=
13051 haiku*)
13052 # PIC is the default for Haiku.
13053 # The "-static" flag exists, but is broken.
13054 lt_prog_compiler_static_CXX=
13056 interix[3-9]*)
13057 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13058 # Instead, we relocate shared libraries at runtime.
13060 sysv4*MP*)
13061 if test -d /usr/nec; then
13062 lt_prog_compiler_pic_CXX=-Kconform_pic
13065 hpux*)
13066 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13067 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13068 # sets the default TLS model and affects inlining.
13069 case $host_cpu in
13070 hppa*64*)
13073 lt_prog_compiler_pic_CXX='-fPIC'
13075 esac
13077 *qnx* | *nto*)
13078 # QNX uses GNU C++, but need to define -shared option too, otherwise
13079 # it will coredump.
13080 lt_prog_compiler_pic_CXX='-fPIC -shared'
13083 lt_prog_compiler_pic_CXX='-fPIC'
13085 esac
13086 else
13087 case $host_os in
13088 aix[4-9]*)
13089 # All AIX code is PIC.
13090 if test "$host_cpu" = ia64; then
13091 # AIX 5 now supports IA64 processor
13092 lt_prog_compiler_static_CXX='-Bstatic'
13093 else
13094 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13097 chorus*)
13098 case $cc_basename in
13099 cxch68*)
13100 # Green Hills C++ Compiler
13101 # _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"
13103 esac
13105 dgux*)
13106 case $cc_basename in
13107 ec++*)
13108 lt_prog_compiler_pic_CXX='-KPIC'
13110 ghcx*)
13111 # Green Hills C++ Compiler
13112 lt_prog_compiler_pic_CXX='-pic'
13116 esac
13118 freebsd* | dragonfly*)
13119 # FreeBSD uses GNU C++
13121 hpux9* | hpux10* | hpux11*)
13122 case $cc_basename in
13123 CC*)
13124 lt_prog_compiler_wl_CXX='-Wl,'
13125 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13126 if test "$host_cpu" != ia64; then
13127 lt_prog_compiler_pic_CXX='+Z'
13130 aCC*)
13131 lt_prog_compiler_wl_CXX='-Wl,'
13132 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13133 case $host_cpu in
13134 hppa*64*|ia64*)
13135 # +Z the default
13138 lt_prog_compiler_pic_CXX='+Z'
13140 esac
13144 esac
13146 interix*)
13147 # This is c89, which is MS Visual C++ (no shared libs)
13148 # Anyone wants to do a port?
13150 irix5* | irix6* | nonstopux*)
13151 case $cc_basename in
13152 CC*)
13153 lt_prog_compiler_wl_CXX='-Wl,'
13154 lt_prog_compiler_static_CXX='-non_shared'
13155 # CC pic flag -KPIC is the default.
13159 esac
13161 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13162 case $cc_basename in
13163 KCC*)
13164 # KAI C++ Compiler
13165 lt_prog_compiler_wl_CXX='--backend -Wl,'
13166 lt_prog_compiler_pic_CXX='-fPIC'
13168 ecpc* )
13169 # old Intel C++ for x86_64 which still supported -KPIC.
13170 lt_prog_compiler_wl_CXX='-Wl,'
13171 lt_prog_compiler_pic_CXX='-KPIC'
13172 lt_prog_compiler_static_CXX='-static'
13174 icpc* )
13175 # Intel C++, used to be incompatible with GCC.
13176 # ICC 10 doesn't accept -KPIC any more.
13177 lt_prog_compiler_wl_CXX='-Wl,'
13178 lt_prog_compiler_pic_CXX='-fPIC'
13179 lt_prog_compiler_static_CXX='-static'
13181 pgCC* | pgcpp*)
13182 # Portland Group C++ compiler
13183 lt_prog_compiler_wl_CXX='-Wl,'
13184 lt_prog_compiler_pic_CXX='-fpic'
13185 lt_prog_compiler_static_CXX='-Bstatic'
13187 cxx*)
13188 # Compaq C++
13189 # Make sure the PIC flag is empty. It appears that all Alpha
13190 # Linux and Compaq Tru64 Unix objects are PIC.
13191 lt_prog_compiler_pic_CXX=
13192 lt_prog_compiler_static_CXX='-non_shared'
13194 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13195 # IBM XL 8.0, 9.0 on PPC and BlueGene
13196 lt_prog_compiler_wl_CXX='-Wl,'
13197 lt_prog_compiler_pic_CXX='-qpic'
13198 lt_prog_compiler_static_CXX='-qstaticlink'
13201 case `$CC -V 2>&1 | sed 5q` in
13202 *Sun\ C*)
13203 # Sun C++ 5.9
13204 lt_prog_compiler_pic_CXX='-KPIC'
13205 lt_prog_compiler_static_CXX='-Bstatic'
13206 lt_prog_compiler_wl_CXX='-Qoption ld '
13208 esac
13210 esac
13212 lynxos*)
13214 m88k*)
13216 mvs*)
13217 case $cc_basename in
13218 cxx*)
13219 lt_prog_compiler_pic_CXX='-W c,exportall'
13223 esac
13225 netbsd*)
13227 *qnx* | *nto*)
13228 # QNX uses GNU C++, but need to define -shared option too, otherwise
13229 # it will coredump.
13230 lt_prog_compiler_pic_CXX='-fPIC -shared'
13232 osf3* | osf4* | osf5*)
13233 case $cc_basename in
13234 KCC*)
13235 lt_prog_compiler_wl_CXX='--backend -Wl,'
13237 RCC*)
13238 # Rational C++ 2.4.1
13239 lt_prog_compiler_pic_CXX='-pic'
13241 cxx*)
13242 # Digital/Compaq C++
13243 lt_prog_compiler_wl_CXX='-Wl,'
13244 # Make sure the PIC flag is empty. It appears that all Alpha
13245 # Linux and Compaq Tru64 Unix objects are PIC.
13246 lt_prog_compiler_pic_CXX=
13247 lt_prog_compiler_static_CXX='-non_shared'
13251 esac
13253 psos*)
13255 solaris*)
13256 case $cc_basename in
13257 CC*)
13258 # Sun C++ 4.2, 5.x and Centerline C++
13259 lt_prog_compiler_pic_CXX='-KPIC'
13260 lt_prog_compiler_static_CXX='-Bstatic'
13261 lt_prog_compiler_wl_CXX='-Qoption ld '
13263 gcx*)
13264 # Green Hills C++ Compiler
13265 lt_prog_compiler_pic_CXX='-PIC'
13269 esac
13271 sunos4*)
13272 case $cc_basename in
13273 CC*)
13274 # Sun C++ 4.x
13275 lt_prog_compiler_pic_CXX='-pic'
13276 lt_prog_compiler_static_CXX='-Bstatic'
13278 lcc*)
13279 # Lucid
13280 lt_prog_compiler_pic_CXX='-pic'
13284 esac
13286 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13287 case $cc_basename in
13288 CC*)
13289 lt_prog_compiler_wl_CXX='-Wl,'
13290 lt_prog_compiler_pic_CXX='-KPIC'
13291 lt_prog_compiler_static_CXX='-Bstatic'
13293 esac
13295 tandem*)
13296 case $cc_basename in
13297 NCC*)
13298 # NonStop-UX NCC 3.20
13299 lt_prog_compiler_pic_CXX='-KPIC'
13303 esac
13305 vxworks*)
13308 lt_prog_compiler_can_build_shared_CXX=no
13310 esac
13313 case $host_os in
13314 # For platforms which do not support PIC, -DPIC is meaningless:
13315 *djgpp*)
13316 lt_prog_compiler_pic_CXX=
13319 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13321 esac
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13323 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13328 # Check to make sure the PIC flag actually works.
13330 if test -n "$lt_prog_compiler_pic_CXX"; then
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13332 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13333 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13334 $as_echo_n "(cached) " >&6
13335 else
13336 lt_cv_prog_compiler_pic_works_CXX=no
13337 ac_outfile=conftest.$ac_objext
13338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13339 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13340 # Insert the option either (1) after the last *FLAGS variable, or
13341 # (2) before a word containing "conftest.", or (3) at the end.
13342 # Note that $ac_compile itself does not contain backslashes and begins
13343 # with a dollar sign (not a hyphen), so the echo should work correctly.
13344 # The option is referenced via a variable to avoid confusing sed.
13345 lt_compile=`echo "$ac_compile" | $SED \
13346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13348 -e 's:$: $lt_compiler_flag:'`
13349 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13350 (eval "$lt_compile" 2>conftest.err)
13351 ac_status=$?
13352 cat conftest.err >&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 if (exit $ac_status) && test -s "$ac_outfile"; then
13355 # The compiler can only warn and ignore the option if not recognized
13356 # So say no if there are warnings other than the usual output.
13357 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13359 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13360 lt_cv_prog_compiler_pic_works_CXX=yes
13363 $RM conftest*
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13367 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13369 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13370 case $lt_prog_compiler_pic_CXX in
13371 "" | " "*) ;;
13372 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13373 esac
13374 else
13375 lt_prog_compiler_pic_CXX=
13376 lt_prog_compiler_can_build_shared_CXX=no
13384 # Check to make sure the static flag actually works.
13386 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13388 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13389 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13390 $as_echo_n "(cached) " >&6
13391 else
13392 lt_cv_prog_compiler_static_works_CXX=no
13393 save_LDFLAGS="$LDFLAGS"
13394 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13395 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13396 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13397 # The linker can only warn and ignore the option if not recognized
13398 # So say no if there are warnings
13399 if test -s conftest.err; then
13400 # Append any errors to the config.log.
13401 cat conftest.err 1>&5
13402 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13404 if diff conftest.exp conftest.er2 >/dev/null; then
13405 lt_cv_prog_compiler_static_works_CXX=yes
13407 else
13408 lt_cv_prog_compiler_static_works_CXX=yes
13411 $RM -r conftest*
13412 LDFLAGS="$save_LDFLAGS"
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13416 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13418 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13420 else
13421 lt_prog_compiler_static_CXX=
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13428 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13429 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13430 $as_echo_n "(cached) " >&6
13431 else
13432 lt_cv_prog_compiler_c_o_CXX=no
13433 $RM -r conftest 2>/dev/null
13434 mkdir conftest
13435 cd conftest
13436 mkdir out
13437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13439 lt_compiler_flag="-o out/conftest2.$ac_objext"
13440 # Insert the option either (1) after the last *FLAGS variable, or
13441 # (2) before a word containing "conftest.", or (3) at the end.
13442 # Note that $ac_compile itself does not contain backslashes and begins
13443 # with a dollar sign (not a hyphen), so the echo should work correctly.
13444 lt_compile=`echo "$ac_compile" | $SED \
13445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13447 -e 's:$: $lt_compiler_flag:'`
13448 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13449 (eval "$lt_compile" 2>out/conftest.err)
13450 ac_status=$?
13451 cat out/conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13454 then
13455 # The compiler can only warn and ignore the option if not recognized
13456 # So say no if there are warnings
13457 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13458 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13459 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13460 lt_cv_prog_compiler_c_o_CXX=yes
13463 chmod u+w . 2>&5
13464 $RM conftest*
13465 # SGI C++ compiler will create directory out/ii_files/ for
13466 # template instantiation
13467 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13468 $RM out/* && rmdir out
13469 cd ..
13470 $RM -r conftest
13471 $RM conftest*
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13475 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13480 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13481 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13482 $as_echo_n "(cached) " >&6
13483 else
13484 lt_cv_prog_compiler_c_o_CXX=no
13485 $RM -r conftest 2>/dev/null
13486 mkdir conftest
13487 cd conftest
13488 mkdir out
13489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13491 lt_compiler_flag="-o out/conftest2.$ac_objext"
13492 # Insert the option either (1) after the last *FLAGS variable, or
13493 # (2) before a word containing "conftest.", or (3) at the end.
13494 # Note that $ac_compile itself does not contain backslashes and begins
13495 # with a dollar sign (not a hyphen), so the echo should work correctly.
13496 lt_compile=`echo "$ac_compile" | $SED \
13497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13499 -e 's:$: $lt_compiler_flag:'`
13500 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13501 (eval "$lt_compile" 2>out/conftest.err)
13502 ac_status=$?
13503 cat out/conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13506 then
13507 # The compiler can only warn and ignore the option if not recognized
13508 # So say no if there are warnings
13509 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13510 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13511 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13512 lt_cv_prog_compiler_c_o_CXX=yes
13515 chmod u+w . 2>&5
13516 $RM conftest*
13517 # SGI C++ compiler will create directory out/ii_files/ for
13518 # template instantiation
13519 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13520 $RM out/* && rmdir out
13521 cd ..
13522 $RM -r conftest
13523 $RM conftest*
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13527 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13532 hard_links="nottested"
13533 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13534 # do not overwrite the value of need_locks provided by the user
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13536 $as_echo_n "checking if we can lock with hard links... " >&6; }
13537 hard_links=yes
13538 $RM conftest*
13539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13540 touch conftest.a
13541 ln conftest.a conftest.b 2>&5 || hard_links=no
13542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13544 $as_echo "$hard_links" >&6; }
13545 if test "$hard_links" = no; then
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13547 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13548 need_locks=warn
13550 else
13551 need_locks=no
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13557 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13559 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13560 case $host_os in
13561 aix[4-9]*)
13562 # If we're using GNU nm, then we don't want the "-C" option.
13563 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13564 # Also, AIX nm treats weak defined symbols like other global defined
13565 # symbols, whereas GNU nm marks them as "W".
13566 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13567 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'
13568 else
13569 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'
13572 pw32*)
13573 export_symbols_cmds_CXX="$ltdll_cmds"
13575 cygwin* | mingw* | cegcc*)
13576 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'
13579 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13581 esac
13582 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13585 $as_echo "$ld_shlibs_CXX" >&6; }
13586 test "$ld_shlibs_CXX" = no && can_build_shared=no
13588 with_gnu_ld_CXX=$with_gnu_ld
13596 # Do we need to explicitly link libc?
13598 case "x$archive_cmds_need_lc_CXX" in
13599 x|xyes)
13600 # Assume -lc should be added
13601 archive_cmds_need_lc_CXX=yes
13603 if test "$enable_shared" = yes && test "$GCC" = yes; then
13604 case $archive_cmds_CXX in
13605 *'~'*)
13606 # FIXME: we may have to deal with multi-command sequences.
13608 '$CC '*)
13609 # Test whether the compiler implicitly links with -lc since on some
13610 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13611 # to ld, don't add -lc before -lgcc.
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13613 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13614 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13615 $as_echo_n "(cached) " >&6
13616 else
13617 $RM conftest*
13618 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13621 (eval $ac_compile) 2>&5
13622 ac_status=$?
13623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13624 test $ac_status = 0; } 2>conftest.err; then
13625 soname=conftest
13626 lib=conftest
13627 libobjs=conftest.$ac_objext
13628 deplibs=
13629 wl=$lt_prog_compiler_wl_CXX
13630 pic_flag=$lt_prog_compiler_pic_CXX
13631 compiler_flags=-v
13632 linker_flags=-v
13633 verstring=
13634 output_objdir=.
13635 libname=conftest
13636 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13637 allow_undefined_flag_CXX=
13638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13639 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13640 ac_status=$?
13641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13642 test $ac_status = 0; }
13643 then
13644 lt_cv_archive_cmds_need_lc_CXX=no
13645 else
13646 lt_cv_archive_cmds_need_lc_CXX=yes
13648 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13649 else
13650 cat conftest.err 1>&5
13652 $RM conftest*
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13656 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13657 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13659 esac
13662 esac
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13728 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13730 library_names_spec=
13731 libname_spec='lib$name'
13732 soname_spec=
13733 shrext_cmds=".so"
13734 postinstall_cmds=
13735 postuninstall_cmds=
13736 finish_cmds=
13737 finish_eval=
13738 shlibpath_var=
13739 shlibpath_overrides_runpath=unknown
13740 version_type=none
13741 dynamic_linker="$host_os ld.so"
13742 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13743 need_lib_prefix=unknown
13744 hardcode_into_libs=no
13746 # when you set need_version to no, make sure it does not cause -set_version
13747 # flags to be left without arguments
13748 need_version=unknown
13750 case $host_os in
13751 aix3*)
13752 version_type=linux
13753 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13754 shlibpath_var=LIBPATH
13756 # AIX 3 has no versioning support, so we append a major version to the name.
13757 soname_spec='${libname}${release}${shared_ext}$major'
13760 aix[4-9]*)
13761 version_type=linux
13762 need_lib_prefix=no
13763 need_version=no
13764 hardcode_into_libs=yes
13765 if test "$host_cpu" = ia64; then
13766 # AIX 5 supports IA64
13767 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13768 shlibpath_var=LD_LIBRARY_PATH
13769 else
13770 # With GCC up to 2.95.x, collect2 would create an import file
13771 # for dependence libraries. The import file would start with
13772 # the line `#! .'. This would cause the generated library to
13773 # depend on `.', always an invalid library. This was fixed in
13774 # development snapshots of GCC prior to 3.0.
13775 case $host_os in
13776 aix4 | aix4.[01] | aix4.[01].*)
13777 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13778 echo ' yes '
13779 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13781 else
13782 can_build_shared=no
13785 esac
13786 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13787 # soname into executable. Probably we can add versioning support to
13788 # collect2, so additional links can be useful in future.
13789 if test "$aix_use_runtimelinking" = yes; then
13790 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13791 # instead of lib<name>.a to let people know that these are not
13792 # typical AIX shared libraries.
13793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13794 else
13795 # We preserve .a as extension for shared libraries through AIX4.2
13796 # and later when we are not doing run time linking.
13797 library_names_spec='${libname}${release}.a $libname.a'
13798 soname_spec='${libname}${release}${shared_ext}$major'
13800 shlibpath_var=LIBPATH
13804 amigaos*)
13805 case $host_cpu in
13806 powerpc)
13807 # Since July 2007 AmigaOS4 officially supports .so libraries.
13808 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13811 m68k)
13812 library_names_spec='$libname.ixlibrary $libname.a'
13813 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13814 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'
13816 esac
13819 beos*)
13820 library_names_spec='${libname}${shared_ext}'
13821 dynamic_linker="$host_os ld.so"
13822 shlibpath_var=LIBRARY_PATH
13825 bsdi[45]*)
13826 version_type=linux
13827 need_version=no
13828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13829 soname_spec='${libname}${release}${shared_ext}$major'
13830 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13831 shlibpath_var=LD_LIBRARY_PATH
13832 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13833 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13834 # the default ld.so.conf also contains /usr/contrib/lib and
13835 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13836 # libtool to hard-code these into programs
13839 cygwin* | mingw* | pw32* | cegcc*)
13840 version_type=windows
13841 shrext_cmds=".dll"
13842 need_version=no
13843 need_lib_prefix=no
13845 case $GCC,$host_os in
13846 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13847 library_names_spec='$libname.dll.a'
13848 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13849 postinstall_cmds='base_file=`basename \${file}`~
13850 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13851 dldir=$destdir/`dirname \$dlpath`~
13852 test -d \$dldir || mkdir -p \$dldir~
13853 $install_prog $dir/$dlname \$dldir/$dlname~
13854 chmod a+x \$dldir/$dlname~
13855 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13856 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13858 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13859 dlpath=$dir/\$dldll~
13860 $RM \$dlpath'
13861 shlibpath_overrides_runpath=yes
13863 case $host_os in
13864 cygwin*)
13865 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13866 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13869 mingw* | cegcc*)
13870 # MinGW DLLs use traditional 'lib' prefix
13871 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13873 pw32*)
13874 # pw32 DLLs use 'pw' prefix rather than 'lib'
13875 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13877 esac
13881 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13883 esac
13884 dynamic_linker='Win32 ld.exe'
13885 # FIXME: first we should search . and the directory the executable is in
13886 shlibpath_var=PATH
13889 darwin* | rhapsody*)
13890 dynamic_linker="$host_os dyld"
13891 version_type=darwin
13892 need_lib_prefix=no
13893 need_version=no
13894 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13895 soname_spec='${libname}${release}${major}$shared_ext'
13896 shlibpath_overrides_runpath=yes
13897 shlibpath_var=DYLD_LIBRARY_PATH
13898 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13900 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13903 dgux*)
13904 version_type=linux
13905 need_lib_prefix=no
13906 need_version=no
13907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13908 soname_spec='${libname}${release}${shared_ext}$major'
13909 shlibpath_var=LD_LIBRARY_PATH
13912 freebsd* | dragonfly*)
13913 # DragonFly does not have aout. When/if they implement a new
13914 # versioning mechanism, adjust this.
13915 if test -x /usr/bin/objformat; then
13916 objformat=`/usr/bin/objformat`
13917 else
13918 case $host_os in
13919 freebsd[23].*) objformat=aout ;;
13920 *) objformat=elf ;;
13921 esac
13923 version_type=freebsd-$objformat
13924 case $version_type in
13925 freebsd-elf*)
13926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13927 need_version=no
13928 need_lib_prefix=no
13930 freebsd-*)
13931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13932 need_version=yes
13934 esac
13935 shlibpath_var=LD_LIBRARY_PATH
13936 case $host_os in
13937 freebsd2.*)
13938 shlibpath_overrides_runpath=yes
13940 freebsd3.[01]* | freebsdelf3.[01]*)
13941 shlibpath_overrides_runpath=yes
13942 hardcode_into_libs=yes
13944 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13945 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13946 shlibpath_overrides_runpath=no
13947 hardcode_into_libs=yes
13949 *) # from 4.6 on, and DragonFly
13950 shlibpath_overrides_runpath=yes
13951 hardcode_into_libs=yes
13953 esac
13956 gnu*)
13957 version_type=linux
13958 need_lib_prefix=no
13959 need_version=no
13960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13961 soname_spec='${libname}${release}${shared_ext}$major'
13962 shlibpath_var=LD_LIBRARY_PATH
13963 hardcode_into_libs=yes
13966 haiku*)
13967 version_type=linux
13968 need_lib_prefix=no
13969 need_version=no
13970 dynamic_linker="$host_os runtime_loader"
13971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13972 soname_spec='${libname}${release}${shared_ext}$major'
13973 shlibpath_var=LIBRARY_PATH
13974 shlibpath_overrides_runpath=yes
13975 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13976 hardcode_into_libs=yes
13979 hpux9* | hpux10* | hpux11*)
13980 # Give a soname corresponding to the major version so that dld.sl refuses to
13981 # link against other versions.
13982 version_type=sunos
13983 need_lib_prefix=no
13984 need_version=no
13985 case $host_cpu in
13986 ia64*)
13987 shrext_cmds='.so'
13988 hardcode_into_libs=yes
13989 dynamic_linker="$host_os dld.so"
13990 shlibpath_var=LD_LIBRARY_PATH
13991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13993 soname_spec='${libname}${release}${shared_ext}$major'
13994 if test "X$HPUX_IA64_MODE" = X32; then
13995 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13996 else
13997 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14001 hppa*64*)
14002 shrext_cmds='.sl'
14003 hardcode_into_libs=yes
14004 dynamic_linker="$host_os dld.sl"
14005 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14008 soname_spec='${libname}${release}${shared_ext}$major'
14009 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14013 shrext_cmds='.sl'
14014 dynamic_linker="$host_os dld.sl"
14015 shlibpath_var=SHLIB_PATH
14016 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14018 soname_spec='${libname}${release}${shared_ext}$major'
14020 esac
14021 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14022 postinstall_cmds='chmod 555 $lib'
14023 # or fails outright, so override atomically:
14024 install_override_mode=555
14027 interix[3-9]*)
14028 version_type=linux
14029 need_lib_prefix=no
14030 need_version=no
14031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14032 soname_spec='${libname}${release}${shared_ext}$major'
14033 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14034 shlibpath_var=LD_LIBRARY_PATH
14035 shlibpath_overrides_runpath=no
14036 hardcode_into_libs=yes
14039 irix5* | irix6* | nonstopux*)
14040 case $host_os in
14041 nonstopux*) version_type=nonstopux ;;
14043 if test "$lt_cv_prog_gnu_ld" = yes; then
14044 version_type=linux
14045 else
14046 version_type=irix
14047 fi ;;
14048 esac
14049 need_lib_prefix=no
14050 need_version=no
14051 soname_spec='${libname}${release}${shared_ext}$major'
14052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14053 case $host_os in
14054 irix5* | nonstopux*)
14055 libsuff= shlibsuff=
14058 case $LD in # libtool.m4 will add one of these switches to LD
14059 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14060 libsuff= shlibsuff= libmagic=32-bit;;
14061 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14062 libsuff=32 shlibsuff=N32 libmagic=N32;;
14063 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14064 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14065 *) libsuff= shlibsuff= libmagic=never-match;;
14066 esac
14068 esac
14069 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14070 shlibpath_overrides_runpath=no
14071 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14072 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14073 hardcode_into_libs=yes
14076 # No shared lib support for Linux oldld, aout, or coff.
14077 linux*oldld* | linux*aout* | linux*coff*)
14078 dynamic_linker=no
14081 # This must be Linux ELF.
14082 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14083 version_type=linux
14084 need_lib_prefix=no
14085 need_version=no
14086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14087 soname_spec='${libname}${release}${shared_ext}$major'
14088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14089 shlibpath_var=LD_LIBRARY_PATH
14090 shlibpath_overrides_runpath=no
14092 # Some binutils ld are patched to set DT_RUNPATH
14093 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14094 $as_echo_n "(cached) " >&6
14095 else
14096 lt_cv_shlibpath_overrides_runpath=no
14097 save_LDFLAGS=$LDFLAGS
14098 save_libdir=$libdir
14099 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14100 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h. */
14105 main ()
14109 return 0;
14111 _ACEOF
14112 if ac_fn_cxx_try_link "$LINENO"; then :
14113 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14114 lt_cv_shlibpath_overrides_runpath=yes
14117 rm -f core conftest.err conftest.$ac_objext \
14118 conftest$ac_exeext conftest.$ac_ext
14119 LDFLAGS=$save_LDFLAGS
14120 libdir=$save_libdir
14124 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14126 # This implies no fast_install, which is unacceptable.
14127 # Some rework will be needed to allow for fast_install
14128 # before this can be enabled.
14129 hardcode_into_libs=yes
14131 # Append ld.so.conf contents to the search path
14132 if test -f /etc/ld.so.conf; then
14133 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' ' '`
14134 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14137 # We used to test for /lib/ld.so.1 and disable shared libraries on
14138 # powerpc, because MkLinux only supported shared libraries with the
14139 # GNU dynamic linker. Since this was broken with cross compilers,
14140 # most powerpc-linux boxes support dynamic linking these days and
14141 # people can always --disable-shared, the test was removed, and we
14142 # assume the GNU/Linux dynamic linker is in use.
14143 dynamic_linker='GNU/Linux ld.so'
14146 netbsd*)
14147 version_type=sunos
14148 need_lib_prefix=no
14149 need_version=no
14150 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14153 dynamic_linker='NetBSD (a.out) ld.so'
14154 else
14155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14156 soname_spec='${libname}${release}${shared_ext}$major'
14157 dynamic_linker='NetBSD ld.elf_so'
14159 shlibpath_var=LD_LIBRARY_PATH
14160 shlibpath_overrides_runpath=yes
14161 hardcode_into_libs=yes
14164 newsos6)
14165 version_type=linux
14166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14167 shlibpath_var=LD_LIBRARY_PATH
14168 shlibpath_overrides_runpath=yes
14171 *nto* | *qnx*)
14172 version_type=qnx
14173 need_lib_prefix=no
14174 need_version=no
14175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14176 soname_spec='${libname}${release}${shared_ext}$major'
14177 shlibpath_var=LD_LIBRARY_PATH
14178 shlibpath_overrides_runpath=no
14179 hardcode_into_libs=yes
14180 dynamic_linker='ldqnx.so'
14183 openbsd*)
14184 version_type=sunos
14185 sys_lib_dlsearch_path_spec="/usr/lib"
14186 need_lib_prefix=no
14187 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14188 case $host_os in
14189 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14190 *) need_version=no ;;
14191 esac
14192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14194 shlibpath_var=LD_LIBRARY_PATH
14195 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14196 case $host_os in
14197 openbsd2.[89] | openbsd2.[89].*)
14198 shlibpath_overrides_runpath=no
14201 shlibpath_overrides_runpath=yes
14203 esac
14204 else
14205 shlibpath_overrides_runpath=yes
14209 os2*)
14210 libname_spec='$name'
14211 shrext_cmds=".dll"
14212 need_lib_prefix=no
14213 library_names_spec='$libname${shared_ext} $libname.a'
14214 dynamic_linker='OS/2 ld.exe'
14215 shlibpath_var=LIBPATH
14218 osf3* | osf4* | osf5*)
14219 version_type=osf
14220 need_lib_prefix=no
14221 need_version=no
14222 soname_spec='${libname}${release}${shared_ext}$major'
14223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14224 shlibpath_var=LD_LIBRARY_PATH
14225 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14226 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14229 rdos*)
14230 dynamic_linker=no
14233 solaris*)
14234 version_type=linux
14235 need_lib_prefix=no
14236 need_version=no
14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14238 soname_spec='${libname}${release}${shared_ext}$major'
14239 shlibpath_var=LD_LIBRARY_PATH
14240 shlibpath_overrides_runpath=yes
14241 hardcode_into_libs=yes
14242 # ldd complains unless libraries are executable
14243 postinstall_cmds='chmod +x $lib'
14246 sunos4*)
14247 version_type=sunos
14248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14249 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14250 shlibpath_var=LD_LIBRARY_PATH
14251 shlibpath_overrides_runpath=yes
14252 if test "$with_gnu_ld" = yes; then
14253 need_lib_prefix=no
14255 need_version=yes
14258 sysv4 | sysv4.3*)
14259 version_type=linux
14260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14261 soname_spec='${libname}${release}${shared_ext}$major'
14262 shlibpath_var=LD_LIBRARY_PATH
14263 case $host_vendor in
14264 sni)
14265 shlibpath_overrides_runpath=no
14266 need_lib_prefix=no
14267 runpath_var=LD_RUN_PATH
14269 siemens)
14270 need_lib_prefix=no
14272 motorola)
14273 need_lib_prefix=no
14274 need_version=no
14275 shlibpath_overrides_runpath=no
14276 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14278 esac
14281 sysv4*MP*)
14282 if test -d /usr/nec ;then
14283 version_type=linux
14284 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14285 soname_spec='$libname${shared_ext}.$major'
14286 shlibpath_var=LD_LIBRARY_PATH
14290 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14291 version_type=freebsd-elf
14292 need_lib_prefix=no
14293 need_version=no
14294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14295 soname_spec='${libname}${release}${shared_ext}$major'
14296 shlibpath_var=LD_LIBRARY_PATH
14297 shlibpath_overrides_runpath=yes
14298 hardcode_into_libs=yes
14299 if test "$with_gnu_ld" = yes; then
14300 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14301 else
14302 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14303 case $host_os in
14304 sco3.2v5*)
14305 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14307 esac
14309 sys_lib_dlsearch_path_spec='/usr/lib'
14312 tpf*)
14313 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14314 version_type=linux
14315 need_lib_prefix=no
14316 need_version=no
14317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14318 shlibpath_var=LD_LIBRARY_PATH
14319 shlibpath_overrides_runpath=no
14320 hardcode_into_libs=yes
14323 uts4*)
14324 version_type=linux
14325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14326 soname_spec='${libname}${release}${shared_ext}$major'
14327 shlibpath_var=LD_LIBRARY_PATH
14331 dynamic_linker=no
14333 esac
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14335 $as_echo "$dynamic_linker" >&6; }
14336 test "$dynamic_linker" = no && can_build_shared=no
14338 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14339 if test "$GCC" = yes; then
14340 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14343 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14344 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14346 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14347 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14388 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14389 hardcode_action_CXX=
14390 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14391 test -n "$runpath_var_CXX" ||
14392 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14394 # We can hardcode non-existent directories.
14395 if test "$hardcode_direct_CXX" != no &&
14396 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14397 # have to relink, otherwise we might link with an installed library
14398 # when we should be linking with a yet-to-be-installed one
14399 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14400 test "$hardcode_minus_L_CXX" != no; then
14401 # Linking always hardcodes the temporary library directory.
14402 hardcode_action_CXX=relink
14403 else
14404 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14405 hardcode_action_CXX=immediate
14407 else
14408 # We cannot hardcode anything, or else we can only hardcode existing
14409 # directories.
14410 hardcode_action_CXX=unsupported
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14413 $as_echo "$hardcode_action_CXX" >&6; }
14415 if test "$hardcode_action_CXX" = relink ||
14416 test "$inherit_rpath_CXX" = yes; then
14417 # Fast installation is not supported
14418 enable_fast_install=no
14419 elif test "$shlibpath_overrides_runpath" = yes ||
14420 test "$enable_shared" = no; then
14421 # Fast installation is not necessary
14422 enable_fast_install=needless
14431 fi # test -n "$compiler"
14433 CC=$lt_save_CC
14434 LDCXX=$LD
14435 LD=$lt_save_LD
14436 GCC=$lt_save_GCC
14437 with_gnu_ld=$lt_save_with_gnu_ld
14438 lt_cv_path_LDCXX=$lt_cv_path_LD
14439 lt_cv_path_LD=$lt_save_path_LD
14440 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14441 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14442 fi # test "$_lt_caught_CXX_error" != yes
14444 ac_ext=c
14445 ac_cpp='$CPP $CPPFLAGS'
14446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14462 ac_config_commands="$ac_config_commands libtool"
14467 # Only expand once:
14470 # Forbid libtool to hardcode RPATH, because we want to be able to specify
14471 # library search directory using LD_LIBRARY_PATH
14472 hardcode_into_libs=no
14478 if test $enable_shared = yes; then
14479 link_offloadmic_host="-loffloadmic_host %{static: $LIBS}"
14480 link_offloadmic_target="-loffloadmic_target %{static: $LIBS}"
14481 else
14482 link_offloadmic_host="-loffloadmic_host $LIBS"
14483 link_offloadmic_target="-loffloadmic_target $LIBS"
14488 # Determine what GCC version number to use in filesystem paths.
14490 get_gcc_base_ver="cat"
14492 # Check whether --with-gcc-major-version-only was given.
14493 if test "${with_gcc_major_version_only+set}" = set; then :
14494 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14495 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14503 # Must be last
14504 cat >confcache <<\_ACEOF
14505 # This file is a shell script that caches the results of configure
14506 # tests run on this system so they can be shared between configure
14507 # scripts and configure runs, see configure's option --config-cache.
14508 # It is not useful on other systems. If it contains results you don't
14509 # want to keep, you may remove or edit it.
14511 # config.status only pays attention to the cache file if you give it
14512 # the --recheck option to rerun configure.
14514 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14515 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14516 # following values.
14518 _ACEOF
14520 # The following way of writing the cache mishandles newlines in values,
14521 # but we know of no workaround that is simple, portable, and efficient.
14522 # So, we kill variables containing newlines.
14523 # Ultrix sh set writes to stderr and can't be redirected directly,
14524 # and sets the high bit in the cache file unless we assign to the vars.
14526 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14527 eval ac_val=\$$ac_var
14528 case $ac_val in #(
14529 *${as_nl}*)
14530 case $ac_var in #(
14531 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14532 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14533 esac
14534 case $ac_var in #(
14535 _ | IFS | as_nl) ;; #(
14536 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14537 *) { eval $ac_var=; unset $ac_var;} ;;
14538 esac ;;
14539 esac
14540 done
14542 (set) 2>&1 |
14543 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14544 *${as_nl}ac_space=\ *)
14545 # `set' does not quote correctly, so add quotes: double-quote
14546 # substitution turns \\\\ into \\, and sed turns \\ into \.
14547 sed -n \
14548 "s/'/'\\\\''/g;
14549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14550 ;; #(
14552 # `set' quotes correctly as required by POSIX, so do not add quotes.
14553 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14555 esac |
14556 sort
14558 sed '
14559 /^ac_cv_env_/b end
14560 t clear
14561 :clear
14562 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14563 t end
14564 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14565 :end' >>confcache
14566 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14567 if test -w "$cache_file"; then
14568 test "x$cache_file" != "x/dev/null" &&
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14570 $as_echo "$as_me: updating cache $cache_file" >&6;}
14571 cat confcache >$cache_file
14572 else
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14574 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14577 rm -f confcache
14579 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14580 # Let make expand exec_prefix.
14581 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14583 # Transform confdefs.h into DEFS.
14584 # Protect against shell expansion while executing Makefile rules.
14585 # Protect against Makefile macro expansion.
14587 # If the first sed substitution is executed (which looks for macros that
14588 # take arguments), then branch to the quote section. Otherwise,
14589 # look for a macro that doesn't take arguments.
14590 ac_script='
14591 :mline
14592 /\\$/{
14594 s,\\\n,,
14595 b mline
14597 t clear
14598 :clear
14599 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14600 t quote
14601 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14602 t quote
14603 b any
14604 :quote
14605 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14606 s/\[/\\&/g
14607 s/\]/\\&/g
14608 s/\$/$$/g
14610 :any
14613 s/^\n//
14614 s/\n/ /g
14618 DEFS=`sed -n "$ac_script" confdefs.h`
14621 ac_libobjs=
14622 ac_ltlibobjs=
14623 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14624 # 1. Remove the extension, and $U if already installed.
14625 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14626 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14627 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14628 # will be set to the directory where LIBOBJS objects are built.
14629 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14630 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14631 done
14632 LIBOBJS=$ac_libobjs
14634 LTLIBOBJS=$ac_ltlibobjs
14637 if test -n "$EXEEXT"; then
14638 am__EXEEXT_TRUE=
14639 am__EXEEXT_FALSE='#'
14640 else
14641 am__EXEEXT_TRUE='#'
14642 am__EXEEXT_FALSE=
14645 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14646 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14649 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14650 as_fn_error "conditional \"AMDEP\" was never defined.
14651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14653 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14654 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14657 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14658 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14661 if test -z "${LIBOFFLOADMIC_HOST_TRUE}" && test -z "${LIBOFFLOADMIC_HOST_FALSE}"; then
14662 as_fn_error "conditional \"LIBOFFLOADMIC_HOST\" was never defined.
14663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14666 : ${CONFIG_STATUS=./config.status}
14667 ac_write_fail=0
14668 ac_clean_files_save=$ac_clean_files
14669 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14671 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14672 as_write_fail=0
14673 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14674 #! $SHELL
14675 # Generated by $as_me.
14676 # Run this file to recreate the current configuration.
14677 # Compiler output produced by configure, useful for debugging
14678 # configure, is in config.log if it exists.
14680 debug=false
14681 ac_cs_recheck=false
14682 ac_cs_silent=false
14684 SHELL=\${CONFIG_SHELL-$SHELL}
14685 export SHELL
14686 _ASEOF
14687 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14688 ## -------------------- ##
14689 ## M4sh Initialization. ##
14690 ## -------------------- ##
14692 # Be more Bourne compatible
14693 DUALCASE=1; export DUALCASE # for MKS sh
14694 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14695 emulate sh
14696 NULLCMD=:
14697 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14698 # is contrary to our usage. Disable this feature.
14699 alias -g '${1+"$@"}'='"$@"'
14700 setopt NO_GLOB_SUBST
14701 else
14702 case `(set -o) 2>/dev/null` in #(
14703 *posix*) :
14704 set -o posix ;; #(
14705 *) :
14707 esac
14711 as_nl='
14713 export as_nl
14714 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14715 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14716 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14717 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14718 # Prefer a ksh shell builtin over an external printf program on Solaris,
14719 # but without wasting forks for bash or zsh.
14720 if test -z "$BASH_VERSION$ZSH_VERSION" \
14721 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14722 as_echo='print -r --'
14723 as_echo_n='print -rn --'
14724 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14725 as_echo='printf %s\n'
14726 as_echo_n='printf %s'
14727 else
14728 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14729 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14730 as_echo_n='/usr/ucb/echo -n'
14731 else
14732 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14733 as_echo_n_body='eval
14734 arg=$1;
14735 case $arg in #(
14736 *"$as_nl"*)
14737 expr "X$arg" : "X\\(.*\\)$as_nl";
14738 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14739 esac;
14740 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14742 export as_echo_n_body
14743 as_echo_n='sh -c $as_echo_n_body as_echo'
14745 export as_echo_body
14746 as_echo='sh -c $as_echo_body as_echo'
14749 # The user is always right.
14750 if test "${PATH_SEPARATOR+set}" != set; then
14751 PATH_SEPARATOR=:
14752 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14753 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14754 PATH_SEPARATOR=';'
14759 # IFS
14760 # We need space, tab and new line, in precisely that order. Quoting is
14761 # there to prevent editors from complaining about space-tab.
14762 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14763 # splitting by setting IFS to empty value.)
14764 IFS=" "" $as_nl"
14766 # Find who we are. Look in the path if we contain no directory separator.
14767 case $0 in #((
14768 *[\\/]* ) as_myself=$0 ;;
14769 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14770 for as_dir in $PATH
14772 IFS=$as_save_IFS
14773 test -z "$as_dir" && as_dir=.
14774 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14775 done
14776 IFS=$as_save_IFS
14779 esac
14780 # We did not find ourselves, most probably we were run as `sh COMMAND'
14781 # in which case we are not to be found in the path.
14782 if test "x$as_myself" = x; then
14783 as_myself=$0
14785 if test ! -f "$as_myself"; then
14786 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14787 exit 1
14790 # Unset variables that we do not need and which cause bugs (e.g. in
14791 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14792 # suppresses any "Segmentation fault" message there. '((' could
14793 # trigger a bug in pdksh 5.2.14.
14794 for as_var in BASH_ENV ENV MAIL MAILPATH
14795 do eval test x\${$as_var+set} = xset \
14796 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14797 done
14798 PS1='$ '
14799 PS2='> '
14800 PS4='+ '
14802 # NLS nuisances.
14803 LC_ALL=C
14804 export LC_ALL
14805 LANGUAGE=C
14806 export LANGUAGE
14808 # CDPATH.
14809 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14812 # as_fn_error ERROR [LINENO LOG_FD]
14813 # ---------------------------------
14814 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14815 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14816 # script with status $?, using 1 if that was 0.
14817 as_fn_error ()
14819 as_status=$?; test $as_status -eq 0 && as_status=1
14820 if test "$3"; then
14821 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14822 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14824 $as_echo "$as_me: error: $1" >&2
14825 as_fn_exit $as_status
14826 } # as_fn_error
14829 # as_fn_set_status STATUS
14830 # -----------------------
14831 # Set $? to STATUS, without forking.
14832 as_fn_set_status ()
14834 return $1
14835 } # as_fn_set_status
14837 # as_fn_exit STATUS
14838 # -----------------
14839 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14840 as_fn_exit ()
14842 set +e
14843 as_fn_set_status $1
14844 exit $1
14845 } # as_fn_exit
14847 # as_fn_unset VAR
14848 # ---------------
14849 # Portably unset VAR.
14850 as_fn_unset ()
14852 { eval $1=; unset $1;}
14854 as_unset=as_fn_unset
14855 # as_fn_append VAR VALUE
14856 # ----------------------
14857 # Append the text in VALUE to the end of the definition contained in VAR. Take
14858 # advantage of any shell optimizations that allow amortized linear growth over
14859 # repeated appends, instead of the typical quadratic growth present in naive
14860 # implementations.
14861 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14862 eval 'as_fn_append ()
14864 eval $1+=\$2
14866 else
14867 as_fn_append ()
14869 eval $1=\$$1\$2
14871 fi # as_fn_append
14873 # as_fn_arith ARG...
14874 # ------------------
14875 # Perform arithmetic evaluation on the ARGs, and store the result in the
14876 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14877 # must be portable across $(()) and expr.
14878 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14879 eval 'as_fn_arith ()
14881 as_val=$(( $* ))
14883 else
14884 as_fn_arith ()
14886 as_val=`expr "$@" || test $? -eq 1`
14888 fi # as_fn_arith
14891 if expr a : '\(a\)' >/dev/null 2>&1 &&
14892 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14893 as_expr=expr
14894 else
14895 as_expr=false
14898 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14899 as_basename=basename
14900 else
14901 as_basename=false
14904 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14905 as_dirname=dirname
14906 else
14907 as_dirname=false
14910 as_me=`$as_basename -- "$0" ||
14911 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14912 X"$0" : 'X\(//\)$' \| \
14913 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14914 $as_echo X/"$0" |
14915 sed '/^.*\/\([^/][^/]*\)\/*$/{
14916 s//\1/
14919 /^X\/\(\/\/\)$/{
14920 s//\1/
14923 /^X\/\(\/\).*/{
14924 s//\1/
14927 s/.*/./; q'`
14929 # Avoid depending upon Character Ranges.
14930 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14931 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14932 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14933 as_cr_digits='0123456789'
14934 as_cr_alnum=$as_cr_Letters$as_cr_digits
14936 ECHO_C= ECHO_N= ECHO_T=
14937 case `echo -n x` in #(((((
14938 -n*)
14939 case `echo 'xy\c'` in
14940 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14941 xy) ECHO_C='\c';;
14942 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14943 ECHO_T=' ';;
14944 esac;;
14946 ECHO_N='-n';;
14947 esac
14949 rm -f conf$$ conf$$.exe conf$$.file
14950 if test -d conf$$.dir; then
14951 rm -f conf$$.dir/conf$$.file
14952 else
14953 rm -f conf$$.dir
14954 mkdir conf$$.dir 2>/dev/null
14956 if (echo >conf$$.file) 2>/dev/null; then
14957 if ln -s conf$$.file conf$$ 2>/dev/null; then
14958 as_ln_s='ln -s'
14959 # ... but there are two gotchas:
14960 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14961 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14962 # In both cases, we have to default to `cp -p'.
14963 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14964 as_ln_s='cp -p'
14965 elif ln conf$$.file conf$$ 2>/dev/null; then
14966 as_ln_s=ln
14967 else
14968 as_ln_s='cp -p'
14970 else
14971 as_ln_s='cp -p'
14973 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14974 rmdir conf$$.dir 2>/dev/null
14977 # as_fn_mkdir_p
14978 # -------------
14979 # Create "$as_dir" as a directory, including parents if necessary.
14980 as_fn_mkdir_p ()
14983 case $as_dir in #(
14984 -*) as_dir=./$as_dir;;
14985 esac
14986 test -d "$as_dir" || eval $as_mkdir_p || {
14987 as_dirs=
14988 while :; do
14989 case $as_dir in #(
14990 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14991 *) as_qdir=$as_dir;;
14992 esac
14993 as_dirs="'$as_qdir' $as_dirs"
14994 as_dir=`$as_dirname -- "$as_dir" ||
14995 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14996 X"$as_dir" : 'X\(//\)[^/]' \| \
14997 X"$as_dir" : 'X\(//\)$' \| \
14998 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14999 $as_echo X"$as_dir" |
15000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15001 s//\1/
15004 /^X\(\/\/\)[^/].*/{
15005 s//\1/
15008 /^X\(\/\/\)$/{
15009 s//\1/
15012 /^X\(\/\).*/{
15013 s//\1/
15016 s/.*/./; q'`
15017 test -d "$as_dir" && break
15018 done
15019 test -z "$as_dirs" || eval "mkdir $as_dirs"
15020 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15023 } # as_fn_mkdir_p
15024 if mkdir -p . 2>/dev/null; then
15025 as_mkdir_p='mkdir -p "$as_dir"'
15026 else
15027 test -d ./-p && rmdir ./-p
15028 as_mkdir_p=false
15031 if test -x / >/dev/null 2>&1; then
15032 as_test_x='test -x'
15033 else
15034 if ls -dL / >/dev/null 2>&1; then
15035 as_ls_L_option=L
15036 else
15037 as_ls_L_option=
15039 as_test_x='
15040 eval sh -c '\''
15041 if test -d "$1"; then
15042 test -d "$1/.";
15043 else
15044 case $1 in #(
15045 -*)set "./$1";;
15046 esac;
15047 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15048 ???[sx]*):;;*)false;;esac;fi
15049 '\'' sh
15052 as_executable_p=$as_test_x
15054 # Sed expression to map a string onto a valid CPP name.
15055 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15057 # Sed expression to map a string onto a valid variable name.
15058 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15061 exec 6>&1
15062 ## ----------------------------------- ##
15063 ## Main body of $CONFIG_STATUS script. ##
15064 ## ----------------------------------- ##
15065 _ASEOF
15066 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15069 # Save the log message, to keep $0 and so on meaningful, and to
15070 # report actual input values of CONFIG_FILES etc. instead of their
15071 # values after options handling.
15072 ac_log="
15073 This file was extended by MIC Offload Runtime Library $as_me 1.0, which was
15074 generated by GNU Autoconf 2.64. Invocation command line was
15076 CONFIG_FILES = $CONFIG_FILES
15077 CONFIG_HEADERS = $CONFIG_HEADERS
15078 CONFIG_LINKS = $CONFIG_LINKS
15079 CONFIG_COMMANDS = $CONFIG_COMMANDS
15080 $ $0 $@
15082 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15085 _ACEOF
15087 case $ac_config_files in *"
15088 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15089 esac
15093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15094 # Files that config.status was made for.
15095 config_files="$ac_config_files"
15096 config_commands="$ac_config_commands"
15098 _ACEOF
15100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15101 ac_cs_usage="\
15102 \`$as_me' instantiates files and other configuration actions
15103 from templates according to the current configuration. Unless the files
15104 and actions are specified as TAGs, all are instantiated by default.
15106 Usage: $0 [OPTION]... [TAG]...
15108 -h, --help print this help, then exit
15109 -V, --version print version number and configuration settings, then exit
15110 -q, --quiet, --silent
15111 do not print progress messages
15112 -d, --debug don't remove temporary files
15113 --recheck update $as_me by reconfiguring in the same conditions
15114 --file=FILE[:TEMPLATE]
15115 instantiate the configuration file FILE
15117 Configuration files:
15118 $config_files
15120 Configuration commands:
15121 $config_commands
15123 Report bugs to the package provider."
15125 _ACEOF
15126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15127 ac_cs_version="\\
15128 MIC Offload Runtime Library config.status 1.0
15129 configured by $0, generated by GNU Autoconf 2.64,
15130 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15132 Copyright (C) 2009 Free Software Foundation, Inc.
15133 This config.status script is free software; the Free Software Foundation
15134 gives unlimited permission to copy, distribute and modify it."
15136 ac_pwd='$ac_pwd'
15137 srcdir='$srcdir'
15138 INSTALL='$INSTALL'
15139 MKDIR_P='$MKDIR_P'
15140 AWK='$AWK'
15141 test -n "\$AWK" || AWK=awk
15142 _ACEOF
15144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15145 # The default lists apply if the user does not specify any file.
15146 ac_need_defaults=:
15147 while test $# != 0
15149 case $1 in
15150 --*=*)
15151 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15152 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15153 ac_shift=:
15156 ac_option=$1
15157 ac_optarg=$2
15158 ac_shift=shift
15160 esac
15162 case $ac_option in
15163 # Handling of the options.
15164 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15165 ac_cs_recheck=: ;;
15166 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15167 $as_echo "$ac_cs_version"; exit ;;
15168 --debug | --debu | --deb | --de | --d | -d )
15169 debug=: ;;
15170 --file | --fil | --fi | --f )
15171 $ac_shift
15172 case $ac_optarg in
15173 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15174 esac
15175 as_fn_append CONFIG_FILES " '$ac_optarg'"
15176 ac_need_defaults=false;;
15177 --he | --h | --help | --hel | -h )
15178 $as_echo "$ac_cs_usage"; exit ;;
15179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15180 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15181 ac_cs_silent=: ;;
15183 # This is an error.
15184 -*) as_fn_error "unrecognized option: \`$1'
15185 Try \`$0 --help' for more information." ;;
15187 *) as_fn_append ac_config_targets " $1"
15188 ac_need_defaults=false ;;
15190 esac
15191 shift
15192 done
15194 ac_configure_extra_args=
15196 if $ac_cs_silent; then
15197 exec 6>/dev/null
15198 ac_configure_extra_args="$ac_configure_extra_args --silent"
15201 _ACEOF
15202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15203 if \$ac_cs_recheck; then
15204 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15205 shift
15206 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15207 CONFIG_SHELL='$SHELL'
15208 export CONFIG_SHELL
15209 exec "\$@"
15212 _ACEOF
15213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15214 exec 5>>config.log
15216 echo
15217 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15218 ## Running $as_me. ##
15219 _ASBOX
15220 $as_echo "$ac_log"
15221 } >&5
15223 _ACEOF
15224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15226 # INIT-COMMANDS
15228 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15230 srcdir="$srcdir"
15231 host="$host"
15232 target="$target"
15233 with_multisubdir="$with_multisubdir"
15234 with_multisrctop="$with_multisrctop"
15235 with_target_subdir="$with_target_subdir"
15236 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15237 multi_basedir="$multi_basedir"
15238 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15239 CC="$CC"
15240 CXX="$CXX"
15241 GFORTRAN="$GFORTRAN"
15244 # The HP-UX ksh and POSIX shell print the target directory to stdout
15245 # if CDPATH is set.
15246 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15248 sed_quote_subst='$sed_quote_subst'
15249 double_quote_subst='$double_quote_subst'
15250 delay_variable_subst='$delay_variable_subst'
15251 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15252 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15253 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15254 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15255 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15256 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15257 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15258 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15259 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15260 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15261 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15262 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15263 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15264 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15265 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15266 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15267 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15268 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15269 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15270 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15271 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15272 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15273 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15274 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15275 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15276 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15277 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15278 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15279 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15280 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15281 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15282 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15283 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15284 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15285 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15286 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15287 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15288 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15289 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15290 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15291 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15292 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15293 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15294 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15295 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15296 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15297 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15298 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15299 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"`'
15300 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15301 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15302 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15303 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15304 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15305 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15306 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15307 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15308 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15309 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15310 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15311 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15312 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15313 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15314 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15315 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15316 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15317 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15318 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15319 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15320 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15321 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15322 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15323 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15324 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15325 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15326 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15327 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15328 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15329 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15330 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15331 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15332 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15333 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15334 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15335 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15336 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15337 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15338 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15339 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15340 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15341 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15342 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15343 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15344 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15345 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15346 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15347 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15348 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15349 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15350 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15351 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15352 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15353 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15354 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15355 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15356 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15357 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15358 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15359 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15360 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15361 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15362 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15363 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15364 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15365 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15366 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15367 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15368 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15369 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15370 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15371 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15372 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15373 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15374 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15375 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15376 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15377 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15378 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15379 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15380 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15381 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15382 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15383 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15384 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15385 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15386 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15387 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15388 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15389 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15390 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15391 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15392 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15393 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15394 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15395 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15396 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15397 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15398 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15399 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15400 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15401 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15402 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15403 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15404 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15405 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15406 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15407 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15408 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15409 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15410 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15411 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15412 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15413 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15414 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15415 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15416 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15417 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15418 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15419 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15420 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15421 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15422 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15423 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15424 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15425 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15427 LTCC='$LTCC'
15428 LTCFLAGS='$LTCFLAGS'
15429 compiler='$compiler_DEFAULT'
15431 # A function that is used when there is no print builtin or printf.
15432 func_fallback_echo ()
15434 eval 'cat <<_LTECHO_EOF
15436 _LTECHO_EOF'
15439 # Quote evaled strings.
15440 for var in SHELL \
15441 ECHO \
15442 SED \
15443 GREP \
15444 EGREP \
15445 FGREP \
15446 LD \
15447 NM \
15448 LN_S \
15449 lt_SP2NL \
15450 lt_NL2SP \
15451 reload_flag \
15452 OBJDUMP \
15453 deplibs_check_method \
15454 file_magic_cmd \
15455 AR \
15456 AR_FLAGS \
15457 STRIP \
15458 RANLIB \
15459 CC \
15460 CFLAGS \
15461 compiler \
15462 lt_cv_sys_global_symbol_pipe \
15463 lt_cv_sys_global_symbol_to_cdecl \
15464 lt_cv_sys_global_symbol_to_c_name_address \
15465 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15466 lt_prog_compiler_no_builtin_flag \
15467 lt_prog_compiler_wl \
15468 lt_prog_compiler_pic \
15469 lt_prog_compiler_static \
15470 lt_cv_prog_compiler_c_o \
15471 need_locks \
15472 DSYMUTIL \
15473 NMEDIT \
15474 LIPO \
15475 OTOOL \
15476 OTOOL64 \
15477 shrext_cmds \
15478 export_dynamic_flag_spec \
15479 whole_archive_flag_spec \
15480 compiler_needs_object \
15481 with_gnu_ld \
15482 allow_undefined_flag \
15483 no_undefined_flag \
15484 hardcode_libdir_flag_spec \
15485 hardcode_libdir_flag_spec_ld \
15486 hardcode_libdir_separator \
15487 fix_srcfile_path \
15488 exclude_expsyms \
15489 include_expsyms \
15490 file_list_spec \
15491 variables_saved_for_relink \
15492 libname_spec \
15493 library_names_spec \
15494 soname_spec \
15495 install_override_mode \
15496 finish_eval \
15497 old_striplib \
15498 striplib \
15499 compiler_lib_search_dirs \
15500 predep_objects \
15501 postdep_objects \
15502 predeps \
15503 postdeps \
15504 compiler_lib_search_path \
15505 LD_CXX \
15506 reload_flag_CXX \
15507 compiler_CXX \
15508 lt_prog_compiler_no_builtin_flag_CXX \
15509 lt_prog_compiler_wl_CXX \
15510 lt_prog_compiler_pic_CXX \
15511 lt_prog_compiler_static_CXX \
15512 lt_cv_prog_compiler_c_o_CXX \
15513 export_dynamic_flag_spec_CXX \
15514 whole_archive_flag_spec_CXX \
15515 compiler_needs_object_CXX \
15516 with_gnu_ld_CXX \
15517 allow_undefined_flag_CXX \
15518 no_undefined_flag_CXX \
15519 hardcode_libdir_flag_spec_CXX \
15520 hardcode_libdir_flag_spec_ld_CXX \
15521 hardcode_libdir_separator_CXX \
15522 fix_srcfile_path_CXX \
15523 exclude_expsyms_CXX \
15524 include_expsyms_CXX \
15525 file_list_spec_CXX \
15526 compiler_lib_search_dirs_CXX \
15527 predep_objects_CXX \
15528 postdep_objects_CXX \
15529 predeps_CXX \
15530 postdeps_CXX \
15531 compiler_lib_search_path_CXX; do
15532 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15533 *[\\\\\\\`\\"\\\$]*)
15534 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15537 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15539 esac
15540 done
15542 # Double-quote double-evaled strings.
15543 for var in reload_cmds \
15544 old_postinstall_cmds \
15545 old_postuninstall_cmds \
15546 old_archive_cmds \
15547 extract_expsyms_cmds \
15548 old_archive_from_new_cmds \
15549 old_archive_from_expsyms_cmds \
15550 archive_cmds \
15551 archive_expsym_cmds \
15552 module_cmds \
15553 module_expsym_cmds \
15554 export_symbols_cmds \
15555 prelink_cmds \
15556 postinstall_cmds \
15557 postuninstall_cmds \
15558 finish_cmds \
15559 sys_lib_search_path_spec \
15560 sys_lib_dlsearch_path_spec \
15561 reload_cmds_CXX \
15562 old_archive_cmds_CXX \
15563 old_archive_from_new_cmds_CXX \
15564 old_archive_from_expsyms_cmds_CXX \
15565 archive_cmds_CXX \
15566 archive_expsym_cmds_CXX \
15567 module_cmds_CXX \
15568 module_expsym_cmds_CXX \
15569 export_symbols_cmds_CXX \
15570 prelink_cmds_CXX; do
15571 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15572 *[\\\\\\\`\\"\\\$]*)
15573 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15576 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15578 esac
15579 done
15581 ac_aux_dir='$ac_aux_dir'
15582 xsi_shell='$xsi_shell'
15583 lt_shell_append='$lt_shell_append'
15585 # See if we are running on zsh, and set the options which allow our
15586 # commands through without removal of \ escapes INIT.
15587 if test -n "\${ZSH_VERSION+set}" ; then
15588 setopt NO_GLOB_SUBST
15592 PACKAGE='$PACKAGE'
15593 VERSION='$VERSION'
15594 TIMESTAMP='$TIMESTAMP'
15595 RM='$RM'
15596 ofile='$ofile'
15603 _ACEOF
15605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15607 # Handling of arguments.
15608 for ac_config_target in $ac_config_targets
15610 case $ac_config_target in
15611 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15612 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15613 "liboffloadmic_host.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_host.spec" ;;
15614 "liboffloadmic_target.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_target.spec" ;;
15615 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15616 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15618 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15619 esac
15620 done
15623 # If the user did not use the arguments to specify the items to instantiate,
15624 # then the envvar interface is used. Set only those that are not.
15625 # We use the long form for the default assignment because of an extremely
15626 # bizarre bug on SunOS 4.1.3.
15627 if $ac_need_defaults; then
15628 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15629 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15632 # Have a temporary directory for convenience. Make it in the build tree
15633 # simply because there is no reason against having it here, and in addition,
15634 # creating and moving files from /tmp can sometimes cause problems.
15635 # Hook for its removal unless debugging.
15636 # Note that there is a small window in which the directory will not be cleaned:
15637 # after its creation but before its name has been assigned to `$tmp'.
15638 $debug ||
15640 tmp=
15641 trap 'exit_status=$?
15642 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15644 trap 'as_fn_exit 1' 1 2 13 15
15646 # Create a (secure) tmp directory for tmp files.
15649 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15650 test -n "$tmp" && test -d "$tmp"
15651 } ||
15653 tmp=./conf$$-$RANDOM
15654 (umask 077 && mkdir "$tmp")
15655 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15657 # Set up the scripts for CONFIG_FILES section.
15658 # No need to generate them if there are no CONFIG_FILES.
15659 # This happens for instance with `./config.status config.h'.
15660 if test -n "$CONFIG_FILES"; then
15663 ac_cr=`echo X | tr X '\015'`
15664 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15665 # But we know of no other shell where ac_cr would be empty at this
15666 # point, so we can use a bashism as a fallback.
15667 if test "x$ac_cr" = x; then
15668 eval ac_cr=\$\'\\r\'
15670 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15671 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15672 ac_cs_awk_cr='\r'
15673 else
15674 ac_cs_awk_cr=$ac_cr
15677 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15678 _ACEOF
15682 echo "cat >conf$$subs.awk <<_ACEOF" &&
15683 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15684 echo "_ACEOF"
15685 } >conf$$subs.sh ||
15686 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15687 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15688 ac_delim='%!_!# '
15689 for ac_last_try in false false false false false :; do
15690 . ./conf$$subs.sh ||
15691 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15693 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15694 if test $ac_delim_n = $ac_delim_num; then
15695 break
15696 elif $ac_last_try; then
15697 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15698 else
15699 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15701 done
15702 rm -f conf$$subs.sh
15704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15705 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15706 _ACEOF
15707 sed -n '
15709 s/^/S["/; s/!.*/"]=/
15712 s/^[^!]*!//
15713 :repl
15714 t repl
15715 s/'"$ac_delim"'$//
15716 t delim
15719 s/\(.\{148\}\).*/\1/
15720 t more1
15721 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15724 b repl
15725 :more1
15726 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15729 s/.\{148\}//
15730 t nl
15731 :delim
15733 s/\(.\{148\}\).*/\1/
15734 t more2
15735 s/["\\]/\\&/g; s/^/"/; s/$/"/
15738 :more2
15739 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15742 s/.\{148\}//
15743 t delim
15744 ' <conf$$subs.awk | sed '
15745 /^[^""]/{
15747 s/\n//
15749 ' >>$CONFIG_STATUS || ac_write_fail=1
15750 rm -f conf$$subs.awk
15751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15752 _ACAWK
15753 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15754 for (key in S) S_is_set[key] = 1
15755 FS = "\a"
15759 line = $ 0
15760 nfields = split(line, field, "@")
15761 substed = 0
15762 len = length(field[1])
15763 for (i = 2; i < nfields; i++) {
15764 key = field[i]
15765 keylen = length(key)
15766 if (S_is_set[key]) {
15767 value = S[key]
15768 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15769 len += length(value) + length(field[++i])
15770 substed = 1
15771 } else
15772 len += 1 + keylen
15775 print line
15778 _ACAWK
15779 _ACEOF
15780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15781 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15782 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15783 else
15785 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15786 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15787 _ACEOF
15789 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15790 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15791 # trailing colons and then remove the whole line if VPATH becomes empty
15792 # (actually we leave an empty line to preserve line numbers).
15793 if test "x$srcdir" = x.; then
15794 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15795 s/:*\$(srcdir):*/:/
15796 s/:*\${srcdir}:*/:/
15797 s/:*@srcdir@:*/:/
15798 s/^\([^=]*=[ ]*\):*/\1/
15799 s/:*$//
15800 s/^[^=]*=[ ]*$//
15804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15805 fi # test -n "$CONFIG_FILES"
15808 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15809 shift
15810 for ac_tag
15812 case $ac_tag in
15813 :[FHLC]) ac_mode=$ac_tag; continue;;
15814 esac
15815 case $ac_mode$ac_tag in
15816 :[FHL]*:*);;
15817 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15818 :[FH]-) ac_tag=-:-;;
15819 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15820 esac
15821 ac_save_IFS=$IFS
15822 IFS=:
15823 set x $ac_tag
15824 IFS=$ac_save_IFS
15825 shift
15826 ac_file=$1
15827 shift
15829 case $ac_mode in
15830 :L) ac_source=$1;;
15831 :[FH])
15832 ac_file_inputs=
15833 for ac_f
15835 case $ac_f in
15836 -) ac_f="$tmp/stdin";;
15837 *) # Look for the file first in the build tree, then in the source tree
15838 # (if the path is not absolute). The absolute path cannot be DOS-style,
15839 # because $ac_f cannot contain `:'.
15840 test -f "$ac_f" ||
15841 case $ac_f in
15842 [\\/$]*) false;;
15843 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15844 esac ||
15845 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15846 esac
15847 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15848 as_fn_append ac_file_inputs " '$ac_f'"
15849 done
15851 # Let's still pretend it is `configure' which instantiates (i.e., don't
15852 # use $as_me), people would be surprised to read:
15853 # /* config.h. Generated by config.status. */
15854 configure_input='Generated from '`
15855 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15856 `' by configure.'
15857 if test x"$ac_file" != x-; then
15858 configure_input="$ac_file. $configure_input"
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15860 $as_echo "$as_me: creating $ac_file" >&6;}
15862 # Neutralize special characters interpreted by sed in replacement strings.
15863 case $configure_input in #(
15864 *\&* | *\|* | *\\* )
15865 ac_sed_conf_input=`$as_echo "$configure_input" |
15866 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15867 *) ac_sed_conf_input=$configure_input;;
15868 esac
15870 case $ac_tag in
15871 *:-:* | *:-) cat >"$tmp/stdin" \
15872 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15873 esac
15875 esac
15877 ac_dir=`$as_dirname -- "$ac_file" ||
15878 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15879 X"$ac_file" : 'X\(//\)[^/]' \| \
15880 X"$ac_file" : 'X\(//\)$' \| \
15881 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15882 $as_echo X"$ac_file" |
15883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15884 s//\1/
15887 /^X\(\/\/\)[^/].*/{
15888 s//\1/
15891 /^X\(\/\/\)$/{
15892 s//\1/
15895 /^X\(\/\).*/{
15896 s//\1/
15899 s/.*/./; q'`
15900 as_dir="$ac_dir"; as_fn_mkdir_p
15901 ac_builddir=.
15903 case "$ac_dir" in
15904 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15906 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15907 # A ".." for each directory in $ac_dir_suffix.
15908 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15909 case $ac_top_builddir_sub in
15910 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15911 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15912 esac ;;
15913 esac
15914 ac_abs_top_builddir=$ac_pwd
15915 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15916 # for backward compatibility:
15917 ac_top_builddir=$ac_top_build_prefix
15919 case $srcdir in
15920 .) # We are building in place.
15921 ac_srcdir=.
15922 ac_top_srcdir=$ac_top_builddir_sub
15923 ac_abs_top_srcdir=$ac_pwd ;;
15924 [\\/]* | ?:[\\/]* ) # Absolute name.
15925 ac_srcdir=$srcdir$ac_dir_suffix;
15926 ac_top_srcdir=$srcdir
15927 ac_abs_top_srcdir=$srcdir ;;
15928 *) # Relative name.
15929 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15930 ac_top_srcdir=$ac_top_build_prefix$srcdir
15931 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15932 esac
15933 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15936 case $ac_mode in
15939 # CONFIG_FILE
15942 case $INSTALL in
15943 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15944 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15945 esac
15946 ac_MKDIR_P=$MKDIR_P
15947 case $MKDIR_P in
15948 [\\/$]* | ?:[\\/]* ) ;;
15949 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15950 esac
15951 _ACEOF
15953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15954 # If the template does not know about datarootdir, expand it.
15955 # FIXME: This hack should be removed a few years after 2.60.
15956 ac_datarootdir_hack=; ac_datarootdir_seen=
15957 ac_sed_dataroot='
15958 /datarootdir/ {
15962 /@datadir@/p
15963 /@docdir@/p
15964 /@infodir@/p
15965 /@localedir@/p
15966 /@mandir@/p'
15967 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15968 *datarootdir*) ac_datarootdir_seen=yes;;
15969 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15971 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15972 _ACEOF
15973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15974 ac_datarootdir_hack='
15975 s&@datadir@&$datadir&g
15976 s&@docdir@&$docdir&g
15977 s&@infodir@&$infodir&g
15978 s&@localedir@&$localedir&g
15979 s&@mandir@&$mandir&g
15980 s&\\\${datarootdir}&$datarootdir&g' ;;
15981 esac
15982 _ACEOF
15984 # Neutralize VPATH when `$srcdir' = `.'.
15985 # Shell code in configure.ac might set extrasub.
15986 # FIXME: do we really want to maintain this feature?
15987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15988 ac_sed_extra="$ac_vpsub
15989 $extrasub
15990 _ACEOF
15991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15993 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15994 s|@configure_input@|$ac_sed_conf_input|;t t
15995 s&@top_builddir@&$ac_top_builddir_sub&;t t
15996 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15997 s&@srcdir@&$ac_srcdir&;t t
15998 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15999 s&@top_srcdir@&$ac_top_srcdir&;t t
16000 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16001 s&@builddir@&$ac_builddir&;t t
16002 s&@abs_builddir@&$ac_abs_builddir&;t t
16003 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16004 s&@INSTALL@&$ac_INSTALL&;t t
16005 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16006 $ac_datarootdir_hack
16008 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16009 || as_fn_error "could not create $ac_file" "$LINENO" 5
16011 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16012 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16013 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16015 which seems to be undefined. Please make sure it is defined." >&5
16016 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16017 which seems to be undefined. Please make sure it is defined." >&2;}
16019 rm -f "$tmp/stdin"
16020 case $ac_file in
16021 -) cat "$tmp/out" && rm -f "$tmp/out";;
16022 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16023 esac \
16024 || as_fn_error "could not create $ac_file" "$LINENO" 5
16028 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16029 $as_echo "$as_me: executing $ac_file commands" >&6;}
16031 esac
16034 case $ac_file$ac_mode in
16035 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16036 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16037 # are listed without --file. Let's play safe and only enable the eval
16038 # if we detect the quoting.
16039 case $CONFIG_FILES in
16040 *\'*) eval set x "$CONFIG_FILES" ;;
16041 *) set x $CONFIG_FILES ;;
16042 esac
16043 shift
16044 for mf
16046 # Strip MF so we end up with the name of the file.
16047 mf=`echo "$mf" | sed -e 's/:.*$//'`
16048 # Check whether this is an Automake generated Makefile or not.
16049 # We used to match only the files named `Makefile.in', but
16050 # some people rename them; so instead we look at the file content.
16051 # Grep'ing the first line is not enough: some people post-process
16052 # each Makefile.in and add a new line on top of each file to say so.
16053 # Grep'ing the whole file is not good either: AIX grep has a line
16054 # limit of 2048, but all sed's we know have understand at least 4000.
16055 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16056 dirpart=`$as_dirname -- "$mf" ||
16057 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16058 X"$mf" : 'X\(//\)[^/]' \| \
16059 X"$mf" : 'X\(//\)$' \| \
16060 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16061 $as_echo X"$mf" |
16062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16063 s//\1/
16066 /^X\(\/\/\)[^/].*/{
16067 s//\1/
16070 /^X\(\/\/\)$/{
16071 s//\1/
16074 /^X\(\/\).*/{
16075 s//\1/
16078 s/.*/./; q'`
16079 else
16080 continue
16082 # Extract the definition of DEPDIR, am__include, and am__quote
16083 # from the Makefile without running `make'.
16084 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16085 test -z "$DEPDIR" && continue
16086 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16087 test -z "am__include" && continue
16088 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16089 # When using ansi2knr, U may be empty or an underscore; expand it
16090 U=`sed -n 's/^U = //p' < "$mf"`
16091 # Find all dependency output files, they are included files with
16092 # $(DEPDIR) in their names. We invoke sed twice because it is the
16093 # simplest approach to changing $(DEPDIR) to its actual value in the
16094 # expansion.
16095 for file in `sed -n "
16096 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16097 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16098 # Make sure the directory exists.
16099 test -f "$dirpart/$file" && continue
16100 fdir=`$as_dirname -- "$file" ||
16101 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16102 X"$file" : 'X\(//\)[^/]' \| \
16103 X"$file" : 'X\(//\)$' \| \
16104 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16105 $as_echo X"$file" |
16106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16107 s//\1/
16110 /^X\(\/\/\)[^/].*/{
16111 s//\1/
16114 /^X\(\/\/\)$/{
16115 s//\1/
16118 /^X\(\/\).*/{
16119 s//\1/
16122 s/.*/./; q'`
16123 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16124 # echo "creating $dirpart/$file"
16125 echo '# dummy' > "$dirpart/$file"
16126 done
16127 done
16130 "default-1":C)
16131 # Only add multilib support code if we just rebuilt the top-level
16132 # Makefile.
16133 case " $CONFIG_FILES " in
16134 *" Makefile "*)
16135 ac_file=Makefile . ${multi_basedir}/config-ml.in
16137 esac ;;
16138 "libtool":C)
16140 # See if we are running on zsh, and set the options which allow our
16141 # commands through without removal of \ escapes.
16142 if test -n "${ZSH_VERSION+set}" ; then
16143 setopt NO_GLOB_SUBST
16146 cfgfile="${ofile}T"
16147 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16148 $RM "$cfgfile"
16150 cat <<_LT_EOF >> "$cfgfile"
16151 #! $SHELL
16153 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16154 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16155 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16156 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16158 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16159 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16160 # Written by Gordon Matzigkeit, 1996
16162 # This file is part of GNU Libtool.
16164 # GNU Libtool is free software; you can redistribute it and/or
16165 # modify it under the terms of the GNU General Public License as
16166 # published by the Free Software Foundation; either version 2 of
16167 # the License, or (at your option) any later version.
16169 # As a special exception to the GNU General Public License,
16170 # if you distribute this file as part of a program or library that
16171 # is built using GNU Libtool, you may include this file under the
16172 # same distribution terms that you use for the rest of that program.
16174 # GNU Libtool is distributed in the hope that it will be useful,
16175 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16176 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16177 # GNU General Public License for more details.
16179 # You should have received a copy of the GNU General Public License
16180 # along with GNU Libtool; see the file COPYING. If not, a copy
16181 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16182 # obtained by writing to the Free Software Foundation, Inc.,
16183 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16186 # The names of the tagged configurations supported by this script.
16187 available_tags="CXX "
16189 # ### BEGIN LIBTOOL CONFIG
16191 # Which release of libtool.m4 was used?
16192 macro_version=$macro_version
16193 macro_revision=$macro_revision
16195 # Whether or not to build shared libraries.
16196 build_libtool_libs=$enable_shared
16198 # Whether or not to build static libraries.
16199 build_old_libs=$enable_static
16201 # What type of objects to build.
16202 pic_mode=$pic_mode
16204 # Whether or not to optimize for fast installation.
16205 fast_install=$enable_fast_install
16207 # Shell to use when invoking shell scripts.
16208 SHELL=$lt_SHELL
16210 # An echo program that protects backslashes.
16211 ECHO=$lt_ECHO
16213 # The host system.
16214 host_alias=$host_alias
16215 host=$host
16216 host_os=$host_os
16218 # The build system.
16219 build_alias=$build_alias
16220 build=$build
16221 build_os=$build_os
16223 # A sed program that does not truncate output.
16224 SED=$lt_SED
16226 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16227 Xsed="\$SED -e 1s/^X//"
16229 # A grep program that handles long lines.
16230 GREP=$lt_GREP
16232 # An ERE matcher.
16233 EGREP=$lt_EGREP
16235 # A literal string matcher.
16236 FGREP=$lt_FGREP
16238 # A BSD- or MS-compatible name lister.
16239 NM=$lt_NM
16241 # Whether we need soft or hard links.
16242 LN_S=$lt_LN_S
16244 # What is the maximum length of a command?
16245 max_cmd_len=$max_cmd_len
16247 # Object file suffix (normally "o").
16248 objext=$ac_objext
16250 # Executable file suffix (normally "").
16251 exeext=$exeext
16253 # whether the shell understands "unset".
16254 lt_unset=$lt_unset
16256 # turn spaces into newlines.
16257 SP2NL=$lt_lt_SP2NL
16259 # turn newlines into spaces.
16260 NL2SP=$lt_lt_NL2SP
16262 # An object symbol dumper.
16263 OBJDUMP=$lt_OBJDUMP
16265 # Method to check whether dependent libraries are shared objects.
16266 deplibs_check_method=$lt_deplibs_check_method
16268 # Command to use when deplibs_check_method == "file_magic".
16269 file_magic_cmd=$lt_file_magic_cmd
16271 # The archiver.
16272 AR=$lt_AR
16273 AR_FLAGS=$lt_AR_FLAGS
16275 # A symbol stripping program.
16276 STRIP=$lt_STRIP
16278 # Commands used to install an old-style archive.
16279 RANLIB=$lt_RANLIB
16280 old_postinstall_cmds=$lt_old_postinstall_cmds
16281 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16283 # Whether to use a lock for old archive extraction.
16284 lock_old_archive_extraction=$lock_old_archive_extraction
16286 # A C compiler.
16287 LTCC=$lt_CC
16289 # LTCC compiler flags.
16290 LTCFLAGS=$lt_CFLAGS
16292 # Take the output of nm and produce a listing of raw symbols and C names.
16293 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16295 # Transform the output of nm in a proper C declaration.
16296 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16298 # Transform the output of nm in a C name address pair.
16299 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16301 # Transform the output of nm in a C name address pair when lib prefix is needed.
16302 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16304 # The name of the directory that contains temporary libtool files.
16305 objdir=$objdir
16307 # Used to examine libraries when file_magic_cmd begins with "file".
16308 MAGIC_CMD=$MAGIC_CMD
16310 # Must we lock files when doing compilation?
16311 need_locks=$lt_need_locks
16313 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16314 DSYMUTIL=$lt_DSYMUTIL
16316 # Tool to change global to local symbols on Mac OS X.
16317 NMEDIT=$lt_NMEDIT
16319 # Tool to manipulate fat objects and archives on Mac OS X.
16320 LIPO=$lt_LIPO
16322 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16323 OTOOL=$lt_OTOOL
16325 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16326 OTOOL64=$lt_OTOOL64
16328 # Old archive suffix (normally "a").
16329 libext=$libext
16331 # Shared library suffix (normally ".so").
16332 shrext_cmds=$lt_shrext_cmds
16334 # The commands to extract the exported symbol list from a shared archive.
16335 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16337 # Variables whose values should be saved in libtool wrapper scripts and
16338 # restored at link time.
16339 variables_saved_for_relink=$lt_variables_saved_for_relink
16341 # Do we need the "lib" prefix for modules?
16342 need_lib_prefix=$need_lib_prefix
16344 # Do we need a version for libraries?
16345 need_version=$need_version
16347 # Library versioning type.
16348 version_type=$version_type
16350 # Shared library runtime path variable.
16351 runpath_var=$runpath_var
16353 # Shared library path variable.
16354 shlibpath_var=$shlibpath_var
16356 # Is shlibpath searched before the hard-coded library search path?
16357 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16359 # Format of library name prefix.
16360 libname_spec=$lt_libname_spec
16362 # List of archive names. First name is the real one, the rest are links.
16363 # The last name is the one that the linker finds with -lNAME
16364 library_names_spec=$lt_library_names_spec
16366 # The coded name of the library, if different from the real name.
16367 soname_spec=$lt_soname_spec
16369 # Permission mode override for installation of shared libraries.
16370 install_override_mode=$lt_install_override_mode
16372 # Command to use after installation of a shared archive.
16373 postinstall_cmds=$lt_postinstall_cmds
16375 # Command to use after uninstallation of a shared archive.
16376 postuninstall_cmds=$lt_postuninstall_cmds
16378 # Commands used to finish a libtool library installation in a directory.
16379 finish_cmds=$lt_finish_cmds
16381 # As "finish_cmds", except a single script fragment to be evaled but
16382 # not shown.
16383 finish_eval=$lt_finish_eval
16385 # Whether we should hardcode library paths into libraries.
16386 hardcode_into_libs=$hardcode_into_libs
16388 # Compile-time system search path for libraries.
16389 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16391 # Run-time system search path for libraries.
16392 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16394 # Whether dlopen is supported.
16395 dlopen_support=$enable_dlopen
16397 # Whether dlopen of programs is supported.
16398 dlopen_self=$enable_dlopen_self
16400 # Whether dlopen of statically linked programs is supported.
16401 dlopen_self_static=$enable_dlopen_self_static
16403 # Commands to strip libraries.
16404 old_striplib=$lt_old_striplib
16405 striplib=$lt_striplib
16408 # The linker used to build libraries.
16409 LD=$lt_LD
16411 # How to create reloadable object files.
16412 reload_flag=$lt_reload_flag
16413 reload_cmds=$lt_reload_cmds
16415 # Commands used to build an old-style archive.
16416 old_archive_cmds=$lt_old_archive_cmds
16418 # A language specific compiler.
16419 CC=$lt_compiler
16421 # Is the compiler the GNU compiler?
16422 with_gcc=$GCC
16424 # Compiler flag to turn off builtin functions.
16425 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16427 # How to pass a linker flag through the compiler.
16428 wl=$lt_lt_prog_compiler_wl
16430 # Additional compiler flags for building library objects.
16431 pic_flag=$lt_lt_prog_compiler_pic
16433 # Compiler flag to prevent dynamic linking.
16434 link_static_flag=$lt_lt_prog_compiler_static
16436 # Does compiler simultaneously support -c and -o options?
16437 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16439 # Whether or not to add -lc for building shared libraries.
16440 build_libtool_need_lc=$archive_cmds_need_lc
16442 # Whether or not to disallow shared libs when runtime libs are static.
16443 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16445 # Compiler flag to allow reflexive dlopens.
16446 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16448 # Compiler flag to generate shared objects directly from archives.
16449 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16451 # Whether the compiler copes with passing no objects directly.
16452 compiler_needs_object=$lt_compiler_needs_object
16454 # Create an old-style archive from a shared archive.
16455 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16457 # Create a temporary old-style archive to link instead of a shared archive.
16458 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16460 # Commands used to build a shared archive.
16461 archive_cmds=$lt_archive_cmds
16462 archive_expsym_cmds=$lt_archive_expsym_cmds
16464 # Commands used to build a loadable module if different from building
16465 # a shared archive.
16466 module_cmds=$lt_module_cmds
16467 module_expsym_cmds=$lt_module_expsym_cmds
16469 # Whether we are building with GNU ld or not.
16470 with_gnu_ld=$lt_with_gnu_ld
16472 # Flag that allows shared libraries with undefined symbols to be built.
16473 allow_undefined_flag=$lt_allow_undefined_flag
16475 # Flag that enforces no undefined symbols.
16476 no_undefined_flag=$lt_no_undefined_flag
16478 # Flag to hardcode \$libdir into a binary during linking.
16479 # This must work even if \$libdir does not exist
16480 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16482 # If ld is used when linking, flag to hardcode \$libdir into a binary
16483 # during linking. This must work even if \$libdir does not exist.
16484 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16486 # Whether we need a single "-rpath" flag with a separated argument.
16487 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16489 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16490 # DIR into the resulting binary.
16491 hardcode_direct=$hardcode_direct
16493 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16494 # DIR into the resulting binary and the resulting library dependency is
16495 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16496 # library is relocated.
16497 hardcode_direct_absolute=$hardcode_direct_absolute
16499 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16500 # into the resulting binary.
16501 hardcode_minus_L=$hardcode_minus_L
16503 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16504 # into the resulting binary.
16505 hardcode_shlibpath_var=$hardcode_shlibpath_var
16507 # Set to "yes" if building a shared library automatically hardcodes DIR
16508 # into the library and all subsequent libraries and executables linked
16509 # against it.
16510 hardcode_automatic=$hardcode_automatic
16512 # Set to yes if linker adds runtime paths of dependent libraries
16513 # to runtime path list.
16514 inherit_rpath=$inherit_rpath
16516 # Whether libtool must link a program against all its dependency libraries.
16517 link_all_deplibs=$link_all_deplibs
16519 # Fix the shell variable \$srcfile for the compiler.
16520 fix_srcfile_path=$lt_fix_srcfile_path
16522 # Set to "yes" if exported symbols are required.
16523 always_export_symbols=$always_export_symbols
16525 # The commands to list exported symbols.
16526 export_symbols_cmds=$lt_export_symbols_cmds
16528 # Symbols that should not be listed in the preloaded symbols.
16529 exclude_expsyms=$lt_exclude_expsyms
16531 # Symbols that must always be exported.
16532 include_expsyms=$lt_include_expsyms
16534 # Commands necessary for linking programs (against libraries) with templates.
16535 prelink_cmds=$lt_prelink_cmds
16537 # Specify filename containing input files.
16538 file_list_spec=$lt_file_list_spec
16540 # How to hardcode a shared library path into an executable.
16541 hardcode_action=$hardcode_action
16543 # The directories searched by this compiler when creating a shared library.
16544 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16546 # Dependencies to place before and after the objects being linked to
16547 # create a shared library.
16548 predep_objects=$lt_predep_objects
16549 postdep_objects=$lt_postdep_objects
16550 predeps=$lt_predeps
16551 postdeps=$lt_postdeps
16553 # The library search path used internally by the compiler when linking
16554 # a shared library.
16555 compiler_lib_search_path=$lt_compiler_lib_search_path
16557 # ### END LIBTOOL CONFIG
16559 _LT_EOF
16561 case $host_os in
16562 aix3*)
16563 cat <<\_LT_EOF >> "$cfgfile"
16564 # AIX sometimes has problems with the GCC collect2 program. For some
16565 # reason, if we set the COLLECT_NAMES environment variable, the problems
16566 # vanish in a puff of smoke.
16567 if test "X${COLLECT_NAMES+set}" != Xset; then
16568 COLLECT_NAMES=
16569 export COLLECT_NAMES
16571 _LT_EOF
16573 esac
16576 ltmain="$ac_aux_dir/ltmain.sh"
16579 # We use sed instead of cat because bash on DJGPP gets confused if
16580 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16581 # text mode, it properly converts lines to CR/LF. This bash problem
16582 # is reportedly fixed, but why not run on old versions too?
16583 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16584 || (rm -f "$cfgfile"; exit 1)
16586 case $xsi_shell in
16587 yes)
16588 cat << \_LT_EOF >> "$cfgfile"
16590 # func_dirname file append nondir_replacement
16591 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16592 # otherwise set result to NONDIR_REPLACEMENT.
16593 func_dirname ()
16595 case ${1} in
16596 */*) func_dirname_result="${1%/*}${2}" ;;
16597 * ) func_dirname_result="${3}" ;;
16598 esac
16601 # func_basename file
16602 func_basename ()
16604 func_basename_result="${1##*/}"
16607 # func_dirname_and_basename file append nondir_replacement
16608 # perform func_basename and func_dirname in a single function
16609 # call:
16610 # dirname: Compute the dirname of FILE. If nonempty,
16611 # add APPEND to the result, otherwise set result
16612 # to NONDIR_REPLACEMENT.
16613 # value returned in "$func_dirname_result"
16614 # basename: Compute filename of FILE.
16615 # value retuned in "$func_basename_result"
16616 # Implementation must be kept synchronized with func_dirname
16617 # and func_basename. For efficiency, we do not delegate to
16618 # those functions but instead duplicate the functionality here.
16619 func_dirname_and_basename ()
16621 case ${1} in
16622 */*) func_dirname_result="${1%/*}${2}" ;;
16623 * ) func_dirname_result="${3}" ;;
16624 esac
16625 func_basename_result="${1##*/}"
16628 # func_stripname prefix suffix name
16629 # strip PREFIX and SUFFIX off of NAME.
16630 # PREFIX and SUFFIX must not contain globbing or regex special
16631 # characters, hashes, percent signs, but SUFFIX may contain a leading
16632 # dot (in which case that matches only a dot).
16633 func_stripname ()
16635 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16636 # positional parameters, so assign one to ordinary parameter first.
16637 func_stripname_result=${3}
16638 func_stripname_result=${func_stripname_result#"${1}"}
16639 func_stripname_result=${func_stripname_result%"${2}"}
16642 # func_opt_split
16643 func_opt_split ()
16645 func_opt_split_opt=${1%%=*}
16646 func_opt_split_arg=${1#*=}
16649 # func_lo2o object
16650 func_lo2o ()
16652 case ${1} in
16653 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16654 *) func_lo2o_result=${1} ;;
16655 esac
16658 # func_xform libobj-or-source
16659 func_xform ()
16661 func_xform_result=${1%.*}.lo
16664 # func_arith arithmetic-term...
16665 func_arith ()
16667 func_arith_result=$(( $* ))
16670 # func_len string
16671 # STRING may not start with a hyphen.
16672 func_len ()
16674 func_len_result=${#1}
16677 _LT_EOF
16679 *) # Bourne compatible functions.
16680 cat << \_LT_EOF >> "$cfgfile"
16682 # func_dirname file append nondir_replacement
16683 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16684 # otherwise set result to NONDIR_REPLACEMENT.
16685 func_dirname ()
16687 # Extract subdirectory from the argument.
16688 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16689 if test "X$func_dirname_result" = "X${1}"; then
16690 func_dirname_result="${3}"
16691 else
16692 func_dirname_result="$func_dirname_result${2}"
16696 # func_basename file
16697 func_basename ()
16699 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16703 # func_stripname prefix suffix name
16704 # strip PREFIX and SUFFIX off of NAME.
16705 # PREFIX and SUFFIX must not contain globbing or regex special
16706 # characters, hashes, percent signs, but SUFFIX may contain a leading
16707 # dot (in which case that matches only a dot).
16708 # func_strip_suffix prefix name
16709 func_stripname ()
16711 case ${2} in
16712 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16713 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16714 esac
16717 # sed scripts:
16718 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16719 my_sed_long_arg='1s/^-[^=]*=//'
16721 # func_opt_split
16722 func_opt_split ()
16724 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16725 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16728 # func_lo2o object
16729 func_lo2o ()
16731 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16734 # func_xform libobj-or-source
16735 func_xform ()
16737 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16740 # func_arith arithmetic-term...
16741 func_arith ()
16743 func_arith_result=`expr "$@"`
16746 # func_len string
16747 # STRING may not start with a hyphen.
16748 func_len ()
16750 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16753 _LT_EOF
16754 esac
16756 case $lt_shell_append in
16757 yes)
16758 cat << \_LT_EOF >> "$cfgfile"
16760 # func_append var value
16761 # Append VALUE to the end of shell variable VAR.
16762 func_append ()
16764 eval "$1+=\$2"
16766 _LT_EOF
16769 cat << \_LT_EOF >> "$cfgfile"
16771 # func_append var value
16772 # Append VALUE to the end of shell variable VAR.
16773 func_append ()
16775 eval "$1=\$$1\$2"
16778 _LT_EOF
16780 esac
16783 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16784 || (rm -f "$cfgfile"; exit 1)
16786 mv -f "$cfgfile" "$ofile" ||
16787 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16788 chmod +x "$ofile"
16791 cat <<_LT_EOF >> "$ofile"
16793 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16795 # The linker used to build libraries.
16796 LD=$lt_LD_CXX
16798 # How to create reloadable object files.
16799 reload_flag=$lt_reload_flag_CXX
16800 reload_cmds=$lt_reload_cmds_CXX
16802 # Commands used to build an old-style archive.
16803 old_archive_cmds=$lt_old_archive_cmds_CXX
16805 # A language specific compiler.
16806 CC=$lt_compiler_CXX
16808 # Is the compiler the GNU compiler?
16809 with_gcc=$GCC_CXX
16811 # Compiler flag to turn off builtin functions.
16812 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16814 # How to pass a linker flag through the compiler.
16815 wl=$lt_lt_prog_compiler_wl_CXX
16817 # Additional compiler flags for building library objects.
16818 pic_flag=$lt_lt_prog_compiler_pic_CXX
16820 # Compiler flag to prevent dynamic linking.
16821 link_static_flag=$lt_lt_prog_compiler_static_CXX
16823 # Does compiler simultaneously support -c and -o options?
16824 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16826 # Whether or not to add -lc for building shared libraries.
16827 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16829 # Whether or not to disallow shared libs when runtime libs are static.
16830 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16832 # Compiler flag to allow reflexive dlopens.
16833 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16835 # Compiler flag to generate shared objects directly from archives.
16836 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16838 # Whether the compiler copes with passing no objects directly.
16839 compiler_needs_object=$lt_compiler_needs_object_CXX
16841 # Create an old-style archive from a shared archive.
16842 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16844 # Create a temporary old-style archive to link instead of a shared archive.
16845 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16847 # Commands used to build a shared archive.
16848 archive_cmds=$lt_archive_cmds_CXX
16849 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16851 # Commands used to build a loadable module if different from building
16852 # a shared archive.
16853 module_cmds=$lt_module_cmds_CXX
16854 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16856 # Whether we are building with GNU ld or not.
16857 with_gnu_ld=$lt_with_gnu_ld_CXX
16859 # Flag that allows shared libraries with undefined symbols to be built.
16860 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16862 # Flag that enforces no undefined symbols.
16863 no_undefined_flag=$lt_no_undefined_flag_CXX
16865 # Flag to hardcode \$libdir into a binary during linking.
16866 # This must work even if \$libdir does not exist
16867 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16869 # If ld is used when linking, flag to hardcode \$libdir into a binary
16870 # during linking. This must work even if \$libdir does not exist.
16871 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16873 # Whether we need a single "-rpath" flag with a separated argument.
16874 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16876 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16877 # DIR into the resulting binary.
16878 hardcode_direct=$hardcode_direct_CXX
16880 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16881 # DIR into the resulting binary and the resulting library dependency is
16882 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16883 # library is relocated.
16884 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16886 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16887 # into the resulting binary.
16888 hardcode_minus_L=$hardcode_minus_L_CXX
16890 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16891 # into the resulting binary.
16892 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16894 # Set to "yes" if building a shared library automatically hardcodes DIR
16895 # into the library and all subsequent libraries and executables linked
16896 # against it.
16897 hardcode_automatic=$hardcode_automatic_CXX
16899 # Set to yes if linker adds runtime paths of dependent libraries
16900 # to runtime path list.
16901 inherit_rpath=$inherit_rpath_CXX
16903 # Whether libtool must link a program against all its dependency libraries.
16904 link_all_deplibs=$link_all_deplibs_CXX
16906 # Fix the shell variable \$srcfile for the compiler.
16907 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16909 # Set to "yes" if exported symbols are required.
16910 always_export_symbols=$always_export_symbols_CXX
16912 # The commands to list exported symbols.
16913 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16915 # Symbols that should not be listed in the preloaded symbols.
16916 exclude_expsyms=$lt_exclude_expsyms_CXX
16918 # Symbols that must always be exported.
16919 include_expsyms=$lt_include_expsyms_CXX
16921 # Commands necessary for linking programs (against libraries) with templates.
16922 prelink_cmds=$lt_prelink_cmds_CXX
16924 # Specify filename containing input files.
16925 file_list_spec=$lt_file_list_spec_CXX
16927 # How to hardcode a shared library path into an executable.
16928 hardcode_action=$hardcode_action_CXX
16930 # The directories searched by this compiler when creating a shared library.
16931 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16933 # Dependencies to place before and after the objects being linked to
16934 # create a shared library.
16935 predep_objects=$lt_predep_objects_CXX
16936 postdep_objects=$lt_postdep_objects_CXX
16937 predeps=$lt_predeps_CXX
16938 postdeps=$lt_postdeps_CXX
16940 # The library search path used internally by the compiler when linking
16941 # a shared library.
16942 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16944 # ### END LIBTOOL TAG CONFIG: CXX
16945 _LT_EOF
16949 esac
16950 done # for ac_tag
16953 as_fn_exit 0
16954 _ACEOF
16955 ac_clean_files=$ac_clean_files_save
16957 test $ac_write_fail = 0 ||
16958 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16961 # configure is writing to config.log, and then calls config.status.
16962 # config.status does its own redirection, appending to config.log.
16963 # Unfortunately, on DOS this fails, as config.log is still kept open
16964 # by configure, so config.status won't be able to write to it; its
16965 # output is simply discarded. So we exec the FD to /dev/null,
16966 # effectively closing config.log, so it can be properly (re)opened and
16967 # appended to by config.status. When coming back to configure, we
16968 # need to make the FD available again.
16969 if test "$no_create" != yes; then
16970 ac_cs_success=:
16971 ac_config_status_args=
16972 test "$silent" = yes &&
16973 ac_config_status_args="$ac_config_status_args --quiet"
16974 exec 5>/dev/null
16975 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16976 exec 5>>config.log
16977 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16978 # would make configure fail if this is the last instruction.
16979 $ac_cs_success || as_fn_exit $?
16983 # CONFIG_SUBDIRS section.
16985 if test "$no_recursion" != yes; then
16987 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16988 # so they do not pile up.
16989 ac_sub_configure_args=
16990 ac_prev=
16991 eval "set x $ac_configure_args"
16992 shift
16993 for ac_arg
16995 if test -n "$ac_prev"; then
16996 ac_prev=
16997 continue
16999 case $ac_arg in
17000 -cache-file | --cache-file | --cache-fil | --cache-fi \
17001 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17002 ac_prev=cache_file ;;
17003 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17004 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17005 | --c=*)
17007 --config-cache | -C)
17009 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17010 ac_prev=srcdir ;;
17011 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17014 ac_prev=prefix ;;
17015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17017 --disable-option-checking)
17020 case $ac_arg in
17021 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17022 esac
17023 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17024 esac
17025 done
17027 # Always prepend --prefix to ensure using the same prefix
17028 # in subdir configurations.
17029 ac_arg="--prefix=$prefix"
17030 case $ac_arg in
17031 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17032 esac
17033 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17035 # Pass --silent
17036 if test "$silent" = yes; then
17037 ac_sub_configure_args="--silent $ac_sub_configure_args"
17040 # Always prepend --disable-option-checking to silence warnings, since
17041 # different subdirs can have different --enable and --with options.
17042 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17044 ac_popdir=`pwd`
17045 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17047 # Do not complain, so a configure script can configure whichever
17048 # parts of a large source tree are present.
17049 test -d "$srcdir/$ac_dir" || continue
17051 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17052 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17053 $as_echo "$ac_msg" >&6
17054 as_dir="$ac_dir"; as_fn_mkdir_p
17055 ac_builddir=.
17057 case "$ac_dir" in
17058 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17060 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17061 # A ".." for each directory in $ac_dir_suffix.
17062 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17063 case $ac_top_builddir_sub in
17064 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17065 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17066 esac ;;
17067 esac
17068 ac_abs_top_builddir=$ac_pwd
17069 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17070 # for backward compatibility:
17071 ac_top_builddir=$ac_top_build_prefix
17073 case $srcdir in
17074 .) # We are building in place.
17075 ac_srcdir=.
17076 ac_top_srcdir=$ac_top_builddir_sub
17077 ac_abs_top_srcdir=$ac_pwd ;;
17078 [\\/]* | ?:[\\/]* ) # Absolute name.
17079 ac_srcdir=$srcdir$ac_dir_suffix;
17080 ac_top_srcdir=$srcdir
17081 ac_abs_top_srcdir=$srcdir ;;
17082 *) # Relative name.
17083 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17084 ac_top_srcdir=$ac_top_build_prefix$srcdir
17085 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17086 esac
17087 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17090 cd "$ac_dir"
17092 # Check for guested configure; otherwise get Cygnus style configure.
17093 if test -f "$ac_srcdir/configure.gnu"; then
17094 ac_sub_configure=$ac_srcdir/configure.gnu
17095 elif test -f "$ac_srcdir/configure"; then
17096 ac_sub_configure=$ac_srcdir/configure
17097 elif test -f "$ac_srcdir/configure.in"; then
17098 # This should be Cygnus configure.
17099 ac_sub_configure=$ac_aux_dir/configure
17100 else
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17102 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17103 ac_sub_configure=
17106 # The recursion is here.
17107 if test -n "$ac_sub_configure"; then
17108 # Make the cache file name correct relative to the subdirectory.
17109 case $cache_file in
17110 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17111 *) # Relative name.
17112 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17113 esac
17115 { $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
17116 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17117 # The eval makes quoting arguments work.
17118 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17119 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17120 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17123 cd "$ac_popdir"
17124 done
17126 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17128 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}