Update README file's installation instructions
[binutils-gdb.git] / gprofng / configure
blob005f9cbaf7dbf00b44c75dfcc95ce561804c3da5
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gprofng 2.41.50.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='gprofng'
589 PACKAGE_TARNAME='gprofng'
590 PACKAGE_VERSION='2.41.50'
591 PACKAGE_STRING='gprofng 2.41.50'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
631 enable_option_checking=no
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 BUILD_SUBDIRS
637 CLOCK_GETTIME_LINK
638 GPROFNG_CPPFLAGS
639 GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS
640 GPROFNG_CFLAGS
641 LD_NO_AS_NEEDED
642 BUILD_DOC_FALSE
643 BUILD_DOC_TRUE
644 BUILD_MAN_FALSE
645 BUILD_MAN_TRUE
646 HELP2MAN
647 zlibinc
648 zlibdir
649 TCL_TRY_FALSE
650 TCL_TRY_TRUE
651 EXPECT
652 jdk_inc
653 GPROFNG_BROKEN_JAVAC
654 JAVA
655 JAVAC
656 PTHREAD_CFLAGS
657 PTHREAD_LIBS
658 PTHREAD_CC
659 ax_pthread_config
660 subdirs
661 BUILD_SRC_FALSE
662 BUILD_SRC_TRUE
663 BUILD_COLLECTOR_FALSE
664 BUILD_COLLECTOR_TRUE
665 GPROFNG_NO_SWITCH_CFLAGS
666 gprofng_cflags
667 WERROR
668 GPROFNG_LIBADD
669 CXXCPP
670 OTOOL64
671 OTOOL
672 LIPO
673 NMEDIT
674 DSYMUTIL
675 OBJDUMP
676 LN_S
678 ac_ct_DUMPBIN
679 DUMPBIN
681 FGREP
683 LIBTOOL
684 BISON
685 ac_ct_AR
687 RANLIB
688 am__fastdepCXX_FALSE
689 am__fastdepCXX_TRUE
690 CXXDEPMODE
691 ac_ct_CXX
692 CXXFLAGS
694 EGREP
695 GREP
697 am__fastdepCC_FALSE
698 am__fastdepCC_TRUE
699 CCDEPMODE
700 am__nodep
701 AMDEPBACKSLASH
702 AMDEP_FALSE
703 AMDEP_TRUE
704 am__quote
705 am__include
706 DEPDIR
707 OBJEXT
708 EXEEXT
709 ac_ct_CC
710 CPPFLAGS
711 LDFLAGS
712 CFLAGS
714 MAINT
715 MAINTAINER_MODE_FALSE
716 MAINTAINER_MODE_TRUE
717 AM_BACKSLASH
718 AM_DEFAULT_VERBOSITY
719 AM_DEFAULT_V
720 AM_V
721 am__untar
722 am__tar
723 AMTAR
724 am__leading_dot
725 SET_MAKE
727 mkdir_p
728 MKDIR_P
729 INSTALL_STRIP_PROGRAM
730 STRIP
731 install_sh
732 MAKEINFO
733 AUTOHEADER
734 AUTOMAKE
735 AUTOCONF
736 ACLOCAL
737 VERSION
738 PACKAGE
739 CYGPATH_W
740 am__isrc
741 INSTALL_DATA
742 INSTALL_SCRIPT
743 INSTALL_PROGRAM
744 target_os
745 target_vendor
746 target_cpu
747 target
748 host_os
749 host_vendor
750 host_cpu
751 host
752 build_os
753 build_vendor
754 build_cpu
755 build
756 target_alias
757 host_alias
758 build_alias
759 LIBS
760 ECHO_T
761 ECHO_N
762 ECHO_C
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 enable_silent_rules
798 enable_maintainer_mode
799 enable_dependency_tracking
800 enable_shared
801 enable_static
802 with_pic
803 enable_fast_install
804 with_gnu_ld
805 enable_libtool_lock
806 enable_werror_always
807 enable_gprofng_tools
808 with_jdk
809 enable_gprofng_debug
810 with_system_zlib
812 ac_precious_vars='build_alias
813 host_alias
814 target_alias
816 CFLAGS
817 LDFLAGS
818 LIBS
819 CPPFLAGS
822 CXXFLAGS
824 CXXCPP'
825 ac_subdirs_all='libcollector'
827 # Initialize some variables set by options.
828 ac_init_help=
829 ac_init_version=false
830 ac_unrecognized_opts=
831 ac_unrecognized_sep=
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
834 cache_file=/dev/null
835 exec_prefix=NONE
836 no_create=
837 no_recursion=
838 prefix=NONE
839 program_prefix=NONE
840 program_suffix=NONE
841 program_transform_name=s,x,x,
842 silent=
843 site=
844 srcdir=
845 verbose=
846 x_includes=NONE
847 x_libraries=NONE
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866 infodir='${datarootdir}/info'
867 htmldir='${docdir}'
868 dvidir='${docdir}'
869 pdfdir='${docdir}'
870 psdir='${docdir}'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
875 ac_prev=
876 ac_dashdash=
877 for ac_option
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
881 eval $ac_prev=\$ac_option
882 ac_prev=
883 continue
886 case $ac_option in
887 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 *=) ac_optarg= ;;
889 *) ac_optarg=yes ;;
890 esac
892 # Accept the important Cygnus configure options, so we can diagnose typos.
894 case $ac_dashdash$ac_option in
896 ac_dashdash=yes ;;
898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
899 ac_prev=bindir ;;
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901 bindir=$ac_optarg ;;
903 -build | --build | --buil | --bui | --bu)
904 ac_prev=build_alias ;;
905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906 build_alias=$ac_optarg ;;
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913 cache_file=$ac_optarg ;;
915 --config-cache | -C)
916 cache_file=config.cache ;;
918 -datadir | --datadir | --datadi | --datad)
919 ac_prev=datadir ;;
920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
921 datadir=$ac_optarg ;;
923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
930 -disable-* | --disable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error $? "invalid feature name: $ac_useropt"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
939 "enable_$ac_useropt"
940 "*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=no ;;
946 -docdir | --docdir | --docdi | --doc | --do)
947 ac_prev=docdir ;;
948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 docdir=$ac_optarg ;;
951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 ac_prev=dvidir ;;
953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 dvidir=$ac_optarg ;;
956 -enable-* | --enable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 as_fn_error $? "invalid feature name: $ac_useropt"
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
965 "enable_$ac_useropt"
966 "*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
969 esac
970 eval enable_$ac_useropt=\$ac_optarg ;;
972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974 | --exec | --exe | --ex)
975 ac_prev=exec_prefix ;;
976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978 | --exec=* | --exe=* | --ex=*)
979 exec_prefix=$ac_optarg ;;
981 -gas | --gas | --ga | --g)
982 # Obsolete; use --with-gas.
983 with_gas=yes ;;
985 -help | --help | --hel | --he | -h)
986 ac_init_help=long ;;
987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988 ac_init_help=recursive ;;
989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990 ac_init_help=short ;;
992 -host | --host | --hos | --ho)
993 ac_prev=host_alias ;;
994 -host=* | --host=* | --hos=* | --ho=*)
995 host_alias=$ac_optarg ;;
997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998 ac_prev=htmldir ;;
999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000 | --ht=*)
1001 htmldir=$ac_optarg ;;
1003 -includedir | --includedir | --includedi | --included | --include \
1004 | --includ | --inclu | --incl | --inc)
1005 ac_prev=includedir ;;
1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007 | --includ=* | --inclu=* | --incl=* | --inc=*)
1008 includedir=$ac_optarg ;;
1010 -infodir | --infodir | --infodi | --infod | --info | --inf)
1011 ac_prev=infodir ;;
1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1013 infodir=$ac_optarg ;;
1015 -libdir | --libdir | --libdi | --libd)
1016 ac_prev=libdir ;;
1017 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1018 libdir=$ac_optarg ;;
1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021 | --libexe | --libex | --libe)
1022 ac_prev=libexecdir ;;
1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024 | --libexe=* | --libex=* | --libe=*)
1025 libexecdir=$ac_optarg ;;
1027 -localedir | --localedir | --localedi | --localed | --locale)
1028 ac_prev=localedir ;;
1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030 localedir=$ac_optarg ;;
1032 -localstatedir | --localstatedir | --localstatedi | --localstated \
1033 | --localstate | --localstat | --localsta | --localst | --locals)
1034 ac_prev=localstatedir ;;
1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1037 localstatedir=$ac_optarg ;;
1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040 ac_prev=mandir ;;
1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1042 mandir=$ac_optarg ;;
1044 -nfp | --nfp | --nf)
1045 # Obsolete; use --without-fp.
1046 with_fp=no ;;
1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049 | --no-cr | --no-c | -n)
1050 no_create=yes ;;
1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054 no_recursion=yes ;;
1056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058 | --oldin | --oldi | --old | --ol | --o)
1059 ac_prev=oldincludedir ;;
1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1063 oldincludedir=$ac_optarg ;;
1065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066 ac_prev=prefix ;;
1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1068 prefix=$ac_optarg ;;
1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071 | --program-pre | --program-pr | --program-p)
1072 ac_prev=program_prefix ;;
1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1075 program_prefix=$ac_optarg ;;
1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078 | --program-suf | --program-su | --program-s)
1079 ac_prev=program_suffix ;;
1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1082 program_suffix=$ac_optarg ;;
1084 -program-transform-name | --program-transform-name \
1085 | --program-transform-nam | --program-transform-na \
1086 | --program-transform-n | --program-transform- \
1087 | --program-transform | --program-transfor \
1088 | --program-transfo | --program-transf \
1089 | --program-trans | --program-tran \
1090 | --progr-tra | --program-tr | --program-t)
1091 ac_prev=program_transform_name ;;
1092 -program-transform-name=* | --program-transform-name=* \
1093 | --program-transform-nam=* | --program-transform-na=* \
1094 | --program-transform-n=* | --program-transform-=* \
1095 | --program-transform=* | --program-transfor=* \
1096 | --program-transfo=* | --program-transf=* \
1097 | --program-trans=* | --program-tran=* \
1098 | --progr-tra=* | --program-tr=* | --program-t=*)
1099 program_transform_name=$ac_optarg ;;
1101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102 ac_prev=pdfdir ;;
1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104 pdfdir=$ac_optarg ;;
1106 -psdir | --psdir | --psdi | --psd | --ps)
1107 ac_prev=psdir ;;
1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109 psdir=$ac_optarg ;;
1111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112 | -silent | --silent | --silen | --sile | --sil)
1113 silent=yes ;;
1115 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1116 ac_prev=sbindir ;;
1117 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1118 | --sbi=* | --sb=*)
1119 sbindir=$ac_optarg ;;
1121 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1122 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1123 | --sharedst | --shareds | --shared | --share | --shar \
1124 | --sha | --sh)
1125 ac_prev=sharedstatedir ;;
1126 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1127 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1128 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1129 | --sha=* | --sh=*)
1130 sharedstatedir=$ac_optarg ;;
1132 -site | --site | --sit)
1133 ac_prev=site ;;
1134 -site=* | --site=* | --sit=*)
1135 site=$ac_optarg ;;
1137 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1138 ac_prev=srcdir ;;
1139 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1140 srcdir=$ac_optarg ;;
1142 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1143 | --syscon | --sysco | --sysc | --sys | --sy)
1144 ac_prev=sysconfdir ;;
1145 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1146 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1147 sysconfdir=$ac_optarg ;;
1149 -target | --target | --targe | --targ | --tar | --ta | --t)
1150 ac_prev=target_alias ;;
1151 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1152 target_alias=$ac_optarg ;;
1154 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155 verbose=yes ;;
1157 -version | --version | --versio | --versi | --vers | -V)
1158 ac_init_version=: ;;
1160 -with-* | --with-*)
1161 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error $? "invalid package name: $ac_useropt"
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1169 "with_$ac_useropt"
1170 "*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=\$ac_optarg ;;
1176 -without-* | --without-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error $? "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=no ;;
1192 --x)
1193 # Obsolete; use --with-x.
1194 with_x=yes ;;
1196 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197 | --x-incl | --x-inc | --x-in | --x-i)
1198 ac_prev=x_includes ;;
1199 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201 x_includes=$ac_optarg ;;
1203 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205 ac_prev=x_libraries ;;
1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208 x_libraries=$ac_optarg ;;
1210 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1211 Try \`$0 --help' for more information"
1214 *=*)
1215 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216 # Reject names that are not valid shell variable names.
1217 case $ac_envvar in #(
1218 '' | [0-9]* | *[!_$as_cr_alnum]* )
1219 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1220 esac
1221 eval $ac_envvar=\$ac_optarg
1222 export $ac_envvar ;;
1225 # FIXME: should be removed in autoconf 3.0.
1226 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1232 esac
1233 done
1235 if test -n "$ac_prev"; then
1236 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237 as_fn_error $? "missing argument to $ac_option"
1240 if test -n "$ac_unrecognized_opts"; then
1241 case $enable_option_checking in
1242 no) ;;
1243 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1244 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245 esac
1248 # Check all directory arguments for consistency.
1249 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250 datadir sysconfdir sharedstatedir localstatedir includedir \
1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252 libdir localedir mandir
1254 eval ac_val=\$$ac_var
1255 # Remove trailing slashes.
1256 case $ac_val in
1257 */ )
1258 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259 eval $ac_var=\$ac_val;;
1260 esac
1261 # Be sure to have absolute directory names.
1262 case $ac_val in
1263 [\\/$]* | ?:[\\/]* ) continue;;
1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265 esac
1266 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1267 done
1269 # There might be people who depend on the old broken behavior: `$host'
1270 # used to hold the argument of --host etc.
1271 # FIXME: To remove some day.
1272 build=$build_alias
1273 host=$host_alias
1274 target=$target_alias
1276 # FIXME: To remove some day.
1277 if test "x$host_alias" != x; then
1278 if test "x$build_alias" = x; then
1279 cross_compiling=maybe
1280 elif test "x$build_alias" != "x$host_alias"; then
1281 cross_compiling=yes
1285 ac_tool_prefix=
1286 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288 test "$silent" = yes && exec 6>/dev/null
1291 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292 ac_ls_di=`ls -di .` &&
1293 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294 as_fn_error $? "working directory cannot be determined"
1295 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296 as_fn_error $? "pwd does not report name of working directory"
1299 # Find the source files, if location was not specified.
1300 if test -z "$srcdir"; then
1301 ac_srcdir_defaulted=yes
1302 # Try the directory containing this script, then the parent directory.
1303 ac_confdir=`$as_dirname -- "$as_myself" ||
1304 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305 X"$as_myself" : 'X\(//\)[^/]' \| \
1306 X"$as_myself" : 'X\(//\)$' \| \
1307 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1308 $as_echo X"$as_myself" |
1309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310 s//\1/
1313 /^X\(\/\/\)[^/].*/{
1314 s//\1/
1317 /^X\(\/\/\)$/{
1318 s//\1/
1321 /^X\(\/\).*/{
1322 s//\1/
1325 s/.*/./; q'`
1326 srcdir=$ac_confdir
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 srcdir=..
1330 else
1331 ac_srcdir_defaulted=no
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1337 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1338 ac_abs_confdir=`(
1339 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1340 pwd)`
1341 # When building in place, set srcdir=.
1342 if test "$ac_abs_confdir" = "$ac_pwd"; then
1343 srcdir=.
1345 # Remove unnecessary trailing slashes from srcdir.
1346 # Double slashes in file names in object file debugging info
1347 # mess up M-x gdb in Emacs.
1348 case $srcdir in
1349 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350 esac
1351 for ac_var in $ac_precious_vars; do
1352 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_env_${ac_var}_value=\$${ac_var}
1354 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1356 done
1359 # Report the --help message.
1361 if test "$ac_init_help" = "long"; then
1362 # Omit some internal or obsolete options to make the list less imposing.
1363 # This message is too long to be a string in the A/UX 3.1 sh.
1364 cat <<_ACEOF
1365 \`configure' configures gprofng 2.41.50 to adapt to many kinds of systems.
1367 Usage: $0 [OPTION]... [VAR=VALUE]...
1369 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1370 VAR=VALUE. See below for descriptions of some of the useful variables.
1372 Defaults for the options are specified in brackets.
1374 Configuration:
1375 -h, --help display this help and exit
1376 --help=short display options specific to this package
1377 --help=recursive display the short help of all the included packages
1378 -V, --version display version information and exit
1379 -q, --quiet, --silent do not print \`checking ...' messages
1380 --cache-file=FILE cache test results in FILE [disabled]
1381 -C, --config-cache alias for \`--cache-file=config.cache'
1382 -n, --no-create do not create output files
1383 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1385 Installation directories:
1386 --prefix=PREFIX install architecture-independent files in PREFIX
1387 [$ac_default_prefix]
1388 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1389 [PREFIX]
1391 By default, \`make install' will install all the files in
1392 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1393 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1394 for instance \`--prefix=\$HOME'.
1396 For better control, use the options below.
1398 Fine tuning of the installation directories:
1399 --bindir=DIR user executables [EPREFIX/bin]
1400 --sbindir=DIR system admin executables [EPREFIX/sbin]
1401 --libexecdir=DIR program executables [EPREFIX/libexec]
1402 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1403 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1404 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1405 --libdir=DIR object code libraries [EPREFIX/lib]
1406 --includedir=DIR C header files [PREFIX/include]
1407 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1408 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1409 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1410 --infodir=DIR info documentation [DATAROOTDIR/info]
1411 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1412 --mandir=DIR man documentation [DATAROOTDIR/man]
1413 --docdir=DIR documentation root [DATAROOTDIR/doc/gprofng]
1414 --htmldir=DIR html documentation [DOCDIR]
1415 --dvidir=DIR dvi documentation [DOCDIR]
1416 --pdfdir=DIR pdf documentation [DOCDIR]
1417 --psdir=DIR ps documentation [DOCDIR]
1418 _ACEOF
1420 cat <<\_ACEOF
1422 Program names:
1423 --program-prefix=PREFIX prepend PREFIX to installed program names
1424 --program-suffix=SUFFIX append SUFFIX to installed program names
1425 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1427 System types:
1428 --build=BUILD configure for building on BUILD [guessed]
1429 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1430 --target=TARGET configure for building compilers for TARGET [HOST]
1431 _ACEOF
1434 if test -n "$ac_init_help"; then
1435 case $ac_init_help in
1436 short | recursive ) echo "Configuration of gprofng 2.41.50:";;
1437 esac
1438 cat <<\_ACEOF
1440 Optional Features:
1441 --disable-option-checking ignore unrecognized --enable/--with options
1442 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1443 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1444 --enable-silent-rules less verbose build output (undo: "make V=1")
1445 --disable-silent-rules verbose build output (undo: "make V=0")
1446 --enable-maintainer-mode
1447 enable make rules and dependencies not useful (and
1448 sometimes confusing) to the casual installer
1449 --enable-dependency-tracking
1450 do not reject slow dependency extractors
1451 --disable-dependency-tracking
1452 speeds up one-time build
1453 --enable-shared[=PKGS] build shared libraries [default=no]
1454 --enable-static[=PKGS] build static libraries [default=yes]
1455 --enable-fast-install[=PKGS]
1456 optimize for fast installation [default=yes]
1457 --disable-libtool-lock avoid locking (might break parallel builds)
1458 --enable-werror-always enable -Werror despite compiler version
1459 --disable-gprofng-tools do not build gprofng/src directory
1460 --enable-gprofng-debug Enable debugging output [default=no]
1462 Optional Packages:
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1465 --with-pic try to use only PIC/non-PIC objects [default=use
1466 both]
1467 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1468 --with-jdk=PATH specify prefix directory for installed JDK.
1469 --with-system-zlib use installed libz
1471 Some influential environment variables:
1472 CC C compiler command
1473 CFLAGS C compiler flags
1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475 nonstandard directory <lib dir>
1476 LIBS libraries to pass to the linker, e.g. -l<library>
1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1478 you have headers in a nonstandard directory <include dir>
1479 CPP C preprocessor
1480 CXX C++ compiler command
1481 CXXFLAGS C++ compiler flags
1482 CXXCPP C++ preprocessor
1484 Use these variables to override the choices made by `configure' or to help
1485 it to find libraries and programs with nonstandard names/locations.
1487 Report bugs to the package provider.
1488 _ACEOF
1489 ac_status=$?
1492 if test "$ac_init_help" = "recursive"; then
1493 # If there are subdirs, report their specific --help.
1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495 test -d "$ac_dir" ||
1496 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1497 continue
1498 ac_builddir=.
1500 case "$ac_dir" in
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1504 # A ".." for each directory in $ac_dir_suffix.
1505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1506 case $ac_top_builddir_sub in
1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509 esac ;;
1510 esac
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1516 case $srcdir in
1517 .) # We are building in place.
1518 ac_srcdir=.
1519 ac_top_srcdir=$ac_top_builddir_sub
1520 ac_abs_top_srcdir=$ac_pwd ;;
1521 [\\/]* | ?:[\\/]* ) # Absolute name.
1522 ac_srcdir=$srcdir$ac_dir_suffix;
1523 ac_top_srcdir=$srcdir
1524 ac_abs_top_srcdir=$srcdir ;;
1525 *) # Relative name.
1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527 ac_top_srcdir=$ac_top_build_prefix$srcdir
1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 esac
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532 cd "$ac_dir" || { ac_status=$?; continue; }
1533 # Check for guested configure.
1534 if test -f "$ac_srcdir/configure.gnu"; then
1535 echo &&
1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537 elif test -f "$ac_srcdir/configure"; then
1538 echo &&
1539 $SHELL "$ac_srcdir/configure" --help=recursive
1540 else
1541 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542 fi || ac_status=$?
1543 cd "$ac_pwd" || { ac_status=$?; break; }
1544 done
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1549 cat <<\_ACEOF
1550 gprofng configure 2.41.50
1551 generated by GNU Autoconf 2.69
1553 Copyright (C) 2012 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1556 _ACEOF
1557 exit
1560 ## ------------------------ ##
1561 ## Autoconf initialization. ##
1562 ## ------------------------ ##
1564 # ac_fn_c_try_compile LINENO
1565 # --------------------------
1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_compile ()
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext
1571 if { { ac_try="$ac_compile"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_compile") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest.$ac_objext; then :
1590 ac_retval=0
1591 else
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1595 ac_retval=1
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status $ac_retval
1600 } # ac_fn_c_try_compile
1602 # ac_fn_c_try_cpp LINENO
1603 # ----------------------
1604 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_cpp ()
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 if { { ac_try="$ac_cpp conftest.$ac_ext"
1609 case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1616 ac_status=$?
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } > conftest.i && {
1624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 }; then :
1627 ac_retval=0
1628 else
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1632 ac_retval=1
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1637 } # ac_fn_c_try_cpp
1639 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1640 # -------------------------------------------------------
1641 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1642 # the include files in INCLUDES and setting the cache variable VAR
1643 # accordingly.
1644 ac_fn_c_check_header_mongrel ()
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 if eval \${$3+:} false; then :
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649 $as_echo_n "checking for $2... " >&6; }
1650 if eval \${$3+:} false; then :
1651 $as_echo_n "(cached) " >&6
1653 eval ac_res=\$$3
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655 $as_echo "$ac_res" >&6; }
1656 else
1657 # Is the header compilable?
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1659 $as_echo_n "checking $2 usability... " >&6; }
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_compile "$LINENO"; then :
1666 ac_header_compiler=yes
1667 else
1668 ac_header_compiler=no
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1672 $as_echo "$ac_header_compiler" >&6; }
1674 # Is the header present?
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1676 $as_echo_n "checking $2 presence... " >&6; }
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1679 #include <$2>
1680 _ACEOF
1681 if ac_fn_c_try_cpp "$LINENO"; then :
1682 ac_header_preproc=yes
1683 else
1684 ac_header_preproc=no
1686 rm -f conftest.err conftest.i conftest.$ac_ext
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1688 $as_echo "$ac_header_preproc" >&6; }
1690 # So? What about this header?
1691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1692 yes:no: )
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1694 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1696 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1698 no:yes:* )
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1700 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1702 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1704 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1706 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1708 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1710 esac
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if eval \${$3+:} false; then :
1714 $as_echo_n "(cached) " >&6
1715 else
1716 eval "$3=\$ac_header_compiler"
1718 eval ac_res=\$$3
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720 $as_echo "$ac_res" >&6; }
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 } # ac_fn_c_check_header_mongrel
1726 # ac_fn_c_try_run LINENO
1727 # ----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729 # that executables *can* be run.
1730 ac_fn_c_try_run ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_link"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1744 { { case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_try") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; }; }; then :
1754 ac_retval=0
1755 else
1756 $as_echo "$as_me: program exited with status $ac_status" >&5
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1760 ac_retval=$ac_status
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1766 } # ac_fn_c_try_run
1768 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1769 # -------------------------------------------------------
1770 # Tests whether HEADER exists and can be compiled using the include files in
1771 # INCLUDES, setting the cache variable VAR accordingly.
1772 ac_fn_c_check_header_compile ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1779 else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1783 #include <$2>
1784 _ACEOF
1785 if ac_fn_c_try_compile "$LINENO"; then :
1786 eval "$3=yes"
1787 else
1788 eval "$3=no"
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 } # ac_fn_c_check_header_compile
1799 # ac_fn_cxx_try_compile LINENO
1800 # ----------------------------
1801 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_cxx_try_compile ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext
1806 if { { ac_try="$ac_compile"
1807 case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_compile") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_cxx_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest.$ac_objext; then :
1825 ac_retval=0
1826 else
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1830 ac_retval=1
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1835 } # ac_fn_cxx_try_compile
1837 # ac_fn_c_try_link LINENO
1838 # -----------------------
1839 # Try to link conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_c_try_link ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext conftest$ac_exeext
1844 if { { ac_try="$ac_link"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_link") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_c_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest$ac_exeext && {
1863 test "$cross_compiling" = yes ||
1864 test -x conftest$ac_exeext
1865 }; then :
1866 ac_retval=0
1867 else
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1871 ac_retval=1
1873 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1874 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1875 # interfere with the next link command; also delete a directory that is
1876 # left behind by Apple's compiler. We do this before executing the actions.
1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 as_fn_set_status $ac_retval
1881 } # ac_fn_c_try_link
1883 # ac_fn_c_check_func LINENO FUNC VAR
1884 # ----------------------------------
1885 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1886 ac_fn_c_check_func ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if eval \${$3+:} false; then :
1892 $as_echo_n "(cached) " >&6
1893 else
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1896 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1898 #define $2 innocuous_$2
1900 /* System header to define __stub macros and hopefully few prototypes,
1901 which can conflict with char $2 (); below.
1902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1903 <limits.h> exists even on freestanding compilers. */
1905 #ifdef __STDC__
1906 # include <limits.h>
1907 #else
1908 # include <assert.h>
1909 #endif
1911 #undef $2
1913 /* Override any GCC internal prototype to avoid an error.
1914 Use char because int might match the return type of a GCC
1915 builtin and then its argument prototype would still apply. */
1916 #ifdef __cplusplus
1917 extern "C"
1918 #endif
1919 char $2 ();
1920 /* The GNU C library defines this for functions which it implements
1921 to always fail with ENOSYS. Some functions are actually named
1922 something starting with __ and the normal name is an alias. */
1923 #if defined __stub_$2 || defined __stub___$2
1924 choke me
1925 #endif
1928 main ()
1930 return $2 ();
1932 return 0;
1934 _ACEOF
1935 if ac_fn_c_try_link "$LINENO"; then :
1936 eval "$3=yes"
1937 else
1938 eval "$3=no"
1940 rm -f core conftest.err conftest.$ac_objext \
1941 conftest$ac_exeext conftest.$ac_ext
1943 eval ac_res=\$$3
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948 } # ac_fn_c_check_func
1950 # ac_fn_cxx_try_cpp LINENO
1951 # ------------------------
1952 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1953 ac_fn_cxx_try_cpp ()
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 if { { ac_try="$ac_cpp conftest.$ac_ext"
1957 case "(($ac_try" in
1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959 *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1964 ac_status=$?
1965 if test -s conftest.err; then
1966 grep -v '^ *+' conftest.err >conftest.er1
1967 cat conftest.er1 >&5
1968 mv -f conftest.er1 conftest.err
1970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971 test $ac_status = 0; } > conftest.i && {
1972 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1973 test ! -s conftest.err
1974 }; then :
1975 ac_retval=0
1976 else
1977 $as_echo "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.$ac_ext >&5
1980 ac_retval=1
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 as_fn_set_status $ac_retval
1985 } # ac_fn_cxx_try_cpp
1987 # ac_fn_cxx_try_link LINENO
1988 # -------------------------
1989 # Try to link conftest.$ac_ext, and return whether this succeeded.
1990 ac_fn_cxx_try_link ()
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 rm -f conftest.$ac_objext conftest$ac_exeext
1994 if { { ac_try="$ac_link"
1995 case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998 esac
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_link") 2>conftest.err
2002 ac_status=$?
2003 if test -s conftest.err; then
2004 grep -v '^ *+' conftest.err >conftest.er1
2005 cat conftest.er1 >&5
2006 mv -f conftest.er1 conftest.err
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && {
2010 test -z "$ac_cxx_werror_flag" ||
2011 test ! -s conftest.err
2012 } && test -s conftest$ac_exeext && {
2013 test "$cross_compiling" = yes ||
2014 test -x conftest$ac_exeext
2015 }; then :
2016 ac_retval=0
2017 else
2018 $as_echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.$ac_ext >&5
2021 ac_retval=1
2023 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2024 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2025 # interfere with the next link command; also delete a directory that is
2026 # left behind by Apple's compiler. We do this before executing the actions.
2027 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029 as_fn_set_status $ac_retval
2031 } # ac_fn_cxx_try_link
2033 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2034 # ---------------------------------------------
2035 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2036 # accordingly.
2037 ac_fn_c_check_decl ()
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040 as_decl_name=`echo $2|sed 's/ *(.*//'`
2041 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2043 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2044 if eval \${$3+:} false; then :
2045 $as_echo_n "(cached) " >&6
2046 else
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2051 main ()
2053 #ifndef $as_decl_name
2054 #ifdef __cplusplus
2055 (void) $as_decl_use;
2056 #else
2057 (void) $as_decl_name;
2058 #endif
2059 #endif
2062 return 0;
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"; then :
2066 eval "$3=yes"
2067 else
2068 eval "$3=no"
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 eval ac_res=\$$3
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077 } # ac_fn_c_check_decl
2078 cat >config.log <<_ACEOF
2079 This file contains any messages produced by compilers while
2080 running configure, to aid debugging if configure makes a mistake.
2082 It was created by gprofng $as_me 2.41.50, which was
2083 generated by GNU Autoconf 2.69. Invocation command line was
2085 $ $0 $@
2087 _ACEOF
2088 exec 5>>config.log
2090 cat <<_ASUNAME
2091 ## --------- ##
2092 ## Platform. ##
2093 ## --------- ##
2095 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2096 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2097 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2098 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2099 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2101 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2102 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2104 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2105 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2106 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2107 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2108 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2109 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2110 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2112 _ASUNAME
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2117 IFS=$as_save_IFS
2118 test -z "$as_dir" && as_dir=.
2119 $as_echo "PATH: $as_dir"
2120 done
2121 IFS=$as_save_IFS
2123 } >&5
2125 cat >&5 <<_ACEOF
2128 ## ----------- ##
2129 ## Core tests. ##
2130 ## ----------- ##
2132 _ACEOF
2135 # Keep a trace of the command line.
2136 # Strip out --no-create and --no-recursion so they do not pile up.
2137 # Strip out --silent because we don't want to record it for future runs.
2138 # Also quote any args containing shell meta-characters.
2139 # Make two passes to allow for proper duplicate-argument suppression.
2140 ac_configure_args=
2141 ac_configure_args0=
2142 ac_configure_args1=
2143 ac_must_keep_next=false
2144 for ac_pass in 1 2
2146 for ac_arg
2148 case $ac_arg in
2149 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2151 | -silent | --silent | --silen | --sile | --sil)
2152 continue ;;
2153 *\'*)
2154 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2155 esac
2156 case $ac_pass in
2157 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2159 as_fn_append ac_configure_args1 " '$ac_arg'"
2160 if test $ac_must_keep_next = true; then
2161 ac_must_keep_next=false # Got value, back to normal.
2162 else
2163 case $ac_arg in
2164 *=* | --config-cache | -C | -disable-* | --disable-* \
2165 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2166 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2167 | -with-* | --with-* | -without-* | --without-* | --x)
2168 case "$ac_configure_args0 " in
2169 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2170 esac
2172 -* ) ac_must_keep_next=true ;;
2173 esac
2175 as_fn_append ac_configure_args " '$ac_arg'"
2177 esac
2178 done
2179 done
2180 { ac_configure_args0=; unset ac_configure_args0;}
2181 { ac_configure_args1=; unset ac_configure_args1;}
2183 # When interrupted or exit'd, cleanup temporary files, and complete
2184 # config.log. We remove comments because anyway the quotes in there
2185 # would cause problems or look ugly.
2186 # WARNING: Use '\'' to represent an apostrophe within the trap.
2187 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2188 trap 'exit_status=$?
2189 # Save into config.log some information that might help in debugging.
2191 echo
2193 $as_echo "## ---------------- ##
2194 ## Cache variables. ##
2195 ## ---------------- ##"
2196 echo
2197 # The following way of writing the cache mishandles newlines in values,
2199 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2200 eval ac_val=\$$ac_var
2201 case $ac_val in #(
2202 *${as_nl}*)
2203 case $ac_var in #(
2204 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2205 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2206 esac
2207 case $ac_var in #(
2208 _ | IFS | as_nl) ;; #(
2209 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2210 *) { eval $ac_var=; unset $ac_var;} ;;
2211 esac ;;
2212 esac
2213 done
2214 (set) 2>&1 |
2215 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2216 *${as_nl}ac_space=\ *)
2217 sed -n \
2218 "s/'\''/'\''\\\\'\'''\''/g;
2219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2220 ;; #(
2222 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2224 esac |
2225 sort
2227 echo
2229 $as_echo "## ----------------- ##
2230 ## Output variables. ##
2231 ## ----------------- ##"
2232 echo
2233 for ac_var in $ac_subst_vars
2235 eval ac_val=\$$ac_var
2236 case $ac_val in
2237 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2238 esac
2239 $as_echo "$ac_var='\''$ac_val'\''"
2240 done | sort
2241 echo
2243 if test -n "$ac_subst_files"; then
2244 $as_echo "## ------------------- ##
2245 ## File substitutions. ##
2246 ## ------------------- ##"
2247 echo
2248 for ac_var in $ac_subst_files
2250 eval ac_val=\$$ac_var
2251 case $ac_val in
2252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2253 esac
2254 $as_echo "$ac_var='\''$ac_val'\''"
2255 done | sort
2256 echo
2259 if test -s confdefs.h; then
2260 $as_echo "## ----------- ##
2261 ## confdefs.h. ##
2262 ## ----------- ##"
2263 echo
2264 cat confdefs.h
2265 echo
2267 test "$ac_signal" != 0 &&
2268 $as_echo "$as_me: caught signal $ac_signal"
2269 $as_echo "$as_me: exit $exit_status"
2270 } >&5
2271 rm -f core *.core core.conftest.* &&
2272 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2273 exit $exit_status
2275 for ac_signal in 1 2 13 15; do
2276 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2277 done
2278 ac_signal=0
2280 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2281 rm -f -r conftest* confdefs.h
2283 $as_echo "/* confdefs.h */" > confdefs.h
2285 # Predefined preprocessor variables.
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_NAME "$PACKAGE_NAME"
2289 _ACEOF
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2293 _ACEOF
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2297 _ACEOF
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_STRING "$PACKAGE_STRING"
2301 _ACEOF
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2305 _ACEOF
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_URL "$PACKAGE_URL"
2309 _ACEOF
2312 # Let the site file select an alternate cache file if it wants to.
2313 # Prefer an explicitly selected file to automatically selected ones.
2314 ac_site_file1=NONE
2315 ac_site_file2=NONE
2316 if test -n "$CONFIG_SITE"; then
2317 # We do not want a PATH search for config.site.
2318 case $CONFIG_SITE in #((
2319 -*) ac_site_file1=./$CONFIG_SITE;;
2320 */*) ac_site_file1=$CONFIG_SITE;;
2321 *) ac_site_file1=./$CONFIG_SITE;;
2322 esac
2323 elif test "x$prefix" != xNONE; then
2324 ac_site_file1=$prefix/share/config.site
2325 ac_site_file2=$prefix/etc/config.site
2326 else
2327 ac_site_file1=$ac_default_prefix/share/config.site
2328 ac_site_file2=$ac_default_prefix/etc/config.site
2330 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2332 test "x$ac_site_file" = xNONE && continue
2333 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2335 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2336 sed 's/^/| /' "$ac_site_file" >&5
2337 . "$ac_site_file" \
2338 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2340 as_fn_error $? "failed to load site script $ac_site_file
2341 See \`config.log' for more details" "$LINENO" 5; }
2343 done
2345 if test -r "$cache_file"; then
2346 # Some versions of bash will fail to source /dev/null (special files
2347 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2348 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2350 $as_echo "$as_me: loading cache $cache_file" >&6;}
2351 case $cache_file in
2352 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2353 *) . "./$cache_file";;
2354 esac
2356 else
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2358 $as_echo "$as_me: creating cache $cache_file" >&6;}
2359 >$cache_file
2362 # Check that the precious variables saved in the cache have kept the same
2363 # value.
2364 ac_cache_corrupted=false
2365 for ac_var in $ac_precious_vars; do
2366 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2367 eval ac_new_set=\$ac_env_${ac_var}_set
2368 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2369 eval ac_new_val=\$ac_env_${ac_var}_value
2370 case $ac_old_set,$ac_new_set in
2371 set,)
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2373 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2374 ac_cache_corrupted=: ;;
2375 ,set)
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2377 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2378 ac_cache_corrupted=: ;;
2379 ,);;
2381 if test "x$ac_old_val" != "x$ac_new_val"; then
2382 # differences in whitespace do not lead to failure.
2383 ac_old_val_w=`echo x $ac_old_val`
2384 ac_new_val_w=`echo x $ac_new_val`
2385 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2387 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2388 ac_cache_corrupted=:
2389 else
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2391 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2392 eval $ac_var=\$ac_old_val
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2395 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2397 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2398 fi;;
2399 esac
2400 # Pass precious variables to config.status.
2401 if test "$ac_new_set" = set; then
2402 case $ac_new_val in
2403 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2404 *) ac_arg=$ac_var=$ac_new_val ;;
2405 esac
2406 case " $ac_configure_args " in
2407 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2408 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2409 esac
2411 done
2412 if $ac_cache_corrupted; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2416 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2417 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2419 ## -------------------- ##
2420 ## Main body of script. ##
2421 ## -------------------- ##
2423 ac_ext=c
2424 ac_cpp='$CPP $CPPFLAGS'
2425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2430 ac_aux_dir=
2431 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2432 if test -f "$ac_dir/install-sh"; then
2433 ac_aux_dir=$ac_dir
2434 ac_install_sh="$ac_aux_dir/install-sh -c"
2435 break
2436 elif test -f "$ac_dir/install.sh"; then
2437 ac_aux_dir=$ac_dir
2438 ac_install_sh="$ac_aux_dir/install.sh -c"
2439 break
2440 elif test -f "$ac_dir/shtool"; then
2441 ac_aux_dir=$ac_dir
2442 ac_install_sh="$ac_aux_dir/shtool install -c"
2443 break
2445 done
2446 if test -z "$ac_aux_dir"; then
2447 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2450 # These three variables are undocumented and unsupported,
2451 # and are intended to be withdrawn in a future Autoconf release.
2452 # They can cause serious problems if a builder's source tree is in a directory
2453 # whose full name contains unusual characters.
2454 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2455 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2456 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2459 # Make sure we can run config.sub.
2460 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2461 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2464 $as_echo_n "checking build system type... " >&6; }
2465 if ${ac_cv_build+:} false; then :
2466 $as_echo_n "(cached) " >&6
2467 else
2468 ac_build_alias=$build_alias
2469 test "x$ac_build_alias" = x &&
2470 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2471 test "x$ac_build_alias" = x &&
2472 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2473 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2474 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2478 $as_echo "$ac_cv_build" >&6; }
2479 case $ac_cv_build in
2480 *-*-*) ;;
2481 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2482 esac
2483 build=$ac_cv_build
2484 ac_save_IFS=$IFS; IFS='-'
2485 set x $ac_cv_build
2486 shift
2487 build_cpu=$1
2488 build_vendor=$2
2489 shift; shift
2490 # Remember, the first character of IFS is used to create $*,
2491 # except with old shells:
2492 build_os=$*
2493 IFS=$ac_save_IFS
2494 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2498 $as_echo_n "checking host system type... " >&6; }
2499 if ${ac_cv_host+:} false; then :
2500 $as_echo_n "(cached) " >&6
2501 else
2502 if test "x$host_alias" = x; then
2503 ac_cv_host=$ac_cv_build
2504 else
2505 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2506 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2511 $as_echo "$ac_cv_host" >&6; }
2512 case $ac_cv_host in
2513 *-*-*) ;;
2514 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2515 esac
2516 host=$ac_cv_host
2517 ac_save_IFS=$IFS; IFS='-'
2518 set x $ac_cv_host
2519 shift
2520 host_cpu=$1
2521 host_vendor=$2
2522 shift; shift
2523 # Remember, the first character of IFS is used to create $*,
2524 # except with old shells:
2525 host_os=$*
2526 IFS=$ac_save_IFS
2527 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2531 $as_echo_n "checking target system type... " >&6; }
2532 if ${ac_cv_target+:} false; then :
2533 $as_echo_n "(cached) " >&6
2534 else
2535 if test "x$target_alias" = x; then
2536 ac_cv_target=$ac_cv_host
2537 else
2538 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2539 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2544 $as_echo "$ac_cv_target" >&6; }
2545 case $ac_cv_target in
2546 *-*-*) ;;
2547 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2548 esac
2549 target=$ac_cv_target
2550 ac_save_IFS=$IFS; IFS='-'
2551 set x $ac_cv_target
2552 shift
2553 target_cpu=$1
2554 target_vendor=$2
2555 shift; shift
2556 # Remember, the first character of IFS is used to create $*,
2557 # except with old shells:
2558 target_os=$*
2559 IFS=$ac_save_IFS
2560 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2563 # The aliases save the names the user supplied, while $host etc.
2564 # will get canonicalized.
2565 test -n "$target_alias" &&
2566 test "$program_prefix$program_suffix$program_transform_name" = \
2567 NONENONEs,x,x, &&
2568 program_prefix=${target_alias}-
2569 am__api_version='1.15'
2571 # Find a good install program. We prefer a C program (faster),
2572 # so one script is as good as another. But avoid the broken or
2573 # incompatible versions:
2574 # SysV /etc/install, /usr/sbin/install
2575 # SunOS /usr/etc/install
2576 # IRIX /sbin/install
2577 # AIX /bin/install
2578 # AmigaOS /C/install, which installs bootblocks on floppy discs
2579 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2580 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2581 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2582 # OS/2's system install, which has a completely different semantic
2583 # ./install, which can be erroneously created by make from ./install.sh.
2584 # Reject install programs that cannot install multiple files.
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2586 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2587 if test -z "$INSTALL"; then
2588 if ${ac_cv_path_install+:} false; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2594 IFS=$as_save_IFS
2595 test -z "$as_dir" && as_dir=.
2596 # Account for people who put trailing slashes in PATH elements.
2597 case $as_dir/ in #((
2598 ./ | .// | /[cC]/* | \
2599 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2600 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2601 /usr/ucb/* ) ;;
2603 # OSF1 and SCO ODT 3.0 have their own names for install.
2604 # Don't use installbsd from OSF since it installs stuff as root
2605 # by default.
2606 for ac_prog in ginstall scoinst install; do
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2609 if test $ac_prog = install &&
2610 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2611 # AIX install. It has an incompatible calling convention.
2613 elif test $ac_prog = install &&
2614 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2615 # program-specific install script used by HP pwplus--don't use.
2617 else
2618 rm -rf conftest.one conftest.two conftest.dir
2619 echo one > conftest.one
2620 echo two > conftest.two
2621 mkdir conftest.dir
2622 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2623 test -s conftest.one && test -s conftest.two &&
2624 test -s conftest.dir/conftest.one &&
2625 test -s conftest.dir/conftest.two
2626 then
2627 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2628 break 3
2632 done
2633 done
2635 esac
2637 done
2638 IFS=$as_save_IFS
2640 rm -rf conftest.one conftest.two conftest.dir
2643 if test "${ac_cv_path_install+set}" = set; then
2644 INSTALL=$ac_cv_path_install
2645 else
2646 # As a last resort, use the slow shell script. Don't cache a
2647 # value for INSTALL within a source directory, because that will
2648 # break other packages using the cache if that directory is
2649 # removed, or if the value is a relative name.
2650 INSTALL=$ac_install_sh
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2654 $as_echo "$INSTALL" >&6; }
2656 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2657 # It thinks the first close brace ends the variable substitution.
2658 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2660 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2662 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2665 $as_echo_n "checking whether build environment is sane... " >&6; }
2666 # Reject unsafe characters in $srcdir or the absolute working directory
2667 # name. Accept space and tab only in the latter.
2668 am_lf='
2670 case `pwd` in
2671 *[\\\"\#\$\&\'\`$am_lf]*)
2672 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2673 esac
2674 case $srcdir in
2675 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2676 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2677 esac
2679 # Do 'set' in a subshell so we don't clobber the current shell's
2680 # arguments. Must try -L first in case configure is actually a
2681 # symlink; some systems play weird games with the mod time of symlinks
2682 # (eg FreeBSD returns the mod time of the symlink's containing
2683 # directory).
2684 if (
2685 am_has_slept=no
2686 for am_try in 1 2; do
2687 echo "timestamp, slept: $am_has_slept" > conftest.file
2688 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2689 if test "$*" = "X"; then
2690 # -L didn't work.
2691 set X `ls -t "$srcdir/configure" conftest.file`
2693 if test "$*" != "X $srcdir/configure conftest.file" \
2694 && test "$*" != "X conftest.file $srcdir/configure"; then
2696 # If neither matched, then we have a broken ls. This can happen
2697 # if, for instance, CONFIG_SHELL is bash and it inherits a
2698 # broken ls alias from the environment. This has actually
2699 # happened. Such a system could not be considered "sane".
2700 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2701 alias in your environment" "$LINENO" 5
2703 if test "$2" = conftest.file || test $am_try -eq 2; then
2704 break
2706 # Just in case.
2707 sleep 1
2708 am_has_slept=yes
2709 done
2710 test "$2" = conftest.file
2712 then
2713 # Ok.
2715 else
2716 as_fn_error $? "newly created file is older than distributed files!
2717 Check your system clock" "$LINENO" 5
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2720 $as_echo "yes" >&6; }
2721 # If we didn't sleep, we still need to ensure time stamps of config.status and
2722 # generated files are strictly newer.
2723 am_sleep_pid=
2724 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2725 ( sleep 1 ) &
2726 am_sleep_pid=$!
2729 rm -f conftest.file
2731 test "$program_prefix" != NONE &&
2732 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2733 # Use a double $ so make ignores it.
2734 test "$program_suffix" != NONE &&
2735 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2736 # Double any \ or $.
2737 # By default was `s,x,x', remove it if useless.
2738 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2739 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2741 # Expand $ac_aux_dir to an absolute path.
2742 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2744 if test x"${MISSING+set}" != xset; then
2745 case $am_aux_dir in
2746 *\ * | *\ *)
2747 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2749 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2750 esac
2752 # Use eval to expand $SHELL
2753 if eval "$MISSING --is-lightweight"; then
2754 am_missing_run="$MISSING "
2755 else
2756 am_missing_run=
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2758 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2761 if test x"${install_sh+set}" != xset; then
2762 case $am_aux_dir in
2763 *\ * | *\ *)
2764 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2766 install_sh="\${SHELL} $am_aux_dir/install-sh"
2767 esac
2770 # Installed binaries are usually stripped using 'strip' when the user
2771 # run "make install-strip". However 'strip' might not be the right
2772 # tool to use in cross-compilation environments, therefore Automake
2773 # will honor the 'STRIP' environment variable to overrule this program.
2774 if test "$cross_compiling" != no; then
2775 if test -n "$ac_tool_prefix"; then
2776 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2777 set dummy ${ac_tool_prefix}strip; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if ${ac_cv_prog_STRIP+:} false; then :
2781 $as_echo_n "(cached) " >&6
2782 else
2783 if test -n "$STRIP"; then
2784 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2797 done
2798 done
2799 IFS=$as_save_IFS
2803 STRIP=$ac_cv_prog_STRIP
2804 if test -n "$STRIP"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2806 $as_echo "$STRIP" >&6; }
2807 else
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2814 if test -z "$ac_cv_prog_STRIP"; then
2815 ac_ct_STRIP=$STRIP
2816 # Extract the first word of "strip", so it can be a program name with args.
2817 set dummy strip; ac_word=$2
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819 $as_echo_n "checking for $ac_word... " >&6; }
2820 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 if test -n "$ac_ct_STRIP"; then
2824 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833 ac_cv_prog_ac_ct_STRIP="strip"
2834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2837 done
2838 done
2839 IFS=$as_save_IFS
2843 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2844 if test -n "$ac_ct_STRIP"; then
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2846 $as_echo "$ac_ct_STRIP" >&6; }
2847 else
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849 $as_echo "no" >&6; }
2852 if test "x$ac_ct_STRIP" = x; then
2853 STRIP=":"
2854 else
2855 case $cross_compiling:$ac_tool_warned in
2856 yes:)
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2859 ac_tool_warned=yes ;;
2860 esac
2861 STRIP=$ac_ct_STRIP
2863 else
2864 STRIP="$ac_cv_prog_STRIP"
2868 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2871 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2872 if test -z "$MKDIR_P"; then
2873 if ${ac_cv_path_mkdir+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_prog in mkdir gmkdir; do
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2884 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2885 'mkdir (GNU coreutils) '* | \
2886 'mkdir (coreutils) '* | \
2887 'mkdir (fileutils) '4.1*)
2888 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2889 break 3;;
2890 esac
2891 done
2892 done
2893 done
2894 IFS=$as_save_IFS
2898 test -d ./--version && rmdir ./--version
2899 if test "${ac_cv_path_mkdir+set}" = set; then
2900 MKDIR_P="$ac_cv_path_mkdir -p"
2901 else
2902 # As a last resort, use the slow shell script. Don't cache a
2903 # value for MKDIR_P within a source directory, because that will
2904 # break other packages using the cache if that directory is
2905 # removed, or if the value is a relative name.
2906 MKDIR_P="$ac_install_sh -d"
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2910 $as_echo "$MKDIR_P" >&6; }
2912 for ac_prog in gawk mawk nawk awk
2914 # Extract the first word of "$ac_prog", so it can be a program name with args.
2915 set dummy $ac_prog; ac_word=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if ${ac_cv_prog_AWK+:} false; then :
2919 $as_echo_n "(cached) " >&6
2920 else
2921 if test -n "$AWK"; then
2922 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2927 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2931 ac_cv_prog_AWK="$ac_prog"
2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 break 2
2935 done
2936 done
2937 IFS=$as_save_IFS
2941 AWK=$ac_cv_prog_AWK
2942 if test -n "$AWK"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2944 $as_echo "$AWK" >&6; }
2945 else
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2951 test -n "$AWK" && break
2952 done
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2955 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2956 set x ${MAKE-make}
2957 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2958 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2959 $as_echo_n "(cached) " >&6
2960 else
2961 cat >conftest.make <<\_ACEOF
2962 SHELL = /bin/sh
2963 all:
2964 @echo '@@@%%%=$(MAKE)=@@@%%%'
2965 _ACEOF
2966 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2967 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2968 *@@@%%%=?*=@@@%%%*)
2969 eval ac_cv_prog_make_${ac_make}_set=yes;;
2971 eval ac_cv_prog_make_${ac_make}_set=no;;
2972 esac
2973 rm -f conftest.make
2975 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2977 $as_echo "yes" >&6; }
2978 SET_MAKE=
2979 else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2982 SET_MAKE="MAKE=${MAKE-make}"
2985 rm -rf .tst 2>/dev/null
2986 mkdir .tst 2>/dev/null
2987 if test -d .tst; then
2988 am__leading_dot=.
2989 else
2990 am__leading_dot=_
2992 rmdir .tst 2>/dev/null
2994 # Check whether --enable-silent-rules was given.
2995 if test "${enable_silent_rules+set}" = set; then :
2996 enableval=$enable_silent_rules;
2999 case $enable_silent_rules in # (((
3000 yes) AM_DEFAULT_VERBOSITY=0;;
3001 no) AM_DEFAULT_VERBOSITY=1;;
3002 *) AM_DEFAULT_VERBOSITY=1;;
3003 esac
3004 am_make=${MAKE-make}
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3006 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3007 if ${am_cv_make_support_nested_variables+:} false; then :
3008 $as_echo_n "(cached) " >&6
3009 else
3010 if $as_echo 'TRUE=$(BAR$(V))
3011 BAR0=false
3012 BAR1=true
3014 am__doit:
3015 @$(TRUE)
3016 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3017 am_cv_make_support_nested_variables=yes
3018 else
3019 am_cv_make_support_nested_variables=no
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3023 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3024 if test $am_cv_make_support_nested_variables = yes; then
3025 AM_V='$(V)'
3026 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3027 else
3028 AM_V=$AM_DEFAULT_VERBOSITY
3029 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3031 AM_BACKSLASH='\'
3033 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3034 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3035 # is not polluted with repeated "-I."
3036 am__isrc=' -I$(srcdir)'
3037 # test to see if srcdir already configured
3038 if test -f $srcdir/config.status; then
3039 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3043 # test whether we have cygpath
3044 if test -z "$CYGPATH_W"; then
3045 if (cygpath --version) >/dev/null 2>/dev/null; then
3046 CYGPATH_W='cygpath -w'
3047 else
3048 CYGPATH_W=echo
3053 # Define the identity of the package.
3054 PACKAGE='gprofng'
3055 VERSION='2.41.50'
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE "$PACKAGE"
3060 _ACEOF
3063 cat >>confdefs.h <<_ACEOF
3064 #define VERSION "$VERSION"
3065 _ACEOF
3067 # Some tools Automake needs.
3069 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3072 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3075 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3078 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3081 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3083 # For better backward compatibility. To be removed once Automake 1.9.x
3084 # dies out for good. For more background, see:
3085 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3086 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3087 mkdir_p='$(MKDIR_P)'
3089 # We need awk for the "check" target (and possibly the TAP driver). The
3090 # system "awk" is bad on some platforms.
3091 # Always define AMTAR for backward compatibility. Yes, it's still used
3092 # in the wild :-( We should find a proper way to deprecate it ...
3093 AMTAR='$${TAR-tar}'
3096 # We'll loop over all known methods to create a tar archive until one works.
3097 _am_tools='gnutar pax cpio none'
3099 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3106 # POSIX will say in a future version that running "rm -f" with no argument
3107 # is OK; and we want to be able to make that assumption in our Makefile
3108 # recipes. So use an aggressive probe to check that the usage we want is
3109 # actually supported "in the wild" to an acceptable degree.
3110 # See automake bug#10828.
3111 # To make any issue more visible, cause the running configure to be aborted
3112 # by default if the 'rm' program in use doesn't match our expectations; the
3113 # user can still override this though.
3114 if rm -f && rm -fr && rm -rf; then : OK; else
3115 cat >&2 <<'END'
3116 Oops!
3118 Your 'rm' program seems unable to run without file operands specified
3119 on the command line, even when the '-f' option is present. This is contrary
3120 to the behaviour of most rm programs out there, and not conforming with
3121 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3123 Please tell bug-automake@gnu.org about your system, including the value
3124 of your $PATH and any error possibly output before this message. This
3125 can help us improve future automake versions.
3128 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3129 echo 'Configuration will proceed anyway, since you have set the' >&2
3130 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3131 echo >&2
3132 else
3133 cat >&2 <<'END'
3134 Aborting the configuration process, to ensure you take notice of the issue.
3136 You can download and install GNU coreutils to get an 'rm' implementation
3137 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3139 If you want to complete the configuration process using your problematic
3140 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3141 to "yes", and re-run configure.
3144 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3150 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3151 # Check whether --enable-maintainer-mode was given.
3152 if test "${enable_maintainer_mode+set}" = set; then :
3153 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3154 else
3155 USE_MAINTAINER_MODE=no
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3159 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3160 if test $USE_MAINTAINER_MODE = yes; then
3161 MAINTAINER_MODE_TRUE=
3162 MAINTAINER_MODE_FALSE='#'
3163 else
3164 MAINTAINER_MODE_TRUE='#'
3165 MAINTAINER_MODE_FALSE=
3168 MAINT=$MAINTAINER_MODE_TRUE
3172 DEPDIR="${am__leading_dot}deps"
3174 ac_config_commands="$ac_config_commands depfiles"
3177 am_make=${MAKE-make}
3178 cat > confinc << 'END'
3179 am__doit:
3180 @echo this is the am__doit target
3181 .PHONY: am__doit
3183 # If we don't find an include directive, just comment out the code.
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3185 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3186 am__include="#"
3187 am__quote=
3188 _am_result=none
3189 # First try GNU make style include.
3190 echo "include confinc" > confmf
3191 # Ignore all kinds of additional output from 'make'.
3192 case `$am_make -s -f confmf 2> /dev/null` in #(
3193 *the\ am__doit\ target*)
3194 am__include=include
3195 am__quote=
3196 _am_result=GNU
3198 esac
3199 # Now try BSD make style include.
3200 if test "$am__include" = "#"; then
3201 echo '.include "confinc"' > confmf
3202 case `$am_make -s -f confmf 2> /dev/null` in #(
3203 *the\ am__doit\ target*)
3204 am__include=.include
3205 am__quote="\""
3206 _am_result=BSD
3208 esac
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3213 $as_echo "$_am_result" >&6; }
3214 rm -f confinc confmf
3216 # Check whether --enable-dependency-tracking was given.
3217 if test "${enable_dependency_tracking+set}" = set; then :
3218 enableval=$enable_dependency_tracking;
3221 if test "x$enable_dependency_tracking" != xno; then
3222 am_depcomp="$ac_aux_dir/depcomp"
3223 AMDEPBACKSLASH='\'
3224 am__nodep='_no'
3226 if test "x$enable_dependency_tracking" != xno; then
3227 AMDEP_TRUE=
3228 AMDEP_FALSE='#'
3229 else
3230 AMDEP_TRUE='#'
3231 AMDEP_FALSE=
3235 ac_ext=c
3236 ac_cpp='$CPP $CPPFLAGS'
3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240 if test -n "$ac_tool_prefix"; then
3241 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3242 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if ${ac_cv_prog_CC+:} false; then :
3246 $as_echo_n "(cached) " >&6
3247 else
3248 if test -n "$CC"; then
3249 ac_cv_prog_CC="$CC" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3262 done
3263 done
3264 IFS=$as_save_IFS
3268 CC=$ac_cv_prog_CC
3269 if test -n "$CC"; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3271 $as_echo "$CC" >&6; }
3272 else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3279 if test -z "$ac_cv_prog_CC"; then
3280 ac_ct_CC=$CC
3281 # Extract the first word of "gcc", so it can be a program name with args.
3282 set dummy gcc; ac_word=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 if test -n "$ac_ct_CC"; then
3289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_ac_ct_CC="gcc"
3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3302 done
3303 done
3304 IFS=$as_save_IFS
3308 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3309 if test -n "$ac_ct_CC"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3311 $as_echo "$ac_ct_CC" >&6; }
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3317 if test "x$ac_ct_CC" = x; then
3318 CC=""
3319 else
3320 case $cross_compiling:$ac_tool_warned in
3321 yes:)
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3324 ac_tool_warned=yes ;;
3325 esac
3326 CC=$ac_ct_CC
3328 else
3329 CC="$ac_cv_prog_CC"
3332 if test -z "$CC"; then
3333 if test -n "$ac_tool_prefix"; then
3334 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3335 set dummy ${ac_tool_prefix}cc; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if ${ac_cv_prog_CC+:} false; then :
3339 $as_echo_n "(cached) " >&6
3340 else
3341 if test -n "$CC"; then
3342 ac_cv_prog_CC="$CC" # Let the user override the test.
3343 else
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH
3347 IFS=$as_save_IFS
3348 test -z "$as_dir" && as_dir=.
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3351 ac_cv_prog_CC="${ac_tool_prefix}cc"
3352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 break 2
3355 done
3356 done
3357 IFS=$as_save_IFS
3361 CC=$ac_cv_prog_CC
3362 if test -n "$CC"; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3364 $as_echo "$CC" >&6; }
3365 else
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3373 if test -z "$CC"; then
3374 # Extract the first word of "cc", so it can be a program name with args.
3375 set dummy cc; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if ${ac_cv_prog_CC+:} false; then :
3379 $as_echo_n "(cached) " >&6
3380 else
3381 if test -n "$CC"; then
3382 ac_cv_prog_CC="$CC" # Let the user override the test.
3383 else
3384 ac_prog_rejected=no
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3393 ac_prog_rejected=yes
3394 continue
3396 ac_cv_prog_CC="cc"
3397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 break 2
3400 done
3401 done
3402 IFS=$as_save_IFS
3404 if test $ac_prog_rejected = yes; then
3405 # We found a bogon in the path, so make sure we never use it.
3406 set dummy $ac_cv_prog_CC
3407 shift
3408 if test $# != 0; then
3409 # We chose a different compiler from the bogus one.
3410 # However, it has the same basename, so the bogon will be chosen
3411 # first if we set CC to just the basename; use the full file name.
3412 shift
3413 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3418 CC=$ac_cv_prog_CC
3419 if test -n "$CC"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3421 $as_echo "$CC" >&6; }
3422 else
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3429 if test -z "$CC"; then
3430 if test -n "$ac_tool_prefix"; then
3431 for ac_prog in cl.exe
3433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 $as_echo_n "checking for $ac_word... " >&6; }
3437 if ${ac_cv_prog_CC+:} false; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 if test -n "$CC"; then
3441 ac_cv_prog_CC="$CC" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 break 2
3454 done
3455 done
3456 IFS=$as_save_IFS
3460 CC=$ac_cv_prog_CC
3461 if test -n "$CC"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3463 $as_echo "$CC" >&6; }
3464 else
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3470 test -n "$CC" && break
3471 done
3473 if test -z "$CC"; then
3474 ac_ct_CC=$CC
3475 for ac_prog in cl.exe
3477 # Extract the first word of "$ac_prog", so it can be a program name with args.
3478 set dummy $ac_prog; ac_word=$2
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 $as_echo_n "checking for $ac_word... " >&6; }
3481 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 if test -n "$ac_ct_CC"; then
3485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3486 else
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 for as_dir in $PATH
3490 IFS=$as_save_IFS
3491 test -z "$as_dir" && as_dir=.
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494 ac_cv_prog_ac_ct_CC="$ac_prog"
3495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 break 2
3498 done
3499 done
3500 IFS=$as_save_IFS
3504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3505 if test -n "$ac_ct_CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3507 $as_echo "$ac_ct_CC" >&6; }
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3514 test -n "$ac_ct_CC" && break
3515 done
3517 if test "x$ac_ct_CC" = x; then
3518 CC=""
3519 else
3520 case $cross_compiling:$ac_tool_warned in
3521 yes:)
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3524 ac_tool_warned=yes ;;
3525 esac
3526 CC=$ac_ct_CC
3533 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3535 as_fn_error $? "no acceptable C compiler found in \$PATH
3536 See \`config.log' for more details" "$LINENO" 5; }
3538 # Provide some information about the compiler.
3539 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3540 set X $ac_compile
3541 ac_compiler=$2
3542 for ac_option in --version -v -V -qversion; do
3543 { { ac_try="$ac_compiler $ac_option >&5"
3544 case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547 esac
3548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3549 $as_echo "$ac_try_echo"; } >&5
3550 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3551 ac_status=$?
3552 if test -s conftest.err; then
3553 sed '10a\
3554 ... rest of stderr output deleted ...
3555 10q' conftest.err >conftest.er1
3556 cat conftest.er1 >&5
3558 rm -f conftest.er1 conftest.err
3559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3560 test $ac_status = 0; }
3561 done
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3567 main ()
3571 return 0;
3573 _ACEOF
3574 ac_clean_files_save=$ac_clean_files
3575 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3576 # Try to create an executable without -o first, disregard a.out.
3577 # It will help us diagnose broken compilers, and finding out an intuition
3578 # of exeext.
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3580 $as_echo_n "checking whether the C compiler works... " >&6; }
3581 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3583 # The possible output files:
3584 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3586 ac_rmfiles=
3587 for ac_file in $ac_files
3589 case $ac_file in
3590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3591 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3592 esac
3593 done
3594 rm -f $ac_rmfiles
3596 if { { ac_try="$ac_link_default"
3597 case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600 esac
3601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3602 $as_echo "$ac_try_echo"; } >&5
3603 (eval "$ac_link_default") 2>&5
3604 ac_status=$?
3605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3606 test $ac_status = 0; }; then :
3607 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3608 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3609 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3610 # so that the user can short-circuit this test for compilers unknown to
3611 # Autoconf.
3612 for ac_file in $ac_files ''
3614 test -f "$ac_file" || continue
3615 case $ac_file in
3616 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3618 [ab].out )
3619 # We found the default executable, but exeext='' is most
3620 # certainly right.
3621 break;;
3622 *.* )
3623 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3624 then :; else
3625 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3627 # We set ac_cv_exeext here because the later test for it is not
3628 # safe: cross compilers may not add the suffix if given an `-o'
3629 # argument, so we may need to know it at that point already.
3630 # Even if this section looks crufty: it has the advantage of
3631 # actually working.
3632 break;;
3634 break;;
3635 esac
3636 done
3637 test "$ac_cv_exeext" = no && ac_cv_exeext=
3639 else
3640 ac_file=''
3642 if test -z "$ac_file"; then :
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3645 $as_echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3650 as_fn_error 77 "C compiler cannot create executables
3651 See \`config.log' for more details" "$LINENO" 5; }
3652 else
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3654 $as_echo "yes" >&6; }
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3657 $as_echo_n "checking for C compiler default output file name... " >&6; }
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3659 $as_echo "$ac_file" >&6; }
3660 ac_exeext=$ac_cv_exeext
3662 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3663 ac_clean_files=$ac_clean_files_save
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3665 $as_echo_n "checking for suffix of executables... " >&6; }
3666 if { { ac_try="$ac_link"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 $as_echo "$ac_try_echo"; } >&5
3673 (eval "$ac_link") 2>&5
3674 ac_status=$?
3675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676 test $ac_status = 0; }; then :
3677 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3678 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3679 # work properly (i.e., refer to `conftest.exe'), while it won't with
3680 # `rm'.
3681 for ac_file in conftest.exe conftest conftest.*; do
3682 test -f "$ac_file" || continue
3683 case $ac_file in
3684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3685 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3686 break;;
3687 * ) break;;
3688 esac
3689 done
3690 else
3691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3693 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3694 See \`config.log' for more details" "$LINENO" 5; }
3696 rm -f conftest conftest$ac_cv_exeext
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3698 $as_echo "$ac_cv_exeext" >&6; }
3700 rm -f conftest.$ac_ext
3701 EXEEXT=$ac_cv_exeext
3702 ac_exeext=$EXEEXT
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3705 #include <stdio.h>
3707 main ()
3709 FILE *f = fopen ("conftest.out", "w");
3710 return ferror (f) || fclose (f) != 0;
3713 return 0;
3715 _ACEOF
3716 ac_clean_files="$ac_clean_files conftest.out"
3717 # Check that the compiler produces executables we can run. If not, either
3718 # the compiler is broken, or we cross compile.
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3720 $as_echo_n "checking whether we are cross compiling... " >&6; }
3721 if test "$cross_compiling" != yes; then
3722 { { ac_try="$ac_link"
3723 case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3726 esac
3727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3728 $as_echo "$ac_try_echo"; } >&5
3729 (eval "$ac_link") 2>&5
3730 ac_status=$?
3731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732 test $ac_status = 0; }
3733 if { ac_try='./conftest$ac_cv_exeext'
3734 { { case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3737 esac
3738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3739 $as_echo "$ac_try_echo"; } >&5
3740 (eval "$ac_try") 2>&5
3741 ac_status=$?
3742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3743 test $ac_status = 0; }; }; then
3744 cross_compiling=no
3745 else
3746 if test "$cross_compiling" = maybe; then
3747 cross_compiling=yes
3748 else
3749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3751 as_fn_error $? "cannot run C compiled programs.
3752 If you meant to cross compile, use \`--host'.
3753 See \`config.log' for more details" "$LINENO" 5; }
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3758 $as_echo "$cross_compiling" >&6; }
3760 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3761 ac_clean_files=$ac_clean_files_save
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3763 $as_echo_n "checking for suffix of object files... " >&6; }
3764 if ${ac_cv_objext+:} false; then :
3765 $as_echo_n "(cached) " >&6
3766 else
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3771 main ()
3775 return 0;
3777 _ACEOF
3778 rm -f conftest.o conftest.obj
3779 if { { ac_try="$ac_compile"
3780 case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783 esac
3784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785 $as_echo "$ac_try_echo"; } >&5
3786 (eval "$ac_compile") 2>&5
3787 ac_status=$?
3788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789 test $ac_status = 0; }; then :
3790 for ac_file in conftest.o conftest.obj conftest.*; do
3791 test -f "$ac_file" || continue;
3792 case $ac_file in
3793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3794 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3795 break;;
3796 esac
3797 done
3798 else
3799 $as_echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3804 as_fn_error $? "cannot compute suffix of object files: cannot compile
3805 See \`config.log' for more details" "$LINENO" 5; }
3807 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3810 $as_echo "$ac_cv_objext" >&6; }
3811 OBJEXT=$ac_cv_objext
3812 ac_objext=$OBJEXT
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3814 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3815 if ${ac_cv_c_compiler_gnu+:} false; then :
3816 $as_echo_n "(cached) " >&6
3817 else
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3822 main ()
3824 #ifndef __GNUC__
3825 choke me
3826 #endif
3829 return 0;
3831 _ACEOF
3832 if ac_fn_c_try_compile "$LINENO"; then :
3833 ac_compiler_gnu=yes
3834 else
3835 ac_compiler_gnu=no
3837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3842 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3843 if test $ac_compiler_gnu = yes; then
3844 GCC=yes
3845 else
3846 GCC=
3848 ac_test_CFLAGS=${CFLAGS+set}
3849 ac_save_CFLAGS=$CFLAGS
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3851 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3852 if ${ac_cv_prog_cc_g+:} false; then :
3853 $as_echo_n "(cached) " >&6
3854 else
3855 ac_save_c_werror_flag=$ac_c_werror_flag
3856 ac_c_werror_flag=yes
3857 ac_cv_prog_cc_g=no
3858 CFLAGS="-g"
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3863 main ()
3867 return 0;
3869 _ACEOF
3870 if ac_fn_c_try_compile "$LINENO"; then :
3871 ac_cv_prog_cc_g=yes
3872 else
3873 CFLAGS=""
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3878 main ()
3882 return 0;
3884 _ACEOF
3885 if ac_fn_c_try_compile "$LINENO"; then :
3887 else
3888 ac_c_werror_flag=$ac_save_c_werror_flag
3889 CFLAGS="-g"
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3894 main ()
3898 return 0;
3900 _ACEOF
3901 if ac_fn_c_try_compile "$LINENO"; then :
3902 ac_cv_prog_cc_g=yes
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 ac_c_werror_flag=$ac_save_c_werror_flag
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3912 $as_echo "$ac_cv_prog_cc_g" >&6; }
3913 if test "$ac_test_CFLAGS" = set; then
3914 CFLAGS=$ac_save_CFLAGS
3915 elif test $ac_cv_prog_cc_g = yes; then
3916 if test "$GCC" = yes; then
3917 CFLAGS="-g -O2"
3918 else
3919 CFLAGS="-g"
3921 else
3922 if test "$GCC" = yes; then
3923 CFLAGS="-O2"
3924 else
3925 CFLAGS=
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3929 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3930 if ${ac_cv_prog_cc_c89+:} false; then :
3931 $as_echo_n "(cached) " >&6
3932 else
3933 ac_cv_prog_cc_c89=no
3934 ac_save_CC=$CC
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937 #include <stdarg.h>
3938 #include <stdio.h>
3939 struct stat;
3940 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3941 struct buf { int x; };
3942 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3943 static char *e (p, i)
3944 char **p;
3945 int i;
3947 return p[i];
3949 static char *f (char * (*g) (char **, int), char **p, ...)
3951 char *s;
3952 va_list v;
3953 va_start (v,p);
3954 s = g (p, va_arg (v,int));
3955 va_end (v);
3956 return s;
3959 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3960 function prototypes and stuff, but not '\xHH' hex character constants.
3961 These don't provoke an error unfortunately, instead are silently treated
3962 as 'x'. The following induces an error, until -std is added to get
3963 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3964 array size at least. It's necessary to write '\x00'==0 to get something
3965 that's true only with -std. */
3966 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3968 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3969 inside strings and character constants. */
3970 #define FOO(x) 'x'
3971 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3973 int test (int i, double x);
3974 struct s1 {int (*f) (int a);};
3975 struct s2 {int (*f) (double a);};
3976 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3977 int argc;
3978 char **argv;
3980 main ()
3982 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3984 return 0;
3986 _ACEOF
3987 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3988 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3990 CC="$ac_save_CC $ac_arg"
3991 if ac_fn_c_try_compile "$LINENO"; then :
3992 ac_cv_prog_cc_c89=$ac_arg
3994 rm -f core conftest.err conftest.$ac_objext
3995 test "x$ac_cv_prog_cc_c89" != "xno" && break
3996 done
3997 rm -f conftest.$ac_ext
3998 CC=$ac_save_CC
4001 # AC_CACHE_VAL
4002 case "x$ac_cv_prog_cc_c89" in
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4005 $as_echo "none needed" >&6; } ;;
4006 xno)
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4008 $as_echo "unsupported" >&6; } ;;
4010 CC="$CC $ac_cv_prog_cc_c89"
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4012 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4013 esac
4014 if test "x$ac_cv_prog_cc_c89" != xno; then :
4018 ac_ext=c
4019 ac_cpp='$CPP $CPPFLAGS'
4020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4024 ac_ext=c
4025 ac_cpp='$CPP $CPPFLAGS'
4026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4030 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4031 if ${am_cv_prog_cc_c_o+:} false; then :
4032 $as_echo_n "(cached) " >&6
4033 else
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4038 main ()
4042 return 0;
4044 _ACEOF
4045 # Make sure it works both with $CC and with simple cc.
4046 # Following AC_PROG_CC_C_O, we do the test twice because some
4047 # compilers refuse to overwrite an existing .o file with -o,
4048 # though they will create one.
4049 am_cv_prog_cc_c_o=yes
4050 for am_i in 1 2; do
4051 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4052 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4053 ac_status=$?
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); } \
4056 && test -f conftest2.$ac_objext; then
4057 : OK
4058 else
4059 am_cv_prog_cc_c_o=no
4060 break
4062 done
4063 rm -f core conftest*
4064 unset am_i
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4067 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4068 if test "$am_cv_prog_cc_c_o" != yes; then
4069 # Losing compiler, so override with the script.
4070 # FIXME: It is wrong to rewrite CC.
4071 # But if we don't then we get into trouble of one sort or another.
4072 # A longer-term fix would be to have automake use am__CC in this case,
4073 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4074 CC="$am_aux_dir/compile $CC"
4076 ac_ext=c
4077 ac_cpp='$CPP $CPPFLAGS'
4078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083 depcc="$CC" am_compiler_list=
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4086 $as_echo_n "checking dependency style of $depcc... " >&6; }
4087 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4091 # We make a subdir and do the tests there. Otherwise we can end up
4092 # making bogus files that we don't know about and never remove. For
4093 # instance it was reported that on HP-UX the gcc test will end up
4094 # making a dummy file named 'D' -- because '-MD' means "put the output
4095 # in D".
4096 rm -rf conftest.dir
4097 mkdir conftest.dir
4098 # Copy depcomp to subdir because otherwise we won't find it if we're
4099 # using a relative directory.
4100 cp "$am_depcomp" conftest.dir
4101 cd conftest.dir
4102 # We will build objects and dependencies in a subdirectory because
4103 # it helps to detect inapplicable dependency modes. For instance
4104 # both Tru64's cc and ICC support -MD to output dependencies as a
4105 # side effect of compilation, but ICC will put the dependencies in
4106 # the current directory while Tru64 will put them in the object
4107 # directory.
4108 mkdir sub
4110 am_cv_CC_dependencies_compiler_type=none
4111 if test "$am_compiler_list" = ""; then
4112 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4114 am__universal=false
4115 case " $depcc " in #(
4116 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4117 esac
4119 for depmode in $am_compiler_list; do
4120 # Setup a source with many dependencies, because some compilers
4121 # like to wrap large dependency lists on column 80 (with \), and
4122 # we should not choose a depcomp mode which is confused by this.
4124 # We need to recreate these files for each test, as the compiler may
4125 # overwrite some of them when testing with obscure command lines.
4126 # This happens at least with the AIX C compiler.
4127 : > sub/conftest.c
4128 for i in 1 2 3 4 5 6; do
4129 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4130 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4131 # Solaris 10 /bin/sh.
4132 echo '/* dummy */' > sub/conftst$i.h
4133 done
4134 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4136 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4137 # mode. It turns out that the SunPro C++ compiler does not properly
4138 # handle '-M -o', and we need to detect this. Also, some Intel
4139 # versions had trouble with output in subdirs.
4140 am__obj=sub/conftest.${OBJEXT-o}
4141 am__minus_obj="-o $am__obj"
4142 case $depmode in
4143 gcc)
4144 # This depmode causes a compiler race in universal mode.
4145 test "$am__universal" = false || continue
4147 nosideeffect)
4148 # After this tag, mechanisms are not by side-effect, so they'll
4149 # only be used when explicitly requested.
4150 if test "x$enable_dependency_tracking" = xyes; then
4151 continue
4152 else
4153 break
4156 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4157 # This compiler won't grok '-c -o', but also, the minuso test has
4158 # not run yet. These depmodes are late enough in the game, and
4159 # so weak that their functioning should not be impacted.
4160 am__obj=conftest.${OBJEXT-o}
4161 am__minus_obj=
4163 none) break ;;
4164 esac
4165 if depmode=$depmode \
4166 source=sub/conftest.c object=$am__obj \
4167 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4168 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4169 >/dev/null 2>conftest.err &&
4170 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4171 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4172 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4173 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4174 # icc doesn't choke on unknown options, it will just issue warnings
4175 # or remarks (even with -Werror). So we grep stderr for any message
4176 # that says an option was ignored or not supported.
4177 # When given -MP, icc 7.0 and 7.1 complain thusly:
4178 # icc: Command line warning: ignoring option '-M'; no argument required
4179 # The diagnosis changed in icc 8.0:
4180 # icc: Command line remark: option '-MP' not supported
4181 if (grep 'ignoring option' conftest.err ||
4182 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4183 am_cv_CC_dependencies_compiler_type=$depmode
4184 break
4187 done
4189 cd ..
4190 rm -rf conftest.dir
4191 else
4192 am_cv_CC_dependencies_compiler_type=none
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4197 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4198 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4201 test "x$enable_dependency_tracking" != xno \
4202 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4203 am__fastdepCC_TRUE=
4204 am__fastdepCC_FALSE='#'
4205 else
4206 am__fastdepCC_TRUE='#'
4207 am__fastdepCC_FALSE=
4212 ac_ext=c
4213 ac_cpp='$CPP $CPPFLAGS'
4214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4218 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4219 # On Suns, sometimes $CPP names a directory.
4220 if test -n "$CPP" && test -d "$CPP"; then
4221 CPP=
4223 if test -z "$CPP"; then
4224 if ${ac_cv_prog_CPP+:} false; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 # Double quotes because CPP needs to be expanded
4228 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4230 ac_preproc_ok=false
4231 for ac_c_preproc_warn_flag in '' yes
4233 # Use a header file that comes with gcc, so configuring glibc
4234 # with a fresh cross-compiler works.
4235 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4236 # <limits.h> exists even on freestanding compilers.
4237 # On the NeXT, cc -E runs the code through the compiler's parser,
4238 # not just through cpp. "Syntax error" is here to catch this case.
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241 #ifdef __STDC__
4242 # include <limits.h>
4243 #else
4244 # include <assert.h>
4245 #endif
4246 Syntax error
4247 _ACEOF
4248 if ac_fn_c_try_cpp "$LINENO"; then :
4250 else
4251 # Broken: fails on valid input.
4252 continue
4254 rm -f conftest.err conftest.i conftest.$ac_ext
4256 # OK, works on sane cases. Now check whether nonexistent headers
4257 # can be detected and how.
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4260 #include <ac_nonexistent.h>
4261 _ACEOF
4262 if ac_fn_c_try_cpp "$LINENO"; then :
4263 # Broken: success on invalid input.
4264 continue
4265 else
4266 # Passes both tests.
4267 ac_preproc_ok=:
4268 break
4270 rm -f conftest.err conftest.i conftest.$ac_ext
4272 done
4273 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4274 rm -f conftest.i conftest.err conftest.$ac_ext
4275 if $ac_preproc_ok; then :
4276 break
4279 done
4280 ac_cv_prog_CPP=$CPP
4283 CPP=$ac_cv_prog_CPP
4284 else
4285 ac_cv_prog_CPP=$CPP
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4288 $as_echo "$CPP" >&6; }
4289 ac_preproc_ok=false
4290 for ac_c_preproc_warn_flag in '' yes
4292 # Use a header file that comes with gcc, so configuring glibc
4293 # with a fresh cross-compiler works.
4294 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4295 # <limits.h> exists even on freestanding compilers.
4296 # On the NeXT, cc -E runs the code through the compiler's parser,
4297 # not just through cpp. "Syntax error" is here to catch this case.
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300 #ifdef __STDC__
4301 # include <limits.h>
4302 #else
4303 # include <assert.h>
4304 #endif
4305 Syntax error
4306 _ACEOF
4307 if ac_fn_c_try_cpp "$LINENO"; then :
4309 else
4310 # Broken: fails on valid input.
4311 continue
4313 rm -f conftest.err conftest.i conftest.$ac_ext
4315 # OK, works on sane cases. Now check whether nonexistent headers
4316 # can be detected and how.
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4319 #include <ac_nonexistent.h>
4320 _ACEOF
4321 if ac_fn_c_try_cpp "$LINENO"; then :
4322 # Broken: success on invalid input.
4323 continue
4324 else
4325 # Passes both tests.
4326 ac_preproc_ok=:
4327 break
4329 rm -f conftest.err conftest.i conftest.$ac_ext
4331 done
4332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4333 rm -f conftest.i conftest.err conftest.$ac_ext
4334 if $ac_preproc_ok; then :
4336 else
4337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4339 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4340 See \`config.log' for more details" "$LINENO" 5; }
4343 ac_ext=c
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4351 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4352 if ${ac_cv_path_GREP+:} false; then :
4353 $as_echo_n "(cached) " >&6
4354 else
4355 if test -z "$GREP"; then
4356 ac_path_GREP_found=false
4357 # Loop through the user's path and test for each of PROGNAME-LIST
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for ac_prog in grep ggrep; do
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4366 as_fn_executable_p "$ac_path_GREP" || continue
4367 # Check for GNU ac_path_GREP and select it if it is found.
4368 # Check for GNU $ac_path_GREP
4369 case `"$ac_path_GREP" --version 2>&1` in
4370 *GNU*)
4371 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4373 ac_count=0
4374 $as_echo_n 0123456789 >"conftest.in"
4375 while :
4377 cat "conftest.in" "conftest.in" >"conftest.tmp"
4378 mv "conftest.tmp" "conftest.in"
4379 cp "conftest.in" "conftest.nl"
4380 $as_echo 'GREP' >> "conftest.nl"
4381 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4382 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4383 as_fn_arith $ac_count + 1 && ac_count=$as_val
4384 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4385 # Best one so far, save it but keep looking for a better one
4386 ac_cv_path_GREP="$ac_path_GREP"
4387 ac_path_GREP_max=$ac_count
4389 # 10*(2^10) chars as input seems more than enough
4390 test $ac_count -gt 10 && break
4391 done
4392 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4393 esac
4395 $ac_path_GREP_found && break 3
4396 done
4397 done
4398 done
4399 IFS=$as_save_IFS
4400 if test -z "$ac_cv_path_GREP"; then
4401 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4403 else
4404 ac_cv_path_GREP=$GREP
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4409 $as_echo "$ac_cv_path_GREP" >&6; }
4410 GREP="$ac_cv_path_GREP"
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4414 $as_echo_n "checking for egrep... " >&6; }
4415 if ${ac_cv_path_EGREP+:} false; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4419 then ac_cv_path_EGREP="$GREP -E"
4420 else
4421 if test -z "$EGREP"; then
4422 ac_path_EGREP_found=false
4423 # Loop through the user's path and test for each of PROGNAME-LIST
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_prog in egrep; do
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4432 as_fn_executable_p "$ac_path_EGREP" || continue
4433 # Check for GNU ac_path_EGREP and select it if it is found.
4434 # Check for GNU $ac_path_EGREP
4435 case `"$ac_path_EGREP" --version 2>&1` in
4436 *GNU*)
4437 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4439 ac_count=0
4440 $as_echo_n 0123456789 >"conftest.in"
4441 while :
4443 cat "conftest.in" "conftest.in" >"conftest.tmp"
4444 mv "conftest.tmp" "conftest.in"
4445 cp "conftest.in" "conftest.nl"
4446 $as_echo 'EGREP' >> "conftest.nl"
4447 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4448 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4449 as_fn_arith $ac_count + 1 && ac_count=$as_val
4450 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4451 # Best one so far, save it but keep looking for a better one
4452 ac_cv_path_EGREP="$ac_path_EGREP"
4453 ac_path_EGREP_max=$ac_count
4455 # 10*(2^10) chars as input seems more than enough
4456 test $ac_count -gt 10 && break
4457 done
4458 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4459 esac
4461 $ac_path_EGREP_found && break 3
4462 done
4463 done
4464 done
4465 IFS=$as_save_IFS
4466 if test -z "$ac_cv_path_EGREP"; then
4467 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4469 else
4470 ac_cv_path_EGREP=$EGREP
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4476 $as_echo "$ac_cv_path_EGREP" >&6; }
4477 EGREP="$ac_cv_path_EGREP"
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4481 $as_echo_n "checking for ANSI C header files... " >&6; }
4482 if ${ac_cv_header_stdc+:} false; then :
4483 $as_echo_n "(cached) " >&6
4484 else
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4487 #include <stdlib.h>
4488 #include <stdarg.h>
4489 #include <string.h>
4490 #include <float.h>
4493 main ()
4497 return 0;
4499 _ACEOF
4500 if ac_fn_c_try_compile "$LINENO"; then :
4501 ac_cv_header_stdc=yes
4502 else
4503 ac_cv_header_stdc=no
4505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 if test $ac_cv_header_stdc = yes; then
4508 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4511 #include <string.h>
4513 _ACEOF
4514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4515 $EGREP "memchr" >/dev/null 2>&1; then :
4517 else
4518 ac_cv_header_stdc=no
4520 rm -f conftest*
4524 if test $ac_cv_header_stdc = yes; then
4525 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4528 #include <stdlib.h>
4530 _ACEOF
4531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4532 $EGREP "free" >/dev/null 2>&1; then :
4534 else
4535 ac_cv_header_stdc=no
4537 rm -f conftest*
4541 if test $ac_cv_header_stdc = yes; then
4542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4543 if test "$cross_compiling" = yes; then :
4545 else
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4548 #include <ctype.h>
4549 #include <stdlib.h>
4550 #if ((' ' & 0x0FF) == 0x020)
4551 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4552 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4553 #else
4554 # define ISLOWER(c) \
4555 (('a' <= (c) && (c) <= 'i') \
4556 || ('j' <= (c) && (c) <= 'r') \
4557 || ('s' <= (c) && (c) <= 'z'))
4558 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4559 #endif
4561 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4563 main ()
4565 int i;
4566 for (i = 0; i < 256; i++)
4567 if (XOR (islower (i), ISLOWER (i))
4568 || toupper (i) != TOUPPER (i))
4569 return 2;
4570 return 0;
4572 _ACEOF
4573 if ac_fn_c_try_run "$LINENO"; then :
4575 else
4576 ac_cv_header_stdc=no
4578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4579 conftest.$ac_objext conftest.beam conftest.$ac_ext
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4585 $as_echo "$ac_cv_header_stdc" >&6; }
4586 if test $ac_cv_header_stdc = yes; then
4588 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4592 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4593 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4594 inttypes.h stdint.h unistd.h
4595 do :
4596 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4597 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4599 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4600 cat >>confdefs.h <<_ACEOF
4601 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4602 _ACEOF
4606 done
4610 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4611 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4612 MINIX=yes
4613 else
4614 MINIX=
4618 if test "$MINIX" = yes; then
4620 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4623 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4626 $as_echo "#define _MINIX 1" >>confdefs.h
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4632 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4633 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4639 # define __EXTENSIONS__ 1
4640 $ac_includes_default
4642 main ()
4646 return 0;
4648 _ACEOF
4649 if ac_fn_c_try_compile "$LINENO"; then :
4650 ac_cv_safe_to_define___extensions__=yes
4651 else
4652 ac_cv_safe_to_define___extensions__=no
4654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4657 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4658 test $ac_cv_safe_to_define___extensions__ = yes &&
4659 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4661 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4663 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4665 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4667 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4670 ac_ext=c
4671 ac_cpp='$CPP $CPPFLAGS'
4672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4675 if test -n "$ac_tool_prefix"; then
4676 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4677 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if ${ac_cv_prog_CC+:} false; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 if test -n "$CC"; then
4684 ac_cv_prog_CC="$CC" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4697 done
4698 done
4699 IFS=$as_save_IFS
4703 CC=$ac_cv_prog_CC
4704 if test -n "$CC"; then
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4706 $as_echo "$CC" >&6; }
4707 else
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709 $as_echo "no" >&6; }
4714 if test -z "$ac_cv_prog_CC"; then
4715 ac_ct_CC=$CC
4716 # Extract the first word of "gcc", so it can be a program name with args.
4717 set dummy gcc; ac_word=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if test -n "$ac_ct_CC"; then
4724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_prog_ac_ct_CC="gcc"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4737 done
4738 done
4739 IFS=$as_save_IFS
4743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4744 if test -n "$ac_ct_CC"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4746 $as_echo "$ac_ct_CC" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4752 if test "x$ac_ct_CC" = x; then
4753 CC=""
4754 else
4755 case $cross_compiling:$ac_tool_warned in
4756 yes:)
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4759 ac_tool_warned=yes ;;
4760 esac
4761 CC=$ac_ct_CC
4763 else
4764 CC="$ac_cv_prog_CC"
4767 if test -z "$CC"; then
4768 if test -n "$ac_tool_prefix"; then
4769 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4770 set dummy ${ac_tool_prefix}cc; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if ${ac_cv_prog_CC+:} false; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 if test -n "$CC"; then
4777 ac_cv_prog_CC="$CC" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4786 ac_cv_prog_CC="${ac_tool_prefix}cc"
4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 break 2
4790 done
4791 done
4792 IFS=$as_save_IFS
4796 CC=$ac_cv_prog_CC
4797 if test -n "$CC"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4799 $as_echo "$CC" >&6; }
4800 else
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4808 if test -z "$CC"; then
4809 # Extract the first word of "cc", so it can be a program name with args.
4810 set dummy cc; ac_word=$2
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 $as_echo_n "checking for $ac_word... " >&6; }
4813 if ${ac_cv_prog_CC+:} false; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 if test -n "$CC"; then
4817 ac_cv_prog_CC="$CC" # Let the user override the test.
4818 else
4819 ac_prog_rejected=no
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4827 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4828 ac_prog_rejected=yes
4829 continue
4831 ac_cv_prog_CC="cc"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4835 done
4836 done
4837 IFS=$as_save_IFS
4839 if test $ac_prog_rejected = yes; then
4840 # We found a bogon in the path, so make sure we never use it.
4841 set dummy $ac_cv_prog_CC
4842 shift
4843 if test $# != 0; then
4844 # We chose a different compiler from the bogus one.
4845 # However, it has the same basename, so the bogon will be chosen
4846 # first if we set CC to just the basename; use the full file name.
4847 shift
4848 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4853 CC=$ac_cv_prog_CC
4854 if test -n "$CC"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4856 $as_echo "$CC" >&6; }
4857 else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4864 if test -z "$CC"; then
4865 if test -n "$ac_tool_prefix"; then
4866 for ac_prog in cl.exe
4868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871 $as_echo_n "checking for $ac_word... " >&6; }
4872 if ${ac_cv_prog_CC+:} false; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 if test -n "$CC"; then
4876 ac_cv_prog_CC="$CC" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4885 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 break 2
4889 done
4890 done
4891 IFS=$as_save_IFS
4895 CC=$ac_cv_prog_CC
4896 if test -n "$CC"; then
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4898 $as_echo "$CC" >&6; }
4899 else
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4905 test -n "$CC" && break
4906 done
4908 if test -z "$CC"; then
4909 ac_ct_CC=$CC
4910 for ac_prog in cl.exe
4912 # Extract the first word of "$ac_prog", so it can be a program name with args.
4913 set dummy $ac_prog; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 if test -n "$ac_ct_CC"; then
4920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_prog_ac_ct_CC="$ac_prog"
4930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 break 2
4933 done
4934 done
4935 IFS=$as_save_IFS
4939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4940 if test -n "$ac_ct_CC"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4942 $as_echo "$ac_ct_CC" >&6; }
4943 else
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4949 test -n "$ac_ct_CC" && break
4950 done
4952 if test "x$ac_ct_CC" = x; then
4953 CC=""
4954 else
4955 case $cross_compiling:$ac_tool_warned in
4956 yes:)
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4959 ac_tool_warned=yes ;;
4960 esac
4961 CC=$ac_ct_CC
4968 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4970 as_fn_error $? "no acceptable C compiler found in \$PATH
4971 See \`config.log' for more details" "$LINENO" 5; }
4973 # Provide some information about the compiler.
4974 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4975 set X $ac_compile
4976 ac_compiler=$2
4977 for ac_option in --version -v -V -qversion; do
4978 { { ac_try="$ac_compiler $ac_option >&5"
4979 case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982 esac
4983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4984 $as_echo "$ac_try_echo"; } >&5
4985 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4986 ac_status=$?
4987 if test -s conftest.err; then
4988 sed '10a\
4989 ... rest of stderr output deleted ...
4990 10q' conftest.err >conftest.er1
4991 cat conftest.er1 >&5
4993 rm -f conftest.er1 conftest.err
4994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4995 test $ac_status = 0; }
4996 done
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4999 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5000 if ${ac_cv_c_compiler_gnu+:} false; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5007 main ()
5009 #ifndef __GNUC__
5010 choke me
5011 #endif
5014 return 0;
5016 _ACEOF
5017 if ac_fn_c_try_compile "$LINENO"; then :
5018 ac_compiler_gnu=yes
5019 else
5020 ac_compiler_gnu=no
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5027 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5028 if test $ac_compiler_gnu = yes; then
5029 GCC=yes
5030 else
5031 GCC=
5033 ac_test_CFLAGS=${CFLAGS+set}
5034 ac_save_CFLAGS=$CFLAGS
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5036 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5037 if ${ac_cv_prog_cc_g+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 ac_save_c_werror_flag=$ac_c_werror_flag
5041 ac_c_werror_flag=yes
5042 ac_cv_prog_cc_g=no
5043 CFLAGS="-g"
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5048 main ()
5052 return 0;
5054 _ACEOF
5055 if ac_fn_c_try_compile "$LINENO"; then :
5056 ac_cv_prog_cc_g=yes
5057 else
5058 CFLAGS=""
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5063 main ()
5067 return 0;
5069 _ACEOF
5070 if ac_fn_c_try_compile "$LINENO"; then :
5072 else
5073 ac_c_werror_flag=$ac_save_c_werror_flag
5074 CFLAGS="-g"
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5079 main ()
5083 return 0;
5085 _ACEOF
5086 if ac_fn_c_try_compile "$LINENO"; then :
5087 ac_cv_prog_cc_g=yes
5089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5094 ac_c_werror_flag=$ac_save_c_werror_flag
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5097 $as_echo "$ac_cv_prog_cc_g" >&6; }
5098 if test "$ac_test_CFLAGS" = set; then
5099 CFLAGS=$ac_save_CFLAGS
5100 elif test $ac_cv_prog_cc_g = yes; then
5101 if test "$GCC" = yes; then
5102 CFLAGS="-g -O2"
5103 else
5104 CFLAGS="-g"
5106 else
5107 if test "$GCC" = yes; then
5108 CFLAGS="-O2"
5109 else
5110 CFLAGS=
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5114 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5115 if ${ac_cv_prog_cc_c89+:} false; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 ac_cv_prog_cc_c89=no
5119 ac_save_CC=$CC
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 #include <stdarg.h>
5123 #include <stdio.h>
5124 struct stat;
5125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5126 struct buf { int x; };
5127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5128 static char *e (p, i)
5129 char **p;
5130 int i;
5132 return p[i];
5134 static char *f (char * (*g) (char **, int), char **p, ...)
5136 char *s;
5137 va_list v;
5138 va_start (v,p);
5139 s = g (p, va_arg (v,int));
5140 va_end (v);
5141 return s;
5144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5145 function prototypes and stuff, but not '\xHH' hex character constants.
5146 These don't provoke an error unfortunately, instead are silently treated
5147 as 'x'. The following induces an error, until -std is added to get
5148 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5149 array size at least. It's necessary to write '\x00'==0 to get something
5150 that's true only with -std. */
5151 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5154 inside strings and character constants. */
5155 #define FOO(x) 'x'
5156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5158 int test (int i, double x);
5159 struct s1 {int (*f) (int a);};
5160 struct s2 {int (*f) (double a);};
5161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5162 int argc;
5163 char **argv;
5165 main ()
5167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5169 return 0;
5171 _ACEOF
5172 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5173 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5175 CC="$ac_save_CC $ac_arg"
5176 if ac_fn_c_try_compile "$LINENO"; then :
5177 ac_cv_prog_cc_c89=$ac_arg
5179 rm -f core conftest.err conftest.$ac_objext
5180 test "x$ac_cv_prog_cc_c89" != "xno" && break
5181 done
5182 rm -f conftest.$ac_ext
5183 CC=$ac_save_CC
5186 # AC_CACHE_VAL
5187 case "x$ac_cv_prog_cc_c89" in
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5190 $as_echo "none needed" >&6; } ;;
5191 xno)
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5193 $as_echo "unsupported" >&6; } ;;
5195 CC="$CC $ac_cv_prog_cc_c89"
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5197 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5198 esac
5199 if test "x$ac_cv_prog_cc_c89" != xno; then :
5203 ac_ext=c
5204 ac_cpp='$CPP $CPPFLAGS'
5205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5209 ac_ext=c
5210 ac_cpp='$CPP $CPPFLAGS'
5211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5215 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5216 if ${am_cv_prog_cc_c_o+:} false; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5223 main ()
5227 return 0;
5229 _ACEOF
5230 # Make sure it works both with $CC and with simple cc.
5231 # Following AC_PROG_CC_C_O, we do the test twice because some
5232 # compilers refuse to overwrite an existing .o file with -o,
5233 # though they will create one.
5234 am_cv_prog_cc_c_o=yes
5235 for am_i in 1 2; do
5236 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5237 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } \
5241 && test -f conftest2.$ac_objext; then
5242 : OK
5243 else
5244 am_cv_prog_cc_c_o=no
5245 break
5247 done
5248 rm -f core conftest*
5249 unset am_i
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5252 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5253 if test "$am_cv_prog_cc_c_o" != yes; then
5254 # Losing compiler, so override with the script.
5255 # FIXME: It is wrong to rewrite CC.
5256 # But if we don't then we get into trouble of one sort or another.
5257 # A longer-term fix would be to have automake use am__CC in this case,
5258 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5259 CC="$am_aux_dir/compile $CC"
5261 ac_ext=c
5262 ac_cpp='$CPP $CPPFLAGS'
5263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5268 depcc="$CC" am_compiler_list=
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5271 $as_echo_n "checking dependency style of $depcc... " >&6; }
5272 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5276 # We make a subdir and do the tests there. Otherwise we can end up
5277 # making bogus files that we don't know about and never remove. For
5278 # instance it was reported that on HP-UX the gcc test will end up
5279 # making a dummy file named 'D' -- because '-MD' means "put the output
5280 # in D".
5281 rm -rf conftest.dir
5282 mkdir conftest.dir
5283 # Copy depcomp to subdir because otherwise we won't find it if we're
5284 # using a relative directory.
5285 cp "$am_depcomp" conftest.dir
5286 cd conftest.dir
5287 # We will build objects and dependencies in a subdirectory because
5288 # it helps to detect inapplicable dependency modes. For instance
5289 # both Tru64's cc and ICC support -MD to output dependencies as a
5290 # side effect of compilation, but ICC will put the dependencies in
5291 # the current directory while Tru64 will put them in the object
5292 # directory.
5293 mkdir sub
5295 am_cv_CC_dependencies_compiler_type=none
5296 if test "$am_compiler_list" = ""; then
5297 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5299 am__universal=false
5300 case " $depcc " in #(
5301 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5302 esac
5304 for depmode in $am_compiler_list; do
5305 # Setup a source with many dependencies, because some compilers
5306 # like to wrap large dependency lists on column 80 (with \), and
5307 # we should not choose a depcomp mode which is confused by this.
5309 # We need to recreate these files for each test, as the compiler may
5310 # overwrite some of them when testing with obscure command lines.
5311 # This happens at least with the AIX C compiler.
5312 : > sub/conftest.c
5313 for i in 1 2 3 4 5 6; do
5314 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5315 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5316 # Solaris 10 /bin/sh.
5317 echo '/* dummy */' > sub/conftst$i.h
5318 done
5319 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5321 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5322 # mode. It turns out that the SunPro C++ compiler does not properly
5323 # handle '-M -o', and we need to detect this. Also, some Intel
5324 # versions had trouble with output in subdirs.
5325 am__obj=sub/conftest.${OBJEXT-o}
5326 am__minus_obj="-o $am__obj"
5327 case $depmode in
5328 gcc)
5329 # This depmode causes a compiler race in universal mode.
5330 test "$am__universal" = false || continue
5332 nosideeffect)
5333 # After this tag, mechanisms are not by side-effect, so they'll
5334 # only be used when explicitly requested.
5335 if test "x$enable_dependency_tracking" = xyes; then
5336 continue
5337 else
5338 break
5341 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5342 # This compiler won't grok '-c -o', but also, the minuso test has
5343 # not run yet. These depmodes are late enough in the game, and
5344 # so weak that their functioning should not be impacted.
5345 am__obj=conftest.${OBJEXT-o}
5346 am__minus_obj=
5348 none) break ;;
5349 esac
5350 if depmode=$depmode \
5351 source=sub/conftest.c object=$am__obj \
5352 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5353 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5354 >/dev/null 2>conftest.err &&
5355 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5356 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5357 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5358 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5359 # icc doesn't choke on unknown options, it will just issue warnings
5360 # or remarks (even with -Werror). So we grep stderr for any message
5361 # that says an option was ignored or not supported.
5362 # When given -MP, icc 7.0 and 7.1 complain thusly:
5363 # icc: Command line warning: ignoring option '-M'; no argument required
5364 # The diagnosis changed in icc 8.0:
5365 # icc: Command line remark: option '-MP' not supported
5366 if (grep 'ignoring option' conftest.err ||
5367 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5368 am_cv_CC_dependencies_compiler_type=$depmode
5369 break
5372 done
5374 cd ..
5375 rm -rf conftest.dir
5376 else
5377 am_cv_CC_dependencies_compiler_type=none
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5382 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5383 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5386 test "x$enable_dependency_tracking" != xno \
5387 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5388 am__fastdepCC_TRUE=
5389 am__fastdepCC_FALSE='#'
5390 else
5391 am__fastdepCC_TRUE='#'
5392 am__fastdepCC_FALSE=
5396 ac_ext=cpp
5397 ac_cpp='$CXXCPP $CPPFLAGS'
5398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5401 if test -z "$CXX"; then
5402 if test -n "$CCC"; then
5403 CXX=$CCC
5404 else
5405 if test -n "$ac_tool_prefix"; then
5406 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if ${ac_cv_prog_CXX+:} false; then :
5413 $as_echo_n "(cached) " >&6
5414 else
5415 if test -n "$CXX"; then
5416 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5417 else
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 break 2
5429 done
5430 done
5431 IFS=$as_save_IFS
5435 CXX=$ac_cv_prog_CXX
5436 if test -n "$CXX"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5438 $as_echo "$CXX" >&6; }
5439 else
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5445 test -n "$CXX" && break
5446 done
5448 if test -z "$CXX"; then
5449 ac_ct_CXX=$CXX
5450 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5452 # Extract the first word of "$ac_prog", so it can be a program name with args.
5453 set dummy $ac_prog; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5457 $as_echo_n "(cached) " >&6
5458 else
5459 if test -n "$ac_ct_CXX"; then
5460 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5461 else
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5465 IFS=$as_save_IFS
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5469 ac_cv_prog_ac_ct_CXX="$ac_prog"
5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 break 2
5473 done
5474 done
5475 IFS=$as_save_IFS
5479 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5480 if test -n "$ac_ct_CXX"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5482 $as_echo "$ac_ct_CXX" >&6; }
5483 else
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5489 test -n "$ac_ct_CXX" && break
5490 done
5492 if test "x$ac_ct_CXX" = x; then
5493 CXX="g++"
5494 else
5495 case $cross_compiling:$ac_tool_warned in
5496 yes:)
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5499 ac_tool_warned=yes ;;
5500 esac
5501 CXX=$ac_ct_CXX
5507 # Provide some information about the compiler.
5508 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5509 set X $ac_compile
5510 ac_compiler=$2
5511 for ac_option in --version -v -V -qversion; do
5512 { { ac_try="$ac_compiler $ac_option >&5"
5513 case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5516 esac
5517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5518 $as_echo "$ac_try_echo"; } >&5
5519 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5520 ac_status=$?
5521 if test -s conftest.err; then
5522 sed '10a\
5523 ... rest of stderr output deleted ...
5524 10q' conftest.err >conftest.er1
5525 cat conftest.er1 >&5
5527 rm -f conftest.er1 conftest.err
5528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5529 test $ac_status = 0; }
5530 done
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5533 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5534 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5541 main ()
5543 #ifndef __GNUC__
5544 choke me
5545 #endif
5548 return 0;
5550 _ACEOF
5551 if ac_fn_cxx_try_compile "$LINENO"; then :
5552 ac_compiler_gnu=yes
5553 else
5554 ac_compiler_gnu=no
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5561 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5562 if test $ac_compiler_gnu = yes; then
5563 GXX=yes
5564 else
5565 GXX=
5567 ac_test_CXXFLAGS=${CXXFLAGS+set}
5568 ac_save_CXXFLAGS=$CXXFLAGS
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5570 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5571 if ${ac_cv_prog_cxx_g+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5575 ac_cxx_werror_flag=yes
5576 ac_cv_prog_cxx_g=no
5577 CXXFLAGS="-g"
5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5582 main ()
5586 return 0;
5588 _ACEOF
5589 if ac_fn_cxx_try_compile "$LINENO"; then :
5590 ac_cv_prog_cxx_g=yes
5591 else
5592 CXXFLAGS=""
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5597 main ()
5601 return 0;
5603 _ACEOF
5604 if ac_fn_cxx_try_compile "$LINENO"; then :
5606 else
5607 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5608 CXXFLAGS="-g"
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5613 main ()
5617 return 0;
5619 _ACEOF
5620 if ac_fn_cxx_try_compile "$LINENO"; then :
5621 ac_cv_prog_cxx_g=yes
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5631 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5632 if test "$ac_test_CXXFLAGS" = set; then
5633 CXXFLAGS=$ac_save_CXXFLAGS
5634 elif test $ac_cv_prog_cxx_g = yes; then
5635 if test "$GXX" = yes; then
5636 CXXFLAGS="-g -O2"
5637 else
5638 CXXFLAGS="-g"
5640 else
5641 if test "$GXX" = yes; then
5642 CXXFLAGS="-O2"
5643 else
5644 CXXFLAGS=
5647 ac_ext=c
5648 ac_cpp='$CPP $CPPFLAGS'
5649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5653 depcc="$CXX" am_compiler_list=
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5656 $as_echo_n "checking dependency style of $depcc... " >&6; }
5657 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5661 # We make a subdir and do the tests there. Otherwise we can end up
5662 # making bogus files that we don't know about and never remove. For
5663 # instance it was reported that on HP-UX the gcc test will end up
5664 # making a dummy file named 'D' -- because '-MD' means "put the output
5665 # in D".
5666 rm -rf conftest.dir
5667 mkdir conftest.dir
5668 # Copy depcomp to subdir because otherwise we won't find it if we're
5669 # using a relative directory.
5670 cp "$am_depcomp" conftest.dir
5671 cd conftest.dir
5672 # We will build objects and dependencies in a subdirectory because
5673 # it helps to detect inapplicable dependency modes. For instance
5674 # both Tru64's cc and ICC support -MD to output dependencies as a
5675 # side effect of compilation, but ICC will put the dependencies in
5676 # the current directory while Tru64 will put them in the object
5677 # directory.
5678 mkdir sub
5680 am_cv_CXX_dependencies_compiler_type=none
5681 if test "$am_compiler_list" = ""; then
5682 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5684 am__universal=false
5685 case " $depcc " in #(
5686 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5687 esac
5689 for depmode in $am_compiler_list; do
5690 # Setup a source with many dependencies, because some compilers
5691 # like to wrap large dependency lists on column 80 (with \), and
5692 # we should not choose a depcomp mode which is confused by this.
5694 # We need to recreate these files for each test, as the compiler may
5695 # overwrite some of them when testing with obscure command lines.
5696 # This happens at least with the AIX C compiler.
5697 : > sub/conftest.c
5698 for i in 1 2 3 4 5 6; do
5699 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5700 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5701 # Solaris 10 /bin/sh.
5702 echo '/* dummy */' > sub/conftst$i.h
5703 done
5704 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5706 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5707 # mode. It turns out that the SunPro C++ compiler does not properly
5708 # handle '-M -o', and we need to detect this. Also, some Intel
5709 # versions had trouble with output in subdirs.
5710 am__obj=sub/conftest.${OBJEXT-o}
5711 am__minus_obj="-o $am__obj"
5712 case $depmode in
5713 gcc)
5714 # This depmode causes a compiler race in universal mode.
5715 test "$am__universal" = false || continue
5717 nosideeffect)
5718 # After this tag, mechanisms are not by side-effect, so they'll
5719 # only be used when explicitly requested.
5720 if test "x$enable_dependency_tracking" = xyes; then
5721 continue
5722 else
5723 break
5726 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5727 # This compiler won't grok '-c -o', but also, the minuso test has
5728 # not run yet. These depmodes are late enough in the game, and
5729 # so weak that their functioning should not be impacted.
5730 am__obj=conftest.${OBJEXT-o}
5731 am__minus_obj=
5733 none) break ;;
5734 esac
5735 if depmode=$depmode \
5736 source=sub/conftest.c object=$am__obj \
5737 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5738 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5739 >/dev/null 2>conftest.err &&
5740 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5741 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5742 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5743 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5744 # icc doesn't choke on unknown options, it will just issue warnings
5745 # or remarks (even with -Werror). So we grep stderr for any message
5746 # that says an option was ignored or not supported.
5747 # When given -MP, icc 7.0 and 7.1 complain thusly:
5748 # icc: Command line warning: ignoring option '-M'; no argument required
5749 # The diagnosis changed in icc 8.0:
5750 # icc: Command line remark: option '-MP' not supported
5751 if (grep 'ignoring option' conftest.err ||
5752 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5753 am_cv_CXX_dependencies_compiler_type=$depmode
5754 break
5757 done
5759 cd ..
5760 rm -rf conftest.dir
5761 else
5762 am_cv_CXX_dependencies_compiler_type=none
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5767 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5768 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5771 test "x$enable_dependency_tracking" != xno \
5772 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5773 am__fastdepCXX_TRUE=
5774 am__fastdepCXX_FALSE='#'
5775 else
5776 am__fastdepCXX_TRUE='#'
5777 am__fastdepCXX_FALSE=
5782 if test -n "$ac_tool_prefix"; then
5783 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5784 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786 $as_echo_n "checking for $ac_word... " >&6; }
5787 if ${ac_cv_prog_RANLIB+:} false; then :
5788 $as_echo_n "(cached) " >&6
5789 else
5790 if test -n "$RANLIB"; then
5791 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5792 else
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5796 IFS=$as_save_IFS
5797 test -z "$as_dir" && as_dir=.
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5800 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802 break 2
5804 done
5805 done
5806 IFS=$as_save_IFS
5810 RANLIB=$ac_cv_prog_RANLIB
5811 if test -n "$RANLIB"; then
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5813 $as_echo "$RANLIB" >&6; }
5814 else
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816 $as_echo "no" >&6; }
5821 if test -z "$ac_cv_prog_RANLIB"; then
5822 ac_ct_RANLIB=$RANLIB
5823 # Extract the first word of "ranlib", so it can be a program name with args.
5824 set dummy ranlib; ac_word=$2
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826 $as_echo_n "checking for $ac_word... " >&6; }
5827 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5828 $as_echo_n "(cached) " >&6
5829 else
5830 if test -n "$ac_ct_RANLIB"; then
5831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5832 else
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 for as_dir in $PATH
5836 IFS=$as_save_IFS
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5840 ac_cv_prog_ac_ct_RANLIB="ranlib"
5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 break 2
5844 done
5845 done
5846 IFS=$as_save_IFS
5850 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5851 if test -n "$ac_ct_RANLIB"; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5853 $as_echo "$ac_ct_RANLIB" >&6; }
5854 else
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856 $as_echo "no" >&6; }
5859 if test "x$ac_ct_RANLIB" = x; then
5860 RANLIB=":"
5861 else
5862 case $cross_compiling:$ac_tool_warned in
5863 yes:)
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5866 ac_tool_warned=yes ;;
5867 esac
5868 RANLIB=$ac_ct_RANLIB
5870 else
5871 RANLIB="$ac_cv_prog_RANLIB"
5874 if test -n "$ac_tool_prefix"; then
5875 for ac_prog in ar lib "link -lib"
5877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if ${ac_cv_prog_AR+:} false; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 if test -n "$AR"; then
5885 ac_cv_prog_AR="$AR" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5898 done
5899 done
5900 IFS=$as_save_IFS
5904 AR=$ac_cv_prog_AR
5905 if test -n "$AR"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5907 $as_echo "$AR" >&6; }
5908 else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5914 test -n "$AR" && break
5915 done
5917 if test -z "$AR"; then
5918 ac_ct_AR=$AR
5919 for ac_prog in ar lib "link -lib"
5921 # Extract the first word of "$ac_prog", so it can be a program name with args.
5922 set dummy $ac_prog; ac_word=$2
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924 $as_echo_n "checking for $ac_word... " >&6; }
5925 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5926 $as_echo_n "(cached) " >&6
5927 else
5928 if test -n "$ac_ct_AR"; then
5929 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5930 else
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5934 IFS=$as_save_IFS
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5938 ac_cv_prog_ac_ct_AR="$ac_prog"
5939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 break 2
5942 done
5943 done
5944 IFS=$as_save_IFS
5948 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5949 if test -n "$ac_ct_AR"; then
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5951 $as_echo "$ac_ct_AR" >&6; }
5952 else
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954 $as_echo "no" >&6; }
5958 test -n "$ac_ct_AR" && break
5959 done
5961 if test "x$ac_ct_AR" = x; then
5962 AR="false"
5963 else
5964 case $cross_compiling:$ac_tool_warned in
5965 yes:)
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5968 ac_tool_warned=yes ;;
5969 esac
5970 AR=$ac_ct_AR
5974 : ${AR=ar}
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5977 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5978 if ${am_cv_ar_interface+:} false; then :
5979 $as_echo_n "(cached) " >&6
5980 else
5981 ac_ext=c
5982 ac_cpp='$CPP $CPPFLAGS'
5983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5987 am_cv_ar_interface=ar
5988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h. */
5990 int some_variable = 0;
5991 _ACEOF
5992 if ac_fn_c_try_compile "$LINENO"; then :
5993 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5995 (eval $am_ar_try) 2>&5
5996 ac_status=$?
5997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5998 test $ac_status = 0; }
5999 if test "$ac_status" -eq 0; then
6000 am_cv_ar_interface=ar
6001 else
6002 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6004 (eval $am_ar_try) 2>&5
6005 ac_status=$?
6006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6007 test $ac_status = 0; }
6008 if test "$ac_status" -eq 0; then
6009 am_cv_ar_interface=lib
6010 else
6011 am_cv_ar_interface=unknown
6014 rm -f conftest.lib libconftest.a
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 ac_ext=c
6019 ac_cpp='$CPP $CPPFLAGS'
6020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6026 $as_echo "$am_cv_ar_interface" >&6; }
6028 case $am_cv_ar_interface in
6031 lib)
6032 # Microsoft lib, so override with the ar-lib wrapper script.
6033 # FIXME: It is wrong to rewrite AR.
6034 # But if we don't then we get into trouble of one sort or another.
6035 # A longer-term fix would be to have automake use am__AR in this case,
6036 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6037 # similar.
6038 AR="$am_aux_dir/ar-lib $AR"
6040 unknown)
6041 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6043 esac
6046 for ac_prog in bison
6048 # Extract the first word of "$ac_prog", so it can be a program name with args.
6049 set dummy $ac_prog; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if ${ac_cv_prog_BISON+:} false; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 if test -n "$BISON"; then
6056 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065 ac_cv_prog_BISON="$ac_prog"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 break 2
6069 done
6070 done
6071 IFS=$as_save_IFS
6075 BISON=$ac_cv_prog_BISON
6076 if test -n "$BISON"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
6078 $as_echo "$BISON" >&6; }
6079 else
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6085 test -n "$BISON" && break
6086 done
6088 if test -z "$BISON"; then
6089 ac_verc_fail=yes
6090 else
6091 cat >conftest.y <<_ACEOF
6092 %require "3.0.4"
6094 exp:
6095 _ACEOF
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison 3.0.4 or newer" >&5
6097 $as_echo_n "checking for bison 3.0.4 or newer... " >&6; }
6098 ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6099 : ${ac_prog_version:='v. ?.??'}
6100 if $BISON conftest.y -o conftest.c 2>/dev/null; then
6101 ac_prog_version="$ac_prog_version, ok"
6102 ac_verc_fail=no
6103 else
6104 ac_prog_version="$ac_prog_version, bad"
6105 ac_verc_fail=yes
6107 rm -f conftest.y conftest.c
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
6109 $as_echo "$ac_prog_version" >&6; }
6111 if test $ac_verc_fail = yes; then
6112 BISON=:
6116 if test x$BISON = "x:"; then
6117 as_fn_error $? "Building gprofng requires bison 3.0.4 or later." "$LINENO" 5
6120 # Check whether --enable-shared was given.
6121 if test "${enable_shared+set}" = set; then :
6122 enableval=$enable_shared; p=${PACKAGE-default}
6123 case $enableval in
6124 yes) enable_shared=yes ;;
6125 no) enable_shared=no ;;
6127 enable_shared=no
6128 # Look at the argument we got. We use all the common list separators.
6129 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6130 for pkg in $enableval; do
6131 IFS="$lt_save_ifs"
6132 if test "X$pkg" = "X$p"; then
6133 enable_shared=yes
6135 done
6136 IFS="$lt_save_ifs"
6138 esac
6139 else
6140 enable_shared=no
6151 case `pwd` in
6152 *\ * | *\ *)
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6154 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6155 esac
6159 macro_version='2.2.7a'
6160 macro_revision='1.3134'
6174 ltmain="$ac_aux_dir/ltmain.sh"
6176 # Backslashify metacharacters that are still active within
6177 # double-quoted strings.
6178 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6180 # Same as above, but do not quote variable references.
6181 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6183 # Sed substitution to delay expansion of an escaped shell variable in a
6184 # double_quote_subst'ed string.
6185 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6187 # Sed substitution to delay expansion of an escaped single quote.
6188 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6190 # Sed substitution to avoid accidental globbing in evaled expressions
6191 no_glob_subst='s/\*/\\\*/g'
6193 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6194 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6195 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6198 $as_echo_n "checking how to print strings... " >&6; }
6199 # Test print first, because it will be a builtin if present.
6200 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6201 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6202 ECHO='print -r --'
6203 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6204 ECHO='printf %s\n'
6205 else
6206 # Use this function as a fallback that always works.
6207 func_fallback_echo ()
6209 eval 'cat <<_LTECHO_EOF
6211 _LTECHO_EOF'
6213 ECHO='func_fallback_echo'
6216 # func_echo_all arg...
6217 # Invoke $ECHO with all args, space-separated.
6218 func_echo_all ()
6220 $ECHO ""
6223 case "$ECHO" in
6224 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6225 $as_echo "printf" >&6; } ;;
6226 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6227 $as_echo "print -r" >&6; } ;;
6228 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6229 $as_echo "cat" >&6; } ;;
6230 esac
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6246 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6247 if ${ac_cv_path_SED+:} false; then :
6248 $as_echo_n "(cached) " >&6
6249 else
6250 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6251 for ac_i in 1 2 3 4 5 6 7; do
6252 ac_script="$ac_script$as_nl$ac_script"
6253 done
6254 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6255 { ac_script=; unset ac_script;}
6256 if test -z "$SED"; then
6257 ac_path_SED_found=false
6258 # Loop through the user's path and test for each of PROGNAME-LIST
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
6264 for ac_prog in sed gsed; do
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6267 as_fn_executable_p "$ac_path_SED" || continue
6268 # Check for GNU ac_path_SED and select it if it is found.
6269 # Check for GNU $ac_path_SED
6270 case `"$ac_path_SED" --version 2>&1` in
6271 *GNU*)
6272 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6274 ac_count=0
6275 $as_echo_n 0123456789 >"conftest.in"
6276 while :
6278 cat "conftest.in" "conftest.in" >"conftest.tmp"
6279 mv "conftest.tmp" "conftest.in"
6280 cp "conftest.in" "conftest.nl"
6281 $as_echo '' >> "conftest.nl"
6282 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6284 as_fn_arith $ac_count + 1 && ac_count=$as_val
6285 if test $ac_count -gt ${ac_path_SED_max-0}; then
6286 # Best one so far, save it but keep looking for a better one
6287 ac_cv_path_SED="$ac_path_SED"
6288 ac_path_SED_max=$ac_count
6290 # 10*(2^10) chars as input seems more than enough
6291 test $ac_count -gt 10 && break
6292 done
6293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6294 esac
6296 $ac_path_SED_found && break 3
6297 done
6298 done
6299 done
6300 IFS=$as_save_IFS
6301 if test -z "$ac_cv_path_SED"; then
6302 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6304 else
6305 ac_cv_path_SED=$SED
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6310 $as_echo "$ac_cv_path_SED" >&6; }
6311 SED="$ac_cv_path_SED"
6312 rm -f conftest.sed
6314 test -z "$SED" && SED=sed
6315 Xsed="$SED -e 1s/^X//"
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6328 $as_echo_n "checking for fgrep... " >&6; }
6329 if ${ac_cv_path_FGREP+:} false; then :
6330 $as_echo_n "(cached) " >&6
6331 else
6332 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6333 then ac_cv_path_FGREP="$GREP -F"
6334 else
6335 if test -z "$FGREP"; then
6336 ac_path_FGREP_found=false
6337 # Loop through the user's path and test for each of PROGNAME-LIST
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
6343 for ac_prog in fgrep; do
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6346 as_fn_executable_p "$ac_path_FGREP" || continue
6347 # Check for GNU ac_path_FGREP and select it if it is found.
6348 # Check for GNU $ac_path_FGREP
6349 case `"$ac_path_FGREP" --version 2>&1` in
6350 *GNU*)
6351 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6353 ac_count=0
6354 $as_echo_n 0123456789 >"conftest.in"
6355 while :
6357 cat "conftest.in" "conftest.in" >"conftest.tmp"
6358 mv "conftest.tmp" "conftest.in"
6359 cp "conftest.in" "conftest.nl"
6360 $as_echo 'FGREP' >> "conftest.nl"
6361 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6362 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6363 as_fn_arith $ac_count + 1 && ac_count=$as_val
6364 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6365 # Best one so far, save it but keep looking for a better one
6366 ac_cv_path_FGREP="$ac_path_FGREP"
6367 ac_path_FGREP_max=$ac_count
6369 # 10*(2^10) chars as input seems more than enough
6370 test $ac_count -gt 10 && break
6371 done
6372 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6373 esac
6375 $ac_path_FGREP_found && break 3
6376 done
6377 done
6378 done
6379 IFS=$as_save_IFS
6380 if test -z "$ac_cv_path_FGREP"; then
6381 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6383 else
6384 ac_cv_path_FGREP=$FGREP
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6390 $as_echo "$ac_cv_path_FGREP" >&6; }
6391 FGREP="$ac_cv_path_FGREP"
6394 test -z "$GREP" && GREP=grep
6414 # Check whether --with-gnu-ld was given.
6415 if test "${with_gnu_ld+set}" = set; then :
6416 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6417 else
6418 with_gnu_ld=no
6421 ac_prog=ld
6422 if test "$GCC" = yes; then
6423 # Check if gcc -print-prog-name=ld gives a path.
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6425 $as_echo_n "checking for ld used by $CC... " >&6; }
6426 case $host in
6427 *-*-mingw*)
6428 # gcc leaves a trailing carriage return which upsets mingw
6429 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6431 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6432 esac
6433 case $ac_prog in
6434 # Accept absolute paths.
6435 [\\/]* | ?:[\\/]*)
6436 re_direlt='/[^/][^/]*/\.\./'
6437 # Canonicalize the pathname of ld
6438 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6439 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6440 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6441 done
6442 test -z "$LD" && LD="$ac_prog"
6445 # If it fails, then pretend we aren't using GCC.
6446 ac_prog=ld
6449 # If it is relative, then search for the first ld in PATH.
6450 with_gnu_ld=unknown
6452 esac
6453 elif test "$with_gnu_ld" = yes; then
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6455 $as_echo_n "checking for GNU ld... " >&6; }
6456 else
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6458 $as_echo_n "checking for non-GNU ld... " >&6; }
6460 if ${lt_cv_path_LD+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 if test -z "$LD"; then
6464 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6465 for ac_dir in $PATH; do
6466 IFS="$lt_save_ifs"
6467 test -z "$ac_dir" && ac_dir=.
6468 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6469 lt_cv_path_LD="$ac_dir/$ac_prog"
6470 # Check to see if the program is GNU ld. I'd rather use --version,
6471 # but apparently some variants of GNU ld only accept -v.
6472 # Break only if it was the GNU/non-GNU ld that we prefer.
6473 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6474 *GNU* | *'with BFD'*)
6475 test "$with_gnu_ld" != no && break
6478 test "$with_gnu_ld" != yes && break
6480 esac
6482 done
6483 IFS="$lt_save_ifs"
6484 else
6485 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6489 LD="$lt_cv_path_LD"
6490 if test -n "$LD"; then
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6492 $as_echo "$LD" >&6; }
6493 else
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495 $as_echo "no" >&6; }
6497 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6499 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6500 if ${lt_cv_prog_gnu_ld+:} false; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6504 case `$LD -v 2>&1 </dev/null` in
6505 *GNU* | *'with BFD'*)
6506 lt_cv_prog_gnu_ld=yes
6509 lt_cv_prog_gnu_ld=no
6511 esac
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6514 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6515 with_gnu_ld=$lt_cv_prog_gnu_ld
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6526 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6527 if ${lt_cv_path_NM+:} false; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 if test -n "$NM"; then
6531 # Let the user override the nm to test.
6532 lt_nm_to_check="$NM"
6533 else
6534 lt_nm_to_check="${ac_tool_prefix}nm"
6535 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6536 lt_nm_to_check="$lt_nm_to_check nm"
6539 for lt_tmp_nm in "$lt_nm_to_check"; do
6540 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6541 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6542 IFS="$lt_save_ifs"
6543 test -z "$ac_dir" && ac_dir=.
6544 # Strip out any user-provided options from the nm to test twice,
6545 # the first time to test to see if nm (rather than its options) has
6546 # an explicit path, the second time to yield a file which can be
6547 # nm'ed itself.
6548 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6549 case "$tmp_nm_path" in
6550 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6551 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6552 esac
6553 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6554 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6555 # Check to see if the nm accepts a BSD-compat flag.
6556 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6557 # nm: unknown option "B" ignored
6558 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6559 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6560 break
6563 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6564 *$tmp_nm*)
6565 lt_cv_path_NM="$tmp_nm -p"
6566 break
6569 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6570 continue # so that we can try to find one that supports BSD flags
6572 esac
6574 esac
6576 done
6577 IFS="$lt_save_ifs"
6578 done
6579 : ${lt_cv_path_NM=no}
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6582 $as_echo "$lt_cv_path_NM" >&6; }
6583 if test "$lt_cv_path_NM" != "no"; then
6584 NM="$lt_cv_path_NM"
6585 else
6586 # Didn't find any BSD compatible name lister, look for dumpbin.
6587 if test -n "$DUMPBIN"; then :
6588 # Let the user override the test.
6589 else
6590 if test -n "$ac_tool_prefix"; then
6591 for ac_prog in dumpbin "link -dump"
6593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596 $as_echo_n "checking for $ac_word... " >&6; }
6597 if ${ac_cv_prog_DUMPBIN+:} false; then :
6598 $as_echo_n "(cached) " >&6
6599 else
6600 if test -n "$DUMPBIN"; then
6601 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6602 else
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6606 IFS=$as_save_IFS
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6610 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 break 2
6614 done
6615 done
6616 IFS=$as_save_IFS
6620 DUMPBIN=$ac_cv_prog_DUMPBIN
6621 if test -n "$DUMPBIN"; then
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6623 $as_echo "$DUMPBIN" >&6; }
6624 else
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; }
6630 test -n "$DUMPBIN" && break
6631 done
6633 if test -z "$DUMPBIN"; then
6634 ac_ct_DUMPBIN=$DUMPBIN
6635 for ac_prog in dumpbin "link -dump"
6637 # Extract the first word of "$ac_prog", so it can be a program name with args.
6638 set dummy $ac_prog; ac_word=$2
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6642 $as_echo_n "(cached) " >&6
6643 else
6644 if test -n "$ac_ct_DUMPBIN"; then
6645 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6650 IFS=$as_save_IFS
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6654 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 break 2
6658 done
6659 done
6660 IFS=$as_save_IFS
6664 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6665 if test -n "$ac_ct_DUMPBIN"; then
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6667 $as_echo "$ac_ct_DUMPBIN" >&6; }
6668 else
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6670 $as_echo "no" >&6; }
6674 test -n "$ac_ct_DUMPBIN" && break
6675 done
6677 if test "x$ac_ct_DUMPBIN" = x; then
6678 DUMPBIN=":"
6679 else
6680 case $cross_compiling:$ac_tool_warned in
6681 yes:)
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6684 ac_tool_warned=yes ;;
6685 esac
6686 DUMPBIN=$ac_ct_DUMPBIN
6690 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6691 *COFF*)
6692 DUMPBIN="$DUMPBIN -symbols"
6695 DUMPBIN=:
6697 esac
6700 if test "$DUMPBIN" != ":"; then
6701 NM="$DUMPBIN"
6704 test -z "$NM" && NM=nm
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6712 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6713 if ${lt_cv_nm_interface+:} false; then :
6714 $as_echo_n "(cached) " >&6
6715 else
6716 lt_cv_nm_interface="BSD nm"
6717 echo "int some_variable = 0;" > conftest.$ac_ext
6718 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6719 (eval "$ac_compile" 2>conftest.err)
6720 cat conftest.err >&5
6721 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6722 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6723 cat conftest.err >&5
6724 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6725 cat conftest.out >&5
6726 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6727 lt_cv_nm_interface="MS dumpbin"
6729 rm -f conftest*
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6732 $as_echo "$lt_cv_nm_interface" >&6; }
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6735 $as_echo_n "checking whether ln -s works... " >&6; }
6736 LN_S=$as_ln_s
6737 if test "$LN_S" = "ln -s"; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6739 $as_echo "yes" >&6; }
6740 else
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6742 $as_echo "no, using $LN_S" >&6; }
6745 # find the maximum length of command line arguments
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6747 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6748 if ${lt_cv_sys_max_cmd_len+:} false; then :
6749 $as_echo_n "(cached) " >&6
6750 else
6752 teststring="ABCD"
6754 case $build_os in
6755 msdosdjgpp*)
6756 # On DJGPP, this test can blow up pretty badly due to problems in libc
6757 # (any single argument exceeding 2000 bytes causes a buffer overrun
6758 # during glob expansion). Even if it were fixed, the result of this
6759 # check would be larger than it should be.
6760 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6763 gnu*)
6764 # Under GNU Hurd, this test is not required because there is
6765 # no limit to the length of command line arguments.
6766 # Libtool will interpret -1 as no limit whatsoever
6767 lt_cv_sys_max_cmd_len=-1;
6770 cygwin* | mingw* | cegcc*)
6771 # On Win9x/ME, this test blows up -- it succeeds, but takes
6772 # about 5 minutes as the teststring grows exponentially.
6773 # Worse, since 9x/ME are not pre-emptively multitasking,
6774 # you end up with a "frozen" computer, even though with patience
6775 # the test eventually succeeds (with a max line length of 256k).
6776 # Instead, let's just punt: use the minimum linelength reported by
6777 # all of the supported platforms: 8192 (on NT/2K/XP).
6778 lt_cv_sys_max_cmd_len=8192;
6781 mint*)
6782 # On MiNT this can take a long time and run out of memory.
6783 lt_cv_sys_max_cmd_len=8192;
6786 amigaos*)
6787 # On AmigaOS with pdksh, this test takes hours, literally.
6788 # So we just punt and use a minimum line length of 8192.
6789 lt_cv_sys_max_cmd_len=8192;
6792 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6793 # This has been around since 386BSD, at least. Likely further.
6794 if test -x /sbin/sysctl; then
6795 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6796 elif test -x /usr/sbin/sysctl; then
6797 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6798 else
6799 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6801 # And add a safety zone
6802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6806 interix*)
6807 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6808 lt_cv_sys_max_cmd_len=196608
6811 osf*)
6812 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6813 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6814 # nice to cause kernel panics so lets avoid the loop below.
6815 # First set a reasonable default.
6816 lt_cv_sys_max_cmd_len=16384
6818 if test -x /sbin/sysconfig; then
6819 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6820 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6821 esac
6824 sco3.2v5*)
6825 lt_cv_sys_max_cmd_len=102400
6827 sysv5* | sco5v6* | sysv4.2uw2*)
6828 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6829 if test -n "$kargmax"; then
6830 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6831 else
6832 lt_cv_sys_max_cmd_len=32768
6836 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6837 if test -n "$lt_cv_sys_max_cmd_len"; then
6838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6840 else
6841 # Make teststring a little bigger before we do anything with it.
6842 # a 1K string should be a reasonable start.
6843 for i in 1 2 3 4 5 6 7 8 ; do
6844 teststring=$teststring$teststring
6845 done
6846 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6847 # If test is not a shell built-in, we'll probably end up computing a
6848 # maximum length that is only half of the actual maximum length, but
6849 # we can't tell.
6850 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6851 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6852 test $i != 17 # 1/2 MB should be enough
6854 i=`expr $i + 1`
6855 teststring=$teststring$teststring
6856 done
6857 # Only check the string length outside the loop.
6858 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6859 teststring=
6860 # Add a significant safety factor because C++ compilers can tack on
6861 # massive amounts of additional arguments before passing them to the
6862 # linker. It appears as though 1/2 is a usable value.
6863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6866 esac
6870 if test -n $lt_cv_sys_max_cmd_len ; then
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6872 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6873 else
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6875 $as_echo "none" >&6; }
6877 max_cmd_len=$lt_cv_sys_max_cmd_len
6884 : ${CP="cp -f"}
6885 : ${MV="mv -f"}
6886 : ${RM="rm -f"}
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6889 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6890 # Try some XSI features
6891 xsi_shell=no
6892 ( _lt_dummy="a/b/c"
6893 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6894 = c,a/b,, \
6895 && eval 'test $(( 1 + 1 )) -eq 2 \
6896 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6897 && xsi_shell=yes
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6899 $as_echo "$xsi_shell" >&6; }
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6903 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6904 lt_shell_append=no
6905 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6906 >/dev/null 2>&1 \
6907 && lt_shell_append=yes
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6909 $as_echo "$lt_shell_append" >&6; }
6912 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6913 lt_unset=unset
6914 else
6915 lt_unset=false
6922 # test EBCDIC or ASCII
6923 case `echo X|tr X '\101'` in
6924 A) # ASCII based system
6925 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6926 lt_SP2NL='tr \040 \012'
6927 lt_NL2SP='tr \015\012 \040\040'
6929 *) # EBCDIC based system
6930 lt_SP2NL='tr \100 \n'
6931 lt_NL2SP='tr \r\n \100\100'
6933 esac
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6944 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6945 if ${lt_cv_ld_reload_flag+:} false; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 lt_cv_ld_reload_flag='-r'
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6951 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6952 reload_flag=$lt_cv_ld_reload_flag
6953 case $reload_flag in
6954 "" | " "*) ;;
6955 *) reload_flag=" $reload_flag" ;;
6956 esac
6957 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6958 case $host_os in
6959 darwin*)
6960 if test "$GCC" = yes; then
6961 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6962 else
6963 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6966 esac
6976 if test -n "$ac_tool_prefix"; then
6977 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6978 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980 $as_echo_n "checking for $ac_word... " >&6; }
6981 if ${ac_cv_prog_OBJDUMP+:} false; then :
6982 $as_echo_n "(cached) " >&6
6983 else
6984 if test -n "$OBJDUMP"; then
6985 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6986 else
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 for as_dir in $PATH
6990 IFS=$as_save_IFS
6991 test -z "$as_dir" && as_dir=.
6992 for ac_exec_ext in '' $ac_executable_extensions; do
6993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996 break 2
6998 done
6999 done
7000 IFS=$as_save_IFS
7004 OBJDUMP=$ac_cv_prog_OBJDUMP
7005 if test -n "$OBJDUMP"; then
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7007 $as_echo "$OBJDUMP" >&6; }
7008 else
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010 $as_echo "no" >&6; }
7015 if test -z "$ac_cv_prog_OBJDUMP"; then
7016 ac_ct_OBJDUMP=$OBJDUMP
7017 # Extract the first word of "objdump", so it can be a program name with args.
7018 set dummy objdump; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7022 $as_echo_n "(cached) " >&6
7023 else
7024 if test -n "$ac_ct_OBJDUMP"; then
7025 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7026 else
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7030 IFS=$as_save_IFS
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 break 2
7038 done
7039 done
7040 IFS=$as_save_IFS
7044 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7045 if test -n "$ac_ct_OBJDUMP"; then
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7047 $as_echo "$ac_ct_OBJDUMP" >&6; }
7048 else
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7053 if test "x$ac_ct_OBJDUMP" = x; then
7054 OBJDUMP="false"
7055 else
7056 case $cross_compiling:$ac_tool_warned in
7057 yes:)
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7060 ac_tool_warned=yes ;;
7061 esac
7062 OBJDUMP=$ac_ct_OBJDUMP
7064 else
7065 OBJDUMP="$ac_cv_prog_OBJDUMP"
7068 test -z "$OBJDUMP" && OBJDUMP=objdump
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7079 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7080 if ${lt_cv_deplibs_check_method+:} false; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 lt_cv_file_magic_cmd='$MAGIC_CMD'
7084 lt_cv_file_magic_test_file=
7085 lt_cv_deplibs_check_method='unknown'
7086 # Need to set the preceding variable on all platforms that support
7087 # interlibrary dependencies.
7088 # 'none' -- dependencies not supported.
7089 # `unknown' -- same as none, but documents that we really don't know.
7090 # 'pass_all' -- all dependencies passed with no checks.
7091 # 'test_compile' -- check by making test program.
7092 # 'file_magic [[regex]]' -- check by looking for files in library path
7093 # which responds to the $file_magic_cmd with a given extended regex.
7094 # If you have `file' or equivalent on your system and you're not sure
7095 # whether `pass_all' will *always* work, you probably want this one.
7097 case $host_os in
7098 aix[4-9]*)
7099 lt_cv_deplibs_check_method=pass_all
7102 beos*)
7103 lt_cv_deplibs_check_method=pass_all
7106 bsdi[45]*)
7107 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7108 lt_cv_file_magic_cmd='/usr/bin/file -L'
7109 lt_cv_file_magic_test_file=/shlib/libc.so
7112 cygwin*)
7113 # func_win32_libid is a shell function defined in ltmain.sh
7114 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7115 lt_cv_file_magic_cmd='func_win32_libid'
7118 mingw* | pw32*)
7119 # Base MSYS/MinGW do not provide the 'file' command needed by
7120 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7121 # unless we find 'file', for example because we are cross-compiling.
7122 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7123 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7124 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7125 lt_cv_file_magic_cmd='func_win32_libid'
7126 else
7127 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7128 lt_cv_file_magic_cmd='$OBJDUMP -f'
7132 cegcc*)
7133 # use the weaker test based on 'objdump'. See mingw*.
7134 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7135 lt_cv_file_magic_cmd='$OBJDUMP -f'
7138 darwin* | rhapsody*)
7139 lt_cv_deplibs_check_method=pass_all
7142 freebsd* | dragonfly*)
7143 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7144 case $host_cpu in
7145 i*86 )
7146 # Not sure whether the presence of OpenBSD here was a mistake.
7147 # Let's accept both of them until this is cleared up.
7148 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7149 lt_cv_file_magic_cmd=/usr/bin/file
7150 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7152 esac
7153 else
7154 lt_cv_deplibs_check_method=pass_all
7158 gnu*)
7159 lt_cv_deplibs_check_method=pass_all
7162 haiku*)
7163 lt_cv_deplibs_check_method=pass_all
7166 hpux10.20* | hpux11*)
7167 lt_cv_file_magic_cmd=/usr/bin/file
7168 case $host_cpu in
7169 ia64*)
7170 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7171 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7173 hppa*64*)
7174 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]'
7175 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7178 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7179 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7181 esac
7184 interix[3-9]*)
7185 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7189 irix5* | irix6* | nonstopux*)
7190 case $LD in
7191 *-32|*"-32 ") libmagic=32-bit;;
7192 *-n32|*"-n32 ") libmagic=N32;;
7193 *-64|*"-64 ") libmagic=64-bit;;
7194 *) libmagic=never-match;;
7195 esac
7196 lt_cv_deplibs_check_method=pass_all
7199 # This must be Linux ELF.
7200 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7201 lt_cv_deplibs_check_method=pass_all
7204 netbsd*)
7205 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7207 else
7208 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7212 newos6*)
7213 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7214 lt_cv_file_magic_cmd=/usr/bin/file
7215 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7218 *nto* | *qnx*)
7219 lt_cv_deplibs_check_method=pass_all
7222 openbsd*)
7223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7225 else
7226 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7230 osf3* | osf4* | osf5*)
7231 lt_cv_deplibs_check_method=pass_all
7234 rdos*)
7235 lt_cv_deplibs_check_method=pass_all
7238 solaris*)
7239 lt_cv_deplibs_check_method=pass_all
7242 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7243 lt_cv_deplibs_check_method=pass_all
7246 sysv4 | sysv4.3*)
7247 case $host_vendor in
7248 motorola)
7249 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]'
7250 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7252 ncr)
7253 lt_cv_deplibs_check_method=pass_all
7255 sequent)
7256 lt_cv_file_magic_cmd='/bin/file'
7257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7259 sni)
7260 lt_cv_file_magic_cmd='/bin/file'
7261 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7262 lt_cv_file_magic_test_file=/lib/libc.so
7264 siemens)
7265 lt_cv_deplibs_check_method=pass_all
7268 lt_cv_deplibs_check_method=pass_all
7270 esac
7273 tpf*)
7274 lt_cv_deplibs_check_method=pass_all
7276 vxworks*)
7277 # Assume VxWorks cross toolchains are built on Linux, possibly
7278 # as canadian for Windows hosts.
7279 lt_cv_deplibs_check_method=pass_all
7281 esac
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7285 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7286 file_magic_cmd=$lt_cv_file_magic_cmd
7287 deplibs_check_method=$lt_cv_deplibs_check_method
7288 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7301 plugin_option=
7302 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7303 for plugin in $plugin_names; do
7304 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7305 if test x$plugin_so = x$plugin; then
7306 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7308 if test x$plugin_so != x$plugin; then
7309 plugin_option="--plugin $plugin_so"
7310 break
7312 done
7314 if test -n "$ac_tool_prefix"; then
7315 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7316 set dummy ${ac_tool_prefix}ar; ac_word=$2
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if ${ac_cv_prog_AR+:} false; then :
7320 $as_echo_n "(cached) " >&6
7321 else
7322 if test -n "$AR"; then
7323 ac_cv_prog_AR="$AR" # Let the user override the test.
7324 else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7328 IFS=$as_save_IFS
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332 ac_cv_prog_AR="${ac_tool_prefix}ar"
7333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 break 2
7336 done
7337 done
7338 IFS=$as_save_IFS
7342 AR=$ac_cv_prog_AR
7343 if test -n "$AR"; then
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7345 $as_echo "$AR" >&6; }
7346 else
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7353 if test -z "$ac_cv_prog_AR"; then
7354 ac_ct_AR=$AR
7355 # Extract the first word of "ar", so it can be a program name with args.
7356 set dummy ar; ac_word=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 if test -n "$ac_ct_AR"; then
7363 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7364 else
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7368 IFS=$as_save_IFS
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7372 ac_cv_prog_ac_ct_AR="ar"
7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 break 2
7376 done
7377 done
7378 IFS=$as_save_IFS
7382 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7383 if test -n "$ac_ct_AR"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7385 $as_echo "$ac_ct_AR" >&6; }
7386 else
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7391 if test "x$ac_ct_AR" = x; then
7392 AR="false"
7393 else
7394 case $cross_compiling:$ac_tool_warned in
7395 yes:)
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7398 ac_tool_warned=yes ;;
7399 esac
7400 AR=$ac_ct_AR
7402 else
7403 AR="$ac_cv_prog_AR"
7406 test -z "$AR" && AR=ar
7407 if test -n "$plugin_option"; then
7408 if $AR --help 2>&1 | grep -q "\--plugin"; then
7409 touch conftest.c
7410 $AR $plugin_option rc conftest.a conftest.c
7411 if test "$?" != 0; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7413 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7414 else
7415 AR="$AR $plugin_option"
7417 rm -f conftest.*
7420 test -z "$AR_FLAGS" && AR_FLAGS=cru
7432 if test -n "$ac_tool_prefix"; then
7433 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7434 set dummy ${ac_tool_prefix}strip; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if ${ac_cv_prog_STRIP+:} false; then :
7438 $as_echo_n "(cached) " >&6
7439 else
7440 if test -n "$STRIP"; then
7441 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7442 else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7446 IFS=$as_save_IFS
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 break 2
7454 done
7455 done
7456 IFS=$as_save_IFS
7460 STRIP=$ac_cv_prog_STRIP
7461 if test -n "$STRIP"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7463 $as_echo "$STRIP" >&6; }
7464 else
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7471 if test -z "$ac_cv_prog_STRIP"; then
7472 ac_ct_STRIP=$STRIP
7473 # Extract the first word of "strip", so it can be a program name with args.
7474 set dummy strip; ac_word=$2
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476 $as_echo_n "checking for $ac_word... " >&6; }
7477 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7478 $as_echo_n "(cached) " >&6
7479 else
7480 if test -n "$ac_ct_STRIP"; then
7481 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7482 else
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7486 IFS=$as_save_IFS
7487 test -z "$as_dir" && as_dir=.
7488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7490 ac_cv_prog_ac_ct_STRIP="strip"
7491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492 break 2
7494 done
7495 done
7496 IFS=$as_save_IFS
7500 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7501 if test -n "$ac_ct_STRIP"; then
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7503 $as_echo "$ac_ct_STRIP" >&6; }
7504 else
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506 $as_echo "no" >&6; }
7509 if test "x$ac_ct_STRIP" = x; then
7510 STRIP=":"
7511 else
7512 case $cross_compiling:$ac_tool_warned in
7513 yes:)
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7516 ac_tool_warned=yes ;;
7517 esac
7518 STRIP=$ac_ct_STRIP
7520 else
7521 STRIP="$ac_cv_prog_STRIP"
7524 test -z "$STRIP" && STRIP=:
7531 if test -n "$ac_tool_prefix"; then
7532 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7533 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535 $as_echo_n "checking for $ac_word... " >&6; }
7536 if ${ac_cv_prog_RANLIB+:} false; then :
7537 $as_echo_n "(cached) " >&6
7538 else
7539 if test -n "$RANLIB"; then
7540 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7541 else
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 for as_dir in $PATH
7545 IFS=$as_save_IFS
7546 test -z "$as_dir" && as_dir=.
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7549 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 break 2
7553 done
7554 done
7555 IFS=$as_save_IFS
7559 RANLIB=$ac_cv_prog_RANLIB
7560 if test -n "$RANLIB"; then
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7562 $as_echo "$RANLIB" >&6; }
7563 else
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565 $as_echo "no" >&6; }
7570 if test -z "$ac_cv_prog_RANLIB"; then
7571 ac_ct_RANLIB=$RANLIB
7572 # Extract the first word of "ranlib", so it can be a program name with args.
7573 set dummy ranlib; ac_word=$2
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575 $as_echo_n "checking for $ac_word... " >&6; }
7576 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7579 if test -n "$ac_ct_RANLIB"; then
7580 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7581 else
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7585 IFS=$as_save_IFS
7586 test -z "$as_dir" && as_dir=.
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589 ac_cv_prog_ac_ct_RANLIB="ranlib"
7590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7591 break 2
7593 done
7594 done
7595 IFS=$as_save_IFS
7599 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7600 if test -n "$ac_ct_RANLIB"; then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7602 $as_echo "$ac_ct_RANLIB" >&6; }
7603 else
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; }
7608 if test "x$ac_ct_RANLIB" = x; then
7609 RANLIB=":"
7610 else
7611 case $cross_compiling:$ac_tool_warned in
7612 yes:)
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7615 ac_tool_warned=yes ;;
7616 esac
7617 RANLIB=$ac_ct_RANLIB
7619 else
7620 RANLIB="$ac_cv_prog_RANLIB"
7623 test -z "$RANLIB" && RANLIB=:
7624 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7625 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7626 RANLIB="$RANLIB $plugin_option"
7635 # Determine commands to create old-style static archives.
7636 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7637 old_postinstall_cmds='chmod 644 $oldlib'
7638 old_postuninstall_cmds=
7640 if test -n "$RANLIB"; then
7641 case $host_os in
7642 openbsd*)
7643 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7646 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7648 esac
7649 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7652 case $host_os in
7653 darwin*)
7654 lock_old_archive_extraction=yes ;;
7656 lock_old_archive_extraction=no ;;
7657 esac
7697 # If no C compiler was specified, use CC.
7698 LTCC=${LTCC-"$CC"}
7700 # If no C compiler flags were specified, use CFLAGS.
7701 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7703 # Allow CC to be a program name with arguments.
7704 compiler=$CC
7707 # Check for command to grab the raw symbol name followed by C symbol from nm.
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7709 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7710 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7714 # These are sane defaults that work on at least a few old systems.
7715 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7717 # Character class describing NM global symbol codes.
7718 symcode='[BCDEGRST]'
7720 # Regexp to match symbols that can be accessed directly from C.
7721 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7723 # Define system-specific variables.
7724 case $host_os in
7725 aix*)
7726 symcode='[BCDT]'
7728 cygwin* | mingw* | pw32* | cegcc*)
7729 symcode='[ABCDGISTW]'
7731 hpux*)
7732 if test "$host_cpu" = ia64; then
7733 symcode='[ABCDEGRST]'
7736 irix* | nonstopux*)
7737 symcode='[BCDEGRST]'
7739 osf*)
7740 symcode='[BCDEGQRST]'
7742 solaris*)
7743 symcode='[BCDRT]'
7745 sco3.2v5*)
7746 symcode='[DT]'
7748 sysv4.2uw2*)
7749 symcode='[DT]'
7751 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7752 symcode='[ABDT]'
7754 sysv4)
7755 symcode='[DFNSTU]'
7757 esac
7759 # If we're using GNU nm, then use its standard symbol codes.
7760 case `$NM -V 2>&1` in
7761 *GNU* | *'with BFD'*)
7762 symcode='[ABCDGIRSTW]' ;;
7763 esac
7765 # Transform an extracted symbol line into a proper C declaration.
7766 # Some systems (esp. on ia64) link data and code symbols differently,
7767 # so use this general approach.
7768 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7770 # Transform an extracted symbol line into symbol name and symbol address
7771 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7772 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'"
7774 # Handle CRLF in mingw tool chain
7775 opt_cr=
7776 case $build_os in
7777 mingw*)
7778 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7780 esac
7782 # Try without a prefix underscore, then with it.
7783 for ac_symprfx in "" "_"; do
7785 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7786 symxfrm="\\1 $ac_symprfx\\2 \\2"
7788 # Write the raw and C identifiers.
7789 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7790 # Fake it for dumpbin and say T for any non-static function
7791 # and D for any global variable.
7792 # Also find C++ and __fastcall symbols from MSVC++,
7793 # which start with @ or ?.
7794 lt_cv_sys_global_symbol_pipe="$AWK '"\
7795 " {last_section=section; section=\$ 3};"\
7796 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7797 " \$ 0!~/External *\|/{next};"\
7798 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7799 " {if(hide[section]) next};"\
7800 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7801 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7802 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7803 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7804 " ' prfx=^$ac_symprfx"
7805 else
7806 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7809 # Check to see that the pipe works correctly.
7810 pipe_works=no
7812 rm -f conftest*
7813 cat > conftest.$ac_ext <<_LT_EOF
7814 #ifdef __cplusplus
7815 extern "C" {
7816 #endif
7817 char nm_test_var;
7818 void nm_test_func(void);
7819 void nm_test_func(void){}
7820 #ifdef __cplusplus
7822 #endif
7823 int main(){nm_test_var='a';nm_test_func();return(0);}
7824 _LT_EOF
7826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7827 (eval $ac_compile) 2>&5
7828 ac_status=$?
7829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7830 test $ac_status = 0; }; then
7831 # Now try to grab the symbols.
7832 nlist=conftest.nm
7833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7834 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7835 ac_status=$?
7836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7837 test $ac_status = 0; } && test -s "$nlist"; then
7838 # Try sorting and uniquifying the output.
7839 if sort "$nlist" | uniq > "$nlist"T; then
7840 mv -f "$nlist"T "$nlist"
7841 else
7842 rm -f "$nlist"T
7845 # Make sure that we snagged all the symbols we need.
7846 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7847 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7848 cat <<_LT_EOF > conftest.$ac_ext
7849 #ifdef __cplusplus
7850 extern "C" {
7851 #endif
7853 _LT_EOF
7854 # Now generate the symbol file.
7855 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7857 cat <<_LT_EOF >> conftest.$ac_ext
7859 /* The mapping between symbol names and symbols. */
7860 const struct {
7861 const char *name;
7862 void *address;
7864 lt__PROGRAM__LTX_preloaded_symbols[] =
7866 { "@PROGRAM@", (void *) 0 },
7867 _LT_EOF
7868 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7869 cat <<\_LT_EOF >> conftest.$ac_ext
7870 {0, (void *) 0}
7873 /* This works around a problem in FreeBSD linker */
7874 #ifdef FREEBSD_WORKAROUND
7875 static const void *lt_preloaded_setup() {
7876 return lt__PROGRAM__LTX_preloaded_symbols;
7878 #endif
7880 #ifdef __cplusplus
7882 #endif
7883 _LT_EOF
7884 # Now try linking the two files.
7885 mv conftest.$ac_objext conftstm.$ac_objext
7886 lt_save_LIBS="$LIBS"
7887 lt_save_CFLAGS="$CFLAGS"
7888 LIBS="conftstm.$ac_objext"
7889 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7891 (eval $ac_link) 2>&5
7892 ac_status=$?
7893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7894 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7895 pipe_works=yes
7897 LIBS="$lt_save_LIBS"
7898 CFLAGS="$lt_save_CFLAGS"
7899 else
7900 echo "cannot find nm_test_func in $nlist" >&5
7902 else
7903 echo "cannot find nm_test_var in $nlist" >&5
7905 else
7906 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7908 else
7909 echo "$progname: failed program was:" >&5
7910 cat conftest.$ac_ext >&5
7912 rm -rf conftest* conftst*
7914 # Do not use the global_symbol_pipe unless it works.
7915 if test "$pipe_works" = yes; then
7916 break
7917 else
7918 lt_cv_sys_global_symbol_pipe=
7920 done
7924 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7925 lt_cv_sys_global_symbol_to_cdecl=
7927 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7929 $as_echo "failed" >&6; }
7930 else
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7932 $as_echo "ok" >&6; }
7956 # Check whether --enable-libtool-lock was given.
7957 if test "${enable_libtool_lock+set}" = set; then :
7958 enableval=$enable_libtool_lock;
7961 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7963 # Some flags need to be propagated to the compiler or linker for good
7964 # libtool support.
7965 case $host in
7966 ia64-*-hpux*)
7967 # Find out which ABI we are using.
7968 echo 'int i;' > conftest.$ac_ext
7969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7970 (eval $ac_compile) 2>&5
7971 ac_status=$?
7972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7973 test $ac_status = 0; }; then
7974 case `/usr/bin/file conftest.$ac_objext` in
7975 *ELF-32*)
7976 HPUX_IA64_MODE="32"
7978 *ELF-64*)
7979 HPUX_IA64_MODE="64"
7981 esac
7983 rm -rf conftest*
7985 *-*-irix6*)
7986 # Find out which ABI we are using.
7987 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7989 (eval $ac_compile) 2>&5
7990 ac_status=$?
7991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7992 test $ac_status = 0; }; then
7993 if test "$lt_cv_prog_gnu_ld" = yes; then
7994 case `/usr/bin/file conftest.$ac_objext` in
7995 *32-bit*)
7996 LD="${LD-ld} -melf32bsmip"
7998 *N32*)
7999 LD="${LD-ld} -melf32bmipn32"
8001 *64-bit*)
8002 LD="${LD-ld} -melf64bmip"
8004 esac
8005 else
8006 case `/usr/bin/file conftest.$ac_objext` in
8007 *32-bit*)
8008 LD="${LD-ld} -32"
8010 *N32*)
8011 LD="${LD-ld} -n32"
8013 *64-bit*)
8014 LD="${LD-ld} -64"
8016 esac
8019 rm -rf conftest*
8022 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8023 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8024 # Find out which ABI we are using.
8025 echo 'int i;' > conftest.$ac_ext
8026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8027 (eval $ac_compile) 2>&5
8028 ac_status=$?
8029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8030 test $ac_status = 0; }; then
8031 case `/usr/bin/file conftest.o` in
8032 *32-bit*)
8033 case $host in
8034 x86_64-*kfreebsd*-gnu)
8035 LD="${LD-ld} -m elf_i386_fbsd"
8037 x86_64-*linux*)
8038 case `/usr/bin/file conftest.o` in
8039 *x86-64*)
8040 LD="${LD-ld} -m elf32_x86_64"
8043 LD="${LD-ld} -m elf_i386"
8045 esac
8047 powerpc64le-*linux*)
8048 LD="${LD-ld} -m elf32lppclinux"
8050 powerpc64-*linux*)
8051 LD="${LD-ld} -m elf32ppclinux"
8053 s390x-*linux*)
8054 LD="${LD-ld} -m elf_s390"
8056 sparc64-*linux*)
8057 LD="${LD-ld} -m elf32_sparc"
8059 esac
8061 *64-bit*)
8062 case $host in
8063 x86_64-*kfreebsd*-gnu)
8064 LD="${LD-ld} -m elf_x86_64_fbsd"
8066 x86_64-*linux*)
8067 LD="${LD-ld} -m elf_x86_64"
8069 powerpcle-*linux*)
8070 LD="${LD-ld} -m elf64lppc"
8072 powerpc-*linux*)
8073 LD="${LD-ld} -m elf64ppc"
8075 s390*-*linux*|s390*-*tpf*)
8076 LD="${LD-ld} -m elf64_s390"
8078 sparc*-*linux*)
8079 LD="${LD-ld} -m elf64_sparc"
8081 esac
8083 esac
8085 rm -rf conftest*
8088 *-*-sco3.2v5*)
8089 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8090 SAVE_CFLAGS="$CFLAGS"
8091 CFLAGS="$CFLAGS -belf"
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8093 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8094 if ${lt_cv_cc_needs_belf+:} false; then :
8095 $as_echo_n "(cached) " >&6
8096 else
8097 ac_ext=c
8098 ac_cpp='$CPP $CPPFLAGS'
8099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8107 main ()
8111 return 0;
8113 _ACEOF
8114 if ac_fn_c_try_link "$LINENO"; then :
8115 lt_cv_cc_needs_belf=yes
8116 else
8117 lt_cv_cc_needs_belf=no
8119 rm -f core conftest.err conftest.$ac_objext \
8120 conftest$ac_exeext conftest.$ac_ext
8121 ac_ext=c
8122 ac_cpp='$CPP $CPPFLAGS'
8123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8129 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8130 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8131 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8132 CFLAGS="$SAVE_CFLAGS"
8135 sparc*-*solaris*)
8136 # Find out which ABI we are using.
8137 echo 'int i;' > conftest.$ac_ext
8138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8139 (eval $ac_compile) 2>&5
8140 ac_status=$?
8141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8142 test $ac_status = 0; }; then
8143 case `/usr/bin/file conftest.o` in
8144 *64-bit*)
8145 case $lt_cv_prog_gnu_ld in
8146 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8148 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8149 LD="${LD-ld} -64"
8152 esac
8154 esac
8156 rm -rf conftest*
8158 esac
8160 need_locks="$enable_libtool_lock"
8163 case $host_os in
8164 rhapsody* | darwin*)
8165 if test -n "$ac_tool_prefix"; then
8166 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8167 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169 $as_echo_n "checking for $ac_word... " >&6; }
8170 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8171 $as_echo_n "(cached) " >&6
8172 else
8173 if test -n "$DSYMUTIL"; then
8174 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8175 else
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177 for as_dir in $PATH
8179 IFS=$as_save_IFS
8180 test -z "$as_dir" && as_dir=.
8181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8183 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8185 break 2
8187 done
8188 done
8189 IFS=$as_save_IFS
8193 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8194 if test -n "$DSYMUTIL"; then
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8196 $as_echo "$DSYMUTIL" >&6; }
8197 else
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8204 if test -z "$ac_cv_prog_DSYMUTIL"; then
8205 ac_ct_DSYMUTIL=$DSYMUTIL
8206 # Extract the first word of "dsymutil", so it can be a program name with args.
8207 set dummy dsymutil; ac_word=$2
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8209 $as_echo_n "checking for $ac_word... " >&6; }
8210 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8211 $as_echo_n "(cached) " >&6
8212 else
8213 if test -n "$ac_ct_DSYMUTIL"; then
8214 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8215 else
8216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217 for as_dir in $PATH
8219 IFS=$as_save_IFS
8220 test -z "$as_dir" && as_dir=.
8221 for ac_exec_ext in '' $ac_executable_extensions; do
8222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8223 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8225 break 2
8227 done
8228 done
8229 IFS=$as_save_IFS
8233 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8234 if test -n "$ac_ct_DSYMUTIL"; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8236 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8237 else
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8242 if test "x$ac_ct_DSYMUTIL" = x; then
8243 DSYMUTIL=":"
8244 else
8245 case $cross_compiling:$ac_tool_warned in
8246 yes:)
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8249 ac_tool_warned=yes ;;
8250 esac
8251 DSYMUTIL=$ac_ct_DSYMUTIL
8253 else
8254 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8257 if test -n "$ac_tool_prefix"; then
8258 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8259 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261 $as_echo_n "checking for $ac_word... " >&6; }
8262 if ${ac_cv_prog_NMEDIT+:} false; then :
8263 $as_echo_n "(cached) " >&6
8264 else
8265 if test -n "$NMEDIT"; then
8266 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8267 else
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 for as_dir in $PATH
8271 IFS=$as_save_IFS
8272 test -z "$as_dir" && as_dir=.
8273 for ac_exec_ext in '' $ac_executable_extensions; do
8274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8275 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8277 break 2
8279 done
8280 done
8281 IFS=$as_save_IFS
8285 NMEDIT=$ac_cv_prog_NMEDIT
8286 if test -n "$NMEDIT"; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8288 $as_echo "$NMEDIT" >&6; }
8289 else
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }
8296 if test -z "$ac_cv_prog_NMEDIT"; then
8297 ac_ct_NMEDIT=$NMEDIT
8298 # Extract the first word of "nmedit", so it can be a program name with args.
8299 set dummy nmedit; ac_word=$2
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 $as_echo_n "checking for $ac_word... " >&6; }
8302 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8303 $as_echo_n "(cached) " >&6
8304 else
8305 if test -n "$ac_ct_NMEDIT"; then
8306 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8307 else
8308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309 for as_dir in $PATH
8311 IFS=$as_save_IFS
8312 test -z "$as_dir" && as_dir=.
8313 for ac_exec_ext in '' $ac_executable_extensions; do
8314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8315 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8317 break 2
8319 done
8320 done
8321 IFS=$as_save_IFS
8325 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8326 if test -n "$ac_ct_NMEDIT"; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8328 $as_echo "$ac_ct_NMEDIT" >&6; }
8329 else
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }
8334 if test "x$ac_ct_NMEDIT" = x; then
8335 NMEDIT=":"
8336 else
8337 case $cross_compiling:$ac_tool_warned in
8338 yes:)
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8341 ac_tool_warned=yes ;;
8342 esac
8343 NMEDIT=$ac_ct_NMEDIT
8345 else
8346 NMEDIT="$ac_cv_prog_NMEDIT"
8349 if test -n "$ac_tool_prefix"; then
8350 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8351 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353 $as_echo_n "checking for $ac_word... " >&6; }
8354 if ${ac_cv_prog_LIPO+:} false; then :
8355 $as_echo_n "(cached) " >&6
8356 else
8357 if test -n "$LIPO"; then
8358 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8359 else
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 for as_dir in $PATH
8363 IFS=$as_save_IFS
8364 test -z "$as_dir" && as_dir=.
8365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8367 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8369 break 2
8371 done
8372 done
8373 IFS=$as_save_IFS
8377 LIPO=$ac_cv_prog_LIPO
8378 if test -n "$LIPO"; then
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8380 $as_echo "$LIPO" >&6; }
8381 else
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383 $as_echo "no" >&6; }
8388 if test -z "$ac_cv_prog_LIPO"; then
8389 ac_ct_LIPO=$LIPO
8390 # Extract the first word of "lipo", so it can be a program name with args.
8391 set dummy lipo; ac_word=$2
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8393 $as_echo_n "checking for $ac_word... " >&6; }
8394 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8395 $as_echo_n "(cached) " >&6
8396 else
8397 if test -n "$ac_ct_LIPO"; then
8398 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8399 else
8400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8401 for as_dir in $PATH
8403 IFS=$as_save_IFS
8404 test -z "$as_dir" && as_dir=.
8405 for ac_exec_ext in '' $ac_executable_extensions; do
8406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8407 ac_cv_prog_ac_ct_LIPO="lipo"
8408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8409 break 2
8411 done
8412 done
8413 IFS=$as_save_IFS
8417 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8418 if test -n "$ac_ct_LIPO"; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8420 $as_echo "$ac_ct_LIPO" >&6; }
8421 else
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8423 $as_echo "no" >&6; }
8426 if test "x$ac_ct_LIPO" = x; then
8427 LIPO=":"
8428 else
8429 case $cross_compiling:$ac_tool_warned in
8430 yes:)
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8433 ac_tool_warned=yes ;;
8434 esac
8435 LIPO=$ac_ct_LIPO
8437 else
8438 LIPO="$ac_cv_prog_LIPO"
8441 if test -n "$ac_tool_prefix"; then
8442 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8443 set dummy ${ac_tool_prefix}otool; ac_word=$2
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8445 $as_echo_n "checking for $ac_word... " >&6; }
8446 if ${ac_cv_prog_OTOOL+:} false; then :
8447 $as_echo_n "(cached) " >&6
8448 else
8449 if test -n "$OTOOL"; then
8450 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8451 else
8452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453 for as_dir in $PATH
8455 IFS=$as_save_IFS
8456 test -z "$as_dir" && as_dir=.
8457 for ac_exec_ext in '' $ac_executable_extensions; do
8458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8459 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8461 break 2
8463 done
8464 done
8465 IFS=$as_save_IFS
8469 OTOOL=$ac_cv_prog_OTOOL
8470 if test -n "$OTOOL"; then
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8472 $as_echo "$OTOOL" >&6; }
8473 else
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475 $as_echo "no" >&6; }
8480 if test -z "$ac_cv_prog_OTOOL"; then
8481 ac_ct_OTOOL=$OTOOL
8482 # Extract the first word of "otool", so it can be a program name with args.
8483 set dummy otool; ac_word=$2
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8485 $as_echo_n "checking for $ac_word... " >&6; }
8486 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8487 $as_echo_n "(cached) " >&6
8488 else
8489 if test -n "$ac_ct_OTOOL"; then
8490 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8491 else
8492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493 for as_dir in $PATH
8495 IFS=$as_save_IFS
8496 test -z "$as_dir" && as_dir=.
8497 for ac_exec_ext in '' $ac_executable_extensions; do
8498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8499 ac_cv_prog_ac_ct_OTOOL="otool"
8500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8501 break 2
8503 done
8504 done
8505 IFS=$as_save_IFS
8509 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8510 if test -n "$ac_ct_OTOOL"; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8512 $as_echo "$ac_ct_OTOOL" >&6; }
8513 else
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515 $as_echo "no" >&6; }
8518 if test "x$ac_ct_OTOOL" = x; then
8519 OTOOL=":"
8520 else
8521 case $cross_compiling:$ac_tool_warned in
8522 yes:)
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8525 ac_tool_warned=yes ;;
8526 esac
8527 OTOOL=$ac_ct_OTOOL
8529 else
8530 OTOOL="$ac_cv_prog_OTOOL"
8533 if test -n "$ac_tool_prefix"; then
8534 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8535 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537 $as_echo_n "checking for $ac_word... " >&6; }
8538 if ${ac_cv_prog_OTOOL64+:} false; then :
8539 $as_echo_n "(cached) " >&6
8540 else
8541 if test -n "$OTOOL64"; then
8542 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8543 else
8544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545 for as_dir in $PATH
8547 IFS=$as_save_IFS
8548 test -z "$as_dir" && as_dir=.
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8551 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8553 break 2
8555 done
8556 done
8557 IFS=$as_save_IFS
8561 OTOOL64=$ac_cv_prog_OTOOL64
8562 if test -n "$OTOOL64"; then
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8564 $as_echo "$OTOOL64" >&6; }
8565 else
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567 $as_echo "no" >&6; }
8572 if test -z "$ac_cv_prog_OTOOL64"; then
8573 ac_ct_OTOOL64=$OTOOL64
8574 # Extract the first word of "otool64", so it can be a program name with args.
8575 set dummy otool64; ac_word=$2
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8577 $as_echo_n "checking for $ac_word... " >&6; }
8578 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8579 $as_echo_n "(cached) " >&6
8580 else
8581 if test -n "$ac_ct_OTOOL64"; then
8582 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8583 else
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 for as_dir in $PATH
8587 IFS=$as_save_IFS
8588 test -z "$as_dir" && as_dir=.
8589 for ac_exec_ext in '' $ac_executable_extensions; do
8590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8591 ac_cv_prog_ac_ct_OTOOL64="otool64"
8592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8593 break 2
8595 done
8596 done
8597 IFS=$as_save_IFS
8601 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8602 if test -n "$ac_ct_OTOOL64"; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8604 $as_echo "$ac_ct_OTOOL64" >&6; }
8605 else
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 $as_echo "no" >&6; }
8610 if test "x$ac_ct_OTOOL64" = x; then
8611 OTOOL64=":"
8612 else
8613 case $cross_compiling:$ac_tool_warned in
8614 yes:)
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8617 ac_tool_warned=yes ;;
8618 esac
8619 OTOOL64=$ac_ct_OTOOL64
8621 else
8622 OTOOL64="$ac_cv_prog_OTOOL64"
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8652 $as_echo_n "checking for -single_module linker flag... " >&6; }
8653 if ${lt_cv_apple_cc_single_mod+:} false; then :
8654 $as_echo_n "(cached) " >&6
8655 else
8656 lt_cv_apple_cc_single_mod=no
8657 if test -z "${LT_MULTI_MODULE}"; then
8658 # By default we will add the -single_module flag. You can override
8659 # by either setting the environment variable LT_MULTI_MODULE
8660 # non-empty at configure time, or by adding -multi_module to the
8661 # link flags.
8662 rm -rf libconftest.dylib*
8663 echo "int foo(void){return 1;}" > conftest.c
8664 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8665 -dynamiclib -Wl,-single_module conftest.c" >&5
8666 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8667 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8668 _lt_result=$?
8669 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8670 lt_cv_apple_cc_single_mod=yes
8671 else
8672 cat conftest.err >&5
8674 rm -rf libconftest.dylib*
8675 rm -f conftest.*
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8679 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8681 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8682 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 lt_cv_ld_exported_symbols_list=no
8686 save_LDFLAGS=$LDFLAGS
8687 echo "_main" > conftest.sym
8688 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h. */
8693 main ()
8697 return 0;
8699 _ACEOF
8700 if ac_fn_c_try_link "$LINENO"; then :
8701 lt_cv_ld_exported_symbols_list=yes
8702 else
8703 lt_cv_ld_exported_symbols_list=no
8705 rm -f core conftest.err conftest.$ac_objext \
8706 conftest$ac_exeext conftest.$ac_ext
8707 LDFLAGS="$save_LDFLAGS"
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8711 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8713 $as_echo_n "checking for -force_load linker flag... " >&6; }
8714 if ${lt_cv_ld_force_load+:} false; then :
8715 $as_echo_n "(cached) " >&6
8716 else
8717 lt_cv_ld_force_load=no
8718 cat > conftest.c << _LT_EOF
8719 int forced_loaded() { return 2;}
8720 _LT_EOF
8721 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8722 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8723 echo "$AR cru libconftest.a conftest.o" >&5
8724 $AR cru libconftest.a conftest.o 2>&5
8725 cat > conftest.c << _LT_EOF
8726 int main() { return 0;}
8727 _LT_EOF
8728 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8729 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8730 _lt_result=$?
8731 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8732 lt_cv_ld_force_load=yes
8733 else
8734 cat conftest.err >&5
8736 rm -f conftest.err libconftest.a conftest conftest.c
8737 rm -rf conftest.dSYM
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8741 $as_echo "$lt_cv_ld_force_load" >&6; }
8742 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8743 # build without first building modern cctools / linker.
8744 case $host_cpu-$host_os in
8745 *-rhapsody* | *-darwin1.[012])
8746 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8747 *-darwin1.*)
8748 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8749 *-darwin*)
8750 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8751 # deployment target is forced to an earlier version.
8752 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8753 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8755 10.[012][,.]*)
8756 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8760 esac
8762 esac
8763 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8764 _lt_dar_single_mod='$single_module'
8766 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8767 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8768 else
8769 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8771 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8772 _lt_dsymutil='~$DSYMUTIL $lib || :'
8773 else
8774 _lt_dsymutil=
8777 esac
8779 for ac_header in dlfcn.h
8780 do :
8781 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8783 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8784 cat >>confdefs.h <<_ACEOF
8785 #define HAVE_DLFCN_H 1
8786 _ACEOF
8790 done
8797 # Set options
8801 enable_dlopen=no
8804 enable_win32_dll=no
8808 # Check whether --enable-static was given.
8809 if test "${enable_static+set}" = set; then :
8810 enableval=$enable_static; p=${PACKAGE-default}
8811 case $enableval in
8812 yes) enable_static=yes ;;
8813 no) enable_static=no ;;
8815 enable_static=no
8816 # Look at the argument we got. We use all the common list separators.
8817 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8818 for pkg in $enableval; do
8819 IFS="$lt_save_ifs"
8820 if test "X$pkg" = "X$p"; then
8821 enable_static=yes
8823 done
8824 IFS="$lt_save_ifs"
8826 esac
8827 else
8828 enable_static=yes
8840 # Check whether --with-pic was given.
8841 if test "${with_pic+set}" = set; then :
8842 withval=$with_pic; pic_mode="$withval"
8843 else
8844 pic_mode=default
8848 test -z "$pic_mode" && pic_mode=default
8856 # Check whether --enable-fast-install was given.
8857 if test "${enable_fast_install+set}" = set; then :
8858 enableval=$enable_fast_install; p=${PACKAGE-default}
8859 case $enableval in
8860 yes) enable_fast_install=yes ;;
8861 no) enable_fast_install=no ;;
8863 enable_fast_install=no
8864 # Look at the argument we got. We use all the common list separators.
8865 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8866 for pkg in $enableval; do
8867 IFS="$lt_save_ifs"
8868 if test "X$pkg" = "X$p"; then
8869 enable_fast_install=yes
8871 done
8872 IFS="$lt_save_ifs"
8874 esac
8875 else
8876 enable_fast_install=yes
8889 # This can be used to rebuild libtool when needed
8890 LIBTOOL_DEPS="$ltmain"
8892 # Always use our own libtool.
8893 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8920 test -z "$LN_S" && LN_S="ln -s"
8935 if test -n "${ZSH_VERSION+set}" ; then
8936 setopt NO_GLOB_SUBST
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8940 $as_echo_n "checking for objdir... " >&6; }
8941 if ${lt_cv_objdir+:} false; then :
8942 $as_echo_n "(cached) " >&6
8943 else
8944 rm -f .libs 2>/dev/null
8945 mkdir .libs 2>/dev/null
8946 if test -d .libs; then
8947 lt_cv_objdir=.libs
8948 else
8949 # MS-DOS does not allow filenames that begin with a dot.
8950 lt_cv_objdir=_libs
8952 rmdir .libs 2>/dev/null
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8955 $as_echo "$lt_cv_objdir" >&6; }
8956 objdir=$lt_cv_objdir
8962 cat >>confdefs.h <<_ACEOF
8963 #define LT_OBJDIR "$lt_cv_objdir/"
8964 _ACEOF
8969 case $host_os in
8970 aix3*)
8971 # AIX sometimes has problems with the GCC collect2 program. For some
8972 # reason, if we set the COLLECT_NAMES environment variable, the problems
8973 # vanish in a puff of smoke.
8974 if test "X${COLLECT_NAMES+set}" != Xset; then
8975 COLLECT_NAMES=
8976 export COLLECT_NAMES
8979 esac
8981 # Global variables:
8982 ofile=libtool
8983 can_build_shared=yes
8985 # All known linkers require a `.a' archive for static linking (except MSVC,
8986 # which needs '.lib').
8987 libext=a
8989 with_gnu_ld="$lt_cv_prog_gnu_ld"
8991 old_CC="$CC"
8992 old_CFLAGS="$CFLAGS"
8994 # Set sane defaults for various variables
8995 test -z "$CC" && CC=cc
8996 test -z "$LTCC" && LTCC=$CC
8997 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8998 test -z "$LD" && LD=ld
8999 test -z "$ac_objext" && ac_objext=o
9001 for cc_temp in $compiler""; do
9002 case $cc_temp in
9003 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9004 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9005 \-*) ;;
9006 *) break;;
9007 esac
9008 done
9009 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9012 # Only perform the check for file, if the check method requires it
9013 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9014 case $deplibs_check_method in
9015 file_magic*)
9016 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9018 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9019 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9020 $as_echo_n "(cached) " >&6
9021 else
9022 case $MAGIC_CMD in
9023 [\\/*] | ?:[\\/]*)
9024 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9027 lt_save_MAGIC_CMD="$MAGIC_CMD"
9028 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9029 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9030 for ac_dir in $ac_dummy; do
9031 IFS="$lt_save_ifs"
9032 test -z "$ac_dir" && ac_dir=.
9033 if test -f $ac_dir/${ac_tool_prefix}file; then
9034 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9035 if test -n "$file_magic_test_file"; then
9036 case $deplibs_check_method in
9037 "file_magic "*)
9038 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9039 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9040 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9041 $EGREP "$file_magic_regex" > /dev/null; then
9043 else
9044 cat <<_LT_EOF 1>&2
9046 *** Warning: the command libtool uses to detect shared libraries,
9047 *** $file_magic_cmd, produces output that libtool cannot recognize.
9048 *** The result is that libtool may fail to recognize shared libraries
9049 *** as such. This will affect the creation of libtool libraries that
9050 *** depend on shared libraries, but programs linked with such libtool
9051 *** libraries will work regardless of this problem. Nevertheless, you
9052 *** may want to report the problem to your system manager and/or to
9053 *** bug-libtool@gnu.org
9055 _LT_EOF
9056 fi ;;
9057 esac
9059 break
9061 done
9062 IFS="$lt_save_ifs"
9063 MAGIC_CMD="$lt_save_MAGIC_CMD"
9065 esac
9068 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9069 if test -n "$MAGIC_CMD"; then
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9071 $as_echo "$MAGIC_CMD" >&6; }
9072 else
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074 $as_echo "no" >&6; }
9081 if test -z "$lt_cv_path_MAGIC_CMD"; then
9082 if test -n "$ac_tool_prefix"; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9084 $as_echo_n "checking for file... " >&6; }
9085 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9086 $as_echo_n "(cached) " >&6
9087 else
9088 case $MAGIC_CMD in
9089 [\\/*] | ?:[\\/]*)
9090 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9093 lt_save_MAGIC_CMD="$MAGIC_CMD"
9094 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9095 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9096 for ac_dir in $ac_dummy; do
9097 IFS="$lt_save_ifs"
9098 test -z "$ac_dir" && ac_dir=.
9099 if test -f $ac_dir/file; then
9100 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9101 if test -n "$file_magic_test_file"; then
9102 case $deplibs_check_method in
9103 "file_magic "*)
9104 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9105 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9106 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9107 $EGREP "$file_magic_regex" > /dev/null; then
9109 else
9110 cat <<_LT_EOF 1>&2
9112 *** Warning: the command libtool uses to detect shared libraries,
9113 *** $file_magic_cmd, produces output that libtool cannot recognize.
9114 *** The result is that libtool may fail to recognize shared libraries
9115 *** as such. This will affect the creation of libtool libraries that
9116 *** depend on shared libraries, but programs linked with such libtool
9117 *** libraries will work regardless of this problem. Nevertheless, you
9118 *** may want to report the problem to your system manager and/or to
9119 *** bug-libtool@gnu.org
9121 _LT_EOF
9122 fi ;;
9123 esac
9125 break
9127 done
9128 IFS="$lt_save_ifs"
9129 MAGIC_CMD="$lt_save_MAGIC_CMD"
9131 esac
9134 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9135 if test -n "$MAGIC_CMD"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9137 $as_echo "$MAGIC_CMD" >&6; }
9138 else
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9144 else
9145 MAGIC_CMD=:
9151 esac
9153 # Use C for the default configuration in the libtool script
9155 lt_save_CC="$CC"
9156 ac_ext=c
9157 ac_cpp='$CPP $CPPFLAGS'
9158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9163 # Source file extension for C test sources.
9164 ac_ext=c
9166 # Object file extension for compiled C test sources.
9167 objext=o
9168 objext=$objext
9170 # Code to be used in simple compile tests
9171 lt_simple_compile_test_code="int some_variable = 0;"
9173 # Code to be used in simple link tests
9174 lt_simple_link_test_code='int main(){return(0);}'
9182 # If no C compiler was specified, use CC.
9183 LTCC=${LTCC-"$CC"}
9185 # If no C compiler flags were specified, use CFLAGS.
9186 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9188 # Allow CC to be a program name with arguments.
9189 compiler=$CC
9191 # Save the default compiler, since it gets overwritten when the other
9192 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9193 compiler_DEFAULT=$CC
9195 # save warnings/boilerplate of simple test code
9196 ac_outfile=conftest.$ac_objext
9197 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9198 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9199 _lt_compiler_boilerplate=`cat conftest.err`
9200 $RM conftest*
9202 ac_outfile=conftest.$ac_objext
9203 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9204 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9205 _lt_linker_boilerplate=`cat conftest.err`
9206 $RM -r conftest*
9209 ## CAVEAT EMPTOR:
9210 ## There is no encapsulation within the following macros, do not change
9211 ## the running order or otherwise move them around unless you know exactly
9212 ## what you are doing...
9213 if test -n "$compiler"; then
9215 lt_prog_compiler_no_builtin_flag=
9217 if test "$GCC" = yes; then
9218 case $cc_basename in
9219 nvcc*)
9220 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9222 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9223 esac
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9226 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9227 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 lt_cv_prog_compiler_rtti_exceptions=no
9231 ac_outfile=conftest.$ac_objext
9232 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9233 lt_compiler_flag="-fno-rtti -fno-exceptions"
9234 # Insert the option either (1) after the last *FLAGS variable, or
9235 # (2) before a word containing "conftest.", or (3) at the end.
9236 # Note that $ac_compile itself does not contain backslashes and begins
9237 # with a dollar sign (not a hyphen), so the echo should work correctly.
9238 # The option is referenced via a variable to avoid confusing sed.
9239 lt_compile=`echo "$ac_compile" | $SED \
9240 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9241 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9242 -e 's:$: $lt_compiler_flag:'`
9243 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9244 (eval "$lt_compile" 2>conftest.err)
9245 ac_status=$?
9246 cat conftest.err >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 if (exit $ac_status) && test -s "$ac_outfile"; then
9249 # The compiler can only warn and ignore the option if not recognized
9250 # So say no if there are warnings other than the usual output.
9251 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9252 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9253 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9254 lt_cv_prog_compiler_rtti_exceptions=yes
9257 $RM conftest*
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9261 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9263 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9264 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9265 else
9276 lt_prog_compiler_wl=
9277 lt_prog_compiler_pic=
9278 lt_prog_compiler_static=
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9281 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9283 if test "$GCC" = yes; then
9284 lt_prog_compiler_wl='-Wl,'
9285 lt_prog_compiler_static='-static'
9287 case $host_os in
9288 aix*)
9289 # All AIX code is PIC.
9290 if test "$host_cpu" = ia64; then
9291 # AIX 5 now supports IA64 processor
9292 lt_prog_compiler_static='-Bstatic'
9294 lt_prog_compiler_pic='-fPIC'
9297 amigaos*)
9298 case $host_cpu in
9299 powerpc)
9300 # see comment about AmigaOS4 .so support
9301 lt_prog_compiler_pic='-fPIC'
9303 m68k)
9304 # FIXME: we need at least 68020 code to build shared libraries, but
9305 # adding the `-m68020' flag to GCC prevents building anything better,
9306 # like `-m68040'.
9307 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9309 esac
9312 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9313 # PIC is the default for these OSes.
9316 mingw* | cygwin* | pw32* | os2* | cegcc*)
9317 # This hack is so that the source file can tell whether it is being
9318 # built for inclusion in a dll (and should export symbols for example).
9319 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9320 # (--disable-auto-import) libraries
9321 lt_prog_compiler_pic='-DDLL_EXPORT'
9324 darwin* | rhapsody*)
9325 # PIC is the default on this platform
9326 # Common symbols not allowed in MH_DYLIB files
9327 lt_prog_compiler_pic='-fno-common'
9330 haiku*)
9331 # PIC is the default for Haiku.
9332 # The "-static" flag exists, but is broken.
9333 lt_prog_compiler_static=
9336 hpux*)
9337 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9338 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9339 # sets the default TLS model and affects inlining.
9340 case $host_cpu in
9341 hppa*64*)
9342 # +Z the default
9345 lt_prog_compiler_pic='-fPIC'
9347 esac
9350 interix[3-9]*)
9351 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9352 # Instead, we relocate shared libraries at runtime.
9355 msdosdjgpp*)
9356 # Just because we use GCC doesn't mean we suddenly get shared libraries
9357 # on systems that don't support them.
9358 lt_prog_compiler_can_build_shared=no
9359 enable_shared=no
9362 *nto* | *qnx*)
9363 # QNX uses GNU C++, but need to define -shared option too, otherwise
9364 # it will coredump.
9365 lt_prog_compiler_pic='-fPIC -shared'
9368 sysv4*MP*)
9369 if test -d /usr/nec; then
9370 lt_prog_compiler_pic=-Kconform_pic
9375 lt_prog_compiler_pic='-fPIC'
9377 esac
9379 case $cc_basename in
9380 nvcc*) # Cuda Compiler Driver 2.2
9381 lt_prog_compiler_wl='-Xlinker '
9382 lt_prog_compiler_pic='-Xcompiler -fPIC'
9384 esac
9385 else
9386 # PORTME Check for flag to pass linker flags through the system compiler.
9387 case $host_os in
9388 aix*)
9389 lt_prog_compiler_wl='-Wl,'
9390 if test "$host_cpu" = ia64; then
9391 # AIX 5 now supports IA64 processor
9392 lt_prog_compiler_static='-Bstatic'
9393 else
9394 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9398 mingw* | cygwin* | pw32* | os2* | cegcc*)
9399 # This hack is so that the source file can tell whether it is being
9400 # built for inclusion in a dll (and should export symbols for example).
9401 lt_prog_compiler_pic='-DDLL_EXPORT'
9404 hpux9* | hpux10* | hpux11*)
9405 lt_prog_compiler_wl='-Wl,'
9406 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9407 # not for PA HP-UX.
9408 case $host_cpu in
9409 hppa*64*|ia64*)
9410 # +Z the default
9413 lt_prog_compiler_pic='+Z'
9415 esac
9416 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9417 lt_prog_compiler_static='${wl}-a ${wl}archive'
9420 irix5* | irix6* | nonstopux*)
9421 lt_prog_compiler_wl='-Wl,'
9422 # PIC (with -KPIC) is the default.
9423 lt_prog_compiler_static='-non_shared'
9426 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9427 case $cc_basename in
9428 # old Intel for x86_64 which still supported -KPIC.
9429 ecc*)
9430 lt_prog_compiler_wl='-Wl,'
9431 lt_prog_compiler_pic='-KPIC'
9432 lt_prog_compiler_static='-static'
9434 # icc used to be incompatible with GCC.
9435 # ICC 10 doesn't accept -KPIC any more.
9436 icc* | ifort*)
9437 lt_prog_compiler_wl='-Wl,'
9438 lt_prog_compiler_pic='-fPIC'
9439 lt_prog_compiler_static='-static'
9441 # Lahey Fortran 8.1.
9442 lf95*)
9443 lt_prog_compiler_wl='-Wl,'
9444 lt_prog_compiler_pic='--shared'
9445 lt_prog_compiler_static='--static'
9447 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9448 # Portland Group compilers (*not* the Pentium gcc compiler,
9449 # which looks to be a dead project)
9450 lt_prog_compiler_wl='-Wl,'
9451 lt_prog_compiler_pic='-fpic'
9452 lt_prog_compiler_static='-Bstatic'
9454 ccc*)
9455 lt_prog_compiler_wl='-Wl,'
9456 # All Alpha code is PIC.
9457 lt_prog_compiler_static='-non_shared'
9459 xl* | bgxl* | bgf* | mpixl*)
9460 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9461 lt_prog_compiler_wl='-Wl,'
9462 lt_prog_compiler_pic='-qpic'
9463 lt_prog_compiler_static='-qstaticlink'
9466 case `$CC -V 2>&1 | sed 5q` in
9467 *Sun\ F* | *Sun*Fortran*)
9468 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9469 lt_prog_compiler_pic='-KPIC'
9470 lt_prog_compiler_static='-Bstatic'
9471 lt_prog_compiler_wl=''
9473 *Sun\ C*)
9474 # Sun C 5.9
9475 lt_prog_compiler_pic='-KPIC'
9476 lt_prog_compiler_static='-Bstatic'
9477 lt_prog_compiler_wl='-Wl,'
9479 esac
9481 esac
9484 newsos6)
9485 lt_prog_compiler_pic='-KPIC'
9486 lt_prog_compiler_static='-Bstatic'
9489 *nto* | *qnx*)
9490 # QNX uses GNU C++, but need to define -shared option too, otherwise
9491 # it will coredump.
9492 lt_prog_compiler_pic='-fPIC -shared'
9495 osf3* | osf4* | osf5*)
9496 lt_prog_compiler_wl='-Wl,'
9497 # All OSF/1 code is PIC.
9498 lt_prog_compiler_static='-non_shared'
9501 rdos*)
9502 lt_prog_compiler_static='-non_shared'
9505 solaris*)
9506 lt_prog_compiler_pic='-KPIC'
9507 lt_prog_compiler_static='-Bstatic'
9508 case $cc_basename in
9509 f77* | f90* | f95*)
9510 lt_prog_compiler_wl='-Qoption ld ';;
9512 lt_prog_compiler_wl='-Wl,';;
9513 esac
9516 sunos4*)
9517 lt_prog_compiler_wl='-Qoption ld '
9518 lt_prog_compiler_pic='-PIC'
9519 lt_prog_compiler_static='-Bstatic'
9522 sysv4 | sysv4.2uw2* | sysv4.3*)
9523 lt_prog_compiler_wl='-Wl,'
9524 lt_prog_compiler_pic='-KPIC'
9525 lt_prog_compiler_static='-Bstatic'
9528 sysv4*MP*)
9529 if test -d /usr/nec ;then
9530 lt_prog_compiler_pic='-Kconform_pic'
9531 lt_prog_compiler_static='-Bstatic'
9535 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9536 lt_prog_compiler_wl='-Wl,'
9537 lt_prog_compiler_pic='-KPIC'
9538 lt_prog_compiler_static='-Bstatic'
9541 unicos*)
9542 lt_prog_compiler_wl='-Wl,'
9543 lt_prog_compiler_can_build_shared=no
9546 uts4*)
9547 lt_prog_compiler_pic='-pic'
9548 lt_prog_compiler_static='-Bstatic'
9552 lt_prog_compiler_can_build_shared=no
9554 esac
9557 case $host_os in
9558 # For platforms which do not support PIC, -DPIC is meaningless:
9559 *djgpp*)
9560 lt_prog_compiler_pic=
9563 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9565 esac
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9567 $as_echo "$lt_prog_compiler_pic" >&6; }
9575 # Check to make sure the PIC flag actually works.
9577 if test -n "$lt_prog_compiler_pic"; then
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9579 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9580 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9581 $as_echo_n "(cached) " >&6
9582 else
9583 lt_cv_prog_compiler_pic_works=no
9584 ac_outfile=conftest.$ac_objext
9585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9586 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9587 # Insert the option either (1) after the last *FLAGS variable, or
9588 # (2) before a word containing "conftest.", or (3) at the end.
9589 # Note that $ac_compile itself does not contain backslashes and begins
9590 # with a dollar sign (not a hyphen), so the echo should work correctly.
9591 # The option is referenced via a variable to avoid confusing sed.
9592 lt_compile=`echo "$ac_compile" | $SED \
9593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9595 -e 's:$: $lt_compiler_flag:'`
9596 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9597 (eval "$lt_compile" 2>conftest.err)
9598 ac_status=$?
9599 cat conftest.err >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 if (exit $ac_status) && test -s "$ac_outfile"; then
9602 # The compiler can only warn and ignore the option if not recognized
9603 # So say no if there are warnings other than the usual output.
9604 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9605 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9606 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9607 lt_cv_prog_compiler_pic_works=yes
9610 $RM conftest*
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9614 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9616 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9617 case $lt_prog_compiler_pic in
9618 "" | " "*) ;;
9619 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9620 esac
9621 else
9622 lt_prog_compiler_pic=
9623 lt_prog_compiler_can_build_shared=no
9634 # Check to make sure the static flag actually works.
9636 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9638 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9639 if ${lt_cv_prog_compiler_static_works+:} false; then :
9640 $as_echo_n "(cached) " >&6
9641 else
9642 lt_cv_prog_compiler_static_works=no
9643 save_LDFLAGS="$LDFLAGS"
9644 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9645 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9646 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9647 # The linker can only warn and ignore the option if not recognized
9648 # So say no if there are warnings
9649 if test -s conftest.err; then
9650 # Append any errors to the config.log.
9651 cat conftest.err 1>&5
9652 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9654 if diff conftest.exp conftest.er2 >/dev/null; then
9655 lt_cv_prog_compiler_static_works=yes
9657 else
9658 lt_cv_prog_compiler_static_works=yes
9661 $RM -r conftest*
9662 LDFLAGS="$save_LDFLAGS"
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9666 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9668 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9670 else
9671 lt_prog_compiler_static=
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9681 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9682 if ${lt_cv_prog_compiler_c_o+:} false; then :
9683 $as_echo_n "(cached) " >&6
9684 else
9685 lt_cv_prog_compiler_c_o=no
9686 $RM -r conftest 2>/dev/null
9687 mkdir conftest
9688 cd conftest
9689 mkdir out
9690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9692 lt_compiler_flag="-o out/conftest2.$ac_objext"
9693 # Insert the option either (1) after the last *FLAGS variable, or
9694 # (2) before a word containing "conftest.", or (3) at the end.
9695 # Note that $ac_compile itself does not contain backslashes and begins
9696 # with a dollar sign (not a hyphen), so the echo should work correctly.
9697 lt_compile=`echo "$ac_compile" | $SED \
9698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9700 -e 's:$: $lt_compiler_flag:'`
9701 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9702 (eval "$lt_compile" 2>out/conftest.err)
9703 ac_status=$?
9704 cat out/conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9707 then
9708 # The compiler can only warn and ignore the option if not recognized
9709 # So say no if there are warnings
9710 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9711 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9712 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9713 lt_cv_prog_compiler_c_o=yes
9716 chmod u+w . 2>&5
9717 $RM conftest*
9718 # SGI C++ compiler will create directory out/ii_files/ for
9719 # template instantiation
9720 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9721 $RM out/* && rmdir out
9722 cd ..
9723 $RM -r conftest
9724 $RM conftest*
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9728 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9736 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9737 if ${lt_cv_prog_compiler_c_o+:} false; then :
9738 $as_echo_n "(cached) " >&6
9739 else
9740 lt_cv_prog_compiler_c_o=no
9741 $RM -r conftest 2>/dev/null
9742 mkdir conftest
9743 cd conftest
9744 mkdir out
9745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9747 lt_compiler_flag="-o out/conftest2.$ac_objext"
9748 # Insert the option either (1) after the last *FLAGS variable, or
9749 # (2) before a word containing "conftest.", or (3) at the end.
9750 # Note that $ac_compile itself does not contain backslashes and begins
9751 # with a dollar sign (not a hyphen), so the echo should work correctly.
9752 lt_compile=`echo "$ac_compile" | $SED \
9753 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9755 -e 's:$: $lt_compiler_flag:'`
9756 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9757 (eval "$lt_compile" 2>out/conftest.err)
9758 ac_status=$?
9759 cat out/conftest.err >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9762 then
9763 # The compiler can only warn and ignore the option if not recognized
9764 # So say no if there are warnings
9765 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9766 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9767 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9768 lt_cv_prog_compiler_c_o=yes
9771 chmod u+w . 2>&5
9772 $RM conftest*
9773 # SGI C++ compiler will create directory out/ii_files/ for
9774 # template instantiation
9775 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9776 $RM out/* && rmdir out
9777 cd ..
9778 $RM -r conftest
9779 $RM conftest*
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9783 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9788 hard_links="nottested"
9789 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9790 # do not overwrite the value of need_locks provided by the user
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9792 $as_echo_n "checking if we can lock with hard links... " >&6; }
9793 hard_links=yes
9794 $RM conftest*
9795 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9796 touch conftest.a
9797 ln conftest.a conftest.b 2>&5 || hard_links=no
9798 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9800 $as_echo "$hard_links" >&6; }
9801 if test "$hard_links" = no; then
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9803 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9804 need_locks=warn
9806 else
9807 need_locks=no
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9816 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9818 runpath_var=
9819 allow_undefined_flag=
9820 always_export_symbols=no
9821 archive_cmds=
9822 archive_expsym_cmds=
9823 compiler_needs_object=no
9824 enable_shared_with_static_runtimes=no
9825 export_dynamic_flag_spec=
9826 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9827 hardcode_automatic=no
9828 hardcode_direct=no
9829 hardcode_direct_absolute=no
9830 hardcode_libdir_flag_spec=
9831 hardcode_libdir_flag_spec_ld=
9832 hardcode_libdir_separator=
9833 hardcode_minus_L=no
9834 hardcode_shlibpath_var=unsupported
9835 inherit_rpath=no
9836 link_all_deplibs=unknown
9837 module_cmds=
9838 module_expsym_cmds=
9839 old_archive_from_new_cmds=
9840 old_archive_from_expsyms_cmds=
9841 thread_safe_flag_spec=
9842 whole_archive_flag_spec=
9843 # include_expsyms should be a list of space-separated symbols to be *always*
9844 # included in the symbol list
9845 include_expsyms=
9846 # exclude_expsyms can be an extended regexp of symbols to exclude
9847 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9848 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9849 # as well as any symbol that contains `d'.
9850 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9851 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9852 # platforms (ab)use it in PIC code, but their linkers get confused if
9853 # the symbol is explicitly referenced. Since portable code cannot
9854 # rely on this symbol name, it's probably fine to never include it in
9855 # preloaded symbol tables.
9856 # Exclude shared library initialization/finalization symbols.
9857 extract_expsyms_cmds=
9859 case $host_os in
9860 cygwin* | mingw* | pw32* | cegcc*)
9861 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9862 # When not using gcc, we currently assume that we are using
9863 # Microsoft Visual C++.
9864 if test "$GCC" != yes; then
9865 with_gnu_ld=no
9868 interix*)
9869 # we just hope/assume this is gcc and not c89 (= MSVC++)
9870 with_gnu_ld=yes
9872 openbsd*)
9873 with_gnu_ld=no
9875 esac
9877 ld_shlibs=yes
9879 # On some targets, GNU ld is compatible enough with the native linker
9880 # that we're better off using the native interface for both.
9881 lt_use_gnu_ld_interface=no
9882 if test "$with_gnu_ld" = yes; then
9883 case $host_os in
9884 aix*)
9885 # The AIX port of GNU ld has always aspired to compatibility
9886 # with the native linker. However, as the warning in the GNU ld
9887 # block says, versions before 2.19.5* couldn't really create working
9888 # shared libraries, regardless of the interface used.
9889 case `$LD -v 2>&1` in
9890 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9891 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9892 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9894 lt_use_gnu_ld_interface=yes
9896 esac
9899 lt_use_gnu_ld_interface=yes
9901 esac
9904 if test "$lt_use_gnu_ld_interface" = yes; then
9905 # If archive_cmds runs LD, not CC, wlarc should be empty
9906 wlarc='${wl}'
9908 # Set some defaults for GNU ld with shared library support. These
9909 # are reset later if shared libraries are not supported. Putting them
9910 # here allows them to be overridden if necessary.
9911 runpath_var=LD_RUN_PATH
9912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9913 export_dynamic_flag_spec='${wl}--export-dynamic'
9914 # ancient GNU ld didn't support --whole-archive et. al.
9915 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9916 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9917 else
9918 whole_archive_flag_spec=
9920 supports_anon_versioning=no
9921 case `$LD -v 2>&1` in
9922 *GNU\ gold*) supports_anon_versioning=yes ;;
9923 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9924 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9925 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9926 *\ 2.11.*) ;; # other 2.11 versions
9927 *) supports_anon_versioning=yes ;;
9928 esac
9930 # See if GNU ld supports shared libraries.
9931 case $host_os in
9932 aix[3-9]*)
9933 # On AIX/PPC, the GNU linker is very broken
9934 if test "$host_cpu" != ia64; then
9935 ld_shlibs=no
9936 cat <<_LT_EOF 1>&2
9938 *** Warning: the GNU linker, at least up to release 2.19, is reported
9939 *** to be unable to reliably create shared libraries on AIX.
9940 *** Therefore, libtool is disabling shared libraries support. If you
9941 *** really care for shared libraries, you may want to install binutils
9942 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9943 *** You will then need to restart the configuration process.
9945 _LT_EOF
9949 amigaos*)
9950 case $host_cpu in
9951 powerpc)
9952 # see comment about AmigaOS4 .so support
9953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9954 archive_expsym_cmds=''
9956 m68k)
9957 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)'
9958 hardcode_libdir_flag_spec='-L$libdir'
9959 hardcode_minus_L=yes
9961 esac
9964 beos*)
9965 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9966 allow_undefined_flag=unsupported
9967 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9968 # support --undefined. This deserves some investigation. FIXME
9969 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9970 else
9971 ld_shlibs=no
9975 cygwin* | mingw* | pw32* | cegcc*)
9976 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9977 # as there is no search path for DLLs.
9978 hardcode_libdir_flag_spec='-L$libdir'
9979 export_dynamic_flag_spec='${wl}--export-all-symbols'
9980 allow_undefined_flag=unsupported
9981 always_export_symbols=no
9982 enable_shared_with_static_runtimes=yes
9983 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9985 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9987 # If the export-symbols file already is a .def file (1st line
9988 # is EXPORTS), use it as is; otherwise, prepend...
9989 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9990 cp $export_symbols $output_objdir/$soname.def;
9991 else
9992 echo EXPORTS > $output_objdir/$soname.def;
9993 cat $export_symbols >> $output_objdir/$soname.def;
9995 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9996 else
9997 ld_shlibs=no
10001 haiku*)
10002 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10003 link_all_deplibs=yes
10006 interix[3-9]*)
10007 hardcode_direct=no
10008 hardcode_shlibpath_var=no
10009 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10010 export_dynamic_flag_spec='${wl}-E'
10011 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10012 # Instead, shared libraries are loaded at an image base (0x10000000 by
10013 # default) and relocated if they conflict, which is a slow very memory
10014 # consuming and fragmenting process. To avoid this, we pick a random,
10015 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10016 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10017 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10018 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'
10021 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10022 tmp_diet=no
10023 if test "$host_os" = linux-dietlibc; then
10024 case $cc_basename in
10025 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10026 esac
10028 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10029 && test "$tmp_diet" = no
10030 then
10031 tmp_addflag=' $pic_flag'
10032 tmp_sharedflag='-shared'
10033 case $cc_basename,$host_cpu in
10034 pgcc*) # Portland Group C compiler
10035 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'
10036 tmp_addflag=' $pic_flag'
10038 pgf77* | pgf90* | pgf95* | pgfortran*)
10039 # Portland Group f77 and f90 compilers
10040 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'
10041 tmp_addflag=' $pic_flag -Mnomain' ;;
10042 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10043 tmp_addflag=' -i_dynamic' ;;
10044 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10045 tmp_addflag=' -i_dynamic -nofor_main' ;;
10046 ifc* | ifort*) # Intel Fortran compiler
10047 tmp_addflag=' -nofor_main' ;;
10048 lf95*) # Lahey Fortran 8.1
10049 whole_archive_flag_spec=
10050 tmp_sharedflag='--shared' ;;
10051 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10052 tmp_sharedflag='-qmkshrobj'
10053 tmp_addflag= ;;
10054 nvcc*) # Cuda Compiler Driver 2.2
10055 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'
10056 compiler_needs_object=yes
10058 esac
10059 case `$CC -V 2>&1 | sed 5q` in
10060 *Sun\ C*) # Sun C 5.9
10061 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'
10062 compiler_needs_object=yes
10063 tmp_sharedflag='-G' ;;
10064 *Sun\ F*) # Sun Fortran 8.3
10065 tmp_sharedflag='-G' ;;
10066 esac
10067 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10069 if test "x$supports_anon_versioning" = xyes; then
10070 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10071 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10072 echo "local: *; };" >> $output_objdir/$libname.ver~
10073 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10076 case $cc_basename in
10077 xlf* | bgf* | bgxlf* | mpixlf*)
10078 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10079 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10080 hardcode_libdir_flag_spec=
10081 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10082 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10083 if test "x$supports_anon_versioning" = xyes; then
10084 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10085 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10086 echo "local: *; };" >> $output_objdir/$libname.ver~
10087 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10090 esac
10091 else
10092 ld_shlibs=no
10096 netbsd*)
10097 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10098 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10099 wlarc=
10100 else
10101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10102 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10106 solaris*)
10107 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10108 ld_shlibs=no
10109 cat <<_LT_EOF 1>&2
10111 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10112 *** create shared libraries on Solaris systems. Therefore, libtool
10113 *** is disabling shared libraries support. We urge you to upgrade GNU
10114 *** binutils to release 2.9.1 or newer. Another option is to modify
10115 *** your PATH or compiler configuration so that the native linker is
10116 *** used, and then restart.
10118 _LT_EOF
10119 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10121 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10122 else
10123 ld_shlibs=no
10127 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10128 case `$LD -v 2>&1` in
10129 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10130 ld_shlibs=no
10131 cat <<_LT_EOF 1>&2
10133 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10134 *** reliably create shared libraries on SCO systems. Therefore, libtool
10135 *** is disabling shared libraries support. We urge you to upgrade GNU
10136 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10137 *** your PATH or compiler configuration so that the native linker is
10138 *** used, and then restart.
10140 _LT_EOF
10143 # For security reasons, it is highly recommended that you always
10144 # use absolute paths for naming shared libraries, and exclude the
10145 # DT_RUNPATH tag from executables and libraries. But doing so
10146 # requires that you compile everything twice, which is a pain.
10147 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10148 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10150 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10151 else
10152 ld_shlibs=no
10155 esac
10158 sunos4*)
10159 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10160 wlarc=
10161 hardcode_direct=yes
10162 hardcode_shlibpath_var=no
10166 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10168 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10169 else
10170 ld_shlibs=no
10173 esac
10175 if test "$ld_shlibs" = no; then
10176 runpath_var=
10177 hardcode_libdir_flag_spec=
10178 export_dynamic_flag_spec=
10179 whole_archive_flag_spec=
10181 else
10182 # PORTME fill in a description of your system's linker (not GNU ld)
10183 case $host_os in
10184 aix3*)
10185 allow_undefined_flag=unsupported
10186 always_export_symbols=yes
10187 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'
10188 # Note: this linker hardcodes the directories in LIBPATH if there
10189 # are no directories specified by -L.
10190 hardcode_minus_L=yes
10191 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10192 # Neither direct hardcoding nor static linking is supported with a
10193 # broken collect2.
10194 hardcode_direct=unsupported
10198 aix[4-9]*)
10199 if test "$host_cpu" = ia64; then
10200 # On IA64, the linker does run time linking by default, so we don't
10201 # have to do anything special.
10202 aix_use_runtimelinking=no
10203 exp_sym_flag='-Bexport'
10204 no_entry_flag=""
10205 else
10206 # If we're using GNU nm, then we don't want the "-C" option.
10207 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10208 # Also, AIX nm treats weak defined symbols like other global
10209 # defined symbols, whereas GNU nm marks them as "W".
10210 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10211 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'
10212 else
10213 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'
10215 aix_use_runtimelinking=no
10217 # Test if we are trying to use run time linking or normal
10218 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10219 # need to do runtime linking.
10220 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10221 for ld_flag in $LDFLAGS; do
10222 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10223 aix_use_runtimelinking=yes
10224 break
10226 done
10228 esac
10230 exp_sym_flag='-bexport'
10231 no_entry_flag='-bnoentry'
10234 # When large executables or shared objects are built, AIX ld can
10235 # have problems creating the table of contents. If linking a library
10236 # or program results in "error TOC overflow" add -mminimal-toc to
10237 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10238 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10240 archive_cmds=''
10241 hardcode_direct=yes
10242 hardcode_direct_absolute=yes
10243 hardcode_libdir_separator=':'
10244 link_all_deplibs=yes
10245 file_list_spec='${wl}-f,'
10247 if test "$GCC" = yes; then
10248 case $host_os in aix4.[012]|aix4.[012].*)
10249 # We only want to do this on AIX 4.2 and lower, the check
10250 # below for broken collect2 doesn't work under 4.3+
10251 collect2name=`${CC} -print-prog-name=collect2`
10252 if test -f "$collect2name" &&
10253 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10254 then
10255 # We have reworked collect2
10257 else
10258 # We have old collect2
10259 hardcode_direct=unsupported
10260 # It fails to find uninstalled libraries when the uninstalled
10261 # path is not listed in the libpath. Setting hardcode_minus_L
10262 # to unsupported forces relinking
10263 hardcode_minus_L=yes
10264 hardcode_libdir_flag_spec='-L$libdir'
10265 hardcode_libdir_separator=
10268 esac
10269 shared_flag='-shared'
10270 if test "$aix_use_runtimelinking" = yes; then
10271 shared_flag="$shared_flag "'${wl}-G'
10273 else
10274 # not using gcc
10275 if test "$host_cpu" = ia64; then
10276 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10277 # chokes on -Wl,-G. The following line is correct:
10278 shared_flag='-G'
10279 else
10280 if test "$aix_use_runtimelinking" = yes; then
10281 shared_flag='${wl}-G'
10282 else
10283 shared_flag='${wl}-bM:SRE'
10288 export_dynamic_flag_spec='${wl}-bexpall'
10289 # It seems that -bexpall does not export symbols beginning with
10290 # underscore (_), so it is better to generate a list of symbols to export.
10291 always_export_symbols=yes
10292 if test "$aix_use_runtimelinking" = yes; then
10293 # Warning - without using the other runtime loading flags (-brtl),
10294 # -berok will link without error, but may produce a broken library.
10295 allow_undefined_flag='-berok'
10296 # Determine the default libpath from the value encoded in an
10297 # empty executable.
10298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299 /* end confdefs.h. */
10302 main ()
10306 return 0;
10308 _ACEOF
10309 if ac_fn_c_try_link "$LINENO"; then :
10311 lt_aix_libpath_sed='
10312 /Import File Strings/,/^$/ {
10313 /^0/ {
10314 s/^0 *\(.*\)$/\1/
10318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10319 # Check for a 64-bit object if we didn't find anything.
10320 if test -z "$aix_libpath"; then
10321 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10324 rm -f core conftest.err conftest.$ac_objext \
10325 conftest$ac_exeext conftest.$ac_ext
10326 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10328 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10329 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"
10330 else
10331 if test "$host_cpu" = ia64; then
10332 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10333 allow_undefined_flag="-z nodefs"
10334 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"
10335 else
10336 # Determine the default libpath from the value encoded in an
10337 # empty executable.
10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339 /* end confdefs.h. */
10342 main ()
10346 return 0;
10348 _ACEOF
10349 if ac_fn_c_try_link "$LINENO"; then :
10351 lt_aix_libpath_sed='
10352 /Import File Strings/,/^$/ {
10353 /^0/ {
10354 s/^0 *\(.*\)$/\1/
10358 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10359 # Check for a 64-bit object if we didn't find anything.
10360 if test -z "$aix_libpath"; then
10361 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10364 rm -f core conftest.err conftest.$ac_objext \
10365 conftest$ac_exeext conftest.$ac_ext
10366 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10368 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10369 # Warning - without using the other run time loading flags,
10370 # -berok will link without error, but may produce a broken library.
10371 no_undefined_flag=' ${wl}-bernotok'
10372 allow_undefined_flag=' ${wl}-berok'
10373 if test "$with_gnu_ld" = yes; then
10374 # We only use this code for GNU lds that support --whole-archive.
10375 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10376 else
10377 # Exported symbols can be pulled into shared objects from archives
10378 whole_archive_flag_spec='$convenience'
10380 archive_cmds_need_lc=yes
10381 # This is similar to how AIX traditionally builds its shared libraries.
10382 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'
10387 amigaos*)
10388 case $host_cpu in
10389 powerpc)
10390 # see comment about AmigaOS4 .so support
10391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10392 archive_expsym_cmds=''
10394 m68k)
10395 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)'
10396 hardcode_libdir_flag_spec='-L$libdir'
10397 hardcode_minus_L=yes
10399 esac
10402 bsdi[45]*)
10403 export_dynamic_flag_spec=-rdynamic
10406 cygwin* | mingw* | pw32* | cegcc*)
10407 # When not using gcc, we currently assume that we are using
10408 # Microsoft Visual C++.
10409 # hardcode_libdir_flag_spec is actually meaningless, as there is
10410 # no search path for DLLs.
10411 hardcode_libdir_flag_spec=' '
10412 allow_undefined_flag=unsupported
10413 # Tell ltmain to make .lib files, not .a files.
10414 libext=lib
10415 # Tell ltmain to make .dll files, not .so files.
10416 shrext_cmds=".dll"
10417 # FIXME: Setting linknames here is a bad hack.
10418 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10419 # The linker will automatically build a .lib file if we build a DLL.
10420 old_archive_from_new_cmds='true'
10421 # FIXME: Should let the user specify the lib program.
10422 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10423 fix_srcfile_path='`cygpath -w "$srcfile"`'
10424 enable_shared_with_static_runtimes=yes
10427 darwin* | rhapsody*)
10430 archive_cmds_need_lc=no
10431 hardcode_direct=no
10432 hardcode_automatic=yes
10433 hardcode_shlibpath_var=unsupported
10434 if test "$lt_cv_ld_force_load" = "yes"; then
10435 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\"`'
10436 else
10437 whole_archive_flag_spec=''
10439 link_all_deplibs=yes
10440 allow_undefined_flag="$_lt_dar_allow_undefined"
10441 case $cc_basename in
10442 ifort*) _lt_dar_can_shared=yes ;;
10443 *) _lt_dar_can_shared=$GCC ;;
10444 esac
10445 if test "$_lt_dar_can_shared" = "yes"; then
10446 output_verbose_link_cmd=func_echo_all
10447 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10448 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10449 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}"
10450 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}"
10452 else
10453 ld_shlibs=no
10458 dgux*)
10459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10460 hardcode_libdir_flag_spec='-L$libdir'
10461 hardcode_shlibpath_var=no
10464 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10465 # support. Future versions do this automatically, but an explicit c++rt0.o
10466 # does not break anything, and helps significantly (at the cost of a little
10467 # extra space).
10468 freebsd2.2*)
10469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10470 hardcode_libdir_flag_spec='-R$libdir'
10471 hardcode_direct=yes
10472 hardcode_shlibpath_var=no
10475 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10476 freebsd2.*)
10477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10478 hardcode_direct=yes
10479 hardcode_minus_L=yes
10480 hardcode_shlibpath_var=no
10483 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10484 freebsd* | dragonfly*)
10485 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10486 hardcode_libdir_flag_spec='-R$libdir'
10487 hardcode_direct=yes
10488 hardcode_shlibpath_var=no
10491 hpux9*)
10492 if test "$GCC" = yes; then
10493 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'
10494 else
10495 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'
10497 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10498 hardcode_libdir_separator=:
10499 hardcode_direct=yes
10501 # hardcode_minus_L: Not really in the search PATH,
10502 # but as the default location of the library.
10503 hardcode_minus_L=yes
10504 export_dynamic_flag_spec='${wl}-E'
10507 hpux10*)
10508 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10509 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10510 else
10511 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10513 if test "$with_gnu_ld" = no; then
10514 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10515 hardcode_libdir_flag_spec_ld='+b $libdir'
10516 hardcode_libdir_separator=:
10517 hardcode_direct=yes
10518 hardcode_direct_absolute=yes
10519 export_dynamic_flag_spec='${wl}-E'
10520 # hardcode_minus_L: Not really in the search PATH,
10521 # but as the default location of the library.
10522 hardcode_minus_L=yes
10526 hpux11*)
10527 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10528 case $host_cpu in
10529 hppa*64*)
10530 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10532 ia64*)
10533 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10536 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10538 esac
10539 else
10540 case $host_cpu in
10541 hppa*64*)
10542 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10544 ia64*)
10545 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10549 # Older versions of the 11.00 compiler do not understand -b yet
10550 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10552 $as_echo_n "checking if $CC understands -b... " >&6; }
10553 if ${lt_cv_prog_compiler__b+:} false; then :
10554 $as_echo_n "(cached) " >&6
10555 else
10556 lt_cv_prog_compiler__b=no
10557 save_LDFLAGS="$LDFLAGS"
10558 LDFLAGS="$LDFLAGS -b"
10559 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10560 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10561 # The linker can only warn and ignore the option if not recognized
10562 # So say no if there are warnings
10563 if test -s conftest.err; then
10564 # Append any errors to the config.log.
10565 cat conftest.err 1>&5
10566 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10568 if diff conftest.exp conftest.er2 >/dev/null; then
10569 lt_cv_prog_compiler__b=yes
10571 else
10572 lt_cv_prog_compiler__b=yes
10575 $RM -r conftest*
10576 LDFLAGS="$save_LDFLAGS"
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10580 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10582 if test x"$lt_cv_prog_compiler__b" = xyes; then
10583 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10584 else
10585 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10589 esac
10591 if test "$with_gnu_ld" = no; then
10592 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10593 hardcode_libdir_separator=:
10595 case $host_cpu in
10596 hppa*64*|ia64*)
10597 hardcode_direct=no
10598 hardcode_shlibpath_var=no
10601 hardcode_direct=yes
10602 hardcode_direct_absolute=yes
10603 export_dynamic_flag_spec='${wl}-E'
10605 # hardcode_minus_L: Not really in the search PATH,
10606 # but as the default location of the library.
10607 hardcode_minus_L=yes
10609 esac
10613 irix5* | irix6* | nonstopux*)
10614 if test "$GCC" = yes; then
10615 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'
10616 # Try to use the -exported_symbol ld option, if it does not
10617 # work, assume that -exports_file does not work either and
10618 # implicitly export all symbols.
10619 save_LDFLAGS="$LDFLAGS"
10620 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622 /* end confdefs.h. */
10623 int foo(void) {}
10624 _ACEOF
10625 if ac_fn_c_try_link "$LINENO"; then :
10626 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'
10629 rm -f core conftest.err conftest.$ac_objext \
10630 conftest$ac_exeext conftest.$ac_ext
10631 LDFLAGS="$save_LDFLAGS"
10632 else
10633 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'
10634 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'
10636 archive_cmds_need_lc='no'
10637 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10638 hardcode_libdir_separator=:
10639 inherit_rpath=yes
10640 link_all_deplibs=yes
10643 netbsd*)
10644 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10645 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10646 else
10647 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10649 hardcode_libdir_flag_spec='-R$libdir'
10650 hardcode_direct=yes
10651 hardcode_shlibpath_var=no
10654 newsos6)
10655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10656 hardcode_direct=yes
10657 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10658 hardcode_libdir_separator=:
10659 hardcode_shlibpath_var=no
10662 *nto* | *qnx*)
10665 openbsd*)
10666 if test -f /usr/libexec/ld.so; then
10667 hardcode_direct=yes
10668 hardcode_shlibpath_var=no
10669 hardcode_direct_absolute=yes
10670 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10671 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10672 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10673 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10674 export_dynamic_flag_spec='${wl}-E'
10675 else
10676 case $host_os in
10677 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10679 hardcode_libdir_flag_spec='-R$libdir'
10682 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10683 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10685 esac
10687 else
10688 ld_shlibs=no
10692 os2*)
10693 hardcode_libdir_flag_spec='-L$libdir'
10694 hardcode_minus_L=yes
10695 allow_undefined_flag=unsupported
10696 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'
10697 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10700 osf3*)
10701 if test "$GCC" = yes; then
10702 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10703 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'
10704 else
10705 allow_undefined_flag=' -expect_unresolved \*'
10706 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'
10708 archive_cmds_need_lc='no'
10709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10710 hardcode_libdir_separator=:
10713 osf4* | osf5*) # as osf3* with the addition of -msym flag
10714 if test "$GCC" = yes; then
10715 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10716 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'
10717 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10718 else
10719 allow_undefined_flag=' -expect_unresolved \*'
10720 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'
10721 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~
10722 $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'
10724 # Both c and cxx compiler support -rpath directly
10725 hardcode_libdir_flag_spec='-rpath $libdir'
10727 archive_cmds_need_lc='no'
10728 hardcode_libdir_separator=:
10731 solaris*)
10732 no_undefined_flag=' -z defs'
10733 if test "$GCC" = yes; then
10734 wlarc='${wl}'
10735 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10736 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10737 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10738 else
10739 case `$CC -V 2>&1` in
10740 *"Compilers 5.0"*)
10741 wlarc=''
10742 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10743 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10744 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10747 wlarc='${wl}'
10748 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10749 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10750 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10752 esac
10754 hardcode_libdir_flag_spec='-R$libdir'
10755 hardcode_shlibpath_var=no
10756 case $host_os in
10757 solaris2.[0-5] | solaris2.[0-5].*) ;;
10759 # The compiler driver will combine and reorder linker options,
10760 # but understands `-z linker_flag'. GCC discards it without `$wl',
10761 # but is careful enough not to reorder.
10762 # Supported since Solaris 2.6 (maybe 2.5.1?)
10763 if test "$GCC" = yes; then
10764 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10765 else
10766 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10769 esac
10770 link_all_deplibs=yes
10773 sunos4*)
10774 if test "x$host_vendor" = xsequent; then
10775 # Use $CC to link under sequent, because it throws in some extra .o
10776 # files that make .init and .fini sections work.
10777 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10778 else
10779 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10781 hardcode_libdir_flag_spec='-L$libdir'
10782 hardcode_direct=yes
10783 hardcode_minus_L=yes
10784 hardcode_shlibpath_var=no
10787 sysv4)
10788 case $host_vendor in
10789 sni)
10790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10791 hardcode_direct=yes # is this really true???
10793 siemens)
10794 ## LD is ld it makes a PLAMLIB
10795 ## CC just makes a GrossModule.
10796 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10797 reload_cmds='$CC -r -o $output$reload_objs'
10798 hardcode_direct=no
10800 motorola)
10801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10802 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10804 esac
10805 runpath_var='LD_RUN_PATH'
10806 hardcode_shlibpath_var=no
10809 sysv4.3*)
10810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10811 hardcode_shlibpath_var=no
10812 export_dynamic_flag_spec='-Bexport'
10815 sysv4*MP*)
10816 if test -d /usr/nec; then
10817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10818 hardcode_shlibpath_var=no
10819 runpath_var=LD_RUN_PATH
10820 hardcode_runpath_var=yes
10821 ld_shlibs=yes
10825 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10826 no_undefined_flag='${wl}-z,text'
10827 archive_cmds_need_lc=no
10828 hardcode_shlibpath_var=no
10829 runpath_var='LD_RUN_PATH'
10831 if test "$GCC" = yes; then
10832 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10833 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10834 else
10835 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10836 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10840 sysv5* | sco3.2v5* | sco5v6*)
10841 # Note: We can NOT use -z defs as we might desire, because we do not
10842 # link with -lc, and that would cause any symbols used from libc to
10843 # always be unresolved, which means just about no library would
10844 # ever link correctly. If we're not using GNU ld we use -z text
10845 # though, which does catch some bad symbols but isn't as heavy-handed
10846 # as -z defs.
10847 no_undefined_flag='${wl}-z,text'
10848 allow_undefined_flag='${wl}-z,nodefs'
10849 archive_cmds_need_lc=no
10850 hardcode_shlibpath_var=no
10851 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10852 hardcode_libdir_separator=':'
10853 link_all_deplibs=yes
10854 export_dynamic_flag_spec='${wl}-Bexport'
10855 runpath_var='LD_RUN_PATH'
10857 if test "$GCC" = yes; then
10858 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10859 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10860 else
10861 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10862 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10866 uts4*)
10867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10868 hardcode_libdir_flag_spec='-L$libdir'
10869 hardcode_shlibpath_var=no
10873 ld_shlibs=no
10875 esac
10877 if test x$host_vendor = xsni; then
10878 case $host in
10879 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10880 export_dynamic_flag_spec='${wl}-Blargedynsym'
10882 esac
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10887 $as_echo "$ld_shlibs" >&6; }
10888 test "$ld_shlibs" = no && can_build_shared=no
10890 with_gnu_ld=$with_gnu_ld
10907 # Do we need to explicitly link libc?
10909 case "x$archive_cmds_need_lc" in
10910 x|xyes)
10911 # Assume -lc should be added
10912 archive_cmds_need_lc=yes
10914 if test "$enable_shared" = yes && test "$GCC" = yes; then
10915 case $archive_cmds in
10916 *'~'*)
10917 # FIXME: we may have to deal with multi-command sequences.
10919 '$CC '*)
10920 # Test whether the compiler implicitly links with -lc since on some
10921 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10922 # to ld, don't add -lc before -lgcc.
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10924 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10925 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10926 $as_echo_n "(cached) " >&6
10927 else
10928 $RM conftest*
10929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10932 (eval $ac_compile) 2>&5
10933 ac_status=$?
10934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10935 test $ac_status = 0; } 2>conftest.err; then
10936 soname=conftest
10937 lib=conftest
10938 libobjs=conftest.$ac_objext
10939 deplibs=
10940 wl=$lt_prog_compiler_wl
10941 pic_flag=$lt_prog_compiler_pic
10942 compiler_flags=-v
10943 linker_flags=-v
10944 verstring=
10945 output_objdir=.
10946 libname=conftest
10947 lt_save_allow_undefined_flag=$allow_undefined_flag
10948 allow_undefined_flag=
10949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10950 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10951 ac_status=$?
10952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10953 test $ac_status = 0; }
10954 then
10955 lt_cv_archive_cmds_need_lc=no
10956 else
10957 lt_cv_archive_cmds_need_lc=yes
10959 allow_undefined_flag=$lt_save_allow_undefined_flag
10960 else
10961 cat conftest.err 1>&5
10963 $RM conftest*
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10967 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10968 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10970 esac
10973 esac
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11132 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11134 if test "$GCC" = yes; then
11135 case $host_os in
11136 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11137 *) lt_awk_arg="/^libraries:/" ;;
11138 esac
11139 case $host_os in
11140 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11141 *) lt_sed_strip_eq="s,=/,/,g" ;;
11142 esac
11143 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11144 case $lt_search_path_spec in
11145 *\;*)
11146 # if the path contains ";" then we assume it to be the separator
11147 # otherwise default to the standard path separator (i.e. ":") - it is
11148 # assumed that no part of a normal pathname contains ";" but that should
11149 # okay in the real world where ";" in dirpaths is itself problematic.
11150 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11153 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11155 esac
11156 # Ok, now we have the path, separated by spaces, we can step through it
11157 # and add multilib dir if necessary.
11158 lt_tmp_lt_search_path_spec=
11159 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11160 for lt_sys_path in $lt_search_path_spec; do
11161 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11162 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11163 else
11164 test -d "$lt_sys_path" && \
11165 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11167 done
11168 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11169 BEGIN {RS=" "; FS="/|\n";} {
11170 lt_foo="";
11171 lt_count=0;
11172 for (lt_i = NF; lt_i > 0; lt_i--) {
11173 if ($lt_i != "" && $lt_i != ".") {
11174 if ($lt_i == "..") {
11175 lt_count++;
11176 } else {
11177 if (lt_count == 0) {
11178 lt_foo="/" $lt_i lt_foo;
11179 } else {
11180 lt_count--;
11185 if (lt_foo != "") { lt_freq[lt_foo]++; }
11186 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11188 # AWK program above erroneously prepends '/' to C:/dos/paths
11189 # for these hosts.
11190 case $host_os in
11191 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11192 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11193 esac
11194 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11195 else
11196 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11198 library_names_spec=
11199 libname_spec='lib$name'
11200 soname_spec=
11201 shrext_cmds=".so"
11202 postinstall_cmds=
11203 postuninstall_cmds=
11204 finish_cmds=
11205 finish_eval=
11206 shlibpath_var=
11207 shlibpath_overrides_runpath=unknown
11208 version_type=none
11209 dynamic_linker="$host_os ld.so"
11210 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11211 need_lib_prefix=unknown
11212 hardcode_into_libs=no
11214 # when you set need_version to no, make sure it does not cause -set_version
11215 # flags to be left without arguments
11216 need_version=unknown
11218 case $host_os in
11219 aix3*)
11220 version_type=linux
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11222 shlibpath_var=LIBPATH
11224 # AIX 3 has no versioning support, so we append a major version to the name.
11225 soname_spec='${libname}${release}${shared_ext}$major'
11228 aix[4-9]*)
11229 version_type=linux
11230 need_lib_prefix=no
11231 need_version=no
11232 hardcode_into_libs=yes
11233 if test "$host_cpu" = ia64; then
11234 # AIX 5 supports IA64
11235 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11236 shlibpath_var=LD_LIBRARY_PATH
11237 else
11238 # With GCC up to 2.95.x, collect2 would create an import file
11239 # for dependence libraries. The import file would start with
11240 # the line `#! .'. This would cause the generated library to
11241 # depend on `.', always an invalid library. This was fixed in
11242 # development snapshots of GCC prior to 3.0.
11243 case $host_os in
11244 aix4 | aix4.[01] | aix4.[01].*)
11245 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11246 echo ' yes '
11247 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11249 else
11250 can_build_shared=no
11253 esac
11254 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11255 # soname into executable. Probably we can add versioning support to
11256 # collect2, so additional links can be useful in future.
11257 if test "$aix_use_runtimelinking" = yes; then
11258 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11259 # instead of lib<name>.a to let people know that these are not
11260 # typical AIX shared libraries.
11261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11262 else
11263 # We preserve .a as extension for shared libraries through AIX4.2
11264 # and later when we are not doing run time linking.
11265 library_names_spec='${libname}${release}.a $libname.a'
11266 soname_spec='${libname}${release}${shared_ext}$major'
11268 shlibpath_var=LIBPATH
11272 amigaos*)
11273 case $host_cpu in
11274 powerpc)
11275 # Since July 2007 AmigaOS4 officially supports .so libraries.
11276 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11279 m68k)
11280 library_names_spec='$libname.ixlibrary $libname.a'
11281 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11282 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'
11284 esac
11287 beos*)
11288 library_names_spec='${libname}${shared_ext}'
11289 dynamic_linker="$host_os ld.so"
11290 shlibpath_var=LIBRARY_PATH
11293 bsdi[45]*)
11294 version_type=linux
11295 need_version=no
11296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11297 soname_spec='${libname}${release}${shared_ext}$major'
11298 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11299 shlibpath_var=LD_LIBRARY_PATH
11300 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11301 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11302 # the default ld.so.conf also contains /usr/contrib/lib and
11303 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11304 # libtool to hard-code these into programs
11307 cygwin* | mingw* | pw32* | cegcc*)
11308 version_type=windows
11309 shrext_cmds=".dll"
11310 need_version=no
11311 need_lib_prefix=no
11313 case $GCC,$host_os in
11314 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11315 library_names_spec='$libname.dll.a'
11316 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11317 postinstall_cmds='base_file=`basename \${file}`~
11318 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11319 dldir=$destdir/`dirname \$dlpath`~
11320 test -d \$dldir || mkdir -p \$dldir~
11321 $install_prog $dir/$dlname \$dldir/$dlname~
11322 chmod a+x \$dldir/$dlname~
11323 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11324 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11326 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11327 dlpath=$dir/\$dldll~
11328 $RM \$dlpath'
11329 shlibpath_overrides_runpath=yes
11331 case $host_os in
11332 cygwin*)
11333 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11334 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11336 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11338 mingw* | cegcc*)
11339 # MinGW DLLs use traditional 'lib' prefix
11340 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11342 pw32*)
11343 # pw32 DLLs use 'pw' prefix rather than 'lib'
11344 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11346 esac
11350 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11352 esac
11353 dynamic_linker='Win32 ld.exe'
11354 # FIXME: first we should search . and the directory the executable is in
11355 shlibpath_var=PATH
11358 darwin* | rhapsody*)
11359 dynamic_linker="$host_os dyld"
11360 version_type=darwin
11361 need_lib_prefix=no
11362 need_version=no
11363 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11364 soname_spec='${libname}${release}${major}$shared_ext'
11365 shlibpath_overrides_runpath=yes
11366 shlibpath_var=DYLD_LIBRARY_PATH
11367 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11369 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11370 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11373 dgux*)
11374 version_type=linux
11375 need_lib_prefix=no
11376 need_version=no
11377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11378 soname_spec='${libname}${release}${shared_ext}$major'
11379 shlibpath_var=LD_LIBRARY_PATH
11382 freebsd* | dragonfly*)
11383 # DragonFly does not have aout. When/if they implement a new
11384 # versioning mechanism, adjust this.
11385 if test -x /usr/bin/objformat; then
11386 objformat=`/usr/bin/objformat`
11387 else
11388 case $host_os in
11389 freebsd[23].*) objformat=aout ;;
11390 *) objformat=elf ;;
11391 esac
11393 version_type=freebsd-$objformat
11394 case $version_type in
11395 freebsd-elf*)
11396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11397 need_version=no
11398 need_lib_prefix=no
11400 freebsd-*)
11401 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11402 need_version=yes
11404 esac
11405 shlibpath_var=LD_LIBRARY_PATH
11406 case $host_os in
11407 freebsd2.*)
11408 shlibpath_overrides_runpath=yes
11410 freebsd3.[01]* | freebsdelf3.[01]*)
11411 shlibpath_overrides_runpath=yes
11412 hardcode_into_libs=yes
11414 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11415 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11416 shlibpath_overrides_runpath=no
11417 hardcode_into_libs=yes
11419 *) # from 4.6 on, and DragonFly
11420 shlibpath_overrides_runpath=yes
11421 hardcode_into_libs=yes
11423 esac
11426 haiku*)
11427 version_type=linux
11428 need_lib_prefix=no
11429 need_version=no
11430 dynamic_linker="$host_os runtime_loader"
11431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11432 soname_spec='${libname}${release}${shared_ext}$major'
11433 shlibpath_var=LIBRARY_PATH
11434 shlibpath_overrides_runpath=yes
11435 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11436 hardcode_into_libs=yes
11439 hpux9* | hpux10* | hpux11*)
11440 # Give a soname corresponding to the major version so that dld.sl refuses to
11441 # link against other versions.
11442 version_type=sunos
11443 need_lib_prefix=no
11444 need_version=no
11445 case $host_cpu in
11446 ia64*)
11447 shrext_cmds='.so'
11448 hardcode_into_libs=yes
11449 dynamic_linker="$host_os dld.so"
11450 shlibpath_var=LD_LIBRARY_PATH
11451 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11453 soname_spec='${libname}${release}${shared_ext}$major'
11454 if test "X$HPUX_IA64_MODE" = X32; then
11455 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11456 else
11457 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11459 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11461 hppa*64*)
11462 shrext_cmds='.sl'
11463 hardcode_into_libs=yes
11464 dynamic_linker="$host_os dld.sl"
11465 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11468 soname_spec='${libname}${release}${shared_ext}$major'
11469 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11470 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11473 shrext_cmds='.sl'
11474 dynamic_linker="$host_os dld.sl"
11475 shlibpath_var=SHLIB_PATH
11476 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11478 soname_spec='${libname}${release}${shared_ext}$major'
11480 esac
11481 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11482 postinstall_cmds='chmod 555 $lib'
11483 # or fails outright, so override atomically:
11484 install_override_mode=555
11487 interix[3-9]*)
11488 version_type=linux
11489 need_lib_prefix=no
11490 need_version=no
11491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11492 soname_spec='${libname}${release}${shared_ext}$major'
11493 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11494 shlibpath_var=LD_LIBRARY_PATH
11495 shlibpath_overrides_runpath=no
11496 hardcode_into_libs=yes
11499 irix5* | irix6* | nonstopux*)
11500 case $host_os in
11501 nonstopux*) version_type=nonstopux ;;
11503 if test "$lt_cv_prog_gnu_ld" = yes; then
11504 version_type=linux
11505 else
11506 version_type=irix
11507 fi ;;
11508 esac
11509 need_lib_prefix=no
11510 need_version=no
11511 soname_spec='${libname}${release}${shared_ext}$major'
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11513 case $host_os in
11514 irix5* | nonstopux*)
11515 libsuff= shlibsuff=
11518 case $LD in # libtool.m4 will add one of these switches to LD
11519 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11520 libsuff= shlibsuff= libmagic=32-bit;;
11521 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11522 libsuff=32 shlibsuff=N32 libmagic=N32;;
11523 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11524 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11525 *) libsuff= shlibsuff= libmagic=never-match;;
11526 esac
11528 esac
11529 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11530 shlibpath_overrides_runpath=no
11531 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11532 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11533 hardcode_into_libs=yes
11536 # No shared lib support for Linux oldld, aout, or coff.
11537 linux*oldld* | linux*aout* | linux*coff*)
11538 dynamic_linker=no
11541 # This must be Linux ELF.
11543 # uclinux* changes (here and below) have been submitted to the libtool
11544 # project, but have not yet been accepted: they are GCC-local changes
11545 # for the time being. (See
11546 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11547 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11548 version_type=linux
11549 need_lib_prefix=no
11550 need_version=no
11551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11552 soname_spec='${libname}${release}${shared_ext}$major'
11553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11554 shlibpath_var=LD_LIBRARY_PATH
11555 shlibpath_overrides_runpath=no
11557 # Some binutils ld are patched to set DT_RUNPATH
11558 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11559 $as_echo_n "(cached) " >&6
11560 else
11561 lt_cv_shlibpath_overrides_runpath=no
11562 save_LDFLAGS=$LDFLAGS
11563 save_libdir=$libdir
11564 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11565 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11567 /* end confdefs.h. */
11570 main ()
11574 return 0;
11576 _ACEOF
11577 if ac_fn_c_try_link "$LINENO"; then :
11578 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11579 lt_cv_shlibpath_overrides_runpath=yes
11582 rm -f core conftest.err conftest.$ac_objext \
11583 conftest$ac_exeext conftest.$ac_ext
11584 LDFLAGS=$save_LDFLAGS
11585 libdir=$save_libdir
11589 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11591 # This implies no fast_install, which is unacceptable.
11592 # Some rework will be needed to allow for fast_install
11593 # before this can be enabled.
11594 hardcode_into_libs=yes
11596 # Append ld.so.conf contents to the search path
11597 if test -f /etc/ld.so.conf; then
11598 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' ' '`
11599 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11602 # We used to test for /lib/ld.so.1 and disable shared libraries on
11603 # powerpc, because MkLinux only supported shared libraries with the
11604 # GNU dynamic linker. Since this was broken with cross compilers,
11605 # most powerpc-linux boxes support dynamic linking these days and
11606 # people can always --disable-shared, the test was removed, and we
11607 # assume the GNU/Linux dynamic linker is in use.
11608 dynamic_linker='GNU/Linux ld.so'
11611 netbsd*)
11612 version_type=sunos
11613 need_lib_prefix=no
11614 need_version=no
11615 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11618 dynamic_linker='NetBSD (a.out) ld.so'
11619 else
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11621 soname_spec='${libname}${release}${shared_ext}$major'
11622 dynamic_linker='NetBSD ld.elf_so'
11624 shlibpath_var=LD_LIBRARY_PATH
11625 shlibpath_overrides_runpath=yes
11626 hardcode_into_libs=yes
11629 newsos6)
11630 version_type=linux
11631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632 shlibpath_var=LD_LIBRARY_PATH
11633 shlibpath_overrides_runpath=yes
11636 *nto* | *qnx*)
11637 version_type=qnx
11638 need_lib_prefix=no
11639 need_version=no
11640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11641 soname_spec='${libname}${release}${shared_ext}$major'
11642 shlibpath_var=LD_LIBRARY_PATH
11643 shlibpath_overrides_runpath=no
11644 hardcode_into_libs=yes
11645 dynamic_linker='ldqnx.so'
11648 openbsd*)
11649 version_type=sunos
11650 sys_lib_dlsearch_path_spec="/usr/lib"
11651 need_lib_prefix=no
11652 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11653 case $host_os in
11654 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11655 *) need_version=no ;;
11656 esac
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11659 shlibpath_var=LD_LIBRARY_PATH
11660 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11661 case $host_os in
11662 openbsd2.[89] | openbsd2.[89].*)
11663 shlibpath_overrides_runpath=no
11666 shlibpath_overrides_runpath=yes
11668 esac
11669 else
11670 shlibpath_overrides_runpath=yes
11674 os2*)
11675 libname_spec='$name'
11676 shrext_cmds=".dll"
11677 need_lib_prefix=no
11678 library_names_spec='$libname${shared_ext} $libname.a'
11679 dynamic_linker='OS/2 ld.exe'
11680 shlibpath_var=LIBPATH
11683 osf3* | osf4* | osf5*)
11684 version_type=osf
11685 need_lib_prefix=no
11686 need_version=no
11687 soname_spec='${libname}${release}${shared_ext}$major'
11688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11689 shlibpath_var=LD_LIBRARY_PATH
11690 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11691 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11694 rdos*)
11695 dynamic_linker=no
11698 solaris*)
11699 version_type=linux
11700 need_lib_prefix=no
11701 need_version=no
11702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11703 soname_spec='${libname}${release}${shared_ext}$major'
11704 shlibpath_var=LD_LIBRARY_PATH
11705 shlibpath_overrides_runpath=yes
11706 hardcode_into_libs=yes
11707 # ldd complains unless libraries are executable
11708 postinstall_cmds='chmod +x $lib'
11711 sunos4*)
11712 version_type=sunos
11713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11714 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11715 shlibpath_var=LD_LIBRARY_PATH
11716 shlibpath_overrides_runpath=yes
11717 if test "$with_gnu_ld" = yes; then
11718 need_lib_prefix=no
11720 need_version=yes
11723 sysv4 | sysv4.3*)
11724 version_type=linux
11725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11726 soname_spec='${libname}${release}${shared_ext}$major'
11727 shlibpath_var=LD_LIBRARY_PATH
11728 case $host_vendor in
11729 sni)
11730 shlibpath_overrides_runpath=no
11731 need_lib_prefix=no
11732 runpath_var=LD_RUN_PATH
11734 siemens)
11735 need_lib_prefix=no
11737 motorola)
11738 need_lib_prefix=no
11739 need_version=no
11740 shlibpath_overrides_runpath=no
11741 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11743 esac
11746 sysv4*MP*)
11747 if test -d /usr/nec ;then
11748 version_type=linux
11749 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11750 soname_spec='$libname${shared_ext}.$major'
11751 shlibpath_var=LD_LIBRARY_PATH
11755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11756 version_type=freebsd-elf
11757 need_lib_prefix=no
11758 need_version=no
11759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11760 soname_spec='${libname}${release}${shared_ext}$major'
11761 shlibpath_var=LD_LIBRARY_PATH
11762 shlibpath_overrides_runpath=yes
11763 hardcode_into_libs=yes
11764 if test "$with_gnu_ld" = yes; then
11765 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11766 else
11767 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11768 case $host_os in
11769 sco3.2v5*)
11770 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11772 esac
11774 sys_lib_dlsearch_path_spec='/usr/lib'
11777 tpf*)
11778 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11779 version_type=linux
11780 need_lib_prefix=no
11781 need_version=no
11782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11783 shlibpath_var=LD_LIBRARY_PATH
11784 shlibpath_overrides_runpath=no
11785 hardcode_into_libs=yes
11788 uts4*)
11789 version_type=linux
11790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11791 soname_spec='${libname}${release}${shared_ext}$major'
11792 shlibpath_var=LD_LIBRARY_PATH
11795 # Shared libraries for VwWorks, >= 7 only at this stage
11796 # and (fpic) still incompatible with "large" code models
11797 # in a few configurations. Only for RTP mode in any case,
11798 # and upon explicit request at configure time.
11799 vxworks7*)
11800 dynamic_linker=no
11801 case ${with_multisubdir}-${enable_shared} in
11802 *large*)
11804 *mrtp*-yes)
11805 version_type=linux
11806 need_lib_prefix=no
11807 need_version=no
11808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11809 soname_spec='${libname}${release}${shared_ext}$major'
11810 dynamic_linker="$host_os module_loader"
11812 esac
11815 dynamic_linker=no
11817 esac
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11819 $as_echo "$dynamic_linker" >&6; }
11820 test "$dynamic_linker" = no && can_build_shared=no
11822 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11823 if test "$GCC" = yes; then
11824 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11827 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11828 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11830 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11831 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11926 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11927 hardcode_action=
11928 if test -n "$hardcode_libdir_flag_spec" ||
11929 test -n "$runpath_var" ||
11930 test "X$hardcode_automatic" = "Xyes" ; then
11932 # We can hardcode non-existent directories.
11933 if test "$hardcode_direct" != no &&
11934 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11935 # have to relink, otherwise we might link with an installed library
11936 # when we should be linking with a yet-to-be-installed one
11937 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11938 test "$hardcode_minus_L" != no; then
11939 # Linking always hardcodes the temporary library directory.
11940 hardcode_action=relink
11941 else
11942 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11943 hardcode_action=immediate
11945 else
11946 # We cannot hardcode anything, or else we can only hardcode existing
11947 # directories.
11948 hardcode_action=unsupported
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11951 $as_echo "$hardcode_action" >&6; }
11953 if test "$hardcode_action" = relink ||
11954 test "$inherit_rpath" = yes; then
11955 # Fast installation is not supported
11956 enable_fast_install=no
11957 elif test "$shlibpath_overrides_runpath" = yes ||
11958 test "$enable_shared" = no; then
11959 # Fast installation is not necessary
11960 enable_fast_install=needless
11968 if test "x$enable_dlopen" != xyes; then
11969 enable_dlopen=unknown
11970 enable_dlopen_self=unknown
11971 enable_dlopen_self_static=unknown
11972 else
11973 lt_cv_dlopen=no
11974 lt_cv_dlopen_libs=
11976 case $host_os in
11977 beos*)
11978 lt_cv_dlopen="load_add_on"
11979 lt_cv_dlopen_libs=
11980 lt_cv_dlopen_self=yes
11983 mingw* | pw32* | cegcc*)
11984 lt_cv_dlopen="LoadLibrary"
11985 lt_cv_dlopen_libs=
11988 cygwin*)
11989 lt_cv_dlopen="dlopen"
11990 lt_cv_dlopen_libs=
11993 darwin*)
11994 # if libdl is installed we need to link against it
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11996 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11997 if ${ac_cv_lib_dl_dlopen+:} false; then :
11998 $as_echo_n "(cached) " >&6
11999 else
12000 ac_check_lib_save_LIBS=$LIBS
12001 LIBS="-ldl $LIBS"
12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h. */
12005 /* Override any GCC internal prototype to avoid an error.
12006 Use char because int might match the return type of a GCC
12007 builtin and then its argument prototype would still apply. */
12008 #ifdef __cplusplus
12009 extern "C"
12010 #endif
12011 char dlopen ();
12013 main ()
12015 return dlopen ();
12017 return 0;
12019 _ACEOF
12020 if ac_fn_c_try_link "$LINENO"; then :
12021 ac_cv_lib_dl_dlopen=yes
12022 else
12023 ac_cv_lib_dl_dlopen=no
12025 rm -f core conftest.err conftest.$ac_objext \
12026 conftest$ac_exeext conftest.$ac_ext
12027 LIBS=$ac_check_lib_save_LIBS
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12030 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12031 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12032 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12033 else
12035 lt_cv_dlopen="dyld"
12036 lt_cv_dlopen_libs=
12037 lt_cv_dlopen_self=yes
12044 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12045 if test "x$ac_cv_func_shl_load" = xyes; then :
12046 lt_cv_dlopen="shl_load"
12047 else
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12049 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12050 if ${ac_cv_lib_dld_shl_load+:} false; then :
12051 $as_echo_n "(cached) " >&6
12052 else
12053 ac_check_lib_save_LIBS=$LIBS
12054 LIBS="-ldld $LIBS"
12055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056 /* end confdefs.h. */
12058 /* Override any GCC internal prototype to avoid an error.
12059 Use char because int might match the return type of a GCC
12060 builtin and then its argument prototype would still apply. */
12061 #ifdef __cplusplus
12062 extern "C"
12063 #endif
12064 char shl_load ();
12066 main ()
12068 return shl_load ();
12070 return 0;
12072 _ACEOF
12073 if ac_fn_c_try_link "$LINENO"; then :
12074 ac_cv_lib_dld_shl_load=yes
12075 else
12076 ac_cv_lib_dld_shl_load=no
12078 rm -f core conftest.err conftest.$ac_objext \
12079 conftest$ac_exeext conftest.$ac_ext
12080 LIBS=$ac_check_lib_save_LIBS
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12083 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12084 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12085 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12086 else
12087 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12088 if test "x$ac_cv_func_dlopen" = xyes; then :
12089 lt_cv_dlopen="dlopen"
12090 else
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12092 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12093 if ${ac_cv_lib_dl_dlopen+:} false; then :
12094 $as_echo_n "(cached) " >&6
12095 else
12096 ac_check_lib_save_LIBS=$LIBS
12097 LIBS="-ldl $LIBS"
12098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099 /* end confdefs.h. */
12101 /* Override any GCC internal prototype to avoid an error.
12102 Use char because int might match the return type of a GCC
12103 builtin and then its argument prototype would still apply. */
12104 #ifdef __cplusplus
12105 extern "C"
12106 #endif
12107 char dlopen ();
12109 main ()
12111 return dlopen ();
12113 return 0;
12115 _ACEOF
12116 if ac_fn_c_try_link "$LINENO"; then :
12117 ac_cv_lib_dl_dlopen=yes
12118 else
12119 ac_cv_lib_dl_dlopen=no
12121 rm -f core conftest.err conftest.$ac_objext \
12122 conftest$ac_exeext conftest.$ac_ext
12123 LIBS=$ac_check_lib_save_LIBS
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12126 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12127 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12128 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12129 else
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12131 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12132 if ${ac_cv_lib_svld_dlopen+:} false; then :
12133 $as_echo_n "(cached) " >&6
12134 else
12135 ac_check_lib_save_LIBS=$LIBS
12136 LIBS="-lsvld $LIBS"
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12140 /* Override any GCC internal prototype to avoid an error.
12141 Use char because int might match the return type of a GCC
12142 builtin and then its argument prototype would still apply. */
12143 #ifdef __cplusplus
12144 extern "C"
12145 #endif
12146 char dlopen ();
12148 main ()
12150 return dlopen ();
12152 return 0;
12154 _ACEOF
12155 if ac_fn_c_try_link "$LINENO"; then :
12156 ac_cv_lib_svld_dlopen=yes
12157 else
12158 ac_cv_lib_svld_dlopen=no
12160 rm -f core conftest.err conftest.$ac_objext \
12161 conftest$ac_exeext conftest.$ac_ext
12162 LIBS=$ac_check_lib_save_LIBS
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12165 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12166 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12167 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12168 else
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12170 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12171 if ${ac_cv_lib_dld_dld_link+:} false; then :
12172 $as_echo_n "(cached) " >&6
12173 else
12174 ac_check_lib_save_LIBS=$LIBS
12175 LIBS="-ldld $LIBS"
12176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177 /* end confdefs.h. */
12179 /* Override any GCC internal prototype to avoid an error.
12180 Use char because int might match the return type of a GCC
12181 builtin and then its argument prototype would still apply. */
12182 #ifdef __cplusplus
12183 extern "C"
12184 #endif
12185 char dld_link ();
12187 main ()
12189 return dld_link ();
12191 return 0;
12193 _ACEOF
12194 if ac_fn_c_try_link "$LINENO"; then :
12195 ac_cv_lib_dld_dld_link=yes
12196 else
12197 ac_cv_lib_dld_dld_link=no
12199 rm -f core conftest.err conftest.$ac_objext \
12200 conftest$ac_exeext conftest.$ac_ext
12201 LIBS=$ac_check_lib_save_LIBS
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12204 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12205 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12206 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12225 esac
12227 if test "x$lt_cv_dlopen" != xno; then
12228 enable_dlopen=yes
12229 else
12230 enable_dlopen=no
12233 case $lt_cv_dlopen in
12234 dlopen)
12235 save_CPPFLAGS="$CPPFLAGS"
12236 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12238 save_LDFLAGS="$LDFLAGS"
12239 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12241 save_LIBS="$LIBS"
12242 LIBS="$lt_cv_dlopen_libs $LIBS"
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12245 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12246 if ${lt_cv_dlopen_self+:} false; then :
12247 $as_echo_n "(cached) " >&6
12248 else
12249 if test "$cross_compiling" = yes; then :
12250 lt_cv_dlopen_self=cross
12251 else
12252 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12253 lt_status=$lt_dlunknown
12254 cat > conftest.$ac_ext <<_LT_EOF
12255 #line 12255 "configure"
12256 #include "confdefs.h"
12258 #if HAVE_DLFCN_H
12259 #include <dlfcn.h>
12260 #endif
12262 #include <stdio.h>
12264 #ifdef RTLD_GLOBAL
12265 # define LT_DLGLOBAL RTLD_GLOBAL
12266 #else
12267 # ifdef DL_GLOBAL
12268 # define LT_DLGLOBAL DL_GLOBAL
12269 # else
12270 # define LT_DLGLOBAL 0
12271 # endif
12272 #endif
12274 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12275 find out it does not work in some platform. */
12276 #ifndef LT_DLLAZY_OR_NOW
12277 # ifdef RTLD_LAZY
12278 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12279 # else
12280 # ifdef DL_LAZY
12281 # define LT_DLLAZY_OR_NOW DL_LAZY
12282 # else
12283 # ifdef RTLD_NOW
12284 # define LT_DLLAZY_OR_NOW RTLD_NOW
12285 # else
12286 # ifdef DL_NOW
12287 # define LT_DLLAZY_OR_NOW DL_NOW
12288 # else
12289 # define LT_DLLAZY_OR_NOW 0
12290 # endif
12291 # endif
12292 # endif
12293 # endif
12294 #endif
12296 /* When -fvisbility=hidden is used, assume the code has been annotated
12297 correspondingly for the symbols needed. */
12298 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12299 void fnord () __attribute__((visibility("default")));
12300 #endif
12302 void fnord () { int i=42; }
12303 int main ()
12305 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12306 int status = $lt_dlunknown;
12308 if (self)
12310 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12311 else
12313 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12314 else puts (dlerror ());
12316 /* dlclose (self); */
12318 else
12319 puts (dlerror ());
12321 return status;
12323 _LT_EOF
12324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12325 (eval $ac_link) 2>&5
12326 ac_status=$?
12327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12328 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12329 (./conftest; exit; ) >&5 2>/dev/null
12330 lt_status=$?
12331 case x$lt_status in
12332 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12333 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12334 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12335 esac
12336 else :
12337 # compilation failed
12338 lt_cv_dlopen_self=no
12341 rm -fr conftest*
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12346 $as_echo "$lt_cv_dlopen_self" >&6; }
12348 if test "x$lt_cv_dlopen_self" = xyes; then
12349 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12351 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12352 if ${lt_cv_dlopen_self_static+:} false; then :
12353 $as_echo_n "(cached) " >&6
12354 else
12355 if test "$cross_compiling" = yes; then :
12356 lt_cv_dlopen_self_static=cross
12357 else
12358 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12359 lt_status=$lt_dlunknown
12360 cat > conftest.$ac_ext <<_LT_EOF
12361 #line 12361 "configure"
12362 #include "confdefs.h"
12364 #if HAVE_DLFCN_H
12365 #include <dlfcn.h>
12366 #endif
12368 #include <stdio.h>
12370 #ifdef RTLD_GLOBAL
12371 # define LT_DLGLOBAL RTLD_GLOBAL
12372 #else
12373 # ifdef DL_GLOBAL
12374 # define LT_DLGLOBAL DL_GLOBAL
12375 # else
12376 # define LT_DLGLOBAL 0
12377 # endif
12378 #endif
12380 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12381 find out it does not work in some platform. */
12382 #ifndef LT_DLLAZY_OR_NOW
12383 # ifdef RTLD_LAZY
12384 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12385 # else
12386 # ifdef DL_LAZY
12387 # define LT_DLLAZY_OR_NOW DL_LAZY
12388 # else
12389 # ifdef RTLD_NOW
12390 # define LT_DLLAZY_OR_NOW RTLD_NOW
12391 # else
12392 # ifdef DL_NOW
12393 # define LT_DLLAZY_OR_NOW DL_NOW
12394 # else
12395 # define LT_DLLAZY_OR_NOW 0
12396 # endif
12397 # endif
12398 # endif
12399 # endif
12400 #endif
12402 /* When -fvisbility=hidden is used, assume the code has been annotated
12403 correspondingly for the symbols needed. */
12404 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12405 void fnord () __attribute__((visibility("default")));
12406 #endif
12408 void fnord () { int i=42; }
12409 int main ()
12411 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12412 int status = $lt_dlunknown;
12414 if (self)
12416 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12417 else
12419 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12420 else puts (dlerror ());
12422 /* dlclose (self); */
12424 else
12425 puts (dlerror ());
12427 return status;
12429 _LT_EOF
12430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12431 (eval $ac_link) 2>&5
12432 ac_status=$?
12433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12434 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12435 (./conftest; exit; ) >&5 2>/dev/null
12436 lt_status=$?
12437 case x$lt_status in
12438 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12439 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12440 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12441 esac
12442 else :
12443 # compilation failed
12444 lt_cv_dlopen_self_static=no
12447 rm -fr conftest*
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12452 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12455 CPPFLAGS="$save_CPPFLAGS"
12456 LDFLAGS="$save_LDFLAGS"
12457 LIBS="$save_LIBS"
12459 esac
12461 case $lt_cv_dlopen_self in
12462 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12463 *) enable_dlopen_self=unknown ;;
12464 esac
12466 case $lt_cv_dlopen_self_static in
12467 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12468 *) enable_dlopen_self_static=unknown ;;
12469 esac
12488 striplib=
12489 old_striplib=
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12491 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12492 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12493 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12494 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12496 $as_echo "yes" >&6; }
12497 else
12498 # FIXME - insert some real tests, host_os isn't really good enough
12499 case $host_os in
12500 darwin*)
12501 if test -n "$STRIP" ; then
12502 striplib="$STRIP -x"
12503 old_striplib="$STRIP -S"
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12505 $as_echo "yes" >&6; }
12506 else
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12508 $as_echo "no" >&6; }
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513 $as_echo "no" >&6; }
12515 esac
12529 # Report which library types will actually be built
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12531 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12533 $as_echo "$can_build_shared" >&6; }
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12536 $as_echo_n "checking whether to build shared libraries... " >&6; }
12537 test "$can_build_shared" = "no" && enable_shared=no
12539 # On AIX, shared libraries and static libraries use the same namespace, and
12540 # are all built from PIC.
12541 case $host_os in
12542 aix3*)
12543 test "$enable_shared" = yes && enable_static=no
12544 if test -n "$RANLIB"; then
12545 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12546 postinstall_cmds='$RANLIB $lib'
12550 aix[4-9]*)
12551 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12552 test "$enable_shared" = yes && enable_static=no
12555 esac
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12557 $as_echo "$enable_shared" >&6; }
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12560 $as_echo_n "checking whether to build static libraries... " >&6; }
12561 # Make sure either enable_shared or enable_static is yes.
12562 test "$enable_shared" = yes || enable_static=yes
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12564 $as_echo "$enable_static" >&6; }
12570 ac_ext=c
12571 ac_cpp='$CPP $CPPFLAGS'
12572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12576 CC="$lt_save_CC"
12578 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12579 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12580 (test "X$CXX" != "Xg++"))) ; then
12581 ac_ext=cpp
12582 ac_cpp='$CXXCPP $CPPFLAGS'
12583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12587 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12588 if test -z "$CXXCPP"; then
12589 if ${ac_cv_prog_CXXCPP+:} false; then :
12590 $as_echo_n "(cached) " >&6
12591 else
12592 # Double quotes because CXXCPP needs to be expanded
12593 for CXXCPP in "$CXX -E" "/lib/cpp"
12595 ac_preproc_ok=false
12596 for ac_cxx_preproc_warn_flag in '' yes
12598 # Use a header file that comes with gcc, so configuring glibc
12599 # with a fresh cross-compiler works.
12600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12601 # <limits.h> exists even on freestanding compilers.
12602 # On the NeXT, cc -E runs the code through the compiler's parser,
12603 # not just through cpp. "Syntax error" is here to catch this case.
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h. */
12606 #ifdef __STDC__
12607 # include <limits.h>
12608 #else
12609 # include <assert.h>
12610 #endif
12611 Syntax error
12612 _ACEOF
12613 if ac_fn_cxx_try_cpp "$LINENO"; then :
12615 else
12616 # Broken: fails on valid input.
12617 continue
12619 rm -f conftest.err conftest.i conftest.$ac_ext
12621 # OK, works on sane cases. Now check whether nonexistent headers
12622 # can be detected and how.
12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h. */
12625 #include <ac_nonexistent.h>
12626 _ACEOF
12627 if ac_fn_cxx_try_cpp "$LINENO"; then :
12628 # Broken: success on invalid input.
12629 continue
12630 else
12631 # Passes both tests.
12632 ac_preproc_ok=:
12633 break
12635 rm -f conftest.err conftest.i conftest.$ac_ext
12637 done
12638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12639 rm -f conftest.i conftest.err conftest.$ac_ext
12640 if $ac_preproc_ok; then :
12641 break
12644 done
12645 ac_cv_prog_CXXCPP=$CXXCPP
12648 CXXCPP=$ac_cv_prog_CXXCPP
12649 else
12650 ac_cv_prog_CXXCPP=$CXXCPP
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12653 $as_echo "$CXXCPP" >&6; }
12654 ac_preproc_ok=false
12655 for ac_cxx_preproc_warn_flag in '' yes
12657 # Use a header file that comes with gcc, so configuring glibc
12658 # with a fresh cross-compiler works.
12659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12660 # <limits.h> exists even on freestanding compilers.
12661 # On the NeXT, cc -E runs the code through the compiler's parser,
12662 # not just through cpp. "Syntax error" is here to catch this case.
12663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664 /* end confdefs.h. */
12665 #ifdef __STDC__
12666 # include <limits.h>
12667 #else
12668 # include <assert.h>
12669 #endif
12670 Syntax error
12671 _ACEOF
12672 if ac_fn_cxx_try_cpp "$LINENO"; then :
12674 else
12675 # Broken: fails on valid input.
12676 continue
12678 rm -f conftest.err conftest.i conftest.$ac_ext
12680 # OK, works on sane cases. Now check whether nonexistent headers
12681 # can be detected and how.
12682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12683 /* end confdefs.h. */
12684 #include <ac_nonexistent.h>
12685 _ACEOF
12686 if ac_fn_cxx_try_cpp "$LINENO"; then :
12687 # Broken: success on invalid input.
12688 continue
12689 else
12690 # Passes both tests.
12691 ac_preproc_ok=:
12692 break
12694 rm -f conftest.err conftest.i conftest.$ac_ext
12696 done
12697 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12698 rm -f conftest.i conftest.err conftest.$ac_ext
12699 if $ac_preproc_ok; then :
12701 else
12702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12704 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12705 See \`config.log' for more details" "$LINENO" 5; }
12708 ac_ext=c
12709 ac_cpp='$CPP $CPPFLAGS'
12710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12714 else
12715 _lt_caught_CXX_error=yes
12718 ac_ext=cpp
12719 ac_cpp='$CXXCPP $CPPFLAGS'
12720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12724 archive_cmds_need_lc_CXX=no
12725 allow_undefined_flag_CXX=
12726 always_export_symbols_CXX=no
12727 archive_expsym_cmds_CXX=
12728 compiler_needs_object_CXX=no
12729 export_dynamic_flag_spec_CXX=
12730 hardcode_direct_CXX=no
12731 hardcode_direct_absolute_CXX=no
12732 hardcode_libdir_flag_spec_CXX=
12733 hardcode_libdir_flag_spec_ld_CXX=
12734 hardcode_libdir_separator_CXX=
12735 hardcode_minus_L_CXX=no
12736 hardcode_shlibpath_var_CXX=unsupported
12737 hardcode_automatic_CXX=no
12738 inherit_rpath_CXX=no
12739 module_cmds_CXX=
12740 module_expsym_cmds_CXX=
12741 link_all_deplibs_CXX=unknown
12742 old_archive_cmds_CXX=$old_archive_cmds
12743 reload_flag_CXX=$reload_flag
12744 reload_cmds_CXX=$reload_cmds
12745 no_undefined_flag_CXX=
12746 whole_archive_flag_spec_CXX=
12747 enable_shared_with_static_runtimes_CXX=no
12749 # Source file extension for C++ test sources.
12750 ac_ext=cpp
12752 # Object file extension for compiled C++ test sources.
12753 objext=o
12754 objext_CXX=$objext
12756 # No sense in running all these tests if we already determined that
12757 # the CXX compiler isn't working. Some variables (like enable_shared)
12758 # are currently assumed to apply to all compilers on this platform,
12759 # and will be corrupted by setting them based on a non-working compiler.
12760 if test "$_lt_caught_CXX_error" != yes; then
12761 # Code to be used in simple compile tests
12762 lt_simple_compile_test_code="int some_variable = 0;"
12764 # Code to be used in simple link tests
12765 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12767 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12774 # If no C compiler was specified, use CC.
12775 LTCC=${LTCC-"$CC"}
12777 # If no C compiler flags were specified, use CFLAGS.
12778 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12780 # Allow CC to be a program name with arguments.
12781 compiler=$CC
12784 # save warnings/boilerplate of simple test code
12785 ac_outfile=conftest.$ac_objext
12786 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12787 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12788 _lt_compiler_boilerplate=`cat conftest.err`
12789 $RM conftest*
12791 ac_outfile=conftest.$ac_objext
12792 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12793 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12794 _lt_linker_boilerplate=`cat conftest.err`
12795 $RM -r conftest*
12798 # Allow CC to be a program name with arguments.
12799 lt_save_CC=$CC
12800 lt_save_LD=$LD
12801 lt_save_GCC=$GCC
12802 GCC=$GXX
12803 lt_save_with_gnu_ld=$with_gnu_ld
12804 lt_save_path_LD=$lt_cv_path_LD
12805 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12806 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12807 else
12808 $as_unset lt_cv_prog_gnu_ld
12810 if test -n "${lt_cv_path_LDCXX+set}"; then
12811 lt_cv_path_LD=$lt_cv_path_LDCXX
12812 else
12813 $as_unset lt_cv_path_LD
12815 test -z "${LDCXX+set}" || LD=$LDCXX
12816 CC=${CXX-"c++"}
12817 compiler=$CC
12818 compiler_CXX=$CC
12819 for cc_temp in $compiler""; do
12820 case $cc_temp in
12821 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12822 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12823 \-*) ;;
12824 *) break;;
12825 esac
12826 done
12827 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12830 if test -n "$compiler"; then
12831 # We don't want -fno-exception when compiling C++ code, so set the
12832 # no_builtin_flag separately
12833 if test "$GXX" = yes; then
12834 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12835 else
12836 lt_prog_compiler_no_builtin_flag_CXX=
12839 if test "$GXX" = yes; then
12840 # Set up default GNU C++ configuration
12844 # Check whether --with-gnu-ld was given.
12845 if test "${with_gnu_ld+set}" = set; then :
12846 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12847 else
12848 with_gnu_ld=no
12851 ac_prog=ld
12852 if test "$GCC" = yes; then
12853 # Check if gcc -print-prog-name=ld gives a path.
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12855 $as_echo_n "checking for ld used by $CC... " >&6; }
12856 case $host in
12857 *-*-mingw*)
12858 # gcc leaves a trailing carriage return which upsets mingw
12859 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12861 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12862 esac
12863 case $ac_prog in
12864 # Accept absolute paths.
12865 [\\/]* | ?:[\\/]*)
12866 re_direlt='/[^/][^/]*/\.\./'
12867 # Canonicalize the pathname of ld
12868 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12869 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12870 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12871 done
12872 test -z "$LD" && LD="$ac_prog"
12875 # If it fails, then pretend we aren't using GCC.
12876 ac_prog=ld
12879 # If it is relative, then search for the first ld in PATH.
12880 with_gnu_ld=unknown
12882 esac
12883 elif test "$with_gnu_ld" = yes; then
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12885 $as_echo_n "checking for GNU ld... " >&6; }
12886 else
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12888 $as_echo_n "checking for non-GNU ld... " >&6; }
12890 if ${lt_cv_path_LD+:} false; then :
12891 $as_echo_n "(cached) " >&6
12892 else
12893 if test -z "$LD"; then
12894 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12895 for ac_dir in $PATH; do
12896 IFS="$lt_save_ifs"
12897 test -z "$ac_dir" && ac_dir=.
12898 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12899 lt_cv_path_LD="$ac_dir/$ac_prog"
12900 # Check to see if the program is GNU ld. I'd rather use --version,
12901 # but apparently some variants of GNU ld only accept -v.
12902 # Break only if it was the GNU/non-GNU ld that we prefer.
12903 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12904 *GNU* | *'with BFD'*)
12905 test "$with_gnu_ld" != no && break
12908 test "$with_gnu_ld" != yes && break
12910 esac
12912 done
12913 IFS="$lt_save_ifs"
12914 else
12915 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12919 LD="$lt_cv_path_LD"
12920 if test -n "$LD"; then
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12922 $as_echo "$LD" >&6; }
12923 else
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12925 $as_echo "no" >&6; }
12927 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12929 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12930 if ${lt_cv_prog_gnu_ld+:} false; then :
12931 $as_echo_n "(cached) " >&6
12932 else
12933 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12934 case `$LD -v 2>&1 </dev/null` in
12935 *GNU* | *'with BFD'*)
12936 lt_cv_prog_gnu_ld=yes
12939 lt_cv_prog_gnu_ld=no
12941 esac
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12944 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12945 with_gnu_ld=$lt_cv_prog_gnu_ld
12953 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12954 # archiving commands below assume that GNU ld is being used.
12955 if test "$with_gnu_ld" = yes; then
12956 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12957 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12959 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12960 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12962 # If archive_cmds runs LD, not CC, wlarc should be empty
12963 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12964 # investigate it a little bit more. (MM)
12965 wlarc='${wl}'
12967 # ancient GNU ld didn't support --whole-archive et. al.
12968 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12969 $GREP 'no-whole-archive' > /dev/null; then
12970 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12971 else
12972 whole_archive_flag_spec_CXX=
12974 else
12975 with_gnu_ld=no
12976 wlarc=
12978 # A generic and very simple default shared library creation
12979 # command for GNU C++ for the case where it uses the native
12980 # linker, instead of GNU ld. If possible, this setting should
12981 # overridden to take advantage of the native linker features on
12982 # the platform it is being used on.
12983 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12986 # Commands to make compiler produce verbose output that lists
12987 # what "hidden" libraries, object files and flags are used when
12988 # linking a shared library.
12989 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12991 else
12992 GXX=no
12993 with_gnu_ld=no
12994 wlarc=
12997 # PORTME: fill in a description of your system's C++ link characteristics
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12999 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13000 ld_shlibs_CXX=yes
13001 case $host_os in
13002 aix3*)
13003 # FIXME: insert proper C++ library support
13004 ld_shlibs_CXX=no
13006 aix[4-9]*)
13007 if test "$host_cpu" = ia64; then
13008 # On IA64, the linker does run time linking by default, so we don't
13009 # have to do anything special.
13010 aix_use_runtimelinking=no
13011 exp_sym_flag='-Bexport'
13012 no_entry_flag=""
13013 else
13014 aix_use_runtimelinking=no
13016 # Test if we are trying to use run time linking or normal
13017 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13018 # need to do runtime linking.
13019 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13020 for ld_flag in $LDFLAGS; do
13021 case $ld_flag in
13022 *-brtl*)
13023 aix_use_runtimelinking=yes
13024 break
13026 esac
13027 done
13029 esac
13031 exp_sym_flag='-bexport'
13032 no_entry_flag='-bnoentry'
13035 # When large executables or shared objects are built, AIX ld can
13036 # have problems creating the table of contents. If linking a library
13037 # or program results in "error TOC overflow" add -mminimal-toc to
13038 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13039 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13041 archive_cmds_CXX=''
13042 hardcode_direct_CXX=yes
13043 hardcode_direct_absolute_CXX=yes
13044 hardcode_libdir_separator_CXX=':'
13045 link_all_deplibs_CXX=yes
13046 file_list_spec_CXX='${wl}-f,'
13048 if test "$GXX" = yes; then
13049 case $host_os in aix4.[012]|aix4.[012].*)
13050 # We only want to do this on AIX 4.2 and lower, the check
13051 # below for broken collect2 doesn't work under 4.3+
13052 collect2name=`${CC} -print-prog-name=collect2`
13053 if test -f "$collect2name" &&
13054 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13055 then
13056 # We have reworked collect2
13058 else
13059 # We have old collect2
13060 hardcode_direct_CXX=unsupported
13061 # It fails to find uninstalled libraries when the uninstalled
13062 # path is not listed in the libpath. Setting hardcode_minus_L
13063 # to unsupported forces relinking
13064 hardcode_minus_L_CXX=yes
13065 hardcode_libdir_flag_spec_CXX='-L$libdir'
13066 hardcode_libdir_separator_CXX=
13068 esac
13069 shared_flag='-shared'
13070 if test "$aix_use_runtimelinking" = yes; then
13071 shared_flag="$shared_flag "'${wl}-G'
13073 else
13074 # not using gcc
13075 if test "$host_cpu" = ia64; then
13076 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13077 # chokes on -Wl,-G. The following line is correct:
13078 shared_flag='-G'
13079 else
13080 if test "$aix_use_runtimelinking" = yes; then
13081 shared_flag='${wl}-G'
13082 else
13083 shared_flag='${wl}-bM:SRE'
13088 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13089 # It seems that -bexpall does not export symbols beginning with
13090 # underscore (_), so it is better to generate a list of symbols to
13091 # export.
13092 always_export_symbols_CXX=yes
13093 if test "$aix_use_runtimelinking" = yes; then
13094 # Warning - without using the other runtime loading flags (-brtl),
13095 # -berok will link without error, but may produce a broken library.
13096 allow_undefined_flag_CXX='-berok'
13097 # Determine the default libpath from the value encoded in an empty
13098 # executable.
13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h. */
13103 main ()
13107 return 0;
13109 _ACEOF
13110 if ac_fn_cxx_try_link "$LINENO"; then :
13112 lt_aix_libpath_sed='
13113 /Import File Strings/,/^$/ {
13114 /^0/ {
13115 s/^0 *\(.*\)$/\1/
13119 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13120 # Check for a 64-bit object if we didn't find anything.
13121 if test -z "$aix_libpath"; then
13122 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13125 rm -f core conftest.err conftest.$ac_objext \
13126 conftest$ac_exeext conftest.$ac_ext
13127 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13129 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13131 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13132 else
13133 if test "$host_cpu" = ia64; then
13134 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13135 allow_undefined_flag_CXX="-z nodefs"
13136 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13137 else
13138 # Determine the default libpath from the value encoded in an
13139 # empty executable.
13140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13141 /* end confdefs.h. */
13144 main ()
13148 return 0;
13150 _ACEOF
13151 if ac_fn_cxx_try_link "$LINENO"; then :
13153 lt_aix_libpath_sed='
13154 /Import File Strings/,/^$/ {
13155 /^0/ {
13156 s/^0 *\(.*\)$/\1/
13160 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13161 # Check for a 64-bit object if we didn't find anything.
13162 if test -z "$aix_libpath"; then
13163 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13166 rm -f core conftest.err conftest.$ac_objext \
13167 conftest$ac_exeext conftest.$ac_ext
13168 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13170 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13171 # Warning - without using the other run time loading flags,
13172 # -berok will link without error, but may produce a broken library.
13173 no_undefined_flag_CXX=' ${wl}-bernotok'
13174 allow_undefined_flag_CXX=' ${wl}-berok'
13175 if test "$with_gnu_ld" = yes; then
13176 # We only use this code for GNU lds that support --whole-archive.
13177 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13178 else
13179 # Exported symbols can be pulled into shared objects from archives
13180 whole_archive_flag_spec_CXX='$convenience'
13182 archive_cmds_need_lc_CXX=yes
13183 # This is similar to how AIX traditionally builds its shared
13184 # libraries.
13185 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13190 beos*)
13191 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13192 allow_undefined_flag_CXX=unsupported
13193 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13194 # support --undefined. This deserves some investigation. FIXME
13195 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13196 else
13197 ld_shlibs_CXX=no
13201 chorus*)
13202 case $cc_basename in
13204 # FIXME: insert proper C++ library support
13205 ld_shlibs_CXX=no
13207 esac
13210 cygwin* | mingw* | pw32* | cegcc*)
13211 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13212 # as there is no search path for DLLs.
13213 hardcode_libdir_flag_spec_CXX='-L$libdir'
13214 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13215 allow_undefined_flag_CXX=unsupported
13216 always_export_symbols_CXX=no
13217 enable_shared_with_static_runtimes_CXX=yes
13219 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13220 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13221 # If the export-symbols file already is a .def file (1st line
13222 # is EXPORTS), use it as is; otherwise, prepend...
13223 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13224 cp $export_symbols $output_objdir/$soname.def;
13225 else
13226 echo EXPORTS > $output_objdir/$soname.def;
13227 cat $export_symbols >> $output_objdir/$soname.def;
13229 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13230 else
13231 ld_shlibs_CXX=no
13234 darwin* | rhapsody*)
13237 archive_cmds_need_lc_CXX=no
13238 hardcode_direct_CXX=no
13239 hardcode_automatic_CXX=yes
13240 hardcode_shlibpath_var_CXX=unsupported
13241 if test "$lt_cv_ld_force_load" = "yes"; then
13242 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13243 else
13244 whole_archive_flag_spec_CXX=''
13246 link_all_deplibs_CXX=yes
13247 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13248 case $cc_basename in
13249 ifort*) _lt_dar_can_shared=yes ;;
13250 *) _lt_dar_can_shared=$GCC ;;
13251 esac
13252 if test "$_lt_dar_can_shared" = "yes"; then
13253 output_verbose_link_cmd=func_echo_all
13254 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13255 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13256 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13257 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13258 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13259 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13260 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13263 else
13264 ld_shlibs_CXX=no
13269 dgux*)
13270 case $cc_basename in
13271 ec++*)
13272 # FIXME: insert proper C++ library support
13273 ld_shlibs_CXX=no
13275 ghcx*)
13276 # Green Hills C++ Compiler
13277 # FIXME: insert proper C++ library support
13278 ld_shlibs_CXX=no
13281 # FIXME: insert proper C++ library support
13282 ld_shlibs_CXX=no
13284 esac
13287 freebsd2.*)
13288 # C++ shared libraries reported to be fairly broken before
13289 # switch to ELF
13290 ld_shlibs_CXX=no
13293 freebsd-elf*)
13294 archive_cmds_need_lc_CXX=no
13297 freebsd* | dragonfly*)
13298 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13299 # conventions
13300 ld_shlibs_CXX=yes
13303 gnu*)
13306 haiku*)
13307 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13308 link_all_deplibs_CXX=yes
13311 hpux9*)
13312 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13313 hardcode_libdir_separator_CXX=:
13314 export_dynamic_flag_spec_CXX='${wl}-E'
13315 hardcode_direct_CXX=yes
13316 hardcode_minus_L_CXX=yes # Not in the search PATH,
13317 # but as the default
13318 # location of the library.
13320 case $cc_basename in
13321 CC*)
13322 # FIXME: insert proper C++ library support
13323 ld_shlibs_CXX=no
13325 aCC*)
13326 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13327 # Commands to make compiler produce verbose output that lists
13328 # what "hidden" libraries, object files and flags are used when
13329 # linking a shared library.
13331 # There doesn't appear to be a way to prevent this compiler from
13332 # explicitly linking system object files so we need to strip them
13333 # from the output so that they don't get included in the library
13334 # dependencies.
13335 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13338 if test "$GXX" = yes; then
13339 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13340 else
13341 # FIXME: insert proper C++ library support
13342 ld_shlibs_CXX=no
13345 esac
13348 hpux10*|hpux11*)
13349 if test $with_gnu_ld = no; then
13350 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13351 hardcode_libdir_separator_CXX=:
13353 case $host_cpu in
13354 hppa*64*|ia64*)
13357 export_dynamic_flag_spec_CXX='${wl}-E'
13359 esac
13361 case $host_cpu in
13362 hppa*64*|ia64*)
13363 hardcode_direct_CXX=no
13364 hardcode_shlibpath_var_CXX=no
13367 hardcode_direct_CXX=yes
13368 hardcode_direct_absolute_CXX=yes
13369 hardcode_minus_L_CXX=yes # Not in the search PATH,
13370 # but as the default
13371 # location of the library.
13373 esac
13375 case $cc_basename in
13376 CC*)
13377 # FIXME: insert proper C++ library support
13378 ld_shlibs_CXX=no
13380 aCC*)
13381 case $host_cpu in
13382 hppa*64*)
13383 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13385 ia64*)
13386 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13389 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13391 esac
13392 # Commands to make compiler produce verbose output that lists
13393 # what "hidden" libraries, object files and flags are used when
13394 # linking a shared library.
13396 # There doesn't appear to be a way to prevent this compiler from
13397 # explicitly linking system object files so we need to strip them
13398 # from the output so that they don't get included in the library
13399 # dependencies.
13400 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13403 if test "$GXX" = yes; then
13404 if test $with_gnu_ld = no; then
13405 case $host_cpu in
13406 hppa*64*)
13407 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13409 ia64*)
13410 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13413 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13415 esac
13417 else
13418 # FIXME: insert proper C++ library support
13419 ld_shlibs_CXX=no
13422 esac
13425 interix[3-9]*)
13426 hardcode_direct_CXX=no
13427 hardcode_shlibpath_var_CXX=no
13428 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13429 export_dynamic_flag_spec_CXX='${wl}-E'
13430 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13431 # Instead, shared libraries are loaded at an image base (0x10000000 by
13432 # default) and relocated if they conflict, which is a slow very memory
13433 # consuming and fragmenting process. To avoid this, we pick a random,
13434 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13435 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13436 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13437 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13439 irix5* | irix6*)
13440 case $cc_basename in
13441 CC*)
13442 # SGI C++
13443 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13445 # Archives containing C++ object files must be created using
13446 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13447 # necessary to make sure instantiated templates are included
13448 # in the archive.
13449 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13452 if test "$GXX" = yes; then
13453 if test "$with_gnu_ld" = no; then
13454 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13455 else
13456 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13459 link_all_deplibs_CXX=yes
13461 esac
13462 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13463 hardcode_libdir_separator_CXX=:
13464 inherit_rpath_CXX=yes
13467 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13468 case $cc_basename in
13469 KCC*)
13470 # Kuck and Associates, Inc. (KAI) C++ Compiler
13472 # KCC will only create a shared library if the output file
13473 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13474 # to its proper name (with version) after linking.
13475 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13476 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13477 # Commands to make compiler produce verbose output that lists
13478 # what "hidden" libraries, object files and flags are used when
13479 # linking a shared library.
13481 # There doesn't appear to be a way to prevent this compiler from
13482 # explicitly linking system object files so we need to strip them
13483 # from the output so that they don't get included in the library
13484 # dependencies.
13485 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13487 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13488 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13490 # Archives containing C++ object files must be created using
13491 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13492 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13494 icpc* | ecpc* )
13495 # Intel C++
13496 with_gnu_ld=yes
13497 # version 8.0 and above of icpc choke on multiply defined symbols
13498 # if we add $predep_objects and $postdep_objects, however 7.1 and
13499 # earlier do not add the objects themselves.
13500 case `$CC -V 2>&1` in
13501 *"Version 7."*)
13502 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13503 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13505 *) # Version 8.0 or newer
13506 tmp_idyn=
13507 case $host_cpu in
13508 ia64*) tmp_idyn=' -i_dynamic';;
13509 esac
13510 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13511 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13513 esac
13514 archive_cmds_need_lc_CXX=no
13515 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13516 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13517 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13519 pgCC* | pgcpp*)
13520 # Portland Group C++ compiler
13521 case `$CC -V` in
13522 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13523 prelink_cmds_CXX='tpldir=Template.dir~
13524 rm -rf $tpldir~
13525 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13526 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13527 old_archive_cmds_CXX='tpldir=Template.dir~
13528 rm -rf $tpldir~
13529 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13530 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13531 $RANLIB $oldlib'
13532 archive_cmds_CXX='tpldir=Template.dir~
13533 rm -rf $tpldir~
13534 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13535 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13536 archive_expsym_cmds_CXX='tpldir=Template.dir~
13537 rm -rf $tpldir~
13538 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13539 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13541 *) # Version 6 and above use weak symbols
13542 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13543 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13545 esac
13547 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13548 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13549 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13551 cxx*)
13552 # Compaq C++
13553 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13554 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13556 runpath_var=LD_RUN_PATH
13557 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13558 hardcode_libdir_separator_CXX=:
13560 # Commands to make compiler produce verbose output that lists
13561 # what "hidden" libraries, object files and flags are used when
13562 # linking a shared library.
13564 # There doesn't appear to be a way to prevent this compiler from
13565 # explicitly linking system object files so we need to strip them
13566 # from the output so that they don't get included in the library
13567 # dependencies.
13568 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13570 xl* | mpixl* | bgxl*)
13571 # IBM XL 8.0 on PPC, with GNU ld
13572 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13573 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13574 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13575 if test "x$supports_anon_versioning" = xyes; then
13576 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13577 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13578 echo "local: *; };" >> $output_objdir/$libname.ver~
13579 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13583 case `$CC -V 2>&1 | sed 5q` in
13584 *Sun\ C*)
13585 # Sun C++ 5.9
13586 no_undefined_flag_CXX=' -zdefs'
13587 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13588 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13589 hardcode_libdir_flag_spec_CXX='-R$libdir'
13590 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13591 compiler_needs_object_CXX=yes
13593 # Not sure whether something based on
13594 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13595 # would be better.
13596 output_verbose_link_cmd='func_echo_all'
13598 # Archives containing C++ object files must be created using
13599 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13600 # necessary to make sure instantiated templates are included
13601 # in the archive.
13602 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13604 esac
13606 esac
13609 lynxos*)
13610 # FIXME: insert proper C++ library support
13611 ld_shlibs_CXX=no
13614 m88k*)
13615 # FIXME: insert proper C++ library support
13616 ld_shlibs_CXX=no
13619 mvs*)
13620 case $cc_basename in
13621 cxx*)
13622 # FIXME: insert proper C++ library support
13623 ld_shlibs_CXX=no
13626 # FIXME: insert proper C++ library support
13627 ld_shlibs_CXX=no
13629 esac
13632 netbsd*)
13633 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13634 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13635 wlarc=
13636 hardcode_libdir_flag_spec_CXX='-R$libdir'
13637 hardcode_direct_CXX=yes
13638 hardcode_shlibpath_var_CXX=no
13640 # Workaround some broken pre-1.5 toolchains
13641 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13644 *nto* | *qnx*)
13645 ld_shlibs_CXX=yes
13648 openbsd2*)
13649 # C++ shared libraries are fairly broken
13650 ld_shlibs_CXX=no
13653 openbsd*)
13654 if test -f /usr/libexec/ld.so; then
13655 hardcode_direct_CXX=yes
13656 hardcode_shlibpath_var_CXX=no
13657 hardcode_direct_absolute_CXX=yes
13658 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13659 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13660 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13661 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13662 export_dynamic_flag_spec_CXX='${wl}-E'
13663 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13665 output_verbose_link_cmd=func_echo_all
13666 else
13667 ld_shlibs_CXX=no
13671 osf3* | osf4* | osf5*)
13672 case $cc_basename in
13673 KCC*)
13674 # Kuck and Associates, Inc. (KAI) C++ Compiler
13676 # KCC will only create a shared library if the output file
13677 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13678 # to its proper name (with version) after linking.
13679 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13681 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13682 hardcode_libdir_separator_CXX=:
13684 # Archives containing C++ object files must be created using
13685 # the KAI C++ compiler.
13686 case $host in
13687 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13688 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13689 esac
13691 RCC*)
13692 # Rational C++ 2.4.1
13693 # FIXME: insert proper C++ library support
13694 ld_shlibs_CXX=no
13696 cxx*)
13697 case $host in
13698 osf3*)
13699 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13700 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13701 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13704 allow_undefined_flag_CXX=' -expect_unresolved \*'
13705 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13706 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13707 echo "-hidden">> $lib.exp~
13708 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13709 $RM $lib.exp'
13710 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13712 esac
13714 hardcode_libdir_separator_CXX=:
13716 # Commands to make compiler produce verbose output that lists
13717 # what "hidden" libraries, object files and flags are used when
13718 # linking a shared library.
13720 # There doesn't appear to be a way to prevent this compiler from
13721 # explicitly linking system object files so we need to strip them
13722 # from the output so that they don't get included in the library
13723 # dependencies.
13724 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13727 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13728 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13729 case $host in
13730 osf3*)
13731 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13734 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13736 esac
13738 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13739 hardcode_libdir_separator_CXX=:
13741 # Commands to make compiler produce verbose output that lists
13742 # what "hidden" libraries, object files and flags are used when
13743 # linking a shared library.
13744 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13746 else
13747 # FIXME: insert proper C++ library support
13748 ld_shlibs_CXX=no
13751 esac
13754 psos*)
13755 # FIXME: insert proper C++ library support
13756 ld_shlibs_CXX=no
13759 sunos4*)
13760 case $cc_basename in
13761 CC*)
13762 # Sun C++ 4.x
13763 # FIXME: insert proper C++ library support
13764 ld_shlibs_CXX=no
13766 lcc*)
13767 # Lucid
13768 # FIXME: insert proper C++ library support
13769 ld_shlibs_CXX=no
13772 # FIXME: insert proper C++ library support
13773 ld_shlibs_CXX=no
13775 esac
13778 solaris*)
13779 case $cc_basename in
13780 CC*)
13781 # Sun C++ 4.2, 5.x and Centerline C++
13782 archive_cmds_need_lc_CXX=yes
13783 no_undefined_flag_CXX=' -zdefs'
13784 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13785 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13786 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13788 hardcode_libdir_flag_spec_CXX='-R$libdir'
13789 hardcode_shlibpath_var_CXX=no
13790 case $host_os in
13791 solaris2.[0-5] | solaris2.[0-5].*) ;;
13793 # The compiler driver will combine and reorder linker options,
13794 # but understands `-z linker_flag'.
13795 # Supported since Solaris 2.6 (maybe 2.5.1?)
13796 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13798 esac
13799 link_all_deplibs_CXX=yes
13801 output_verbose_link_cmd='func_echo_all'
13803 # Archives containing C++ object files must be created using
13804 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13805 # necessary to make sure instantiated templates are included
13806 # in the archive.
13807 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13809 gcx*)
13810 # Green Hills C++ Compiler
13811 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13813 # The C++ compiler must be used to create the archive.
13814 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13817 # GNU C++ compiler with Solaris linker
13818 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13819 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13820 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13821 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13822 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13823 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13825 # Commands to make compiler produce verbose output that lists
13826 # what "hidden" libraries, object files and flags are used when
13827 # linking a shared library.
13828 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13829 else
13830 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13831 # platform.
13832 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13833 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13834 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13836 # Commands to make compiler produce verbose output that lists
13837 # what "hidden" libraries, object files and flags are used when
13838 # linking a shared library.
13839 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13842 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13843 case $host_os in
13844 solaris2.[0-5] | solaris2.[0-5].*) ;;
13846 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13848 esac
13851 esac
13854 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13855 no_undefined_flag_CXX='${wl}-z,text'
13856 archive_cmds_need_lc_CXX=no
13857 hardcode_shlibpath_var_CXX=no
13858 runpath_var='LD_RUN_PATH'
13860 case $cc_basename in
13861 CC*)
13862 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13863 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13866 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13867 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13869 esac
13872 sysv5* | sco3.2v5* | sco5v6*)
13873 # Note: We can NOT use -z defs as we might desire, because we do not
13874 # link with -lc, and that would cause any symbols used from libc to
13875 # always be unresolved, which means just about no library would
13876 # ever link correctly. If we're not using GNU ld we use -z text
13877 # though, which does catch some bad symbols but isn't as heavy-handed
13878 # as -z defs.
13879 no_undefined_flag_CXX='${wl}-z,text'
13880 allow_undefined_flag_CXX='${wl}-z,nodefs'
13881 archive_cmds_need_lc_CXX=no
13882 hardcode_shlibpath_var_CXX=no
13883 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13884 hardcode_libdir_separator_CXX=':'
13885 link_all_deplibs_CXX=yes
13886 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13887 runpath_var='LD_RUN_PATH'
13889 case $cc_basename in
13890 CC*)
13891 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13892 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13893 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13894 '"$old_archive_cmds_CXX"
13895 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13896 '"$reload_cmds_CXX"
13899 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13900 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13902 esac
13905 tandem*)
13906 case $cc_basename in
13907 NCC*)
13908 # NonStop-UX NCC 3.20
13909 # FIXME: insert proper C++ library support
13910 ld_shlibs_CXX=no
13913 # FIXME: insert proper C++ library support
13914 ld_shlibs_CXX=no
13916 esac
13919 vxworks*)
13920 # For VxWorks ports, we assume the use of a GNU linker with
13921 # standard elf conventions.
13922 ld_shlibs_CXX=yes
13926 # FIXME: insert proper C++ library support
13927 ld_shlibs_CXX=no
13929 esac
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13932 $as_echo "$ld_shlibs_CXX" >&6; }
13933 test "$ld_shlibs_CXX" = no && can_build_shared=no
13935 GCC_CXX="$GXX"
13936 LD_CXX="$LD"
13938 ## CAVEAT EMPTOR:
13939 ## There is no encapsulation within the following macros, do not change
13940 ## the running order or otherwise move them around unless you know exactly
13941 ## what you are doing...
13942 # Dependencies to place before and after the object being linked:
13943 predep_objects_CXX=
13944 postdep_objects_CXX=
13945 predeps_CXX=
13946 postdeps_CXX=
13947 compiler_lib_search_path_CXX=
13949 cat > conftest.$ac_ext <<_LT_EOF
13950 class Foo
13952 public:
13953 Foo (void) { a = 0; }
13954 private:
13955 int a;
13957 _LT_EOF
13959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13960 (eval $ac_compile) 2>&5
13961 ac_status=$?
13962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13963 test $ac_status = 0; }; then
13964 # Parse the compiler output and extract the necessary
13965 # objects, libraries and library flags.
13967 # Sentinel used to keep track of whether or not we are before
13968 # the conftest object file.
13969 pre_test_object_deps_done=no
13971 for p in `eval "$output_verbose_link_cmd"`; do
13972 case $p in
13974 -L* | -R* | -l*)
13975 # Some compilers place space between "-{L,R}" and the path.
13976 # Remove the space.
13977 if test $p = "-L" ||
13978 test $p = "-R"; then
13979 prev=$p
13980 continue
13981 else
13982 prev=
13985 if test "$pre_test_object_deps_done" = no; then
13986 case $p in
13987 -L* | -R*)
13988 # Internal compiler library paths should come after those
13989 # provided the user. The postdeps already come after the
13990 # user supplied libs so there is no need to process them.
13991 if test -z "$compiler_lib_search_path_CXX"; then
13992 compiler_lib_search_path_CXX="${prev}${p}"
13993 else
13994 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13997 # The "-l" case would never come before the object being
13998 # linked, so don't bother handling this case.
13999 esac
14000 else
14001 if test -z "$postdeps_CXX"; then
14002 postdeps_CXX="${prev}${p}"
14003 else
14004 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14009 *.$objext)
14010 # This assumes that the test object file only shows up
14011 # once in the compiler output.
14012 if test "$p" = "conftest.$objext"; then
14013 pre_test_object_deps_done=yes
14014 continue
14017 if test "$pre_test_object_deps_done" = no; then
14018 if test -z "$predep_objects_CXX"; then
14019 predep_objects_CXX="$p"
14020 else
14021 predep_objects_CXX="$predep_objects_CXX $p"
14023 else
14024 if test -z "$postdep_objects_CXX"; then
14025 postdep_objects_CXX="$p"
14026 else
14027 postdep_objects_CXX="$postdep_objects_CXX $p"
14032 *) ;; # Ignore the rest.
14034 esac
14035 done
14037 # Clean up.
14038 rm -f a.out a.exe
14039 else
14040 echo "libtool.m4: error: problem compiling CXX test program"
14043 $RM -f confest.$objext
14045 # PORTME: override above test on systems where it is broken
14046 case $host_os in
14047 interix[3-9]*)
14048 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14049 # hack all around it, let's just trust "g++" to DTRT.
14050 predep_objects_CXX=
14051 postdep_objects_CXX=
14052 postdeps_CXX=
14055 linux*)
14056 case `$CC -V 2>&1 | sed 5q` in
14057 *Sun\ C*)
14058 # Sun C++ 5.9
14060 # The more standards-conforming stlport4 library is
14061 # incompatible with the Cstd library. Avoid specifying
14062 # it if it's in CXXFLAGS. Ignore libCrun as
14063 # -library=stlport4 depends on it.
14064 case " $CXX $CXXFLAGS " in
14065 *" -library=stlport4 "*)
14066 solaris_use_stlport4=yes
14068 esac
14070 if test "$solaris_use_stlport4" != yes; then
14071 postdeps_CXX='-library=Cstd -library=Crun'
14074 esac
14077 solaris*)
14078 case $cc_basename in
14079 CC*)
14080 # The more standards-conforming stlport4 library is
14081 # incompatible with the Cstd library. Avoid specifying
14082 # it if it's in CXXFLAGS. Ignore libCrun as
14083 # -library=stlport4 depends on it.
14084 case " $CXX $CXXFLAGS " in
14085 *" -library=stlport4 "*)
14086 solaris_use_stlport4=yes
14088 esac
14090 # Adding this requires a known-good setup of shared libraries for
14091 # Sun compiler versions before 5.6, else PIC objects from an old
14092 # archive will be linked into the output, leading to subtle bugs.
14093 if test "$solaris_use_stlport4" != yes; then
14094 postdeps_CXX='-library=Cstd -library=Crun'
14097 esac
14099 esac
14102 case " $postdeps_CXX " in
14103 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14104 esac
14105 compiler_lib_search_dirs_CXX=
14106 if test -n "${compiler_lib_search_path_CXX}"; then
14107 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14140 lt_prog_compiler_wl_CXX=
14141 lt_prog_compiler_pic_CXX=
14142 lt_prog_compiler_static_CXX=
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14145 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14147 # C++ specific cases for pic, static, wl, etc.
14148 if test "$GXX" = yes; then
14149 lt_prog_compiler_wl_CXX='-Wl,'
14150 lt_prog_compiler_static_CXX='-static'
14152 case $host_os in
14153 aix*)
14154 # All AIX code is PIC.
14155 if test "$host_cpu" = ia64; then
14156 # AIX 5 now supports IA64 processor
14157 lt_prog_compiler_static_CXX='-Bstatic'
14159 lt_prog_compiler_pic_CXX='-fPIC'
14162 amigaos*)
14163 case $host_cpu in
14164 powerpc)
14165 # see comment about AmigaOS4 .so support
14166 lt_prog_compiler_pic_CXX='-fPIC'
14168 m68k)
14169 # FIXME: we need at least 68020 code to build shared libraries, but
14170 # adding the `-m68020' flag to GCC prevents building anything better,
14171 # like `-m68040'.
14172 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14174 esac
14177 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14178 # PIC is the default for these OSes.
14180 mingw* | cygwin* | os2* | pw32* | cegcc*)
14181 # This hack is so that the source file can tell whether it is being
14182 # built for inclusion in a dll (and should export symbols for example).
14183 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14184 # (--disable-auto-import) libraries
14185 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14187 darwin* | rhapsody*)
14188 # PIC is the default on this platform
14189 # Common symbols not allowed in MH_DYLIB files
14190 lt_prog_compiler_pic_CXX='-fno-common'
14192 *djgpp*)
14193 # DJGPP does not support shared libraries at all
14194 lt_prog_compiler_pic_CXX=
14196 haiku*)
14197 # PIC is the default for Haiku.
14198 # The "-static" flag exists, but is broken.
14199 lt_prog_compiler_static_CXX=
14201 interix[3-9]*)
14202 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14203 # Instead, we relocate shared libraries at runtime.
14205 sysv4*MP*)
14206 if test -d /usr/nec; then
14207 lt_prog_compiler_pic_CXX=-Kconform_pic
14210 hpux*)
14211 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14212 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14213 # sets the default TLS model and affects inlining.
14214 case $host_cpu in
14215 hppa*64*)
14218 lt_prog_compiler_pic_CXX='-fPIC'
14220 esac
14222 *qnx* | *nto*)
14223 # QNX uses GNU C++, but need to define -shared option too, otherwise
14224 # it will coredump.
14225 lt_prog_compiler_pic_CXX='-fPIC -shared'
14228 lt_prog_compiler_pic_CXX='-fPIC'
14230 esac
14231 else
14232 case $host_os in
14233 aix[4-9]*)
14234 # All AIX code is PIC.
14235 if test "$host_cpu" = ia64; then
14236 # AIX 5 now supports IA64 processor
14237 lt_prog_compiler_static_CXX='-Bstatic'
14238 else
14239 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14242 chorus*)
14243 case $cc_basename in
14244 cxch68*)
14245 # Green Hills C++ Compiler
14246 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14248 esac
14250 dgux*)
14251 case $cc_basename in
14252 ec++*)
14253 lt_prog_compiler_pic_CXX='-KPIC'
14255 ghcx*)
14256 # Green Hills C++ Compiler
14257 lt_prog_compiler_pic_CXX='-pic'
14261 esac
14263 freebsd* | dragonfly*)
14264 # FreeBSD uses GNU C++
14266 hpux9* | hpux10* | hpux11*)
14267 case $cc_basename in
14268 CC*)
14269 lt_prog_compiler_wl_CXX='-Wl,'
14270 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14271 if test "$host_cpu" != ia64; then
14272 lt_prog_compiler_pic_CXX='+Z'
14275 aCC*)
14276 lt_prog_compiler_wl_CXX='-Wl,'
14277 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14278 case $host_cpu in
14279 hppa*64*|ia64*)
14280 # +Z the default
14283 lt_prog_compiler_pic_CXX='+Z'
14285 esac
14289 esac
14291 interix*)
14292 # This is c89, which is MS Visual C++ (no shared libs)
14293 # Anyone wants to do a port?
14295 irix5* | irix6* | nonstopux*)
14296 case $cc_basename in
14297 CC*)
14298 lt_prog_compiler_wl_CXX='-Wl,'
14299 lt_prog_compiler_static_CXX='-non_shared'
14300 # CC pic flag -KPIC is the default.
14304 esac
14306 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14307 case $cc_basename in
14308 KCC*)
14309 # KAI C++ Compiler
14310 lt_prog_compiler_wl_CXX='--backend -Wl,'
14311 lt_prog_compiler_pic_CXX='-fPIC'
14313 ecpc* )
14314 # old Intel C++ for x86_64 which still supported -KPIC.
14315 lt_prog_compiler_wl_CXX='-Wl,'
14316 lt_prog_compiler_pic_CXX='-KPIC'
14317 lt_prog_compiler_static_CXX='-static'
14319 icpc* )
14320 # Intel C++, used to be incompatible with GCC.
14321 # ICC 10 doesn't accept -KPIC any more.
14322 lt_prog_compiler_wl_CXX='-Wl,'
14323 lt_prog_compiler_pic_CXX='-fPIC'
14324 lt_prog_compiler_static_CXX='-static'
14326 pgCC* | pgcpp*)
14327 # Portland Group C++ compiler
14328 lt_prog_compiler_wl_CXX='-Wl,'
14329 lt_prog_compiler_pic_CXX='-fpic'
14330 lt_prog_compiler_static_CXX='-Bstatic'
14332 cxx*)
14333 # Compaq C++
14334 # Make sure the PIC flag is empty. It appears that all Alpha
14335 # Linux and Compaq Tru64 Unix objects are PIC.
14336 lt_prog_compiler_pic_CXX=
14337 lt_prog_compiler_static_CXX='-non_shared'
14339 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14340 # IBM XL 8.0, 9.0 on PPC and BlueGene
14341 lt_prog_compiler_wl_CXX='-Wl,'
14342 lt_prog_compiler_pic_CXX='-qpic'
14343 lt_prog_compiler_static_CXX='-qstaticlink'
14346 case `$CC -V 2>&1 | sed 5q` in
14347 *Sun\ C*)
14348 # Sun C++ 5.9
14349 lt_prog_compiler_pic_CXX='-KPIC'
14350 lt_prog_compiler_static_CXX='-Bstatic'
14351 lt_prog_compiler_wl_CXX='-Qoption ld '
14353 esac
14355 esac
14357 lynxos*)
14359 m88k*)
14361 mvs*)
14362 case $cc_basename in
14363 cxx*)
14364 lt_prog_compiler_pic_CXX='-W c,exportall'
14368 esac
14370 netbsd*)
14372 *qnx* | *nto*)
14373 # QNX uses GNU C++, but need to define -shared option too, otherwise
14374 # it will coredump.
14375 lt_prog_compiler_pic_CXX='-fPIC -shared'
14377 osf3* | osf4* | osf5*)
14378 case $cc_basename in
14379 KCC*)
14380 lt_prog_compiler_wl_CXX='--backend -Wl,'
14382 RCC*)
14383 # Rational C++ 2.4.1
14384 lt_prog_compiler_pic_CXX='-pic'
14386 cxx*)
14387 # Digital/Compaq C++
14388 lt_prog_compiler_wl_CXX='-Wl,'
14389 # Make sure the PIC flag is empty. It appears that all Alpha
14390 # Linux and Compaq Tru64 Unix objects are PIC.
14391 lt_prog_compiler_pic_CXX=
14392 lt_prog_compiler_static_CXX='-non_shared'
14396 esac
14398 psos*)
14400 solaris*)
14401 case $cc_basename in
14402 CC*)
14403 # Sun C++ 4.2, 5.x and Centerline C++
14404 lt_prog_compiler_pic_CXX='-KPIC'
14405 lt_prog_compiler_static_CXX='-Bstatic'
14406 lt_prog_compiler_wl_CXX='-Qoption ld '
14408 gcx*)
14409 # Green Hills C++ Compiler
14410 lt_prog_compiler_pic_CXX='-PIC'
14414 esac
14416 sunos4*)
14417 case $cc_basename in
14418 CC*)
14419 # Sun C++ 4.x
14420 lt_prog_compiler_pic_CXX='-pic'
14421 lt_prog_compiler_static_CXX='-Bstatic'
14423 lcc*)
14424 # Lucid
14425 lt_prog_compiler_pic_CXX='-pic'
14429 esac
14431 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14432 case $cc_basename in
14433 CC*)
14434 lt_prog_compiler_wl_CXX='-Wl,'
14435 lt_prog_compiler_pic_CXX='-KPIC'
14436 lt_prog_compiler_static_CXX='-Bstatic'
14438 esac
14440 tandem*)
14441 case $cc_basename in
14442 NCC*)
14443 # NonStop-UX NCC 3.20
14444 lt_prog_compiler_pic_CXX='-KPIC'
14448 esac
14450 vxworks*)
14453 lt_prog_compiler_can_build_shared_CXX=no
14455 esac
14458 case $host_os in
14459 # For platforms which do not support PIC, -DPIC is meaningless:
14460 *djgpp*)
14461 lt_prog_compiler_pic_CXX=
14464 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14466 esac
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14468 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14473 # Check to make sure the PIC flag actually works.
14475 if test -n "$lt_prog_compiler_pic_CXX"; then
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14477 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14478 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14479 $as_echo_n "(cached) " >&6
14480 else
14481 lt_cv_prog_compiler_pic_works_CXX=no
14482 ac_outfile=conftest.$ac_objext
14483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14484 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14485 # Insert the option either (1) after the last *FLAGS variable, or
14486 # (2) before a word containing "conftest.", or (3) at the end.
14487 # Note that $ac_compile itself does not contain backslashes and begins
14488 # with a dollar sign (not a hyphen), so the echo should work correctly.
14489 # The option is referenced via a variable to avoid confusing sed.
14490 lt_compile=`echo "$ac_compile" | $SED \
14491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14493 -e 's:$: $lt_compiler_flag:'`
14494 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14495 (eval "$lt_compile" 2>conftest.err)
14496 ac_status=$?
14497 cat conftest.err >&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 if (exit $ac_status) && test -s "$ac_outfile"; then
14500 # The compiler can only warn and ignore the option if not recognized
14501 # So say no if there are warnings other than the usual output.
14502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14504 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14505 lt_cv_prog_compiler_pic_works_CXX=yes
14508 $RM conftest*
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14512 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14514 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14515 case $lt_prog_compiler_pic_CXX in
14516 "" | " "*) ;;
14517 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14518 esac
14519 else
14520 lt_prog_compiler_pic_CXX=
14521 lt_prog_compiler_can_build_shared_CXX=no
14529 # Check to make sure the static flag actually works.
14531 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14533 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14534 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14535 $as_echo_n "(cached) " >&6
14536 else
14537 lt_cv_prog_compiler_static_works_CXX=no
14538 save_LDFLAGS="$LDFLAGS"
14539 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14540 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14541 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14542 # The linker can only warn and ignore the option if not recognized
14543 # So say no if there are warnings
14544 if test -s conftest.err; then
14545 # Append any errors to the config.log.
14546 cat conftest.err 1>&5
14547 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14548 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14549 if diff conftest.exp conftest.er2 >/dev/null; then
14550 lt_cv_prog_compiler_static_works_CXX=yes
14552 else
14553 lt_cv_prog_compiler_static_works_CXX=yes
14556 $RM -r conftest*
14557 LDFLAGS="$save_LDFLAGS"
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14561 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14563 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14565 else
14566 lt_prog_compiler_static_CXX=
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14573 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14574 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14575 $as_echo_n "(cached) " >&6
14576 else
14577 lt_cv_prog_compiler_c_o_CXX=no
14578 $RM -r conftest 2>/dev/null
14579 mkdir conftest
14580 cd conftest
14581 mkdir out
14582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14584 lt_compiler_flag="-o out/conftest2.$ac_objext"
14585 # Insert the option either (1) after the last *FLAGS variable, or
14586 # (2) before a word containing "conftest.", or (3) at the end.
14587 # Note that $ac_compile itself does not contain backslashes and begins
14588 # with a dollar sign (not a hyphen), so the echo should work correctly.
14589 lt_compile=`echo "$ac_compile" | $SED \
14590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14592 -e 's:$: $lt_compiler_flag:'`
14593 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14594 (eval "$lt_compile" 2>out/conftest.err)
14595 ac_status=$?
14596 cat out/conftest.err >&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14599 then
14600 # The compiler can only warn and ignore the option if not recognized
14601 # So say no if there are warnings
14602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14603 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14604 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14605 lt_cv_prog_compiler_c_o_CXX=yes
14608 chmod u+w . 2>&5
14609 $RM conftest*
14610 # SGI C++ compiler will create directory out/ii_files/ for
14611 # template instantiation
14612 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14613 $RM out/* && rmdir out
14614 cd ..
14615 $RM -r conftest
14616 $RM conftest*
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14620 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14625 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14626 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14627 $as_echo_n "(cached) " >&6
14628 else
14629 lt_cv_prog_compiler_c_o_CXX=no
14630 $RM -r conftest 2>/dev/null
14631 mkdir conftest
14632 cd conftest
14633 mkdir out
14634 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14636 lt_compiler_flag="-o out/conftest2.$ac_objext"
14637 # Insert the option either (1) after the last *FLAGS variable, or
14638 # (2) before a word containing "conftest.", or (3) at the end.
14639 # Note that $ac_compile itself does not contain backslashes and begins
14640 # with a dollar sign (not a hyphen), so the echo should work correctly.
14641 lt_compile=`echo "$ac_compile" | $SED \
14642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14644 -e 's:$: $lt_compiler_flag:'`
14645 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14646 (eval "$lt_compile" 2>out/conftest.err)
14647 ac_status=$?
14648 cat out/conftest.err >&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14651 then
14652 # The compiler can only warn and ignore the option if not recognized
14653 # So say no if there are warnings
14654 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14655 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14656 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14657 lt_cv_prog_compiler_c_o_CXX=yes
14660 chmod u+w . 2>&5
14661 $RM conftest*
14662 # SGI C++ compiler will create directory out/ii_files/ for
14663 # template instantiation
14664 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14665 $RM out/* && rmdir out
14666 cd ..
14667 $RM -r conftest
14668 $RM conftest*
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14672 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14677 hard_links="nottested"
14678 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14679 # do not overwrite the value of need_locks provided by the user
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14681 $as_echo_n "checking if we can lock with hard links... " >&6; }
14682 hard_links=yes
14683 $RM conftest*
14684 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14685 touch conftest.a
14686 ln conftest.a conftest.b 2>&5 || hard_links=no
14687 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14689 $as_echo "$hard_links" >&6; }
14690 if test "$hard_links" = no; then
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14692 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14693 need_locks=warn
14695 else
14696 need_locks=no
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14702 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14704 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14705 case $host_os in
14706 aix[4-9]*)
14707 # If we're using GNU nm, then we don't want the "-C" option.
14708 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14709 # Also, AIX nm treats weak defined symbols like other global defined
14710 # symbols, whereas GNU nm marks them as "W".
14711 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14712 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14713 else
14714 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14717 pw32*)
14718 export_symbols_cmds_CXX="$ltdll_cmds"
14720 cygwin* | mingw* | cegcc*)
14721 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14724 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14726 esac
14727 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14730 $as_echo "$ld_shlibs_CXX" >&6; }
14731 test "$ld_shlibs_CXX" = no && can_build_shared=no
14733 with_gnu_ld_CXX=$with_gnu_ld
14741 # Do we need to explicitly link libc?
14743 case "x$archive_cmds_need_lc_CXX" in
14744 x|xyes)
14745 # Assume -lc should be added
14746 archive_cmds_need_lc_CXX=yes
14748 if test "$enable_shared" = yes && test "$GCC" = yes; then
14749 case $archive_cmds_CXX in
14750 *'~'*)
14751 # FIXME: we may have to deal with multi-command sequences.
14753 '$CC '*)
14754 # Test whether the compiler implicitly links with -lc since on some
14755 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14756 # to ld, don't add -lc before -lgcc.
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14758 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14759 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14760 $as_echo_n "(cached) " >&6
14761 else
14762 $RM conftest*
14763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14766 (eval $ac_compile) 2>&5
14767 ac_status=$?
14768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14769 test $ac_status = 0; } 2>conftest.err; then
14770 soname=conftest
14771 lib=conftest
14772 libobjs=conftest.$ac_objext
14773 deplibs=
14774 wl=$lt_prog_compiler_wl_CXX
14775 pic_flag=$lt_prog_compiler_pic_CXX
14776 compiler_flags=-v
14777 linker_flags=-v
14778 verstring=
14779 output_objdir=.
14780 libname=conftest
14781 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14782 allow_undefined_flag_CXX=
14783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14784 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14785 ac_status=$?
14786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14787 test $ac_status = 0; }
14788 then
14789 lt_cv_archive_cmds_need_lc_CXX=no
14790 else
14791 lt_cv_archive_cmds_need_lc_CXX=yes
14793 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14794 else
14795 cat conftest.err 1>&5
14797 $RM conftest*
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14801 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14802 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14804 esac
14807 esac
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14873 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14875 library_names_spec=
14876 libname_spec='lib$name'
14877 soname_spec=
14878 shrext_cmds=".so"
14879 postinstall_cmds=
14880 postuninstall_cmds=
14881 finish_cmds=
14882 finish_eval=
14883 shlibpath_var=
14884 shlibpath_overrides_runpath=unknown
14885 version_type=none
14886 dynamic_linker="$host_os ld.so"
14887 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14888 need_lib_prefix=unknown
14889 hardcode_into_libs=no
14891 # when you set need_version to no, make sure it does not cause -set_version
14892 # flags to be left without arguments
14893 need_version=unknown
14895 case $host_os in
14896 aix3*)
14897 version_type=linux
14898 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14899 shlibpath_var=LIBPATH
14901 # AIX 3 has no versioning support, so we append a major version to the name.
14902 soname_spec='${libname}${release}${shared_ext}$major'
14905 aix[4-9]*)
14906 version_type=linux
14907 need_lib_prefix=no
14908 need_version=no
14909 hardcode_into_libs=yes
14910 if test "$host_cpu" = ia64; then
14911 # AIX 5 supports IA64
14912 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14913 shlibpath_var=LD_LIBRARY_PATH
14914 else
14915 # With GCC up to 2.95.x, collect2 would create an import file
14916 # for dependence libraries. The import file would start with
14917 # the line `#! .'. This would cause the generated library to
14918 # depend on `.', always an invalid library. This was fixed in
14919 # development snapshots of GCC prior to 3.0.
14920 case $host_os in
14921 aix4 | aix4.[01] | aix4.[01].*)
14922 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14923 echo ' yes '
14924 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14926 else
14927 can_build_shared=no
14930 esac
14931 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14932 # soname into executable. Probably we can add versioning support to
14933 # collect2, so additional links can be useful in future.
14934 if test "$aix_use_runtimelinking" = yes; then
14935 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14936 # instead of lib<name>.a to let people know that these are not
14937 # typical AIX shared libraries.
14938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939 else
14940 # We preserve .a as extension for shared libraries through AIX4.2
14941 # and later when we are not doing run time linking.
14942 library_names_spec='${libname}${release}.a $libname.a'
14943 soname_spec='${libname}${release}${shared_ext}$major'
14945 shlibpath_var=LIBPATH
14949 amigaos*)
14950 case $host_cpu in
14951 powerpc)
14952 # Since July 2007 AmigaOS4 officially supports .so libraries.
14953 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14956 m68k)
14957 library_names_spec='$libname.ixlibrary $libname.a'
14958 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14959 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'
14961 esac
14964 beos*)
14965 library_names_spec='${libname}${shared_ext}'
14966 dynamic_linker="$host_os ld.so"
14967 shlibpath_var=LIBRARY_PATH
14970 bsdi[45]*)
14971 version_type=linux
14972 need_version=no
14973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14974 soname_spec='${libname}${release}${shared_ext}$major'
14975 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14976 shlibpath_var=LD_LIBRARY_PATH
14977 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14978 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14979 # the default ld.so.conf also contains /usr/contrib/lib and
14980 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14981 # libtool to hard-code these into programs
14984 cygwin* | mingw* | pw32* | cegcc*)
14985 version_type=windows
14986 shrext_cmds=".dll"
14987 need_version=no
14988 need_lib_prefix=no
14990 case $GCC,$host_os in
14991 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14992 library_names_spec='$libname.dll.a'
14993 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14994 postinstall_cmds='base_file=`basename \${file}`~
14995 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14996 dldir=$destdir/`dirname \$dlpath`~
14997 test -d \$dldir || mkdir -p \$dldir~
14998 $install_prog $dir/$dlname \$dldir/$dlname~
14999 chmod a+x \$dldir/$dlname~
15000 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15001 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15003 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15004 dlpath=$dir/\$dldll~
15005 $RM \$dlpath'
15006 shlibpath_overrides_runpath=yes
15008 case $host_os in
15009 cygwin*)
15010 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15011 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15014 mingw* | cegcc*)
15015 # MinGW DLLs use traditional 'lib' prefix
15016 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15018 pw32*)
15019 # pw32 DLLs use 'pw' prefix rather than 'lib'
15020 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15022 esac
15026 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15028 esac
15029 dynamic_linker='Win32 ld.exe'
15030 # FIXME: first we should search . and the directory the executable is in
15031 shlibpath_var=PATH
15034 darwin* | rhapsody*)
15035 dynamic_linker="$host_os dyld"
15036 version_type=darwin
15037 need_lib_prefix=no
15038 need_version=no
15039 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15040 soname_spec='${libname}${release}${major}$shared_ext'
15041 shlibpath_overrides_runpath=yes
15042 shlibpath_var=DYLD_LIBRARY_PATH
15043 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15045 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15048 dgux*)
15049 version_type=linux
15050 need_lib_prefix=no
15051 need_version=no
15052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15053 soname_spec='${libname}${release}${shared_ext}$major'
15054 shlibpath_var=LD_LIBRARY_PATH
15057 freebsd* | dragonfly*)
15058 # DragonFly does not have aout. When/if they implement a new
15059 # versioning mechanism, adjust this.
15060 if test -x /usr/bin/objformat; then
15061 objformat=`/usr/bin/objformat`
15062 else
15063 case $host_os in
15064 freebsd[23].*) objformat=aout ;;
15065 *) objformat=elf ;;
15066 esac
15068 version_type=freebsd-$objformat
15069 case $version_type in
15070 freebsd-elf*)
15071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15072 need_version=no
15073 need_lib_prefix=no
15075 freebsd-*)
15076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15077 need_version=yes
15079 esac
15080 shlibpath_var=LD_LIBRARY_PATH
15081 case $host_os in
15082 freebsd2.*)
15083 shlibpath_overrides_runpath=yes
15085 freebsd3.[01]* | freebsdelf3.[01]*)
15086 shlibpath_overrides_runpath=yes
15087 hardcode_into_libs=yes
15089 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15090 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15091 shlibpath_overrides_runpath=no
15092 hardcode_into_libs=yes
15094 *) # from 4.6 on, and DragonFly
15095 shlibpath_overrides_runpath=yes
15096 hardcode_into_libs=yes
15098 esac
15101 haiku*)
15102 version_type=linux
15103 need_lib_prefix=no
15104 need_version=no
15105 dynamic_linker="$host_os runtime_loader"
15106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15107 soname_spec='${libname}${release}${shared_ext}$major'
15108 shlibpath_var=LIBRARY_PATH
15109 shlibpath_overrides_runpath=yes
15110 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15111 hardcode_into_libs=yes
15114 hpux9* | hpux10* | hpux11*)
15115 # Give a soname corresponding to the major version so that dld.sl refuses to
15116 # link against other versions.
15117 version_type=sunos
15118 need_lib_prefix=no
15119 need_version=no
15120 case $host_cpu in
15121 ia64*)
15122 shrext_cmds='.so'
15123 hardcode_into_libs=yes
15124 dynamic_linker="$host_os dld.so"
15125 shlibpath_var=LD_LIBRARY_PATH
15126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15128 soname_spec='${libname}${release}${shared_ext}$major'
15129 if test "X$HPUX_IA64_MODE" = X32; then
15130 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15131 else
15132 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15136 hppa*64*)
15137 shrext_cmds='.sl'
15138 hardcode_into_libs=yes
15139 dynamic_linker="$host_os dld.sl"
15140 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15143 soname_spec='${libname}${release}${shared_ext}$major'
15144 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15148 shrext_cmds='.sl'
15149 dynamic_linker="$host_os dld.sl"
15150 shlibpath_var=SHLIB_PATH
15151 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15153 soname_spec='${libname}${release}${shared_ext}$major'
15155 esac
15156 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15157 postinstall_cmds='chmod 555 $lib'
15158 # or fails outright, so override atomically:
15159 install_override_mode=555
15162 interix[3-9]*)
15163 version_type=linux
15164 need_lib_prefix=no
15165 need_version=no
15166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15167 soname_spec='${libname}${release}${shared_ext}$major'
15168 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15169 shlibpath_var=LD_LIBRARY_PATH
15170 shlibpath_overrides_runpath=no
15171 hardcode_into_libs=yes
15174 irix5* | irix6* | nonstopux*)
15175 case $host_os in
15176 nonstopux*) version_type=nonstopux ;;
15178 if test "$lt_cv_prog_gnu_ld" = yes; then
15179 version_type=linux
15180 else
15181 version_type=irix
15182 fi ;;
15183 esac
15184 need_lib_prefix=no
15185 need_version=no
15186 soname_spec='${libname}${release}${shared_ext}$major'
15187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15188 case $host_os in
15189 irix5* | nonstopux*)
15190 libsuff= shlibsuff=
15193 case $LD in # libtool.m4 will add one of these switches to LD
15194 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15195 libsuff= shlibsuff= libmagic=32-bit;;
15196 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15197 libsuff=32 shlibsuff=N32 libmagic=N32;;
15198 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15199 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15200 *) libsuff= shlibsuff= libmagic=never-match;;
15201 esac
15203 esac
15204 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15205 shlibpath_overrides_runpath=no
15206 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15207 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15208 hardcode_into_libs=yes
15211 # No shared lib support for Linux oldld, aout, or coff.
15212 linux*oldld* | linux*aout* | linux*coff*)
15213 dynamic_linker=no
15216 # This must be Linux ELF.
15218 # uclinux* changes (here and below) have been submitted to the libtool
15219 # project, but have not yet been accepted: they are GCC-local changes
15220 # for the time being. (See
15221 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15222 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15223 version_type=linux
15224 need_lib_prefix=no
15225 need_version=no
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227 soname_spec='${libname}${release}${shared_ext}$major'
15228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15229 shlibpath_var=LD_LIBRARY_PATH
15230 shlibpath_overrides_runpath=no
15232 # Some binutils ld are patched to set DT_RUNPATH
15233 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15234 $as_echo_n "(cached) " >&6
15235 else
15236 lt_cv_shlibpath_overrides_runpath=no
15237 save_LDFLAGS=$LDFLAGS
15238 save_libdir=$libdir
15239 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15240 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15242 /* end confdefs.h. */
15245 main ()
15249 return 0;
15251 _ACEOF
15252 if ac_fn_cxx_try_link "$LINENO"; then :
15253 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15254 lt_cv_shlibpath_overrides_runpath=yes
15257 rm -f core conftest.err conftest.$ac_objext \
15258 conftest$ac_exeext conftest.$ac_ext
15259 LDFLAGS=$save_LDFLAGS
15260 libdir=$save_libdir
15264 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15266 # This implies no fast_install, which is unacceptable.
15267 # Some rework will be needed to allow for fast_install
15268 # before this can be enabled.
15269 hardcode_into_libs=yes
15271 # Append ld.so.conf contents to the search path
15272 if test -f /etc/ld.so.conf; then
15273 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' ' '`
15274 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15277 # We used to test for /lib/ld.so.1 and disable shared libraries on
15278 # powerpc, because MkLinux only supported shared libraries with the
15279 # GNU dynamic linker. Since this was broken with cross compilers,
15280 # most powerpc-linux boxes support dynamic linking these days and
15281 # people can always --disable-shared, the test was removed, and we
15282 # assume the GNU/Linux dynamic linker is in use.
15283 dynamic_linker='GNU/Linux ld.so'
15286 netbsd*)
15287 version_type=sunos
15288 need_lib_prefix=no
15289 need_version=no
15290 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15293 dynamic_linker='NetBSD (a.out) ld.so'
15294 else
15295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15296 soname_spec='${libname}${release}${shared_ext}$major'
15297 dynamic_linker='NetBSD ld.elf_so'
15299 shlibpath_var=LD_LIBRARY_PATH
15300 shlibpath_overrides_runpath=yes
15301 hardcode_into_libs=yes
15304 newsos6)
15305 version_type=linux
15306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15307 shlibpath_var=LD_LIBRARY_PATH
15308 shlibpath_overrides_runpath=yes
15311 *nto* | *qnx*)
15312 version_type=qnx
15313 need_lib_prefix=no
15314 need_version=no
15315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15316 soname_spec='${libname}${release}${shared_ext}$major'
15317 shlibpath_var=LD_LIBRARY_PATH
15318 shlibpath_overrides_runpath=no
15319 hardcode_into_libs=yes
15320 dynamic_linker='ldqnx.so'
15323 openbsd*)
15324 version_type=sunos
15325 sys_lib_dlsearch_path_spec="/usr/lib"
15326 need_lib_prefix=no
15327 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15328 case $host_os in
15329 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15330 *) need_version=no ;;
15331 esac
15332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15334 shlibpath_var=LD_LIBRARY_PATH
15335 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15336 case $host_os in
15337 openbsd2.[89] | openbsd2.[89].*)
15338 shlibpath_overrides_runpath=no
15341 shlibpath_overrides_runpath=yes
15343 esac
15344 else
15345 shlibpath_overrides_runpath=yes
15349 os2*)
15350 libname_spec='$name'
15351 shrext_cmds=".dll"
15352 need_lib_prefix=no
15353 library_names_spec='$libname${shared_ext} $libname.a'
15354 dynamic_linker='OS/2 ld.exe'
15355 shlibpath_var=LIBPATH
15358 osf3* | osf4* | osf5*)
15359 version_type=osf
15360 need_lib_prefix=no
15361 need_version=no
15362 soname_spec='${libname}${release}${shared_ext}$major'
15363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15364 shlibpath_var=LD_LIBRARY_PATH
15365 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15366 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15369 rdos*)
15370 dynamic_linker=no
15373 solaris*)
15374 version_type=linux
15375 need_lib_prefix=no
15376 need_version=no
15377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378 soname_spec='${libname}${release}${shared_ext}$major'
15379 shlibpath_var=LD_LIBRARY_PATH
15380 shlibpath_overrides_runpath=yes
15381 hardcode_into_libs=yes
15382 # ldd complains unless libraries are executable
15383 postinstall_cmds='chmod +x $lib'
15386 sunos4*)
15387 version_type=sunos
15388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15389 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15390 shlibpath_var=LD_LIBRARY_PATH
15391 shlibpath_overrides_runpath=yes
15392 if test "$with_gnu_ld" = yes; then
15393 need_lib_prefix=no
15395 need_version=yes
15398 sysv4 | sysv4.3*)
15399 version_type=linux
15400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401 soname_spec='${libname}${release}${shared_ext}$major'
15402 shlibpath_var=LD_LIBRARY_PATH
15403 case $host_vendor in
15404 sni)
15405 shlibpath_overrides_runpath=no
15406 need_lib_prefix=no
15407 runpath_var=LD_RUN_PATH
15409 siemens)
15410 need_lib_prefix=no
15412 motorola)
15413 need_lib_prefix=no
15414 need_version=no
15415 shlibpath_overrides_runpath=no
15416 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15418 esac
15421 sysv4*MP*)
15422 if test -d /usr/nec ;then
15423 version_type=linux
15424 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15425 soname_spec='$libname${shared_ext}.$major'
15426 shlibpath_var=LD_LIBRARY_PATH
15430 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15431 version_type=freebsd-elf
15432 need_lib_prefix=no
15433 need_version=no
15434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15435 soname_spec='${libname}${release}${shared_ext}$major'
15436 shlibpath_var=LD_LIBRARY_PATH
15437 shlibpath_overrides_runpath=yes
15438 hardcode_into_libs=yes
15439 if test "$with_gnu_ld" = yes; then
15440 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15441 else
15442 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15443 case $host_os in
15444 sco3.2v5*)
15445 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15447 esac
15449 sys_lib_dlsearch_path_spec='/usr/lib'
15452 tpf*)
15453 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15454 version_type=linux
15455 need_lib_prefix=no
15456 need_version=no
15457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15458 shlibpath_var=LD_LIBRARY_PATH
15459 shlibpath_overrides_runpath=no
15460 hardcode_into_libs=yes
15463 uts4*)
15464 version_type=linux
15465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15466 soname_spec='${libname}${release}${shared_ext}$major'
15467 shlibpath_var=LD_LIBRARY_PATH
15470 # Shared libraries for VwWorks, >= 7 only at this stage
15471 # and (fpic) still incompatible with "large" code models
15472 # in a few configurations. Only for RTP mode in any case,
15473 # and upon explicit request at configure time.
15474 vxworks7*)
15475 dynamic_linker=no
15476 case ${with_multisubdir}-${enable_shared} in
15477 *large*)
15479 *mrtp*-yes)
15480 version_type=linux
15481 need_lib_prefix=no
15482 need_version=no
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484 soname_spec='${libname}${release}${shared_ext}$major'
15485 dynamic_linker="$host_os module_loader"
15487 esac
15490 dynamic_linker=no
15492 esac
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15494 $as_echo "$dynamic_linker" >&6; }
15495 test "$dynamic_linker" = no && can_build_shared=no
15497 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15498 if test "$GCC" = yes; then
15499 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15502 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15503 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15505 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15506 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15547 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15548 hardcode_action_CXX=
15549 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15550 test -n "$runpath_var_CXX" ||
15551 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15553 # We can hardcode non-existent directories.
15554 if test "$hardcode_direct_CXX" != no &&
15555 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15556 # have to relink, otherwise we might link with an installed library
15557 # when we should be linking with a yet-to-be-installed one
15558 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15559 test "$hardcode_minus_L_CXX" != no; then
15560 # Linking always hardcodes the temporary library directory.
15561 hardcode_action_CXX=relink
15562 else
15563 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15564 hardcode_action_CXX=immediate
15566 else
15567 # We cannot hardcode anything, or else we can only hardcode existing
15568 # directories.
15569 hardcode_action_CXX=unsupported
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15572 $as_echo "$hardcode_action_CXX" >&6; }
15574 if test "$hardcode_action_CXX" = relink ||
15575 test "$inherit_rpath_CXX" = yes; then
15576 # Fast installation is not supported
15577 enable_fast_install=no
15578 elif test "$shlibpath_overrides_runpath" = yes ||
15579 test "$enable_shared" = no; then
15580 # Fast installation is not necessary
15581 enable_fast_install=needless
15590 fi # test -n "$compiler"
15592 CC=$lt_save_CC
15593 LDCXX=$LD
15594 LD=$lt_save_LD
15595 GCC=$lt_save_GCC
15596 with_gnu_ld=$lt_save_with_gnu_ld
15597 lt_cv_path_LDCXX=$lt_cv_path_LD
15598 lt_cv_path_LD=$lt_save_path_LD
15599 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15600 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15601 fi # test "$_lt_caught_CXX_error" != yes
15603 ac_ext=c
15604 ac_cpp='$CPP $CPPFLAGS'
15605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15621 ac_config_commands="$ac_config_commands libtool"
15626 # Only expand once:
15630 GPROFNG_LIBADD="-L../../libiberty -liberty"
15631 if test "$enable_shared" = "yes"; then
15632 GPROFNG_LIBADD="-L../../libiberty/pic -liberty"
15636 # Figure out what compiler warnings we can enable.
15637 # See config/warnings.m4 for details.
15639 ac_ext=c
15640 ac_cpp='$CPP $CPPFLAGS'
15641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15645 WERROR=
15646 # Check whether --enable-werror-always was given.
15647 if test "${enable_werror_always+set}" = set; then :
15648 enableval=$enable_werror_always;
15649 else
15650 enable_werror_always=no
15653 if test $enable_werror_always = yes; then :
15654 WERROR="$WERROR${WERROR:+ }-Werror"
15657 ac_ext=c
15658 ac_cpp='$CPP $CPPFLAGS'
15659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15664 ac_ext=c
15665 ac_cpp='$CPP $CPPFLAGS'
15666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15670 gprofng_cflags=
15671 save_CFLAGS="$CFLAGS"
15672 for real_option in -Wall; do
15673 # Do the check with the no- prefix removed since gcc silently
15674 # accepts any -Wno-* option on purpose
15675 case $real_option in
15676 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15677 *) option=$real_option ;;
15678 esac
15679 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15682 $as_echo_n "checking whether $CC supports $option... " >&6; }
15683 if eval \${$as_acx_Woption+:} false; then :
15684 $as_echo_n "(cached) " >&6
15685 else
15686 CFLAGS="$option"
15687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15688 /* end confdefs.h. */
15691 main ()
15695 return 0;
15697 _ACEOF
15698 if ac_fn_c_try_compile "$LINENO"; then :
15699 eval "$as_acx_Woption=yes"
15700 else
15701 eval "$as_acx_Woption=no"
15703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15706 eval ac_res=\$$as_acx_Woption
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15708 $as_echo "$ac_res" >&6; }
15709 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15710 gprofng_cflags="$gprofng_cflags${gprofng_cflags:+ }$real_option"
15712 done
15713 CFLAGS="$save_CFLAGS"
15714 ac_ext=c
15715 ac_cpp='$CPP $CPPFLAGS'
15716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15721 ac_ext=c
15722 ac_cpp='$CPP $CPPFLAGS'
15723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15727 GPROFNG_NO_SWITCH_CFLAGS=
15728 save_CFLAGS="$CFLAGS"
15729 for real_option in -Wno-switch; do
15730 # Do the check with the no- prefix removed since gcc silently
15731 # accepts any -Wno-* option on purpose
15732 case $real_option in
15733 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15734 *) option=$real_option ;;
15735 esac
15736 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15739 $as_echo_n "checking whether $CC supports $option... " >&6; }
15740 if eval \${$as_acx_Woption+:} false; then :
15741 $as_echo_n "(cached) " >&6
15742 else
15743 CFLAGS="$option"
15744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15745 /* end confdefs.h. */
15748 main ()
15752 return 0;
15754 _ACEOF
15755 if ac_fn_c_try_compile "$LINENO"; then :
15756 eval "$as_acx_Woption=yes"
15757 else
15758 eval "$as_acx_Woption=no"
15760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15763 eval ac_res=\$$as_acx_Woption
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15765 $as_echo "$ac_res" >&6; }
15766 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15767 GPROFNG_NO_SWITCH_CFLAGS="$GPROFNG_NO_SWITCH_CFLAGS${GPROFNG_NO_SWITCH_CFLAGS:+ }$real_option"
15769 done
15770 CFLAGS="$save_CFLAGS"
15771 ac_ext=c
15772 ac_cpp='$CPP $CPPFLAGS'
15773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15778 gprofng_cppflags="-U_ASM"
15779 build_collector=
15780 build_src=
15782 case "${host}" in
15783 x86_64-*-linux*)
15784 build_src=true
15785 build_collector=true
15787 i?86-*-linux*)
15788 build_src=true
15789 build_collector=true
15791 aarch64-*-linux*)
15792 build_src=true
15793 build_collector=true
15795 esac
15796 # Check whether --enable-gprofng-tools was given.
15797 if test "${enable_gprofng_tools+set}" = set; then :
15798 enableval=$enable_gprofng_tools; build_src=$enableval
15802 if test x$build_collector = xtrue; then
15803 BUILD_COLLECTOR_TRUE=
15804 BUILD_COLLECTOR_FALSE='#'
15805 else
15806 BUILD_COLLECTOR_TRUE='#'
15807 BUILD_COLLECTOR_FALSE=
15810 if test x$build_src = xtrue; then
15811 BUILD_SRC_TRUE=
15812 BUILD_SRC_FALSE='#'
15813 else
15814 BUILD_SRC_TRUE='#'
15815 BUILD_SRC_FALSE=
15819 if test x$build_collector = xtrue; then
15822 subdirs="$subdirs libcollector"
15829 ac_ext=c
15830 ac_cpp='$CPP $CPPFLAGS'
15831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15835 ax_pthread_ok=no
15837 # We used to check for pthread.h first, but this fails if pthread.h
15838 # requires special compiler flags (e.g. on Tru64 or Sequent).
15839 # It gets checked for in the link test anyway.
15841 # First of all, check if the user has set any of the PTHREAD_LIBS,
15842 # etcetera environment variables, and if threads linking works using
15843 # them:
15844 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
15845 ax_pthread_save_CC="$CC"
15846 ax_pthread_save_CFLAGS="$CFLAGS"
15847 ax_pthread_save_LIBS="$LIBS"
15848 if test "x$PTHREAD_CC" != "x"; then :
15849 CC="$PTHREAD_CC"
15851 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15852 LIBS="$PTHREAD_LIBS $LIBS"
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
15854 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
15855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15856 /* end confdefs.h. */
15858 /* Override any GCC internal prototype to avoid an error.
15859 Use char because int might match the return type of a GCC
15860 builtin and then its argument prototype would still apply. */
15861 #ifdef __cplusplus
15862 extern "C"
15863 #endif
15864 char pthread_join ();
15866 main ()
15868 return pthread_join ();
15870 return 0;
15872 _ACEOF
15873 if ac_fn_c_try_link "$LINENO"; then :
15874 ax_pthread_ok=yes
15876 rm -f core conftest.err conftest.$ac_objext \
15877 conftest$ac_exeext conftest.$ac_ext
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15879 $as_echo "$ax_pthread_ok" >&6; }
15880 if test "x$ax_pthread_ok" = "xno"; then
15881 PTHREAD_LIBS=""
15882 PTHREAD_CFLAGS=""
15884 CC="$ax_pthread_save_CC"
15885 CFLAGS="$ax_pthread_save_CFLAGS"
15886 LIBS="$ax_pthread_save_LIBS"
15889 # We must check for the threads library under a number of different
15890 # names; the ordering is very important because some systems
15891 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15892 # libraries is broken (non-POSIX).
15894 # Create a list of thread flags to try. Items starting with a "-" are
15895 # C compiler flags, and other items are library names, except for "none"
15896 # which indicates that we try without any flags at all, and "pthread-config"
15897 # which is a program returning the flags for the Pth emulation library.
15899 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15901 # The ordering *is* (sometimes) important. Some notes on the
15902 # individual items follow:
15904 # pthreads: AIX (must check this before -lpthread)
15905 # none: in case threads are in libc; should be tried before -Kthread and
15906 # other compiler flags to prevent continual compiler warnings
15907 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15908 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
15909 # (Note: HP C rejects this with "bad form for `-t' option")
15910 # -pthreads: Solaris/gcc (Note: HP C also rejects)
15911 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15912 # doesn't hurt to check since this sometimes defines pthreads and
15913 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
15914 # is present but should not be used directly; and before -mthreads,
15915 # because the compiler interprets this as "-mt" + "-hreads")
15916 # -mthreads: Mingw32/gcc, Lynx/gcc
15917 # pthread: Linux, etcetera
15918 # --thread-safe: KAI C++
15919 # pthread-config: use pthread-config program (for GNU Pth library)
15921 case $host_os in
15923 freebsd*)
15925 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15926 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15928 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
15931 hpux*)
15933 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
15934 # multi-threading and also sets -lpthread."
15936 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
15939 openedition*)
15941 # IBM z/OS requires a feature-test macro to be defined in order to
15942 # enable POSIX threads at all, so give the user a hint if this is
15943 # not set. (We don't define these ourselves, as they can affect
15944 # other portions of the system API in unpredictable ways.)
15946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15947 /* end confdefs.h. */
15949 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
15950 AX_PTHREAD_ZOS_MISSING
15951 # endif
15953 _ACEOF
15954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15955 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
15957 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
15959 rm -f conftest*
15963 solaris*)
15965 # On Solaris (at least, for some versions), libc contains stubbed
15966 # (non-functional) versions of the pthreads routines, so link-based
15967 # tests will erroneously succeed. (N.B.: The stubs are missing
15968 # pthread_cleanup_push, or rather a function called by this macro,
15969 # so we could check for that, but who knows whether they'll stub
15970 # that too in a future libc.) So we'll check first for the
15971 # standard Solaris way of linking pthreads (-mt -lpthread).
15973 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
15975 esac
15977 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
15979 if test "x$GCC" = "xyes"; then :
15980 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
15983 # The presence of a feature test macro requesting re-entrant function
15984 # definitions is, on some systems, a strong hint that pthreads support is
15985 # correctly enabled
15987 case $host_os in
15988 darwin* | hpux* | linux* | osf* | solaris*)
15989 ax_pthread_check_macro="_REENTRANT"
15992 aix*)
15993 ax_pthread_check_macro="_THREAD_SAFE"
15997 ax_pthread_check_macro="--"
15999 esac
16000 if test "x$ax_pthread_check_macro" = "x--"; then :
16001 ax_pthread_check_cond=0
16002 else
16003 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
16006 # Are we compiling with Clang?
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
16009 $as_echo_n "checking whether $CC is Clang... " >&6; }
16010 if ${ax_cv_PTHREAD_CLANG+:} false; then :
16011 $as_echo_n "(cached) " >&6
16012 else
16013 ax_cv_PTHREAD_CLANG=no
16014 # Note that Autoconf sets GCC=yes for Clang as well as GCC
16015 if test "x$GCC" = "xyes"; then
16016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16017 /* end confdefs.h. */
16018 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
16019 # if defined(__clang__) && defined(__llvm__)
16020 AX_PTHREAD_CC_IS_CLANG
16021 # endif
16023 _ACEOF
16024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16025 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
16026 ax_cv_PTHREAD_CLANG=yes
16028 rm -f conftest*
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
16034 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
16035 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
16037 ax_pthread_clang_warning=no
16039 # Clang needs special handling, because older versions handle the -pthread
16040 # option in a rather... idiosyncratic way
16042 if test "x$ax_pthread_clang" = "xyes"; then
16044 # Clang takes -pthread; it has never supported any other flag
16046 # (Note 1: This will need to be revisited if a system that Clang
16047 # supports has POSIX threads in a separate library. This tends not
16048 # to be the way of modern systems, but it's conceivable.)
16050 # (Note 2: On some systems, notably Darwin, -pthread is not needed
16051 # to get POSIX threads support; the API is always present and
16052 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
16053 # -pthread does define _REENTRANT, and while the Darwin headers
16054 # ignore this macro, third-party headers might not.)
16056 PTHREAD_CFLAGS="-pthread"
16057 PTHREAD_LIBS=
16059 ax_pthread_ok=yes
16061 # However, older versions of Clang make a point of warning the user
16062 # that, in an invocation where only linking and no compilation is
16063 # taking place, the -pthread option has no effect ("argument unused
16064 # during compilation"). They expect -pthread to be passed in only
16065 # when source code is being compiled.
16067 # Problem is, this is at odds with the way Automake and most other
16068 # C build frameworks function, which is that the same flags used in
16069 # compilation (CFLAGS) are also used in linking. Many systems
16070 # supported by AX_PTHREAD require exactly this for POSIX threads
16071 # support, and in fact it is often not straightforward to specify a
16072 # flag that is used only in the compilation phase and not in
16073 # linking. Such a scenario is extremely rare in practice.
16075 # Even though use of the -pthread flag in linking would only print
16076 # a warning, this can be a nuisance for well-run software projects
16077 # that build with -Werror. So if the active version of Clang has
16078 # this misfeature, we search for an option to squash it.
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
16081 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
16082 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
16083 $as_echo_n "(cached) " >&6
16084 else
16085 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
16086 # Create an alternate version of $ac_link that compiles and
16087 # links in two steps (.c -> .o, .o -> exe) instead of one
16088 # (.c -> exe), because the warning occurs only in the second
16089 # step
16090 ax_pthread_save_ac_link="$ac_link"
16091 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
16092 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
16093 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
16094 ax_pthread_save_CFLAGS="$CFLAGS"
16095 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
16096 if test "x$ax_pthread_try" = "xunknown"; then :
16097 break
16099 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
16100 ac_link="$ax_pthread_save_ac_link"
16101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16102 /* end confdefs.h. */
16103 int main(void){return 0;}
16104 _ACEOF
16105 if ac_fn_c_try_link "$LINENO"; then :
16106 ac_link="$ax_pthread_2step_ac_link"
16107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16108 /* end confdefs.h. */
16109 int main(void){return 0;}
16110 _ACEOF
16111 if ac_fn_c_try_link "$LINENO"; then :
16112 break
16114 rm -f core conftest.err conftest.$ac_objext \
16115 conftest$ac_exeext conftest.$ac_ext
16118 rm -f core conftest.err conftest.$ac_objext \
16119 conftest$ac_exeext conftest.$ac_ext
16120 done
16121 ac_link="$ax_pthread_save_ac_link"
16122 CFLAGS="$ax_pthread_save_CFLAGS"
16123 if test "x$ax_pthread_try" = "x"; then :
16124 ax_pthread_try=no
16126 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
16130 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
16132 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
16133 no | unknown) ;;
16134 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
16135 esac
16137 fi # $ax_pthread_clang = yes
16139 if test "x$ax_pthread_ok" = "xno"; then
16140 for ax_pthread_try_flag in $ax_pthread_flags; do
16142 case $ax_pthread_try_flag in
16143 none)
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16145 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16148 -mt,pthread)
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
16150 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
16151 PTHREAD_CFLAGS="-mt"
16152 PTHREAD_LIBS="-lpthread"
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
16157 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
16158 PTHREAD_CFLAGS="$ax_pthread_try_flag"
16161 pthread-config)
16162 # Extract the first word of "pthread-config", so it can be a program name with args.
16163 set dummy pthread-config; ac_word=$2
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16165 $as_echo_n "checking for $ac_word... " >&6; }
16166 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16167 $as_echo_n "(cached) " >&6
16168 else
16169 if test -n "$ax_pthread_config"; then
16170 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16171 else
16172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16173 for as_dir in $PATH
16175 IFS=$as_save_IFS
16176 test -z "$as_dir" && as_dir=.
16177 for ac_exec_ext in '' $ac_executable_extensions; do
16178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16179 ac_cv_prog_ax_pthread_config="yes"
16180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16181 break 2
16183 done
16184 done
16185 IFS=$as_save_IFS
16187 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16190 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16191 if test -n "$ax_pthread_config"; then
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16193 $as_echo "$ax_pthread_config" >&6; }
16194 else
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16196 $as_echo "no" >&6; }
16200 if test "x$ax_pthread_config" = "xno"; then :
16201 continue
16203 PTHREAD_CFLAGS="`pthread-config --cflags`"
16204 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
16209 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
16210 PTHREAD_LIBS="-l$ax_pthread_try_flag"
16212 esac
16214 ax_pthread_save_CFLAGS="$CFLAGS"
16215 ax_pthread_save_LIBS="$LIBS"
16216 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16217 LIBS="$PTHREAD_LIBS $LIBS"
16219 # Check for various functions. We must include pthread.h,
16220 # since some functions may be macros. (On the Sequent, we
16221 # need a special flag -Kthread to make this header compile.)
16222 # We check for pthread_join because it is in -lpthread on IRIX
16223 # while pthread_create is in libc. We check for pthread_attr_init
16224 # due to DEC craziness with -lpthreads. We check for
16225 # pthread_cleanup_push because it is one of the few pthread
16226 # functions on Solaris that doesn't have a non-functional libc stub.
16227 # We try pthread_create on general principles.
16229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230 /* end confdefs.h. */
16231 #include <pthread.h>
16232 # if $ax_pthread_check_cond
16233 # error "$ax_pthread_check_macro must be defined"
16234 # endif
16235 static void routine(void *a) { a = 0; }
16236 static void *start_routine(void *a) { return a; }
16238 main ()
16240 pthread_t th; pthread_attr_t attr;
16241 pthread_create(&th, 0, start_routine, 0);
16242 pthread_join(th, 0);
16243 pthread_attr_init(&attr);
16244 pthread_cleanup_push(routine, 0);
16245 pthread_cleanup_pop(0) /* ; */
16247 return 0;
16249 _ACEOF
16250 if ac_fn_c_try_link "$LINENO"; then :
16251 ax_pthread_ok=yes
16253 rm -f core conftest.err conftest.$ac_objext \
16254 conftest$ac_exeext conftest.$ac_ext
16256 CFLAGS="$ax_pthread_save_CFLAGS"
16257 LIBS="$ax_pthread_save_LIBS"
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16260 $as_echo "$ax_pthread_ok" >&6; }
16261 if test "x$ax_pthread_ok" = "xyes"; then :
16262 break
16265 PTHREAD_LIBS=""
16266 PTHREAD_CFLAGS=""
16267 done
16270 # Various other checks:
16271 if test "x$ax_pthread_ok" = "xyes"; then
16272 ax_pthread_save_CFLAGS="$CFLAGS"
16273 ax_pthread_save_LIBS="$LIBS"
16274 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16275 LIBS="$PTHREAD_LIBS $LIBS"
16277 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16279 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16280 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
16281 $as_echo_n "(cached) " >&6
16282 else
16283 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
16284 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286 /* end confdefs.h. */
16287 #include <pthread.h>
16289 main ()
16291 int attr = $ax_pthread_attr; return attr /* ; */
16293 return 0;
16295 _ACEOF
16296 if ac_fn_c_try_link "$LINENO"; then :
16297 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
16299 rm -f core conftest.err conftest.$ac_objext \
16300 conftest$ac_exeext conftest.$ac_ext
16301 done
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
16305 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
16306 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
16307 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
16308 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
16310 cat >>confdefs.h <<_ACEOF
16311 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
16312 _ACEOF
16314 ax_pthread_joinable_attr_defined=yes
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
16319 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
16320 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
16321 $as_echo_n "(cached) " >&6
16322 else
16323 ax_cv_PTHREAD_SPECIAL_FLAGS=no
16324 case $host_os in
16325 solaris*)
16326 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
16328 esac
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
16332 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
16333 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
16334 test "x$ax_pthread_special_flags_added" != "xyes"; then :
16335 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
16336 ax_pthread_special_flags_added=yes
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16340 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16341 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16342 $as_echo_n "(cached) " >&6
16343 else
16344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16345 /* end confdefs.h. */
16346 #include <pthread.h>
16348 main ()
16350 int i = PTHREAD_PRIO_INHERIT;
16352 return 0;
16354 _ACEOF
16355 if ac_fn_c_try_link "$LINENO"; then :
16356 ax_cv_PTHREAD_PRIO_INHERIT=yes
16357 else
16358 ax_cv_PTHREAD_PRIO_INHERIT=no
16360 rm -f core conftest.err conftest.$ac_objext \
16361 conftest$ac_exeext conftest.$ac_ext
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16365 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16366 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
16367 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
16369 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16371 ax_pthread_prio_inherit_defined=yes
16375 CFLAGS="$ax_pthread_save_CFLAGS"
16376 LIBS="$ax_pthread_save_LIBS"
16378 # More AIX lossage: compile with *_r variant
16379 if test "x$GCC" != "xyes"; then
16380 case $host_os in
16381 aix*)
16382 case "x/$CC" in #(
16383 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16384 #handle absolute path differently from PATH based program lookup
16385 case "x$CC" in #(
16386 x/*) :
16387 if as_fn_executable_p ${CC}_r; then :
16388 PTHREAD_CC="${CC}_r"
16389 fi ;; #(
16390 *) :
16391 for ac_prog in ${CC}_r
16393 # Extract the first word of "$ac_prog", so it can be a program name with args.
16394 set dummy $ac_prog; ac_word=$2
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16396 $as_echo_n "checking for $ac_word... " >&6; }
16397 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16398 $as_echo_n "(cached) " >&6
16399 else
16400 if test -n "$PTHREAD_CC"; then
16401 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16402 else
16403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16404 for as_dir in $PATH
16406 IFS=$as_save_IFS
16407 test -z "$as_dir" && as_dir=.
16408 for ac_exec_ext in '' $ac_executable_extensions; do
16409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16410 ac_cv_prog_PTHREAD_CC="$ac_prog"
16411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16412 break 2
16414 done
16415 done
16416 IFS=$as_save_IFS
16420 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16421 if test -n "$PTHREAD_CC"; then
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16423 $as_echo "$PTHREAD_CC" >&6; }
16424 else
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16426 $as_echo "no" >&6; }
16430 test -n "$PTHREAD_CC" && break
16431 done
16432 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16434 esac ;; #(
16435 *) :
16437 esac
16439 esac
16443 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16449 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16450 if test "x$ax_pthread_ok" = "xyes"; then
16452 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16455 else
16456 ax_pthread_ok=no
16459 ac_ext=c
16460 ac_cpp='$CPP $CPPFLAGS'
16461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16467 # Specify a location for JDK
16468 enable_gprofng_jp=
16469 jdk_inc=
16471 # Check whether --with-jdk was given.
16472 if test "${with_jdk+set}" = set; then :
16473 withval=$with_jdk;
16477 if test "x$with_jdk" != x; then
16478 jdk_inc="-I$with_jdk/include -I$with_jdk/include/linux"
16479 enable_gprofng_jp=yes
16480 else
16481 # Extract the first word of "javac", so it can be a program name with args.
16482 set dummy javac; ac_word=$2
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16484 $as_echo_n "checking for $ac_word... " >&6; }
16485 if ${ac_cv_path_JAVAC+:} false; then :
16486 $as_echo_n "(cached) " >&6
16487 else
16488 case $JAVAC in
16489 [\\/]* | ?:[\\/]*)
16490 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
16493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16494 for as_dir in $PATH
16496 IFS=$as_save_IFS
16497 test -z "$as_dir" && as_dir=.
16498 for ac_exec_ext in '' $ac_executable_extensions; do
16499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16500 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
16501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16502 break 2
16504 done
16505 done
16506 IFS=$as_save_IFS
16508 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="javac"
16510 esac
16512 JAVAC=$ac_cv_path_JAVAC
16513 if test -n "$JAVAC"; then
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
16515 $as_echo "$JAVAC" >&6; }
16516 else
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16518 $as_echo "no" >&6; }
16522 if test -f $JAVAC; then
16523 x=`readlink -f $JAVAC`
16524 x=`dirname $x`
16525 x=`dirname $x`
16526 if ! test -f $x/include/jni.h; then
16527 x=`dirname $x`
16529 if test -f $x/include/jni.h; then
16530 jdk_inc="-I$x/include -I$x/include/linux"
16531 enable_gprofng_jp=yes
16535 if test "x$enable_gprofng_jp" = x; then
16536 # Extract the first word of "java", so it can be a program name with args.
16537 set dummy java; ac_word=$2
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16539 $as_echo_n "checking for $ac_word... " >&6; }
16540 if ${ac_cv_path_JAVA+:} false; then :
16541 $as_echo_n "(cached) " >&6
16542 else
16543 case $JAVA in
16544 [\\/]* | ?:[\\/]*)
16545 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
16548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16549 for as_dir in $PATH
16551 IFS=$as_save_IFS
16552 test -z "$as_dir" && as_dir=.
16553 for ac_exec_ext in '' $ac_executable_extensions; do
16554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16555 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
16556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16557 break 2
16559 done
16560 done
16561 IFS=$as_save_IFS
16563 test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="java"
16565 esac
16567 JAVA=$ac_cv_path_JAVA
16568 if test -n "$JAVA"; then
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
16570 $as_echo "$JAVA" >&6; }
16571 else
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16573 $as_echo "no" >&6; }
16577 if test -f $JAVA; then
16578 x=`readlink -f $JAVA`
16579 x=`dirname $x`
16580 x=`dirname $x`
16581 if ! test -f $x/include/jni.h; then
16582 x=`dirname $x`
16584 if test -f $x/include/jni.h; then
16585 jdk_inc="-I$x/include -I$x/include/linux"
16586 enable_gprofng_jp=yes
16590 if test "x$enable_gprofng_jp" = x; then
16591 ac_fn_c_check_header_compile "$LINENO" "jni.h" "ac_cv_header_jni_h" "
16593 if test "x$ac_cv_header_jni_h" = xyes; then :
16594 enable_gprofng_jp=yes
16599 GPROFNG_BROKEN_JAVAC=no
16600 if test "x$enable_gprofng_jp" = x; then
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find the JDK include directory.
16602 gprofng will be build without support for profiling Java applications.
16603 Use --with-jdk=PATH to specify directory for the installed JDK" >&5
16604 $as_echo "$as_me: WARNING: Cannot find the JDK include directory.
16605 gprofng will be build without support for profiling Java applications.
16606 Use --with-jdk=PATH to specify directory for the installed JDK" >&2;}
16607 else
16609 $as_echo "#define GPROFNG_JAVA_PROFILING 1" >>confdefs.h
16611 if test "x$JAVAC" != x; then
16612 cat > configtest.java << EOF
16613 class Simple{
16614 public static void main(String args){
16615 System.out.println("Hello Java");
16619 if { ac_try='$JAVAC configtest.java >&5 2>&5'
16620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16621 (eval $ac_try) 2>&5
16622 ac_status=$?
16623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16624 test $ac_status = 0; }; }; then
16625 GPROFNG_BROKEN_JAVAC=no
16626 else
16627 GPROFNG_BROKEN_JAVAC=yes
16629 rm -f configtest.*
16635 DEBUG=
16636 # Check whether --enable-gprofng-debug was given.
16637 if test "${enable_gprofng_debug+set}" = set; then :
16638 enableval=$enable_gprofng_debug;
16639 case "$enableval" in
16640 yes|no) ;;
16641 *) as_fn_error $? "Argument to enable/disable gprofng-debug must be yes or no" "$LINENO" 5 ;;
16642 esac
16644 else
16645 enable_gprofng_debug=no
16649 if test "${enable_gprofng_debug}" = yes; then
16651 $as_echo "#define DEBUG 1" >>confdefs.h
16655 cat > "dummy.c" << EOF
16656 #include <features.h>
16657 #if defined(__UCLIBC__)
16658 LIBC=uclibc
16659 #elif defined(__dietlibc__)
16660 LIBC=dietlibc
16661 #elif defined(__GLIBC__)
16662 LIBC=gnu
16663 #else
16664 #include <stdarg.h>
16665 /* First heuristic to detect musl libc. */
16666 #ifdef __DEFINED_va_list
16667 LIBC=musl
16668 #else
16669 LIBC=gnu
16670 #endif
16671 #endif
16673 cc_set_libc=`$CC -E "dummy.c" 2>/dev/null | grep '^LIBC=' | sed 's, ,,g'`
16674 eval "$cc_set_libc"
16675 if test "$LIBC" = musl; then
16677 $as_echo "#define __MUSL_LIBC 1" >>confdefs.h
16682 # Check if linker supports --as-needed and --no-as-needed options.
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
16684 $as_echo_n "checking linker --as-needed support... " >&6; }
16685 if ${bfd_cv_ld_as_needed+:} false; then :
16686 $as_echo_n "(cached) " >&6
16687 else
16688 bfd_cv_ld_as_needed=no
16689 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
16690 bfd_cv_ld_as_needed=yes
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
16695 $as_echo "$bfd_cv_ld_as_needed" >&6; }
16697 no_as_needed=
16698 if test x"$bfd_cv_ld_as_needed" = xyes; then
16699 no_as_needed='-Wl,--no-as-needed'
16702 # Extract the first word of "expect", so it can be a program name with args.
16703 set dummy expect; ac_word=$2
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16705 $as_echo_n "checking for $ac_word... " >&6; }
16706 if ${ac_cv_path_EXPECT+:} false; then :
16707 $as_echo_n "(cached) " >&6
16708 else
16709 case $EXPECT in
16710 [\\/]* | ?:[\\/]*)
16711 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
16714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16715 for as_dir in $PATH
16717 IFS=$as_save_IFS
16718 test -z "$as_dir" && as_dir=.
16719 for ac_exec_ext in '' $ac_executable_extensions; do
16720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16721 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
16722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16723 break 2
16725 done
16726 done
16727 IFS=$as_save_IFS
16730 esac
16732 EXPECT=$ac_cv_path_EXPECT
16733 if test -n "$EXPECT"; then
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
16735 $as_echo "$EXPECT" >&6; }
16736 else
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16738 $as_echo "no" >&6; }
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5
16743 $as_echo_n "checking for Tcl supporting try/catch... " >&6; }
16744 if ${ac_cv_libctf_tcl_try+:} false; then :
16745 $as_echo_n "(cached) " >&6
16746 else
16747 ac_cv_libctf_tcl_try=`if test -z $EXPECT; then echo no; else $EXPECT << EOF
16748 if [llength [info commands try]] then { puts yes } else { puts no }
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5
16754 $as_echo "$ac_cv_libctf_tcl_try" >&6; }
16756 # Only native testing and only on supported platforms:
16757 if test "${ac_cv_libctf_tcl_try}" = yes \
16758 -a "x${build_src}" = xtrue -a "x${build_collector}" = xtrue \
16759 -a "x${host}" = "x${target}"; then
16760 TCL_TRY_TRUE=
16761 TCL_TRY_FALSE='#'
16762 else
16763 TCL_TRY_TRUE='#'
16764 TCL_TRY_FALSE=
16769 # Use the system's zlib library.
16770 zlibdir="-L\$(top_builddir)/../zlib"
16771 zlibinc="-I\$(top_srcdir)/../zlib"
16773 # Check whether --with-system-zlib was given.
16774 if test "${with_system_zlib+set}" = set; then :
16775 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
16776 zlibdir=
16777 zlibinc=
16786 # Generate manpages, if possible.
16787 build_man=false
16788 build_doc=false
16789 if test $cross_compiling = no; then
16790 for ac_prog in help2man
16792 # Extract the first word of "$ac_prog", so it can be a program name with args.
16793 set dummy $ac_prog; ac_word=$2
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16795 $as_echo_n "checking for $ac_word... " >&6; }
16796 if ${ac_cv_prog_HELP2MAN+:} false; then :
16797 $as_echo_n "(cached) " >&6
16798 else
16799 if test -n "$HELP2MAN"; then
16800 ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
16801 else
16802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16803 for as_dir in $PATH
16805 IFS=$as_save_IFS
16806 test -z "$as_dir" && as_dir=.
16807 for ac_exec_ext in '' $ac_executable_extensions; do
16808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16809 ac_cv_prog_HELP2MAN="$ac_prog"
16810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16811 break 2
16813 done
16814 done
16815 IFS=$as_save_IFS
16819 HELP2MAN=$ac_cv_prog_HELP2MAN
16820 if test -n "$HELP2MAN"; then
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
16822 $as_echo "$HELP2MAN" >&6; }
16823 else
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16825 $as_echo "no" >&6; }
16829 test -n "$HELP2MAN" && break
16830 done
16831 test -n "$HELP2MAN" || HELP2MAN="$MISSING help2man"
16833 case "x$HELP2MAN" in
16834 x | */missing\ help2man* )
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gprofng: help2man is missing. Man pages will not be built." >&5
16836 $as_echo "$as_me: WARNING: gprofng: help2man is missing. Man pages will not be built." >&2;}
16838 * ) build_man=true ;;
16839 esac
16841 for ac_prog in makeinfo
16843 # Extract the first word of "$ac_prog", so it can be a program name with args.
16844 set dummy $ac_prog; ac_word=$2
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16846 $as_echo_n "checking for $ac_word... " >&6; }
16847 if ${ac_cv_prog_MAKEINFO+:} false; then :
16848 $as_echo_n "(cached) " >&6
16849 else
16850 if test -n "$MAKEINFO"; then
16851 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
16852 else
16853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16854 for as_dir in $PATH
16856 IFS=$as_save_IFS
16857 test -z "$as_dir" && as_dir=.
16858 for ac_exec_ext in '' $ac_executable_extensions; do
16859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16860 ac_cv_prog_MAKEINFO="$ac_prog"
16861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16862 break 2
16864 done
16865 done
16866 IFS=$as_save_IFS
16870 MAKEINFO=$ac_cv_prog_MAKEINFO
16871 if test -n "$MAKEINFO"; then
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
16873 $as_echo "$MAKEINFO" >&6; }
16874 else
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16876 $as_echo "no" >&6; }
16880 test -n "$MAKEINFO" && break
16881 done
16882 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
16884 case "x$MAKEINFO" in
16885 x | */missing\ makeinfo*)
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gprofng: makeinfo is missing. Info documentation will not be built." >&5
16887 $as_echo "$as_me: WARNING: gprofng: makeinfo is missing. Info documentation will not be built." >&2;}
16890 case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
16891 x*\ [1-5].*|x*\ 6.[0-4].* )
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gprofng: $MAKEINFO is too old. Info documentation will not be built." >&5
16893 $as_echo "$as_me: WARNING: gprofng: $MAKEINFO is too old. Info documentation will not be built." >&2;}
16894 MAKEINFO="@echo $MAKEINFO is too old, 6.5 or newer required; true"
16896 x* ) build_doc=true ;;
16897 esac
16899 esac
16902 if test x$build_man = xtrue; then
16903 BUILD_MAN_TRUE=
16904 BUILD_MAN_FALSE='#'
16905 else
16906 BUILD_MAN_TRUE='#'
16907 BUILD_MAN_FALSE=
16910 if test x$build_doc = xtrue; then
16911 BUILD_DOC_TRUE=
16912 BUILD_DOC_FALSE='#'
16913 else
16914 BUILD_DOC_TRUE='#'
16915 BUILD_DOC_FALSE=
16919 LD_NO_AS_NEEDED=${no_as_needed}
16921 GPROFNG_CFLAGS=${gprofng_cflags}
16925 GPROFNG_CPPFLAGS=${gprofng_cppflags}
16928 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
16929 if test "x$ac_cv_have_decl_basename" = xyes; then :
16930 ac_have_decl=1
16931 else
16932 ac_have_decl=0
16935 cat >>confdefs.h <<_ACEOF
16936 #define HAVE_DECL_BASENAME $ac_have_decl
16937 _ACEOF
16939 for ac_func in clock_gettime strsignal
16940 do :
16941 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16942 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16943 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16944 cat >>confdefs.h <<_ACEOF
16945 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16946 _ACEOF
16949 done
16952 clock_gettime_link=
16953 # At least for glibc, clock_gettime is in librt. But don't
16954 # pull that in if it still doesn't give us the function we want. This
16955 # test is copied from libgomp, and modified to not link in -lrt as
16956 # we're using this for test timing only.
16957 if test "$ac_cv_func_clock_gettime" = no; then
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
16959 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
16960 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
16961 $as_echo_n "(cached) " >&6
16962 else
16963 ac_check_lib_save_LIBS=$LIBS
16964 LIBS="-lrt $LIBS"
16965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16966 /* end confdefs.h. */
16968 /* Override any GCC internal prototype to avoid an error.
16969 Use char because int might match the return type of a GCC
16970 builtin and then its argument prototype would still apply. */
16971 #ifdef __cplusplus
16972 extern "C"
16973 #endif
16974 char clock_gettime ();
16976 main ()
16978 return clock_gettime ();
16980 return 0;
16982 _ACEOF
16983 if ac_fn_c_try_link "$LINENO"; then :
16984 ac_cv_lib_rt_clock_gettime=yes
16985 else
16986 ac_cv_lib_rt_clock_gettime=no
16988 rm -f core conftest.err conftest.$ac_objext \
16989 conftest$ac_exeext conftest.$ac_ext
16990 LIBS=$ac_check_lib_save_LIBS
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16993 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
16994 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
16995 CLOCK_GETTIME_LINK=-lrt
16997 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17006 ac_config_files="$ac_config_files Makefile src/Makefile gp-display-html/Makefile doc/Makefile"
17008 ac_config_headers="$ac_config_headers config.h:common/config.h.in"
17011 cat >confcache <<\_ACEOF
17012 # This file is a shell script that caches the results of configure
17013 # tests run on this system so they can be shared between configure
17014 # scripts and configure runs, see configure's option --config-cache.
17015 # It is not useful on other systems. If it contains results you don't
17016 # want to keep, you may remove or edit it.
17018 # config.status only pays attention to the cache file if you give it
17019 # the --recheck option to rerun configure.
17021 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17022 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17023 # following values.
17025 _ACEOF
17027 # The following way of writing the cache mishandles newlines in values,
17028 # but we know of no workaround that is simple, portable, and efficient.
17029 # So, we kill variables containing newlines.
17030 # Ultrix sh set writes to stderr and can't be redirected directly,
17031 # and sets the high bit in the cache file unless we assign to the vars.
17033 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17034 eval ac_val=\$$ac_var
17035 case $ac_val in #(
17036 *${as_nl}*)
17037 case $ac_var in #(
17038 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17039 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17040 esac
17041 case $ac_var in #(
17042 _ | IFS | as_nl) ;; #(
17043 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17044 *) { eval $ac_var=; unset $ac_var;} ;;
17045 esac ;;
17046 esac
17047 done
17049 (set) 2>&1 |
17050 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17051 *${as_nl}ac_space=\ *)
17052 # `set' does not quote correctly, so add quotes: double-quote
17053 # substitution turns \\\\ into \\, and sed turns \\ into \.
17054 sed -n \
17055 "s/'/'\\\\''/g;
17056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17057 ;; #(
17059 # `set' quotes correctly as required by POSIX, so do not add quotes.
17060 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17062 esac |
17063 sort
17065 sed '
17066 /^ac_cv_env_/b end
17067 t clear
17068 :clear
17069 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17070 t end
17071 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17072 :end' >>confcache
17073 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17074 if test -w "$cache_file"; then
17075 if test "x$cache_file" != "x/dev/null"; then
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17077 $as_echo "$as_me: updating cache $cache_file" >&6;}
17078 if test ! -f "$cache_file" || test -h "$cache_file"; then
17079 cat confcache >"$cache_file"
17080 else
17081 case $cache_file in #(
17082 */* | ?:*)
17083 mv -f confcache "$cache_file"$$ &&
17084 mv -f "$cache_file"$$ "$cache_file" ;; #(
17086 mv -f confcache "$cache_file" ;;
17087 esac
17090 else
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17092 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17095 rm -f confcache
17097 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17098 # Let make expand exec_prefix.
17099 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17101 DEFS=-DHAVE_CONFIG_H
17103 ac_libobjs=
17104 ac_ltlibobjs=
17106 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17107 # 1. Remove the extension, and $U if already installed.
17108 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17109 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17110 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17111 # will be set to the directory where LIBOBJS objects are built.
17112 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17113 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17114 done
17115 LIBOBJS=$ac_libobjs
17117 LTLIBOBJS=$ac_ltlibobjs
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17121 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17122 if test -n "$am_sleep_pid"; then
17123 # Hide warnings about reused PIDs.
17124 wait $am_sleep_pid 2>/dev/null
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17127 $as_echo "done" >&6; }
17128 if test -n "$EXEEXT"; then
17129 am__EXEEXT_TRUE=
17130 am__EXEEXT_FALSE='#'
17131 else
17132 am__EXEEXT_TRUE='#'
17133 am__EXEEXT_FALSE=
17136 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17137 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17140 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17141 as_fn_error $? "conditional \"AMDEP\" was never defined.
17142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17144 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17145 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17148 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17149 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17152 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17153 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17156 if test -z "${BUILD_COLLECTOR_TRUE}" && test -z "${BUILD_COLLECTOR_FALSE}"; then
17157 as_fn_error $? "conditional \"BUILD_COLLECTOR\" was never defined.
17158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17160 if test -z "${BUILD_SRC_TRUE}" && test -z "${BUILD_SRC_FALSE}"; then
17161 as_fn_error $? "conditional \"BUILD_SRC\" was never defined.
17162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17164 if test -z "${TCL_TRY_TRUE}" && test -z "${TCL_TRY_FALSE}"; then
17165 as_fn_error $? "conditional \"TCL_TRY\" was never defined.
17166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17168 if test -z "${BUILD_MAN_TRUE}" && test -z "${BUILD_MAN_FALSE}"; then
17169 as_fn_error $? "conditional \"BUILD_MAN\" was never defined.
17170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17172 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
17173 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
17174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17177 : "${CONFIG_STATUS=./config.status}"
17178 ac_write_fail=0
17179 ac_clean_files_save=$ac_clean_files
17180 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17182 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17183 as_write_fail=0
17184 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17185 #! $SHELL
17186 # Generated by $as_me.
17187 # Run this file to recreate the current configuration.
17188 # Compiler output produced by configure, useful for debugging
17189 # configure, is in config.log if it exists.
17191 debug=false
17192 ac_cs_recheck=false
17193 ac_cs_silent=false
17195 SHELL=\${CONFIG_SHELL-$SHELL}
17196 export SHELL
17197 _ASEOF
17198 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17199 ## -------------------- ##
17200 ## M4sh Initialization. ##
17201 ## -------------------- ##
17203 # Be more Bourne compatible
17204 DUALCASE=1; export DUALCASE # for MKS sh
17205 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17206 emulate sh
17207 NULLCMD=:
17208 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17209 # is contrary to our usage. Disable this feature.
17210 alias -g '${1+"$@"}'='"$@"'
17211 setopt NO_GLOB_SUBST
17212 else
17213 case `(set -o) 2>/dev/null` in #(
17214 *posix*) :
17215 set -o posix ;; #(
17216 *) :
17218 esac
17222 as_nl='
17224 export as_nl
17225 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17226 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17227 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17228 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17229 # Prefer a ksh shell builtin over an external printf program on Solaris,
17230 # but without wasting forks for bash or zsh.
17231 if test -z "$BASH_VERSION$ZSH_VERSION" \
17232 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17233 as_echo='print -r --'
17234 as_echo_n='print -rn --'
17235 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17236 as_echo='printf %s\n'
17237 as_echo_n='printf %s'
17238 else
17239 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17240 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17241 as_echo_n='/usr/ucb/echo -n'
17242 else
17243 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17244 as_echo_n_body='eval
17245 arg=$1;
17246 case $arg in #(
17247 *"$as_nl"*)
17248 expr "X$arg" : "X\\(.*\\)$as_nl";
17249 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17250 esac;
17251 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17253 export as_echo_n_body
17254 as_echo_n='sh -c $as_echo_n_body as_echo'
17256 export as_echo_body
17257 as_echo='sh -c $as_echo_body as_echo'
17260 # The user is always right.
17261 if test "${PATH_SEPARATOR+set}" != set; then
17262 PATH_SEPARATOR=:
17263 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17264 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17265 PATH_SEPARATOR=';'
17270 # IFS
17271 # We need space, tab and new line, in precisely that order. Quoting is
17272 # there to prevent editors from complaining about space-tab.
17273 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17274 # splitting by setting IFS to empty value.)
17275 IFS=" "" $as_nl"
17277 # Find who we are. Look in the path if we contain no directory separator.
17278 as_myself=
17279 case $0 in #((
17280 *[\\/]* ) as_myself=$0 ;;
17281 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17282 for as_dir in $PATH
17284 IFS=$as_save_IFS
17285 test -z "$as_dir" && as_dir=.
17286 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17287 done
17288 IFS=$as_save_IFS
17291 esac
17292 # We did not find ourselves, most probably we were run as `sh COMMAND'
17293 # in which case we are not to be found in the path.
17294 if test "x$as_myself" = x; then
17295 as_myself=$0
17297 if test ! -f "$as_myself"; then
17298 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17299 exit 1
17302 # Unset variables that we do not need and which cause bugs (e.g. in
17303 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17304 # suppresses any "Segmentation fault" message there. '((' could
17305 # trigger a bug in pdksh 5.2.14.
17306 for as_var in BASH_ENV ENV MAIL MAILPATH
17307 do eval test x\${$as_var+set} = xset \
17308 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17309 done
17310 PS1='$ '
17311 PS2='> '
17312 PS4='+ '
17314 # NLS nuisances.
17315 LC_ALL=C
17316 export LC_ALL
17317 LANGUAGE=C
17318 export LANGUAGE
17320 # CDPATH.
17321 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17324 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17325 # ----------------------------------------
17326 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17327 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17328 # script with STATUS, using 1 if that was 0.
17329 as_fn_error ()
17331 as_status=$1; test $as_status -eq 0 && as_status=1
17332 if test "$4"; then
17333 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17334 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17336 $as_echo "$as_me: error: $2" >&2
17337 as_fn_exit $as_status
17338 } # as_fn_error
17341 # as_fn_set_status STATUS
17342 # -----------------------
17343 # Set $? to STATUS, without forking.
17344 as_fn_set_status ()
17346 return $1
17347 } # as_fn_set_status
17349 # as_fn_exit STATUS
17350 # -----------------
17351 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17352 as_fn_exit ()
17354 set +e
17355 as_fn_set_status $1
17356 exit $1
17357 } # as_fn_exit
17359 # as_fn_unset VAR
17360 # ---------------
17361 # Portably unset VAR.
17362 as_fn_unset ()
17364 { eval $1=; unset $1;}
17366 as_unset=as_fn_unset
17367 # as_fn_append VAR VALUE
17368 # ----------------------
17369 # Append the text in VALUE to the end of the definition contained in VAR. Take
17370 # advantage of any shell optimizations that allow amortized linear growth over
17371 # repeated appends, instead of the typical quadratic growth present in naive
17372 # implementations.
17373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17374 eval 'as_fn_append ()
17376 eval $1+=\$2
17378 else
17379 as_fn_append ()
17381 eval $1=\$$1\$2
17383 fi # as_fn_append
17385 # as_fn_arith ARG...
17386 # ------------------
17387 # Perform arithmetic evaluation on the ARGs, and store the result in the
17388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17389 # must be portable across $(()) and expr.
17390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17391 eval 'as_fn_arith ()
17393 as_val=$(( $* ))
17395 else
17396 as_fn_arith ()
17398 as_val=`expr "$@" || test $? -eq 1`
17400 fi # as_fn_arith
17403 if expr a : '\(a\)' >/dev/null 2>&1 &&
17404 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17405 as_expr=expr
17406 else
17407 as_expr=false
17410 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17411 as_basename=basename
17412 else
17413 as_basename=false
17416 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17417 as_dirname=dirname
17418 else
17419 as_dirname=false
17422 as_me=`$as_basename -- "$0" ||
17423 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17424 X"$0" : 'X\(//\)$' \| \
17425 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17426 $as_echo X/"$0" |
17427 sed '/^.*\/\([^/][^/]*\)\/*$/{
17428 s//\1/
17431 /^X\/\(\/\/\)$/{
17432 s//\1/
17435 /^X\/\(\/\).*/{
17436 s//\1/
17439 s/.*/./; q'`
17441 # Avoid depending upon Character Ranges.
17442 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17443 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17444 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17445 as_cr_digits='0123456789'
17446 as_cr_alnum=$as_cr_Letters$as_cr_digits
17448 ECHO_C= ECHO_N= ECHO_T=
17449 case `echo -n x` in #(((((
17450 -n*)
17451 case `echo 'xy\c'` in
17452 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17453 xy) ECHO_C='\c';;
17454 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17455 ECHO_T=' ';;
17456 esac;;
17458 ECHO_N='-n';;
17459 esac
17461 rm -f conf$$ conf$$.exe conf$$.file
17462 if test -d conf$$.dir; then
17463 rm -f conf$$.dir/conf$$.file
17464 else
17465 rm -f conf$$.dir
17466 mkdir conf$$.dir 2>/dev/null
17468 if (echo >conf$$.file) 2>/dev/null; then
17469 if ln -s conf$$.file conf$$ 2>/dev/null; then
17470 as_ln_s='ln -s'
17471 # ... but there are two gotchas:
17472 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17473 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17474 # In both cases, we have to default to `cp -pR'.
17475 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17476 as_ln_s='cp -pR'
17477 elif ln conf$$.file conf$$ 2>/dev/null; then
17478 as_ln_s=ln
17479 else
17480 as_ln_s='cp -pR'
17482 else
17483 as_ln_s='cp -pR'
17485 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17486 rmdir conf$$.dir 2>/dev/null
17489 # as_fn_mkdir_p
17490 # -------------
17491 # Create "$as_dir" as a directory, including parents if necessary.
17492 as_fn_mkdir_p ()
17495 case $as_dir in #(
17496 -*) as_dir=./$as_dir;;
17497 esac
17498 test -d "$as_dir" || eval $as_mkdir_p || {
17499 as_dirs=
17500 while :; do
17501 case $as_dir in #(
17502 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17503 *) as_qdir=$as_dir;;
17504 esac
17505 as_dirs="'$as_qdir' $as_dirs"
17506 as_dir=`$as_dirname -- "$as_dir" ||
17507 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17508 X"$as_dir" : 'X\(//\)[^/]' \| \
17509 X"$as_dir" : 'X\(//\)$' \| \
17510 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17511 $as_echo X"$as_dir" |
17512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17513 s//\1/
17516 /^X\(\/\/\)[^/].*/{
17517 s//\1/
17520 /^X\(\/\/\)$/{
17521 s//\1/
17524 /^X\(\/\).*/{
17525 s//\1/
17528 s/.*/./; q'`
17529 test -d "$as_dir" && break
17530 done
17531 test -z "$as_dirs" || eval "mkdir $as_dirs"
17532 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17535 } # as_fn_mkdir_p
17536 if mkdir -p . 2>/dev/null; then
17537 as_mkdir_p='mkdir -p "$as_dir"'
17538 else
17539 test -d ./-p && rmdir ./-p
17540 as_mkdir_p=false
17544 # as_fn_executable_p FILE
17545 # -----------------------
17546 # Test if FILE is an executable regular file.
17547 as_fn_executable_p ()
17549 test -f "$1" && test -x "$1"
17550 } # as_fn_executable_p
17551 as_test_x='test -x'
17552 as_executable_p=as_fn_executable_p
17554 # Sed expression to map a string onto a valid CPP name.
17555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17557 # Sed expression to map a string onto a valid variable name.
17558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17561 exec 6>&1
17562 ## ----------------------------------- ##
17563 ## Main body of $CONFIG_STATUS script. ##
17564 ## ----------------------------------- ##
17565 _ASEOF
17566 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17569 # Save the log message, to keep $0 and so on meaningful, and to
17570 # report actual input values of CONFIG_FILES etc. instead of their
17571 # values after options handling.
17572 ac_log="
17573 This file was extended by gprofng $as_me 2.41.50, which was
17574 generated by GNU Autoconf 2.69. Invocation command line was
17576 CONFIG_FILES = $CONFIG_FILES
17577 CONFIG_HEADERS = $CONFIG_HEADERS
17578 CONFIG_LINKS = $CONFIG_LINKS
17579 CONFIG_COMMANDS = $CONFIG_COMMANDS
17580 $ $0 $@
17582 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17585 _ACEOF
17587 case $ac_config_files in *"
17588 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17589 esac
17591 case $ac_config_headers in *"
17592 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17593 esac
17596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17597 # Files that config.status was made for.
17598 config_files="$ac_config_files"
17599 config_headers="$ac_config_headers"
17600 config_commands="$ac_config_commands"
17602 _ACEOF
17604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17605 ac_cs_usage="\
17606 \`$as_me' instantiates files and other configuration actions
17607 from templates according to the current configuration. Unless the files
17608 and actions are specified as TAGs, all are instantiated by default.
17610 Usage: $0 [OPTION]... [TAG]...
17612 -h, --help print this help, then exit
17613 -V, --version print version number and configuration settings, then exit
17614 --config print configuration, then exit
17615 -q, --quiet, --silent
17616 do not print progress messages
17617 -d, --debug don't remove temporary files
17618 --recheck update $as_me by reconfiguring in the same conditions
17619 --file=FILE[:TEMPLATE]
17620 instantiate the configuration file FILE
17621 --header=FILE[:TEMPLATE]
17622 instantiate the configuration header FILE
17624 Configuration files:
17625 $config_files
17627 Configuration headers:
17628 $config_headers
17630 Configuration commands:
17631 $config_commands
17633 Report bugs to the package provider."
17635 _ACEOF
17636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17637 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17638 ac_cs_version="\\
17639 gprofng config.status 2.41.50
17640 configured by $0, generated by GNU Autoconf 2.69,
17641 with options \\"\$ac_cs_config\\"
17643 Copyright (C) 2012 Free Software Foundation, Inc.
17644 This config.status script is free software; the Free Software Foundation
17645 gives unlimited permission to copy, distribute and modify it."
17647 ac_pwd='$ac_pwd'
17648 srcdir='$srcdir'
17649 INSTALL='$INSTALL'
17650 MKDIR_P='$MKDIR_P'
17651 AWK='$AWK'
17652 test -n "\$AWK" || AWK=awk
17653 _ACEOF
17655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17656 # The default lists apply if the user does not specify any file.
17657 ac_need_defaults=:
17658 while test $# != 0
17660 case $1 in
17661 --*=?*)
17662 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17663 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17664 ac_shift=:
17666 --*=)
17667 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17668 ac_optarg=
17669 ac_shift=:
17672 ac_option=$1
17673 ac_optarg=$2
17674 ac_shift=shift
17676 esac
17678 case $ac_option in
17679 # Handling of the options.
17680 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17681 ac_cs_recheck=: ;;
17682 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17683 $as_echo "$ac_cs_version"; exit ;;
17684 --config | --confi | --conf | --con | --co | --c )
17685 $as_echo "$ac_cs_config"; exit ;;
17686 --debug | --debu | --deb | --de | --d | -d )
17687 debug=: ;;
17688 --file | --fil | --fi | --f )
17689 $ac_shift
17690 case $ac_optarg in
17691 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17692 '') as_fn_error $? "missing file argument" ;;
17693 esac
17694 as_fn_append CONFIG_FILES " '$ac_optarg'"
17695 ac_need_defaults=false;;
17696 --header | --heade | --head | --hea )
17697 $ac_shift
17698 case $ac_optarg in
17699 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17700 esac
17701 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17702 ac_need_defaults=false;;
17703 --he | --h)
17704 # Conflict between --help and --header
17705 as_fn_error $? "ambiguous option: \`$1'
17706 Try \`$0 --help' for more information.";;
17707 --help | --hel | -h )
17708 $as_echo "$ac_cs_usage"; exit ;;
17709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17710 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17711 ac_cs_silent=: ;;
17713 # This is an error.
17714 -*) as_fn_error $? "unrecognized option: \`$1'
17715 Try \`$0 --help' for more information." ;;
17717 *) as_fn_append ac_config_targets " $1"
17718 ac_need_defaults=false ;;
17720 esac
17721 shift
17722 done
17724 ac_configure_extra_args=
17726 if $ac_cs_silent; then
17727 exec 6>/dev/null
17728 ac_configure_extra_args="$ac_configure_extra_args --silent"
17731 _ACEOF
17732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17733 if \$ac_cs_recheck; then
17734 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17735 shift
17736 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17737 CONFIG_SHELL='$SHELL'
17738 export CONFIG_SHELL
17739 exec "\$@"
17742 _ACEOF
17743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17744 exec 5>>config.log
17746 echo
17747 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17748 ## Running $as_me. ##
17749 _ASBOX
17750 $as_echo "$ac_log"
17751 } >&5
17753 _ACEOF
17754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17756 # INIT-COMMANDS
17758 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17761 # The HP-UX ksh and POSIX shell print the target directory to stdout
17762 # if CDPATH is set.
17763 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17765 sed_quote_subst='$sed_quote_subst'
17766 double_quote_subst='$double_quote_subst'
17767 delay_variable_subst='$delay_variable_subst'
17768 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17769 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17770 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17771 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17772 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17773 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17774 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17775 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17776 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17777 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17778 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17779 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17780 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17781 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17782 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17783 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17784 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17785 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17786 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17787 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17788 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17789 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17790 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17791 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17792 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17793 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17794 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17795 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17796 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17797 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17798 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17799 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17800 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17801 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17802 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17803 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17804 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17805 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17806 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17807 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17808 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17809 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17810 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17811 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17812 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17813 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17814 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17815 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17816 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"`'
17817 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17818 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17819 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17820 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17821 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17822 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17823 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17824 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17825 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17826 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17827 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17828 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17829 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17830 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17831 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17832 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17833 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17834 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17835 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17836 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17837 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17838 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17839 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17840 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17841 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17842 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17843 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17844 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17845 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17846 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17847 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17848 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17849 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17850 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17851 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17852 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17853 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17854 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17855 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17856 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17857 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17858 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17859 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17860 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17861 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17862 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17863 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17864 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17865 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17866 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17867 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17868 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17869 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17870 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17871 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17872 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17873 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17874 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17875 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17876 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17877 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17878 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17879 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17880 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17881 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17882 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17883 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17884 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17885 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17886 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17887 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17888 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17889 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17890 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17891 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17892 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17893 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17894 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17895 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17896 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17897 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17898 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17899 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17900 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17901 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17902 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17903 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17904 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17905 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17906 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17907 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17908 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17909 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17910 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17911 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17912 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17913 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17914 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17915 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17916 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17917 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17918 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17919 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17920 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17921 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17922 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17923 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17924 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17925 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17926 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17927 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17928 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17929 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17930 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17931 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17932 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17933 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17934 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17935 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17936 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17937 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17938 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17939 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17940 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17941 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17942 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17944 LTCC='$LTCC'
17945 LTCFLAGS='$LTCFLAGS'
17946 compiler='$compiler_DEFAULT'
17948 # A function that is used when there is no print builtin or printf.
17949 func_fallback_echo ()
17951 eval 'cat <<_LTECHO_EOF
17953 _LTECHO_EOF'
17956 # Quote evaled strings.
17957 for var in SHELL \
17958 ECHO \
17959 SED \
17960 GREP \
17961 EGREP \
17962 FGREP \
17963 LD \
17964 NM \
17965 LN_S \
17966 lt_SP2NL \
17967 lt_NL2SP \
17968 reload_flag \
17969 OBJDUMP \
17970 deplibs_check_method \
17971 file_magic_cmd \
17972 AR \
17973 AR_FLAGS \
17974 STRIP \
17975 RANLIB \
17976 CC \
17977 CFLAGS \
17978 compiler \
17979 lt_cv_sys_global_symbol_pipe \
17980 lt_cv_sys_global_symbol_to_cdecl \
17981 lt_cv_sys_global_symbol_to_c_name_address \
17982 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17983 lt_prog_compiler_no_builtin_flag \
17984 lt_prog_compiler_wl \
17985 lt_prog_compiler_pic \
17986 lt_prog_compiler_static \
17987 lt_cv_prog_compiler_c_o \
17988 need_locks \
17989 DSYMUTIL \
17990 NMEDIT \
17991 LIPO \
17992 OTOOL \
17993 OTOOL64 \
17994 shrext_cmds \
17995 export_dynamic_flag_spec \
17996 whole_archive_flag_spec \
17997 compiler_needs_object \
17998 with_gnu_ld \
17999 allow_undefined_flag \
18000 no_undefined_flag \
18001 hardcode_libdir_flag_spec \
18002 hardcode_libdir_flag_spec_ld \
18003 hardcode_libdir_separator \
18004 fix_srcfile_path \
18005 exclude_expsyms \
18006 include_expsyms \
18007 file_list_spec \
18008 variables_saved_for_relink \
18009 libname_spec \
18010 library_names_spec \
18011 soname_spec \
18012 install_override_mode \
18013 finish_eval \
18014 old_striplib \
18015 striplib \
18016 compiler_lib_search_dirs \
18017 predep_objects \
18018 postdep_objects \
18019 predeps \
18020 postdeps \
18021 compiler_lib_search_path \
18022 LD_CXX \
18023 reload_flag_CXX \
18024 compiler_CXX \
18025 lt_prog_compiler_no_builtin_flag_CXX \
18026 lt_prog_compiler_wl_CXX \
18027 lt_prog_compiler_pic_CXX \
18028 lt_prog_compiler_static_CXX \
18029 lt_cv_prog_compiler_c_o_CXX \
18030 export_dynamic_flag_spec_CXX \
18031 whole_archive_flag_spec_CXX \
18032 compiler_needs_object_CXX \
18033 with_gnu_ld_CXX \
18034 allow_undefined_flag_CXX \
18035 no_undefined_flag_CXX \
18036 hardcode_libdir_flag_spec_CXX \
18037 hardcode_libdir_flag_spec_ld_CXX \
18038 hardcode_libdir_separator_CXX \
18039 fix_srcfile_path_CXX \
18040 exclude_expsyms_CXX \
18041 include_expsyms_CXX \
18042 file_list_spec_CXX \
18043 compiler_lib_search_dirs_CXX \
18044 predep_objects_CXX \
18045 postdep_objects_CXX \
18046 predeps_CXX \
18047 postdeps_CXX \
18048 compiler_lib_search_path_CXX; do
18049 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18050 *[\\\\\\\`\\"\\\$]*)
18051 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18054 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18056 esac
18057 done
18059 # Double-quote double-evaled strings.
18060 for var in reload_cmds \
18061 old_postinstall_cmds \
18062 old_postuninstall_cmds \
18063 old_archive_cmds \
18064 extract_expsyms_cmds \
18065 old_archive_from_new_cmds \
18066 old_archive_from_expsyms_cmds \
18067 archive_cmds \
18068 archive_expsym_cmds \
18069 module_cmds \
18070 module_expsym_cmds \
18071 export_symbols_cmds \
18072 prelink_cmds \
18073 postinstall_cmds \
18074 postuninstall_cmds \
18075 finish_cmds \
18076 sys_lib_search_path_spec \
18077 sys_lib_dlsearch_path_spec \
18078 reload_cmds_CXX \
18079 old_archive_cmds_CXX \
18080 old_archive_from_new_cmds_CXX \
18081 old_archive_from_expsyms_cmds_CXX \
18082 archive_cmds_CXX \
18083 archive_expsym_cmds_CXX \
18084 module_cmds_CXX \
18085 module_expsym_cmds_CXX \
18086 export_symbols_cmds_CXX \
18087 prelink_cmds_CXX; do
18088 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18089 *[\\\\\\\`\\"\\\$]*)
18090 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18093 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18095 esac
18096 done
18098 ac_aux_dir='$ac_aux_dir'
18099 xsi_shell='$xsi_shell'
18100 lt_shell_append='$lt_shell_append'
18102 # See if we are running on zsh, and set the options which allow our
18103 # commands through without removal of \ escapes INIT.
18104 if test -n "\${ZSH_VERSION+set}" ; then
18105 setopt NO_GLOB_SUBST
18109 PACKAGE='$PACKAGE'
18110 VERSION='$VERSION'
18111 TIMESTAMP='$TIMESTAMP'
18112 RM='$RM'
18113 ofile='$ofile'
18120 _ACEOF
18122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18124 # Handling of arguments.
18125 for ac_config_target in $ac_config_targets
18127 case $ac_config_target in
18128 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18129 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18130 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18131 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18132 "gp-display-html/Makefile") CONFIG_FILES="$CONFIG_FILES gp-display-html/Makefile" ;;
18133 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18134 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:common/config.h.in" ;;
18136 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18137 esac
18138 done
18141 # If the user did not use the arguments to specify the items to instantiate,
18142 # then the envvar interface is used. Set only those that are not.
18143 # We use the long form for the default assignment because of an extremely
18144 # bizarre bug on SunOS 4.1.3.
18145 if $ac_need_defaults; then
18146 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18147 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18148 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18151 # Have a temporary directory for convenience. Make it in the build tree
18152 # simply because there is no reason against having it here, and in addition,
18153 # creating and moving files from /tmp can sometimes cause problems.
18154 # Hook for its removal unless debugging.
18155 # Note that there is a small window in which the directory will not be cleaned:
18156 # after its creation but before its name has been assigned to `$tmp'.
18157 $debug ||
18159 tmp= ac_tmp=
18160 trap 'exit_status=$?
18161 : "${ac_tmp:=$tmp}"
18162 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18164 trap 'as_fn_exit 1' 1 2 13 15
18166 # Create a (secure) tmp directory for tmp files.
18169 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18170 test -d "$tmp"
18171 } ||
18173 tmp=./conf$$-$RANDOM
18174 (umask 077 && mkdir "$tmp")
18175 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18176 ac_tmp=$tmp
18178 # Set up the scripts for CONFIG_FILES section.
18179 # No need to generate them if there are no CONFIG_FILES.
18180 # This happens for instance with `./config.status config.h'.
18181 if test -n "$CONFIG_FILES"; then
18184 ac_cr=`echo X | tr X '\015'`
18185 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18186 # But we know of no other shell where ac_cr would be empty at this
18187 # point, so we can use a bashism as a fallback.
18188 if test "x$ac_cr" = x; then
18189 eval ac_cr=\$\'\\r\'
18191 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18192 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18193 ac_cs_awk_cr='\\r'
18194 else
18195 ac_cs_awk_cr=$ac_cr
18198 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18199 _ACEOF
18203 echo "cat >conf$$subs.awk <<_ACEOF" &&
18204 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18205 echo "_ACEOF"
18206 } >conf$$subs.sh ||
18207 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18208 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18209 ac_delim='%!_!# '
18210 for ac_last_try in false false false false false :; do
18211 . ./conf$$subs.sh ||
18212 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18214 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18215 if test $ac_delim_n = $ac_delim_num; then
18216 break
18217 elif $ac_last_try; then
18218 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18219 else
18220 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18222 done
18223 rm -f conf$$subs.sh
18225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18226 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18227 _ACEOF
18228 sed -n '
18230 s/^/S["/; s/!.*/"]=/
18233 s/^[^!]*!//
18234 :repl
18235 t repl
18236 s/'"$ac_delim"'$//
18237 t delim
18240 s/\(.\{148\}\)..*/\1/
18241 t more1
18242 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18245 b repl
18246 :more1
18247 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18250 s/.\{148\}//
18251 t nl
18252 :delim
18254 s/\(.\{148\}\)..*/\1/
18255 t more2
18256 s/["\\]/\\&/g; s/^/"/; s/$/"/
18259 :more2
18260 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18263 s/.\{148\}//
18264 t delim
18265 ' <conf$$subs.awk | sed '
18266 /^[^""]/{
18268 s/\n//
18270 ' >>$CONFIG_STATUS || ac_write_fail=1
18271 rm -f conf$$subs.awk
18272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18273 _ACAWK
18274 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18275 for (key in S) S_is_set[key] = 1
18276 FS = "\a"
18280 line = $ 0
18281 nfields = split(line, field, "@")
18282 substed = 0
18283 len = length(field[1])
18284 for (i = 2; i < nfields; i++) {
18285 key = field[i]
18286 keylen = length(key)
18287 if (S_is_set[key]) {
18288 value = S[key]
18289 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18290 len += length(value) + length(field[++i])
18291 substed = 1
18292 } else
18293 len += 1 + keylen
18296 print line
18299 _ACAWK
18300 _ACEOF
18301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18302 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18303 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18304 else
18306 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18307 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18308 _ACEOF
18310 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18311 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18312 # trailing colons and then remove the whole line if VPATH becomes empty
18313 # (actually we leave an empty line to preserve line numbers).
18314 if test "x$srcdir" = x.; then
18315 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18317 s///
18318 s/^/:/
18319 s/[ ]*$/:/
18320 s/:\$(srcdir):/:/g
18321 s/:\${srcdir}:/:/g
18322 s/:@srcdir@:/:/g
18323 s/^:*//
18324 s/:*$//
18326 s/\(=[ ]*\).*/\1/
18328 s/\n//
18329 s/^[^=]*=[ ]*$//
18333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18334 fi # test -n "$CONFIG_FILES"
18336 # Set up the scripts for CONFIG_HEADERS section.
18337 # No need to generate them if there are no CONFIG_HEADERS.
18338 # This happens for instance with `./config.status Makefile'.
18339 if test -n "$CONFIG_HEADERS"; then
18340 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18341 BEGIN {
18342 _ACEOF
18344 # Transform confdefs.h into an awk script `defines.awk', embedded as
18345 # here-document in config.status, that substitutes the proper values into
18346 # config.h.in to produce config.h.
18348 # Create a delimiter string that does not exist in confdefs.h, to ease
18349 # handling of long lines.
18350 ac_delim='%!_!# '
18351 for ac_last_try in false false :; do
18352 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18353 if test -z "$ac_tt"; then
18354 break
18355 elif $ac_last_try; then
18356 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18357 else
18358 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18360 done
18362 # For the awk script, D is an array of macro values keyed by name,
18363 # likewise P contains macro parameters if any. Preserve backslash
18364 # newline sequences.
18366 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18367 sed -n '
18368 s/.\{148\}/&'"$ac_delim"'/g
18369 t rset
18370 :rset
18371 s/^[ ]*#[ ]*define[ ][ ]*/ /
18372 t def
18374 :def
18375 s/\\$//
18376 t bsnl
18377 s/["\\]/\\&/g
18378 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18379 D["\1"]=" \3"/p
18380 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18382 :bsnl
18383 s/["\\]/\\&/g
18384 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18385 D["\1"]=" \3\\\\\\n"\\/p
18386 t cont
18387 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18388 t cont
18390 :cont
18392 s/.\{148\}/&'"$ac_delim"'/g
18393 t clear
18394 :clear
18395 s/\\$//
18396 t bsnlc
18397 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18399 :bsnlc
18400 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18401 b cont
18402 ' <confdefs.h | sed '
18403 s/'"$ac_delim"'/"\\\
18404 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18407 for (key in D) D_is_set[key] = 1
18408 FS = "\a"
18410 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18411 line = \$ 0
18412 split(line, arg, " ")
18413 if (arg[1] == "#") {
18414 defundef = arg[2]
18415 mac1 = arg[3]
18416 } else {
18417 defundef = substr(arg[1], 2)
18418 mac1 = arg[2]
18420 split(mac1, mac2, "(") #)
18421 macro = mac2[1]
18422 prefix = substr(line, 1, index(line, defundef) - 1)
18423 if (D_is_set[macro]) {
18424 # Preserve the white space surrounding the "#".
18425 print prefix "define", macro P[macro] D[macro]
18426 next
18427 } else {
18428 # Replace #undef with comments. This is necessary, for example,
18429 # in the case of _POSIX_SOURCE, which is predefined and required
18430 # on some systems where configure will not decide to define it.
18431 if (defundef == "undef") {
18432 print "/*", prefix defundef, macro, "*/"
18433 next
18437 { print }
18438 _ACAWK
18439 _ACEOF
18440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18441 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18442 fi # test -n "$CONFIG_HEADERS"
18445 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18446 shift
18447 for ac_tag
18449 case $ac_tag in
18450 :[FHLC]) ac_mode=$ac_tag; continue;;
18451 esac
18452 case $ac_mode$ac_tag in
18453 :[FHL]*:*);;
18454 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18455 :[FH]-) ac_tag=-:-;;
18456 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18457 esac
18458 ac_save_IFS=$IFS
18459 IFS=:
18460 set x $ac_tag
18461 IFS=$ac_save_IFS
18462 shift
18463 ac_file=$1
18464 shift
18466 case $ac_mode in
18467 :L) ac_source=$1;;
18468 :[FH])
18469 ac_file_inputs=
18470 for ac_f
18472 case $ac_f in
18473 -) ac_f="$ac_tmp/stdin";;
18474 *) # Look for the file first in the build tree, then in the source tree
18475 # (if the path is not absolute). The absolute path cannot be DOS-style,
18476 # because $ac_f cannot contain `:'.
18477 test -f "$ac_f" ||
18478 case $ac_f in
18479 [\\/$]*) false;;
18480 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18481 esac ||
18482 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18483 esac
18484 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18485 as_fn_append ac_file_inputs " '$ac_f'"
18486 done
18488 # Let's still pretend it is `configure' which instantiates (i.e., don't
18489 # use $as_me), people would be surprised to read:
18490 # /* config.h. Generated by config.status. */
18491 configure_input='Generated from '`
18492 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18493 `' by configure.'
18494 if test x"$ac_file" != x-; then
18495 configure_input="$ac_file. $configure_input"
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18497 $as_echo "$as_me: creating $ac_file" >&6;}
18499 # Neutralize special characters interpreted by sed in replacement strings.
18500 case $configure_input in #(
18501 *\&* | *\|* | *\\* )
18502 ac_sed_conf_input=`$as_echo "$configure_input" |
18503 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18504 *) ac_sed_conf_input=$configure_input;;
18505 esac
18507 case $ac_tag in
18508 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18509 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18510 esac
18512 esac
18514 ac_dir=`$as_dirname -- "$ac_file" ||
18515 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18516 X"$ac_file" : 'X\(//\)[^/]' \| \
18517 X"$ac_file" : 'X\(//\)$' \| \
18518 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18519 $as_echo X"$ac_file" |
18520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18521 s//\1/
18524 /^X\(\/\/\)[^/].*/{
18525 s//\1/
18528 /^X\(\/\/\)$/{
18529 s//\1/
18532 /^X\(\/\).*/{
18533 s//\1/
18536 s/.*/./; q'`
18537 as_dir="$ac_dir"; as_fn_mkdir_p
18538 ac_builddir=.
18540 case "$ac_dir" in
18541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18543 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18544 # A ".." for each directory in $ac_dir_suffix.
18545 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18546 case $ac_top_builddir_sub in
18547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18549 esac ;;
18550 esac
18551 ac_abs_top_builddir=$ac_pwd
18552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18553 # for backward compatibility:
18554 ac_top_builddir=$ac_top_build_prefix
18556 case $srcdir in
18557 .) # We are building in place.
18558 ac_srcdir=.
18559 ac_top_srcdir=$ac_top_builddir_sub
18560 ac_abs_top_srcdir=$ac_pwd ;;
18561 [\\/]* | ?:[\\/]* ) # Absolute name.
18562 ac_srcdir=$srcdir$ac_dir_suffix;
18563 ac_top_srcdir=$srcdir
18564 ac_abs_top_srcdir=$srcdir ;;
18565 *) # Relative name.
18566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18567 ac_top_srcdir=$ac_top_build_prefix$srcdir
18568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18569 esac
18570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18573 case $ac_mode in
18576 # CONFIG_FILE
18579 case $INSTALL in
18580 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18581 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18582 esac
18583 ac_MKDIR_P=$MKDIR_P
18584 case $MKDIR_P in
18585 [\\/$]* | ?:[\\/]* ) ;;
18586 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18587 esac
18588 _ACEOF
18590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18591 # If the template does not know about datarootdir, expand it.
18592 # FIXME: This hack should be removed a few years after 2.60.
18593 ac_datarootdir_hack=; ac_datarootdir_seen=
18594 ac_sed_dataroot='
18595 /datarootdir/ {
18599 /@datadir@/p
18600 /@docdir@/p
18601 /@infodir@/p
18602 /@localedir@/p
18603 /@mandir@/p'
18604 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18605 *datarootdir*) ac_datarootdir_seen=yes;;
18606 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18608 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18609 _ACEOF
18610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18611 ac_datarootdir_hack='
18612 s&@datadir@&$datadir&g
18613 s&@docdir@&$docdir&g
18614 s&@infodir@&$infodir&g
18615 s&@localedir@&$localedir&g
18616 s&@mandir@&$mandir&g
18617 s&\\\${datarootdir}&$datarootdir&g' ;;
18618 esac
18619 _ACEOF
18621 # Neutralize VPATH when `$srcdir' = `.'.
18622 # Shell code in configure.ac might set extrasub.
18623 # FIXME: do we really want to maintain this feature?
18624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18625 ac_sed_extra="$ac_vpsub
18626 $extrasub
18627 _ACEOF
18628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18630 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18631 s|@configure_input@|$ac_sed_conf_input|;t t
18632 s&@top_builddir@&$ac_top_builddir_sub&;t t
18633 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18634 s&@srcdir@&$ac_srcdir&;t t
18635 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18636 s&@top_srcdir@&$ac_top_srcdir&;t t
18637 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18638 s&@builddir@&$ac_builddir&;t t
18639 s&@abs_builddir@&$ac_abs_builddir&;t t
18640 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18641 s&@INSTALL@&$ac_INSTALL&;t t
18642 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18643 $ac_datarootdir_hack
18645 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18646 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18648 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18649 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18650 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18651 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18653 which seems to be undefined. Please make sure it is defined" >&5
18654 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18655 which seems to be undefined. Please make sure it is defined" >&2;}
18657 rm -f "$ac_tmp/stdin"
18658 case $ac_file in
18659 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18660 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18661 esac \
18662 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18666 # CONFIG_HEADER
18668 if test x"$ac_file" != x-; then
18670 $as_echo "/* $configure_input */" \
18671 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18672 } >"$ac_tmp/config.h" \
18673 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18674 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18676 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18677 else
18678 rm -f "$ac_file"
18679 mv "$ac_tmp/config.h" "$ac_file" \
18680 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18682 else
18683 $as_echo "/* $configure_input */" \
18684 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18685 || as_fn_error $? "could not create -" "$LINENO" 5
18687 # Compute "$ac_file"'s index in $config_headers.
18688 _am_arg="$ac_file"
18689 _am_stamp_count=1
18690 for _am_header in $config_headers :; do
18691 case $_am_header in
18692 $_am_arg | $_am_arg:* )
18693 break ;;
18695 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18696 esac
18697 done
18698 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18699 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18700 X"$_am_arg" : 'X\(//\)[^/]' \| \
18701 X"$_am_arg" : 'X\(//\)$' \| \
18702 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18703 $as_echo X"$_am_arg" |
18704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18705 s//\1/
18708 /^X\(\/\/\)[^/].*/{
18709 s//\1/
18712 /^X\(\/\/\)$/{
18713 s//\1/
18716 /^X\(\/\).*/{
18717 s//\1/
18720 s/.*/./; q'`/stamp-h$_am_stamp_count
18723 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18724 $as_echo "$as_me: executing $ac_file commands" >&6;}
18726 esac
18729 case $ac_file$ac_mode in
18730 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18731 # Older Autoconf quotes --file arguments for eval, but not when files
18732 # are listed without --file. Let's play safe and only enable the eval
18733 # if we detect the quoting.
18734 case $CONFIG_FILES in
18735 *\'*) eval set x "$CONFIG_FILES" ;;
18736 *) set x $CONFIG_FILES ;;
18737 esac
18738 shift
18739 for mf
18741 # Strip MF so we end up with the name of the file.
18742 mf=`echo "$mf" | sed -e 's/:.*$//'`
18743 # Check whether this is an Automake generated Makefile or not.
18744 # We used to match only the files named 'Makefile.in', but
18745 # some people rename them; so instead we look at the file content.
18746 # Grep'ing the first line is not enough: some people post-process
18747 # each Makefile.in and add a new line on top of each file to say so.
18748 # Grep'ing the whole file is not good either: AIX grep has a line
18749 # limit of 2048, but all sed's we know have understand at least 4000.
18750 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18751 dirpart=`$as_dirname -- "$mf" ||
18752 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18753 X"$mf" : 'X\(//\)[^/]' \| \
18754 X"$mf" : 'X\(//\)$' \| \
18755 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18756 $as_echo X"$mf" |
18757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18758 s//\1/
18761 /^X\(\/\/\)[^/].*/{
18762 s//\1/
18765 /^X\(\/\/\)$/{
18766 s//\1/
18769 /^X\(\/\).*/{
18770 s//\1/
18773 s/.*/./; q'`
18774 else
18775 continue
18777 # Extract the definition of DEPDIR, am__include, and am__quote
18778 # from the Makefile without running 'make'.
18779 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18780 test -z "$DEPDIR" && continue
18781 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18782 test -z "$am__include" && continue
18783 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18784 # Find all dependency output files, they are included files with
18785 # $(DEPDIR) in their names. We invoke sed twice because it is the
18786 # simplest approach to changing $(DEPDIR) to its actual value in the
18787 # expansion.
18788 for file in `sed -n "
18789 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18790 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18791 # Make sure the directory exists.
18792 test -f "$dirpart/$file" && continue
18793 fdir=`$as_dirname -- "$file" ||
18794 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18795 X"$file" : 'X\(//\)[^/]' \| \
18796 X"$file" : 'X\(//\)$' \| \
18797 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18798 $as_echo X"$file" |
18799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18800 s//\1/
18803 /^X\(\/\/\)[^/].*/{
18804 s//\1/
18807 /^X\(\/\/\)$/{
18808 s//\1/
18811 /^X\(\/\).*/{
18812 s//\1/
18815 s/.*/./; q'`
18816 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18817 # echo "creating $dirpart/$file"
18818 echo '# dummy' > "$dirpart/$file"
18819 done
18820 done
18823 "libtool":C)
18825 # See if we are running on zsh, and set the options which allow our
18826 # commands through without removal of \ escapes.
18827 if test -n "${ZSH_VERSION+set}" ; then
18828 setopt NO_GLOB_SUBST
18831 cfgfile="${ofile}T"
18832 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18833 $RM "$cfgfile"
18835 cat <<_LT_EOF >> "$cfgfile"
18836 #! $SHELL
18838 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18839 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18840 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18841 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18843 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18844 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18845 # Written by Gordon Matzigkeit, 1996
18847 # This file is part of GNU Libtool.
18849 # GNU Libtool is free software; you can redistribute it and/or
18850 # modify it under the terms of the GNU General Public License as
18851 # published by the Free Software Foundation; either version 2 of
18852 # the License, or (at your option) any later version.
18854 # As a special exception to the GNU General Public License,
18855 # if you distribute this file as part of a program or library that
18856 # is built using GNU Libtool, you may include this file under the
18857 # same distribution terms that you use for the rest of that program.
18859 # GNU Libtool is distributed in the hope that it will be useful,
18860 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18861 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18862 # GNU General Public License for more details.
18864 # You should have received a copy of the GNU General Public License
18865 # along with GNU Libtool; see the file COPYING. If not, a copy
18866 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18867 # obtained by writing to the Free Software Foundation, Inc.,
18868 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18871 # The names of the tagged configurations supported by this script.
18872 available_tags="CXX "
18874 # ### BEGIN LIBTOOL CONFIG
18876 # Whether or not to build shared libraries.
18877 build_libtool_libs=$enable_shared
18879 # Which release of libtool.m4 was used?
18880 macro_version=$macro_version
18881 macro_revision=$macro_revision
18883 # Whether or not to build static libraries.
18884 build_old_libs=$enable_static
18886 # What type of objects to build.
18887 pic_mode=$pic_mode
18889 # Whether or not to optimize for fast installation.
18890 fast_install=$enable_fast_install
18892 # Shell to use when invoking shell scripts.
18893 SHELL=$lt_SHELL
18895 # An echo program that protects backslashes.
18896 ECHO=$lt_ECHO
18898 # The host system.
18899 host_alias=$host_alias
18900 host=$host
18901 host_os=$host_os
18903 # The build system.
18904 build_alias=$build_alias
18905 build=$build
18906 build_os=$build_os
18908 # A sed program that does not truncate output.
18909 SED=$lt_SED
18911 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18912 Xsed="\$SED -e 1s/^X//"
18914 # A grep program that handles long lines.
18915 GREP=$lt_GREP
18917 # An ERE matcher.
18918 EGREP=$lt_EGREP
18920 # A literal string matcher.
18921 FGREP=$lt_FGREP
18923 # A BSD- or MS-compatible name lister.
18924 NM=$lt_NM
18926 # Whether we need soft or hard links.
18927 LN_S=$lt_LN_S
18929 # What is the maximum length of a command?
18930 max_cmd_len=$max_cmd_len
18932 # Object file suffix (normally "o").
18933 objext=$ac_objext
18935 # Executable file suffix (normally "").
18936 exeext=$exeext
18938 # whether the shell understands "unset".
18939 lt_unset=$lt_unset
18941 # turn spaces into newlines.
18942 SP2NL=$lt_lt_SP2NL
18944 # turn newlines into spaces.
18945 NL2SP=$lt_lt_NL2SP
18947 # An object symbol dumper.
18948 OBJDUMP=$lt_OBJDUMP
18950 # Method to check whether dependent libraries are shared objects.
18951 deplibs_check_method=$lt_deplibs_check_method
18953 # Command to use when deplibs_check_method == "file_magic".
18954 file_magic_cmd=$lt_file_magic_cmd
18956 # The archiver.
18957 AR=$lt_AR
18958 AR_FLAGS=$lt_AR_FLAGS
18960 # A symbol stripping program.
18961 STRIP=$lt_STRIP
18963 # Commands used to install an old-style archive.
18964 RANLIB=$lt_RANLIB
18965 old_postinstall_cmds=$lt_old_postinstall_cmds
18966 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18968 # Whether to use a lock for old archive extraction.
18969 lock_old_archive_extraction=$lock_old_archive_extraction
18971 # A C compiler.
18972 LTCC=$lt_CC
18974 # LTCC compiler flags.
18975 LTCFLAGS=$lt_CFLAGS
18977 # Take the output of nm and produce a listing of raw symbols and C names.
18978 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18980 # Transform the output of nm in a proper C declaration.
18981 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18983 # Transform the output of nm in a C name address pair.
18984 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18986 # Transform the output of nm in a C name address pair when lib prefix is needed.
18987 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18989 # The name of the directory that contains temporary libtool files.
18990 objdir=$objdir
18992 # Used to examine libraries when file_magic_cmd begins with "file".
18993 MAGIC_CMD=$MAGIC_CMD
18995 # Must we lock files when doing compilation?
18996 need_locks=$lt_need_locks
18998 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18999 DSYMUTIL=$lt_DSYMUTIL
19001 # Tool to change global to local symbols on Mac OS X.
19002 NMEDIT=$lt_NMEDIT
19004 # Tool to manipulate fat objects and archives on Mac OS X.
19005 LIPO=$lt_LIPO
19007 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19008 OTOOL=$lt_OTOOL
19010 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19011 OTOOL64=$lt_OTOOL64
19013 # Old archive suffix (normally "a").
19014 libext=$libext
19016 # Shared library suffix (normally ".so").
19017 shrext_cmds=$lt_shrext_cmds
19019 # The commands to extract the exported symbol list from a shared archive.
19020 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19022 # Variables whose values should be saved in libtool wrapper scripts and
19023 # restored at link time.
19024 variables_saved_for_relink=$lt_variables_saved_for_relink
19026 # Do we need the "lib" prefix for modules?
19027 need_lib_prefix=$need_lib_prefix
19029 # Do we need a version for libraries?
19030 need_version=$need_version
19032 # Library versioning type.
19033 version_type=$version_type
19035 # Shared library runtime path variable.
19036 runpath_var=$runpath_var
19038 # Shared library path variable.
19039 shlibpath_var=$shlibpath_var
19041 # Is shlibpath searched before the hard-coded library search path?
19042 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19044 # Format of library name prefix.
19045 libname_spec=$lt_libname_spec
19047 # List of archive names. First name is the real one, the rest are links.
19048 # The last name is the one that the linker finds with -lNAME
19049 library_names_spec=$lt_library_names_spec
19051 # The coded name of the library, if different from the real name.
19052 soname_spec=$lt_soname_spec
19054 # Permission mode override for installation of shared libraries.
19055 install_override_mode=$lt_install_override_mode
19057 # Command to use after installation of a shared archive.
19058 postinstall_cmds=$lt_postinstall_cmds
19060 # Command to use after uninstallation of a shared archive.
19061 postuninstall_cmds=$lt_postuninstall_cmds
19063 # Commands used to finish a libtool library installation in a directory.
19064 finish_cmds=$lt_finish_cmds
19066 # As "finish_cmds", except a single script fragment to be evaled but
19067 # not shown.
19068 finish_eval=$lt_finish_eval
19070 # Whether we should hardcode library paths into libraries.
19071 hardcode_into_libs=$hardcode_into_libs
19073 # Compile-time system search path for libraries.
19074 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19076 # Run-time system search path for libraries.
19077 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19079 # Whether dlopen is supported.
19080 dlopen_support=$enable_dlopen
19082 # Whether dlopen of programs is supported.
19083 dlopen_self=$enable_dlopen_self
19085 # Whether dlopen of statically linked programs is supported.
19086 dlopen_self_static=$enable_dlopen_self_static
19088 # Commands to strip libraries.
19089 old_striplib=$lt_old_striplib
19090 striplib=$lt_striplib
19093 # The linker used to build libraries.
19094 LD=$lt_LD
19096 # How to create reloadable object files.
19097 reload_flag=$lt_reload_flag
19098 reload_cmds=$lt_reload_cmds
19100 # Commands used to build an old-style archive.
19101 old_archive_cmds=$lt_old_archive_cmds
19103 # A language specific compiler.
19104 CC=$lt_compiler
19106 # Is the compiler the GNU compiler?
19107 with_gcc=$GCC
19109 # Compiler flag to turn off builtin functions.
19110 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19112 # How to pass a linker flag through the compiler.
19113 wl=$lt_lt_prog_compiler_wl
19115 # Additional compiler flags for building library objects.
19116 pic_flag=$lt_lt_prog_compiler_pic
19118 # Compiler flag to prevent dynamic linking.
19119 link_static_flag=$lt_lt_prog_compiler_static
19121 # Does compiler simultaneously support -c and -o options?
19122 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19124 # Whether or not to add -lc for building shared libraries.
19125 build_libtool_need_lc=$archive_cmds_need_lc
19127 # Whether or not to disallow shared libs when runtime libs are static.
19128 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19130 # Compiler flag to allow reflexive dlopens.
19131 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19133 # Compiler flag to generate shared objects directly from archives.
19134 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19136 # Whether the compiler copes with passing no objects directly.
19137 compiler_needs_object=$lt_compiler_needs_object
19139 # Create an old-style archive from a shared archive.
19140 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19142 # Create a temporary old-style archive to link instead of a shared archive.
19143 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19145 # Commands used to build a shared archive.
19146 archive_cmds=$lt_archive_cmds
19147 archive_expsym_cmds=$lt_archive_expsym_cmds
19149 # Commands used to build a loadable module if different from building
19150 # a shared archive.
19151 module_cmds=$lt_module_cmds
19152 module_expsym_cmds=$lt_module_expsym_cmds
19154 # Whether we are building with GNU ld or not.
19155 with_gnu_ld=$lt_with_gnu_ld
19157 # Flag that allows shared libraries with undefined symbols to be built.
19158 allow_undefined_flag=$lt_allow_undefined_flag
19160 # Flag that enforces no undefined symbols.
19161 no_undefined_flag=$lt_no_undefined_flag
19163 # Flag to hardcode \$libdir into a binary during linking.
19164 # This must work even if \$libdir does not exist
19165 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19167 # If ld is used when linking, flag to hardcode \$libdir into a binary
19168 # during linking. This must work even if \$libdir does not exist.
19169 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19171 # Whether we need a single "-rpath" flag with a separated argument.
19172 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19174 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19175 # DIR into the resulting binary.
19176 hardcode_direct=$hardcode_direct
19178 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19179 # DIR into the resulting binary and the resulting library dependency is
19180 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19181 # library is relocated.
19182 hardcode_direct_absolute=$hardcode_direct_absolute
19184 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19185 # into the resulting binary.
19186 hardcode_minus_L=$hardcode_minus_L
19188 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19189 # into the resulting binary.
19190 hardcode_shlibpath_var=$hardcode_shlibpath_var
19192 # Set to "yes" if building a shared library automatically hardcodes DIR
19193 # into the library and all subsequent libraries and executables linked
19194 # against it.
19195 hardcode_automatic=$hardcode_automatic
19197 # Set to yes if linker adds runtime paths of dependent libraries
19198 # to runtime path list.
19199 inherit_rpath=$inherit_rpath
19201 # Whether libtool must link a program against all its dependency libraries.
19202 link_all_deplibs=$link_all_deplibs
19204 # Fix the shell variable \$srcfile for the compiler.
19205 fix_srcfile_path=$lt_fix_srcfile_path
19207 # Set to "yes" if exported symbols are required.
19208 always_export_symbols=$always_export_symbols
19210 # The commands to list exported symbols.
19211 export_symbols_cmds=$lt_export_symbols_cmds
19213 # Symbols that should not be listed in the preloaded symbols.
19214 exclude_expsyms=$lt_exclude_expsyms
19216 # Symbols that must always be exported.
19217 include_expsyms=$lt_include_expsyms
19219 # Commands necessary for linking programs (against libraries) with templates.
19220 prelink_cmds=$lt_prelink_cmds
19222 # Specify filename containing input files.
19223 file_list_spec=$lt_file_list_spec
19225 # How to hardcode a shared library path into an executable.
19226 hardcode_action=$hardcode_action
19228 # The directories searched by this compiler when creating a shared library.
19229 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19231 # Dependencies to place before and after the objects being linked to
19232 # create a shared library.
19233 predep_objects=$lt_predep_objects
19234 postdep_objects=$lt_postdep_objects
19235 predeps=$lt_predeps
19236 postdeps=$lt_postdeps
19238 # The library search path used internally by the compiler when linking
19239 # a shared library.
19240 compiler_lib_search_path=$lt_compiler_lib_search_path
19242 # ### END LIBTOOL CONFIG
19244 _LT_EOF
19246 case $host_os in
19247 aix3*)
19248 cat <<\_LT_EOF >> "$cfgfile"
19249 # AIX sometimes has problems with the GCC collect2 program. For some
19250 # reason, if we set the COLLECT_NAMES environment variable, the problems
19251 # vanish in a puff of smoke.
19252 if test "X${COLLECT_NAMES+set}" != Xset; then
19253 COLLECT_NAMES=
19254 export COLLECT_NAMES
19256 _LT_EOF
19258 esac
19261 ltmain="$ac_aux_dir/ltmain.sh"
19264 # We use sed instead of cat because bash on DJGPP gets confused if
19265 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19266 # text mode, it properly converts lines to CR/LF. This bash problem
19267 # is reportedly fixed, but why not run on old versions too?
19268 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19269 || (rm -f "$cfgfile"; exit 1)
19271 case $xsi_shell in
19272 yes)
19273 cat << \_LT_EOF >> "$cfgfile"
19275 # func_dirname file append nondir_replacement
19276 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19277 # otherwise set result to NONDIR_REPLACEMENT.
19278 func_dirname ()
19280 case ${1} in
19281 */*) func_dirname_result="${1%/*}${2}" ;;
19282 * ) func_dirname_result="${3}" ;;
19283 esac
19286 # func_basename file
19287 func_basename ()
19289 func_basename_result="${1##*/}"
19292 # func_dirname_and_basename file append nondir_replacement
19293 # perform func_basename and func_dirname in a single function
19294 # call:
19295 # dirname: Compute the dirname of FILE. If nonempty,
19296 # add APPEND to the result, otherwise set result
19297 # to NONDIR_REPLACEMENT.
19298 # value returned in "$func_dirname_result"
19299 # basename: Compute filename of FILE.
19300 # value retuned in "$func_basename_result"
19301 # Implementation must be kept synchronized with func_dirname
19302 # and func_basename. For efficiency, we do not delegate to
19303 # those functions but instead duplicate the functionality here.
19304 func_dirname_and_basename ()
19306 case ${1} in
19307 */*) func_dirname_result="${1%/*}${2}" ;;
19308 * ) func_dirname_result="${3}" ;;
19309 esac
19310 func_basename_result="${1##*/}"
19313 # func_stripname prefix suffix name
19314 # strip PREFIX and SUFFIX off of NAME.
19315 # PREFIX and SUFFIX must not contain globbing or regex special
19316 # characters, hashes, percent signs, but SUFFIX may contain a leading
19317 # dot (in which case that matches only a dot).
19318 func_stripname ()
19320 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19321 # positional parameters, so assign one to ordinary parameter first.
19322 func_stripname_result=${3}
19323 func_stripname_result=${func_stripname_result#"${1}"}
19324 func_stripname_result=${func_stripname_result%"${2}"}
19327 # func_opt_split
19328 func_opt_split ()
19330 func_opt_split_opt=${1%%=*}
19331 func_opt_split_arg=${1#*=}
19334 # func_lo2o object
19335 func_lo2o ()
19337 case ${1} in
19338 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19339 *) func_lo2o_result=${1} ;;
19340 esac
19343 # func_xform libobj-or-source
19344 func_xform ()
19346 func_xform_result=${1%.*}.lo
19349 # func_arith arithmetic-term...
19350 func_arith ()
19352 func_arith_result=$(( $* ))
19355 # func_len string
19356 # STRING may not start with a hyphen.
19357 func_len ()
19359 func_len_result=${#1}
19362 _LT_EOF
19364 *) # Bourne compatible functions.
19365 cat << \_LT_EOF >> "$cfgfile"
19367 # func_dirname file append nondir_replacement
19368 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19369 # otherwise set result to NONDIR_REPLACEMENT.
19370 func_dirname ()
19372 # Extract subdirectory from the argument.
19373 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19374 if test "X$func_dirname_result" = "X${1}"; then
19375 func_dirname_result="${3}"
19376 else
19377 func_dirname_result="$func_dirname_result${2}"
19381 # func_basename file
19382 func_basename ()
19384 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19388 # func_stripname prefix suffix name
19389 # strip PREFIX and SUFFIX off of NAME.
19390 # PREFIX and SUFFIX must not contain globbing or regex special
19391 # characters, hashes, percent signs, but SUFFIX may contain a leading
19392 # dot (in which case that matches only a dot).
19393 # func_strip_suffix prefix name
19394 func_stripname ()
19396 case ${2} in
19397 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19398 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19399 esac
19402 # sed scripts:
19403 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19404 my_sed_long_arg='1s/^-[^=]*=//'
19406 # func_opt_split
19407 func_opt_split ()
19409 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19410 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19413 # func_lo2o object
19414 func_lo2o ()
19416 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19419 # func_xform libobj-or-source
19420 func_xform ()
19422 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19425 # func_arith arithmetic-term...
19426 func_arith ()
19428 func_arith_result=`expr "$@"`
19431 # func_len string
19432 # STRING may not start with a hyphen.
19433 func_len ()
19435 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19438 _LT_EOF
19439 esac
19441 case $lt_shell_append in
19442 yes)
19443 cat << \_LT_EOF >> "$cfgfile"
19445 # func_append var value
19446 # Append VALUE to the end of shell variable VAR.
19447 func_append ()
19449 eval "$1+=\$2"
19451 _LT_EOF
19454 cat << \_LT_EOF >> "$cfgfile"
19456 # func_append var value
19457 # Append VALUE to the end of shell variable VAR.
19458 func_append ()
19460 eval "$1=\$$1\$2"
19463 _LT_EOF
19465 esac
19468 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19469 || (rm -f "$cfgfile"; exit 1)
19471 mv -f "$cfgfile" "$ofile" ||
19472 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19473 chmod +x "$ofile"
19476 cat <<_LT_EOF >> "$ofile"
19478 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19480 # The linker used to build libraries.
19481 LD=$lt_LD_CXX
19483 # How to create reloadable object files.
19484 reload_flag=$lt_reload_flag_CXX
19485 reload_cmds=$lt_reload_cmds_CXX
19487 # Commands used to build an old-style archive.
19488 old_archive_cmds=$lt_old_archive_cmds_CXX
19490 # A language specific compiler.
19491 CC=$lt_compiler_CXX
19493 # Is the compiler the GNU compiler?
19494 with_gcc=$GCC_CXX
19496 # Compiler flag to turn off builtin functions.
19497 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19499 # How to pass a linker flag through the compiler.
19500 wl=$lt_lt_prog_compiler_wl_CXX
19502 # Additional compiler flags for building library objects.
19503 pic_flag=$lt_lt_prog_compiler_pic_CXX
19505 # Compiler flag to prevent dynamic linking.
19506 link_static_flag=$lt_lt_prog_compiler_static_CXX
19508 # Does compiler simultaneously support -c and -o options?
19509 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19511 # Whether or not to add -lc for building shared libraries.
19512 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19514 # Whether or not to disallow shared libs when runtime libs are static.
19515 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19517 # Compiler flag to allow reflexive dlopens.
19518 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19520 # Compiler flag to generate shared objects directly from archives.
19521 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19523 # Whether the compiler copes with passing no objects directly.
19524 compiler_needs_object=$lt_compiler_needs_object_CXX
19526 # Create an old-style archive from a shared archive.
19527 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19529 # Create a temporary old-style archive to link instead of a shared archive.
19530 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19532 # Commands used to build a shared archive.
19533 archive_cmds=$lt_archive_cmds_CXX
19534 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19536 # Commands used to build a loadable module if different from building
19537 # a shared archive.
19538 module_cmds=$lt_module_cmds_CXX
19539 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19541 # Whether we are building with GNU ld or not.
19542 with_gnu_ld=$lt_with_gnu_ld_CXX
19544 # Flag that allows shared libraries with undefined symbols to be built.
19545 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19547 # Flag that enforces no undefined symbols.
19548 no_undefined_flag=$lt_no_undefined_flag_CXX
19550 # Flag to hardcode \$libdir into a binary during linking.
19551 # This must work even if \$libdir does not exist
19552 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19554 # If ld is used when linking, flag to hardcode \$libdir into a binary
19555 # during linking. This must work even if \$libdir does not exist.
19556 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19558 # Whether we need a single "-rpath" flag with a separated argument.
19559 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19561 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19562 # DIR into the resulting binary.
19563 hardcode_direct=$hardcode_direct_CXX
19565 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19566 # DIR into the resulting binary and the resulting library dependency is
19567 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19568 # library is relocated.
19569 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19571 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19572 # into the resulting binary.
19573 hardcode_minus_L=$hardcode_minus_L_CXX
19575 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19576 # into the resulting binary.
19577 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19579 # Set to "yes" if building a shared library automatically hardcodes DIR
19580 # into the library and all subsequent libraries and executables linked
19581 # against it.
19582 hardcode_automatic=$hardcode_automatic_CXX
19584 # Set to yes if linker adds runtime paths of dependent libraries
19585 # to runtime path list.
19586 inherit_rpath=$inherit_rpath_CXX
19588 # Whether libtool must link a program against all its dependency libraries.
19589 link_all_deplibs=$link_all_deplibs_CXX
19591 # Fix the shell variable \$srcfile for the compiler.
19592 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19594 # Set to "yes" if exported symbols are required.
19595 always_export_symbols=$always_export_symbols_CXX
19597 # The commands to list exported symbols.
19598 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19600 # Symbols that should not be listed in the preloaded symbols.
19601 exclude_expsyms=$lt_exclude_expsyms_CXX
19603 # Symbols that must always be exported.
19604 include_expsyms=$lt_include_expsyms_CXX
19606 # Commands necessary for linking programs (against libraries) with templates.
19607 prelink_cmds=$lt_prelink_cmds_CXX
19609 # Specify filename containing input files.
19610 file_list_spec=$lt_file_list_spec_CXX
19612 # How to hardcode a shared library path into an executable.
19613 hardcode_action=$hardcode_action_CXX
19615 # The directories searched by this compiler when creating a shared library.
19616 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19618 # Dependencies to place before and after the objects being linked to
19619 # create a shared library.
19620 predep_objects=$lt_predep_objects_CXX
19621 postdep_objects=$lt_postdep_objects_CXX
19622 predeps=$lt_predeps_CXX
19623 postdeps=$lt_postdeps_CXX
19625 # The library search path used internally by the compiler when linking
19626 # a shared library.
19627 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19629 # ### END LIBTOOL TAG CONFIG: CXX
19630 _LT_EOF
19634 esac
19635 done # for ac_tag
19638 as_fn_exit 0
19639 _ACEOF
19640 ac_clean_files=$ac_clean_files_save
19642 test $ac_write_fail = 0 ||
19643 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19646 # configure is writing to config.log, and then calls config.status.
19647 # config.status does its own redirection, appending to config.log.
19648 # Unfortunately, on DOS this fails, as config.log is still kept open
19649 # by configure, so config.status won't be able to write to it; its
19650 # output is simply discarded. So we exec the FD to /dev/null,
19651 # effectively closing config.log, so it can be properly (re)opened and
19652 # appended to by config.status. When coming back to configure, we
19653 # need to make the FD available again.
19654 if test "$no_create" != yes; then
19655 ac_cs_success=:
19656 ac_config_status_args=
19657 test "$silent" = yes &&
19658 ac_config_status_args="$ac_config_status_args --quiet"
19659 exec 5>/dev/null
19660 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19661 exec 5>>config.log
19662 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19663 # would make configure fail if this is the last instruction.
19664 $ac_cs_success || as_fn_exit 1
19668 # CONFIG_SUBDIRS section.
19670 if test "$no_recursion" != yes; then
19672 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19673 # so they do not pile up.
19674 ac_sub_configure_args=
19675 ac_prev=
19676 eval "set x $ac_configure_args"
19677 shift
19678 for ac_arg
19680 if test -n "$ac_prev"; then
19681 ac_prev=
19682 continue
19684 case $ac_arg in
19685 -cache-file | --cache-file | --cache-fil | --cache-fi \
19686 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19687 ac_prev=cache_file ;;
19688 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19689 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19690 | --c=*)
19692 --config-cache | -C)
19694 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19695 ac_prev=srcdir ;;
19696 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19698 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19699 ac_prev=prefix ;;
19700 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19702 --disable-option-checking)
19705 case $ac_arg in
19706 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19707 esac
19708 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19709 esac
19710 done
19712 # Always prepend --prefix to ensure using the same prefix
19713 # in subdir configurations.
19714 ac_arg="--prefix=$prefix"
19715 case $ac_arg in
19716 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19717 esac
19718 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19720 # Pass --silent
19721 if test "$silent" = yes; then
19722 ac_sub_configure_args="--silent $ac_sub_configure_args"
19725 # Always prepend --disable-option-checking to silence warnings, since
19726 # different subdirs can have different --enable and --with options.
19727 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19729 ac_popdir=`pwd`
19730 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19732 # Do not complain, so a configure script can configure whichever
19733 # parts of a large source tree are present.
19734 test -d "$srcdir/$ac_dir" || continue
19736 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19737 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19738 $as_echo "$ac_msg" >&6
19739 as_dir="$ac_dir"; as_fn_mkdir_p
19740 ac_builddir=.
19742 case "$ac_dir" in
19743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19745 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19746 # A ".." for each directory in $ac_dir_suffix.
19747 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19748 case $ac_top_builddir_sub in
19749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19751 esac ;;
19752 esac
19753 ac_abs_top_builddir=$ac_pwd
19754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19755 # for backward compatibility:
19756 ac_top_builddir=$ac_top_build_prefix
19758 case $srcdir in
19759 .) # We are building in place.
19760 ac_srcdir=.
19761 ac_top_srcdir=$ac_top_builddir_sub
19762 ac_abs_top_srcdir=$ac_pwd ;;
19763 [\\/]* | ?:[\\/]* ) # Absolute name.
19764 ac_srcdir=$srcdir$ac_dir_suffix;
19765 ac_top_srcdir=$srcdir
19766 ac_abs_top_srcdir=$srcdir ;;
19767 *) # Relative name.
19768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19769 ac_top_srcdir=$ac_top_build_prefix$srcdir
19770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19771 esac
19772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19775 cd "$ac_dir"
19777 # Check for guested configure; otherwise get Cygnus style configure.
19778 if test -f "$ac_srcdir/configure.gnu"; then
19779 ac_sub_configure=$ac_srcdir/configure.gnu
19780 elif test -f "$ac_srcdir/configure"; then
19781 ac_sub_configure=$ac_srcdir/configure
19782 elif test -f "$ac_srcdir/configure.in"; then
19783 # This should be Cygnus configure.
19784 ac_sub_configure=$ac_aux_dir/configure
19785 else
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19787 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19788 ac_sub_configure=
19791 # The recursion is here.
19792 if test -n "$ac_sub_configure"; then
19793 # Make the cache file name correct relative to the subdirectory.
19794 case $cache_file in
19795 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19796 *) # Relative name.
19797 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19798 esac
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19801 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19802 # The eval makes quoting arguments work.
19803 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19804 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19805 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19808 cd "$ac_popdir"
19809 done
19811 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19813 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}