RISC-V: Add --specs=nosys.specs support.
[official-gcc.git] / libmpx / configure
blob7bc68b81e4f4bb969a117a376a43cf13398cf83e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Report bugs to <libmpx>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185 else
186 as_have_required=no
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190 else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
210 done;;
211 esac
212 as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and libmpx about your
240 $0: system, including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error ERROR [LINENO LOG_FD]
368 # ---------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with status $?, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$?; test $as_status -eq 0 && as_status=1
375 if test "$3"; then
376 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
379 $as_echo "$as_me: error: $1" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536 SHELL=${CONFIG_SHELL-/bin/sh}
539 exec 7<&0 </dev/null 6>&1
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 # Initializations.
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
558 # Identity of this package.
559 PACKAGE_NAME='package-unused'
560 PACKAGE_TARNAME='package-unused'
561 PACKAGE_VERSION='version-unused'
562 PACKAGE_STRING='package-unused version-unused'
563 PACKAGE_BUGREPORT='libmpx'
564 PACKAGE_URL=''
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_subst_vars='am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 get_gcc_base_ver
607 XCFLAGS
608 enable_static
609 enable_shared
610 OTOOL64
611 OTOOL
612 LIPO
613 NMEDIT
614 DSYMUTIL
615 OBJDUMP
616 LN_S
618 ac_ct_DUMPBIN
619 DUMPBIN
621 FGREP
623 LIBTOOL
624 MPX_AS_SUPPORTED_FALSE
625 MPX_AS_SUPPORTED_TRUE
626 RANLIB
629 CCASFLAGS
630 CCAS
631 toolexeclibdir
632 toolexecdir
633 EGREP
634 GREP
636 OBJEXT
637 EXEEXT
638 ac_ct_CC
639 CPPFLAGS
640 LDFLAGS
641 CFLAGS
643 MAINT
644 MAINTAINER_MODE_FALSE
645 MAINTAINER_MODE_TRUE
646 multi_basedir
647 am__untar
648 am__tar
649 AMTAR
650 am__leading_dot
651 SET_MAKE
653 mkdir_p
654 MKDIR_P
655 INSTALL_STRIP_PROGRAM
656 STRIP
657 install_sh
658 MAKEINFO
659 AUTOHEADER
660 AUTOMAKE
661 AUTOCONF
662 ACLOCAL
663 VERSION
664 PACKAGE
665 CYGPATH_W
666 am__isrc
667 INSTALL_DATA
668 INSTALL_SCRIPT
669 INSTALL_PROGRAM
670 link_libmpx
671 LIBMPX_SUPPORTED_FALSE
672 LIBMPX_SUPPORTED_TRUE
673 target_os
674 target_vendor
675 target_cpu
676 target
677 host_os
678 host_vendor
679 host_cpu
680 host
681 build_os
682 build_vendor
683 build_cpu
684 build
685 target_alias
686 host_alias
687 build_alias
688 LIBS
689 ECHO_T
690 ECHO_N
691 ECHO_C
692 DEFS
693 mandir
694 localedir
695 libdir
696 psdir
697 pdfdir
698 dvidir
699 htmldir
700 infodir
701 docdir
702 oldincludedir
703 includedir
704 localstatedir
705 sharedstatedir
706 sysconfdir
707 datadir
708 datarootdir
709 libexecdir
710 sbindir
711 bindir
712 program_transform_name
713 prefix
714 exec_prefix
715 PACKAGE_URL
716 PACKAGE_BUGREPORT
717 PACKAGE_STRING
718 PACKAGE_VERSION
719 PACKAGE_TARNAME
720 PACKAGE_NAME
721 PATH_SEPARATOR
722 SHELL'
723 ac_subst_files=''
724 ac_user_opts='
725 enable_option_checking
726 enable_version_specific_runtime_libs
727 enable_multilib
728 enable_maintainer_mode
729 enable_shared
730 enable_static
731 with_pic
732 enable_fast_install
733 with_gnu_ld
734 enable_libtool_lock
735 enable_cet
736 with_gcc_major_version_only
738 ac_precious_vars='build_alias
739 host_alias
740 target_alias
742 CFLAGS
743 LDFLAGS
744 LIBS
745 CPPFLAGS
746 CPP'
749 # Initialize some variables set by options.
750 ac_init_help=
751 ac_init_version=false
752 ac_unrecognized_opts=
753 ac_unrecognized_sep=
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
797 ac_prev=
798 ac_dashdash=
799 for ac_option
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
808 case $ac_option in
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *) ac_optarg=yes ;;
811 esac
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
817 ac_dashdash=yes ;;
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
836 --config-cache | -C)
837 cache_file=config.cache ;;
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
851 -disable-* | --disable-*)
852 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
855 as_fn_error "invalid feature name: $ac_useropt"
856 ac_useropt_orig=$ac_useropt
857 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858 case $ac_user_opts in
860 "enable_$ac_useropt"
861 "*) ;;
862 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
863 ac_unrecognized_sep=', ';;
864 esac
865 eval enable_$ac_useropt=no ;;
867 -docdir | --docdir | --docdi | --doc | --do)
868 ac_prev=docdir ;;
869 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
870 docdir=$ac_optarg ;;
872 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
873 ac_prev=dvidir ;;
874 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
875 dvidir=$ac_optarg ;;
877 -enable-* | --enable-*)
878 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
879 # Reject names that are not valid shell variable names.
880 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
881 as_fn_error "invalid feature name: $ac_useropt"
882 ac_useropt_orig=$ac_useropt
883 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
884 case $ac_user_opts in
886 "enable_$ac_useropt"
887 "*) ;;
888 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
889 ac_unrecognized_sep=', ';;
890 esac
891 eval enable_$ac_useropt=\$ac_optarg ;;
893 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
894 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
895 | --exec | --exe | --ex)
896 ac_prev=exec_prefix ;;
897 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
898 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
899 | --exec=* | --exe=* | --ex=*)
900 exec_prefix=$ac_optarg ;;
902 -gas | --gas | --ga | --g)
903 # Obsolete; use --with-gas.
904 with_gas=yes ;;
906 -help | --help | --hel | --he | -h)
907 ac_init_help=long ;;
908 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
909 ac_init_help=recursive ;;
910 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
911 ac_init_help=short ;;
913 -host | --host | --hos | --ho)
914 ac_prev=host_alias ;;
915 -host=* | --host=* | --hos=* | --ho=*)
916 host_alias=$ac_optarg ;;
918 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
919 ac_prev=htmldir ;;
920 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
921 | --ht=*)
922 htmldir=$ac_optarg ;;
924 -includedir | --includedir | --includedi | --included | --include \
925 | --includ | --inclu | --incl | --inc)
926 ac_prev=includedir ;;
927 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
928 | --includ=* | --inclu=* | --incl=* | --inc=*)
929 includedir=$ac_optarg ;;
931 -infodir | --infodir | --infodi | --infod | --info | --inf)
932 ac_prev=infodir ;;
933 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
934 infodir=$ac_optarg ;;
936 -libdir | --libdir | --libdi | --libd)
937 ac_prev=libdir ;;
938 -libdir=* | --libdir=* | --libdi=* | --libd=*)
939 libdir=$ac_optarg ;;
941 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
942 | --libexe | --libex | --libe)
943 ac_prev=libexecdir ;;
944 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
945 | --libexe=* | --libex=* | --libe=*)
946 libexecdir=$ac_optarg ;;
948 -localedir | --localedir | --localedi | --localed | --locale)
949 ac_prev=localedir ;;
950 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
951 localedir=$ac_optarg ;;
953 -localstatedir | --localstatedir | --localstatedi | --localstated \
954 | --localstate | --localstat | --localsta | --localst | --locals)
955 ac_prev=localstatedir ;;
956 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
957 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
958 localstatedir=$ac_optarg ;;
960 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
961 ac_prev=mandir ;;
962 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
963 mandir=$ac_optarg ;;
965 -nfp | --nfp | --nf)
966 # Obsolete; use --without-fp.
967 with_fp=no ;;
969 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
970 | --no-cr | --no-c | -n)
971 no_create=yes ;;
973 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
974 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
975 no_recursion=yes ;;
977 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
978 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
979 | --oldin | --oldi | --old | --ol | --o)
980 ac_prev=oldincludedir ;;
981 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
982 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
983 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
984 oldincludedir=$ac_optarg ;;
986 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
987 ac_prev=prefix ;;
988 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
989 prefix=$ac_optarg ;;
991 -program-prefix | --program-prefix | --program-prefi | --program-pref \
992 | --program-pre | --program-pr | --program-p)
993 ac_prev=program_prefix ;;
994 -program-prefix=* | --program-prefix=* | --program-prefi=* \
995 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
996 program_prefix=$ac_optarg ;;
998 -program-suffix | --program-suffix | --program-suffi | --program-suff \
999 | --program-suf | --program-su | --program-s)
1000 ac_prev=program_suffix ;;
1001 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1002 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1003 program_suffix=$ac_optarg ;;
1005 -program-transform-name | --program-transform-name \
1006 | --program-transform-nam | --program-transform-na \
1007 | --program-transform-n | --program-transform- \
1008 | --program-transform | --program-transfor \
1009 | --program-transfo | --program-transf \
1010 | --program-trans | --program-tran \
1011 | --progr-tra | --program-tr | --program-t)
1012 ac_prev=program_transform_name ;;
1013 -program-transform-name=* | --program-transform-name=* \
1014 | --program-transform-nam=* | --program-transform-na=* \
1015 | --program-transform-n=* | --program-transform-=* \
1016 | --program-transform=* | --program-transfor=* \
1017 | --program-transfo=* | --program-transf=* \
1018 | --program-trans=* | --program-tran=* \
1019 | --progr-tra=* | --program-tr=* | --program-t=*)
1020 program_transform_name=$ac_optarg ;;
1022 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1023 ac_prev=pdfdir ;;
1024 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1025 pdfdir=$ac_optarg ;;
1027 -psdir | --psdir | --psdi | --psd | --ps)
1028 ac_prev=psdir ;;
1029 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1030 psdir=$ac_optarg ;;
1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033 | -silent | --silent | --silen | --sile | --sil)
1034 silent=yes ;;
1036 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1037 ac_prev=sbindir ;;
1038 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1039 | --sbi=* | --sb=*)
1040 sbindir=$ac_optarg ;;
1042 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1043 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1044 | --sharedst | --shareds | --shared | --share | --shar \
1045 | --sha | --sh)
1046 ac_prev=sharedstatedir ;;
1047 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1048 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1049 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1050 | --sha=* | --sh=*)
1051 sharedstatedir=$ac_optarg ;;
1053 -site | --site | --sit)
1054 ac_prev=site ;;
1055 -site=* | --site=* | --sit=*)
1056 site=$ac_optarg ;;
1058 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1059 ac_prev=srcdir ;;
1060 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1061 srcdir=$ac_optarg ;;
1063 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1064 | --syscon | --sysco | --sysc | --sys | --sy)
1065 ac_prev=sysconfdir ;;
1066 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1067 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1068 sysconfdir=$ac_optarg ;;
1070 -target | --target | --targe | --targ | --tar | --ta | --t)
1071 ac_prev=target_alias ;;
1072 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1073 target_alias=$ac_optarg ;;
1075 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1076 verbose=yes ;;
1078 -version | --version | --versio | --versi | --vers | -V)
1079 ac_init_version=: ;;
1081 -with-* | --with-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error "invalid package name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1090 "with_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval with_$ac_useropt=\$ac_optarg ;;
1097 -without-* | --without-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1110 esac
1111 eval with_$ac_useropt=no ;;
1113 --x)
1114 # Obsolete; use --with-x.
1115 with_x=yes ;;
1117 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1118 | --x-incl | --x-inc | --x-in | --x-i)
1119 ac_prev=x_includes ;;
1120 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1121 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1122 x_includes=$ac_optarg ;;
1124 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1125 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1126 ac_prev=x_libraries ;;
1127 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1128 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1129 x_libraries=$ac_optarg ;;
1131 -*) as_fn_error "unrecognized option: \`$ac_option'
1132 Try \`$0 --help' for more information."
1135 *=*)
1136 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1137 # Reject names that are not valid shell variable names.
1138 case $ac_envvar in #(
1139 '' | [0-9]* | *[!_$as_cr_alnum]* )
1140 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1141 esac
1142 eval $ac_envvar=\$ac_optarg
1143 export $ac_envvar ;;
1146 # FIXME: should be removed in autoconf 3.0.
1147 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1148 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1149 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1150 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1153 esac
1154 done
1156 if test -n "$ac_prev"; then
1157 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1158 as_fn_error "missing argument to $ac_option"
1161 if test -n "$ac_unrecognized_opts"; then
1162 case $enable_option_checking in
1163 no) ;;
1164 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1165 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1166 esac
1169 # Check all directory arguments for consistency.
1170 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1171 datadir sysconfdir sharedstatedir localstatedir includedir \
1172 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1173 libdir localedir mandir
1175 eval ac_val=\$$ac_var
1176 # Remove trailing slashes.
1177 case $ac_val in
1178 */ )
1179 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1180 eval $ac_var=\$ac_val;;
1181 esac
1182 # Be sure to have absolute directory names.
1183 case $ac_val in
1184 [\\/$]* | ?:[\\/]* ) continue;;
1185 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1186 esac
1187 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1188 done
1190 # There might be people who depend on the old broken behavior: `$host'
1191 # used to hold the argument of --host etc.
1192 # FIXME: To remove some day.
1193 build=$build_alias
1194 host=$host_alias
1195 target=$target_alias
1197 # FIXME: To remove some day.
1198 if test "x$host_alias" != x; then
1199 if test "x$build_alias" = x; then
1200 cross_compiling=maybe
1201 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1202 If a cross compiler is detected then cross compile mode will be used." >&2
1203 elif test "x$build_alias" != "x$host_alias"; then
1204 cross_compiling=yes
1208 ac_tool_prefix=
1209 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1211 test "$silent" = yes && exec 6>/dev/null
1214 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di=`ls -di .` &&
1216 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217 as_fn_error "working directory cannot be determined"
1218 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219 as_fn_error "pwd does not report name of working directory"
1222 # Find the source files, if location was not specified.
1223 if test -z "$srcdir"; then
1224 ac_srcdir_defaulted=yes
1225 # Try the directory containing this script, then the parent directory.
1226 ac_confdir=`$as_dirname -- "$as_myself" ||
1227 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228 X"$as_myself" : 'X\(//\)[^/]' \| \
1229 X"$as_myself" : 'X\(//\)$' \| \
1230 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1231 $as_echo X"$as_myself" |
1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1233 s//\1/
1236 /^X\(\/\/\)[^/].*/{
1237 s//\1/
1240 /^X\(\/\/\)$/{
1241 s//\1/
1244 /^X\(\/\).*/{
1245 s//\1/
1248 s/.*/./; q'`
1249 srcdir=$ac_confdir
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1251 srcdir=..
1253 else
1254 ac_srcdir_defaulted=no
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1258 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1260 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1261 ac_abs_confdir=`(
1262 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1263 pwd)`
1264 # When building in place, set srcdir=.
1265 if test "$ac_abs_confdir" = "$ac_pwd"; then
1266 srcdir=.
1268 # Remove unnecessary trailing slashes from srcdir.
1269 # Double slashes in file names in object file debugging info
1270 # mess up M-x gdb in Emacs.
1271 case $srcdir in
1272 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1273 esac
1274 for ac_var in $ac_precious_vars; do
1275 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1276 eval ac_env_${ac_var}_value=\$${ac_var}
1277 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1279 done
1282 # Report the --help message.
1284 if test "$ac_init_help" = "long"; then
1285 # Omit some internal or obsolete options to make the list less imposing.
1286 # This message is too long to be a string in the A/UX 3.1 sh.
1287 cat <<_ACEOF
1288 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1290 Usage: $0 [OPTION]... [VAR=VALUE]...
1292 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1293 VAR=VALUE. See below for descriptions of some of the useful variables.
1295 Defaults for the options are specified in brackets.
1297 Configuration:
1298 -h, --help display this help and exit
1299 --help=short display options specific to this package
1300 --help=recursive display the short help of all the included packages
1301 -V, --version display version information and exit
1302 -q, --quiet, --silent do not print \`checking...' messages
1303 --cache-file=FILE cache test results in FILE [disabled]
1304 -C, --config-cache alias for \`--cache-file=config.cache'
1305 -n, --no-create do not create output files
1306 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1308 Installation directories:
1309 --prefix=PREFIX install architecture-independent files in PREFIX
1310 [$ac_default_prefix]
1311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1312 [PREFIX]
1314 By default, \`make install' will install all the files in
1315 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1316 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1317 for instance \`--prefix=\$HOME'.
1319 For better control, use the options below.
1321 Fine tuning of the installation directories:
1322 --bindir=DIR user executables [EPREFIX/bin]
1323 --sbindir=DIR system admin executables [EPREFIX/sbin]
1324 --libexecdir=DIR program executables [EPREFIX/libexec]
1325 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1326 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1327 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1328 --libdir=DIR object code libraries [EPREFIX/lib]
1329 --includedir=DIR C header files [PREFIX/include]
1330 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1331 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1332 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1333 --infodir=DIR info documentation [DATAROOTDIR/info]
1334 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1335 --mandir=DIR man documentation [DATAROOTDIR/man]
1336 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1337 --htmldir=DIR html documentation [DOCDIR]
1338 --dvidir=DIR dvi documentation [DOCDIR]
1339 --pdfdir=DIR pdf documentation [DOCDIR]
1340 --psdir=DIR ps documentation [DOCDIR]
1341 _ACEOF
1343 cat <<\_ACEOF
1345 Program names:
1346 --program-prefix=PREFIX prepend PREFIX to installed program names
1347 --program-suffix=SUFFIX append SUFFIX to installed program names
1348 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1350 System types:
1351 --build=BUILD configure for building on BUILD [guessed]
1352 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1353 --target=TARGET configure for building compilers for TARGET [HOST]
1354 _ACEOF
1357 if test -n "$ac_init_help"; then
1358 case $ac_init_help in
1359 short | recursive ) echo "Configuration of package-unused version-unused:";;
1360 esac
1361 cat <<\_ACEOF
1363 Optional Features:
1364 --disable-option-checking ignore unrecognized --enable/--with options
1365 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1366 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1367 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1368 --enable-multilib build many library versions (default)
1369 --enable-maintainer-mode enable make rules and dependencies not useful
1370 (and sometimes confusing) to the casual installer
1371 --enable-shared[=PKGS] build shared libraries [default=yes]
1372 --enable-static[=PKGS] build static libraries [default=yes]
1373 --enable-fast-install[=PKGS]
1374 optimize for fast installation [default=yes]
1375 --disable-libtool-lock avoid locking (might break parallel builds)
1376 --enable-cet enable Intel CET in target libraries
1377 [default=default]
1379 Optional Packages:
1380 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1381 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1382 --with-pic try to use only PIC/non-PIC objects [default=use
1383 both]
1384 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1385 --with-gcc-major-version-only
1386 use only GCC major number in filesystem paths
1388 Some influential environment variables:
1389 CC C compiler command
1390 CFLAGS C compiler flags
1391 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1392 nonstandard directory <lib dir>
1393 LIBS libraries to pass to the linker, e.g. -l<library>
1394 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1395 you have headers in a nonstandard directory <include dir>
1396 CPP C preprocessor
1398 Use these variables to override the choices made by `configure' or to help
1399 it to find libraries and programs with nonstandard names/locations.
1401 Report bugs to <libmpx>.
1402 _ACEOF
1403 ac_status=$?
1406 if test "$ac_init_help" = "recursive"; then
1407 # If there are subdirs, report their specific --help.
1408 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1409 test -d "$ac_dir" ||
1410 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1411 continue
1412 ac_builddir=.
1414 case "$ac_dir" in
1415 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1418 # A ".." for each directory in $ac_dir_suffix.
1419 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1420 case $ac_top_builddir_sub in
1421 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1423 esac ;;
1424 esac
1425 ac_abs_top_builddir=$ac_pwd
1426 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1427 # for backward compatibility:
1428 ac_top_builddir=$ac_top_build_prefix
1430 case $srcdir in
1431 .) # We are building in place.
1432 ac_srcdir=.
1433 ac_top_srcdir=$ac_top_builddir_sub
1434 ac_abs_top_srcdir=$ac_pwd ;;
1435 [\\/]* | ?:[\\/]* ) # Absolute name.
1436 ac_srcdir=$srcdir$ac_dir_suffix;
1437 ac_top_srcdir=$srcdir
1438 ac_abs_top_srcdir=$srcdir ;;
1439 *) # Relative name.
1440 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1441 ac_top_srcdir=$ac_top_build_prefix$srcdir
1442 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1443 esac
1444 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1446 cd "$ac_dir" || { ac_status=$?; continue; }
1447 # Check for guested configure.
1448 if test -f "$ac_srcdir/configure.gnu"; then
1449 echo &&
1450 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1451 elif test -f "$ac_srcdir/configure"; then
1452 echo &&
1453 $SHELL "$ac_srcdir/configure" --help=recursive
1454 else
1455 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1456 fi || ac_status=$?
1457 cd "$ac_pwd" || { ac_status=$?; break; }
1458 done
1461 test -n "$ac_init_help" && exit $ac_status
1462 if $ac_init_version; then
1463 cat <<\_ACEOF
1464 package-unused configure version-unused
1465 generated by GNU Autoconf 2.64
1467 Copyright (C) 2009 Free Software Foundation, Inc.
1468 This configure script is free software; the Free Software Foundation
1469 gives unlimited permission to copy, distribute and modify it.
1470 _ACEOF
1471 exit
1474 ## ------------------------ ##
1475 ## Autoconf initialization. ##
1476 ## ------------------------ ##
1478 # ac_fn_c_try_compile LINENO
1479 # --------------------------
1480 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1481 ac_fn_c_try_compile ()
1483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1484 rm -f conftest.$ac_objext
1485 if { { ac_try="$ac_compile"
1486 case "(($ac_try" in
1487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1488 *) ac_try_echo=$ac_try;;
1489 esac
1490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491 $as_echo "$ac_try_echo"; } >&5
1492 (eval "$ac_compile") 2>conftest.err
1493 ac_status=$?
1494 if test -s conftest.err; then
1495 grep -v '^ *+' conftest.err >conftest.er1
1496 cat conftest.er1 >&5
1497 mv -f conftest.er1 conftest.err
1499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500 test $ac_status = 0; } && {
1501 test -z "$ac_c_werror_flag" ||
1502 test ! -s conftest.err
1503 } && test -s conftest.$ac_objext; then :
1504 ac_retval=0
1505 else
1506 $as_echo "$as_me: failed program was:" >&5
1507 sed 's/^/| /' conftest.$ac_ext >&5
1509 ac_retval=1
1511 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1512 return $ac_retval
1514 } # ac_fn_c_try_compile
1516 # ac_fn_c_try_cpp LINENO
1517 # ----------------------
1518 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1519 ac_fn_c_try_cpp ()
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 if { { ac_try="$ac_cpp conftest.$ac_ext"
1523 case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1530 ac_status=$?
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } >/dev/null && {
1538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 }; then :
1541 ac_retval=0
1542 else
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1546 ac_retval=1
1548 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1549 return $ac_retval
1551 } # ac_fn_c_try_cpp
1553 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1554 # -------------------------------------------------------
1555 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1556 # the include files in INCLUDES and setting the cache variable VAR
1557 # accordingly.
1558 ac_fn_c_check_header_mongrel ()
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1563 $as_echo_n "checking for $2... " >&6; }
1564 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1565 $as_echo_n "(cached) " >&6
1567 eval ac_res=\$$3
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1569 $as_echo "$ac_res" >&6; }
1570 else
1571 # Is the header compilable?
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1573 $as_echo_n "checking $2 usability... " >&6; }
1574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1575 /* end confdefs.h. */
1577 #include <$2>
1578 _ACEOF
1579 if ac_fn_c_try_compile "$LINENO"; then :
1580 ac_header_compiler=yes
1581 else
1582 ac_header_compiler=no
1584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1586 $as_echo "$ac_header_compiler" >&6; }
1588 # Is the header present?
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1590 $as_echo_n "checking $2 presence... " >&6; }
1591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592 /* end confdefs.h. */
1593 #include <$2>
1594 _ACEOF
1595 if ac_fn_c_try_cpp "$LINENO"; then :
1596 ac_header_preproc=yes
1597 else
1598 ac_header_preproc=no
1600 rm -f conftest.err conftest.$ac_ext
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1602 $as_echo "$ac_header_preproc" >&6; }
1604 # So? What about this header?
1605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1606 yes:no: )
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1608 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1610 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1612 no:yes:* )
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1614 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1616 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1618 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1620 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1622 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1623 ( cat <<\_ASBOX
1624 ## --------------------- ##
1625 ## Report this to libmpx ##
1626 ## --------------------- ##
1627 _ASBOX
1628 ) | sed "s/^/$as_me: WARNING: /" >&2
1630 esac
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632 $as_echo_n "checking for $2... " >&6; }
1633 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1634 $as_echo_n "(cached) " >&6
1635 else
1636 eval "$3=\$ac_header_compiler"
1638 eval ac_res=\$$3
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640 $as_echo "$ac_res" >&6; }
1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1644 } # ac_fn_c_check_header_mongrel
1646 # ac_fn_c_try_run LINENO
1647 # ----------------------
1648 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1649 # that executables *can* be run.
1650 ac_fn_c_try_run ()
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if { { ac_try="$ac_link"
1654 case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_link") 2>&5
1661 ac_status=$?
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1664 { { case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_try") 2>&5
1671 ac_status=$?
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; }; }; then :
1674 ac_retval=0
1675 else
1676 $as_echo "$as_me: program exited with status $ac_status" >&5
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1680 ac_retval=$ac_status
1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684 return $ac_retval
1686 } # ac_fn_c_try_run
1688 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1689 # -------------------------------------------------------
1690 # Tests whether HEADER exists and can be compiled using the include files in
1691 # INCLUDES, setting the cache variable VAR accordingly.
1692 ac_fn_c_check_header_compile ()
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1698 $as_echo_n "(cached) " >&6
1699 else
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h. */
1703 #include <$2>
1704 _ACEOF
1705 if ac_fn_c_try_compile "$LINENO"; then :
1706 eval "$3=yes"
1707 else
1708 eval "$3=no"
1710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712 eval ac_res=\$$3
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 $as_echo "$ac_res" >&6; }
1715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717 } # ac_fn_c_check_header_compile
1719 # ac_fn_c_try_link LINENO
1720 # -----------------------
1721 # Try to link conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_link ()
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 rm -f conftest.$ac_objext conftest$ac_exeext
1726 if { { ac_try="$ac_link"
1727 case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>conftest.err
1734 ac_status=$?
1735 if test -s conftest.err; then
1736 grep -v '^ *+' conftest.err >conftest.er1
1737 cat conftest.er1 >&5
1738 mv -f conftest.er1 conftest.err
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && {
1742 test -z "$ac_c_werror_flag" ||
1743 test ! -s conftest.err
1744 } && test -s conftest$ac_exeext && {
1745 test "$cross_compiling" = yes ||
1746 $as_test_x conftest$ac_exeext
1747 }; then :
1748 ac_retval=0
1749 else
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1753 ac_retval=1
1755 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1756 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1757 # interfere with the next link command; also delete a directory that is
1758 # left behind by Apple's compiler. We do this before executing the actions.
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761 return $ac_retval
1763 } # ac_fn_c_try_link
1765 # ac_fn_c_check_func LINENO FUNC VAR
1766 # ----------------------------------
1767 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1768 ac_fn_c_check_func ()
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1774 $as_echo_n "(cached) " >&6
1775 else
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1778 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1780 #define $2 innocuous_$2
1782 /* System header to define __stub macros and hopefully few prototypes,
1783 which can conflict with char $2 (); below.
1784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1785 <limits.h> exists even on freestanding compilers. */
1787 #ifdef __STDC__
1788 # include <limits.h>
1789 #else
1790 # include <assert.h>
1791 #endif
1793 #undef $2
1795 /* Override any GCC internal prototype to avoid an error.
1796 Use char because int might match the return type of a GCC
1797 builtin and then its argument prototype would still apply. */
1798 #ifdef __cplusplus
1799 extern "C"
1800 #endif
1801 char $2 ();
1802 /* The GNU C library defines this for functions which it implements
1803 to always fail with ENOSYS. Some functions are actually named
1804 something starting with __ and the normal name is an alias. */
1805 #if defined __stub_$2 || defined __stub___$2
1806 choke me
1807 #endif
1810 main ()
1812 return $2 ();
1814 return 0;
1816 _ACEOF
1817 if ac_fn_c_try_link "$LINENO"; then :
1818 eval "$3=yes"
1819 else
1820 eval "$3=no"
1822 rm -f core conftest.err conftest.$ac_objext \
1823 conftest$ac_exeext conftest.$ac_ext
1825 eval ac_res=\$$3
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 } # ac_fn_c_check_func
1831 cat >config.log <<_ACEOF
1832 This file contains any messages produced by compilers while
1833 running configure, to aid debugging if configure makes a mistake.
1835 It was created by package-unused $as_me version-unused, which was
1836 generated by GNU Autoconf 2.64. Invocation command line was
1838 $ $0 $@
1840 _ACEOF
1841 exec 5>>config.log
1843 cat <<_ASUNAME
1844 ## --------- ##
1845 ## Platform. ##
1846 ## --------- ##
1848 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1849 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1850 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1851 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1852 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1854 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1855 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1857 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1858 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1859 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1860 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1861 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1862 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1863 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1865 _ASUNAME
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 $as_echo "PATH: $as_dir"
1873 done
1874 IFS=$as_save_IFS
1876 } >&5
1878 cat >&5 <<_ACEOF
1881 ## ----------- ##
1882 ## Core tests. ##
1883 ## ----------- ##
1885 _ACEOF
1888 # Keep a trace of the command line.
1889 # Strip out --no-create and --no-recursion so they do not pile up.
1890 # Strip out --silent because we don't want to record it for future runs.
1891 # Also quote any args containing shell meta-characters.
1892 # Make two passes to allow for proper duplicate-argument suppression.
1893 ac_configure_args=
1894 ac_configure_args0=
1895 ac_configure_args1=
1896 ac_must_keep_next=false
1897 for ac_pass in 1 2
1899 for ac_arg
1901 case $ac_arg in
1902 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1903 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1904 | -silent | --silent | --silen | --sile | --sil)
1905 continue ;;
1906 *\'*)
1907 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1908 esac
1909 case $ac_pass in
1910 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1912 as_fn_append ac_configure_args1 " '$ac_arg'"
1913 if test $ac_must_keep_next = true; then
1914 ac_must_keep_next=false # Got value, back to normal.
1915 else
1916 case $ac_arg in
1917 *=* | --config-cache | -C | -disable-* | --disable-* \
1918 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1919 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1920 | -with-* | --with-* | -without-* | --without-* | --x)
1921 case "$ac_configure_args0 " in
1922 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1923 esac
1925 -* ) ac_must_keep_next=true ;;
1926 esac
1928 as_fn_append ac_configure_args " '$ac_arg'"
1930 esac
1931 done
1932 done
1933 { ac_configure_args0=; unset ac_configure_args0;}
1934 { ac_configure_args1=; unset ac_configure_args1;}
1936 # When interrupted or exit'd, cleanup temporary files, and complete
1937 # config.log. We remove comments because anyway the quotes in there
1938 # would cause problems or look ugly.
1939 # WARNING: Use '\'' to represent an apostrophe within the trap.
1940 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1941 trap 'exit_status=$?
1942 # Save into config.log some information that might help in debugging.
1944 echo
1946 cat <<\_ASBOX
1947 ## ---------------- ##
1948 ## Cache variables. ##
1949 ## ---------------- ##
1950 _ASBOX
1951 echo
1952 # The following way of writing the cache mishandles newlines in values,
1954 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1955 eval ac_val=\$$ac_var
1956 case $ac_val in #(
1957 *${as_nl}*)
1958 case $ac_var in #(
1959 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1960 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1961 esac
1962 case $ac_var in #(
1963 _ | IFS | as_nl) ;; #(
1964 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1965 *) { eval $ac_var=; unset $ac_var;} ;;
1966 esac ;;
1967 esac
1968 done
1969 (set) 2>&1 |
1970 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1971 *${as_nl}ac_space=\ *)
1972 sed -n \
1973 "s/'\''/'\''\\\\'\'''\''/g;
1974 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1975 ;; #(
1977 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1979 esac |
1980 sort
1982 echo
1984 cat <<\_ASBOX
1985 ## ----------------- ##
1986 ## Output variables. ##
1987 ## ----------------- ##
1988 _ASBOX
1989 echo
1990 for ac_var in $ac_subst_vars
1992 eval ac_val=\$$ac_var
1993 case $ac_val in
1994 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1995 esac
1996 $as_echo "$ac_var='\''$ac_val'\''"
1997 done | sort
1998 echo
2000 if test -n "$ac_subst_files"; then
2001 cat <<\_ASBOX
2002 ## ------------------- ##
2003 ## File substitutions. ##
2004 ## ------------------- ##
2005 _ASBOX
2006 echo
2007 for ac_var in $ac_subst_files
2009 eval ac_val=\$$ac_var
2010 case $ac_val in
2011 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2012 esac
2013 $as_echo "$ac_var='\''$ac_val'\''"
2014 done | sort
2015 echo
2018 if test -s confdefs.h; then
2019 cat <<\_ASBOX
2020 ## ----------- ##
2021 ## confdefs.h. ##
2022 ## ----------- ##
2023 _ASBOX
2024 echo
2025 cat confdefs.h
2026 echo
2028 test "$ac_signal" != 0 &&
2029 $as_echo "$as_me: caught signal $ac_signal"
2030 $as_echo "$as_me: exit $exit_status"
2031 } >&5
2032 rm -f core *.core core.conftest.* &&
2033 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2034 exit $exit_status
2036 for ac_signal in 1 2 13 15; do
2037 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2038 done
2039 ac_signal=0
2041 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2042 rm -f -r conftest* confdefs.h
2044 $as_echo "/* confdefs.h */" > confdefs.h
2046 # Predefined preprocessor variables.
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_NAME "$PACKAGE_NAME"
2050 _ACEOF
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2054 _ACEOF
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2058 _ACEOF
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_STRING "$PACKAGE_STRING"
2062 _ACEOF
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2066 _ACEOF
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_URL "$PACKAGE_URL"
2070 _ACEOF
2073 # Let the site file select an alternate cache file if it wants to.
2074 # Prefer an explicitly selected file to automatically selected ones.
2075 ac_site_file1=NONE
2076 ac_site_file2=NONE
2077 if test -n "$CONFIG_SITE"; then
2078 ac_site_file1=$CONFIG_SITE
2079 elif test "x$prefix" != xNONE; then
2080 ac_site_file1=$prefix/share/config.site
2081 ac_site_file2=$prefix/etc/config.site
2082 else
2083 ac_site_file1=$ac_default_prefix/share/config.site
2084 ac_site_file2=$ac_default_prefix/etc/config.site
2086 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2088 test "x$ac_site_file" = xNONE && continue
2089 if test -r "$ac_site_file"; then
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2091 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2092 sed 's/^/| /' "$ac_site_file" >&5
2093 . "$ac_site_file"
2095 done
2097 if test -r "$cache_file"; then
2098 # Some versions of bash will fail to source /dev/null (special
2099 # files actually), so we avoid doing that.
2100 if test -f "$cache_file"; then
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2102 $as_echo "$as_me: loading cache $cache_file" >&6;}
2103 case $cache_file in
2104 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2105 *) . "./$cache_file";;
2106 esac
2108 else
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2110 $as_echo "$as_me: creating cache $cache_file" >&6;}
2111 >$cache_file
2114 # Check that the precious variables saved in the cache have kept the same
2115 # value.
2116 ac_cache_corrupted=false
2117 for ac_var in $ac_precious_vars; do
2118 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2119 eval ac_new_set=\$ac_env_${ac_var}_set
2120 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2121 eval ac_new_val=\$ac_env_${ac_var}_value
2122 case $ac_old_set,$ac_new_set in
2123 set,)
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2125 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2126 ac_cache_corrupted=: ;;
2127 ,set)
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2129 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2130 ac_cache_corrupted=: ;;
2131 ,);;
2133 if test "x$ac_old_val" != "x$ac_new_val"; then
2134 # differences in whitespace do not lead to failure.
2135 ac_old_val_w=`echo x $ac_old_val`
2136 ac_new_val_w=`echo x $ac_new_val`
2137 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2139 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2140 ac_cache_corrupted=:
2141 else
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2143 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2144 eval $ac_var=\$ac_old_val
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2147 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2149 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2150 fi;;
2151 esac
2152 # Pass precious variables to config.status.
2153 if test "$ac_new_set" = set; then
2154 case $ac_new_val in
2155 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2156 *) ac_arg=$ac_var=$ac_new_val ;;
2157 esac
2158 case " $ac_configure_args " in
2159 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2160 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2161 esac
2163 done
2164 if $ac_cache_corrupted; then
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2168 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2169 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2171 ## -------------------- ##
2172 ## Main body of script. ##
2173 ## -------------------- ##
2175 ac_ext=c
2176 ac_cpp='$CPP $CPPFLAGS'
2177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2186 # -------
2187 # Options
2188 # -------
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2190 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2191 # Check whether --enable-version-specific-runtime-libs was given.
2192 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2193 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2194 yes) version_specific_libs=yes ;;
2195 no) version_specific_libs=no ;;
2196 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2197 esac
2198 else
2199 version_specific_libs=no
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2203 $as_echo "$version_specific_libs" >&6; }
2205 # Do not delete or change the following two lines. For why, see
2206 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2207 ac_aux_dir=
2208 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2209 for ac_t in install-sh install.sh shtool; do
2210 if test -f "$ac_dir/$ac_t"; then
2211 ac_aux_dir=$ac_dir
2212 ac_install_sh="$ac_aux_dir/$ac_t -c"
2213 break 2
2215 done
2216 done
2217 if test -z "$ac_aux_dir"; then
2218 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2221 # These three variables are undocumented and unsupported,
2222 # and are intended to be withdrawn in a future Autoconf release.
2223 # They can cause serious problems if a builder's source tree is in a directory
2224 # whose full name contains unusual characters.
2225 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2226 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2227 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2230 # Make sure we can run config.sub.
2231 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2232 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2235 $as_echo_n "checking build system type... " >&6; }
2236 if test "${ac_cv_build+set}" = set; then :
2237 $as_echo_n "(cached) " >&6
2238 else
2239 ac_build_alias=$build_alias
2240 test "x$ac_build_alias" = x &&
2241 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2242 test "x$ac_build_alias" = x &&
2243 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2244 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2245 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2249 $as_echo "$ac_cv_build" >&6; }
2250 case $ac_cv_build in
2251 *-*-*) ;;
2252 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2253 esac
2254 build=$ac_cv_build
2255 ac_save_IFS=$IFS; IFS='-'
2256 set x $ac_cv_build
2257 shift
2258 build_cpu=$1
2259 build_vendor=$2
2260 shift; shift
2261 # Remember, the first character of IFS is used to create $*,
2262 # except with old shells:
2263 build_os=$*
2264 IFS=$ac_save_IFS
2265 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2269 $as_echo_n "checking host system type... " >&6; }
2270 if test "${ac_cv_host+set}" = set; then :
2271 $as_echo_n "(cached) " >&6
2272 else
2273 if test "x$host_alias" = x; then
2274 ac_cv_host=$ac_cv_build
2275 else
2276 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2277 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2282 $as_echo "$ac_cv_host" >&6; }
2283 case $ac_cv_host in
2284 *-*-*) ;;
2285 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2286 esac
2287 host=$ac_cv_host
2288 ac_save_IFS=$IFS; IFS='-'
2289 set x $ac_cv_host
2290 shift
2291 host_cpu=$1
2292 host_vendor=$2
2293 shift; shift
2294 # Remember, the first character of IFS is used to create $*,
2295 # except with old shells:
2296 host_os=$*
2297 IFS=$ac_save_IFS
2298 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2302 $as_echo_n "checking target system type... " >&6; }
2303 if test "${ac_cv_target+set}" = set; then :
2304 $as_echo_n "(cached) " >&6
2305 else
2306 if test "x$target_alias" = x; then
2307 ac_cv_target=$ac_cv_host
2308 else
2309 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2310 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2315 $as_echo "$ac_cv_target" >&6; }
2316 case $ac_cv_target in
2317 *-*-*) ;;
2318 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2319 esac
2320 target=$ac_cv_target
2321 ac_save_IFS=$IFS; IFS='-'
2322 set x $ac_cv_target
2323 shift
2324 target_cpu=$1
2325 target_vendor=$2
2326 shift; shift
2327 # Remember, the first character of IFS is used to create $*,
2328 # except with old shells:
2329 target_os=$*
2330 IFS=$ac_save_IFS
2331 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2334 # The aliases save the names the user supplied, while $host etc.
2335 # will get canonicalized.
2336 test -n "$target_alias" &&
2337 test "$program_prefix$program_suffix$program_transform_name" = \
2338 NONENONEs,x,x, &&
2339 program_prefix=${target_alias}-
2341 target_alias=${target_alias-$host_alias}
2344 # See if supported.
2345 unset LIBMPX_SUPPORTED
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target support for Intel MPX runtime library" >&5
2347 $as_echo_n "checking for target support for Intel MPX runtime library... " >&6; }
2348 echo "int i[sizeof (void *) == 4 ? 1 : -1] = { __x86_64__ };" > conftest.c
2349 if { ac_try='${CC} ${CFLAGS} -c -o conftest.o conftest.c 1>&5'
2350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
2351 (eval $ac_try) 2>&5
2352 ac_status=$?
2353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2354 test $ac_status = 0; }; }
2355 then
2356 LIBMPX_SUPPORTED=no
2357 else
2358 LIBMPX_SUPPORTED=yes
2360 rm -f conftest.o conftest.c
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPX_SUPPORTED" >&5
2362 $as_echo "$LIBMPX_SUPPORTED" >&6; }
2363 if test "x$LIBMPX_SUPPORTED" = "xyes"; then
2364 LIBMPX_SUPPORTED_TRUE=
2365 LIBMPX_SUPPORTED_FALSE='#'
2366 else
2367 LIBMPX_SUPPORTED_TRUE='#'
2368 LIBMPX_SUPPORTED_FALSE=
2372 link_libmpx="-lpthread"
2375 am__api_version='1.11'
2377 # Find a good install program. We prefer a C program (faster),
2378 # so one script is as good as another. But avoid the broken or
2379 # incompatible versions:
2380 # SysV /etc/install, /usr/sbin/install
2381 # SunOS /usr/etc/install
2382 # IRIX /sbin/install
2383 # AIX /bin/install
2384 # AmigaOS /C/install, which installs bootblocks on floppy discs
2385 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2386 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2387 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2388 # OS/2's system install, which has a completely different semantic
2389 # ./install, which can be erroneously created by make from ./install.sh.
2390 # Reject install programs that cannot install multiple files.
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2392 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2393 if test -z "$INSTALL"; then
2394 if test "${ac_cv_path_install+set}" = set; then :
2395 $as_echo_n "(cached) " >&6
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
2402 # Account for people who put trailing slashes in PATH elements.
2403 case $as_dir/ in #((
2404 ./ | .// | /[cC]/* | \
2405 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2406 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2407 /usr/ucb/* ) ;;
2409 # OSF1 and SCO ODT 3.0 have their own names for install.
2410 # Don't use installbsd from OSF since it installs stuff as root
2411 # by default.
2412 for ac_prog in ginstall scoinst install; do
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2415 if test $ac_prog = install &&
2416 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2417 # AIX install. It has an incompatible calling convention.
2419 elif test $ac_prog = install &&
2420 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2421 # program-specific install script used by HP pwplus--don't use.
2423 else
2424 rm -rf conftest.one conftest.two conftest.dir
2425 echo one > conftest.one
2426 echo two > conftest.two
2427 mkdir conftest.dir
2428 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2429 test -s conftest.one && test -s conftest.two &&
2430 test -s conftest.dir/conftest.one &&
2431 test -s conftest.dir/conftest.two
2432 then
2433 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2434 break 3
2438 done
2439 done
2441 esac
2443 done
2444 IFS=$as_save_IFS
2446 rm -rf conftest.one conftest.two conftest.dir
2449 if test "${ac_cv_path_install+set}" = set; then
2450 INSTALL=$ac_cv_path_install
2451 else
2452 # As a last resort, use the slow shell script. Don't cache a
2453 # value for INSTALL within a source directory, because that will
2454 # break other packages using the cache if that directory is
2455 # removed, or if the value is a relative name.
2456 INSTALL=$ac_install_sh
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2460 $as_echo "$INSTALL" >&6; }
2462 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2463 # It thinks the first close brace ends the variable substitution.
2464 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2466 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2468 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2471 $as_echo_n "checking whether build environment is sane... " >&6; }
2472 # Just in case
2473 sleep 1
2474 echo timestamp > conftest.file
2475 # Reject unsafe characters in $srcdir or the absolute working directory
2476 # name. Accept space and tab only in the latter.
2477 am_lf='
2479 case `pwd` in
2480 *[\\\"\#\$\&\'\`$am_lf]*)
2481 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2482 esac
2483 case $srcdir in
2484 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2485 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2486 esac
2488 # Do `set' in a subshell so we don't clobber the current shell's
2489 # arguments. Must try -L first in case configure is actually a
2490 # symlink; some systems play weird games with the mod time of symlinks
2491 # (eg FreeBSD returns the mod time of the symlink's containing
2492 # directory).
2493 if (
2494 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2495 if test "$*" = "X"; then
2496 # -L didn't work.
2497 set X `ls -t "$srcdir/configure" conftest.file`
2499 rm -f conftest.file
2500 if test "$*" != "X $srcdir/configure conftest.file" \
2501 && test "$*" != "X conftest.file $srcdir/configure"; then
2503 # If neither matched, then we have a broken ls. This can happen
2504 # if, for instance, CONFIG_SHELL is bash and it inherits a
2505 # broken ls alias from the environment. This has actually
2506 # happened. Such a system could not be considered "sane".
2507 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2508 alias in your environment" "$LINENO" 5
2511 test "$2" = conftest.file
2513 then
2514 # Ok.
2516 else
2517 as_fn_error "newly created file is older than distributed files!
2518 Check your system clock" "$LINENO" 5
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2521 $as_echo "yes" >&6; }
2522 test "$program_prefix" != NONE &&
2523 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2524 # Use a double $ so make ignores it.
2525 test "$program_suffix" != NONE &&
2526 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2527 # Double any \ or $.
2528 # By default was `s,x,x', remove it if useless.
2529 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2530 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2532 # expand $ac_aux_dir to an absolute path
2533 am_aux_dir=`cd $ac_aux_dir && pwd`
2535 if test x"${MISSING+set}" != xset; then
2536 case $am_aux_dir in
2537 *\ * | *\ *)
2538 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2540 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2541 esac
2543 # Use eval to expand $SHELL
2544 if eval "$MISSING --run true"; then
2545 am_missing_run="$MISSING --run "
2546 else
2547 am_missing_run=
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2549 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2552 if test x"${install_sh}" != xset; then
2553 case $am_aux_dir in
2554 *\ * | *\ *)
2555 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2557 install_sh="\${SHELL} $am_aux_dir/install-sh"
2558 esac
2561 # Installed binaries are usually stripped using `strip' when the user
2562 # run `make install-strip'. However `strip' might not be the right
2563 # tool to use in cross-compilation environments, therefore Automake
2564 # will honor the `STRIP' environment variable to overrule this program.
2565 if test "$cross_compiling" != no; then
2566 if test -n "$ac_tool_prefix"; then
2567 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2568 set dummy ${ac_tool_prefix}strip; ac_word=$2
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570 $as_echo_n "checking for $ac_word... " >&6; }
2571 if test "${ac_cv_prog_STRIP+set}" = set; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 if test -n "$STRIP"; then
2575 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2584 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 break 2
2588 done
2589 done
2590 IFS=$as_save_IFS
2594 STRIP=$ac_cv_prog_STRIP
2595 if test -n "$STRIP"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2597 $as_echo "$STRIP" >&6; }
2598 else
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600 $as_echo "no" >&6; }
2605 if test -z "$ac_cv_prog_STRIP"; then
2606 ac_ct_STRIP=$STRIP
2607 # Extract the first word of "strip", so it can be a program name with args.
2608 set dummy strip; ac_word=$2
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2612 $as_echo_n "(cached) " >&6
2613 else
2614 if test -n "$ac_ct_STRIP"; then
2615 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624 ac_cv_prog_ac_ct_STRIP="strip"
2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2628 done
2629 done
2630 IFS=$as_save_IFS
2634 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2635 if test -n "$ac_ct_STRIP"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2637 $as_echo "$ac_ct_STRIP" >&6; }
2638 else
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640 $as_echo "no" >&6; }
2643 if test "x$ac_ct_STRIP" = x; then
2644 STRIP=":"
2645 else
2646 case $cross_compiling:$ac_tool_warned in
2647 yes:)
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2650 ac_tool_warned=yes ;;
2651 esac
2652 STRIP=$ac_ct_STRIP
2654 else
2655 STRIP="$ac_cv_prog_STRIP"
2659 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2662 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2663 if test -z "$MKDIR_P"; then
2664 if test "${ac_cv_path_mkdir+set}" = set; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_prog in mkdir gmkdir; do
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2675 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2676 'mkdir (GNU coreutils) '* | \
2677 'mkdir (coreutils) '* | \
2678 'mkdir (fileutils) '4.1*)
2679 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2680 break 3;;
2681 esac
2682 done
2683 done
2684 done
2685 IFS=$as_save_IFS
2689 if test "${ac_cv_path_mkdir+set}" = set; then
2690 MKDIR_P="$ac_cv_path_mkdir -p"
2691 else
2692 # As a last resort, use the slow shell script. Don't cache a
2693 # value for MKDIR_P within a source directory, because that will
2694 # break other packages using the cache if that directory is
2695 # removed, or if the value is a relative name.
2696 test -d ./--version && rmdir ./--version
2697 MKDIR_P="$ac_install_sh -d"
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2701 $as_echo "$MKDIR_P" >&6; }
2703 mkdir_p="$MKDIR_P"
2704 case $mkdir_p in
2705 [\\/$]* | ?:[\\/]*) ;;
2706 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2707 esac
2709 for ac_prog in gawk mawk nawk awk
2711 # Extract the first word of "$ac_prog", so it can be a program name with args.
2712 set dummy $ac_prog; ac_word=$2
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714 $as_echo_n "checking for $ac_word... " >&6; }
2715 if test "${ac_cv_prog_AWK+set}" = set; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 if test -n "$AWK"; then
2719 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2720 else
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 for as_dir in $PATH
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2728 ac_cv_prog_AWK="$ac_prog"
2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 break 2
2732 done
2733 done
2734 IFS=$as_save_IFS
2738 AWK=$ac_cv_prog_AWK
2739 if test -n "$AWK"; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2741 $as_echo "$AWK" >&6; }
2742 else
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744 $as_echo "no" >&6; }
2748 test -n "$AWK" && break
2749 done
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2752 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2753 set x ${MAKE-make}
2754 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2755 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 cat >conftest.make <<\_ACEOF
2759 SHELL = /bin/sh
2760 all:
2761 @echo '@@@%%%=$(MAKE)=@@@%%%'
2762 _ACEOF
2763 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2764 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2765 *@@@%%%=?*=@@@%%%*)
2766 eval ac_cv_prog_make_${ac_make}_set=yes;;
2768 eval ac_cv_prog_make_${ac_make}_set=no;;
2769 esac
2770 rm -f conftest.make
2772 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2774 $as_echo "yes" >&6; }
2775 SET_MAKE=
2776 else
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778 $as_echo "no" >&6; }
2779 SET_MAKE="MAKE=${MAKE-make}"
2782 rm -rf .tst 2>/dev/null
2783 mkdir .tst 2>/dev/null
2784 if test -d .tst; then
2785 am__leading_dot=.
2786 else
2787 am__leading_dot=_
2789 rmdir .tst 2>/dev/null
2791 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2792 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2793 # is not polluted with repeated "-I."
2794 am__isrc=' -I$(srcdir)'
2795 # test to see if srcdir already configured
2796 if test -f $srcdir/config.status; then
2797 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2801 # test whether we have cygpath
2802 if test -z "$CYGPATH_W"; then
2803 if (cygpath --version) >/dev/null 2>/dev/null; then
2804 CYGPATH_W='cygpath -w'
2805 else
2806 CYGPATH_W=echo
2811 # Define the identity of the package.
2812 PACKAGE='package-unused'
2813 VERSION='version-unused'
2816 cat >>confdefs.h <<_ACEOF
2817 #define PACKAGE "$PACKAGE"
2818 _ACEOF
2821 cat >>confdefs.h <<_ACEOF
2822 #define VERSION "$VERSION"
2823 _ACEOF
2825 # Some tools Automake needs.
2827 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2830 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2833 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2836 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2839 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2841 # We need awk for the "check" target. The system "awk" is bad on
2842 # some platforms.
2843 # Always define AMTAR for backward compatibility. Yes, it's still used
2844 # in the wild :-( We should find a proper way to deprecate it ...
2845 AMTAR='$${TAR-tar}'
2847 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2853 # Default to --enable-multilib
2854 # Check whether --enable-multilib was given.
2855 if test "${enable_multilib+set}" = set; then :
2856 enableval=$enable_multilib; case "$enableval" in
2857 yes) multilib=yes ;;
2858 no) multilib=no ;;
2859 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2860 esac
2861 else
2862 multilib=yes
2866 # We may get other options which we leave undocumented:
2867 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2868 # See config-ml.in if you want the gory details.
2870 if test "$srcdir" = "."; then
2871 if test "$with_target_subdir" != "."; then
2872 multi_basedir="$srcdir/$with_multisrctop../.."
2873 else
2874 multi_basedir="$srcdir/$with_multisrctop.."
2876 else
2877 multi_basedir="$srcdir/.."
2881 # Even if the default multilib is not a cross compilation,
2882 # it may be that some of the other multilibs are.
2883 if test $cross_compiling = no && test $multilib = yes \
2884 && test "x${with_multisubdir}" != x ; then
2885 cross_compiling=maybe
2888 ac_config_commands="$ac_config_commands default-1"
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2892 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2893 # Check whether --enable-maintainer-mode was given.
2894 if test "${enable_maintainer_mode+set}" = set; then :
2895 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2896 else
2897 USE_MAINTAINER_MODE=no
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2901 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2902 if test $USE_MAINTAINER_MODE = yes; then
2903 MAINTAINER_MODE_TRUE=
2904 MAINTAINER_MODE_FALSE='#'
2905 else
2906 MAINTAINER_MODE_TRUE='#'
2907 MAINTAINER_MODE_FALSE=
2910 MAINT=$MAINTAINER_MODE_TRUE
2914 ac_ext=c
2915 ac_cpp='$CPP $CPPFLAGS'
2916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919 if test -n "$ac_tool_prefix"; then
2920 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2921 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if test "${ac_cv_prog_CC+set}" = set; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 if test -n "$CC"; then
2928 ac_cv_prog_CC="$CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2941 done
2942 done
2943 IFS=$as_save_IFS
2947 CC=$ac_cv_prog_CC
2948 if test -n "$CC"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2950 $as_echo "$CC" >&6; }
2951 else
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2958 if test -z "$ac_cv_prog_CC"; then
2959 ac_ct_CC=$CC
2960 # Extract the first word of "gcc", so it can be a program name with args.
2961 set dummy gcc; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2965 $as_echo_n "(cached) " >&6
2966 else
2967 if test -n "$ac_ct_CC"; then
2968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977 ac_cv_prog_ac_ct_CC="gcc"
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2981 done
2982 done
2983 IFS=$as_save_IFS
2987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2988 if test -n "$ac_ct_CC"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2990 $as_echo "$ac_ct_CC" >&6; }
2991 else
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2996 if test "x$ac_ct_CC" = x; then
2997 CC=""
2998 else
2999 case $cross_compiling:$ac_tool_warned in
3000 yes:)
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3003 ac_tool_warned=yes ;;
3004 esac
3005 CC=$ac_ct_CC
3007 else
3008 CC="$ac_cv_prog_CC"
3011 if test -z "$CC"; then
3012 if test -n "$ac_tool_prefix"; then
3013 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3014 set dummy ${ac_tool_prefix}cc; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if test "${ac_cv_prog_CC+set}" = set; then :
3018 $as_echo_n "(cached) " >&6
3019 else
3020 if test -n "$CC"; then
3021 ac_cv_prog_CC="$CC" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3026 IFS=$as_save_IFS
3027 test -z "$as_dir" && as_dir=.
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3030 ac_cv_prog_CC="${ac_tool_prefix}cc"
3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 break 2
3034 done
3035 done
3036 IFS=$as_save_IFS
3040 CC=$ac_cv_prog_CC
3041 if test -n "$CC"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3043 $as_echo "$CC" >&6; }
3044 else
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3052 if test -z "$CC"; then
3053 # Extract the first word of "cc", so it can be a program name with args.
3054 set dummy cc; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if test "${ac_cv_prog_CC+set}" = set; then :
3058 $as_echo_n "(cached) " >&6
3059 else
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC="$CC" # Let the user override the test.
3062 else
3063 ac_prog_rejected=no
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3067 IFS=$as_save_IFS
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3072 ac_prog_rejected=yes
3073 continue
3075 ac_cv_prog_CC="cc"
3076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3079 done
3080 done
3081 IFS=$as_save_IFS
3083 if test $ac_prog_rejected = yes; then
3084 # We found a bogon in the path, so make sure we never use it.
3085 set dummy $ac_cv_prog_CC
3086 shift
3087 if test $# != 0; then
3088 # We chose a different compiler from the bogus one.
3089 # However, it has the same basename, so the bogon will be chosen
3090 # first if we set CC to just the basename; use the full file name.
3091 shift
3092 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3097 CC=$ac_cv_prog_CC
3098 if test -n "$CC"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3100 $as_echo "$CC" >&6; }
3101 else
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3108 if test -z "$CC"; then
3109 if test -n "$ac_tool_prefix"; then
3110 for ac_prog in cl.exe
3112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if test "${ac_cv_prog_CC+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 if test -n "$CC"; then
3120 ac_cv_prog_CC="$CC" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3125 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 break 2
3133 done
3134 done
3135 IFS=$as_save_IFS
3139 CC=$ac_cv_prog_CC
3140 if test -n "$CC"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3149 test -n "$CC" && break
3150 done
3152 if test -z "$CC"; then
3153 ac_ct_CC=$CC
3154 for ac_prog in cl.exe
3156 # Extract the first word of "$ac_prog", so it can be a program name with args.
3157 set dummy $ac_prog; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3161 $as_echo_n "(cached) " >&6
3162 else
3163 if test -n "$ac_ct_CC"; then
3164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173 ac_cv_prog_ac_ct_CC="$ac_prog"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 break 2
3177 done
3178 done
3179 IFS=$as_save_IFS
3183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3184 if test -n "$ac_ct_CC"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3186 $as_echo "$ac_ct_CC" >&6; }
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3193 test -n "$ac_ct_CC" && break
3194 done
3196 if test "x$ac_ct_CC" = x; then
3197 CC=""
3198 else
3199 case $cross_compiling:$ac_tool_warned in
3200 yes:)
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3203 ac_tool_warned=yes ;;
3204 esac
3205 CC=$ac_ct_CC
3212 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 as_fn_error "no acceptable C compiler found in \$PATH
3215 See \`config.log' for more details." "$LINENO" 5; }
3217 # Provide some information about the compiler.
3218 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3219 set X $ac_compile
3220 ac_compiler=$2
3221 for ac_option in --version -v -V -qversion; do
3222 { { ac_try="$ac_compiler $ac_option >&5"
3223 case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226 esac
3227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3228 $as_echo "$ac_try_echo"; } >&5
3229 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3230 ac_status=$?
3231 if test -s conftest.err; then
3232 sed '10a\
3233 ... rest of stderr output deleted ...
3234 10q' conftest.err >conftest.er1
3235 cat conftest.er1 >&5
3236 rm -f conftest.er1 conftest.err
3238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239 test $ac_status = 0; }
3240 done
3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243 /* end confdefs.h. */
3246 main ()
3250 return 0;
3252 _ACEOF
3253 ac_clean_files_save=$ac_clean_files
3254 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3255 # Try to create an executable without -o first, disregard a.out.
3256 # It will help us diagnose broken compilers, and finding out an intuition
3257 # of exeext.
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3259 $as_echo_n "checking for C compiler default output file name... " >&6; }
3260 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3262 # The possible output files:
3263 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3265 ac_rmfiles=
3266 for ac_file in $ac_files
3268 case $ac_file in
3269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3270 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3271 esac
3272 done
3273 rm -f $ac_rmfiles
3275 if { { ac_try="$ac_link_default"
3276 case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282 (eval "$ac_link_default") 2>&5
3283 ac_status=$?
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }; then :
3286 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3287 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3288 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3289 # so that the user can short-circuit this test for compilers unknown to
3290 # Autoconf.
3291 for ac_file in $ac_files ''
3293 test -f "$ac_file" || continue
3294 case $ac_file in
3295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3297 [ab].out )
3298 # We found the default executable, but exeext='' is most
3299 # certainly right.
3300 break;;
3301 *.* )
3302 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3303 then :; else
3304 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3306 # We set ac_cv_exeext here because the later test for it is not
3307 # safe: cross compilers may not add the suffix if given an `-o'
3308 # argument, so we may need to know it at that point already.
3309 # Even if this section looks crufty: it has the advantage of
3310 # actually working.
3311 break;;
3313 break;;
3314 esac
3315 done
3316 test "$ac_cv_exeext" = no && ac_cv_exeext=
3318 else
3319 ac_file=''
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3322 $as_echo "$ac_file" >&6; }
3323 if test -z "$ac_file"; then :
3324 $as_echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329 { as_fn_set_status 77
3330 as_fn_error "C compiler cannot create executables
3331 See \`config.log' for more details." "$LINENO" 5; }; }
3333 ac_exeext=$ac_cv_exeext
3335 # Check that the compiler produces executables we can run. If not, either
3336 # the compiler is broken, or we cross compile.
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3338 $as_echo_n "checking whether the C compiler works... " >&6; }
3339 # If not cross compiling, check that we can run a simple program.
3340 if test "$cross_compiling" != yes; then
3341 if { ac_try='./$ac_file'
3342 { { case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345 esac
3346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347 $as_echo "$ac_try_echo"; } >&5
3348 (eval "$ac_try") 2>&5
3349 ac_status=$?
3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 test $ac_status = 0; }; }; then
3352 cross_compiling=no
3353 else
3354 if test "$cross_compiling" = maybe; then
3355 cross_compiling=yes
3356 else
3357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 as_fn_error "cannot run C compiled programs.
3360 If you meant to cross compile, use \`--host'.
3361 See \`config.log' for more details." "$LINENO" 5; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3366 $as_echo "yes" >&6; }
3368 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3369 ac_clean_files=$ac_clean_files_save
3370 # Check that the compiler produces executables we can run. If not, either
3371 # the compiler is broken, or we cross compile.
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3373 $as_echo_n "checking whether we are cross compiling... " >&6; }
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3375 $as_echo "$cross_compiling" >&6; }
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3378 $as_echo_n "checking for suffix of executables... " >&6; }
3379 if { { ac_try="$ac_link"
3380 case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383 esac
3384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385 $as_echo "$ac_try_echo"; } >&5
3386 (eval "$ac_link") 2>&5
3387 ac_status=$?
3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389 test $ac_status = 0; }; then :
3390 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3391 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3392 # work properly (i.e., refer to `conftest.exe'), while it won't with
3393 # `rm'.
3394 for ac_file in conftest.exe conftest conftest.*; do
3395 test -f "$ac_file" || continue
3396 case $ac_file in
3397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3398 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3399 break;;
3400 * ) break;;
3401 esac
3402 done
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 compute suffix of executables: cannot compile and link
3407 See \`config.log' for more details." "$LINENO" 5; }
3409 rm -f conftest$ac_cv_exeext
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3411 $as_echo "$ac_cv_exeext" >&6; }
3413 rm -f conftest.$ac_ext
3414 EXEEXT=$ac_cv_exeext
3415 ac_exeext=$EXEEXT
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3417 $as_echo_n "checking for suffix of object files... " >&6; }
3418 if test "${ac_cv_objext+set}" = set; then :
3419 $as_echo_n "(cached) " >&6
3420 else
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3425 main ()
3429 return 0;
3431 _ACEOF
3432 rm -f conftest.o conftest.obj
3433 if { { ac_try="$ac_compile"
3434 case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437 esac
3438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439 $as_echo "$ac_try_echo"; } >&5
3440 (eval "$ac_compile") 2>&5
3441 ac_status=$?
3442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443 test $ac_status = 0; }; then :
3444 for ac_file in conftest.o conftest.obj conftest.*; do
3445 test -f "$ac_file" || continue;
3446 case $ac_file in
3447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3448 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3449 break;;
3450 esac
3451 done
3452 else
3453 $as_echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 as_fn_error "cannot compute suffix of object files: cannot compile
3459 See \`config.log' for more details." "$LINENO" 5; }
3461 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3464 $as_echo "$ac_cv_objext" >&6; }
3465 OBJEXT=$ac_cv_objext
3466 ac_objext=$OBJEXT
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3468 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3469 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3470 $as_echo_n "(cached) " >&6
3471 else
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3476 main ()
3478 #ifndef __GNUC__
3479 choke me
3480 #endif
3483 return 0;
3485 _ACEOF
3486 if ac_fn_c_try_compile "$LINENO"; then :
3487 ac_compiler_gnu=yes
3488 else
3489 ac_compiler_gnu=no
3491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3496 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3497 if test $ac_compiler_gnu = yes; then
3498 GCC=yes
3499 else
3500 GCC=
3502 ac_test_CFLAGS=${CFLAGS+set}
3503 ac_save_CFLAGS=$CFLAGS
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3505 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3506 if test "${ac_cv_prog_cc_g+set}" = set; then :
3507 $as_echo_n "(cached) " >&6
3508 else
3509 ac_save_c_werror_flag=$ac_c_werror_flag
3510 ac_c_werror_flag=yes
3511 ac_cv_prog_cc_g=no
3512 CFLAGS="-g"
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3517 main ()
3521 return 0;
3523 _ACEOF
3524 if ac_fn_c_try_compile "$LINENO"; then :
3525 ac_cv_prog_cc_g=yes
3526 else
3527 CFLAGS=""
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3532 main ()
3536 return 0;
3538 _ACEOF
3539 if ac_fn_c_try_compile "$LINENO"; then :
3541 else
3542 ac_c_werror_flag=$ac_save_c_werror_flag
3543 CFLAGS="-g"
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3548 main ()
3552 return 0;
3554 _ACEOF
3555 if ac_fn_c_try_compile "$LINENO"; then :
3556 ac_cv_prog_cc_g=yes
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 ac_c_werror_flag=$ac_save_c_werror_flag
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3566 $as_echo "$ac_cv_prog_cc_g" >&6; }
3567 if test "$ac_test_CFLAGS" = set; then
3568 CFLAGS=$ac_save_CFLAGS
3569 elif test $ac_cv_prog_cc_g = yes; then
3570 if test "$GCC" = yes; then
3571 CFLAGS="-g -O2"
3572 else
3573 CFLAGS="-g"
3575 else
3576 if test "$GCC" = yes; then
3577 CFLAGS="-O2"
3578 else
3579 CFLAGS=
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3583 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3584 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3585 $as_echo_n "(cached) " >&6
3586 else
3587 ac_cv_prog_cc_c89=no
3588 ac_save_CC=$CC
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3591 #include <stdarg.h>
3592 #include <stdio.h>
3593 #include <sys/types.h>
3594 #include <sys/stat.h>
3595 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3596 struct buf { int x; };
3597 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3598 static char *e (p, i)
3599 char **p;
3600 int i;
3602 return p[i];
3604 static char *f (char * (*g) (char **, int), char **p, ...)
3606 char *s;
3607 va_list v;
3608 va_start (v,p);
3609 s = g (p, va_arg (v,int));
3610 va_end (v);
3611 return s;
3614 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3615 function prototypes and stuff, but not '\xHH' hex character constants.
3616 These don't provoke an error unfortunately, instead are silently treated
3617 as 'x'. The following induces an error, until -std is added to get
3618 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3619 array size at least. It's necessary to write '\x00'==0 to get something
3620 that's true only with -std. */
3621 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3623 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3624 inside strings and character constants. */
3625 #define FOO(x) 'x'
3626 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3628 int test (int i, double x);
3629 struct s1 {int (*f) (int a);};
3630 struct s2 {int (*f) (double a);};
3631 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3632 int argc;
3633 char **argv;
3635 main ()
3637 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3639 return 0;
3641 _ACEOF
3642 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3643 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3645 CC="$ac_save_CC $ac_arg"
3646 if ac_fn_c_try_compile "$LINENO"; then :
3647 ac_cv_prog_cc_c89=$ac_arg
3649 rm -f core conftest.err conftest.$ac_objext
3650 test "x$ac_cv_prog_cc_c89" != "xno" && break
3651 done
3652 rm -f conftest.$ac_ext
3653 CC=$ac_save_CC
3656 # AC_CACHE_VAL
3657 case "x$ac_cv_prog_cc_c89" in
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3660 $as_echo "none needed" >&6; } ;;
3661 xno)
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3663 $as_echo "unsupported" >&6; } ;;
3665 CC="$CC $ac_cv_prog_cc_c89"
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3667 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3668 esac
3669 if test "x$ac_cv_prog_cc_c89" != xno; then :
3673 ac_ext=c
3674 ac_cpp='$CPP $CPPFLAGS'
3675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680 ac_ext=c
3681 ac_cpp='$CPP $CPPFLAGS'
3682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3686 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3687 # On Suns, sometimes $CPP names a directory.
3688 if test -n "$CPP" && test -d "$CPP"; then
3689 CPP=
3691 if test -z "$CPP"; then
3692 if test "${ac_cv_prog_CPP+set}" = set; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 # Double quotes because CPP needs to be expanded
3696 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3698 ac_preproc_ok=false
3699 for ac_c_preproc_warn_flag in '' yes
3701 # Use a header file that comes with gcc, so configuring glibc
3702 # with a fresh cross-compiler works.
3703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3704 # <limits.h> exists even on freestanding compilers.
3705 # On the NeXT, cc -E runs the code through the compiler's parser,
3706 # not just through cpp. "Syntax error" is here to catch this case.
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3709 #ifdef __STDC__
3710 # include <limits.h>
3711 #else
3712 # include <assert.h>
3713 #endif
3714 Syntax error
3715 _ACEOF
3716 if ac_fn_c_try_cpp "$LINENO"; then :
3718 else
3719 # Broken: fails on valid input.
3720 continue
3722 rm -f conftest.err conftest.$ac_ext
3724 # OK, works on sane cases. Now check whether nonexistent headers
3725 # can be detected and how.
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728 #include <ac_nonexistent.h>
3729 _ACEOF
3730 if ac_fn_c_try_cpp "$LINENO"; then :
3731 # Broken: success on invalid input.
3732 continue
3733 else
3734 # Passes both tests.
3735 ac_preproc_ok=:
3736 break
3738 rm -f conftest.err conftest.$ac_ext
3740 done
3741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3742 rm -f conftest.err conftest.$ac_ext
3743 if $ac_preproc_ok; then :
3744 break
3747 done
3748 ac_cv_prog_CPP=$CPP
3751 CPP=$ac_cv_prog_CPP
3752 else
3753 ac_cv_prog_CPP=$CPP
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3756 $as_echo "$CPP" >&6; }
3757 ac_preproc_ok=false
3758 for ac_c_preproc_warn_flag in '' yes
3760 # Use a header file that comes with gcc, so configuring glibc
3761 # with a fresh cross-compiler works.
3762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3763 # <limits.h> exists even on freestanding compilers.
3764 # On the NeXT, cc -E runs the code through the compiler's parser,
3765 # not just through cpp. "Syntax error" is here to catch this case.
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3768 #ifdef __STDC__
3769 # include <limits.h>
3770 #else
3771 # include <assert.h>
3772 #endif
3773 Syntax error
3774 _ACEOF
3775 if ac_fn_c_try_cpp "$LINENO"; then :
3777 else
3778 # Broken: fails on valid input.
3779 continue
3781 rm -f conftest.err conftest.$ac_ext
3783 # OK, works on sane cases. Now check whether nonexistent headers
3784 # can be detected and how.
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3787 #include <ac_nonexistent.h>
3788 _ACEOF
3789 if ac_fn_c_try_cpp "$LINENO"; then :
3790 # Broken: success on invalid input.
3791 continue
3792 else
3793 # Passes both tests.
3794 ac_preproc_ok=:
3795 break
3797 rm -f conftest.err conftest.$ac_ext
3799 done
3800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3801 rm -f conftest.err conftest.$ac_ext
3802 if $ac_preproc_ok; then :
3804 else
3805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3807 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3808 See \`config.log' for more details." "$LINENO" 5; }
3811 ac_ext=c
3812 ac_cpp='$CPP $CPPFLAGS'
3813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3819 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3820 if test "${ac_cv_path_GREP+set}" = set; then :
3821 $as_echo_n "(cached) " >&6
3822 else
3823 if test -z "$GREP"; then
3824 ac_path_GREP_found=false
3825 # Loop through the user's path and test for each of PROGNAME-LIST
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3829 IFS=$as_save_IFS
3830 test -z "$as_dir" && as_dir=.
3831 for ac_prog in grep ggrep; do
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3834 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3835 # Check for GNU ac_path_GREP and select it if it is found.
3836 # Check for GNU $ac_path_GREP
3837 case `"$ac_path_GREP" --version 2>&1` in
3838 *GNU*)
3839 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3841 ac_count=0
3842 $as_echo_n 0123456789 >"conftest.in"
3843 while :
3845 cat "conftest.in" "conftest.in" >"conftest.tmp"
3846 mv "conftest.tmp" "conftest.in"
3847 cp "conftest.in" "conftest.nl"
3848 $as_echo 'GREP' >> "conftest.nl"
3849 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3850 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3851 as_fn_arith $ac_count + 1 && ac_count=$as_val
3852 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3853 # Best one so far, save it but keep looking for a better one
3854 ac_cv_path_GREP="$ac_path_GREP"
3855 ac_path_GREP_max=$ac_count
3857 # 10*(2^10) chars as input seems more than enough
3858 test $ac_count -gt 10 && break
3859 done
3860 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3861 esac
3863 $ac_path_GREP_found && break 3
3864 done
3865 done
3866 done
3867 IFS=$as_save_IFS
3868 if test -z "$ac_cv_path_GREP"; then
3869 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3871 else
3872 ac_cv_path_GREP=$GREP
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3877 $as_echo "$ac_cv_path_GREP" >&6; }
3878 GREP="$ac_cv_path_GREP"
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3882 $as_echo_n "checking for egrep... " >&6; }
3883 if test "${ac_cv_path_EGREP+set}" = set; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3887 then ac_cv_path_EGREP="$GREP -E"
3888 else
3889 if test -z "$EGREP"; then
3890 ac_path_EGREP_found=false
3891 # Loop through the user's path and test for each of PROGNAME-LIST
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_prog in egrep; do
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3900 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3901 # Check for GNU ac_path_EGREP and select it if it is found.
3902 # Check for GNU $ac_path_EGREP
3903 case `"$ac_path_EGREP" --version 2>&1` in
3904 *GNU*)
3905 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3907 ac_count=0
3908 $as_echo_n 0123456789 >"conftest.in"
3909 while :
3911 cat "conftest.in" "conftest.in" >"conftest.tmp"
3912 mv "conftest.tmp" "conftest.in"
3913 cp "conftest.in" "conftest.nl"
3914 $as_echo 'EGREP' >> "conftest.nl"
3915 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3917 as_fn_arith $ac_count + 1 && ac_count=$as_val
3918 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3919 # Best one so far, save it but keep looking for a better one
3920 ac_cv_path_EGREP="$ac_path_EGREP"
3921 ac_path_EGREP_max=$ac_count
3923 # 10*(2^10) chars as input seems more than enough
3924 test $ac_count -gt 10 && break
3925 done
3926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3927 esac
3929 $ac_path_EGREP_found && break 3
3930 done
3931 done
3932 done
3933 IFS=$as_save_IFS
3934 if test -z "$ac_cv_path_EGREP"; then
3935 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3937 else
3938 ac_cv_path_EGREP=$EGREP
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3944 $as_echo "$ac_cv_path_EGREP" >&6; }
3945 EGREP="$ac_cv_path_EGREP"
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3949 $as_echo_n "checking for ANSI C header files... " >&6; }
3950 if test "${ac_cv_header_stdc+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3955 #include <stdlib.h>
3956 #include <stdarg.h>
3957 #include <string.h>
3958 #include <float.h>
3961 main ()
3965 return 0;
3967 _ACEOF
3968 if ac_fn_c_try_compile "$LINENO"; then :
3969 ac_cv_header_stdc=yes
3970 else
3971 ac_cv_header_stdc=no
3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 if test $ac_cv_header_stdc = yes; then
3976 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3979 #include <string.h>
3981 _ACEOF
3982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3983 $EGREP "memchr" >/dev/null 2>&1; then :
3985 else
3986 ac_cv_header_stdc=no
3988 rm -f conftest*
3992 if test $ac_cv_header_stdc = yes; then
3993 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996 #include <stdlib.h>
3998 _ACEOF
3999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4000 $EGREP "free" >/dev/null 2>&1; then :
4002 else
4003 ac_cv_header_stdc=no
4005 rm -f conftest*
4009 if test $ac_cv_header_stdc = yes; then
4010 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4011 if test "$cross_compiling" = yes; then :
4013 else
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h. */
4016 #include <ctype.h>
4017 #include <stdlib.h>
4018 #if ((' ' & 0x0FF) == 0x020)
4019 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4020 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4021 #else
4022 # define ISLOWER(c) \
4023 (('a' <= (c) && (c) <= 'i') \
4024 || ('j' <= (c) && (c) <= 'r') \
4025 || ('s' <= (c) && (c) <= 'z'))
4026 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4027 #endif
4029 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4031 main ()
4033 int i;
4034 for (i = 0; i < 256; i++)
4035 if (XOR (islower (i), ISLOWER (i))
4036 || toupper (i) != TOUPPER (i))
4037 return 2;
4038 return 0;
4040 _ACEOF
4041 if ac_fn_c_try_run "$LINENO"; then :
4043 else
4044 ac_cv_header_stdc=no
4046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4047 conftest.$ac_objext conftest.beam conftest.$ac_ext
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4053 $as_echo "$ac_cv_header_stdc" >&6; }
4054 if test $ac_cv_header_stdc = yes; then
4056 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4060 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4061 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4062 inttypes.h stdint.h unistd.h
4063 do :
4064 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4065 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4067 eval as_val=\$$as_ac_Header
4068 if test "x$as_val" = x""yes; then :
4069 cat >>confdefs.h <<_ACEOF
4070 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4071 _ACEOF
4075 done
4079 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4080 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4081 MINIX=yes
4082 else
4083 MINIX=
4087 if test "$MINIX" = yes; then
4089 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4092 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4095 $as_echo "#define _MINIX 1" >>confdefs.h
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4101 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4102 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4103 $as_echo_n "(cached) " >&6
4104 else
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4108 # define __EXTENSIONS__ 1
4109 $ac_includes_default
4111 main ()
4115 return 0;
4117 _ACEOF
4118 if ac_fn_c_try_compile "$LINENO"; then :
4119 ac_cv_safe_to_define___extensions__=yes
4120 else
4121 ac_cv_safe_to_define___extensions__=no
4123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4126 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4127 test $ac_cv_safe_to_define___extensions__ = yes &&
4128 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4130 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4132 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4134 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4136 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4140 for ac_func in secure_getenv
4141 do :
4142 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
4143 if test "x$ac_cv_func_secure_getenv" = x""yes; then :
4144 cat >>confdefs.h <<_ACEOF
4145 #define HAVE_SECURE_GETENV 1
4146 _ACEOF
4149 done
4152 # Calculate toolexeclibdir
4153 # Also toolexecdir, though it's only used in toolexeclibdir
4154 case ${version_specific_libs} in
4155 yes)
4156 # Need the gcc compiler version to know where to install libraries
4157 # and header files if --enable-version-specific-runtime-libs option
4158 # is selected.
4159 toolexecdir='$(libdir)/gcc/$(target_alias)'
4160 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4163 if test -n "$with_cross_host" &&
4164 test x"$with_cross_host" != x"no"; then
4165 # Install a library built with a cross compiler in tooldir, not libdir.
4166 toolexecdir='$(exec_prefix)/$(target_alias)'
4167 toolexeclibdir='$(toolexecdir)/lib'
4168 else
4169 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4170 toolexeclibdir='$(libdir)'
4172 multi_os_directory=`$CC -print-multi-os-directory`
4173 case $multi_os_directory in
4174 .) ;; # Avoid trailing /.
4175 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4176 esac
4178 esac
4182 # Check for programs.
4185 ac_ext=c
4186 ac_cpp='$CPP $CPPFLAGS'
4187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190 if test -n "$ac_tool_prefix"; then
4191 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4192 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4194 $as_echo_n "checking for $ac_word... " >&6; }
4195 if test "${ac_cv_prog_CC+set}" = set; then :
4196 $as_echo_n "(cached) " >&6
4197 else
4198 if test -n "$CC"; then
4199 ac_cv_prog_CC="$CC" # Let the user override the test.
4200 else
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 break 2
4212 done
4213 done
4214 IFS=$as_save_IFS
4218 CC=$ac_cv_prog_CC
4219 if test -n "$CC"; then
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4221 $as_echo "$CC" >&6; }
4222 else
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 $as_echo "no" >&6; }
4229 if test -z "$ac_cv_prog_CC"; then
4230 ac_ct_CC=$CC
4231 # Extract the first word of "gcc", so it can be a program name with args.
4232 set dummy gcc; ac_word=$2
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234 $as_echo_n "checking for $ac_word... " >&6; }
4235 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 if test -n "$ac_ct_CC"; then
4239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248 ac_cv_prog_ac_ct_CC="gcc"
4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4252 done
4253 done
4254 IFS=$as_save_IFS
4258 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4259 if test -n "$ac_ct_CC"; then
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4261 $as_echo "$ac_ct_CC" >&6; }
4262 else
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264 $as_echo "no" >&6; }
4267 if test "x$ac_ct_CC" = x; then
4268 CC=""
4269 else
4270 case $cross_compiling:$ac_tool_warned in
4271 yes:)
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4274 ac_tool_warned=yes ;;
4275 esac
4276 CC=$ac_ct_CC
4278 else
4279 CC="$ac_cv_prog_CC"
4282 if test -z "$CC"; then
4283 if test -n "$ac_tool_prefix"; then
4284 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4285 set dummy ${ac_tool_prefix}cc; ac_word=$2
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287 $as_echo_n "checking for $ac_word... " >&6; }
4288 if test "${ac_cv_prog_CC+set}" = set; then :
4289 $as_echo_n "(cached) " >&6
4290 else
4291 if test -n "$CC"; then
4292 ac_cv_prog_CC="$CC" # Let the user override the test.
4293 else
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4297 IFS=$as_save_IFS
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301 ac_cv_prog_CC="${ac_tool_prefix}cc"
4302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 break 2
4305 done
4306 done
4307 IFS=$as_save_IFS
4311 CC=$ac_cv_prog_CC
4312 if test -n "$CC"; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4314 $as_echo "$CC" >&6; }
4315 else
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4323 if test -z "$CC"; then
4324 # Extract the first word of "cc", so it can be a program name with args.
4325 set dummy cc; ac_word=$2
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4327 $as_echo_n "checking for $ac_word... " >&6; }
4328 if test "${ac_cv_prog_CC+set}" = set; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 if test -n "$CC"; then
4332 ac_cv_prog_CC="$CC" # Let the user override the test.
4333 else
4334 ac_prog_rejected=no
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4342 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4343 ac_prog_rejected=yes
4344 continue
4346 ac_cv_prog_CC="cc"
4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 break 2
4350 done
4351 done
4352 IFS=$as_save_IFS
4354 if test $ac_prog_rejected = yes; then
4355 # We found a bogon in the path, so make sure we never use it.
4356 set dummy $ac_cv_prog_CC
4357 shift
4358 if test $# != 0; then
4359 # We chose a different compiler from the bogus one.
4360 # However, it has the same basename, so the bogon will be chosen
4361 # first if we set CC to just the basename; use the full file name.
4362 shift
4363 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4368 CC=$ac_cv_prog_CC
4369 if test -n "$CC"; then
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4371 $as_echo "$CC" >&6; }
4372 else
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374 $as_echo "no" >&6; }
4379 if test -z "$CC"; then
4380 if test -n "$ac_tool_prefix"; then
4381 for ac_prog in cl.exe
4383 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4384 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4386 $as_echo_n "checking for $ac_word... " >&6; }
4387 if test "${ac_cv_prog_CC+set}" = set; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 if test -n "$CC"; then
4391 ac_cv_prog_CC="$CC" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4400 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 break 2
4404 done
4405 done
4406 IFS=$as_save_IFS
4410 CC=$ac_cv_prog_CC
4411 if test -n "$CC"; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4413 $as_echo "$CC" >&6; }
4414 else
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4420 test -n "$CC" && break
4421 done
4423 if test -z "$CC"; then
4424 ac_ct_CC=$CC
4425 for ac_prog in cl.exe
4427 # Extract the first word of "$ac_prog", so it can be a program name with args.
4428 set dummy $ac_prog; ac_word=$2
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4430 $as_echo_n "checking for $ac_word... " >&6; }
4431 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4432 $as_echo_n "(cached) " >&6
4433 else
4434 if test -n "$ac_ct_CC"; then
4435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_prog_ac_ct_CC="$ac_prog"
4445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4448 done
4449 done
4450 IFS=$as_save_IFS
4454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4455 if test -n "$ac_ct_CC"; then
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4457 $as_echo "$ac_ct_CC" >&6; }
4458 else
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 $as_echo "no" >&6; }
4464 test -n "$ac_ct_CC" && break
4465 done
4467 if test "x$ac_ct_CC" = x; then
4468 CC=""
4469 else
4470 case $cross_compiling:$ac_tool_warned in
4471 yes:)
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4474 ac_tool_warned=yes ;;
4475 esac
4476 CC=$ac_ct_CC
4483 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4485 as_fn_error "no acceptable C compiler found in \$PATH
4486 See \`config.log' for more details." "$LINENO" 5; }
4488 # Provide some information about the compiler.
4489 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4490 set X $ac_compile
4491 ac_compiler=$2
4492 for ac_option in --version -v -V -qversion; do
4493 { { ac_try="$ac_compiler $ac_option >&5"
4494 case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4497 esac
4498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499 $as_echo "$ac_try_echo"; } >&5
4500 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4501 ac_status=$?
4502 if test -s conftest.err; then
4503 sed '10a\
4504 ... rest of stderr output deleted ...
4505 10q' conftest.err >conftest.er1
4506 cat conftest.er1 >&5
4507 rm -f conftest.er1 conftest.err
4509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4510 test $ac_status = 0; }
4511 done
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4514 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4515 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4522 main ()
4524 #ifndef __GNUC__
4525 choke me
4526 #endif
4529 return 0;
4531 _ACEOF
4532 if ac_fn_c_try_compile "$LINENO"; then :
4533 ac_compiler_gnu=yes
4534 else
4535 ac_compiler_gnu=no
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4542 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4543 if test $ac_compiler_gnu = yes; then
4544 GCC=yes
4545 else
4546 GCC=
4548 ac_test_CFLAGS=${CFLAGS+set}
4549 ac_save_CFLAGS=$CFLAGS
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4551 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4552 if test "${ac_cv_prog_cc_g+set}" = set; then :
4553 $as_echo_n "(cached) " >&6
4554 else
4555 ac_save_c_werror_flag=$ac_c_werror_flag
4556 ac_c_werror_flag=yes
4557 ac_cv_prog_cc_g=no
4558 CFLAGS="-g"
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4563 main ()
4567 return 0;
4569 _ACEOF
4570 if ac_fn_c_try_compile "$LINENO"; then :
4571 ac_cv_prog_cc_g=yes
4572 else
4573 CFLAGS=""
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4578 main ()
4582 return 0;
4584 _ACEOF
4585 if ac_fn_c_try_compile "$LINENO"; then :
4587 else
4588 ac_c_werror_flag=$ac_save_c_werror_flag
4589 CFLAGS="-g"
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4594 main ()
4598 return 0;
4600 _ACEOF
4601 if ac_fn_c_try_compile "$LINENO"; then :
4602 ac_cv_prog_cc_g=yes
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609 ac_c_werror_flag=$ac_save_c_werror_flag
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4612 $as_echo "$ac_cv_prog_cc_g" >&6; }
4613 if test "$ac_test_CFLAGS" = set; then
4614 CFLAGS=$ac_save_CFLAGS
4615 elif test $ac_cv_prog_cc_g = yes; then
4616 if test "$GCC" = yes; then
4617 CFLAGS="-g -O2"
4618 else
4619 CFLAGS="-g"
4621 else
4622 if test "$GCC" = yes; then
4623 CFLAGS="-O2"
4624 else
4625 CFLAGS=
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4629 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4630 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4631 $as_echo_n "(cached) " >&6
4632 else
4633 ac_cv_prog_cc_c89=no
4634 ac_save_CC=$CC
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4637 #include <stdarg.h>
4638 #include <stdio.h>
4639 #include <sys/types.h>
4640 #include <sys/stat.h>
4641 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4642 struct buf { int x; };
4643 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4644 static char *e (p, i)
4645 char **p;
4646 int i;
4648 return p[i];
4650 static char *f (char * (*g) (char **, int), char **p, ...)
4652 char *s;
4653 va_list v;
4654 va_start (v,p);
4655 s = g (p, va_arg (v,int));
4656 va_end (v);
4657 return s;
4660 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4661 function prototypes and stuff, but not '\xHH' hex character constants.
4662 These don't provoke an error unfortunately, instead are silently treated
4663 as 'x'. The following induces an error, until -std is added to get
4664 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4665 array size at least. It's necessary to write '\x00'==0 to get something
4666 that's true only with -std. */
4667 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4669 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4670 inside strings and character constants. */
4671 #define FOO(x) 'x'
4672 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4674 int test (int i, double x);
4675 struct s1 {int (*f) (int a);};
4676 struct s2 {int (*f) (double a);};
4677 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4678 int argc;
4679 char **argv;
4681 main ()
4683 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4685 return 0;
4687 _ACEOF
4688 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4689 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4691 CC="$ac_save_CC $ac_arg"
4692 if ac_fn_c_try_compile "$LINENO"; then :
4693 ac_cv_prog_cc_c89=$ac_arg
4695 rm -f core conftest.err conftest.$ac_objext
4696 test "x$ac_cv_prog_cc_c89" != "xno" && break
4697 done
4698 rm -f conftest.$ac_ext
4699 CC=$ac_save_CC
4702 # AC_CACHE_VAL
4703 case "x$ac_cv_prog_cc_c89" in
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4706 $as_echo "none needed" >&6; } ;;
4707 xno)
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4709 $as_echo "unsupported" >&6; } ;;
4711 CC="$CC $ac_cv_prog_cc_c89"
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4713 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4714 esac
4715 if test "x$ac_cv_prog_cc_c89" != xno; then :
4719 ac_ext=c
4720 ac_cpp='$CPP $CPPFLAGS'
4721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4727 if test "x$CC" != xcc; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4729 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4730 else
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4732 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4734 set dummy $CC; ac_cc=`$as_echo "$2" |
4735 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4736 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4743 main ()
4747 return 0;
4749 _ACEOF
4750 # Make sure it works both with $CC and with simple cc.
4751 # We do the test twice because some compilers refuse to overwrite an
4752 # existing .o file with -o, though they will create one.
4753 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4754 rm -f conftest2.*
4755 if { { case "(($ac_try" in
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4758 esac
4759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4760 $as_echo "$ac_try_echo"; } >&5
4761 (eval "$ac_try") 2>&5
4762 ac_status=$?
4763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4764 test $ac_status = 0; } &&
4765 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4767 *) ac_try_echo=$ac_try;;
4768 esac
4769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4770 $as_echo "$ac_try_echo"; } >&5
4771 (eval "$ac_try") 2>&5
4772 ac_status=$?
4773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4774 test $ac_status = 0; };
4775 then
4776 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4777 if test "x$CC" != xcc; then
4778 # Test first that cc exists at all.
4779 if { ac_try='cc -c conftest.$ac_ext >&5'
4780 { { case "(($ac_try" in
4781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782 *) ac_try_echo=$ac_try;;
4783 esac
4784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4785 $as_echo "$ac_try_echo"; } >&5
4786 (eval "$ac_try") 2>&5
4787 ac_status=$?
4788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4789 test $ac_status = 0; }; }; then
4790 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4791 rm -f conftest2.*
4792 if { { case "(($ac_try" in
4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4795 esac
4796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4797 $as_echo "$ac_try_echo"; } >&5
4798 (eval "$ac_try") 2>&5
4799 ac_status=$?
4800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4801 test $ac_status = 0; } &&
4802 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4804 *) ac_try_echo=$ac_try;;
4805 esac
4806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4807 $as_echo "$ac_try_echo"; } >&5
4808 (eval "$ac_try") 2>&5
4809 ac_status=$?
4810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4811 test $ac_status = 0; };
4812 then
4813 # cc works too.
4815 else
4816 # cc exists but doesn't like -o.
4817 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4821 else
4822 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4824 rm -f core conftest*
4827 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4829 $as_echo "yes" >&6; }
4830 else
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832 $as_echo "no" >&6; }
4834 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4838 # FIXME: we rely on the cache variable name because
4839 # there is no other way.
4840 set dummy $CC
4841 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4842 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4843 if test "$am_t" != yes; then
4844 # Losing compiler, so override with the script.
4845 # FIXME: It is wrong to rewrite CC.
4846 # But if we don't then we get into trouble of one sort or another.
4847 # A longer-term fix would be to have automake use am__CC in this case,
4848 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4849 CC="$am_aux_dir/compile $CC"
4856 # Newer automakes demand CCAS and CCASFLAGS.
4857 : ${CCAS='$(CC)'}
4858 : ${CCASFLAGS='$(CFLAGS)'}
4862 if test -n "$ac_tool_prefix"; then
4863 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4864 set dummy ${ac_tool_prefix}as; ac_word=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if test "${ac_cv_prog_AS+set}" = set; then :
4868 $as_echo_n "(cached) " >&6
4869 else
4870 if test -n "$AS"; then
4871 ac_cv_prog_AS="$AS" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 ac_cv_prog_AS="${ac_tool_prefix}as"
4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 break 2
4884 done
4885 done
4886 IFS=$as_save_IFS
4890 AS=$ac_cv_prog_AS
4891 if test -n "$AS"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4893 $as_echo "$AS" >&6; }
4894 else
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4901 if test -z "$ac_cv_prog_AS"; then
4902 ac_ct_AS=$AS
4903 # Extract the first word of "as", so it can be a program name with args.
4904 set dummy as; ac_word=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 if test -n "$ac_ct_AS"; then
4911 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_prog_ac_ct_AS="as"
4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 break 2
4924 done
4925 done
4926 IFS=$as_save_IFS
4930 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4931 if test -n "$ac_ct_AS"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4933 $as_echo "$ac_ct_AS" >&6; }
4934 else
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4939 if test "x$ac_ct_AS" = x; then
4940 AS=""
4941 else
4942 case $cross_compiling:$ac_tool_warned in
4943 yes:)
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4946 ac_tool_warned=yes ;;
4947 esac
4948 AS=$ac_ct_AS
4950 else
4951 AS="$ac_cv_prog_AS"
4954 if test -n "$ac_tool_prefix"; then
4955 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4956 set dummy ${ac_tool_prefix}ar; ac_word=$2
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958 $as_echo_n "checking for $ac_word... " >&6; }
4959 if test "${ac_cv_prog_AR+set}" = set; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4962 if test -n "$AR"; then
4963 ac_cv_prog_AR="$AR" # Let the user override the test.
4964 else
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH
4968 IFS=$as_save_IFS
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4972 ac_cv_prog_AR="${ac_tool_prefix}ar"
4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 break 2
4976 done
4977 done
4978 IFS=$as_save_IFS
4982 AR=$ac_cv_prog_AR
4983 if test -n "$AR"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4985 $as_echo "$AR" >&6; }
4986 else
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 $as_echo "no" >&6; }
4993 if test -z "$ac_cv_prog_AR"; then
4994 ac_ct_AR=$AR
4995 # Extract the first word of "ar", so it can be a program name with args.
4996 set dummy ar; ac_word=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 if test -n "$ac_ct_AR"; then
5003 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5004 else
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5012 ac_cv_prog_ac_ct_AR="ar"
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 break 2
5016 done
5017 done
5018 IFS=$as_save_IFS
5022 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5023 if test -n "$ac_ct_AR"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5025 $as_echo "$ac_ct_AR" >&6; }
5026 else
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5031 if test "x$ac_ct_AR" = x; then
5032 AR=""
5033 else
5034 case $cross_compiling:$ac_tool_warned in
5035 yes:)
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5038 ac_tool_warned=yes ;;
5039 esac
5040 AR=$ac_ct_AR
5042 else
5043 AR="$ac_cv_prog_AR"
5046 if test -n "$ac_tool_prefix"; then
5047 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5048 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050 $as_echo_n "checking for $ac_word... " >&6; }
5051 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 if test -n "$RANLIB"; then
5055 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5068 done
5069 done
5070 IFS=$as_save_IFS
5074 RANLIB=$ac_cv_prog_RANLIB
5075 if test -n "$RANLIB"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5077 $as_echo "$RANLIB" >&6; }
5078 else
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5085 if test -z "$ac_cv_prog_RANLIB"; then
5086 ac_ct_RANLIB=$RANLIB
5087 # Extract the first word of "ranlib", so it can be a program name with args.
5088 set dummy ranlib; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 if test -n "$ac_ct_RANLIB"; then
5095 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104 ac_cv_prog_ac_ct_RANLIB="ranlib"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5108 done
5109 done
5110 IFS=$as_save_IFS
5114 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5115 if test -n "$ac_ct_RANLIB"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5117 $as_echo "$ac_ct_RANLIB" >&6; }
5118 else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5123 if test "x$ac_ct_RANLIB" = x; then
5124 RANLIB=":"
5125 else
5126 case $cross_compiling:$ac_tool_warned in
5127 yes:)
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5130 ac_tool_warned=yes ;;
5131 esac
5132 RANLIB=$ac_ct_RANLIB
5134 else
5135 RANLIB="$ac_cv_prog_RANLIB"
5139 # Check we may build wrappers library
5140 echo "test: bndmov %bnd0, %bnd1" > conftest.s
5141 if { ac_try='$AS -o conftest.o conftest.s 1>&5'
5142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5143 (eval $ac_try) 2>&5
5144 ac_status=$?
5145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5146 test $ac_status = 0; }; }
5147 then
5148 mpx_as=yes
5149 else
5150 mpx_as=no
5151 echo "configure: no MPX support fo as" >&5
5153 rm -f conftest.o conftest.s
5154 if test "x$mpx_as" = "xyes"; then
5155 MPX_AS_SUPPORTED_TRUE=
5156 MPX_AS_SUPPORTED_FALSE='#'
5157 else
5158 MPX_AS_SUPPORTED_TRUE='#'
5159 MPX_AS_SUPPORTED_FALSE=
5163 # Configure libtool
5164 enable_dlopen=yes
5168 case `pwd` in
5169 *\ * | *\ *)
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5171 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5172 esac
5176 macro_version='2.2.7a'
5177 macro_revision='1.3134'
5191 ltmain="$ac_aux_dir/ltmain.sh"
5193 # Backslashify metacharacters that are still active within
5194 # double-quoted strings.
5195 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5197 # Same as above, but do not quote variable references.
5198 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5200 # Sed substitution to delay expansion of an escaped shell variable in a
5201 # double_quote_subst'ed string.
5202 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5204 # Sed substitution to delay expansion of an escaped single quote.
5205 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5207 # Sed substitution to avoid accidental globbing in evaled expressions
5208 no_glob_subst='s/\*/\\\*/g'
5210 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5211 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5212 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5215 $as_echo_n "checking how to print strings... " >&6; }
5216 # Test print first, because it will be a builtin if present.
5217 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5218 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5219 ECHO='print -r --'
5220 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5221 ECHO='printf %s\n'
5222 else
5223 # Use this function as a fallback that always works.
5224 func_fallback_echo ()
5226 eval 'cat <<_LTECHO_EOF
5228 _LTECHO_EOF'
5230 ECHO='func_fallback_echo'
5233 # func_echo_all arg...
5234 # Invoke $ECHO with all args, space-separated.
5235 func_echo_all ()
5237 $ECHO ""
5240 case "$ECHO" in
5241 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5242 $as_echo "printf" >&6; } ;;
5243 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5244 $as_echo "print -r" >&6; } ;;
5245 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5246 $as_echo "cat" >&6; } ;;
5247 esac
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5263 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5264 if test "${ac_cv_path_SED+set}" = set; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5268 for ac_i in 1 2 3 4 5 6 7; do
5269 ac_script="$ac_script$as_nl$ac_script"
5270 done
5271 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5272 { ac_script=; unset ac_script;}
5273 if test -z "$SED"; then
5274 ac_path_SED_found=false
5275 # Loop through the user's path and test for each of PROGNAME-LIST
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_prog in sed gsed; do
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5284 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5285 # Check for GNU ac_path_SED and select it if it is found.
5286 # Check for GNU $ac_path_SED
5287 case `"$ac_path_SED" --version 2>&1` in
5288 *GNU*)
5289 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5291 ac_count=0
5292 $as_echo_n 0123456789 >"conftest.in"
5293 while :
5295 cat "conftest.in" "conftest.in" >"conftest.tmp"
5296 mv "conftest.tmp" "conftest.in"
5297 cp "conftest.in" "conftest.nl"
5298 $as_echo '' >> "conftest.nl"
5299 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5300 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5301 as_fn_arith $ac_count + 1 && ac_count=$as_val
5302 if test $ac_count -gt ${ac_path_SED_max-0}; then
5303 # Best one so far, save it but keep looking for a better one
5304 ac_cv_path_SED="$ac_path_SED"
5305 ac_path_SED_max=$ac_count
5307 # 10*(2^10) chars as input seems more than enough
5308 test $ac_count -gt 10 && break
5309 done
5310 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5311 esac
5313 $ac_path_SED_found && break 3
5314 done
5315 done
5316 done
5317 IFS=$as_save_IFS
5318 if test -z "$ac_cv_path_SED"; then
5319 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5321 else
5322 ac_cv_path_SED=$SED
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5327 $as_echo "$ac_cv_path_SED" >&6; }
5328 SED="$ac_cv_path_SED"
5329 rm -f conftest.sed
5331 test -z "$SED" && SED=sed
5332 Xsed="$SED -e 1s/^X//"
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5345 $as_echo_n "checking for fgrep... " >&6; }
5346 if test "${ac_cv_path_FGREP+set}" = set; then :
5347 $as_echo_n "(cached) " >&6
5348 else
5349 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5350 then ac_cv_path_FGREP="$GREP -F"
5351 else
5352 if test -z "$FGREP"; then
5353 ac_path_FGREP_found=false
5354 # Loop through the user's path and test for each of PROGNAME-LIST
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_prog in fgrep; do
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5363 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5364 # Check for GNU ac_path_FGREP and select it if it is found.
5365 # Check for GNU $ac_path_FGREP
5366 case `"$ac_path_FGREP" --version 2>&1` in
5367 *GNU*)
5368 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5370 ac_count=0
5371 $as_echo_n 0123456789 >"conftest.in"
5372 while :
5374 cat "conftest.in" "conftest.in" >"conftest.tmp"
5375 mv "conftest.tmp" "conftest.in"
5376 cp "conftest.in" "conftest.nl"
5377 $as_echo 'FGREP' >> "conftest.nl"
5378 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5380 as_fn_arith $ac_count + 1 && ac_count=$as_val
5381 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5382 # Best one so far, save it but keep looking for a better one
5383 ac_cv_path_FGREP="$ac_path_FGREP"
5384 ac_path_FGREP_max=$ac_count
5386 # 10*(2^10) chars as input seems more than enough
5387 test $ac_count -gt 10 && break
5388 done
5389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5390 esac
5392 $ac_path_FGREP_found && break 3
5393 done
5394 done
5395 done
5396 IFS=$as_save_IFS
5397 if test -z "$ac_cv_path_FGREP"; then
5398 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5400 else
5401 ac_cv_path_FGREP=$FGREP
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5407 $as_echo "$ac_cv_path_FGREP" >&6; }
5408 FGREP="$ac_cv_path_FGREP"
5411 test -z "$GREP" && GREP=grep
5431 # Check whether --with-gnu-ld was given.
5432 if test "${with_gnu_ld+set}" = set; then :
5433 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5434 else
5435 with_gnu_ld=no
5438 ac_prog=ld
5439 if test "$GCC" = yes; then
5440 # Check if gcc -print-prog-name=ld gives a path.
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5442 $as_echo_n "checking for ld used by $CC... " >&6; }
5443 case $host in
5444 *-*-mingw*)
5445 # gcc leaves a trailing carriage return which upsets mingw
5446 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5448 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5449 esac
5450 case $ac_prog in
5451 # Accept absolute paths.
5452 [\\/]* | ?:[\\/]*)
5453 re_direlt='/[^/][^/]*/\.\./'
5454 # Canonicalize the pathname of ld
5455 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5456 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5457 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5458 done
5459 test -z "$LD" && LD="$ac_prog"
5462 # If it fails, then pretend we aren't using GCC.
5463 ac_prog=ld
5466 # If it is relative, then search for the first ld in PATH.
5467 with_gnu_ld=unknown
5469 esac
5470 elif test "$with_gnu_ld" = yes; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5472 $as_echo_n "checking for GNU ld... " >&6; }
5473 else
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5475 $as_echo_n "checking for non-GNU ld... " >&6; }
5477 if test "${lt_cv_path_LD+set}" = set; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 if test -z "$LD"; then
5481 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5482 for ac_dir in $PATH; do
5483 IFS="$lt_save_ifs"
5484 test -z "$ac_dir" && ac_dir=.
5485 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5486 lt_cv_path_LD="$ac_dir/$ac_prog"
5487 # Check to see if the program is GNU ld. I'd rather use --version,
5488 # but apparently some variants of GNU ld only accept -v.
5489 # Break only if it was the GNU/non-GNU ld that we prefer.
5490 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5491 *GNU* | *'with BFD'*)
5492 test "$with_gnu_ld" != no && break
5495 test "$with_gnu_ld" != yes && break
5497 esac
5499 done
5500 IFS="$lt_save_ifs"
5501 else
5502 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5506 LD="$lt_cv_path_LD"
5507 if test -n "$LD"; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5509 $as_echo "$LD" >&6; }
5510 else
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5514 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5516 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5517 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5521 case `$LD -v 2>&1 </dev/null` in
5522 *GNU* | *'with BFD'*)
5523 lt_cv_prog_gnu_ld=yes
5526 lt_cv_prog_gnu_ld=no
5528 esac
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5531 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5532 with_gnu_ld=$lt_cv_prog_gnu_ld
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5543 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5544 if test "${lt_cv_path_NM+set}" = set; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 if test -n "$NM"; then
5548 # Let the user override the test.
5549 lt_cv_path_NM="$NM"
5550 else
5551 lt_nm_to_check="${ac_tool_prefix}nm"
5552 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5553 lt_nm_to_check="$lt_nm_to_check nm"
5555 for lt_tmp_nm in $lt_nm_to_check; do
5556 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5557 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5558 IFS="$lt_save_ifs"
5559 test -z "$ac_dir" && ac_dir=.
5560 tmp_nm="$ac_dir/$lt_tmp_nm"
5561 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5562 # Check to see if the nm accepts a BSD-compat flag.
5563 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5564 # nm: unknown option "B" ignored
5565 # Tru64's nm complains that /dev/null is an invalid object file
5566 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5567 */dev/null* | *'Invalid file or object type'*)
5568 lt_cv_path_NM="$tmp_nm -B"
5569 break
5572 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5573 */dev/null*)
5574 lt_cv_path_NM="$tmp_nm -p"
5575 break
5578 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5579 continue # so that we can try to find one that supports BSD flags
5581 esac
5583 esac
5585 done
5586 IFS="$lt_save_ifs"
5587 done
5588 : ${lt_cv_path_NM=no}
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5592 $as_echo "$lt_cv_path_NM" >&6; }
5593 if test "$lt_cv_path_NM" != "no"; then
5594 NM="$lt_cv_path_NM"
5595 else
5596 # Didn't find any BSD compatible name lister, look for dumpbin.
5597 if test -n "$DUMPBIN"; then :
5598 # Let the user override the test.
5599 else
5600 if test -n "$ac_tool_prefix"; then
5601 for ac_prog in dumpbin "link -dump"
5603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 if test -n "$DUMPBIN"; then
5611 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5612 else
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5620 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 break 2
5624 done
5625 done
5626 IFS=$as_save_IFS
5630 DUMPBIN=$ac_cv_prog_DUMPBIN
5631 if test -n "$DUMPBIN"; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5633 $as_echo "$DUMPBIN" >&6; }
5634 else
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 $as_echo "no" >&6; }
5640 test -n "$DUMPBIN" && break
5641 done
5643 if test -z "$DUMPBIN"; then
5644 ac_ct_DUMPBIN=$DUMPBIN
5645 for ac_prog in dumpbin "link -dump"
5647 # Extract the first word of "$ac_prog", so it can be a program name with args.
5648 set dummy $ac_prog; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 if test -n "$ac_ct_DUMPBIN"; then
5655 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5664 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5668 done
5669 done
5670 IFS=$as_save_IFS
5674 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5675 if test -n "$ac_ct_DUMPBIN"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5677 $as_echo "$ac_ct_DUMPBIN" >&6; }
5678 else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5684 test -n "$ac_ct_DUMPBIN" && break
5685 done
5687 if test "x$ac_ct_DUMPBIN" = x; then
5688 DUMPBIN=":"
5689 else
5690 case $cross_compiling:$ac_tool_warned in
5691 yes:)
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5694 ac_tool_warned=yes ;;
5695 esac
5696 DUMPBIN=$ac_ct_DUMPBIN
5700 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5701 *COFF*)
5702 DUMPBIN="$DUMPBIN -symbols"
5705 DUMPBIN=:
5707 esac
5710 if test "$DUMPBIN" != ":"; then
5711 NM="$DUMPBIN"
5714 test -z "$NM" && NM=nm
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5722 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5723 if test "${lt_cv_nm_interface+set}" = set; then :
5724 $as_echo_n "(cached) " >&6
5725 else
5726 lt_cv_nm_interface="BSD nm"
5727 echo "int some_variable = 0;" > conftest.$ac_ext
5728 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5729 (eval "$ac_compile" 2>conftest.err)
5730 cat conftest.err >&5
5731 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5732 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5733 cat conftest.err >&5
5734 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5735 cat conftest.out >&5
5736 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5737 lt_cv_nm_interface="MS dumpbin"
5739 rm -f conftest*
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5742 $as_echo "$lt_cv_nm_interface" >&6; }
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5745 $as_echo_n "checking whether ln -s works... " >&6; }
5746 LN_S=$as_ln_s
5747 if test "$LN_S" = "ln -s"; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5749 $as_echo "yes" >&6; }
5750 else
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5752 $as_echo "no, using $LN_S" >&6; }
5755 # find the maximum length of command line arguments
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5757 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5758 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5762 teststring="ABCD"
5764 case $build_os in
5765 msdosdjgpp*)
5766 # On DJGPP, this test can blow up pretty badly due to problems in libc
5767 # (any single argument exceeding 2000 bytes causes a buffer overrun
5768 # during glob expansion). Even if it were fixed, the result of this
5769 # check would be larger than it should be.
5770 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5773 gnu*)
5774 # Under GNU Hurd, this test is not required because there is
5775 # no limit to the length of command line arguments.
5776 # Libtool will interpret -1 as no limit whatsoever
5777 lt_cv_sys_max_cmd_len=-1;
5780 cygwin* | mingw* | cegcc*)
5781 # On Win9x/ME, this test blows up -- it succeeds, but takes
5782 # about 5 minutes as the teststring grows exponentially.
5783 # Worse, since 9x/ME are not pre-emptively multitasking,
5784 # you end up with a "frozen" computer, even though with patience
5785 # the test eventually succeeds (with a max line length of 256k).
5786 # Instead, let's just punt: use the minimum linelength reported by
5787 # all of the supported platforms: 8192 (on NT/2K/XP).
5788 lt_cv_sys_max_cmd_len=8192;
5791 mint*)
5792 # On MiNT this can take a long time and run out of memory.
5793 lt_cv_sys_max_cmd_len=8192;
5796 amigaos*)
5797 # On AmigaOS with pdksh, this test takes hours, literally.
5798 # So we just punt and use a minimum line length of 8192.
5799 lt_cv_sys_max_cmd_len=8192;
5802 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5803 # This has been around since 386BSD, at least. Likely further.
5804 if test -x /sbin/sysctl; then
5805 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5806 elif test -x /usr/sbin/sysctl; then
5807 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5808 else
5809 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5811 # And add a safety zone
5812 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5816 interix*)
5817 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5818 lt_cv_sys_max_cmd_len=196608
5821 osf*)
5822 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5823 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5824 # nice to cause kernel panics so lets avoid the loop below.
5825 # First set a reasonable default.
5826 lt_cv_sys_max_cmd_len=16384
5828 if test -x /sbin/sysconfig; then
5829 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5830 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5831 esac
5834 sco3.2v5*)
5835 lt_cv_sys_max_cmd_len=102400
5837 sysv5* | sco5v6* | sysv4.2uw2*)
5838 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5839 if test -n "$kargmax"; then
5840 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5841 else
5842 lt_cv_sys_max_cmd_len=32768
5846 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5847 if test -n "$lt_cv_sys_max_cmd_len"; then
5848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5849 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5850 else
5851 # Make teststring a little bigger before we do anything with it.
5852 # a 1K string should be a reasonable start.
5853 for i in 1 2 3 4 5 6 7 8 ; do
5854 teststring=$teststring$teststring
5855 done
5856 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5857 # If test is not a shell built-in, we'll probably end up computing a
5858 # maximum length that is only half of the actual maximum length, but
5859 # we can't tell.
5860 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5861 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5862 test $i != 17 # 1/2 MB should be enough
5864 i=`expr $i + 1`
5865 teststring=$teststring$teststring
5866 done
5867 # Only check the string length outside the loop.
5868 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5869 teststring=
5870 # Add a significant safety factor because C++ compilers can tack on
5871 # massive amounts of additional arguments before passing them to the
5872 # linker. It appears as though 1/2 is a usable value.
5873 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5876 esac
5880 if test -n $lt_cv_sys_max_cmd_len ; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5882 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5883 else
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5885 $as_echo "none" >&6; }
5887 max_cmd_len=$lt_cv_sys_max_cmd_len
5894 : ${CP="cp -f"}
5895 : ${MV="mv -f"}
5896 : ${RM="rm -f"}
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5899 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5900 # Try some XSI features
5901 xsi_shell=no
5902 ( _lt_dummy="a/b/c"
5903 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5904 = c,a/b,, \
5905 && eval 'test $(( 1 + 1 )) -eq 2 \
5906 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5907 && xsi_shell=yes
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5909 $as_echo "$xsi_shell" >&6; }
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5913 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5914 lt_shell_append=no
5915 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5916 >/dev/null 2>&1 \
5917 && lt_shell_append=yes
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5919 $as_echo "$lt_shell_append" >&6; }
5922 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5923 lt_unset=unset
5924 else
5925 lt_unset=false
5932 # test EBCDIC or ASCII
5933 case `echo X|tr X '\101'` in
5934 A) # ASCII based system
5935 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5936 lt_SP2NL='tr \040 \012'
5937 lt_NL2SP='tr \015\012 \040\040'
5939 *) # EBCDIC based system
5940 lt_SP2NL='tr \100 \n'
5941 lt_NL2SP='tr \r\n \100\100'
5943 esac
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5954 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5955 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 lt_cv_ld_reload_flag='-r'
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5961 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5962 reload_flag=$lt_cv_ld_reload_flag
5963 case $reload_flag in
5964 "" | " "*) ;;
5965 *) reload_flag=" $reload_flag" ;;
5966 esac
5967 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5968 case $host_os in
5969 darwin*)
5970 if test "$GCC" = yes; then
5971 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5972 else
5973 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5976 esac
5986 if test -n "$ac_tool_prefix"; then
5987 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5988 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990 $as_echo_n "checking for $ac_word... " >&6; }
5991 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 if test -n "$OBJDUMP"; then
5995 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5996 else
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 for as_dir in $PATH
6000 IFS=$as_save_IFS
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6004 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 break 2
6008 done
6009 done
6010 IFS=$as_save_IFS
6014 OBJDUMP=$ac_cv_prog_OBJDUMP
6015 if test -n "$OBJDUMP"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6017 $as_echo "$OBJDUMP" >&6; }
6018 else
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6025 if test -z "$ac_cv_prog_OBJDUMP"; then
6026 ac_ct_OBJDUMP=$OBJDUMP
6027 # Extract the first word of "objdump", so it can be a program name with args.
6028 set dummy objdump; ac_word=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 $as_echo_n "checking for $ac_word... " >&6; }
6031 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6032 $as_echo_n "(cached) " >&6
6033 else
6034 if test -n "$ac_ct_OBJDUMP"; then
6035 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6036 else
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 for as_dir in $PATH
6040 IFS=$as_save_IFS
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6044 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6046 break 2
6048 done
6049 done
6050 IFS=$as_save_IFS
6054 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6055 if test -n "$ac_ct_OBJDUMP"; then
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6057 $as_echo "$ac_ct_OBJDUMP" >&6; }
6058 else
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060 $as_echo "no" >&6; }
6063 if test "x$ac_ct_OBJDUMP" = x; then
6064 OBJDUMP="false"
6065 else
6066 case $cross_compiling:$ac_tool_warned in
6067 yes:)
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6070 ac_tool_warned=yes ;;
6071 esac
6072 OBJDUMP=$ac_ct_OBJDUMP
6074 else
6075 OBJDUMP="$ac_cv_prog_OBJDUMP"
6078 test -z "$OBJDUMP" && OBJDUMP=objdump
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6089 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6090 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 lt_cv_file_magic_cmd='$MAGIC_CMD'
6094 lt_cv_file_magic_test_file=
6095 lt_cv_deplibs_check_method='unknown'
6096 # Need to set the preceding variable on all platforms that support
6097 # interlibrary dependencies.
6098 # 'none' -- dependencies not supported.
6099 # `unknown' -- same as none, but documents that we really don't know.
6100 # 'pass_all' -- all dependencies passed with no checks.
6101 # 'test_compile' -- check by making test program.
6102 # 'file_magic [[regex]]' -- check by looking for files in library path
6103 # which responds to the $file_magic_cmd with a given extended regex.
6104 # If you have `file' or equivalent on your system and you're not sure
6105 # whether `pass_all' will *always* work, you probably want this one.
6107 case $host_os in
6108 aix[4-9]*)
6109 lt_cv_deplibs_check_method=pass_all
6112 beos*)
6113 lt_cv_deplibs_check_method=pass_all
6116 bsdi[45]*)
6117 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6118 lt_cv_file_magic_cmd='/usr/bin/file -L'
6119 lt_cv_file_magic_test_file=/shlib/libc.so
6122 cygwin*)
6123 # func_win32_libid is a shell function defined in ltmain.sh
6124 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6125 lt_cv_file_magic_cmd='func_win32_libid'
6128 mingw* | pw32*)
6129 # Base MSYS/MinGW do not provide the 'file' command needed by
6130 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6131 # unless we find 'file', for example because we are cross-compiling.
6132 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6133 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6134 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6135 lt_cv_file_magic_cmd='func_win32_libid'
6136 else
6137 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6138 lt_cv_file_magic_cmd='$OBJDUMP -f'
6142 cegcc*)
6143 # use the weaker test based on 'objdump'. See mingw*.
6144 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6145 lt_cv_file_magic_cmd='$OBJDUMP -f'
6148 darwin* | rhapsody*)
6149 lt_cv_deplibs_check_method=pass_all
6152 freebsd* | dragonfly*)
6153 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6154 case $host_cpu in
6155 i*86 )
6156 # Not sure whether the presence of OpenBSD here was a mistake.
6157 # Let's accept both of them until this is cleared up.
6158 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6159 lt_cv_file_magic_cmd=/usr/bin/file
6160 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6162 esac
6163 else
6164 lt_cv_deplibs_check_method=pass_all
6168 gnu*)
6169 lt_cv_deplibs_check_method=pass_all
6172 haiku*)
6173 lt_cv_deplibs_check_method=pass_all
6176 hpux10.20* | hpux11*)
6177 lt_cv_file_magic_cmd=/usr/bin/file
6178 case $host_cpu in
6179 ia64*)
6180 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6181 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6183 hppa*64*)
6184 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]'
6185 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6188 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6189 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6191 esac
6194 interix[3-9]*)
6195 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6199 irix5* | irix6* | nonstopux*)
6200 case $LD in
6201 *-32|*"-32 ") libmagic=32-bit;;
6202 *-n32|*"-n32 ") libmagic=N32;;
6203 *-64|*"-64 ") libmagic=64-bit;;
6204 *) libmagic=never-match;;
6205 esac
6206 lt_cv_deplibs_check_method=pass_all
6209 # This must be Linux ELF.
6210 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6211 lt_cv_deplibs_check_method=pass_all
6214 netbsd*)
6215 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6217 else
6218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6222 newos6*)
6223 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6224 lt_cv_file_magic_cmd=/usr/bin/file
6225 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6228 *nto* | *qnx*)
6229 lt_cv_deplibs_check_method=pass_all
6232 openbsd*)
6233 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6235 else
6236 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6240 osf3* | osf4* | osf5*)
6241 lt_cv_deplibs_check_method=pass_all
6244 rdos*)
6245 lt_cv_deplibs_check_method=pass_all
6248 solaris*)
6249 lt_cv_deplibs_check_method=pass_all
6252 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6253 lt_cv_deplibs_check_method=pass_all
6256 sysv4 | sysv4.3*)
6257 case $host_vendor in
6258 motorola)
6259 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]'
6260 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6262 ncr)
6263 lt_cv_deplibs_check_method=pass_all
6265 sequent)
6266 lt_cv_file_magic_cmd='/bin/file'
6267 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6269 sni)
6270 lt_cv_file_magic_cmd='/bin/file'
6271 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6272 lt_cv_file_magic_test_file=/lib/libc.so
6274 siemens)
6275 lt_cv_deplibs_check_method=pass_all
6278 lt_cv_deplibs_check_method=pass_all
6280 esac
6283 tpf*)
6284 lt_cv_deplibs_check_method=pass_all
6286 esac
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6290 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6291 file_magic_cmd=$lt_cv_file_magic_cmd
6292 deplibs_check_method=$lt_cv_deplibs_check_method
6293 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6306 if test -n "$ac_tool_prefix"; then
6307 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6308 set dummy ${ac_tool_prefix}ar; ac_word=$2
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310 $as_echo_n "checking for $ac_word... " >&6; }
6311 if test "${ac_cv_prog_AR+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 if test -n "$AR"; then
6315 ac_cv_prog_AR="$AR" # Let the user override the test.
6316 else
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_prog_AR="${ac_tool_prefix}ar"
6325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 break 2
6328 done
6329 done
6330 IFS=$as_save_IFS
6334 AR=$ac_cv_prog_AR
6335 if test -n "$AR"; then
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6337 $as_echo "$AR" >&6; }
6338 else
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340 $as_echo "no" >&6; }
6345 if test -z "$ac_cv_prog_AR"; then
6346 ac_ct_AR=$AR
6347 # Extract the first word of "ar", so it can be a program name with args.
6348 set dummy ar; ac_word=$2
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 if test -n "$ac_ct_AR"; then
6355 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6356 else
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364 ac_cv_prog_ac_ct_AR="ar"
6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 break 2
6368 done
6369 done
6370 IFS=$as_save_IFS
6374 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6375 if test -n "$ac_ct_AR"; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6377 $as_echo "$ac_ct_AR" >&6; }
6378 else
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380 $as_echo "no" >&6; }
6383 if test "x$ac_ct_AR" = x; then
6384 AR="false"
6385 else
6386 case $cross_compiling:$ac_tool_warned in
6387 yes:)
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6390 ac_tool_warned=yes ;;
6391 esac
6392 AR=$ac_ct_AR
6394 else
6395 AR="$ac_cv_prog_AR"
6398 test -z "$AR" && AR=ar
6399 test -z "$AR_FLAGS" && AR_FLAGS=cru
6411 if test -n "$ac_tool_prefix"; then
6412 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6413 set dummy ${ac_tool_prefix}strip; ac_word=$2
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415 $as_echo_n "checking for $ac_word... " >&6; }
6416 if test "${ac_cv_prog_STRIP+set}" = set; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 if test -n "$STRIP"; then
6420 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6421 else
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6425 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 break 2
6433 done
6434 done
6435 IFS=$as_save_IFS
6439 STRIP=$ac_cv_prog_STRIP
6440 if test -n "$STRIP"; then
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6442 $as_echo "$STRIP" >&6; }
6443 else
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445 $as_echo "no" >&6; }
6450 if test -z "$ac_cv_prog_STRIP"; then
6451 ac_ct_STRIP=$STRIP
6452 # Extract the first word of "strip", so it can be a program name with args.
6453 set dummy strip; ac_word=$2
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 if test -n "$ac_ct_STRIP"; then
6460 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6461 else
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6469 ac_cv_prog_ac_ct_STRIP="strip"
6470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 break 2
6473 done
6474 done
6475 IFS=$as_save_IFS
6479 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6480 if test -n "$ac_ct_STRIP"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6482 $as_echo "$ac_ct_STRIP" >&6; }
6483 else
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6488 if test "x$ac_ct_STRIP" = x; then
6489 STRIP=":"
6490 else
6491 case $cross_compiling:$ac_tool_warned in
6492 yes:)
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6495 ac_tool_warned=yes ;;
6496 esac
6497 STRIP=$ac_ct_STRIP
6499 else
6500 STRIP="$ac_cv_prog_STRIP"
6503 test -z "$STRIP" && STRIP=:
6510 if test -n "$ac_tool_prefix"; then
6511 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6512 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 if test -n "$RANLIB"; then
6519 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6524 IFS=$as_save_IFS
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 break 2
6532 done
6533 done
6534 IFS=$as_save_IFS
6538 RANLIB=$ac_cv_prog_RANLIB
6539 if test -n "$RANLIB"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6541 $as_echo "$RANLIB" >&6; }
6542 else
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6549 if test -z "$ac_cv_prog_RANLIB"; then
6550 ac_ct_RANLIB=$RANLIB
6551 # Extract the first word of "ranlib", so it can be a program name with args.
6552 set dummy ranlib; ac_word=$2
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554 $as_echo_n "checking for $ac_word... " >&6; }
6555 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6556 $as_echo_n "(cached) " >&6
6557 else
6558 if test -n "$ac_ct_RANLIB"; then
6559 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568 ac_cv_prog_ac_ct_RANLIB="ranlib"
6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 break 2
6572 done
6573 done
6574 IFS=$as_save_IFS
6578 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6579 if test -n "$ac_ct_RANLIB"; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6581 $as_echo "$ac_ct_RANLIB" >&6; }
6582 else
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584 $as_echo "no" >&6; }
6587 if test "x$ac_ct_RANLIB" = x; then
6588 RANLIB=":"
6589 else
6590 case $cross_compiling:$ac_tool_warned in
6591 yes:)
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6594 ac_tool_warned=yes ;;
6595 esac
6596 RANLIB=$ac_ct_RANLIB
6598 else
6599 RANLIB="$ac_cv_prog_RANLIB"
6602 test -z "$RANLIB" && RANLIB=:
6609 # Determine commands to create old-style static archives.
6610 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6611 old_postinstall_cmds='chmod 644 $oldlib'
6612 old_postuninstall_cmds=
6614 if test -n "$RANLIB"; then
6615 case $host_os in
6616 openbsd*)
6617 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6620 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6622 esac
6623 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6626 case $host_os in
6627 darwin*)
6628 lock_old_archive_extraction=yes ;;
6630 lock_old_archive_extraction=no ;;
6631 esac
6671 # If no C compiler was specified, use CC.
6672 LTCC=${LTCC-"$CC"}
6674 # If no C compiler flags were specified, use CFLAGS.
6675 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6677 # Allow CC to be a program name with arguments.
6678 compiler=$CC
6681 # Check for command to grab the raw symbol name followed by C symbol from nm.
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6683 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6684 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6685 $as_echo_n "(cached) " >&6
6686 else
6688 # These are sane defaults that work on at least a few old systems.
6689 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6691 # Character class describing NM global symbol codes.
6692 symcode='[BCDEGRST]'
6694 # Regexp to match symbols that can be accessed directly from C.
6695 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6697 # Define system-specific variables.
6698 case $host_os in
6699 aix*)
6700 symcode='[BCDT]'
6702 cygwin* | mingw* | pw32* | cegcc*)
6703 symcode='[ABCDGISTW]'
6705 hpux*)
6706 if test "$host_cpu" = ia64; then
6707 symcode='[ABCDEGRST]'
6710 irix* | nonstopux*)
6711 symcode='[BCDEGRST]'
6713 osf*)
6714 symcode='[BCDEGQRST]'
6716 solaris*)
6717 symcode='[BDRT]'
6719 sco3.2v5*)
6720 symcode='[DT]'
6722 sysv4.2uw2*)
6723 symcode='[DT]'
6725 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6726 symcode='[ABDT]'
6728 sysv4)
6729 symcode='[DFNSTU]'
6731 esac
6733 # If we're using GNU nm, then use its standard symbol codes.
6734 case `$NM -V 2>&1` in
6735 *GNU* | *'with BFD'*)
6736 symcode='[ABCDGIRSTW]' ;;
6737 esac
6739 # Transform an extracted symbol line into a proper C declaration.
6740 # Some systems (esp. on ia64) link data and code symbols differently,
6741 # so use this general approach.
6742 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6744 # Transform an extracted symbol line into symbol name and symbol address
6745 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6746 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'"
6748 # Handle CRLF in mingw tool chain
6749 opt_cr=
6750 case $build_os in
6751 mingw*)
6752 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6754 esac
6756 # Try without a prefix underscore, then with it.
6757 for ac_symprfx in "" "_"; do
6759 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6760 symxfrm="\\1 $ac_symprfx\\2 \\2"
6762 # Write the raw and C identifiers.
6763 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6764 # Fake it for dumpbin and say T for any non-static function
6765 # and D for any global variable.
6766 # Also find C++ and __fastcall symbols from MSVC++,
6767 # which start with @ or ?.
6768 lt_cv_sys_global_symbol_pipe="$AWK '"\
6769 " {last_section=section; section=\$ 3};"\
6770 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6771 " \$ 0!~/External *\|/{next};"\
6772 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6773 " {if(hide[section]) next};"\
6774 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6775 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6776 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6777 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6778 " ' prfx=^$ac_symprfx"
6779 else
6780 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6783 # Check to see that the pipe works correctly.
6784 pipe_works=no
6786 rm -f conftest*
6787 cat > conftest.$ac_ext <<_LT_EOF
6788 #ifdef __cplusplus
6789 extern "C" {
6790 #endif
6791 char nm_test_var;
6792 void nm_test_func(void);
6793 void nm_test_func(void){}
6794 #ifdef __cplusplus
6796 #endif
6797 int main(){nm_test_var='a';nm_test_func();return(0);}
6798 _LT_EOF
6800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6801 (eval $ac_compile) 2>&5
6802 ac_status=$?
6803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6804 test $ac_status = 0; }; then
6805 # Now try to grab the symbols.
6806 nlist=conftest.nm
6807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6808 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6809 ac_status=$?
6810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6811 test $ac_status = 0; } && test -s "$nlist"; then
6812 # Try sorting and uniquifying the output.
6813 if sort "$nlist" | uniq > "$nlist"T; then
6814 mv -f "$nlist"T "$nlist"
6815 else
6816 rm -f "$nlist"T
6819 # Make sure that we snagged all the symbols we need.
6820 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6821 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6822 cat <<_LT_EOF > conftest.$ac_ext
6823 #ifdef __cplusplus
6824 extern "C" {
6825 #endif
6827 _LT_EOF
6828 # Now generate the symbol file.
6829 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6831 cat <<_LT_EOF >> conftest.$ac_ext
6833 /* The mapping between symbol names and symbols. */
6834 const struct {
6835 const char *name;
6836 void *address;
6838 lt__PROGRAM__LTX_preloaded_symbols[] =
6840 { "@PROGRAM@", (void *) 0 },
6841 _LT_EOF
6842 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6843 cat <<\_LT_EOF >> conftest.$ac_ext
6844 {0, (void *) 0}
6847 /* This works around a problem in FreeBSD linker */
6848 #ifdef FREEBSD_WORKAROUND
6849 static const void *lt_preloaded_setup() {
6850 return lt__PROGRAM__LTX_preloaded_symbols;
6852 #endif
6854 #ifdef __cplusplus
6856 #endif
6857 _LT_EOF
6858 # Now try linking the two files.
6859 mv conftest.$ac_objext conftstm.$ac_objext
6860 lt_save_LIBS="$LIBS"
6861 lt_save_CFLAGS="$CFLAGS"
6862 LIBS="conftstm.$ac_objext"
6863 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6865 (eval $ac_link) 2>&5
6866 ac_status=$?
6867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6868 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6869 pipe_works=yes
6871 LIBS="$lt_save_LIBS"
6872 CFLAGS="$lt_save_CFLAGS"
6873 else
6874 echo "cannot find nm_test_func in $nlist" >&5
6876 else
6877 echo "cannot find nm_test_var in $nlist" >&5
6879 else
6880 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6882 else
6883 echo "$progname: failed program was:" >&5
6884 cat conftest.$ac_ext >&5
6886 rm -rf conftest* conftst*
6888 # Do not use the global_symbol_pipe unless it works.
6889 if test "$pipe_works" = yes; then
6890 break
6891 else
6892 lt_cv_sys_global_symbol_pipe=
6894 done
6898 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6899 lt_cv_sys_global_symbol_to_cdecl=
6901 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6903 $as_echo "failed" >&6; }
6904 else
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6906 $as_echo "ok" >&6; }
6930 # Check whether --enable-libtool-lock was given.
6931 if test "${enable_libtool_lock+set}" = set; then :
6932 enableval=$enable_libtool_lock;
6935 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6937 # Some flags need to be propagated to the compiler or linker for good
6938 # libtool support.
6939 case $host in
6940 ia64-*-hpux*)
6941 # Find out which ABI we are using.
6942 echo 'int i;' > conftest.$ac_ext
6943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6944 (eval $ac_compile) 2>&5
6945 ac_status=$?
6946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6947 test $ac_status = 0; }; then
6948 case `/usr/bin/file conftest.$ac_objext` in
6949 *ELF-32*)
6950 HPUX_IA64_MODE="32"
6952 *ELF-64*)
6953 HPUX_IA64_MODE="64"
6955 esac
6957 rm -rf conftest*
6959 *-*-irix6*)
6960 # Find out which ABI we are using.
6961 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6963 (eval $ac_compile) 2>&5
6964 ac_status=$?
6965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6966 test $ac_status = 0; }; then
6967 if test "$lt_cv_prog_gnu_ld" = yes; then
6968 case `/usr/bin/file conftest.$ac_objext` in
6969 *32-bit*)
6970 LD="${LD-ld} -melf32bsmip"
6972 *N32*)
6973 LD="${LD-ld} -melf32bmipn32"
6975 *64-bit*)
6976 LD="${LD-ld} -melf64bmip"
6978 esac
6979 else
6980 case `/usr/bin/file conftest.$ac_objext` in
6981 *32-bit*)
6982 LD="${LD-ld} -32"
6984 *N32*)
6985 LD="${LD-ld} -n32"
6987 *64-bit*)
6988 LD="${LD-ld} -64"
6990 esac
6993 rm -rf conftest*
6996 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6997 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6998 # Find out which ABI we are using.
6999 echo 'int i;' > conftest.$ac_ext
7000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7001 (eval $ac_compile) 2>&5
7002 ac_status=$?
7003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7004 test $ac_status = 0; }; then
7005 case `/usr/bin/file conftest.o` in
7006 *32-bit*)
7007 case $host in
7008 x86_64-*kfreebsd*-gnu)
7009 LD="${LD-ld} -m elf_i386_fbsd"
7011 x86_64-*linux*)
7012 case `/usr/bin/file conftest.o` in
7013 *x86-64*)
7014 LD="${LD-ld} -m elf32_x86_64"
7017 LD="${LD-ld} -m elf_i386"
7019 esac
7021 powerpc64le-*linux*)
7022 LD="${LD-ld} -m elf32lppclinux"
7024 powerpc64-*linux*)
7025 LD="${LD-ld} -m elf32ppclinux"
7027 s390x-*linux*)
7028 LD="${LD-ld} -m elf_s390"
7030 sparc64-*linux*)
7031 LD="${LD-ld} -m elf32_sparc"
7033 esac
7035 *64-bit*)
7036 case $host in
7037 x86_64-*kfreebsd*-gnu)
7038 LD="${LD-ld} -m elf_x86_64_fbsd"
7040 x86_64-*linux*)
7041 LD="${LD-ld} -m elf_x86_64"
7043 powerpcle-*linux*)
7044 LD="${LD-ld} -m elf64lppc"
7046 powerpc-*linux*)
7047 LD="${LD-ld} -m elf64ppc"
7049 s390*-*linux*|s390*-*tpf*)
7050 LD="${LD-ld} -m elf64_s390"
7052 sparc*-*linux*)
7053 LD="${LD-ld} -m elf64_sparc"
7055 esac
7057 esac
7059 rm -rf conftest*
7062 *-*-sco3.2v5*)
7063 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7064 SAVE_CFLAGS="$CFLAGS"
7065 CFLAGS="$CFLAGS -belf"
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7067 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7068 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 ac_ext=c
7072 ac_cpp='$CPP $CPPFLAGS'
7073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h. */
7081 main ()
7085 return 0;
7087 _ACEOF
7088 if ac_fn_c_try_link "$LINENO"; then :
7089 lt_cv_cc_needs_belf=yes
7090 else
7091 lt_cv_cc_needs_belf=no
7093 rm -f core conftest.err conftest.$ac_objext \
7094 conftest$ac_exeext conftest.$ac_ext
7095 ac_ext=c
7096 ac_cpp='$CPP $CPPFLAGS'
7097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7103 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7104 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7105 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7106 CFLAGS="$SAVE_CFLAGS"
7109 sparc*-*solaris*)
7110 # Find out which ABI we are using.
7111 echo 'int i;' > conftest.$ac_ext
7112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7113 (eval $ac_compile) 2>&5
7114 ac_status=$?
7115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7116 test $ac_status = 0; }; then
7117 case `/usr/bin/file conftest.o` in
7118 *64-bit*)
7119 case $lt_cv_prog_gnu_ld in
7120 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7122 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7123 LD="${LD-ld} -64"
7126 esac
7128 esac
7130 rm -rf conftest*
7132 esac
7134 need_locks="$enable_libtool_lock"
7137 case $host_os in
7138 rhapsody* | darwin*)
7139 if test -n "$ac_tool_prefix"; then
7140 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7141 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7143 $as_echo_n "checking for $ac_word... " >&6; }
7144 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7145 $as_echo_n "(cached) " >&6
7146 else
7147 if test -n "$DSYMUTIL"; then
7148 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7149 else
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7157 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 break 2
7161 done
7162 done
7163 IFS=$as_save_IFS
7167 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7168 if test -n "$DSYMUTIL"; then
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7170 $as_echo "$DSYMUTIL" >&6; }
7171 else
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173 $as_echo "no" >&6; }
7178 if test -z "$ac_cv_prog_DSYMUTIL"; then
7179 ac_ct_DSYMUTIL=$DSYMUTIL
7180 # Extract the first word of "dsymutil", so it can be a program name with args.
7181 set dummy dsymutil; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7185 $as_echo_n "(cached) " >&6
7186 else
7187 if test -n "$ac_ct_DSYMUTIL"; then
7188 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7189 else
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7193 IFS=$as_save_IFS
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7197 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 break 2
7201 done
7202 done
7203 IFS=$as_save_IFS
7207 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7208 if test -n "$ac_ct_DSYMUTIL"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7210 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7211 else
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7216 if test "x$ac_ct_DSYMUTIL" = x; then
7217 DSYMUTIL=":"
7218 else
7219 case $cross_compiling:$ac_tool_warned in
7220 yes:)
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7223 ac_tool_warned=yes ;;
7224 esac
7225 DSYMUTIL=$ac_ct_DSYMUTIL
7227 else
7228 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7231 if test -n "$ac_tool_prefix"; then
7232 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7233 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235 $as_echo_n "checking for $ac_word... " >&6; }
7236 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7237 $as_echo_n "(cached) " >&6
7238 else
7239 if test -n "$NMEDIT"; then
7240 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7241 else
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 for as_dir in $PATH
7245 IFS=$as_save_IFS
7246 test -z "$as_dir" && as_dir=.
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7249 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 break 2
7253 done
7254 done
7255 IFS=$as_save_IFS
7259 NMEDIT=$ac_cv_prog_NMEDIT
7260 if test -n "$NMEDIT"; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7262 $as_echo "$NMEDIT" >&6; }
7263 else
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265 $as_echo "no" >&6; }
7270 if test -z "$ac_cv_prog_NMEDIT"; then
7271 ac_ct_NMEDIT=$NMEDIT
7272 # Extract the first word of "nmedit", so it can be a program name with args.
7273 set dummy nmedit; ac_word=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279 if test -n "$ac_ct_NMEDIT"; then
7280 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7281 else
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7285 IFS=$as_save_IFS
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7289 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 break 2
7293 done
7294 done
7295 IFS=$as_save_IFS
7299 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7300 if test -n "$ac_ct_NMEDIT"; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7302 $as_echo "$ac_ct_NMEDIT" >&6; }
7303 else
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7308 if test "x$ac_ct_NMEDIT" = x; then
7309 NMEDIT=":"
7310 else
7311 case $cross_compiling:$ac_tool_warned in
7312 yes:)
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7315 ac_tool_warned=yes ;;
7316 esac
7317 NMEDIT=$ac_ct_NMEDIT
7319 else
7320 NMEDIT="$ac_cv_prog_NMEDIT"
7323 if test -n "$ac_tool_prefix"; then
7324 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7325 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if test "${ac_cv_prog_LIPO+set}" = set; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 if test -n "$LIPO"; then
7332 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7337 IFS=$as_save_IFS
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 break 2
7345 done
7346 done
7347 IFS=$as_save_IFS
7351 LIPO=$ac_cv_prog_LIPO
7352 if test -n "$LIPO"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7354 $as_echo "$LIPO" >&6; }
7355 else
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7362 if test -z "$ac_cv_prog_LIPO"; then
7363 ac_ct_LIPO=$LIPO
7364 # Extract the first word of "lipo", so it can be a program name with args.
7365 set dummy lipo; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 if test -n "$ac_ct_LIPO"; then
7372 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7377 IFS=$as_save_IFS
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381 ac_cv_prog_ac_ct_LIPO="lipo"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 break 2
7385 done
7386 done
7387 IFS=$as_save_IFS
7391 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7392 if test -n "$ac_ct_LIPO"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7394 $as_echo "$ac_ct_LIPO" >&6; }
7395 else
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7400 if test "x$ac_ct_LIPO" = x; then
7401 LIPO=":"
7402 else
7403 case $cross_compiling:$ac_tool_warned in
7404 yes:)
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407 ac_tool_warned=yes ;;
7408 esac
7409 LIPO=$ac_ct_LIPO
7411 else
7412 LIPO="$ac_cv_prog_LIPO"
7415 if test -n "$ac_tool_prefix"; then
7416 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7417 set dummy ${ac_tool_prefix}otool; ac_word=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7421 $as_echo_n "(cached) " >&6
7422 else
7423 if test -n "$OTOOL"; then
7424 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7425 else
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7429 IFS=$as_save_IFS
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7433 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 break 2
7437 done
7438 done
7439 IFS=$as_save_IFS
7443 OTOOL=$ac_cv_prog_OTOOL
7444 if test -n "$OTOOL"; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7446 $as_echo "$OTOOL" >&6; }
7447 else
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7454 if test -z "$ac_cv_prog_OTOOL"; then
7455 ac_ct_OTOOL=$OTOOL
7456 # Extract the first word of "otool", so it can be a program name with args.
7457 set dummy otool; ac_word=$2
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459 $as_echo_n "checking for $ac_word... " >&6; }
7460 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7461 $as_echo_n "(cached) " >&6
7462 else
7463 if test -n "$ac_ct_OTOOL"; then
7464 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7465 else
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7469 IFS=$as_save_IFS
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7473 ac_cv_prog_ac_ct_OTOOL="otool"
7474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 break 2
7477 done
7478 done
7479 IFS=$as_save_IFS
7483 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7484 if test -n "$ac_ct_OTOOL"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7486 $as_echo "$ac_ct_OTOOL" >&6; }
7487 else
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7492 if test "x$ac_ct_OTOOL" = x; then
7493 OTOOL=":"
7494 else
7495 case $cross_compiling:$ac_tool_warned in
7496 yes:)
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7499 ac_tool_warned=yes ;;
7500 esac
7501 OTOOL=$ac_ct_OTOOL
7503 else
7504 OTOOL="$ac_cv_prog_OTOOL"
7507 if test -n "$ac_tool_prefix"; then
7508 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7509 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511 $as_echo_n "checking for $ac_word... " >&6; }
7512 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7513 $as_echo_n "(cached) " >&6
7514 else
7515 if test -n "$OTOOL64"; then
7516 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7517 else
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7521 IFS=$as_save_IFS
7522 test -z "$as_dir" && as_dir=.
7523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7525 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 break 2
7529 done
7530 done
7531 IFS=$as_save_IFS
7535 OTOOL64=$ac_cv_prog_OTOOL64
7536 if test -n "$OTOOL64"; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7538 $as_echo "$OTOOL64" >&6; }
7539 else
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 $as_echo "no" >&6; }
7546 if test -z "$ac_cv_prog_OTOOL64"; then
7547 ac_ct_OTOOL64=$OTOOL64
7548 # Extract the first word of "otool64", so it can be a program name with args.
7549 set dummy otool64; ac_word=$2
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551 $as_echo_n "checking for $ac_word... " >&6; }
7552 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7553 $as_echo_n "(cached) " >&6
7554 else
7555 if test -n "$ac_ct_OTOOL64"; then
7556 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7557 else
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 for as_dir in $PATH
7561 IFS=$as_save_IFS
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7565 ac_cv_prog_ac_ct_OTOOL64="otool64"
7566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7567 break 2
7569 done
7570 done
7571 IFS=$as_save_IFS
7575 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7576 if test -n "$ac_ct_OTOOL64"; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7578 $as_echo "$ac_ct_OTOOL64" >&6; }
7579 else
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7584 if test "x$ac_ct_OTOOL64" = x; then
7585 OTOOL64=":"
7586 else
7587 case $cross_compiling:$ac_tool_warned in
7588 yes:)
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7591 ac_tool_warned=yes ;;
7592 esac
7593 OTOOL64=$ac_ct_OTOOL64
7595 else
7596 OTOOL64="$ac_cv_prog_OTOOL64"
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7626 $as_echo_n "checking for -single_module linker flag... " >&6; }
7627 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7628 $as_echo_n "(cached) " >&6
7629 else
7630 lt_cv_apple_cc_single_mod=no
7631 if test -z "${LT_MULTI_MODULE}"; then
7632 # By default we will add the -single_module flag. You can override
7633 # by either setting the environment variable LT_MULTI_MODULE
7634 # non-empty at configure time, or by adding -multi_module to the
7635 # link flags.
7636 rm -rf libconftest.dylib*
7637 echo "int foo(void){return 1;}" > conftest.c
7638 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7639 -dynamiclib -Wl,-single_module conftest.c" >&5
7640 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7641 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7642 _lt_result=$?
7643 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7644 lt_cv_apple_cc_single_mod=yes
7645 else
7646 cat conftest.err >&5
7648 rm -rf libconftest.dylib*
7649 rm -f conftest.*
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7653 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7655 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7656 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7657 $as_echo_n "(cached) " >&6
7658 else
7659 lt_cv_ld_exported_symbols_list=no
7660 save_LDFLAGS=$LDFLAGS
7661 echo "_main" > conftest.sym
7662 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7667 main ()
7671 return 0;
7673 _ACEOF
7674 if ac_fn_c_try_link "$LINENO"; then :
7675 lt_cv_ld_exported_symbols_list=yes
7676 else
7677 lt_cv_ld_exported_symbols_list=no
7679 rm -f core conftest.err conftest.$ac_objext \
7680 conftest$ac_exeext conftest.$ac_ext
7681 LDFLAGS="$save_LDFLAGS"
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7685 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7687 $as_echo_n "checking for -force_load linker flag... " >&6; }
7688 if test "${lt_cv_ld_force_load+set}" = set; then :
7689 $as_echo_n "(cached) " >&6
7690 else
7691 lt_cv_ld_force_load=no
7692 cat > conftest.c << _LT_EOF
7693 int forced_loaded() { return 2;}
7694 _LT_EOF
7695 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7696 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7697 echo "$AR cru libconftest.a conftest.o" >&5
7698 $AR cru libconftest.a conftest.o 2>&5
7699 cat > conftest.c << _LT_EOF
7700 int main() { return 0;}
7701 _LT_EOF
7702 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7703 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7704 _lt_result=$?
7705 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7706 lt_cv_ld_force_load=yes
7707 else
7708 cat conftest.err >&5
7710 rm -f conftest.err libconftest.a conftest conftest.c
7711 rm -rf conftest.dSYM
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7715 $as_echo "$lt_cv_ld_force_load" >&6; }
7716 case $host_os in
7717 rhapsody* | darwin1.[012])
7718 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7719 darwin1.*)
7720 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7721 darwin*) # darwin 5.x on
7722 # if running on 10.5 or later, the deployment target defaults
7723 # to the OS version, if on x86, and 10.4, the deployment
7724 # target defaults to 10.4. Don't you love it?
7725 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7726 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7727 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7728 10.[012][,.]*)
7729 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7730 10.*)
7731 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7732 esac
7734 esac
7735 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7736 _lt_dar_single_mod='$single_module'
7738 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7739 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7740 else
7741 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7743 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7744 _lt_dsymutil='~$DSYMUTIL $lib || :'
7745 else
7746 _lt_dsymutil=
7749 esac
7751 for ac_header in dlfcn.h
7752 do :
7753 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7755 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7756 cat >>confdefs.h <<_ACEOF
7757 #define HAVE_DLFCN_H 1
7758 _ACEOF
7762 done
7768 # Set options
7773 enable_win32_dll=no
7776 # Check whether --enable-shared was given.
7777 if test "${enable_shared+set}" = set; then :
7778 enableval=$enable_shared; p=${PACKAGE-default}
7779 case $enableval in
7780 yes) enable_shared=yes ;;
7781 no) enable_shared=no ;;
7783 enable_shared=no
7784 # Look at the argument we got. We use all the common list separators.
7785 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7786 for pkg in $enableval; do
7787 IFS="$lt_save_ifs"
7788 if test "X$pkg" = "X$p"; then
7789 enable_shared=yes
7791 done
7792 IFS="$lt_save_ifs"
7794 esac
7795 else
7796 enable_shared=yes
7807 # Check whether --enable-static was given.
7808 if test "${enable_static+set}" = set; then :
7809 enableval=$enable_static; p=${PACKAGE-default}
7810 case $enableval in
7811 yes) enable_static=yes ;;
7812 no) enable_static=no ;;
7814 enable_static=no
7815 # Look at the argument we got. We use all the common list separators.
7816 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7817 for pkg in $enableval; do
7818 IFS="$lt_save_ifs"
7819 if test "X$pkg" = "X$p"; then
7820 enable_static=yes
7822 done
7823 IFS="$lt_save_ifs"
7825 esac
7826 else
7827 enable_static=yes
7839 # Check whether --with-pic was given.
7840 if test "${with_pic+set}" = set; then :
7841 withval=$with_pic; pic_mode="$withval"
7842 else
7843 pic_mode=default
7847 test -z "$pic_mode" && pic_mode=default
7855 # Check whether --enable-fast-install was given.
7856 if test "${enable_fast_install+set}" = set; then :
7857 enableval=$enable_fast_install; p=${PACKAGE-default}
7858 case $enableval in
7859 yes) enable_fast_install=yes ;;
7860 no) enable_fast_install=no ;;
7862 enable_fast_install=no
7863 # Look at the argument we got. We use all the common list separators.
7864 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7865 for pkg in $enableval; do
7866 IFS="$lt_save_ifs"
7867 if test "X$pkg" = "X$p"; then
7868 enable_fast_install=yes
7870 done
7871 IFS="$lt_save_ifs"
7873 esac
7874 else
7875 enable_fast_install=yes
7888 # This can be used to rebuild libtool when needed
7889 LIBTOOL_DEPS="$ltmain"
7891 # Always use our own libtool.
7892 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7919 test -z "$LN_S" && LN_S="ln -s"
7934 if test -n "${ZSH_VERSION+set}" ; then
7935 setopt NO_GLOB_SUBST
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7939 $as_echo_n "checking for objdir... " >&6; }
7940 if test "${lt_cv_objdir+set}" = set; then :
7941 $as_echo_n "(cached) " >&6
7942 else
7943 rm -f .libs 2>/dev/null
7944 mkdir .libs 2>/dev/null
7945 if test -d .libs; then
7946 lt_cv_objdir=.libs
7947 else
7948 # MS-DOS does not allow filenames that begin with a dot.
7949 lt_cv_objdir=_libs
7951 rmdir .libs 2>/dev/null
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7954 $as_echo "$lt_cv_objdir" >&6; }
7955 objdir=$lt_cv_objdir
7961 cat >>confdefs.h <<_ACEOF
7962 #define LT_OBJDIR "$lt_cv_objdir/"
7963 _ACEOF
7968 case $host_os in
7969 aix3*)
7970 # AIX sometimes has problems with the GCC collect2 program. For some
7971 # reason, if we set the COLLECT_NAMES environment variable, the problems
7972 # vanish in a puff of smoke.
7973 if test "X${COLLECT_NAMES+set}" != Xset; then
7974 COLLECT_NAMES=
7975 export COLLECT_NAMES
7978 esac
7980 # Global variables:
7981 ofile=libtool
7982 can_build_shared=yes
7984 # All known linkers require a `.a' archive for static linking (except MSVC,
7985 # which needs '.lib').
7986 libext=a
7988 with_gnu_ld="$lt_cv_prog_gnu_ld"
7990 old_CC="$CC"
7991 old_CFLAGS="$CFLAGS"
7993 # Set sane defaults for various variables
7994 test -z "$CC" && CC=cc
7995 test -z "$LTCC" && LTCC=$CC
7996 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7997 test -z "$LD" && LD=ld
7998 test -z "$ac_objext" && ac_objext=o
8000 for cc_temp in $compiler""; do
8001 case $cc_temp in
8002 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8003 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8004 \-*) ;;
8005 *) break;;
8006 esac
8007 done
8008 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8011 # Only perform the check for file, if the check method requires it
8012 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8013 case $deplibs_check_method in
8014 file_magic*)
8015 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8017 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8018 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8019 $as_echo_n "(cached) " >&6
8020 else
8021 case $MAGIC_CMD in
8022 [\\/*] | ?:[\\/]*)
8023 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8026 lt_save_MAGIC_CMD="$MAGIC_CMD"
8027 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8028 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8029 for ac_dir in $ac_dummy; do
8030 IFS="$lt_save_ifs"
8031 test -z "$ac_dir" && ac_dir=.
8032 if test -f $ac_dir/${ac_tool_prefix}file; then
8033 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8034 if test -n "$file_magic_test_file"; then
8035 case $deplibs_check_method in
8036 "file_magic "*)
8037 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8038 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8039 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8040 $EGREP "$file_magic_regex" > /dev/null; then
8042 else
8043 cat <<_LT_EOF 1>&2
8045 *** Warning: the command libtool uses to detect shared libraries,
8046 *** $file_magic_cmd, produces output that libtool cannot recognize.
8047 *** The result is that libtool may fail to recognize shared libraries
8048 *** as such. This will affect the creation of libtool libraries that
8049 *** depend on shared libraries, but programs linked with such libtool
8050 *** libraries will work regardless of this problem. Nevertheless, you
8051 *** may want to report the problem to your system manager and/or to
8052 *** bug-libtool@gnu.org
8054 _LT_EOF
8055 fi ;;
8056 esac
8058 break
8060 done
8061 IFS="$lt_save_ifs"
8062 MAGIC_CMD="$lt_save_MAGIC_CMD"
8064 esac
8067 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8068 if test -n "$MAGIC_CMD"; then
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8070 $as_echo "$MAGIC_CMD" >&6; }
8071 else
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 $as_echo "no" >&6; }
8080 if test -z "$lt_cv_path_MAGIC_CMD"; then
8081 if test -n "$ac_tool_prefix"; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8083 $as_echo_n "checking for file... " >&6; }
8084 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8085 $as_echo_n "(cached) " >&6
8086 else
8087 case $MAGIC_CMD in
8088 [\\/*] | ?:[\\/]*)
8089 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8092 lt_save_MAGIC_CMD="$MAGIC_CMD"
8093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8094 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8095 for ac_dir in $ac_dummy; do
8096 IFS="$lt_save_ifs"
8097 test -z "$ac_dir" && ac_dir=.
8098 if test -f $ac_dir/file; then
8099 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8100 if test -n "$file_magic_test_file"; then
8101 case $deplibs_check_method in
8102 "file_magic "*)
8103 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8105 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8106 $EGREP "$file_magic_regex" > /dev/null; then
8108 else
8109 cat <<_LT_EOF 1>&2
8111 *** Warning: the command libtool uses to detect shared libraries,
8112 *** $file_magic_cmd, produces output that libtool cannot recognize.
8113 *** The result is that libtool may fail to recognize shared libraries
8114 *** as such. This will affect the creation of libtool libraries that
8115 *** depend on shared libraries, but programs linked with such libtool
8116 *** libraries will work regardless of this problem. Nevertheless, you
8117 *** may want to report the problem to your system manager and/or to
8118 *** bug-libtool@gnu.org
8120 _LT_EOF
8121 fi ;;
8122 esac
8124 break
8126 done
8127 IFS="$lt_save_ifs"
8128 MAGIC_CMD="$lt_save_MAGIC_CMD"
8130 esac
8133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8134 if test -n "$MAGIC_CMD"; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8136 $as_echo "$MAGIC_CMD" >&6; }
8137 else
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139 $as_echo "no" >&6; }
8143 else
8144 MAGIC_CMD=:
8150 esac
8152 # Use C for the default configuration in the libtool script
8154 lt_save_CC="$CC"
8155 ac_ext=c
8156 ac_cpp='$CPP $CPPFLAGS'
8157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8162 # Source file extension for C test sources.
8163 ac_ext=c
8165 # Object file extension for compiled C test sources.
8166 objext=o
8167 objext=$objext
8169 # Code to be used in simple compile tests
8170 lt_simple_compile_test_code="int some_variable = 0;"
8172 # Code to be used in simple link tests
8173 lt_simple_link_test_code='int main(){return(0);}'
8181 # If no C compiler was specified, use CC.
8182 LTCC=${LTCC-"$CC"}
8184 # If no C compiler flags were specified, use CFLAGS.
8185 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8187 # Allow CC to be a program name with arguments.
8188 compiler=$CC
8190 # Save the default compiler, since it gets overwritten when the other
8191 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8192 compiler_DEFAULT=$CC
8194 # save warnings/boilerplate of simple test code
8195 ac_outfile=conftest.$ac_objext
8196 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8197 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8198 _lt_compiler_boilerplate=`cat conftest.err`
8199 $RM conftest*
8201 ac_outfile=conftest.$ac_objext
8202 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8203 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8204 _lt_linker_boilerplate=`cat conftest.err`
8205 $RM -r conftest*
8208 ## CAVEAT EMPTOR:
8209 ## There is no encapsulation within the following macros, do not change
8210 ## the running order or otherwise move them around unless you know exactly
8211 ## what you are doing...
8212 if test -n "$compiler"; then
8214 lt_prog_compiler_no_builtin_flag=
8216 if test "$GCC" = yes; then
8217 case $cc_basename in
8218 nvcc*)
8219 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8221 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8222 esac
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8225 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8226 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8229 lt_cv_prog_compiler_rtti_exceptions=no
8230 ac_outfile=conftest.$ac_objext
8231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8232 lt_compiler_flag="-fno-rtti -fno-exceptions"
8233 # Insert the option either (1) after the last *FLAGS variable, or
8234 # (2) before a word containing "conftest.", or (3) at the end.
8235 # Note that $ac_compile itself does not contain backslashes and begins
8236 # with a dollar sign (not a hyphen), so the echo should work correctly.
8237 # The option is referenced via a variable to avoid confusing sed.
8238 lt_compile=`echo "$ac_compile" | $SED \
8239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8241 -e 's:$: $lt_compiler_flag:'`
8242 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8243 (eval "$lt_compile" 2>conftest.err)
8244 ac_status=$?
8245 cat conftest.err >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 if (exit $ac_status) && test -s "$ac_outfile"; then
8248 # The compiler can only warn and ignore the option if not recognized
8249 # So say no if there are warnings other than the usual output.
8250 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8252 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8253 lt_cv_prog_compiler_rtti_exceptions=yes
8256 $RM conftest*
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8260 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8262 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8263 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8264 else
8275 lt_prog_compiler_wl=
8276 lt_prog_compiler_pic=
8277 lt_prog_compiler_static=
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8280 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8282 if test "$GCC" = yes; then
8283 lt_prog_compiler_wl='-Wl,'
8284 lt_prog_compiler_static='-static'
8286 case $host_os in
8287 aix*)
8288 # All AIX code is PIC.
8289 if test "$host_cpu" = ia64; then
8290 # AIX 5 now supports IA64 processor
8291 lt_prog_compiler_static='-Bstatic'
8293 lt_prog_compiler_pic='-fPIC'
8296 amigaos*)
8297 case $host_cpu in
8298 powerpc)
8299 # see comment about AmigaOS4 .so support
8300 lt_prog_compiler_pic='-fPIC'
8302 m68k)
8303 # FIXME: we need at least 68020 code to build shared libraries, but
8304 # adding the `-m68020' flag to GCC prevents building anything better,
8305 # like `-m68040'.
8306 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8308 esac
8311 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8312 # PIC is the default for these OSes.
8315 mingw* | cygwin* | pw32* | os2* | cegcc*)
8316 # This hack is so that the source file can tell whether it is being
8317 # built for inclusion in a dll (and should export symbols for example).
8318 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8319 # (--disable-auto-import) libraries
8320 lt_prog_compiler_pic='-DDLL_EXPORT'
8323 darwin* | rhapsody*)
8324 # PIC is the default on this platform
8325 # Common symbols not allowed in MH_DYLIB files
8326 lt_prog_compiler_pic='-fno-common'
8329 haiku*)
8330 # PIC is the default for Haiku.
8331 # The "-static" flag exists, but is broken.
8332 lt_prog_compiler_static=
8335 hpux*)
8336 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8337 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8338 # sets the default TLS model and affects inlining.
8339 case $host_cpu in
8340 hppa*64*)
8341 # +Z the default
8344 lt_prog_compiler_pic='-fPIC'
8346 esac
8349 interix[3-9]*)
8350 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8351 # Instead, we relocate shared libraries at runtime.
8354 msdosdjgpp*)
8355 # Just because we use GCC doesn't mean we suddenly get shared libraries
8356 # on systems that don't support them.
8357 lt_prog_compiler_can_build_shared=no
8358 enable_shared=no
8361 *nto* | *qnx*)
8362 # QNX uses GNU C++, but need to define -shared option too, otherwise
8363 # it will coredump.
8364 lt_prog_compiler_pic='-fPIC -shared'
8367 sysv4*MP*)
8368 if test -d /usr/nec; then
8369 lt_prog_compiler_pic=-Kconform_pic
8374 lt_prog_compiler_pic='-fPIC'
8376 esac
8378 case $cc_basename in
8379 nvcc*) # Cuda Compiler Driver 2.2
8380 lt_prog_compiler_wl='-Xlinker '
8381 lt_prog_compiler_pic='-Xcompiler -fPIC'
8383 esac
8384 else
8385 # PORTME Check for flag to pass linker flags through the system compiler.
8386 case $host_os in
8387 aix*)
8388 lt_prog_compiler_wl='-Wl,'
8389 if test "$host_cpu" = ia64; then
8390 # AIX 5 now supports IA64 processor
8391 lt_prog_compiler_static='-Bstatic'
8392 else
8393 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8397 mingw* | cygwin* | pw32* | os2* | cegcc*)
8398 # This hack is so that the source file can tell whether it is being
8399 # built for inclusion in a dll (and should export symbols for example).
8400 lt_prog_compiler_pic='-DDLL_EXPORT'
8403 hpux9* | hpux10* | hpux11*)
8404 lt_prog_compiler_wl='-Wl,'
8405 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8406 # not for PA HP-UX.
8407 case $host_cpu in
8408 hppa*64*|ia64*)
8409 # +Z the default
8412 lt_prog_compiler_pic='+Z'
8414 esac
8415 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8416 lt_prog_compiler_static='${wl}-a ${wl}archive'
8419 irix5* | irix6* | nonstopux*)
8420 lt_prog_compiler_wl='-Wl,'
8421 # PIC (with -KPIC) is the default.
8422 lt_prog_compiler_static='-non_shared'
8425 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8426 case $cc_basename in
8427 # old Intel for x86_64 which still supported -KPIC.
8428 ecc*)
8429 lt_prog_compiler_wl='-Wl,'
8430 lt_prog_compiler_pic='-KPIC'
8431 lt_prog_compiler_static='-static'
8433 # icc used to be incompatible with GCC.
8434 # ICC 10 doesn't accept -KPIC any more.
8435 icc* | ifort*)
8436 lt_prog_compiler_wl='-Wl,'
8437 lt_prog_compiler_pic='-fPIC'
8438 lt_prog_compiler_static='-static'
8440 # Lahey Fortran 8.1.
8441 lf95*)
8442 lt_prog_compiler_wl='-Wl,'
8443 lt_prog_compiler_pic='--shared'
8444 lt_prog_compiler_static='--static'
8446 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8447 # Portland Group compilers (*not* the Pentium gcc compiler,
8448 # which looks to be a dead project)
8449 lt_prog_compiler_wl='-Wl,'
8450 lt_prog_compiler_pic='-fpic'
8451 lt_prog_compiler_static='-Bstatic'
8453 ccc*)
8454 lt_prog_compiler_wl='-Wl,'
8455 # All Alpha code is PIC.
8456 lt_prog_compiler_static='-non_shared'
8458 xl* | bgxl* | bgf* | mpixl*)
8459 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8460 lt_prog_compiler_wl='-Wl,'
8461 lt_prog_compiler_pic='-qpic'
8462 lt_prog_compiler_static='-qstaticlink'
8465 case `$CC -V 2>&1 | sed 5q` in
8466 *Sun\ F* | *Sun*Fortran*)
8467 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8468 lt_prog_compiler_pic='-KPIC'
8469 lt_prog_compiler_static='-Bstatic'
8470 lt_prog_compiler_wl=''
8472 *Sun\ C*)
8473 # Sun C 5.9
8474 lt_prog_compiler_pic='-KPIC'
8475 lt_prog_compiler_static='-Bstatic'
8476 lt_prog_compiler_wl='-Wl,'
8478 esac
8480 esac
8483 newsos6)
8484 lt_prog_compiler_pic='-KPIC'
8485 lt_prog_compiler_static='-Bstatic'
8488 *nto* | *qnx*)
8489 # QNX uses GNU C++, but need to define -shared option too, otherwise
8490 # it will coredump.
8491 lt_prog_compiler_pic='-fPIC -shared'
8494 osf3* | osf4* | osf5*)
8495 lt_prog_compiler_wl='-Wl,'
8496 # All OSF/1 code is PIC.
8497 lt_prog_compiler_static='-non_shared'
8500 rdos*)
8501 lt_prog_compiler_static='-non_shared'
8504 solaris*)
8505 lt_prog_compiler_pic='-KPIC'
8506 lt_prog_compiler_static='-Bstatic'
8507 case $cc_basename in
8508 f77* | f90* | f95*)
8509 lt_prog_compiler_wl='-Qoption ld ';;
8511 lt_prog_compiler_wl='-Wl,';;
8512 esac
8515 sunos4*)
8516 lt_prog_compiler_wl='-Qoption ld '
8517 lt_prog_compiler_pic='-PIC'
8518 lt_prog_compiler_static='-Bstatic'
8521 sysv4 | sysv4.2uw2* | sysv4.3*)
8522 lt_prog_compiler_wl='-Wl,'
8523 lt_prog_compiler_pic='-KPIC'
8524 lt_prog_compiler_static='-Bstatic'
8527 sysv4*MP*)
8528 if test -d /usr/nec ;then
8529 lt_prog_compiler_pic='-Kconform_pic'
8530 lt_prog_compiler_static='-Bstatic'
8534 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8535 lt_prog_compiler_wl='-Wl,'
8536 lt_prog_compiler_pic='-KPIC'
8537 lt_prog_compiler_static='-Bstatic'
8540 unicos*)
8541 lt_prog_compiler_wl='-Wl,'
8542 lt_prog_compiler_can_build_shared=no
8545 uts4*)
8546 lt_prog_compiler_pic='-pic'
8547 lt_prog_compiler_static='-Bstatic'
8551 lt_prog_compiler_can_build_shared=no
8553 esac
8556 case $host_os in
8557 # For platforms which do not support PIC, -DPIC is meaningless:
8558 *djgpp*)
8559 lt_prog_compiler_pic=
8562 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8564 esac
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8566 $as_echo "$lt_prog_compiler_pic" >&6; }
8574 # Check to make sure the PIC flag actually works.
8576 if test -n "$lt_prog_compiler_pic"; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8578 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8579 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 lt_cv_prog_compiler_pic_works=no
8583 ac_outfile=conftest.$ac_objext
8584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8585 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8586 # Insert the option either (1) after the last *FLAGS variable, or
8587 # (2) before a word containing "conftest.", or (3) at the end.
8588 # Note that $ac_compile itself does not contain backslashes and begins
8589 # with a dollar sign (not a hyphen), so the echo should work correctly.
8590 # The option is referenced via a variable to avoid confusing sed.
8591 lt_compile=`echo "$ac_compile" | $SED \
8592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8594 -e 's:$: $lt_compiler_flag:'`
8595 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8596 (eval "$lt_compile" 2>conftest.err)
8597 ac_status=$?
8598 cat conftest.err >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 if (exit $ac_status) && test -s "$ac_outfile"; then
8601 # The compiler can only warn and ignore the option if not recognized
8602 # So say no if there are warnings other than the usual output.
8603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8605 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8606 lt_cv_prog_compiler_pic_works=yes
8609 $RM conftest*
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8613 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8615 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8616 case $lt_prog_compiler_pic in
8617 "" | " "*) ;;
8618 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8619 esac
8620 else
8621 lt_prog_compiler_pic=
8622 lt_prog_compiler_can_build_shared=no
8633 # Check to make sure the static flag actually works.
8635 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8637 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8638 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8639 $as_echo_n "(cached) " >&6
8640 else
8641 lt_cv_prog_compiler_static_works=no
8642 save_LDFLAGS="$LDFLAGS"
8643 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8644 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8645 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8646 # The linker can only warn and ignore the option if not recognized
8647 # So say no if there are warnings
8648 if test -s conftest.err; then
8649 # Append any errors to the config.log.
8650 cat conftest.err 1>&5
8651 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8653 if diff conftest.exp conftest.er2 >/dev/null; then
8654 lt_cv_prog_compiler_static_works=yes
8656 else
8657 lt_cv_prog_compiler_static_works=yes
8660 $RM -r conftest*
8661 LDFLAGS="$save_LDFLAGS"
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8665 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8667 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8669 else
8670 lt_prog_compiler_static=
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8680 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8681 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8682 $as_echo_n "(cached) " >&6
8683 else
8684 lt_cv_prog_compiler_c_o=no
8685 $RM -r conftest 2>/dev/null
8686 mkdir conftest
8687 cd conftest
8688 mkdir out
8689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8691 lt_compiler_flag="-o out/conftest2.$ac_objext"
8692 # Insert the option either (1) after the last *FLAGS variable, or
8693 # (2) before a word containing "conftest.", or (3) at the end.
8694 # Note that $ac_compile itself does not contain backslashes and begins
8695 # with a dollar sign (not a hyphen), so the echo should work correctly.
8696 lt_compile=`echo "$ac_compile" | $SED \
8697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8699 -e 's:$: $lt_compiler_flag:'`
8700 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8701 (eval "$lt_compile" 2>out/conftest.err)
8702 ac_status=$?
8703 cat out/conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8706 then
8707 # The compiler can only warn and ignore the option if not recognized
8708 # So say no if there are warnings
8709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8710 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8711 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8712 lt_cv_prog_compiler_c_o=yes
8715 chmod u+w . 2>&5
8716 $RM conftest*
8717 # SGI C++ compiler will create directory out/ii_files/ for
8718 # template instantiation
8719 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8720 $RM out/* && rmdir out
8721 cd ..
8722 $RM -r conftest
8723 $RM conftest*
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8727 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8735 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8736 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 lt_cv_prog_compiler_c_o=no
8740 $RM -r conftest 2>/dev/null
8741 mkdir conftest
8742 cd conftest
8743 mkdir out
8744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8746 lt_compiler_flag="-o out/conftest2.$ac_objext"
8747 # Insert the option either (1) after the last *FLAGS variable, or
8748 # (2) before a word containing "conftest.", or (3) at the end.
8749 # Note that $ac_compile itself does not contain backslashes and begins
8750 # with a dollar sign (not a hyphen), so the echo should work correctly.
8751 lt_compile=`echo "$ac_compile" | $SED \
8752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8754 -e 's:$: $lt_compiler_flag:'`
8755 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8756 (eval "$lt_compile" 2>out/conftest.err)
8757 ac_status=$?
8758 cat out/conftest.err >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8761 then
8762 # The compiler can only warn and ignore the option if not recognized
8763 # So say no if there are warnings
8764 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8765 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8766 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8767 lt_cv_prog_compiler_c_o=yes
8770 chmod u+w . 2>&5
8771 $RM conftest*
8772 # SGI C++ compiler will create directory out/ii_files/ for
8773 # template instantiation
8774 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8775 $RM out/* && rmdir out
8776 cd ..
8777 $RM -r conftest
8778 $RM conftest*
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8782 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8787 hard_links="nottested"
8788 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8789 # do not overwrite the value of need_locks provided by the user
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8791 $as_echo_n "checking if we can lock with hard links... " >&6; }
8792 hard_links=yes
8793 $RM conftest*
8794 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8795 touch conftest.a
8796 ln conftest.a conftest.b 2>&5 || hard_links=no
8797 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8799 $as_echo "$hard_links" >&6; }
8800 if test "$hard_links" = no; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8802 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8803 need_locks=warn
8805 else
8806 need_locks=no
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8815 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8817 runpath_var=
8818 allow_undefined_flag=
8819 always_export_symbols=no
8820 archive_cmds=
8821 archive_expsym_cmds=
8822 compiler_needs_object=no
8823 enable_shared_with_static_runtimes=no
8824 export_dynamic_flag_spec=
8825 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8826 hardcode_automatic=no
8827 hardcode_direct=no
8828 hardcode_direct_absolute=no
8829 hardcode_libdir_flag_spec=
8830 hardcode_libdir_flag_spec_ld=
8831 hardcode_libdir_separator=
8832 hardcode_minus_L=no
8833 hardcode_shlibpath_var=unsupported
8834 inherit_rpath=no
8835 link_all_deplibs=unknown
8836 module_cmds=
8837 module_expsym_cmds=
8838 old_archive_from_new_cmds=
8839 old_archive_from_expsyms_cmds=
8840 thread_safe_flag_spec=
8841 whole_archive_flag_spec=
8842 # include_expsyms should be a list of space-separated symbols to be *always*
8843 # included in the symbol list
8844 include_expsyms=
8845 # exclude_expsyms can be an extended regexp of symbols to exclude
8846 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8847 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8848 # as well as any symbol that contains `d'.
8849 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8850 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8851 # platforms (ab)use it in PIC code, but their linkers get confused if
8852 # the symbol is explicitly referenced. Since portable code cannot
8853 # rely on this symbol name, it's probably fine to never include it in
8854 # preloaded symbol tables.
8855 # Exclude shared library initialization/finalization symbols.
8856 extract_expsyms_cmds=
8858 case $host_os in
8859 cygwin* | mingw* | pw32* | cegcc*)
8860 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8861 # When not using gcc, we currently assume that we are using
8862 # Microsoft Visual C++.
8863 if test "$GCC" != yes; then
8864 with_gnu_ld=no
8867 interix*)
8868 # we just hope/assume this is gcc and not c89 (= MSVC++)
8869 with_gnu_ld=yes
8871 openbsd*)
8872 with_gnu_ld=no
8874 esac
8876 ld_shlibs=yes
8878 # On some targets, GNU ld is compatible enough with the native linker
8879 # that we're better off using the native interface for both.
8880 lt_use_gnu_ld_interface=no
8881 if test "$with_gnu_ld" = yes; then
8882 case $host_os in
8883 aix*)
8884 # The AIX port of GNU ld has always aspired to compatibility
8885 # with the native linker. However, as the warning in the GNU ld
8886 # block says, versions before 2.19.5* couldn't really create working
8887 # shared libraries, regardless of the interface used.
8888 case `$LD -v 2>&1` in
8889 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8890 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8891 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8893 lt_use_gnu_ld_interface=yes
8895 esac
8898 lt_use_gnu_ld_interface=yes
8900 esac
8903 if test "$lt_use_gnu_ld_interface" = yes; then
8904 # If archive_cmds runs LD, not CC, wlarc should be empty
8905 wlarc='${wl}'
8907 # Set some defaults for GNU ld with shared library support. These
8908 # are reset later if shared libraries are not supported. Putting them
8909 # here allows them to be overridden if necessary.
8910 runpath_var=LD_RUN_PATH
8911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8912 export_dynamic_flag_spec='${wl}--export-dynamic'
8913 # ancient GNU ld didn't support --whole-archive et. al.
8914 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8915 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8916 else
8917 whole_archive_flag_spec=
8919 supports_anon_versioning=no
8920 case `$LD -v 2>&1` in
8921 *GNU\ gold*) supports_anon_versioning=yes ;;
8922 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8923 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8924 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8925 *\ 2.11.*) ;; # other 2.11 versions
8926 *) supports_anon_versioning=yes ;;
8927 esac
8929 # See if GNU ld supports shared libraries.
8930 case $host_os in
8931 aix[3-9]*)
8932 # On AIX/PPC, the GNU linker is very broken
8933 if test "$host_cpu" != ia64; then
8934 ld_shlibs=no
8935 cat <<_LT_EOF 1>&2
8937 *** Warning: the GNU linker, at least up to release 2.19, is reported
8938 *** to be unable to reliably create shared libraries on AIX.
8939 *** Therefore, libtool is disabling shared libraries support. If you
8940 *** really care for shared libraries, you may want to install binutils
8941 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8942 *** You will then need to restart the configuration process.
8944 _LT_EOF
8948 amigaos*)
8949 case $host_cpu in
8950 powerpc)
8951 # see comment about AmigaOS4 .so support
8952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8953 archive_expsym_cmds=''
8955 m68k)
8956 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)'
8957 hardcode_libdir_flag_spec='-L$libdir'
8958 hardcode_minus_L=yes
8960 esac
8963 beos*)
8964 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8965 allow_undefined_flag=unsupported
8966 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8967 # support --undefined. This deserves some investigation. FIXME
8968 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969 else
8970 ld_shlibs=no
8974 cygwin* | mingw* | pw32* | cegcc*)
8975 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8976 # as there is no search path for DLLs.
8977 hardcode_libdir_flag_spec='-L$libdir'
8978 export_dynamic_flag_spec='${wl}--export-all-symbols'
8979 allow_undefined_flag=unsupported
8980 always_export_symbols=no
8981 enable_shared_with_static_runtimes=yes
8982 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8984 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8986 # If the export-symbols file already is a .def file (1st line
8987 # is EXPORTS), use it as is; otherwise, prepend...
8988 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8989 cp $export_symbols $output_objdir/$soname.def;
8990 else
8991 echo EXPORTS > $output_objdir/$soname.def;
8992 cat $export_symbols >> $output_objdir/$soname.def;
8994 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8995 else
8996 ld_shlibs=no
9000 haiku*)
9001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9002 link_all_deplibs=yes
9005 interix[3-9]*)
9006 hardcode_direct=no
9007 hardcode_shlibpath_var=no
9008 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9009 export_dynamic_flag_spec='${wl}-E'
9010 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9011 # Instead, shared libraries are loaded at an image base (0x10000000 by
9012 # default) and relocated if they conflict, which is a slow very memory
9013 # consuming and fragmenting process. To avoid this, we pick a random,
9014 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9015 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9016 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9017 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'
9020 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9021 tmp_diet=no
9022 if test "$host_os" = linux-dietlibc; then
9023 case $cc_basename in
9024 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9025 esac
9027 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9028 && test "$tmp_diet" = no
9029 then
9030 tmp_addflag=' $pic_flag'
9031 tmp_sharedflag='-shared'
9032 case $cc_basename,$host_cpu in
9033 pgcc*) # Portland Group C compiler
9034 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'
9035 tmp_addflag=' $pic_flag'
9037 pgf77* | pgf90* | pgf95* | pgfortran*)
9038 # Portland Group f77 and f90 compilers
9039 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'
9040 tmp_addflag=' $pic_flag -Mnomain' ;;
9041 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9042 tmp_addflag=' -i_dynamic' ;;
9043 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9044 tmp_addflag=' -i_dynamic -nofor_main' ;;
9045 ifc* | ifort*) # Intel Fortran compiler
9046 tmp_addflag=' -nofor_main' ;;
9047 lf95*) # Lahey Fortran 8.1
9048 whole_archive_flag_spec=
9049 tmp_sharedflag='--shared' ;;
9050 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9051 tmp_sharedflag='-qmkshrobj'
9052 tmp_addflag= ;;
9053 nvcc*) # Cuda Compiler Driver 2.2
9054 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'
9055 compiler_needs_object=yes
9057 esac
9058 case `$CC -V 2>&1 | sed 5q` in
9059 *Sun\ C*) # Sun C 5.9
9060 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'
9061 compiler_needs_object=yes
9062 tmp_sharedflag='-G' ;;
9063 *Sun\ F*) # Sun Fortran 8.3
9064 tmp_sharedflag='-G' ;;
9065 esac
9066 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9068 if test "x$supports_anon_versioning" = xyes; then
9069 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9070 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9071 echo "local: *; };" >> $output_objdir/$libname.ver~
9072 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9075 case $cc_basename in
9076 xlf* | bgf* | bgxlf* | mpixlf*)
9077 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9078 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9079 hardcode_libdir_flag_spec=
9080 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9081 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9082 if test "x$supports_anon_versioning" = xyes; then
9083 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9084 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9085 echo "local: *; };" >> $output_objdir/$libname.ver~
9086 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9089 esac
9090 else
9091 ld_shlibs=no
9095 netbsd*)
9096 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9097 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9098 wlarc=
9099 else
9100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9101 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9105 solaris*)
9106 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9107 ld_shlibs=no
9108 cat <<_LT_EOF 1>&2
9110 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9111 *** create shared libraries on Solaris systems. Therefore, libtool
9112 *** is disabling shared libraries support. We urge you to upgrade GNU
9113 *** binutils to release 2.9.1 or newer. Another option is to modify
9114 *** your PATH or compiler configuration so that the native linker is
9115 *** used, and then restart.
9117 _LT_EOF
9118 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9120 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9121 else
9122 ld_shlibs=no
9126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9127 case `$LD -v 2>&1` in
9128 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9129 ld_shlibs=no
9130 cat <<_LT_EOF 1>&2
9132 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9133 *** reliably create shared libraries on SCO systems. Therefore, libtool
9134 *** is disabling shared libraries support. We urge you to upgrade GNU
9135 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9136 *** your PATH or compiler configuration so that the native linker is
9137 *** used, and then restart.
9139 _LT_EOF
9142 # For security reasons, it is highly recommended that you always
9143 # use absolute paths for naming shared libraries, and exclude the
9144 # DT_RUNPATH tag from executables and libraries. But doing so
9145 # requires that you compile everything twice, which is a pain.
9146 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9147 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9149 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9150 else
9151 ld_shlibs=no
9154 esac
9157 sunos4*)
9158 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9159 wlarc=
9160 hardcode_direct=yes
9161 hardcode_shlibpath_var=no
9165 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9167 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9168 else
9169 ld_shlibs=no
9172 esac
9174 if test "$ld_shlibs" = no; then
9175 runpath_var=
9176 hardcode_libdir_flag_spec=
9177 export_dynamic_flag_spec=
9178 whole_archive_flag_spec=
9180 else
9181 # PORTME fill in a description of your system's linker (not GNU ld)
9182 case $host_os in
9183 aix3*)
9184 allow_undefined_flag=unsupported
9185 always_export_symbols=yes
9186 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'
9187 # Note: this linker hardcodes the directories in LIBPATH if there
9188 # are no directories specified by -L.
9189 hardcode_minus_L=yes
9190 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9191 # Neither direct hardcoding nor static linking is supported with a
9192 # broken collect2.
9193 hardcode_direct=unsupported
9197 aix[4-9]*)
9198 if test "$host_cpu" = ia64; then
9199 # On IA64, the linker does run time linking by default, so we don't
9200 # have to do anything special.
9201 aix_use_runtimelinking=no
9202 exp_sym_flag='-Bexport'
9203 no_entry_flag=""
9204 else
9205 # If we're using GNU nm, then we don't want the "-C" option.
9206 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9207 # Also, AIX nm treats weak defined symbols like other global
9208 # defined symbols, whereas GNU nm marks them as "W".
9209 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9210 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'
9211 else
9212 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'
9214 aix_use_runtimelinking=no
9216 # Test if we are trying to use run time linking or normal
9217 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9218 # need to do runtime linking.
9219 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9220 for ld_flag in $LDFLAGS; do
9221 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9222 aix_use_runtimelinking=yes
9223 break
9225 done
9227 esac
9229 exp_sym_flag='-bexport'
9230 no_entry_flag='-bnoentry'
9233 # When large executables or shared objects are built, AIX ld can
9234 # have problems creating the table of contents. If linking a library
9235 # or program results in "error TOC overflow" add -mminimal-toc to
9236 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9237 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9239 archive_cmds=''
9240 hardcode_direct=yes
9241 hardcode_direct_absolute=yes
9242 hardcode_libdir_separator=':'
9243 link_all_deplibs=yes
9244 file_list_spec='${wl}-f,'
9246 if test "$GCC" = yes; then
9247 case $host_os in aix4.[012]|aix4.[012].*)
9248 # We only want to do this on AIX 4.2 and lower, the check
9249 # below for broken collect2 doesn't work under 4.3+
9250 collect2name=`${CC} -print-prog-name=collect2`
9251 if test -f "$collect2name" &&
9252 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9253 then
9254 # We have reworked collect2
9256 else
9257 # We have old collect2
9258 hardcode_direct=unsupported
9259 # It fails to find uninstalled libraries when the uninstalled
9260 # path is not listed in the libpath. Setting hardcode_minus_L
9261 # to unsupported forces relinking
9262 hardcode_minus_L=yes
9263 hardcode_libdir_flag_spec='-L$libdir'
9264 hardcode_libdir_separator=
9267 esac
9268 shared_flag='-shared'
9269 if test "$aix_use_runtimelinking" = yes; then
9270 shared_flag="$shared_flag "'${wl}-G'
9272 else
9273 # not using gcc
9274 if test "$host_cpu" = ia64; then
9275 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9276 # chokes on -Wl,-G. The following line is correct:
9277 shared_flag='-G'
9278 else
9279 if test "$aix_use_runtimelinking" = yes; then
9280 shared_flag='${wl}-G'
9281 else
9282 shared_flag='${wl}-bM:SRE'
9287 export_dynamic_flag_spec='${wl}-bexpall'
9288 # It seems that -bexpall does not export symbols beginning with
9289 # underscore (_), so it is better to generate a list of symbols to export.
9290 always_export_symbols=yes
9291 if test "$aix_use_runtimelinking" = yes; then
9292 # Warning - without using the other runtime loading flags (-brtl),
9293 # -berok will link without error, but may produce a broken library.
9294 allow_undefined_flag='-berok'
9295 # Determine the default libpath from the value encoded in an
9296 # empty executable.
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9301 main ()
9305 return 0;
9307 _ACEOF
9308 if ac_fn_c_try_link "$LINENO"; then :
9310 lt_aix_libpath_sed='
9311 /Import File Strings/,/^$/ {
9312 /^0/ {
9313 s/^0 *\(.*\)$/\1/
9317 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9318 # Check for a 64-bit object if we didn't find anything.
9319 if test -z "$aix_libpath"; then
9320 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9323 rm -f core conftest.err conftest.$ac_objext \
9324 conftest$ac_exeext conftest.$ac_ext
9325 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9327 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9328 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"
9329 else
9330 if test "$host_cpu" = ia64; then
9331 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9332 allow_undefined_flag="-z nodefs"
9333 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"
9334 else
9335 # Determine the default libpath from the value encoded in an
9336 # empty executable.
9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h. */
9341 main ()
9345 return 0;
9347 _ACEOF
9348 if ac_fn_c_try_link "$LINENO"; then :
9350 lt_aix_libpath_sed='
9351 /Import File Strings/,/^$/ {
9352 /^0/ {
9353 s/^0 *\(.*\)$/\1/
9357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9358 # Check for a 64-bit object if we didn't find anything.
9359 if test -z "$aix_libpath"; then
9360 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9363 rm -f core conftest.err conftest.$ac_objext \
9364 conftest$ac_exeext conftest.$ac_ext
9365 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9367 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9368 # Warning - without using the other run time loading flags,
9369 # -berok will link without error, but may produce a broken library.
9370 no_undefined_flag=' ${wl}-bernotok'
9371 allow_undefined_flag=' ${wl}-berok'
9372 if test "$with_gnu_ld" = yes; then
9373 # We only use this code for GNU lds that support --whole-archive.
9374 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9375 else
9376 # Exported symbols can be pulled into shared objects from archives
9377 whole_archive_flag_spec='$convenience'
9379 archive_cmds_need_lc=yes
9380 # This is similar to how AIX traditionally builds its shared libraries.
9381 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'
9386 amigaos*)
9387 case $host_cpu in
9388 powerpc)
9389 # see comment about AmigaOS4 .so support
9390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391 archive_expsym_cmds=''
9393 m68k)
9394 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)'
9395 hardcode_libdir_flag_spec='-L$libdir'
9396 hardcode_minus_L=yes
9398 esac
9401 bsdi[45]*)
9402 export_dynamic_flag_spec=-rdynamic
9405 cygwin* | mingw* | pw32* | cegcc*)
9406 # When not using gcc, we currently assume that we are using
9407 # Microsoft Visual C++.
9408 # hardcode_libdir_flag_spec is actually meaningless, as there is
9409 # no search path for DLLs.
9410 hardcode_libdir_flag_spec=' '
9411 allow_undefined_flag=unsupported
9412 # Tell ltmain to make .lib files, not .a files.
9413 libext=lib
9414 # Tell ltmain to make .dll files, not .so files.
9415 shrext_cmds=".dll"
9416 # FIXME: Setting linknames here is a bad hack.
9417 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9418 # The linker will automatically build a .lib file if we build a DLL.
9419 old_archive_from_new_cmds='true'
9420 # FIXME: Should let the user specify the lib program.
9421 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9422 fix_srcfile_path='`cygpath -w "$srcfile"`'
9423 enable_shared_with_static_runtimes=yes
9426 darwin* | rhapsody*)
9429 archive_cmds_need_lc=no
9430 hardcode_direct=no
9431 hardcode_automatic=yes
9432 hardcode_shlibpath_var=unsupported
9433 if test "$lt_cv_ld_force_load" = "yes"; then
9434 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\"`'
9435 else
9436 whole_archive_flag_spec=''
9438 link_all_deplibs=yes
9439 allow_undefined_flag="$_lt_dar_allow_undefined"
9440 case $cc_basename in
9441 ifort*) _lt_dar_can_shared=yes ;;
9442 *) _lt_dar_can_shared=$GCC ;;
9443 esac
9444 if test "$_lt_dar_can_shared" = "yes"; then
9445 output_verbose_link_cmd=func_echo_all
9446 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9447 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9448 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}"
9449 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}"
9451 else
9452 ld_shlibs=no
9457 dgux*)
9458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9459 hardcode_libdir_flag_spec='-L$libdir'
9460 hardcode_shlibpath_var=no
9463 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9464 # support. Future versions do this automatically, but an explicit c++rt0.o
9465 # does not break anything, and helps significantly (at the cost of a little
9466 # extra space).
9467 freebsd2.2*)
9468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9469 hardcode_libdir_flag_spec='-R$libdir'
9470 hardcode_direct=yes
9471 hardcode_shlibpath_var=no
9474 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9475 freebsd2.*)
9476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9477 hardcode_direct=yes
9478 hardcode_minus_L=yes
9479 hardcode_shlibpath_var=no
9482 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9483 freebsd* | dragonfly*)
9484 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9485 hardcode_libdir_flag_spec='-R$libdir'
9486 hardcode_direct=yes
9487 hardcode_shlibpath_var=no
9490 hpux9*)
9491 if test "$GCC" = yes; then
9492 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'
9493 else
9494 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'
9496 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9497 hardcode_libdir_separator=:
9498 hardcode_direct=yes
9500 # hardcode_minus_L: Not really in the search PATH,
9501 # but as the default location of the library.
9502 hardcode_minus_L=yes
9503 export_dynamic_flag_spec='${wl}-E'
9506 hpux10*)
9507 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9508 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9509 else
9510 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9512 if test "$with_gnu_ld" = no; then
9513 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9514 hardcode_libdir_flag_spec_ld='+b $libdir'
9515 hardcode_libdir_separator=:
9516 hardcode_direct=yes
9517 hardcode_direct_absolute=yes
9518 export_dynamic_flag_spec='${wl}-E'
9519 # hardcode_minus_L: Not really in the search PATH,
9520 # but as the default location of the library.
9521 hardcode_minus_L=yes
9525 hpux11*)
9526 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9527 case $host_cpu in
9528 hppa*64*)
9529 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9531 ia64*)
9532 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9535 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9537 esac
9538 else
9539 case $host_cpu in
9540 hppa*64*)
9541 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9543 ia64*)
9544 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9548 # Older versions of the 11.00 compiler do not understand -b yet
9549 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9551 $as_echo_n "checking if $CC understands -b... " >&6; }
9552 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9553 $as_echo_n "(cached) " >&6
9554 else
9555 lt_cv_prog_compiler__b=no
9556 save_LDFLAGS="$LDFLAGS"
9557 LDFLAGS="$LDFLAGS -b"
9558 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9559 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9560 # The linker can only warn and ignore the option if not recognized
9561 # So say no if there are warnings
9562 if test -s conftest.err; then
9563 # Append any errors to the config.log.
9564 cat conftest.err 1>&5
9565 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9567 if diff conftest.exp conftest.er2 >/dev/null; then
9568 lt_cv_prog_compiler__b=yes
9570 else
9571 lt_cv_prog_compiler__b=yes
9574 $RM -r conftest*
9575 LDFLAGS="$save_LDFLAGS"
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9579 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9581 if test x"$lt_cv_prog_compiler__b" = xyes; then
9582 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9583 else
9584 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9588 esac
9590 if test "$with_gnu_ld" = no; then
9591 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9592 hardcode_libdir_separator=:
9594 case $host_cpu in
9595 hppa*64*|ia64*)
9596 hardcode_direct=no
9597 hardcode_shlibpath_var=no
9600 hardcode_direct=yes
9601 hardcode_direct_absolute=yes
9602 export_dynamic_flag_spec='${wl}-E'
9604 # hardcode_minus_L: Not really in the search PATH,
9605 # but as the default location of the library.
9606 hardcode_minus_L=yes
9608 esac
9612 irix5* | irix6* | nonstopux*)
9613 if test "$GCC" = yes; then
9614 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'
9615 # Try to use the -exported_symbol ld option, if it does not
9616 # work, assume that -exports_file does not work either and
9617 # implicitly export all symbols.
9618 save_LDFLAGS="$LDFLAGS"
9619 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9622 int foo(void) {}
9623 _ACEOF
9624 if ac_fn_c_try_link "$LINENO"; then :
9625 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'
9628 rm -f core conftest.err conftest.$ac_objext \
9629 conftest$ac_exeext conftest.$ac_ext
9630 LDFLAGS="$save_LDFLAGS"
9631 else
9632 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'
9633 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'
9635 archive_cmds_need_lc='no'
9636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9637 hardcode_libdir_separator=:
9638 inherit_rpath=yes
9639 link_all_deplibs=yes
9642 netbsd*)
9643 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9644 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9645 else
9646 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9648 hardcode_libdir_flag_spec='-R$libdir'
9649 hardcode_direct=yes
9650 hardcode_shlibpath_var=no
9653 newsos6)
9654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9655 hardcode_direct=yes
9656 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9657 hardcode_libdir_separator=:
9658 hardcode_shlibpath_var=no
9661 *nto* | *qnx*)
9664 openbsd*)
9665 if test -f /usr/libexec/ld.so; then
9666 hardcode_direct=yes
9667 hardcode_shlibpath_var=no
9668 hardcode_direct_absolute=yes
9669 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9670 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9671 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9672 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9673 export_dynamic_flag_spec='${wl}-E'
9674 else
9675 case $host_os in
9676 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9677 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9678 hardcode_libdir_flag_spec='-R$libdir'
9681 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9682 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9684 esac
9686 else
9687 ld_shlibs=no
9691 os2*)
9692 hardcode_libdir_flag_spec='-L$libdir'
9693 hardcode_minus_L=yes
9694 allow_undefined_flag=unsupported
9695 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'
9696 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9699 osf3*)
9700 if test "$GCC" = yes; then
9701 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9702 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'
9703 else
9704 allow_undefined_flag=' -expect_unresolved \*'
9705 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'
9707 archive_cmds_need_lc='no'
9708 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9709 hardcode_libdir_separator=:
9712 osf4* | osf5*) # as osf3* with the addition of -msym flag
9713 if test "$GCC" = yes; then
9714 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9715 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'
9716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9717 else
9718 allow_undefined_flag=' -expect_unresolved \*'
9719 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'
9720 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~
9721 $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'
9723 # Both c and cxx compiler support -rpath directly
9724 hardcode_libdir_flag_spec='-rpath $libdir'
9726 archive_cmds_need_lc='no'
9727 hardcode_libdir_separator=:
9730 solaris*)
9731 no_undefined_flag=' -z defs'
9732 if test "$GCC" = yes; then
9733 wlarc='${wl}'
9734 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9735 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9736 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9737 else
9738 case `$CC -V 2>&1` in
9739 *"Compilers 5.0"*)
9740 wlarc=''
9741 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9742 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9743 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9746 wlarc='${wl}'
9747 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9748 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9749 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9751 esac
9753 hardcode_libdir_flag_spec='-R$libdir'
9754 hardcode_shlibpath_var=no
9755 case $host_os in
9756 solaris2.[0-5] | solaris2.[0-5].*) ;;
9758 # The compiler driver will combine and reorder linker options,
9759 # but understands `-z linker_flag'. GCC discards it without `$wl',
9760 # but is careful enough not to reorder.
9761 # Supported since Solaris 2.6 (maybe 2.5.1?)
9762 if test "$GCC" = yes; then
9763 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9764 else
9765 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9768 esac
9769 link_all_deplibs=yes
9772 sunos4*)
9773 if test "x$host_vendor" = xsequent; then
9774 # Use $CC to link under sequent, because it throws in some extra .o
9775 # files that make .init and .fini sections work.
9776 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9777 else
9778 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9780 hardcode_libdir_flag_spec='-L$libdir'
9781 hardcode_direct=yes
9782 hardcode_minus_L=yes
9783 hardcode_shlibpath_var=no
9786 sysv4)
9787 case $host_vendor in
9788 sni)
9789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9790 hardcode_direct=yes # is this really true???
9792 siemens)
9793 ## LD is ld it makes a PLAMLIB
9794 ## CC just makes a GrossModule.
9795 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9796 reload_cmds='$CC -r -o $output$reload_objs'
9797 hardcode_direct=no
9799 motorola)
9800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9801 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9803 esac
9804 runpath_var='LD_RUN_PATH'
9805 hardcode_shlibpath_var=no
9808 sysv4.3*)
9809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9810 hardcode_shlibpath_var=no
9811 export_dynamic_flag_spec='-Bexport'
9814 sysv4*MP*)
9815 if test -d /usr/nec; then
9816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9817 hardcode_shlibpath_var=no
9818 runpath_var=LD_RUN_PATH
9819 hardcode_runpath_var=yes
9820 ld_shlibs=yes
9824 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9825 no_undefined_flag='${wl}-z,text'
9826 archive_cmds_need_lc=no
9827 hardcode_shlibpath_var=no
9828 runpath_var='LD_RUN_PATH'
9830 if test "$GCC" = yes; then
9831 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9832 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9833 else
9834 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9835 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9839 sysv5* | sco3.2v5* | sco5v6*)
9840 # Note: We can NOT use -z defs as we might desire, because we do not
9841 # link with -lc, and that would cause any symbols used from libc to
9842 # always be unresolved, which means just about no library would
9843 # ever link correctly. If we're not using GNU ld we use -z text
9844 # though, which does catch some bad symbols but isn't as heavy-handed
9845 # as -z defs.
9846 no_undefined_flag='${wl}-z,text'
9847 allow_undefined_flag='${wl}-z,nodefs'
9848 archive_cmds_need_lc=no
9849 hardcode_shlibpath_var=no
9850 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9851 hardcode_libdir_separator=':'
9852 link_all_deplibs=yes
9853 export_dynamic_flag_spec='${wl}-Bexport'
9854 runpath_var='LD_RUN_PATH'
9856 if test "$GCC" = yes; then
9857 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9858 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9859 else
9860 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9861 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9865 uts4*)
9866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9867 hardcode_libdir_flag_spec='-L$libdir'
9868 hardcode_shlibpath_var=no
9872 ld_shlibs=no
9874 esac
9876 if test x$host_vendor = xsni; then
9877 case $host in
9878 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9879 export_dynamic_flag_spec='${wl}-Blargedynsym'
9881 esac
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9886 $as_echo "$ld_shlibs" >&6; }
9887 test "$ld_shlibs" = no && can_build_shared=no
9889 with_gnu_ld=$with_gnu_ld
9906 # Do we need to explicitly link libc?
9908 case "x$archive_cmds_need_lc" in
9909 x|xyes)
9910 # Assume -lc should be added
9911 archive_cmds_need_lc=yes
9913 if test "$enable_shared" = yes && test "$GCC" = yes; then
9914 case $archive_cmds in
9915 *'~'*)
9916 # FIXME: we may have to deal with multi-command sequences.
9918 '$CC '*)
9919 # Test whether the compiler implicitly links with -lc since on some
9920 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9921 # to ld, don't add -lc before -lgcc.
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9923 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9924 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9925 $as_echo_n "(cached) " >&6
9926 else
9927 $RM conftest*
9928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9931 (eval $ac_compile) 2>&5
9932 ac_status=$?
9933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9934 test $ac_status = 0; } 2>conftest.err; then
9935 soname=conftest
9936 lib=conftest
9937 libobjs=conftest.$ac_objext
9938 deplibs=
9939 wl=$lt_prog_compiler_wl
9940 pic_flag=$lt_prog_compiler_pic
9941 compiler_flags=-v
9942 linker_flags=-v
9943 verstring=
9944 output_objdir=.
9945 libname=conftest
9946 lt_save_allow_undefined_flag=$allow_undefined_flag
9947 allow_undefined_flag=
9948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9949 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9950 ac_status=$?
9951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9952 test $ac_status = 0; }
9953 then
9954 lt_cv_archive_cmds_need_lc=no
9955 else
9956 lt_cv_archive_cmds_need_lc=yes
9958 allow_undefined_flag=$lt_save_allow_undefined_flag
9959 else
9960 cat conftest.err 1>&5
9962 $RM conftest*
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9966 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9967 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9969 esac
9972 esac
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10131 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10133 if test "$GCC" = yes; then
10134 case $host_os in
10135 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10136 *) lt_awk_arg="/^libraries:/" ;;
10137 esac
10138 case $host_os in
10139 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10140 *) lt_sed_strip_eq="s,=/,/,g" ;;
10141 esac
10142 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10143 case $lt_search_path_spec in
10144 *\;*)
10145 # if the path contains ";" then we assume it to be the separator
10146 # otherwise default to the standard path separator (i.e. ":") - it is
10147 # assumed that no part of a normal pathname contains ";" but that should
10148 # okay in the real world where ";" in dirpaths is itself problematic.
10149 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10152 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10154 esac
10155 # Ok, now we have the path, separated by spaces, we can step through it
10156 # and add multilib dir if necessary.
10157 lt_tmp_lt_search_path_spec=
10158 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10159 for lt_sys_path in $lt_search_path_spec; do
10160 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10161 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10162 else
10163 test -d "$lt_sys_path" && \
10164 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10166 done
10167 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10168 BEGIN {RS=" "; FS="/|\n";} {
10169 lt_foo="";
10170 lt_count=0;
10171 for (lt_i = NF; lt_i > 0; lt_i--) {
10172 if ($lt_i != "" && $lt_i != ".") {
10173 if ($lt_i == "..") {
10174 lt_count++;
10175 } else {
10176 if (lt_count == 0) {
10177 lt_foo="/" $lt_i lt_foo;
10178 } else {
10179 lt_count--;
10184 if (lt_foo != "") { lt_freq[lt_foo]++; }
10185 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10187 # AWK program above erroneously prepends '/' to C:/dos/paths
10188 # for these hosts.
10189 case $host_os in
10190 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10191 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10192 esac
10193 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10194 else
10195 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10197 library_names_spec=
10198 libname_spec='lib$name'
10199 soname_spec=
10200 shrext_cmds=".so"
10201 postinstall_cmds=
10202 postuninstall_cmds=
10203 finish_cmds=
10204 finish_eval=
10205 shlibpath_var=
10206 shlibpath_overrides_runpath=unknown
10207 version_type=none
10208 dynamic_linker="$host_os ld.so"
10209 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10210 need_lib_prefix=unknown
10211 hardcode_into_libs=no
10213 # when you set need_version to no, make sure it does not cause -set_version
10214 # flags to be left without arguments
10215 need_version=unknown
10217 case $host_os in
10218 aix3*)
10219 version_type=linux
10220 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10221 shlibpath_var=LIBPATH
10223 # AIX 3 has no versioning support, so we append a major version to the name.
10224 soname_spec='${libname}${release}${shared_ext}$major'
10227 aix[4-9]*)
10228 version_type=linux
10229 need_lib_prefix=no
10230 need_version=no
10231 hardcode_into_libs=yes
10232 if test "$host_cpu" = ia64; then
10233 # AIX 5 supports IA64
10234 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 else
10237 # With GCC up to 2.95.x, collect2 would create an import file
10238 # for dependence libraries. The import file would start with
10239 # the line `#! .'. This would cause the generated library to
10240 # depend on `.', always an invalid library. This was fixed in
10241 # development snapshots of GCC prior to 3.0.
10242 case $host_os in
10243 aix4 | aix4.[01] | aix4.[01].*)
10244 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10245 echo ' yes '
10246 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10248 else
10249 can_build_shared=no
10252 esac
10253 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10254 # soname into executable. Probably we can add versioning support to
10255 # collect2, so additional links can be useful in future.
10256 if test "$aix_use_runtimelinking" = yes; then
10257 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10258 # instead of lib<name>.a to let people know that these are not
10259 # typical AIX shared libraries.
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10261 else
10262 # We preserve .a as extension for shared libraries through AIX4.2
10263 # and later when we are not doing run time linking.
10264 library_names_spec='${libname}${release}.a $libname.a'
10265 soname_spec='${libname}${release}${shared_ext}$major'
10267 shlibpath_var=LIBPATH
10271 amigaos*)
10272 case $host_cpu in
10273 powerpc)
10274 # Since July 2007 AmigaOS4 officially supports .so libraries.
10275 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10278 m68k)
10279 library_names_spec='$libname.ixlibrary $libname.a'
10280 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10281 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'
10283 esac
10286 beos*)
10287 library_names_spec='${libname}${shared_ext}'
10288 dynamic_linker="$host_os ld.so"
10289 shlibpath_var=LIBRARY_PATH
10292 bsdi[45]*)
10293 version_type=linux
10294 need_version=no
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10300 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10301 # the default ld.so.conf also contains /usr/contrib/lib and
10302 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10303 # libtool to hard-code these into programs
10306 cygwin* | mingw* | pw32* | cegcc*)
10307 version_type=windows
10308 shrext_cmds=".dll"
10309 need_version=no
10310 need_lib_prefix=no
10312 case $GCC,$host_os in
10313 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10314 library_names_spec='$libname.dll.a'
10315 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10316 postinstall_cmds='base_file=`basename \${file}`~
10317 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10318 dldir=$destdir/`dirname \$dlpath`~
10319 test -d \$dldir || mkdir -p \$dldir~
10320 $install_prog $dir/$dlname \$dldir/$dlname~
10321 chmod a+x \$dldir/$dlname~
10322 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10323 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10325 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10326 dlpath=$dir/\$dldll~
10327 $RM \$dlpath'
10328 shlibpath_overrides_runpath=yes
10330 case $host_os in
10331 cygwin*)
10332 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10333 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10335 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10337 mingw* | cegcc*)
10338 # MinGW DLLs use traditional 'lib' prefix
10339 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10341 pw32*)
10342 # pw32 DLLs use 'pw' prefix rather than 'lib'
10343 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10345 esac
10349 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10351 esac
10352 dynamic_linker='Win32 ld.exe'
10353 # FIXME: first we should search . and the directory the executable is in
10354 shlibpath_var=PATH
10357 darwin* | rhapsody*)
10358 dynamic_linker="$host_os dyld"
10359 version_type=darwin
10360 need_lib_prefix=no
10361 need_version=no
10362 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10363 soname_spec='${libname}${release}${major}$shared_ext'
10364 shlibpath_overrides_runpath=yes
10365 shlibpath_var=DYLD_LIBRARY_PATH
10366 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10368 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10369 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10372 dgux*)
10373 version_type=linux
10374 need_lib_prefix=no
10375 need_version=no
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 shlibpath_var=LD_LIBRARY_PATH
10381 freebsd* | dragonfly*)
10382 # DragonFly does not have aout. When/if they implement a new
10383 # versioning mechanism, adjust this.
10384 if test -x /usr/bin/objformat; then
10385 objformat=`/usr/bin/objformat`
10386 else
10387 case $host_os in
10388 freebsd[23].*) objformat=aout ;;
10389 *) objformat=elf ;;
10390 esac
10392 version_type=freebsd-$objformat
10393 case $version_type in
10394 freebsd-elf*)
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10396 need_version=no
10397 need_lib_prefix=no
10399 freebsd-*)
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10401 need_version=yes
10403 esac
10404 shlibpath_var=LD_LIBRARY_PATH
10405 case $host_os in
10406 freebsd2.*)
10407 shlibpath_overrides_runpath=yes
10409 freebsd3.[01]* | freebsdelf3.[01]*)
10410 shlibpath_overrides_runpath=yes
10411 hardcode_into_libs=yes
10413 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10414 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10415 shlibpath_overrides_runpath=no
10416 hardcode_into_libs=yes
10418 *) # from 4.6 on, and DragonFly
10419 shlibpath_overrides_runpath=yes
10420 hardcode_into_libs=yes
10422 esac
10425 gnu*)
10426 version_type=linux
10427 need_lib_prefix=no
10428 need_version=no
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10430 soname_spec='${libname}${release}${shared_ext}$major'
10431 shlibpath_var=LD_LIBRARY_PATH
10432 hardcode_into_libs=yes
10435 haiku*)
10436 version_type=linux
10437 need_lib_prefix=no
10438 need_version=no
10439 dynamic_linker="$host_os runtime_loader"
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10441 soname_spec='${libname}${release}${shared_ext}$major'
10442 shlibpath_var=LIBRARY_PATH
10443 shlibpath_overrides_runpath=yes
10444 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10445 hardcode_into_libs=yes
10448 hpux9* | hpux10* | hpux11*)
10449 # Give a soname corresponding to the major version so that dld.sl refuses to
10450 # link against other versions.
10451 version_type=sunos
10452 need_lib_prefix=no
10453 need_version=no
10454 case $host_cpu in
10455 ia64*)
10456 shrext_cmds='.so'
10457 hardcode_into_libs=yes
10458 dynamic_linker="$host_os dld.so"
10459 shlibpath_var=LD_LIBRARY_PATH
10460 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10462 soname_spec='${libname}${release}${shared_ext}$major'
10463 if test "X$HPUX_IA64_MODE" = X32; then
10464 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10465 else
10466 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10468 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10470 hppa*64*)
10471 shrext_cmds='.sl'
10472 hardcode_into_libs=yes
10473 dynamic_linker="$host_os dld.sl"
10474 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10477 soname_spec='${libname}${release}${shared_ext}$major'
10478 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10479 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10482 shrext_cmds='.sl'
10483 dynamic_linker="$host_os dld.sl"
10484 shlibpath_var=SHLIB_PATH
10485 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10487 soname_spec='${libname}${release}${shared_ext}$major'
10489 esac
10490 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10491 postinstall_cmds='chmod 555 $lib'
10492 # or fails outright, so override atomically:
10493 install_override_mode=555
10496 interix[3-9]*)
10497 version_type=linux
10498 need_lib_prefix=no
10499 need_version=no
10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10501 soname_spec='${libname}${release}${shared_ext}$major'
10502 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10503 shlibpath_var=LD_LIBRARY_PATH
10504 shlibpath_overrides_runpath=no
10505 hardcode_into_libs=yes
10508 irix5* | irix6* | nonstopux*)
10509 case $host_os in
10510 nonstopux*) version_type=nonstopux ;;
10512 if test "$lt_cv_prog_gnu_ld" = yes; then
10513 version_type=linux
10514 else
10515 version_type=irix
10516 fi ;;
10517 esac
10518 need_lib_prefix=no
10519 need_version=no
10520 soname_spec='${libname}${release}${shared_ext}$major'
10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10522 case $host_os in
10523 irix5* | nonstopux*)
10524 libsuff= shlibsuff=
10527 case $LD in # libtool.m4 will add one of these switches to LD
10528 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10529 libsuff= shlibsuff= libmagic=32-bit;;
10530 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10531 libsuff=32 shlibsuff=N32 libmagic=N32;;
10532 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10533 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10534 *) libsuff= shlibsuff= libmagic=never-match;;
10535 esac
10537 esac
10538 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10539 shlibpath_overrides_runpath=no
10540 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10541 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10542 hardcode_into_libs=yes
10545 # No shared lib support for Linux oldld, aout, or coff.
10546 linux*oldld* | linux*aout* | linux*coff*)
10547 dynamic_linker=no
10550 # This must be Linux ELF.
10551 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10552 version_type=linux
10553 need_lib_prefix=no
10554 need_version=no
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556 soname_spec='${libname}${release}${shared_ext}$major'
10557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10558 shlibpath_var=LD_LIBRARY_PATH
10559 shlibpath_overrides_runpath=no
10561 # Some binutils ld are patched to set DT_RUNPATH
10562 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10563 $as_echo_n "(cached) " >&6
10564 else
10565 lt_cv_shlibpath_overrides_runpath=no
10566 save_LDFLAGS=$LDFLAGS
10567 save_libdir=$libdir
10568 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10569 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571 /* end confdefs.h. */
10574 main ()
10578 return 0;
10580 _ACEOF
10581 if ac_fn_c_try_link "$LINENO"; then :
10582 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10583 lt_cv_shlibpath_overrides_runpath=yes
10586 rm -f core conftest.err conftest.$ac_objext \
10587 conftest$ac_exeext conftest.$ac_ext
10588 LDFLAGS=$save_LDFLAGS
10589 libdir=$save_libdir
10593 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10595 # This implies no fast_install, which is unacceptable.
10596 # Some rework will be needed to allow for fast_install
10597 # before this can be enabled.
10598 hardcode_into_libs=yes
10600 # Append ld.so.conf contents to the search path
10601 if test -f /etc/ld.so.conf; then
10602 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' ' '`
10603 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10606 # We used to test for /lib/ld.so.1 and disable shared libraries on
10607 # powerpc, because MkLinux only supported shared libraries with the
10608 # GNU dynamic linker. Since this was broken with cross compilers,
10609 # most powerpc-linux boxes support dynamic linking these days and
10610 # people can always --disable-shared, the test was removed, and we
10611 # assume the GNU/Linux dynamic linker is in use.
10612 dynamic_linker='GNU/Linux ld.so'
10615 netbsd*)
10616 version_type=sunos
10617 need_lib_prefix=no
10618 need_version=no
10619 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10622 dynamic_linker='NetBSD (a.out) ld.so'
10623 else
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10625 soname_spec='${libname}${release}${shared_ext}$major'
10626 dynamic_linker='NetBSD ld.elf_so'
10628 shlibpath_var=LD_LIBRARY_PATH
10629 shlibpath_overrides_runpath=yes
10630 hardcode_into_libs=yes
10633 newsos6)
10634 version_type=linux
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636 shlibpath_var=LD_LIBRARY_PATH
10637 shlibpath_overrides_runpath=yes
10640 *nto* | *qnx*)
10641 version_type=qnx
10642 need_lib_prefix=no
10643 need_version=no
10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645 soname_spec='${libname}${release}${shared_ext}$major'
10646 shlibpath_var=LD_LIBRARY_PATH
10647 shlibpath_overrides_runpath=no
10648 hardcode_into_libs=yes
10649 dynamic_linker='ldqnx.so'
10652 openbsd*)
10653 version_type=sunos
10654 sys_lib_dlsearch_path_spec="/usr/lib"
10655 need_lib_prefix=no
10656 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10657 case $host_os in
10658 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10659 *) need_version=no ;;
10660 esac
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10663 shlibpath_var=LD_LIBRARY_PATH
10664 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10665 case $host_os in
10666 openbsd2.[89] | openbsd2.[89].*)
10667 shlibpath_overrides_runpath=no
10670 shlibpath_overrides_runpath=yes
10672 esac
10673 else
10674 shlibpath_overrides_runpath=yes
10678 os2*)
10679 libname_spec='$name'
10680 shrext_cmds=".dll"
10681 need_lib_prefix=no
10682 library_names_spec='$libname${shared_ext} $libname.a'
10683 dynamic_linker='OS/2 ld.exe'
10684 shlibpath_var=LIBPATH
10687 osf3* | osf4* | osf5*)
10688 version_type=osf
10689 need_lib_prefix=no
10690 need_version=no
10691 soname_spec='${libname}${release}${shared_ext}$major'
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693 shlibpath_var=LD_LIBRARY_PATH
10694 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10695 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10698 rdos*)
10699 dynamic_linker=no
10702 solaris*)
10703 version_type=linux
10704 need_lib_prefix=no
10705 need_version=no
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 soname_spec='${libname}${release}${shared_ext}$major'
10708 shlibpath_var=LD_LIBRARY_PATH
10709 shlibpath_overrides_runpath=yes
10710 hardcode_into_libs=yes
10711 # ldd complains unless libraries are executable
10712 postinstall_cmds='chmod +x $lib'
10715 sunos4*)
10716 version_type=sunos
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10718 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10719 shlibpath_var=LD_LIBRARY_PATH
10720 shlibpath_overrides_runpath=yes
10721 if test "$with_gnu_ld" = yes; then
10722 need_lib_prefix=no
10724 need_version=yes
10727 sysv4 | sysv4.3*)
10728 version_type=linux
10729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10730 soname_spec='${libname}${release}${shared_ext}$major'
10731 shlibpath_var=LD_LIBRARY_PATH
10732 case $host_vendor in
10733 sni)
10734 shlibpath_overrides_runpath=no
10735 need_lib_prefix=no
10736 runpath_var=LD_RUN_PATH
10738 siemens)
10739 need_lib_prefix=no
10741 motorola)
10742 need_lib_prefix=no
10743 need_version=no
10744 shlibpath_overrides_runpath=no
10745 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10747 esac
10750 sysv4*MP*)
10751 if test -d /usr/nec ;then
10752 version_type=linux
10753 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10754 soname_spec='$libname${shared_ext}.$major'
10755 shlibpath_var=LD_LIBRARY_PATH
10759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10760 version_type=freebsd-elf
10761 need_lib_prefix=no
10762 need_version=no
10763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10764 soname_spec='${libname}${release}${shared_ext}$major'
10765 shlibpath_var=LD_LIBRARY_PATH
10766 shlibpath_overrides_runpath=yes
10767 hardcode_into_libs=yes
10768 if test "$with_gnu_ld" = yes; then
10769 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10770 else
10771 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10772 case $host_os in
10773 sco3.2v5*)
10774 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10776 esac
10778 sys_lib_dlsearch_path_spec='/usr/lib'
10781 tpf*)
10782 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10783 version_type=linux
10784 need_lib_prefix=no
10785 need_version=no
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787 shlibpath_var=LD_LIBRARY_PATH
10788 shlibpath_overrides_runpath=no
10789 hardcode_into_libs=yes
10792 uts4*)
10793 version_type=linux
10794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10795 soname_spec='${libname}${release}${shared_ext}$major'
10796 shlibpath_var=LD_LIBRARY_PATH
10800 dynamic_linker=no
10802 esac
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10804 $as_echo "$dynamic_linker" >&6; }
10805 test "$dynamic_linker" = no && can_build_shared=no
10807 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10808 if test "$GCC" = yes; then
10809 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10812 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10813 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10815 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10816 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10911 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10912 hardcode_action=
10913 if test -n "$hardcode_libdir_flag_spec" ||
10914 test -n "$runpath_var" ||
10915 test "X$hardcode_automatic" = "Xyes" ; then
10917 # We can hardcode non-existent directories.
10918 if test "$hardcode_direct" != no &&
10919 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10920 # have to relink, otherwise we might link with an installed library
10921 # when we should be linking with a yet-to-be-installed one
10922 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10923 test "$hardcode_minus_L" != no; then
10924 # Linking always hardcodes the temporary library directory.
10925 hardcode_action=relink
10926 else
10927 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10928 hardcode_action=immediate
10930 else
10931 # We cannot hardcode anything, or else we can only hardcode existing
10932 # directories.
10933 hardcode_action=unsupported
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10936 $as_echo "$hardcode_action" >&6; }
10938 if test "$hardcode_action" = relink ||
10939 test "$inherit_rpath" = yes; then
10940 # Fast installation is not supported
10941 enable_fast_install=no
10942 elif test "$shlibpath_overrides_runpath" = yes ||
10943 test "$enable_shared" = no; then
10944 # Fast installation is not necessary
10945 enable_fast_install=needless
10953 if test "x$enable_dlopen" != xyes; then
10954 enable_dlopen=unknown
10955 enable_dlopen_self=unknown
10956 enable_dlopen_self_static=unknown
10957 else
10958 lt_cv_dlopen=no
10959 lt_cv_dlopen_libs=
10961 case $host_os in
10962 beos*)
10963 lt_cv_dlopen="load_add_on"
10964 lt_cv_dlopen_libs=
10965 lt_cv_dlopen_self=yes
10968 mingw* | pw32* | cegcc*)
10969 lt_cv_dlopen="LoadLibrary"
10970 lt_cv_dlopen_libs=
10973 cygwin*)
10974 lt_cv_dlopen="dlopen"
10975 lt_cv_dlopen_libs=
10978 darwin*)
10979 # if libdl is installed we need to link against it
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10981 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10982 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10983 $as_echo_n "(cached) " >&6
10984 else
10985 ac_check_lib_save_LIBS=$LIBS
10986 LIBS="-ldl $LIBS"
10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10990 /* Override any GCC internal prototype to avoid an error.
10991 Use char because int might match the return type of a GCC
10992 builtin and then its argument prototype would still apply. */
10993 #ifdef __cplusplus
10994 extern "C"
10995 #endif
10996 char dlopen ();
10998 main ()
11000 return dlopen ();
11002 return 0;
11004 _ACEOF
11005 if ac_fn_c_try_link "$LINENO"; then :
11006 ac_cv_lib_dl_dlopen=yes
11007 else
11008 ac_cv_lib_dl_dlopen=no
11010 rm -f core conftest.err conftest.$ac_objext \
11011 conftest$ac_exeext conftest.$ac_ext
11012 LIBS=$ac_check_lib_save_LIBS
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11015 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11016 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11017 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11018 else
11020 lt_cv_dlopen="dyld"
11021 lt_cv_dlopen_libs=
11022 lt_cv_dlopen_self=yes
11029 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11030 if test "x$ac_cv_func_shl_load" = x""yes; then :
11031 lt_cv_dlopen="shl_load"
11032 else
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11034 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11035 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11036 $as_echo_n "(cached) " >&6
11037 else
11038 ac_check_lib_save_LIBS=$LIBS
11039 LIBS="-ldld $LIBS"
11040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041 /* end confdefs.h. */
11043 /* Override any GCC internal prototype to avoid an error.
11044 Use char because int might match the return type of a GCC
11045 builtin and then its argument prototype would still apply. */
11046 #ifdef __cplusplus
11047 extern "C"
11048 #endif
11049 char shl_load ();
11051 main ()
11053 return shl_load ();
11055 return 0;
11057 _ACEOF
11058 if ac_fn_c_try_link "$LINENO"; then :
11059 ac_cv_lib_dld_shl_load=yes
11060 else
11061 ac_cv_lib_dld_shl_load=no
11063 rm -f core conftest.err conftest.$ac_objext \
11064 conftest$ac_exeext conftest.$ac_ext
11065 LIBS=$ac_check_lib_save_LIBS
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11068 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11069 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11070 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11071 else
11072 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11073 if test "x$ac_cv_func_dlopen" = x""yes; then :
11074 lt_cv_dlopen="dlopen"
11075 else
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11077 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11078 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11079 $as_echo_n "(cached) " >&6
11080 else
11081 ac_check_lib_save_LIBS=$LIBS
11082 LIBS="-ldl $LIBS"
11083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h. */
11086 /* Override any GCC internal prototype to avoid an error.
11087 Use char because int might match the return type of a GCC
11088 builtin and then its argument prototype would still apply. */
11089 #ifdef __cplusplus
11090 extern "C"
11091 #endif
11092 char dlopen ();
11094 main ()
11096 return dlopen ();
11098 return 0;
11100 _ACEOF
11101 if ac_fn_c_try_link "$LINENO"; then :
11102 ac_cv_lib_dl_dlopen=yes
11103 else
11104 ac_cv_lib_dl_dlopen=no
11106 rm -f core conftest.err conftest.$ac_objext \
11107 conftest$ac_exeext conftest.$ac_ext
11108 LIBS=$ac_check_lib_save_LIBS
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11111 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11112 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11113 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11114 else
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11116 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11117 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11118 $as_echo_n "(cached) " >&6
11119 else
11120 ac_check_lib_save_LIBS=$LIBS
11121 LIBS="-lsvld $LIBS"
11122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11123 /* end confdefs.h. */
11125 /* Override any GCC internal prototype to avoid an error.
11126 Use char because int might match the return type of a GCC
11127 builtin and then its argument prototype would still apply. */
11128 #ifdef __cplusplus
11129 extern "C"
11130 #endif
11131 char dlopen ();
11133 main ()
11135 return dlopen ();
11137 return 0;
11139 _ACEOF
11140 if ac_fn_c_try_link "$LINENO"; then :
11141 ac_cv_lib_svld_dlopen=yes
11142 else
11143 ac_cv_lib_svld_dlopen=no
11145 rm -f core conftest.err conftest.$ac_objext \
11146 conftest$ac_exeext conftest.$ac_ext
11147 LIBS=$ac_check_lib_save_LIBS
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11150 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11151 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11152 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11153 else
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11155 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11156 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11157 $as_echo_n "(cached) " >&6
11158 else
11159 ac_check_lib_save_LIBS=$LIBS
11160 LIBS="-ldld $LIBS"
11161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11162 /* end confdefs.h. */
11164 /* Override any GCC internal prototype to avoid an error.
11165 Use char because int might match the return type of a GCC
11166 builtin and then its argument prototype would still apply. */
11167 #ifdef __cplusplus
11168 extern "C"
11169 #endif
11170 char dld_link ();
11172 main ()
11174 return dld_link ();
11176 return 0;
11178 _ACEOF
11179 if ac_fn_c_try_link "$LINENO"; then :
11180 ac_cv_lib_dld_dld_link=yes
11181 else
11182 ac_cv_lib_dld_dld_link=no
11184 rm -f core conftest.err conftest.$ac_objext \
11185 conftest$ac_exeext conftest.$ac_ext
11186 LIBS=$ac_check_lib_save_LIBS
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11189 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11190 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11191 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11210 esac
11212 if test "x$lt_cv_dlopen" != xno; then
11213 enable_dlopen=yes
11214 else
11215 enable_dlopen=no
11218 case $lt_cv_dlopen in
11219 dlopen)
11220 save_CPPFLAGS="$CPPFLAGS"
11221 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11223 save_LDFLAGS="$LDFLAGS"
11224 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11226 save_LIBS="$LIBS"
11227 LIBS="$lt_cv_dlopen_libs $LIBS"
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11230 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11231 if test "${lt_cv_dlopen_self+set}" = set; then :
11232 $as_echo_n "(cached) " >&6
11233 else
11234 if test "$cross_compiling" = yes; then :
11235 lt_cv_dlopen_self=cross
11236 else
11237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11238 lt_status=$lt_dlunknown
11239 cat > conftest.$ac_ext <<_LT_EOF
11240 #line 11240 "configure"
11241 #include "confdefs.h"
11243 #if HAVE_DLFCN_H
11244 #include <dlfcn.h>
11245 #endif
11247 #include <stdio.h>
11249 #ifdef RTLD_GLOBAL
11250 # define LT_DLGLOBAL RTLD_GLOBAL
11251 #else
11252 # ifdef DL_GLOBAL
11253 # define LT_DLGLOBAL DL_GLOBAL
11254 # else
11255 # define LT_DLGLOBAL 0
11256 # endif
11257 #endif
11259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11260 find out it does not work in some platform. */
11261 #ifndef LT_DLLAZY_OR_NOW
11262 # ifdef RTLD_LAZY
11263 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11264 # else
11265 # ifdef DL_LAZY
11266 # define LT_DLLAZY_OR_NOW DL_LAZY
11267 # else
11268 # ifdef RTLD_NOW
11269 # define LT_DLLAZY_OR_NOW RTLD_NOW
11270 # else
11271 # ifdef DL_NOW
11272 # define LT_DLLAZY_OR_NOW DL_NOW
11273 # else
11274 # define LT_DLLAZY_OR_NOW 0
11275 # endif
11276 # endif
11277 # endif
11278 # endif
11279 #endif
11281 /* When -fvisbility=hidden is used, assume the code has been annotated
11282 correspondingly for the symbols needed. */
11283 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11284 void fnord () __attribute__((visibility("default")));
11285 #endif
11287 void fnord () { int i=42; }
11288 int main ()
11290 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11291 int status = $lt_dlunknown;
11293 if (self)
11295 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11296 else
11298 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11299 else puts (dlerror ());
11301 /* dlclose (self); */
11303 else
11304 puts (dlerror ());
11306 return status;
11308 _LT_EOF
11309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11310 (eval $ac_link) 2>&5
11311 ac_status=$?
11312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11313 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11314 (./conftest; exit; ) >&5 2>/dev/null
11315 lt_status=$?
11316 case x$lt_status in
11317 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11318 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11319 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11320 esac
11321 else :
11322 # compilation failed
11323 lt_cv_dlopen_self=no
11326 rm -fr conftest*
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11331 $as_echo "$lt_cv_dlopen_self" >&6; }
11333 if test "x$lt_cv_dlopen_self" = xyes; then
11334 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11336 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11337 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11338 $as_echo_n "(cached) " >&6
11339 else
11340 if test "$cross_compiling" = yes; then :
11341 lt_cv_dlopen_self_static=cross
11342 else
11343 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11344 lt_status=$lt_dlunknown
11345 cat > conftest.$ac_ext <<_LT_EOF
11346 #line 11346 "configure"
11347 #include "confdefs.h"
11349 #if HAVE_DLFCN_H
11350 #include <dlfcn.h>
11351 #endif
11353 #include <stdio.h>
11355 #ifdef RTLD_GLOBAL
11356 # define LT_DLGLOBAL RTLD_GLOBAL
11357 #else
11358 # ifdef DL_GLOBAL
11359 # define LT_DLGLOBAL DL_GLOBAL
11360 # else
11361 # define LT_DLGLOBAL 0
11362 # endif
11363 #endif
11365 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11366 find out it does not work in some platform. */
11367 #ifndef LT_DLLAZY_OR_NOW
11368 # ifdef RTLD_LAZY
11369 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11370 # else
11371 # ifdef DL_LAZY
11372 # define LT_DLLAZY_OR_NOW DL_LAZY
11373 # else
11374 # ifdef RTLD_NOW
11375 # define LT_DLLAZY_OR_NOW RTLD_NOW
11376 # else
11377 # ifdef DL_NOW
11378 # define LT_DLLAZY_OR_NOW DL_NOW
11379 # else
11380 # define LT_DLLAZY_OR_NOW 0
11381 # endif
11382 # endif
11383 # endif
11384 # endif
11385 #endif
11387 /* When -fvisbility=hidden is used, assume the code has been annotated
11388 correspondingly for the symbols needed. */
11389 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11390 void fnord () __attribute__((visibility("default")));
11391 #endif
11393 void fnord () { int i=42; }
11394 int main ()
11396 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11397 int status = $lt_dlunknown;
11399 if (self)
11401 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11402 else
11404 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11405 else puts (dlerror ());
11407 /* dlclose (self); */
11409 else
11410 puts (dlerror ());
11412 return status;
11414 _LT_EOF
11415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11416 (eval $ac_link) 2>&5
11417 ac_status=$?
11418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11419 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11420 (./conftest; exit; ) >&5 2>/dev/null
11421 lt_status=$?
11422 case x$lt_status in
11423 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11424 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11425 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11426 esac
11427 else :
11428 # compilation failed
11429 lt_cv_dlopen_self_static=no
11432 rm -fr conftest*
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11437 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11440 CPPFLAGS="$save_CPPFLAGS"
11441 LDFLAGS="$save_LDFLAGS"
11442 LIBS="$save_LIBS"
11444 esac
11446 case $lt_cv_dlopen_self in
11447 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11448 *) enable_dlopen_self=unknown ;;
11449 esac
11451 case $lt_cv_dlopen_self_static in
11452 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11453 *) enable_dlopen_self_static=unknown ;;
11454 esac
11473 striplib=
11474 old_striplib=
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11476 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11477 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11478 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11479 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11481 $as_echo "yes" >&6; }
11482 else
11483 # FIXME - insert some real tests, host_os isn't really good enough
11484 case $host_os in
11485 darwin*)
11486 if test -n "$STRIP" ; then
11487 striplib="$STRIP -x"
11488 old_striplib="$STRIP -S"
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11490 $as_echo "yes" >&6; }
11491 else
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11493 $as_echo "no" >&6; }
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498 $as_echo "no" >&6; }
11500 esac
11514 # Report which library types will actually be built
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11516 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11518 $as_echo "$can_build_shared" >&6; }
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11521 $as_echo_n "checking whether to build shared libraries... " >&6; }
11522 test "$can_build_shared" = "no" && enable_shared=no
11524 # On AIX, shared libraries and static libraries use the same namespace, and
11525 # are all built from PIC.
11526 case $host_os in
11527 aix3*)
11528 test "$enable_shared" = yes && enable_static=no
11529 if test -n "$RANLIB"; then
11530 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11531 postinstall_cmds='$RANLIB $lib'
11535 aix[4-9]*)
11536 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11537 test "$enable_shared" = yes && enable_static=no
11540 esac
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11542 $as_echo "$enable_shared" >&6; }
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11545 $as_echo_n "checking whether to build static libraries... " >&6; }
11546 # Make sure either enable_shared or enable_static is yes.
11547 test "$enable_shared" = yes || enable_static=yes
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11549 $as_echo "$enable_static" >&6; }
11555 ac_ext=c
11556 ac_cpp='$CPP $CPPFLAGS'
11557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11561 CC="$lt_save_CC"
11575 ac_config_commands="$ac_config_commands libtool"
11580 # Only expand once:
11586 XCFLAGS="-Wall -Wextra"
11587 # Add CET specific flags if CET is enabled
11588 # Check whether --enable-cet was given.
11589 if test "${enable_cet+set}" = set; then :
11590 enableval=$enable_cet;
11591 case "$enableval" in
11592 yes|no|default) ;;
11593 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
11594 esac
11596 else
11597 enable_cet=default
11601 case "$host" in
11602 i[34567]86-*-linux* | x86_64-*-linux*)
11603 case "$enable_cet" in
11604 default)
11605 # Check if assembler supports CET.
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11610 main ()
11612 asm ("setssbsy");
11614 return 0;
11616 _ACEOF
11617 if ac_fn_c_try_compile "$LINENO"; then :
11618 enable_cet=yes
11619 else
11620 enable_cet=no
11622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11624 yes)
11625 # Check if assembler supports CET.
11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11630 main ()
11632 asm ("setssbsy");
11634 return 0;
11636 _ACEOF
11637 if ac_fn_c_try_compile "$LINENO"; then :
11639 else
11640 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
11642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11644 esac
11647 enable_cet=no
11649 esac
11650 if test x$enable_cet = xyes; then
11651 CET_FLAGS="-fcf-protection -mcet"
11654 XCFLAGS="$XCFLAGS $CET_FLAGS"
11658 if test "${multilib}" = "yes"; then
11659 multilib_arg="--enable-multilib"
11660 else
11661 multilib_arg=
11664 # Determine what GCC version number to use in filesystem paths.
11666 get_gcc_base_ver="cat"
11668 # Check whether --with-gcc-major-version-only was given.
11669 if test "${with_gcc_major_version_only+set}" = set; then :
11670 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11671 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
11679 ac_config_files="$ac_config_files Makefile libmpx.spec"
11681 ac_config_headers="$ac_config_headers config.h"
11683 ac_config_files="$ac_config_files mpxrt/Makefile mpxwrap/Makefile"
11686 cat >confcache <<\_ACEOF
11687 # This file is a shell script that caches the results of configure
11688 # tests run on this system so they can be shared between configure
11689 # scripts and configure runs, see configure's option --config-cache.
11690 # It is not useful on other systems. If it contains results you don't
11691 # want to keep, you may remove or edit it.
11693 # config.status only pays attention to the cache file if you give it
11694 # the --recheck option to rerun configure.
11696 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11697 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11698 # following values.
11700 _ACEOF
11702 # The following way of writing the cache mishandles newlines in values,
11703 # but we know of no workaround that is simple, portable, and efficient.
11704 # So, we kill variables containing newlines.
11705 # Ultrix sh set writes to stderr and can't be redirected directly,
11706 # and sets the high bit in the cache file unless we assign to the vars.
11708 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11709 eval ac_val=\$$ac_var
11710 case $ac_val in #(
11711 *${as_nl}*)
11712 case $ac_var in #(
11713 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11714 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11715 esac
11716 case $ac_var in #(
11717 _ | IFS | as_nl) ;; #(
11718 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11719 *) { eval $ac_var=; unset $ac_var;} ;;
11720 esac ;;
11721 esac
11722 done
11724 (set) 2>&1 |
11725 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11726 *${as_nl}ac_space=\ *)
11727 # `set' does not quote correctly, so add quotes: double-quote
11728 # substitution turns \\\\ into \\, and sed turns \\ into \.
11729 sed -n \
11730 "s/'/'\\\\''/g;
11731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11732 ;; #(
11734 # `set' quotes correctly as required by POSIX, so do not add quotes.
11735 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11737 esac |
11738 sort
11740 sed '
11741 /^ac_cv_env_/b end
11742 t clear
11743 :clear
11744 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11745 t end
11746 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11747 :end' >>confcache
11748 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11749 if test -w "$cache_file"; then
11750 test "x$cache_file" != "x/dev/null" &&
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11752 $as_echo "$as_me: updating cache $cache_file" >&6;}
11753 cat confcache >$cache_file
11754 else
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11756 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11759 rm -f confcache
11761 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11762 # Let make expand exec_prefix.
11763 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11765 DEFS=-DHAVE_CONFIG_H
11767 ac_libobjs=
11768 ac_ltlibobjs=
11769 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11770 # 1. Remove the extension, and $U if already installed.
11771 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11772 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11773 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11774 # will be set to the directory where LIBOBJS objects are built.
11775 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11776 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11777 done
11778 LIBOBJS=$ac_libobjs
11780 LTLIBOBJS=$ac_ltlibobjs
11783 if test -z "${LIBMPX_SUPPORTED_TRUE}" && test -z "${LIBMPX_SUPPORTED_FALSE}"; then
11784 as_fn_error "conditional \"LIBMPX_SUPPORTED\" was never defined.
11785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11787 if test -n "$EXEEXT"; then
11788 am__EXEEXT_TRUE=
11789 am__EXEEXT_FALSE='#'
11790 else
11791 am__EXEEXT_TRUE='#'
11792 am__EXEEXT_FALSE=
11795 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11796 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11799 if test -z "${MPX_AS_SUPPORTED_TRUE}" && test -z "${MPX_AS_SUPPORTED_FALSE}"; then
11800 as_fn_error "conditional \"MPX_AS_SUPPORTED\" was never defined.
11801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11804 : ${CONFIG_STATUS=./config.status}
11805 ac_write_fail=0
11806 ac_clean_files_save=$ac_clean_files
11807 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11809 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11810 as_write_fail=0
11811 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11812 #! $SHELL
11813 # Generated by $as_me.
11814 # Run this file to recreate the current configuration.
11815 # Compiler output produced by configure, useful for debugging
11816 # configure, is in config.log if it exists.
11818 debug=false
11819 ac_cs_recheck=false
11820 ac_cs_silent=false
11822 SHELL=\${CONFIG_SHELL-$SHELL}
11823 export SHELL
11824 _ASEOF
11825 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11826 ## -------------------- ##
11827 ## M4sh Initialization. ##
11828 ## -------------------- ##
11830 # Be more Bourne compatible
11831 DUALCASE=1; export DUALCASE # for MKS sh
11832 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11833 emulate sh
11834 NULLCMD=:
11835 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11836 # is contrary to our usage. Disable this feature.
11837 alias -g '${1+"$@"}'='"$@"'
11838 setopt NO_GLOB_SUBST
11839 else
11840 case `(set -o) 2>/dev/null` in #(
11841 *posix*) :
11842 set -o posix ;; #(
11843 *) :
11845 esac
11849 as_nl='
11851 export as_nl
11852 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11853 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11854 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11855 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11856 # Prefer a ksh shell builtin over an external printf program on Solaris,
11857 # but without wasting forks for bash or zsh.
11858 if test -z "$BASH_VERSION$ZSH_VERSION" \
11859 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11860 as_echo='print -r --'
11861 as_echo_n='print -rn --'
11862 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11863 as_echo='printf %s\n'
11864 as_echo_n='printf %s'
11865 else
11866 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11867 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11868 as_echo_n='/usr/ucb/echo -n'
11869 else
11870 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11871 as_echo_n_body='eval
11872 arg=$1;
11873 case $arg in #(
11874 *"$as_nl"*)
11875 expr "X$arg" : "X\\(.*\\)$as_nl";
11876 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11877 esac;
11878 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11880 export as_echo_n_body
11881 as_echo_n='sh -c $as_echo_n_body as_echo'
11883 export as_echo_body
11884 as_echo='sh -c $as_echo_body as_echo'
11887 # The user is always right.
11888 if test "${PATH_SEPARATOR+set}" != set; then
11889 PATH_SEPARATOR=:
11890 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11891 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11892 PATH_SEPARATOR=';'
11897 # IFS
11898 # We need space, tab and new line, in precisely that order. Quoting is
11899 # there to prevent editors from complaining about space-tab.
11900 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11901 # splitting by setting IFS to empty value.)
11902 IFS=" "" $as_nl"
11904 # Find who we are. Look in the path if we contain no directory separator.
11905 case $0 in #((
11906 *[\\/]* ) as_myself=$0 ;;
11907 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11908 for as_dir in $PATH
11910 IFS=$as_save_IFS
11911 test -z "$as_dir" && as_dir=.
11912 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11913 done
11914 IFS=$as_save_IFS
11917 esac
11918 # We did not find ourselves, most probably we were run as `sh COMMAND'
11919 # in which case we are not to be found in the path.
11920 if test "x$as_myself" = x; then
11921 as_myself=$0
11923 if test ! -f "$as_myself"; then
11924 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11925 exit 1
11928 # Unset variables that we do not need and which cause bugs (e.g. in
11929 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11930 # suppresses any "Segmentation fault" message there. '((' could
11931 # trigger a bug in pdksh 5.2.14.
11932 for as_var in BASH_ENV ENV MAIL MAILPATH
11933 do eval test x\${$as_var+set} = xset \
11934 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11935 done
11936 PS1='$ '
11937 PS2='> '
11938 PS4='+ '
11940 # NLS nuisances.
11941 LC_ALL=C
11942 export LC_ALL
11943 LANGUAGE=C
11944 export LANGUAGE
11946 # CDPATH.
11947 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11950 # as_fn_error ERROR [LINENO LOG_FD]
11951 # ---------------------------------
11952 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11953 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11954 # script with status $?, using 1 if that was 0.
11955 as_fn_error ()
11957 as_status=$?; test $as_status -eq 0 && as_status=1
11958 if test "$3"; then
11959 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11960 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11962 $as_echo "$as_me: error: $1" >&2
11963 as_fn_exit $as_status
11964 } # as_fn_error
11967 # as_fn_set_status STATUS
11968 # -----------------------
11969 # Set $? to STATUS, without forking.
11970 as_fn_set_status ()
11972 return $1
11973 } # as_fn_set_status
11975 # as_fn_exit STATUS
11976 # -----------------
11977 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11978 as_fn_exit ()
11980 set +e
11981 as_fn_set_status $1
11982 exit $1
11983 } # as_fn_exit
11985 # as_fn_unset VAR
11986 # ---------------
11987 # Portably unset VAR.
11988 as_fn_unset ()
11990 { eval $1=; unset $1;}
11992 as_unset=as_fn_unset
11993 # as_fn_append VAR VALUE
11994 # ----------------------
11995 # Append the text in VALUE to the end of the definition contained in VAR. Take
11996 # advantage of any shell optimizations that allow amortized linear growth over
11997 # repeated appends, instead of the typical quadratic growth present in naive
11998 # implementations.
11999 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12000 eval 'as_fn_append ()
12002 eval $1+=\$2
12004 else
12005 as_fn_append ()
12007 eval $1=\$$1\$2
12009 fi # as_fn_append
12011 # as_fn_arith ARG...
12012 # ------------------
12013 # Perform arithmetic evaluation on the ARGs, and store the result in the
12014 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12015 # must be portable across $(()) and expr.
12016 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12017 eval 'as_fn_arith ()
12019 as_val=$(( $* ))
12021 else
12022 as_fn_arith ()
12024 as_val=`expr "$@" || test $? -eq 1`
12026 fi # as_fn_arith
12029 if expr a : '\(a\)' >/dev/null 2>&1 &&
12030 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12031 as_expr=expr
12032 else
12033 as_expr=false
12036 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12037 as_basename=basename
12038 else
12039 as_basename=false
12042 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12043 as_dirname=dirname
12044 else
12045 as_dirname=false
12048 as_me=`$as_basename -- "$0" ||
12049 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12050 X"$0" : 'X\(//\)$' \| \
12051 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12052 $as_echo X/"$0" |
12053 sed '/^.*\/\([^/][^/]*\)\/*$/{
12054 s//\1/
12057 /^X\/\(\/\/\)$/{
12058 s//\1/
12061 /^X\/\(\/\).*/{
12062 s//\1/
12065 s/.*/./; q'`
12067 # Avoid depending upon Character Ranges.
12068 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12069 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12070 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12071 as_cr_digits='0123456789'
12072 as_cr_alnum=$as_cr_Letters$as_cr_digits
12074 ECHO_C= ECHO_N= ECHO_T=
12075 case `echo -n x` in #(((((
12076 -n*)
12077 case `echo 'xy\c'` in
12078 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12079 xy) ECHO_C='\c';;
12080 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12081 ECHO_T=' ';;
12082 esac;;
12084 ECHO_N='-n';;
12085 esac
12087 rm -f conf$$ conf$$.exe conf$$.file
12088 if test -d conf$$.dir; then
12089 rm -f conf$$.dir/conf$$.file
12090 else
12091 rm -f conf$$.dir
12092 mkdir conf$$.dir 2>/dev/null
12094 if (echo >conf$$.file) 2>/dev/null; then
12095 if ln -s conf$$.file conf$$ 2>/dev/null; then
12096 as_ln_s='ln -s'
12097 # ... but there are two gotchas:
12098 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12099 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12100 # In both cases, we have to default to `cp -p'.
12101 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12102 as_ln_s='cp -p'
12103 elif ln conf$$.file conf$$ 2>/dev/null; then
12104 as_ln_s=ln
12105 else
12106 as_ln_s='cp -p'
12108 else
12109 as_ln_s='cp -p'
12111 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12112 rmdir conf$$.dir 2>/dev/null
12115 # as_fn_mkdir_p
12116 # -------------
12117 # Create "$as_dir" as a directory, including parents if necessary.
12118 as_fn_mkdir_p ()
12121 case $as_dir in #(
12122 -*) as_dir=./$as_dir;;
12123 esac
12124 test -d "$as_dir" || eval $as_mkdir_p || {
12125 as_dirs=
12126 while :; do
12127 case $as_dir in #(
12128 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12129 *) as_qdir=$as_dir;;
12130 esac
12131 as_dirs="'$as_qdir' $as_dirs"
12132 as_dir=`$as_dirname -- "$as_dir" ||
12133 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12134 X"$as_dir" : 'X\(//\)[^/]' \| \
12135 X"$as_dir" : 'X\(//\)$' \| \
12136 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12137 $as_echo X"$as_dir" |
12138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12139 s//\1/
12142 /^X\(\/\/\)[^/].*/{
12143 s//\1/
12146 /^X\(\/\/\)$/{
12147 s//\1/
12150 /^X\(\/\).*/{
12151 s//\1/
12154 s/.*/./; q'`
12155 test -d "$as_dir" && break
12156 done
12157 test -z "$as_dirs" || eval "mkdir $as_dirs"
12158 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12161 } # as_fn_mkdir_p
12162 if mkdir -p . 2>/dev/null; then
12163 as_mkdir_p='mkdir -p "$as_dir"'
12164 else
12165 test -d ./-p && rmdir ./-p
12166 as_mkdir_p=false
12169 if test -x / >/dev/null 2>&1; then
12170 as_test_x='test -x'
12171 else
12172 if ls -dL / >/dev/null 2>&1; then
12173 as_ls_L_option=L
12174 else
12175 as_ls_L_option=
12177 as_test_x='
12178 eval sh -c '\''
12179 if test -d "$1"; then
12180 test -d "$1/.";
12181 else
12182 case $1 in #(
12183 -*)set "./$1";;
12184 esac;
12185 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12186 ???[sx]*):;;*)false;;esac;fi
12187 '\'' sh
12190 as_executable_p=$as_test_x
12192 # Sed expression to map a string onto a valid CPP name.
12193 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12195 # Sed expression to map a string onto a valid variable name.
12196 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12199 exec 6>&1
12200 ## ----------------------------------- ##
12201 ## Main body of $CONFIG_STATUS script. ##
12202 ## ----------------------------------- ##
12203 _ASEOF
12204 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12207 # Save the log message, to keep $0 and so on meaningful, and to
12208 # report actual input values of CONFIG_FILES etc. instead of their
12209 # values after options handling.
12210 ac_log="
12211 This file was extended by package-unused $as_me version-unused, which was
12212 generated by GNU Autoconf 2.64. Invocation command line was
12214 CONFIG_FILES = $CONFIG_FILES
12215 CONFIG_HEADERS = $CONFIG_HEADERS
12216 CONFIG_LINKS = $CONFIG_LINKS
12217 CONFIG_COMMANDS = $CONFIG_COMMANDS
12218 $ $0 $@
12220 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12223 _ACEOF
12225 case $ac_config_files in *"
12226 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12227 esac
12229 case $ac_config_headers in *"
12230 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12231 esac
12234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12235 # Files that config.status was made for.
12236 config_files="$ac_config_files"
12237 config_headers="$ac_config_headers"
12238 config_commands="$ac_config_commands"
12240 _ACEOF
12242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12243 ac_cs_usage="\
12244 \`$as_me' instantiates files and other configuration actions
12245 from templates according to the current configuration. Unless the files
12246 and actions are specified as TAGs, all are instantiated by default.
12248 Usage: $0 [OPTION]... [TAG]...
12250 -h, --help print this help, then exit
12251 -V, --version print version number and configuration settings, then exit
12252 -q, --quiet, --silent
12253 do not print progress messages
12254 -d, --debug don't remove temporary files
12255 --recheck update $as_me by reconfiguring in the same conditions
12256 --file=FILE[:TEMPLATE]
12257 instantiate the configuration file FILE
12258 --header=FILE[:TEMPLATE]
12259 instantiate the configuration header FILE
12261 Configuration files:
12262 $config_files
12264 Configuration headers:
12265 $config_headers
12267 Configuration commands:
12268 $config_commands
12270 Report bugs to <libmpx>."
12272 _ACEOF
12273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12274 ac_cs_version="\\
12275 package-unused config.status version-unused
12276 configured by $0, generated by GNU Autoconf 2.64,
12277 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12279 Copyright (C) 2009 Free Software Foundation, Inc.
12280 This config.status script is free software; the Free Software Foundation
12281 gives unlimited permission to copy, distribute and modify it."
12283 ac_pwd='$ac_pwd'
12284 srcdir='$srcdir'
12285 INSTALL='$INSTALL'
12286 MKDIR_P='$MKDIR_P'
12287 AWK='$AWK'
12288 test -n "\$AWK" || AWK=awk
12289 _ACEOF
12291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12292 # The default lists apply if the user does not specify any file.
12293 ac_need_defaults=:
12294 while test $# != 0
12296 case $1 in
12297 --*=*)
12298 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12299 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12300 ac_shift=:
12303 ac_option=$1
12304 ac_optarg=$2
12305 ac_shift=shift
12307 esac
12309 case $ac_option in
12310 # Handling of the options.
12311 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12312 ac_cs_recheck=: ;;
12313 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12314 $as_echo "$ac_cs_version"; exit ;;
12315 --debug | --debu | --deb | --de | --d | -d )
12316 debug=: ;;
12317 --file | --fil | --fi | --f )
12318 $ac_shift
12319 case $ac_optarg in
12320 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12321 esac
12322 as_fn_append CONFIG_FILES " '$ac_optarg'"
12323 ac_need_defaults=false;;
12324 --header | --heade | --head | --hea )
12325 $ac_shift
12326 case $ac_optarg in
12327 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12328 esac
12329 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12330 ac_need_defaults=false;;
12331 --he | --h)
12332 # Conflict between --help and --header
12333 as_fn_error "ambiguous option: \`$1'
12334 Try \`$0 --help' for more information.";;
12335 --help | --hel | -h )
12336 $as_echo "$ac_cs_usage"; exit ;;
12337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12338 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12339 ac_cs_silent=: ;;
12341 # This is an error.
12342 -*) as_fn_error "unrecognized option: \`$1'
12343 Try \`$0 --help' for more information." ;;
12345 *) as_fn_append ac_config_targets " $1"
12346 ac_need_defaults=false ;;
12348 esac
12349 shift
12350 done
12352 ac_configure_extra_args=
12354 if $ac_cs_silent; then
12355 exec 6>/dev/null
12356 ac_configure_extra_args="$ac_configure_extra_args --silent"
12359 _ACEOF
12360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12361 if \$ac_cs_recheck; then
12362 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12363 shift
12364 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12365 CONFIG_SHELL='$SHELL'
12366 export CONFIG_SHELL
12367 exec "\$@"
12370 _ACEOF
12371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12372 exec 5>>config.log
12374 echo
12375 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12376 ## Running $as_me. ##
12377 _ASBOX
12378 $as_echo "$ac_log"
12379 } >&5
12381 _ACEOF
12382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12384 # INIT-COMMANDS
12387 srcdir="$srcdir"
12388 host="$host"
12389 target="$target"
12390 with_multisubdir="$with_multisubdir"
12391 with_multisrctop="$with_multisrctop"
12392 with_target_subdir="$with_target_subdir"
12393 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12394 multi_basedir="$multi_basedir"
12395 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12396 CC="$CC"
12397 CXX="$CXX"
12398 GFORTRAN="$GFORTRAN"
12401 # The HP-UX ksh and POSIX shell print the target directory to stdout
12402 # if CDPATH is set.
12403 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12405 sed_quote_subst='$sed_quote_subst'
12406 double_quote_subst='$double_quote_subst'
12407 delay_variable_subst='$delay_variable_subst'
12408 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12409 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12410 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12411 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12412 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12413 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12414 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12415 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12416 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12417 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12418 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12419 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12420 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12421 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12422 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12423 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12424 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12425 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12426 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12427 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12428 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12429 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12430 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12431 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12432 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12433 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12434 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12435 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12436 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12437 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12438 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12439 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12440 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12441 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12442 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12443 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12444 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12445 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12446 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12447 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12448 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12449 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12450 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12451 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12452 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12453 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12454 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12455 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12456 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"`'
12457 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12458 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12459 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12460 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12461 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12462 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12463 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12464 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12465 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12466 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12467 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12468 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12469 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12470 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12471 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12472 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12473 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12474 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12475 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12476 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12477 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12478 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12479 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12480 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12481 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12482 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12483 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12484 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12485 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12486 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12487 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12488 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12489 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12490 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12491 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12492 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12493 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12494 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12495 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12496 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12497 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12498 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12499 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12500 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12501 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12502 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12503 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12504 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12505 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12506 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12507 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12508 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12509 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12510 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12511 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12512 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12513 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12514 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12515 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12516 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12517 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12518 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12519 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12520 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12521 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12522 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12523 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12524 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12525 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12526 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12527 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12529 LTCC='$LTCC'
12530 LTCFLAGS='$LTCFLAGS'
12531 compiler='$compiler_DEFAULT'
12533 # A function that is used when there is no print builtin or printf.
12534 func_fallback_echo ()
12536 eval 'cat <<_LTECHO_EOF
12538 _LTECHO_EOF'
12541 # Quote evaled strings.
12542 for var in SHELL \
12543 ECHO \
12544 SED \
12545 GREP \
12546 EGREP \
12547 FGREP \
12548 LD \
12549 NM \
12550 LN_S \
12551 lt_SP2NL \
12552 lt_NL2SP \
12553 reload_flag \
12554 OBJDUMP \
12555 deplibs_check_method \
12556 file_magic_cmd \
12557 AR \
12558 AR_FLAGS \
12559 STRIP \
12560 RANLIB \
12561 CC \
12562 CFLAGS \
12563 compiler \
12564 lt_cv_sys_global_symbol_pipe \
12565 lt_cv_sys_global_symbol_to_cdecl \
12566 lt_cv_sys_global_symbol_to_c_name_address \
12567 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12568 lt_prog_compiler_no_builtin_flag \
12569 lt_prog_compiler_wl \
12570 lt_prog_compiler_pic \
12571 lt_prog_compiler_static \
12572 lt_cv_prog_compiler_c_o \
12573 need_locks \
12574 DSYMUTIL \
12575 NMEDIT \
12576 LIPO \
12577 OTOOL \
12578 OTOOL64 \
12579 shrext_cmds \
12580 export_dynamic_flag_spec \
12581 whole_archive_flag_spec \
12582 compiler_needs_object \
12583 with_gnu_ld \
12584 allow_undefined_flag \
12585 no_undefined_flag \
12586 hardcode_libdir_flag_spec \
12587 hardcode_libdir_flag_spec_ld \
12588 hardcode_libdir_separator \
12589 fix_srcfile_path \
12590 exclude_expsyms \
12591 include_expsyms \
12592 file_list_spec \
12593 variables_saved_for_relink \
12594 libname_spec \
12595 library_names_spec \
12596 soname_spec \
12597 install_override_mode \
12598 finish_eval \
12599 old_striplib \
12600 striplib; do
12601 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12602 *[\\\\\\\`\\"\\\$]*)
12603 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12606 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12608 esac
12609 done
12611 # Double-quote double-evaled strings.
12612 for var in reload_cmds \
12613 old_postinstall_cmds \
12614 old_postuninstall_cmds \
12615 old_archive_cmds \
12616 extract_expsyms_cmds \
12617 old_archive_from_new_cmds \
12618 old_archive_from_expsyms_cmds \
12619 archive_cmds \
12620 archive_expsym_cmds \
12621 module_cmds \
12622 module_expsym_cmds \
12623 export_symbols_cmds \
12624 prelink_cmds \
12625 postinstall_cmds \
12626 postuninstall_cmds \
12627 finish_cmds \
12628 sys_lib_search_path_spec \
12629 sys_lib_dlsearch_path_spec; do
12630 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12631 *[\\\\\\\`\\"\\\$]*)
12632 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12635 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12637 esac
12638 done
12640 ac_aux_dir='$ac_aux_dir'
12641 xsi_shell='$xsi_shell'
12642 lt_shell_append='$lt_shell_append'
12644 # See if we are running on zsh, and set the options which allow our
12645 # commands through without removal of \ escapes INIT.
12646 if test -n "\${ZSH_VERSION+set}" ; then
12647 setopt NO_GLOB_SUBST
12651 PACKAGE='$PACKAGE'
12652 VERSION='$VERSION'
12653 TIMESTAMP='$TIMESTAMP'
12654 RM='$RM'
12655 ofile='$ofile'
12660 _ACEOF
12662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12664 # Handling of arguments.
12665 for ac_config_target in $ac_config_targets
12667 case $ac_config_target in
12668 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12669 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12670 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12671 "libmpx.spec") CONFIG_FILES="$CONFIG_FILES libmpx.spec" ;;
12672 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12673 "mpxrt/Makefile") CONFIG_FILES="$CONFIG_FILES mpxrt/Makefile" ;;
12674 "mpxwrap/Makefile") CONFIG_FILES="$CONFIG_FILES mpxwrap/Makefile" ;;
12676 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12677 esac
12678 done
12681 # If the user did not use the arguments to specify the items to instantiate,
12682 # then the envvar interface is used. Set only those that are not.
12683 # We use the long form for the default assignment because of an extremely
12684 # bizarre bug on SunOS 4.1.3.
12685 if $ac_need_defaults; then
12686 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12687 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12688 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12691 # Have a temporary directory for convenience. Make it in the build tree
12692 # simply because there is no reason against having it here, and in addition,
12693 # creating and moving files from /tmp can sometimes cause problems.
12694 # Hook for its removal unless debugging.
12695 # Note that there is a small window in which the directory will not be cleaned:
12696 # after its creation but before its name has been assigned to `$tmp'.
12697 $debug ||
12699 tmp=
12700 trap 'exit_status=$?
12701 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12703 trap 'as_fn_exit 1' 1 2 13 15
12705 # Create a (secure) tmp directory for tmp files.
12708 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12709 test -n "$tmp" && test -d "$tmp"
12710 } ||
12712 tmp=./conf$$-$RANDOM
12713 (umask 077 && mkdir "$tmp")
12714 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12716 # Set up the scripts for CONFIG_FILES section.
12717 # No need to generate them if there are no CONFIG_FILES.
12718 # This happens for instance with `./config.status config.h'.
12719 if test -n "$CONFIG_FILES"; then
12722 ac_cr=`echo X | tr X '\015'`
12723 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12724 # But we know of no other shell where ac_cr would be empty at this
12725 # point, so we can use a bashism as a fallback.
12726 if test "x$ac_cr" = x; then
12727 eval ac_cr=\$\'\\r\'
12729 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12730 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12731 ac_cs_awk_cr='\r'
12732 else
12733 ac_cs_awk_cr=$ac_cr
12736 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12737 _ACEOF
12741 echo "cat >conf$$subs.awk <<_ACEOF" &&
12742 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12743 echo "_ACEOF"
12744 } >conf$$subs.sh ||
12745 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12746 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12747 ac_delim='%!_!# '
12748 for ac_last_try in false false false false false :; do
12749 . ./conf$$subs.sh ||
12750 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12752 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12753 if test $ac_delim_n = $ac_delim_num; then
12754 break
12755 elif $ac_last_try; then
12756 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12757 else
12758 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12760 done
12761 rm -f conf$$subs.sh
12763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12764 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12765 _ACEOF
12766 sed -n '
12768 s/^/S["/; s/!.*/"]=/
12771 s/^[^!]*!//
12772 :repl
12773 t repl
12774 s/'"$ac_delim"'$//
12775 t delim
12778 s/\(.\{148\}\).*/\1/
12779 t more1
12780 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12783 b repl
12784 :more1
12785 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12788 s/.\{148\}//
12789 t nl
12790 :delim
12792 s/\(.\{148\}\).*/\1/
12793 t more2
12794 s/["\\]/\\&/g; s/^/"/; s/$/"/
12797 :more2
12798 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12801 s/.\{148\}//
12802 t delim
12803 ' <conf$$subs.awk | sed '
12804 /^[^""]/{
12806 s/\n//
12808 ' >>$CONFIG_STATUS || ac_write_fail=1
12809 rm -f conf$$subs.awk
12810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12811 _ACAWK
12812 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12813 for (key in S) S_is_set[key] = 1
12814 FS = "\a"
12818 line = $ 0
12819 nfields = split(line, field, "@")
12820 substed = 0
12821 len = length(field[1])
12822 for (i = 2; i < nfields; i++) {
12823 key = field[i]
12824 keylen = length(key)
12825 if (S_is_set[key]) {
12826 value = S[key]
12827 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12828 len += length(value) + length(field[++i])
12829 substed = 1
12830 } else
12831 len += 1 + keylen
12834 print line
12837 _ACAWK
12838 _ACEOF
12839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12840 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12841 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12842 else
12844 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12845 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12846 _ACEOF
12848 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12849 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12850 # trailing colons and then remove the whole line if VPATH becomes empty
12851 # (actually we leave an empty line to preserve line numbers).
12852 if test "x$srcdir" = x.; then
12853 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12854 s/:*\$(srcdir):*/:/
12855 s/:*\${srcdir}:*/:/
12856 s/:*@srcdir@:*/:/
12857 s/^\([^=]*=[ ]*\):*/\1/
12858 s/:*$//
12859 s/^[^=]*=[ ]*$//
12863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12864 fi # test -n "$CONFIG_FILES"
12866 # Set up the scripts for CONFIG_HEADERS section.
12867 # No need to generate them if there are no CONFIG_HEADERS.
12868 # This happens for instance with `./config.status Makefile'.
12869 if test -n "$CONFIG_HEADERS"; then
12870 cat >"$tmp/defines.awk" <<\_ACAWK ||
12871 BEGIN {
12872 _ACEOF
12874 # Transform confdefs.h into an awk script `defines.awk', embedded as
12875 # here-document in config.status, that substitutes the proper values into
12876 # config.h.in to produce config.h.
12878 # Create a delimiter string that does not exist in confdefs.h, to ease
12879 # handling of long lines.
12880 ac_delim='%!_!# '
12881 for ac_last_try in false false :; do
12882 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12883 if test -z "$ac_t"; then
12884 break
12885 elif $ac_last_try; then
12886 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12887 else
12888 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12890 done
12892 # For the awk script, D is an array of macro values keyed by name,
12893 # likewise P contains macro parameters if any. Preserve backslash
12894 # newline sequences.
12896 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12897 sed -n '
12898 s/.\{148\}/&'"$ac_delim"'/g
12899 t rset
12900 :rset
12901 s/^[ ]*#[ ]*define[ ][ ]*/ /
12902 t def
12904 :def
12905 s/\\$//
12906 t bsnl
12907 s/["\\]/\\&/g
12908 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12909 D["\1"]=" \3"/p
12910 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12912 :bsnl
12913 s/["\\]/\\&/g
12914 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12915 D["\1"]=" \3\\\\\\n"\\/p
12916 t cont
12917 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12918 t cont
12920 :cont
12922 s/.\{148\}/&'"$ac_delim"'/g
12923 t clear
12924 :clear
12925 s/\\$//
12926 t bsnlc
12927 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12929 :bsnlc
12930 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12931 b cont
12932 ' <confdefs.h | sed '
12933 s/'"$ac_delim"'/"\\\
12934 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12937 for (key in D) D_is_set[key] = 1
12938 FS = "\a"
12940 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12941 line = \$ 0
12942 split(line, arg, " ")
12943 if (arg[1] == "#") {
12944 defundef = arg[2]
12945 mac1 = arg[3]
12946 } else {
12947 defundef = substr(arg[1], 2)
12948 mac1 = arg[2]
12950 split(mac1, mac2, "(") #)
12951 macro = mac2[1]
12952 prefix = substr(line, 1, index(line, defundef) - 1)
12953 if (D_is_set[macro]) {
12954 # Preserve the white space surrounding the "#".
12955 print prefix "define", macro P[macro] D[macro]
12956 next
12957 } else {
12958 # Replace #undef with comments. This is necessary, for example,
12959 # in the case of _POSIX_SOURCE, which is predefined and required
12960 # on some systems where configure will not decide to define it.
12961 if (defundef == "undef") {
12962 print "/*", prefix defundef, macro, "*/"
12963 next
12967 { print }
12968 _ACAWK
12969 _ACEOF
12970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12971 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12972 fi # test -n "$CONFIG_HEADERS"
12975 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12976 shift
12977 for ac_tag
12979 case $ac_tag in
12980 :[FHLC]) ac_mode=$ac_tag; continue;;
12981 esac
12982 case $ac_mode$ac_tag in
12983 :[FHL]*:*);;
12984 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12985 :[FH]-) ac_tag=-:-;;
12986 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12987 esac
12988 ac_save_IFS=$IFS
12989 IFS=:
12990 set x $ac_tag
12991 IFS=$ac_save_IFS
12992 shift
12993 ac_file=$1
12994 shift
12996 case $ac_mode in
12997 :L) ac_source=$1;;
12998 :[FH])
12999 ac_file_inputs=
13000 for ac_f
13002 case $ac_f in
13003 -) ac_f="$tmp/stdin";;
13004 *) # Look for the file first in the build tree, then in the source tree
13005 # (if the path is not absolute). The absolute path cannot be DOS-style,
13006 # because $ac_f cannot contain `:'.
13007 test -f "$ac_f" ||
13008 case $ac_f in
13009 [\\/$]*) false;;
13010 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13011 esac ||
13012 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13013 esac
13014 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13015 as_fn_append ac_file_inputs " '$ac_f'"
13016 done
13018 # Let's still pretend it is `configure' which instantiates (i.e., don't
13019 # use $as_me), people would be surprised to read:
13020 # /* config.h. Generated by config.status. */
13021 configure_input='Generated from '`
13022 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13023 `' by configure.'
13024 if test x"$ac_file" != x-; then
13025 configure_input="$ac_file. $configure_input"
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13027 $as_echo "$as_me: creating $ac_file" >&6;}
13029 # Neutralize special characters interpreted by sed in replacement strings.
13030 case $configure_input in #(
13031 *\&* | *\|* | *\\* )
13032 ac_sed_conf_input=`$as_echo "$configure_input" |
13033 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13034 *) ac_sed_conf_input=$configure_input;;
13035 esac
13037 case $ac_tag in
13038 *:-:* | *:-) cat >"$tmp/stdin" \
13039 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13040 esac
13042 esac
13044 ac_dir=`$as_dirname -- "$ac_file" ||
13045 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13046 X"$ac_file" : 'X\(//\)[^/]' \| \
13047 X"$ac_file" : 'X\(//\)$' \| \
13048 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13049 $as_echo X"$ac_file" |
13050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13051 s//\1/
13054 /^X\(\/\/\)[^/].*/{
13055 s//\1/
13058 /^X\(\/\/\)$/{
13059 s//\1/
13062 /^X\(\/\).*/{
13063 s//\1/
13066 s/.*/./; q'`
13067 as_dir="$ac_dir"; as_fn_mkdir_p
13068 ac_builddir=.
13070 case "$ac_dir" in
13071 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13073 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13074 # A ".." for each directory in $ac_dir_suffix.
13075 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13076 case $ac_top_builddir_sub in
13077 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13078 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13079 esac ;;
13080 esac
13081 ac_abs_top_builddir=$ac_pwd
13082 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13083 # for backward compatibility:
13084 ac_top_builddir=$ac_top_build_prefix
13086 case $srcdir in
13087 .) # We are building in place.
13088 ac_srcdir=.
13089 ac_top_srcdir=$ac_top_builddir_sub
13090 ac_abs_top_srcdir=$ac_pwd ;;
13091 [\\/]* | ?:[\\/]* ) # Absolute name.
13092 ac_srcdir=$srcdir$ac_dir_suffix;
13093 ac_top_srcdir=$srcdir
13094 ac_abs_top_srcdir=$srcdir ;;
13095 *) # Relative name.
13096 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13097 ac_top_srcdir=$ac_top_build_prefix$srcdir
13098 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13099 esac
13100 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13103 case $ac_mode in
13106 # CONFIG_FILE
13109 case $INSTALL in
13110 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13111 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13112 esac
13113 ac_MKDIR_P=$MKDIR_P
13114 case $MKDIR_P in
13115 [\\/$]* | ?:[\\/]* ) ;;
13116 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13117 esac
13118 _ACEOF
13120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13121 # If the template does not know about datarootdir, expand it.
13122 # FIXME: This hack should be removed a few years after 2.60.
13123 ac_datarootdir_hack=; ac_datarootdir_seen=
13124 ac_sed_dataroot='
13125 /datarootdir/ {
13129 /@datadir@/p
13130 /@docdir@/p
13131 /@infodir@/p
13132 /@localedir@/p
13133 /@mandir@/p'
13134 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13135 *datarootdir*) ac_datarootdir_seen=yes;;
13136 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13138 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13139 _ACEOF
13140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13141 ac_datarootdir_hack='
13142 s&@datadir@&$datadir&g
13143 s&@docdir@&$docdir&g
13144 s&@infodir@&$infodir&g
13145 s&@localedir@&$localedir&g
13146 s&@mandir@&$mandir&g
13147 s&\\\${datarootdir}&$datarootdir&g' ;;
13148 esac
13149 _ACEOF
13151 # Neutralize VPATH when `$srcdir' = `.'.
13152 # Shell code in configure.ac might set extrasub.
13153 # FIXME: do we really want to maintain this feature?
13154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13155 ac_sed_extra="$ac_vpsub
13156 $extrasub
13157 _ACEOF
13158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13160 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13161 s|@configure_input@|$ac_sed_conf_input|;t t
13162 s&@top_builddir@&$ac_top_builddir_sub&;t t
13163 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13164 s&@srcdir@&$ac_srcdir&;t t
13165 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13166 s&@top_srcdir@&$ac_top_srcdir&;t t
13167 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13168 s&@builddir@&$ac_builddir&;t t
13169 s&@abs_builddir@&$ac_abs_builddir&;t t
13170 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13171 s&@INSTALL@&$ac_INSTALL&;t t
13172 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13173 $ac_datarootdir_hack
13175 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13176 || as_fn_error "could not create $ac_file" "$LINENO" 5
13178 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13179 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13180 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13182 which seems to be undefined. Please make sure it is defined." >&5
13183 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13184 which seems to be undefined. Please make sure it is defined." >&2;}
13186 rm -f "$tmp/stdin"
13187 case $ac_file in
13188 -) cat "$tmp/out" && rm -f "$tmp/out";;
13189 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13190 esac \
13191 || as_fn_error "could not create $ac_file" "$LINENO" 5
13195 # CONFIG_HEADER
13197 if test x"$ac_file" != x-; then
13199 $as_echo "/* $configure_input */" \
13200 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13201 } >"$tmp/config.h" \
13202 || as_fn_error "could not create $ac_file" "$LINENO" 5
13203 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13205 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13206 else
13207 rm -f "$ac_file"
13208 mv "$tmp/config.h" "$ac_file" \
13209 || as_fn_error "could not create $ac_file" "$LINENO" 5
13211 else
13212 $as_echo "/* $configure_input */" \
13213 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13214 || as_fn_error "could not create -" "$LINENO" 5
13216 # Compute "$ac_file"'s index in $config_headers.
13217 _am_arg="$ac_file"
13218 _am_stamp_count=1
13219 for _am_header in $config_headers :; do
13220 case $_am_header in
13221 $_am_arg | $_am_arg:* )
13222 break ;;
13224 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13225 esac
13226 done
13227 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13228 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13229 X"$_am_arg" : 'X\(//\)[^/]' \| \
13230 X"$_am_arg" : 'X\(//\)$' \| \
13231 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13232 $as_echo X"$_am_arg" |
13233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13234 s//\1/
13237 /^X\(\/\/\)[^/].*/{
13238 s//\1/
13241 /^X\(\/\/\)$/{
13242 s//\1/
13245 /^X\(\/\).*/{
13246 s//\1/
13249 s/.*/./; q'`/stamp-h$_am_stamp_count
13252 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13253 $as_echo "$as_me: executing $ac_file commands" >&6;}
13255 esac
13258 case $ac_file$ac_mode in
13259 "default-1":C)
13260 # Only add multilib support code if we just rebuilt the top-level
13261 # Makefile.
13262 case " $CONFIG_FILES " in
13263 *" Makefile "*)
13264 ac_file=Makefile . ${multi_basedir}/config-ml.in
13266 esac ;;
13267 "libtool":C)
13269 # See if we are running on zsh, and set the options which allow our
13270 # commands through without removal of \ escapes.
13271 if test -n "${ZSH_VERSION+set}" ; then
13272 setopt NO_GLOB_SUBST
13275 cfgfile="${ofile}T"
13276 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13277 $RM "$cfgfile"
13279 cat <<_LT_EOF >> "$cfgfile"
13280 #! $SHELL
13282 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13283 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13284 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13285 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13287 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13288 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13289 # Written by Gordon Matzigkeit, 1996
13291 # This file is part of GNU Libtool.
13293 # GNU Libtool is free software; you can redistribute it and/or
13294 # modify it under the terms of the GNU General Public License as
13295 # published by the Free Software Foundation; either version 2 of
13296 # the License, or (at your option) any later version.
13298 # As a special exception to the GNU General Public License,
13299 # if you distribute this file as part of a program or library that
13300 # is built using GNU Libtool, you may include this file under the
13301 # same distribution terms that you use for the rest of that program.
13303 # GNU Libtool is distributed in the hope that it will be useful,
13304 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13305 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13306 # GNU General Public License for more details.
13308 # You should have received a copy of the GNU General Public License
13309 # along with GNU Libtool; see the file COPYING. If not, a copy
13310 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13311 # obtained by writing to the Free Software Foundation, Inc.,
13312 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13315 # The names of the tagged configurations supported by this script.
13316 available_tags=""
13318 # ### BEGIN LIBTOOL CONFIG
13320 # Which release of libtool.m4 was used?
13321 macro_version=$macro_version
13322 macro_revision=$macro_revision
13324 # Whether or not to build shared libraries.
13325 build_libtool_libs=$enable_shared
13327 # Whether or not to build static libraries.
13328 build_old_libs=$enable_static
13330 # What type of objects to build.
13331 pic_mode=$pic_mode
13333 # Whether or not to optimize for fast installation.
13334 fast_install=$enable_fast_install
13336 # Shell to use when invoking shell scripts.
13337 SHELL=$lt_SHELL
13339 # An echo program that protects backslashes.
13340 ECHO=$lt_ECHO
13342 # The host system.
13343 host_alias=$host_alias
13344 host=$host
13345 host_os=$host_os
13347 # The build system.
13348 build_alias=$build_alias
13349 build=$build
13350 build_os=$build_os
13352 # A sed program that does not truncate output.
13353 SED=$lt_SED
13355 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13356 Xsed="\$SED -e 1s/^X//"
13358 # A grep program that handles long lines.
13359 GREP=$lt_GREP
13361 # An ERE matcher.
13362 EGREP=$lt_EGREP
13364 # A literal string matcher.
13365 FGREP=$lt_FGREP
13367 # A BSD- or MS-compatible name lister.
13368 NM=$lt_NM
13370 # Whether we need soft or hard links.
13371 LN_S=$lt_LN_S
13373 # What is the maximum length of a command?
13374 max_cmd_len=$max_cmd_len
13376 # Object file suffix (normally "o").
13377 objext=$ac_objext
13379 # Executable file suffix (normally "").
13380 exeext=$exeext
13382 # whether the shell understands "unset".
13383 lt_unset=$lt_unset
13385 # turn spaces into newlines.
13386 SP2NL=$lt_lt_SP2NL
13388 # turn newlines into spaces.
13389 NL2SP=$lt_lt_NL2SP
13391 # An object symbol dumper.
13392 OBJDUMP=$lt_OBJDUMP
13394 # Method to check whether dependent libraries are shared objects.
13395 deplibs_check_method=$lt_deplibs_check_method
13397 # Command to use when deplibs_check_method == "file_magic".
13398 file_magic_cmd=$lt_file_magic_cmd
13400 # The archiver.
13401 AR=$lt_AR
13402 AR_FLAGS=$lt_AR_FLAGS
13404 # A symbol stripping program.
13405 STRIP=$lt_STRIP
13407 # Commands used to install an old-style archive.
13408 RANLIB=$lt_RANLIB
13409 old_postinstall_cmds=$lt_old_postinstall_cmds
13410 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13412 # Whether to use a lock for old archive extraction.
13413 lock_old_archive_extraction=$lock_old_archive_extraction
13415 # A C compiler.
13416 LTCC=$lt_CC
13418 # LTCC compiler flags.
13419 LTCFLAGS=$lt_CFLAGS
13421 # Take the output of nm and produce a listing of raw symbols and C names.
13422 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13424 # Transform the output of nm in a proper C declaration.
13425 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13427 # Transform the output of nm in a C name address pair.
13428 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13430 # Transform the output of nm in a C name address pair when lib prefix is needed.
13431 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13433 # The name of the directory that contains temporary libtool files.
13434 objdir=$objdir
13436 # Used to examine libraries when file_magic_cmd begins with "file".
13437 MAGIC_CMD=$MAGIC_CMD
13439 # Must we lock files when doing compilation?
13440 need_locks=$lt_need_locks
13442 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13443 DSYMUTIL=$lt_DSYMUTIL
13445 # Tool to change global to local symbols on Mac OS X.
13446 NMEDIT=$lt_NMEDIT
13448 # Tool to manipulate fat objects and archives on Mac OS X.
13449 LIPO=$lt_LIPO
13451 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13452 OTOOL=$lt_OTOOL
13454 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13455 OTOOL64=$lt_OTOOL64
13457 # Old archive suffix (normally "a").
13458 libext=$libext
13460 # Shared library suffix (normally ".so").
13461 shrext_cmds=$lt_shrext_cmds
13463 # The commands to extract the exported symbol list from a shared archive.
13464 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13466 # Variables whose values should be saved in libtool wrapper scripts and
13467 # restored at link time.
13468 variables_saved_for_relink=$lt_variables_saved_for_relink
13470 # Do we need the "lib" prefix for modules?
13471 need_lib_prefix=$need_lib_prefix
13473 # Do we need a version for libraries?
13474 need_version=$need_version
13476 # Library versioning type.
13477 version_type=$version_type
13479 # Shared library runtime path variable.
13480 runpath_var=$runpath_var
13482 # Shared library path variable.
13483 shlibpath_var=$shlibpath_var
13485 # Is shlibpath searched before the hard-coded library search path?
13486 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13488 # Format of library name prefix.
13489 libname_spec=$lt_libname_spec
13491 # List of archive names. First name is the real one, the rest are links.
13492 # The last name is the one that the linker finds with -lNAME
13493 library_names_spec=$lt_library_names_spec
13495 # The coded name of the library, if different from the real name.
13496 soname_spec=$lt_soname_spec
13498 # Permission mode override for installation of shared libraries.
13499 install_override_mode=$lt_install_override_mode
13501 # Command to use after installation of a shared archive.
13502 postinstall_cmds=$lt_postinstall_cmds
13504 # Command to use after uninstallation of a shared archive.
13505 postuninstall_cmds=$lt_postuninstall_cmds
13507 # Commands used to finish a libtool library installation in a directory.
13508 finish_cmds=$lt_finish_cmds
13510 # As "finish_cmds", except a single script fragment to be evaled but
13511 # not shown.
13512 finish_eval=$lt_finish_eval
13514 # Whether we should hardcode library paths into libraries.
13515 hardcode_into_libs=$hardcode_into_libs
13517 # Compile-time system search path for libraries.
13518 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13520 # Run-time system search path for libraries.
13521 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13523 # Whether dlopen is supported.
13524 dlopen_support=$enable_dlopen
13526 # Whether dlopen of programs is supported.
13527 dlopen_self=$enable_dlopen_self
13529 # Whether dlopen of statically linked programs is supported.
13530 dlopen_self_static=$enable_dlopen_self_static
13532 # Commands to strip libraries.
13533 old_striplib=$lt_old_striplib
13534 striplib=$lt_striplib
13537 # The linker used to build libraries.
13538 LD=$lt_LD
13540 # How to create reloadable object files.
13541 reload_flag=$lt_reload_flag
13542 reload_cmds=$lt_reload_cmds
13544 # Commands used to build an old-style archive.
13545 old_archive_cmds=$lt_old_archive_cmds
13547 # A language specific compiler.
13548 CC=$lt_compiler
13550 # Is the compiler the GNU compiler?
13551 with_gcc=$GCC
13553 # Compiler flag to turn off builtin functions.
13554 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13556 # How to pass a linker flag through the compiler.
13557 wl=$lt_lt_prog_compiler_wl
13559 # Additional compiler flags for building library objects.
13560 pic_flag=$lt_lt_prog_compiler_pic
13562 # Compiler flag to prevent dynamic linking.
13563 link_static_flag=$lt_lt_prog_compiler_static
13565 # Does compiler simultaneously support -c and -o options?
13566 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13568 # Whether or not to add -lc for building shared libraries.
13569 build_libtool_need_lc=$archive_cmds_need_lc
13571 # Whether or not to disallow shared libs when runtime libs are static.
13572 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13574 # Compiler flag to allow reflexive dlopens.
13575 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13577 # Compiler flag to generate shared objects directly from archives.
13578 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13580 # Whether the compiler copes with passing no objects directly.
13581 compiler_needs_object=$lt_compiler_needs_object
13583 # Create an old-style archive from a shared archive.
13584 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13586 # Create a temporary old-style archive to link instead of a shared archive.
13587 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13589 # Commands used to build a shared archive.
13590 archive_cmds=$lt_archive_cmds
13591 archive_expsym_cmds=$lt_archive_expsym_cmds
13593 # Commands used to build a loadable module if different from building
13594 # a shared archive.
13595 module_cmds=$lt_module_cmds
13596 module_expsym_cmds=$lt_module_expsym_cmds
13598 # Whether we are building with GNU ld or not.
13599 with_gnu_ld=$lt_with_gnu_ld
13601 # Flag that allows shared libraries with undefined symbols to be built.
13602 allow_undefined_flag=$lt_allow_undefined_flag
13604 # Flag that enforces no undefined symbols.
13605 no_undefined_flag=$lt_no_undefined_flag
13607 # Flag to hardcode \$libdir into a binary during linking.
13608 # This must work even if \$libdir does not exist
13609 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13611 # If ld is used when linking, flag to hardcode \$libdir into a binary
13612 # during linking. This must work even if \$libdir does not exist.
13613 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13615 # Whether we need a single "-rpath" flag with a separated argument.
13616 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13618 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13619 # DIR into the resulting binary.
13620 hardcode_direct=$hardcode_direct
13622 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13623 # DIR into the resulting binary and the resulting library dependency is
13624 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13625 # library is relocated.
13626 hardcode_direct_absolute=$hardcode_direct_absolute
13628 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13629 # into the resulting binary.
13630 hardcode_minus_L=$hardcode_minus_L
13632 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13633 # into the resulting binary.
13634 hardcode_shlibpath_var=$hardcode_shlibpath_var
13636 # Set to "yes" if building a shared library automatically hardcodes DIR
13637 # into the library and all subsequent libraries and executables linked
13638 # against it.
13639 hardcode_automatic=$hardcode_automatic
13641 # Set to yes if linker adds runtime paths of dependent libraries
13642 # to runtime path list.
13643 inherit_rpath=$inherit_rpath
13645 # Whether libtool must link a program against all its dependency libraries.
13646 link_all_deplibs=$link_all_deplibs
13648 # Fix the shell variable \$srcfile for the compiler.
13649 fix_srcfile_path=$lt_fix_srcfile_path
13651 # Set to "yes" if exported symbols are required.
13652 always_export_symbols=$always_export_symbols
13654 # The commands to list exported symbols.
13655 export_symbols_cmds=$lt_export_symbols_cmds
13657 # Symbols that should not be listed in the preloaded symbols.
13658 exclude_expsyms=$lt_exclude_expsyms
13660 # Symbols that must always be exported.
13661 include_expsyms=$lt_include_expsyms
13663 # Commands necessary for linking programs (against libraries) with templates.
13664 prelink_cmds=$lt_prelink_cmds
13666 # Specify filename containing input files.
13667 file_list_spec=$lt_file_list_spec
13669 # How to hardcode a shared library path into an executable.
13670 hardcode_action=$hardcode_action
13672 # ### END LIBTOOL CONFIG
13674 _LT_EOF
13676 case $host_os in
13677 aix3*)
13678 cat <<\_LT_EOF >> "$cfgfile"
13679 # AIX sometimes has problems with the GCC collect2 program. For some
13680 # reason, if we set the COLLECT_NAMES environment variable, the problems
13681 # vanish in a puff of smoke.
13682 if test "X${COLLECT_NAMES+set}" != Xset; then
13683 COLLECT_NAMES=
13684 export COLLECT_NAMES
13686 _LT_EOF
13688 esac
13691 ltmain="$ac_aux_dir/ltmain.sh"
13694 # We use sed instead of cat because bash on DJGPP gets confused if
13695 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13696 # text mode, it properly converts lines to CR/LF. This bash problem
13697 # is reportedly fixed, but why not run on old versions too?
13698 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13699 || (rm -f "$cfgfile"; exit 1)
13701 case $xsi_shell in
13702 yes)
13703 cat << \_LT_EOF >> "$cfgfile"
13705 # func_dirname file append nondir_replacement
13706 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13707 # otherwise set result to NONDIR_REPLACEMENT.
13708 func_dirname ()
13710 case ${1} in
13711 */*) func_dirname_result="${1%/*}${2}" ;;
13712 * ) func_dirname_result="${3}" ;;
13713 esac
13716 # func_basename file
13717 func_basename ()
13719 func_basename_result="${1##*/}"
13722 # func_dirname_and_basename file append nondir_replacement
13723 # perform func_basename and func_dirname in a single function
13724 # call:
13725 # dirname: Compute the dirname of FILE. If nonempty,
13726 # add APPEND to the result, otherwise set result
13727 # to NONDIR_REPLACEMENT.
13728 # value returned in "$func_dirname_result"
13729 # basename: Compute filename of FILE.
13730 # value retuned in "$func_basename_result"
13731 # Implementation must be kept synchronized with func_dirname
13732 # and func_basename. For efficiency, we do not delegate to
13733 # those functions but instead duplicate the functionality here.
13734 func_dirname_and_basename ()
13736 case ${1} in
13737 */*) func_dirname_result="${1%/*}${2}" ;;
13738 * ) func_dirname_result="${3}" ;;
13739 esac
13740 func_basename_result="${1##*/}"
13743 # func_stripname prefix suffix name
13744 # strip PREFIX and SUFFIX off of NAME.
13745 # PREFIX and SUFFIX must not contain globbing or regex special
13746 # characters, hashes, percent signs, but SUFFIX may contain a leading
13747 # dot (in which case that matches only a dot).
13748 func_stripname ()
13750 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13751 # positional parameters, so assign one to ordinary parameter first.
13752 func_stripname_result=${3}
13753 func_stripname_result=${func_stripname_result#"${1}"}
13754 func_stripname_result=${func_stripname_result%"${2}"}
13757 # func_opt_split
13758 func_opt_split ()
13760 func_opt_split_opt=${1%%=*}
13761 func_opt_split_arg=${1#*=}
13764 # func_lo2o object
13765 func_lo2o ()
13767 case ${1} in
13768 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13769 *) func_lo2o_result=${1} ;;
13770 esac
13773 # func_xform libobj-or-source
13774 func_xform ()
13776 func_xform_result=${1%.*}.lo
13779 # func_arith arithmetic-term...
13780 func_arith ()
13782 func_arith_result=$(( $* ))
13785 # func_len string
13786 # STRING may not start with a hyphen.
13787 func_len ()
13789 func_len_result=${#1}
13792 _LT_EOF
13794 *) # Bourne compatible functions.
13795 cat << \_LT_EOF >> "$cfgfile"
13797 # func_dirname file append nondir_replacement
13798 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13799 # otherwise set result to NONDIR_REPLACEMENT.
13800 func_dirname ()
13802 # Extract subdirectory from the argument.
13803 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13804 if test "X$func_dirname_result" = "X${1}"; then
13805 func_dirname_result="${3}"
13806 else
13807 func_dirname_result="$func_dirname_result${2}"
13811 # func_basename file
13812 func_basename ()
13814 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13818 # func_stripname prefix suffix name
13819 # strip PREFIX and SUFFIX off of NAME.
13820 # PREFIX and SUFFIX must not contain globbing or regex special
13821 # characters, hashes, percent signs, but SUFFIX may contain a leading
13822 # dot (in which case that matches only a dot).
13823 # func_strip_suffix prefix name
13824 func_stripname ()
13826 case ${2} in
13827 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13828 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13829 esac
13832 # sed scripts:
13833 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13834 my_sed_long_arg='1s/^-[^=]*=//'
13836 # func_opt_split
13837 func_opt_split ()
13839 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13840 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13843 # func_lo2o object
13844 func_lo2o ()
13846 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13849 # func_xform libobj-or-source
13850 func_xform ()
13852 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13855 # func_arith arithmetic-term...
13856 func_arith ()
13858 func_arith_result=`expr "$@"`
13861 # func_len string
13862 # STRING may not start with a hyphen.
13863 func_len ()
13865 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13868 _LT_EOF
13869 esac
13871 case $lt_shell_append in
13872 yes)
13873 cat << \_LT_EOF >> "$cfgfile"
13875 # func_append var value
13876 # Append VALUE to the end of shell variable VAR.
13877 func_append ()
13879 eval "$1+=\$2"
13881 _LT_EOF
13884 cat << \_LT_EOF >> "$cfgfile"
13886 # func_append var value
13887 # Append VALUE to the end of shell variable VAR.
13888 func_append ()
13890 eval "$1=\$$1\$2"
13893 _LT_EOF
13895 esac
13898 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13899 || (rm -f "$cfgfile"; exit 1)
13901 mv -f "$cfgfile" "$ofile" ||
13902 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13903 chmod +x "$ofile"
13906 "mpxrt/Makefile":F) cat > vpsed$$ << \_EOF
13907 s!`test -f '$<' || echo '$(srcdir)/'`!!
13908 _EOF
13909 sed -f vpsed$$ $ac_file > tmp$$
13910 mv tmp$$ $ac_file
13911 rm vpsed$$
13912 echo 'MULTISUBDIR =' >> $ac_file
13913 ml_norecursion=yes
13914 . ${multi_basedir}/config-ml.in
13915 { ml_norecursion=; unset ml_norecursion;}
13917 "mpxwrap/Makefile":F) cat > vpsed$$ << \_EOF
13918 s!`test -f '$<' || echo '$(srcdir)/'`!!
13919 _EOF
13920 sed -f vpsed$$ $ac_file > tmp$$
13921 mv tmp$$ $ac_file
13922 rm vpsed$$
13923 echo 'MULTISUBDIR =' >> $ac_file
13924 ml_norecursion=yes
13925 . ${multi_basedir}/config-ml.in
13926 { ml_norecursion=; unset ml_norecursion;}
13929 esac
13930 done # for ac_tag
13933 as_fn_exit 0
13934 _ACEOF
13935 ac_clean_files=$ac_clean_files_save
13937 test $ac_write_fail = 0 ||
13938 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13941 # configure is writing to config.log, and then calls config.status.
13942 # config.status does its own redirection, appending to config.log.
13943 # Unfortunately, on DOS this fails, as config.log is still kept open
13944 # by configure, so config.status won't be able to write to it; its
13945 # output is simply discarded. So we exec the FD to /dev/null,
13946 # effectively closing config.log, so it can be properly (re)opened and
13947 # appended to by config.status. When coming back to configure, we
13948 # need to make the FD available again.
13949 if test "$no_create" != yes; then
13950 ac_cs_success=:
13951 ac_config_status_args=
13952 test "$silent" = yes &&
13953 ac_config_status_args="$ac_config_status_args --quiet"
13954 exec 5>/dev/null
13955 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13956 exec 5>>config.log
13957 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13958 # would make configure fail if this is the last instruction.
13959 $ac_cs_success || as_fn_exit $?
13961 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13963 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}