]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gprofng/configure
Remove fall throughs in core_target::xfer_partial.
[thirdparty/binutils-gdb.git] / gprofng / configure
CommitLineData
bb368aad
VM
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for gprofng 2.38.50.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
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## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if 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=';'
78 }
79fi
80
81
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
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
100IFS=$as_save_IFS
101
102 ;;
103esac
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.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
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.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
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.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $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
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if 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
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -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
199test \$(( 1 + 1 )) = 2 || exit 1
200
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
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
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
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
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
242fi; }
243IFS=$as_save_IFS
244
245
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.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $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
265exit 255
266fi
267
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."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
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/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
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"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
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.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
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.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
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.
416as_fn_error ()
417{
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
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_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/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
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 '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
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; }
495
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
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `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;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (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'
541 fi
542else
543 as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
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.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='gprofng'
589PACKAGE_TARNAME='gprofng'
590PACKAGE_VERSION='2.38.50'
591PACKAGE_STRING='gprofng 2.38.50'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595# Factoring default headers for most tests.
596ac_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"
630
631enable_option_checking=no
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636BUILD_SUBDIRS
637GPROFNG_LIBDIR
638GPROFNG_CPPFLAGS
639GPROFNG_CFLAGS
640LD_NO_AS_NEEDED
641BUILD_MAN_FALSE
642BUILD_MAN_TRUE
643HELP2MAN
644TCL_TRY_FALSE
645TCL_TRY_TRUE
646EXPECT
647jdk_inc
648JAVA
649JAVAC
650PTHREAD_CFLAGS
651PTHREAD_LIBS
652PTHREAD_CC
653ax_pthread_config
654RUN_TESTS_FALSE
655RUN_TESTS_TRUE
656subdirs
657BUILD_SRC_FALSE
658BUILD_SRC_TRUE
659BUILD_COLLECTOR_FALSE
660BUILD_COLLECTOR_TRUE
61a1f2e7
L
661GPROFNG_NO_SWITCH_CFLAGS
662GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS
bb368aad
VM
663gprofng_cflags
664WERROR
665GPROFNG_LIBADD
666CXXCPP
667OTOOL64
668OTOOL
669LIPO
670NMEDIT
671DSYMUTIL
672OBJDUMP
673LN_S
674NM
675ac_ct_DUMPBIN
676DUMPBIN
677LD
678FGREP
679SED
bb368aad
VM
680LIBTOOL
681ac_ct_AR
682AR
683RANLIB
684am__fastdepCXX_FALSE
685am__fastdepCXX_TRUE
686CXXDEPMODE
687ac_ct_CXX
688CXXFLAGS
689CXX
690EGREP
691GREP
692CPP
693am__fastdepCC_FALSE
694am__fastdepCC_TRUE
695CCDEPMODE
696am__nodep
697AMDEPBACKSLASH
698AMDEP_FALSE
699AMDEP_TRUE
700am__quote
701am__include
702DEPDIR
703OBJEXT
704EXEEXT
705ac_ct_CC
706CPPFLAGS
707LDFLAGS
708CFLAGS
709CC
710MAINT
711MAINTAINER_MODE_FALSE
712MAINTAINER_MODE_TRUE
713AM_BACKSLASH
714AM_DEFAULT_VERBOSITY
715AM_DEFAULT_V
716AM_V
717am__untar
718am__tar
719AMTAR
720am__leading_dot
721SET_MAKE
722AWK
723mkdir_p
724MKDIR_P
725INSTALL_STRIP_PROGRAM
726STRIP
727install_sh
728MAKEINFO
729AUTOHEADER
730AUTOMAKE
731AUTOCONF
732ACLOCAL
733VERSION
734PACKAGE
735CYGPATH_W
736am__isrc
737INSTALL_DATA
738INSTALL_SCRIPT
739INSTALL_PROGRAM
6109e902
AM
740target_os
741target_vendor
742target_cpu
743target
744host_os
745host_vendor
746host_cpu
747host
748build_os
749build_vendor
750build_cpu
751build
bb368aad
VM
752target_alias
753host_alias
754build_alias
755LIBS
756ECHO_T
757ECHO_N
758ECHO_C
759DEFS
760mandir
761localedir
762libdir
763psdir
764pdfdir
765dvidir
766htmldir
767infodir
768docdir
769oldincludedir
770includedir
771localstatedir
772sharedstatedir
773sysconfdir
774datadir
775datarootdir
776libexecdir
777sbindir
778bindir
779program_transform_name
780prefix
781exec_prefix
782PACKAGE_URL
783PACKAGE_BUGREPORT
784PACKAGE_STRING
785PACKAGE_VERSION
786PACKAGE_TARNAME
787PACKAGE_NAME
788PATH_SEPARATOR
789SHELL'
790ac_subst_files=''
791ac_user_opts='
792enable_option_checking
793enable_silent_rules
794enable_maintainer_mode
795enable_dependency_tracking
796enable_shared
797enable_static
798with_pic
799enable_fast_install
800with_gnu_ld
801enable_libtool_lock
802enable_werror_always
803enable_gprofng_tools
804with_jdk
805enable_gprofng_debug
806'
807 ac_precious_vars='build_alias
808host_alias
809target_alias
810CC
811CFLAGS
812LDFLAGS
813LIBS
814CPPFLAGS
815CPP
816CXX
817CXXFLAGS
818CCC
819CXXCPP'
820ac_subdirs_all='libcollector'
821
822# Initialize some variables set by options.
823ac_init_help=
824ac_init_version=false
825ac_unrecognized_opts=
826ac_unrecognized_sep=
827# The variables have the same names as the options, with
828# dashes changed to underlines.
829cache_file=/dev/null
830exec_prefix=NONE
831no_create=
832no_recursion=
833prefix=NONE
834program_prefix=NONE
835program_suffix=NONE
836program_transform_name=s,x,x,
837silent=
838site=
839srcdir=
840verbose=
841x_includes=NONE
842x_libraries=NONE
843
844# Installation directory options.
845# These are left unexpanded so users can "make install exec_prefix=/foo"
846# and all the variables that are supposed to be based on exec_prefix
847# by default will actually change.
848# Use braces instead of parens because sh, perl, etc. also accept them.
849# (The list follows the same order as the GNU Coding Standards.)
850bindir='${exec_prefix}/bin'
851sbindir='${exec_prefix}/sbin'
852libexecdir='${exec_prefix}/libexec'
853datarootdir='${prefix}/share'
854datadir='${datarootdir}'
855sysconfdir='${prefix}/etc'
856sharedstatedir='${prefix}/com'
857localstatedir='${prefix}/var'
858includedir='${prefix}/include'
859oldincludedir='/usr/include'
860docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861infodir='${datarootdir}/info'
862htmldir='${docdir}'
863dvidir='${docdir}'
864pdfdir='${docdir}'
865psdir='${docdir}'
866libdir='${exec_prefix}/lib'
867localedir='${datarootdir}/locale'
868mandir='${datarootdir}/man'
869
870ac_prev=
871ac_dashdash=
872for ac_option
873do
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
877 ac_prev=
878 continue
879 fi
880
881 case $ac_option in
882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *=) ac_optarg= ;;
884 *) ac_optarg=yes ;;
885 esac
886
887 # Accept the important Cygnus configure options, so we can diagnose typos.
888
889 case $ac_dashdash$ac_option in
890 --)
891 ac_dashdash=yes ;;
892
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 ac_prev=bindir ;;
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 bindir=$ac_optarg ;;
897
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
902
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
909
910 --config-cache | -C)
911 cache_file=config.cache ;;
912
913 -datadir | --datadir | --datadi | --datad)
914 ac_prev=datadir ;;
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
917
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
924
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934"enable_$ac_useropt"
935"*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=no ;;
940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
950
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960"enable_$ac_useropt"
961"*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=\$ac_optarg ;;
966
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
975
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
978 with_gas=yes ;;
979
980 -help | --help | --hel | --he | -h)
981 ac_init_help=long ;;
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
986
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
991
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 ac_prev=htmldir ;;
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 | --ht=*)
996 htmldir=$ac_optarg ;;
997
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1004
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 ac_prev=infodir ;;
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1009
1010 -libdir | --libdir | --libdi | --libd)
1011 ac_prev=libdir ;;
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1014
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1021
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1026
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1033
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 ac_prev=mandir ;;
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1038
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1041 with_fp=no ;;
1042
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1045 no_create=yes ;;
1046
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 no_recursion=yes ;;
1050
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1059
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 ac_prev=prefix ;;
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1064
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1071
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1078
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1095
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 ac_prev=pdfdir ;;
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1100
1101 -psdir | --psdir | --psdi | --psd | --ps)
1102 ac_prev=psdir ;;
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 psdir=$ac_optarg ;;
1105
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 silent=yes ;;
1109
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1115
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1126
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1131
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1136
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1143
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1148
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1151
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1154
1155 -with-* | --with-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164"with_$ac_useropt"
1165"*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=\$ac_optarg ;;
1170
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180"with_$ac_useropt"
1181"*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1186
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1190
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1197
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1204
1205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206Try \`$0 --help' for more information"
1207 ;;
1208
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215 esac
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1218
1219 *)
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225 ;;
1226
1227 esac
1228done
1229
1230if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $? "missing argument to $ac_option"
1233fi
1234
1235if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 esac
1241fi
1242
1243# Check all directory arguments for consistency.
1244for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir
1248do
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1251 case $ac_val in
1252 */ )
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1255 esac
1256 # Be sure to have absolute directory names.
1257 case $ac_val in
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260 esac
1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262done
1263
1264# There might be people who depend on the old broken behavior: `$host'
1265# used to hold the argument of --host etc.
1266# FIXME: To remove some day.
1267build=$build_alias
1268host=$host_alias
1269target=$target_alias
1270
1271# FIXME: To remove some day.
1272if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 elif test "x$build_alias" != "x$host_alias"; then
1276 cross_compiling=yes
1277 fi
1278fi
1279
1280ac_tool_prefix=
1281test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283test "$silent" = yes && exec 6>/dev/null
1284
1285
1286ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287ac_ls_di=`ls -di .` &&
1288ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294# Find the source files, if location was not specified.
1295if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303$as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)[^/].*/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\/\)$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\).*/{
1317 s//\1/
1318 q
1319 }
1320 s/.*/./; q'`
1321 srcdir=$ac_confdir
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 srcdir=..
1324 fi
1325else
1326 ac_srcdir_defaulted=no
1327fi
1328if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331fi
1332ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333ac_abs_confdir=`(
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 pwd)`
1336# When building in place, set srcdir=.
1337if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 srcdir=.
1339fi
1340# Remove unnecessary trailing slashes from srcdir.
1341# Double slashes in file names in object file debugging info
1342# mess up M-x gdb in Emacs.
1343case $srcdir in
1344*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345esac
1346for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351done
1352
1353#
1354# Report the --help message.
1355#
1356if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360\`configure' configures gprofng 2.38.50 to adapt to many kinds of systems.
1361
1362Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365VAR=VALUE. See below for descriptions of some of the useful variables.
1366
1367Defaults for the options are specified in brackets.
1368
1369Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379
1380Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 [PREFIX]
1385
1386By default, \`make install' will install all the files in
1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389for instance \`--prefix=\$HOME'.
1390
1391For better control, use the options below.
1392
1393Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/gprofng]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1413_ACEOF
1414
1415 cat <<\_ACEOF
1416
1417Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421
1422System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
6109e902 1425 --target=TARGET configure for building compilers for TARGET [HOST]
bb368aad
VM
1426_ACEOF
1427fi
1428
1429if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive ) echo "Configuration of gprofng 2.38.50:";;
1432 esac
1433 cat <<\_ACEOF
1434
1435Optional Features:
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-silent-rules less verbose build output (undo: "make V=1")
1440 --disable-silent-rules verbose build output (undo: "make V=0")
1441 --enable-maintainer-mode
1442 enable make rules and dependencies not useful (and
1443 sometimes confusing) to the casual installer
1444 --enable-dependency-tracking
1445 do not reject slow dependency extractors
1446 --disable-dependency-tracking
1447 speeds up one-time build
1448 --enable-shared[=PKGS] build shared libraries [default=no]
1449 --enable-static[=PKGS] build static libraries [default=yes]
1450 --enable-fast-install[=PKGS]
1451 optimize for fast installation [default=yes]
1452 --disable-libtool-lock avoid locking (might break parallel builds)
1453 --enable-werror-always enable -Werror despite compiler version
1454 --disable-gprofng-tools do not build gprofng/src directory
1455 --enable-gprofng-debug Enable debugging output [default=no]
1456
1457Optional Packages:
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-pic try to use only PIC/non-PIC objects [default=use
1461 both]
1462 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1463 --with-jdk=PATH specify prefix directory for installed JDK.
1464
1465Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CPP C preprocessor
1474 CXX C++ compiler command
1475 CXXFLAGS C++ compiler flags
1476 CXXCPP C++ preprocessor
1477
1478Use these variables to override the choices made by `configure' or to help
1479it to find libraries and programs with nonstandard names/locations.
1480
1481Report bugs to the package provider.
1482_ACEOF
1483ac_status=$?
1484fi
1485
1486if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" ||
1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491 continue
1492 ac_builddir=.
1493
1494case "$ac_dir" in
1495.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496*)
1497 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1498 # A ".." for each directory in $ac_dir_suffix.
1499 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 esac ;;
1504esac
1505ac_abs_top_builddir=$ac_pwd
1506ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507# for backward compatibility:
1508ac_top_builddir=$ac_top_build_prefix
1509
1510case $srcdir in
1511 .) # We are building in place.
1512 ac_srcdir=.
1513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
1516 ac_srcdir=$srcdir$ac_dir_suffix;
1517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1519 *) # Relative name.
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523esac
1524ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525
1526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for guested configure.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1534 else
1535 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 fi || ac_status=$?
1537 cd "$ac_pwd" || { ac_status=$?; break; }
1538 done
1539fi
1540
1541test -n "$ac_init_help" && exit $ac_status
1542if $ac_init_version; then
1543 cat <<\_ACEOF
1544gprofng configure 2.38.50
1545generated by GNU Autoconf 2.69
1546
1547Copyright (C) 2012 Free Software Foundation, Inc.
1548This configure script is free software; the Free Software Foundation
1549gives unlimited permission to copy, distribute and modify it.
1550_ACEOF
1551 exit
1552fi
1553
1554## ------------------------ ##
1555## Autoconf initialization. ##
1556## ------------------------ ##
1557
1558# ac_fn_c_try_compile LINENO
1559# --------------------------
1560# Try to compile conftest.$ac_ext, and return whether this succeeded.
1561ac_fn_c_try_compile ()
1562{
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext
1565 if { { ac_try="$ac_compile"
1566case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569esac
1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571$as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1578 fi
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.$ac_objext; then :
1584 ac_retval=0
1585else
1586 $as_echo "$as_me: failed program was:" >&5
1587sed 's/^/| /' conftest.$ac_ext >&5
1588
1589 ac_retval=1
1590fi
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1593
1594} # ac_fn_c_try_compile
1595
1596# ac_fn_c_try_cpp LINENO
1597# ----------------------
1598# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1599ac_fn_c_try_cpp ()
1600{
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 if { { ac_try="$ac_cpp conftest.$ac_ext"
1603case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606esac
1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608$as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } > conftest.i && {
1618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 }; then :
1621 ac_retval=0
1622else
1623 $as_echo "$as_me: failed program was:" >&5
1624sed 's/^/| /' conftest.$ac_ext >&5
1625
1626 ac_retval=1
1627fi
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1630
1631} # ac_fn_c_try_cpp
1632
1633# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1634# -------------------------------------------------------
1635# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1636# the include files in INCLUDES and setting the cache variable VAR
1637# accordingly.
1638ac_fn_c_check_header_mongrel ()
1639{
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 if eval \${$3+:} false; then :
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643$as_echo_n "checking for $2... " >&6; }
1644if eval \${$3+:} false; then :
1645 $as_echo_n "(cached) " >&6
1646fi
1647eval ac_res=\$$3
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649$as_echo "$ac_res" >&6; }
1650else
1651 # Is the header compilable?
1652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1653$as_echo_n "checking $2 usability... " >&6; }
1654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655/* end confdefs.h. */
1656$4
1657#include <$2>
1658_ACEOF
1659if ac_fn_c_try_compile "$LINENO"; then :
1660 ac_header_compiler=yes
1661else
1662 ac_header_compiler=no
1663fi
1664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1666$as_echo "$ac_header_compiler" >&6; }
1667
1668# Is the header present?
1669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1670$as_echo_n "checking $2 presence... " >&6; }
1671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672/* end confdefs.h. */
1673#include <$2>
1674_ACEOF
1675if ac_fn_c_try_cpp "$LINENO"; then :
1676 ac_header_preproc=yes
1677else
1678 ac_header_preproc=no
1679fi
1680rm -f conftest.err conftest.i conftest.$ac_ext
1681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1682$as_echo "$ac_header_preproc" >&6; }
1683
1684# So? What about this header?
1685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1686 yes:no: )
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1688$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1690$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1691 ;;
1692 no:yes:* )
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1694$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1696$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1698$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1700$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1703 ;;
1704esac
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706$as_echo_n "checking for $2... " >&6; }
1707if eval \${$3+:} false; then :
1708 $as_echo_n "(cached) " >&6
1709else
1710 eval "$3=\$ac_header_compiler"
1711fi
1712eval ac_res=\$$3
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714$as_echo "$ac_res" >&6; }
1715fi
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717
1718} # ac_fn_c_check_header_mongrel
1719
1720# ac_fn_c_try_run LINENO
1721# ----------------------
1722# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1723# that executables *can* be run.
1724ac_fn_c_try_run ()
1725{
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_link"
1728case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>&5
1735 ac_status=$?
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1738 { { case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741esac
1742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743$as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_try") 2>&5
1745 ac_status=$?
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; }; }; then :
1748 ac_retval=0
1749else
1750 $as_echo "$as_me: program exited with status $ac_status" >&5
1751 $as_echo "$as_me: failed program was:" >&5
1752sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=$ac_status
1755fi
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1759
1760} # ac_fn_c_try_run
1761
1762# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763# -------------------------------------------------------
1764# Tests whether HEADER exists and can be compiled using the include files in
1765# INCLUDES, setting the cache variable VAR accordingly.
1766ac_fn_c_check_header_compile ()
1767{
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770$as_echo_n "checking for $2... " >&6; }
1771if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1773else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775/* end confdefs.h. */
1776$4
1777#include <$2>
1778_ACEOF
1779if ac_fn_c_try_compile "$LINENO"; then :
1780 eval "$3=yes"
1781else
1782 eval "$3=no"
1783fi
1784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785fi
1786eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788$as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791} # ac_fn_c_check_header_compile
1792
1793# ac_fn_cxx_try_compile LINENO
1794# ----------------------------
1795# Try to compile conftest.$ac_ext, and return whether this succeeded.
1796ac_fn_cxx_try_compile ()
1797{
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext
1800 if { { ac_try="$ac_compile"
1801case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804esac
1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806$as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_compile") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1813 fi
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_cxx_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest.$ac_objext; then :
1819 ac_retval=0
1820else
1821 $as_echo "$as_me: failed program was:" >&5
1822sed 's/^/| /' conftest.$ac_ext >&5
1823
1824 ac_retval=1
1825fi
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1828
1829} # ac_fn_cxx_try_compile
1830
1831# ac_fn_c_try_link LINENO
1832# -----------------------
1833# Try to link conftest.$ac_ext, and return whether this succeeded.
1834ac_fn_c_try_link ()
1835{
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 rm -f conftest.$ac_objext conftest$ac_exeext
1838 if { { ac_try="$ac_link"
1839case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842esac
1843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844$as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_link") 2>conftest.err
1846 ac_status=$?
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1851 fi
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_c_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest$ac_exeext && {
1857 test "$cross_compiling" = yes ||
1858 test -x conftest$ac_exeext
1859 }; then :
1860 ac_retval=0
1861else
1862 $as_echo "$as_me: failed program was:" >&5
1863sed 's/^/| /' conftest.$ac_ext >&5
1864
1865 ac_retval=1
1866fi
1867 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1868 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1869 # interfere with the next link command; also delete a directory that is
1870 # left behind by Apple's compiler. We do this before executing the actions.
1871 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 as_fn_set_status $ac_retval
1874
1875} # ac_fn_c_try_link
1876
1877# ac_fn_c_check_func LINENO FUNC VAR
1878# ----------------------------------
1879# Tests whether FUNC exists, setting the cache variable VAR accordingly
1880ac_fn_c_check_func ()
1881{
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884$as_echo_n "checking for $2... " >&6; }
1885if eval \${$3+:} false; then :
1886 $as_echo_n "(cached) " >&6
1887else
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889/* end confdefs.h. */
1890/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1892#define $2 innocuous_$2
1893
1894/* System header to define __stub macros and hopefully few prototypes,
1895 which can conflict with char $2 (); below.
1896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1897 <limits.h> exists even on freestanding compilers. */
1898
1899#ifdef __STDC__
1900# include <limits.h>
1901#else
1902# include <assert.h>
1903#endif
1904
1905#undef $2
1906
1907/* Override any GCC internal prototype to avoid an error.
1908 Use char because int might match the return type of a GCC
1909 builtin and then its argument prototype would still apply. */
1910#ifdef __cplusplus
1911extern "C"
1912#endif
1913char $2 ();
1914/* The GNU C library defines this for functions which it implements
1915 to always fail with ENOSYS. Some functions are actually named
1916 something starting with __ and the normal name is an alias. */
1917#if defined __stub_$2 || defined __stub___$2
1918choke me
1919#endif
1920
1921int
1922main ()
1923{
1924return $2 ();
1925 ;
1926 return 0;
1927}
1928_ACEOF
1929if ac_fn_c_try_link "$LINENO"; then :
1930 eval "$3=yes"
1931else
1932 eval "$3=no"
1933fi
1934rm -f core conftest.err conftest.$ac_objext \
1935 conftest$ac_exeext conftest.$ac_ext
1936fi
1937eval ac_res=\$$3
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939$as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942} # ac_fn_c_check_func
1943
1944# ac_fn_cxx_try_cpp LINENO
1945# ------------------------
1946# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1947ac_fn_cxx_try_cpp ()
1948{
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if { { ac_try="$ac_cpp conftest.$ac_ext"
1951case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1954esac
1955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956$as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1958 ac_status=$?
1959 if test -s conftest.err; then
1960 grep -v '^ *+' conftest.err >conftest.er1
1961 cat conftest.er1 >&5
1962 mv -f conftest.er1 conftest.err
1963 fi
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } > conftest.i && {
1966 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1967 test ! -s conftest.err
1968 }; then :
1969 ac_retval=0
1970else
1971 $as_echo "$as_me: failed program was:" >&5
1972sed 's/^/| /' conftest.$ac_ext >&5
1973
1974 ac_retval=1
1975fi
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status $ac_retval
1978
1979} # ac_fn_cxx_try_cpp
1980
1981# ac_fn_cxx_try_link LINENO
1982# -------------------------
1983# Try to link conftest.$ac_ext, and return whether this succeeded.
1984ac_fn_cxx_try_link ()
1985{
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 rm -f conftest.$ac_objext conftest$ac_exeext
1988 if { { ac_try="$ac_link"
1989case "(($ac_try" in
1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1992esac
1993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994$as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_link") 2>conftest.err
1996 ac_status=$?
1997 if test -s conftest.err; then
1998 grep -v '^ *+' conftest.err >conftest.er1
1999 cat conftest.er1 >&5
2000 mv -f conftest.er1 conftest.err
2001 fi
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; } && {
2004 test -z "$ac_cxx_werror_flag" ||
2005 test ! -s conftest.err
2006 } && test -s conftest$ac_exeext && {
2007 test "$cross_compiling" = yes ||
2008 test -x conftest$ac_exeext
2009 }; then :
2010 ac_retval=0
2011else
2012 $as_echo "$as_me: failed program was:" >&5
2013sed 's/^/| /' conftest.$ac_ext >&5
2014
2015 ac_retval=1
2016fi
2017 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2018 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2019 # interfere with the next link command; also delete a directory that is
2020 # left behind by Apple's compiler. We do this before executing the actions.
2021 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023 as_fn_set_status $ac_retval
2024
2025} # ac_fn_cxx_try_link
2026
2027# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2028# ---------------------------------------------
2029# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2030# accordingly.
2031ac_fn_c_check_decl ()
2032{
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 as_decl_name=`echo $2|sed 's/ *(.*//'`
2035 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2037$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2038if eval \${$3+:} false; then :
2039 $as_echo_n "(cached) " >&6
2040else
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042/* end confdefs.h. */
2043$4
2044int
2045main ()
2046{
2047#ifndef $as_decl_name
2048#ifdef __cplusplus
2049 (void) $as_decl_use;
2050#else
2051 (void) $as_decl_name;
2052#endif
2053#endif
2054
2055 ;
2056 return 0;
2057}
2058_ACEOF
2059if ac_fn_c_try_compile "$LINENO"; then :
2060 eval "$3=yes"
2061else
2062 eval "$3=no"
2063fi
2064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065fi
2066eval ac_res=\$$3
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068$as_echo "$ac_res" >&6; }
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070
2071} # ac_fn_c_check_decl
2072cat >config.log <<_ACEOF
2073This file contains any messages produced by compilers while
2074running configure, to aid debugging if configure makes a mistake.
2075
2076It was created by gprofng $as_me 2.38.50, which was
2077generated by GNU Autoconf 2.69. Invocation command line was
2078
2079 $ $0 $@
2080
2081_ACEOF
2082exec 5>>config.log
2083{
2084cat <<_ASUNAME
2085## --------- ##
2086## Platform. ##
2087## --------- ##
2088
2089hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2090uname -m = `(uname -m) 2>/dev/null || echo unknown`
2091uname -r = `(uname -r) 2>/dev/null || echo unknown`
2092uname -s = `(uname -s) 2>/dev/null || echo unknown`
2093uname -v = `(uname -v) 2>/dev/null || echo unknown`
2094
2095/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2096/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2097
2098/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2099/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2100/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2101/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2102/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2103/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2104/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2105
2106_ASUNAME
2107
2108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109for as_dir in $PATH
2110do
2111 IFS=$as_save_IFS
2112 test -z "$as_dir" && as_dir=.
2113 $as_echo "PATH: $as_dir"
2114 done
2115IFS=$as_save_IFS
2116
2117} >&5
2118
2119cat >&5 <<_ACEOF
2120
2121
2122## ----------- ##
2123## Core tests. ##
2124## ----------- ##
2125
2126_ACEOF
2127
2128
2129# Keep a trace of the command line.
2130# Strip out --no-create and --no-recursion so they do not pile up.
2131# Strip out --silent because we don't want to record it for future runs.
2132# Also quote any args containing shell meta-characters.
2133# Make two passes to allow for proper duplicate-argument suppression.
2134ac_configure_args=
2135ac_configure_args0=
2136ac_configure_args1=
2137ac_must_keep_next=false
2138for ac_pass in 1 2
2139do
2140 for ac_arg
2141 do
2142 case $ac_arg in
2143 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2145 | -silent | --silent | --silen | --sile | --sil)
2146 continue ;;
2147 *\'*)
2148 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2149 esac
2150 case $ac_pass in
2151 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2152 2)
2153 as_fn_append ac_configure_args1 " '$ac_arg'"
2154 if test $ac_must_keep_next = true; then
2155 ac_must_keep_next=false # Got value, back to normal.
2156 else
2157 case $ac_arg in
2158 *=* | --config-cache | -C | -disable-* | --disable-* \
2159 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2160 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2161 | -with-* | --with-* | -without-* | --without-* | --x)
2162 case "$ac_configure_args0 " in
2163 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2164 esac
2165 ;;
2166 -* ) ac_must_keep_next=true ;;
2167 esac
2168 fi
2169 as_fn_append ac_configure_args " '$ac_arg'"
2170 ;;
2171 esac
2172 done
2173done
2174{ ac_configure_args0=; unset ac_configure_args0;}
2175{ ac_configure_args1=; unset ac_configure_args1;}
2176
2177# When interrupted or exit'd, cleanup temporary files, and complete
2178# config.log. We remove comments because anyway the quotes in there
2179# would cause problems or look ugly.
2180# WARNING: Use '\'' to represent an apostrophe within the trap.
2181# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2182trap 'exit_status=$?
2183 # Save into config.log some information that might help in debugging.
2184 {
2185 echo
2186
2187 $as_echo "## ---------------- ##
2188## Cache variables. ##
2189## ---------------- ##"
2190 echo
2191 # The following way of writing the cache mishandles newlines in values,
2192(
2193 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2194 eval ac_val=\$$ac_var
2195 case $ac_val in #(
2196 *${as_nl}*)
2197 case $ac_var in #(
2198 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2199$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2200 esac
2201 case $ac_var in #(
2202 _ | IFS | as_nl) ;; #(
2203 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2204 *) { eval $ac_var=; unset $ac_var;} ;;
2205 esac ;;
2206 esac
2207 done
2208 (set) 2>&1 |
2209 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2210 *${as_nl}ac_space=\ *)
2211 sed -n \
2212 "s/'\''/'\''\\\\'\'''\''/g;
2213 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2214 ;; #(
2215 *)
2216 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2217 ;;
2218 esac |
2219 sort
2220)
2221 echo
2222
2223 $as_echo "## ----------------- ##
2224## Output variables. ##
2225## ----------------- ##"
2226 echo
2227 for ac_var in $ac_subst_vars
2228 do
2229 eval ac_val=\$$ac_var
2230 case $ac_val in
2231 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2232 esac
2233 $as_echo "$ac_var='\''$ac_val'\''"
2234 done | sort
2235 echo
2236
2237 if test -n "$ac_subst_files"; then
2238 $as_echo "## ------------------- ##
2239## File substitutions. ##
2240## ------------------- ##"
2241 echo
2242 for ac_var in $ac_subst_files
2243 do
2244 eval ac_val=\$$ac_var
2245 case $ac_val in
2246 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2247 esac
2248 $as_echo "$ac_var='\''$ac_val'\''"
2249 done | sort
2250 echo
2251 fi
2252
2253 if test -s confdefs.h; then
2254 $as_echo "## ----------- ##
2255## confdefs.h. ##
2256## ----------- ##"
2257 echo
2258 cat confdefs.h
2259 echo
2260 fi
2261 test "$ac_signal" != 0 &&
2262 $as_echo "$as_me: caught signal $ac_signal"
2263 $as_echo "$as_me: exit $exit_status"
2264 } >&5
2265 rm -f core *.core core.conftest.* &&
2266 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2267 exit $exit_status
2268' 0
2269for ac_signal in 1 2 13 15; do
2270 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2271done
2272ac_signal=0
2273
2274# confdefs.h avoids OS command line length limits that DEFS can exceed.
2275rm -f -r conftest* confdefs.h
2276
2277$as_echo "/* confdefs.h */" > confdefs.h
2278
2279# Predefined preprocessor variables.
2280
2281cat >>confdefs.h <<_ACEOF
2282#define PACKAGE_NAME "$PACKAGE_NAME"
2283_ACEOF
2284
2285cat >>confdefs.h <<_ACEOF
2286#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2287_ACEOF
2288
2289cat >>confdefs.h <<_ACEOF
2290#define PACKAGE_VERSION "$PACKAGE_VERSION"
2291_ACEOF
2292
2293cat >>confdefs.h <<_ACEOF
2294#define PACKAGE_STRING "$PACKAGE_STRING"
2295_ACEOF
2296
2297cat >>confdefs.h <<_ACEOF
2298#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2299_ACEOF
2300
2301cat >>confdefs.h <<_ACEOF
2302#define PACKAGE_URL "$PACKAGE_URL"
2303_ACEOF
2304
2305
2306# Let the site file select an alternate cache file if it wants to.
2307# Prefer an explicitly selected file to automatically selected ones.
2308ac_site_file1=NONE
2309ac_site_file2=NONE
2310if test -n "$CONFIG_SITE"; then
2311 # We do not want a PATH search for config.site.
2312 case $CONFIG_SITE in #((
2313 -*) ac_site_file1=./$CONFIG_SITE;;
2314 */*) ac_site_file1=$CONFIG_SITE;;
2315 *) ac_site_file1=./$CONFIG_SITE;;
2316 esac
2317elif test "x$prefix" != xNONE; then
2318 ac_site_file1=$prefix/share/config.site
2319 ac_site_file2=$prefix/etc/config.site
2320else
2321 ac_site_file1=$ac_default_prefix/share/config.site
2322 ac_site_file2=$ac_default_prefix/etc/config.site
2323fi
2324for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2325do
2326 test "x$ac_site_file" = xNONE && continue
2327 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2329$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2330 sed 's/^/| /' "$ac_site_file" >&5
2331 . "$ac_site_file" \
2332 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2334as_fn_error $? "failed to load site script $ac_site_file
2335See \`config.log' for more details" "$LINENO" 5; }
2336 fi
2337done
2338
2339if test -r "$cache_file"; then
2340 # Some versions of bash will fail to source /dev/null (special files
2341 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2342 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2344$as_echo "$as_me: loading cache $cache_file" >&6;}
2345 case $cache_file in
2346 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2347 *) . "./$cache_file";;
2348 esac
2349 fi
2350else
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2352$as_echo "$as_me: creating cache $cache_file" >&6;}
2353 >$cache_file
2354fi
2355
2356# Check that the precious variables saved in the cache have kept the same
2357# value.
2358ac_cache_corrupted=false
2359for ac_var in $ac_precious_vars; do
2360 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2361 eval ac_new_set=\$ac_env_${ac_var}_set
2362 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2363 eval ac_new_val=\$ac_env_${ac_var}_value
2364 case $ac_old_set,$ac_new_set in
2365 set,)
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2367$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2368 ac_cache_corrupted=: ;;
2369 ,set)
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2371$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2372 ac_cache_corrupted=: ;;
2373 ,);;
2374 *)
2375 if test "x$ac_old_val" != "x$ac_new_val"; then
2376 # differences in whitespace do not lead to failure.
2377 ac_old_val_w=`echo x $ac_old_val`
2378 ac_new_val_w=`echo x $ac_new_val`
2379 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2381$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2382 ac_cache_corrupted=:
2383 else
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2385$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2386 eval $ac_var=\$ac_old_val
2387 fi
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2389$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2391$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2392 fi;;
2393 esac
2394 # Pass precious variables to config.status.
2395 if test "$ac_new_set" = set; then
2396 case $ac_new_val in
2397 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2398 *) ac_arg=$ac_var=$ac_new_val ;;
2399 esac
2400 case " $ac_configure_args " in
2401 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2402 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2403 esac
2404 fi
2405done
2406if $ac_cache_corrupted; then
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2410$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2411 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2412fi
2413## -------------------- ##
2414## Main body of script. ##
2415## -------------------- ##
2416
2417ac_ext=c
2418ac_cpp='$CPP $CPPFLAGS'
2419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422
2423
bb368aad
VM
2424ac_aux_dir=
2425for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2426 if test -f "$ac_dir/install-sh"; then
2427 ac_aux_dir=$ac_dir
2428 ac_install_sh="$ac_aux_dir/install-sh -c"
2429 break
2430 elif test -f "$ac_dir/install.sh"; then
2431 ac_aux_dir=$ac_dir
2432 ac_install_sh="$ac_aux_dir/install.sh -c"
2433 break
2434 elif test -f "$ac_dir/shtool"; then
2435 ac_aux_dir=$ac_dir
2436 ac_install_sh="$ac_aux_dir/shtool install -c"
2437 break
2438 fi
2439done
2440if test -z "$ac_aux_dir"; then
2441 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2442fi
2443
2444# These three variables are undocumented and unsupported,
2445# and are intended to be withdrawn in a future Autoconf release.
2446# They can cause serious problems if a builder's source tree is in a directory
2447# whose full name contains unusual characters.
2448ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2449ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2450ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2451
2452
6109e902
AM
2453# Make sure we can run config.sub.
2454$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2455 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2456
2457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2458$as_echo_n "checking build system type... " >&6; }
2459if ${ac_cv_build+:} false; then :
2460 $as_echo_n "(cached) " >&6
2461else
2462 ac_build_alias=$build_alias
2463test "x$ac_build_alias" = x &&
2464 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2465test "x$ac_build_alias" = x &&
2466 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2467ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2468 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2469
2470fi
2471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2472$as_echo "$ac_cv_build" >&6; }
2473case $ac_cv_build in
2474*-*-*) ;;
2475*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2476esac
2477build=$ac_cv_build
2478ac_save_IFS=$IFS; IFS='-'
2479set x $ac_cv_build
2480shift
2481build_cpu=$1
2482build_vendor=$2
2483shift; shift
2484# Remember, the first character of IFS is used to create $*,
2485# except with old shells:
2486build_os=$*
2487IFS=$ac_save_IFS
2488case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2489
2490
2491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2492$as_echo_n "checking host system type... " >&6; }
2493if ${ac_cv_host+:} false; then :
2494 $as_echo_n "(cached) " >&6
2495else
2496 if test "x$host_alias" = x; then
2497 ac_cv_host=$ac_cv_build
2498else
2499 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2500 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2501fi
2502
2503fi
2504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2505$as_echo "$ac_cv_host" >&6; }
2506case $ac_cv_host in
2507*-*-*) ;;
2508*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2509esac
2510host=$ac_cv_host
2511ac_save_IFS=$IFS; IFS='-'
2512set x $ac_cv_host
2513shift
2514host_cpu=$1
2515host_vendor=$2
2516shift; shift
2517# Remember, the first character of IFS is used to create $*,
2518# except with old shells:
2519host_os=$*
2520IFS=$ac_save_IFS
2521case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2522
2523
2524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2525$as_echo_n "checking target system type... " >&6; }
2526if ${ac_cv_target+:} false; then :
2527 $as_echo_n "(cached) " >&6
2528else
2529 if test "x$target_alias" = x; then
2530 ac_cv_target=$ac_cv_host
2531else
2532 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2533 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2534fi
2535
2536fi
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2538$as_echo "$ac_cv_target" >&6; }
2539case $ac_cv_target in
2540*-*-*) ;;
2541*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2542esac
2543target=$ac_cv_target
2544ac_save_IFS=$IFS; IFS='-'
2545set x $ac_cv_target
2546shift
2547target_cpu=$1
2548target_vendor=$2
2549shift; shift
2550# Remember, the first character of IFS is used to create $*,
2551# except with old shells:
2552target_os=$*
2553IFS=$ac_save_IFS
2554case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2555
2556
2557# The aliases save the names the user supplied, while $host etc.
2558# will get canonicalized.
2559test -n "$target_alias" &&
2560 test "$program_prefix$program_suffix$program_transform_name" = \
2561 NONENONEs,x,x, &&
2562 program_prefix=${target_alias}-
2563am__api_version='1.15'
2564
bb368aad
VM
2565# Find a good install program. We prefer a C program (faster),
2566# so one script is as good as another. But avoid the broken or
2567# incompatible versions:
2568# SysV /etc/install, /usr/sbin/install
2569# SunOS /usr/etc/install
2570# IRIX /sbin/install
2571# AIX /bin/install
2572# AmigaOS /C/install, which installs bootblocks on floppy discs
2573# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2574# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2575# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2576# OS/2's system install, which has a completely different semantic
2577# ./install, which can be erroneously created by make from ./install.sh.
2578# Reject install programs that cannot install multiple files.
2579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2580$as_echo_n "checking for a BSD-compatible install... " >&6; }
2581if test -z "$INSTALL"; then
2582if ${ac_cv_path_install+:} false; then :
2583 $as_echo_n "(cached) " >&6
2584else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586for as_dir in $PATH
2587do
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
2590 # Account for people who put trailing slashes in PATH elements.
2591case $as_dir/ in #((
2592 ./ | .// | /[cC]/* | \
2593 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2594 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2595 /usr/ucb/* ) ;;
2596 *)
2597 # OSF1 and SCO ODT 3.0 have their own names for install.
2598 # Don't use installbsd from OSF since it installs stuff as root
2599 # by default.
2600 for ac_prog in ginstall scoinst install; do
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2603 if test $ac_prog = install &&
2604 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605 # AIX install. It has an incompatible calling convention.
2606 :
2607 elif test $ac_prog = install &&
2608 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2609 # program-specific install script used by HP pwplus--don't use.
2610 :
2611 else
2612 rm -rf conftest.one conftest.two conftest.dir
2613 echo one > conftest.one
2614 echo two > conftest.two
2615 mkdir conftest.dir
2616 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2617 test -s conftest.one && test -s conftest.two &&
2618 test -s conftest.dir/conftest.one &&
2619 test -s conftest.dir/conftest.two
2620 then
2621 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2622 break 3
2623 fi
2624 fi
2625 fi
2626 done
2627 done
2628 ;;
2629esac
2630
2631 done
2632IFS=$as_save_IFS
2633
2634rm -rf conftest.one conftest.two conftest.dir
2635
2636fi
2637 if test "${ac_cv_path_install+set}" = set; then
2638 INSTALL=$ac_cv_path_install
2639 else
2640 # As a last resort, use the slow shell script. Don't cache a
2641 # value for INSTALL within a source directory, because that will
2642 # break other packages using the cache if that directory is
2643 # removed, or if the value is a relative name.
2644 INSTALL=$ac_install_sh
2645 fi
2646fi
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2648$as_echo "$INSTALL" >&6; }
2649
2650# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2651# It thinks the first close brace ends the variable substitution.
2652test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2653
2654test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2655
2656test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2657
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2659$as_echo_n "checking whether build environment is sane... " >&6; }
2660# Reject unsafe characters in $srcdir or the absolute working directory
2661# name. Accept space and tab only in the latter.
2662am_lf='
2663'
2664case `pwd` in
2665 *[\\\"\#\$\&\'\`$am_lf]*)
2666 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2667esac
2668case $srcdir in
2669 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2670 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2671esac
2672
2673# Do 'set' in a subshell so we don't clobber the current shell's
2674# arguments. Must try -L first in case configure is actually a
2675# symlink; some systems play weird games with the mod time of symlinks
2676# (eg FreeBSD returns the mod time of the symlink's containing
2677# directory).
2678if (
2679 am_has_slept=no
2680 for am_try in 1 2; do
2681 echo "timestamp, slept: $am_has_slept" > conftest.file
2682 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2683 if test "$*" = "X"; then
2684 # -L didn't work.
2685 set X `ls -t "$srcdir/configure" conftest.file`
2686 fi
2687 if test "$*" != "X $srcdir/configure conftest.file" \
2688 && test "$*" != "X conftest.file $srcdir/configure"; then
2689
2690 # If neither matched, then we have a broken ls. This can happen
2691 # if, for instance, CONFIG_SHELL is bash and it inherits a
2692 # broken ls alias from the environment. This has actually
2693 # happened. Such a system could not be considered "sane".
2694 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2695 alias in your environment" "$LINENO" 5
2696 fi
2697 if test "$2" = conftest.file || test $am_try -eq 2; then
2698 break
2699 fi
2700 # Just in case.
2701 sleep 1
2702 am_has_slept=yes
2703 done
2704 test "$2" = conftest.file
2705 )
2706then
2707 # Ok.
2708 :
2709else
2710 as_fn_error $? "newly created file is older than distributed files!
2711Check your system clock" "$LINENO" 5
2712fi
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2714$as_echo "yes" >&6; }
2715# If we didn't sleep, we still need to ensure time stamps of config.status and
2716# generated files are strictly newer.
2717am_sleep_pid=
2718if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2719 ( sleep 1 ) &
2720 am_sleep_pid=$!
2721fi
2722
2723rm -f conftest.file
2724
2725test "$program_prefix" != NONE &&
2726 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2727# Use a double $ so make ignores it.
2728test "$program_suffix" != NONE &&
2729 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2730# Double any \ or $.
2731# By default was `s,x,x', remove it if useless.
2732ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2733program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2734
2735# Expand $ac_aux_dir to an absolute path.
2736am_aux_dir=`cd "$ac_aux_dir" && pwd`
2737
2738if test x"${MISSING+set}" != xset; then
2739 case $am_aux_dir in
2740 *\ * | *\ *)
2741 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2742 *)
2743 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2744 esac
2745fi
2746# Use eval to expand $SHELL
2747if eval "$MISSING --is-lightweight"; then
2748 am_missing_run="$MISSING "
2749else
2750 am_missing_run=
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2752$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2753fi
2754
2755if test x"${install_sh+set}" != xset; then
2756 case $am_aux_dir in
2757 *\ * | *\ *)
2758 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2759 *)
2760 install_sh="\${SHELL} $am_aux_dir/install-sh"
2761 esac
2762fi
2763
2764# Installed binaries are usually stripped using 'strip' when the user
2765# run "make install-strip". However 'strip' might not be the right
2766# tool to use in cross-compilation environments, therefore Automake
2767# will honor the 'STRIP' environment variable to overrule this program.
2768if test "$cross_compiling" != no; then
2769 if test -n "$ac_tool_prefix"; then
2770 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2771set dummy ${ac_tool_prefix}strip; ac_word=$2
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773$as_echo_n "checking for $ac_word... " >&6; }
2774if ${ac_cv_prog_STRIP+:} false; then :
2775 $as_echo_n "(cached) " >&6
2776else
2777 if test -n "$STRIP"; then
2778 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2779else
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791done
2792 done
2793IFS=$as_save_IFS
2794
2795fi
2796fi
2797STRIP=$ac_cv_prog_STRIP
2798if test -n "$STRIP"; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2800$as_echo "$STRIP" >&6; }
2801else
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803$as_echo "no" >&6; }
2804fi
2805
2806
2807fi
2808if test -z "$ac_cv_prog_STRIP"; then
2809 ac_ct_STRIP=$STRIP
2810 # Extract the first word of "strip", so it can be a program name with args.
2811set dummy strip; ac_word=$2
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813$as_echo_n "checking for $ac_word... " >&6; }
2814if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2815 $as_echo_n "(cached) " >&6
2816else
2817 if test -n "$ac_ct_STRIP"; then
2818 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2819else
2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827 ac_cv_prog_ac_ct_STRIP="strip"
2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 break 2
2830 fi
2831done
2832 done
2833IFS=$as_save_IFS
2834
2835fi
2836fi
2837ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2838if test -n "$ac_ct_STRIP"; then
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2840$as_echo "$ac_ct_STRIP" >&6; }
2841else
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843$as_echo "no" >&6; }
2844fi
2845
2846 if test "x$ac_ct_STRIP" = x; then
2847 STRIP=":"
2848 else
2849 case $cross_compiling:$ac_tool_warned in
2850yes:)
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2853ac_tool_warned=yes ;;
2854esac
2855 STRIP=$ac_ct_STRIP
2856 fi
2857else
2858 STRIP="$ac_cv_prog_STRIP"
2859fi
2860
2861fi
2862INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2863
2864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2865$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2866if test -z "$MKDIR_P"; then
2867 if ${ac_cv_path_mkdir+:} false; then :
2868 $as_echo_n "(cached) " >&6
2869else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2872do
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_prog in mkdir gmkdir; do
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2878 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2879 'mkdir (GNU coreutils) '* | \
2880 'mkdir (coreutils) '* | \
2881 'mkdir (fileutils) '4.1*)
2882 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2883 break 3;;
2884 esac
2885 done
2886 done
2887 done
2888IFS=$as_save_IFS
2889
2890fi
2891
2892 test -d ./--version && rmdir ./--version
2893 if test "${ac_cv_path_mkdir+set}" = set; then
2894 MKDIR_P="$ac_cv_path_mkdir -p"
2895 else
2896 # As a last resort, use the slow shell script. Don't cache a
2897 # value for MKDIR_P within a source directory, because that will
2898 # break other packages using the cache if that directory is
2899 # removed, or if the value is a relative name.
2900 MKDIR_P="$ac_install_sh -d"
2901 fi
2902fi
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2904$as_echo "$MKDIR_P" >&6; }
2905
2906for ac_prog in gawk mawk nawk awk
2907do
2908 # Extract the first word of "$ac_prog", so it can be a program name with args.
2909set dummy $ac_prog; ac_word=$2
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911$as_echo_n "checking for $ac_word... " >&6; }
2912if ${ac_cv_prog_AWK+:} false; then :
2913 $as_echo_n "(cached) " >&6
2914else
2915 if test -n "$AWK"; then
2916 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2917else
2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_AWK="$ac_prog"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929done
2930 done
2931IFS=$as_save_IFS
2932
2933fi
2934fi
2935AWK=$ac_cv_prog_AWK
2936if test -n "$AWK"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2938$as_echo "$AWK" >&6; }
2939else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941$as_echo "no" >&6; }
2942fi
2943
2944
2945 test -n "$AWK" && break
2946done
2947
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2949$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2950set x ${MAKE-make}
2951ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2952if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2953 $as_echo_n "(cached) " >&6
2954else
2955 cat >conftest.make <<\_ACEOF
2956SHELL = /bin/sh
2957all:
2958 @echo '@@@%%%=$(MAKE)=@@@%%%'
2959_ACEOF
2960# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2961case `${MAKE-make} -f conftest.make 2>/dev/null` in
2962 *@@@%%%=?*=@@@%%%*)
2963 eval ac_cv_prog_make_${ac_make}_set=yes;;
2964 *)
2965 eval ac_cv_prog_make_${ac_make}_set=no;;
2966esac
2967rm -f conftest.make
2968fi
2969if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2971$as_echo "yes" >&6; }
2972 SET_MAKE=
2973else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975$as_echo "no" >&6; }
2976 SET_MAKE="MAKE=${MAKE-make}"
2977fi
2978
2979rm -rf .tst 2>/dev/null
2980mkdir .tst 2>/dev/null
2981if test -d .tst; then
2982 am__leading_dot=.
2983else
2984 am__leading_dot=_
2985fi
2986rmdir .tst 2>/dev/null
2987
2988# Check whether --enable-silent-rules was given.
2989if test "${enable_silent_rules+set}" = set; then :
2990 enableval=$enable_silent_rules;
2991fi
2992
2993case $enable_silent_rules in # (((
2994 yes) AM_DEFAULT_VERBOSITY=0;;
2995 no) AM_DEFAULT_VERBOSITY=1;;
2996 *) AM_DEFAULT_VERBOSITY=1;;
2997esac
2998am_make=${MAKE-make}
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3000$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3001if ${am_cv_make_support_nested_variables+:} false; then :
3002 $as_echo_n "(cached) " >&6
3003else
3004 if $as_echo 'TRUE=$(BAR$(V))
3005BAR0=false
3006BAR1=true
3007V=1
3008am__doit:
3009 @$(TRUE)
3010.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3011 am_cv_make_support_nested_variables=yes
3012else
3013 am_cv_make_support_nested_variables=no
3014fi
3015fi
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3017$as_echo "$am_cv_make_support_nested_variables" >&6; }
3018if test $am_cv_make_support_nested_variables = yes; then
3019 AM_V='$(V)'
3020 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3021else
3022 AM_V=$AM_DEFAULT_VERBOSITY
3023 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3024fi
3025AM_BACKSLASH='\'
3026
3027if test "`cd $srcdir && pwd`" != "`pwd`"; then
3028 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3029 # is not polluted with repeated "-I."
3030 am__isrc=' -I$(srcdir)'
3031 # test to see if srcdir already configured
3032 if test -f $srcdir/config.status; then
3033 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3034 fi
3035fi
3036
3037# test whether we have cygpath
3038if test -z "$CYGPATH_W"; then
3039 if (cygpath --version) >/dev/null 2>/dev/null; then
3040 CYGPATH_W='cygpath -w'
3041 else
3042 CYGPATH_W=echo
3043 fi
3044fi
3045
3046
3047# Define the identity of the package.
3048 PACKAGE='gprofng'
3049 VERSION='2.38.50'
3050
3051
3052cat >>confdefs.h <<_ACEOF
3053#define PACKAGE "$PACKAGE"
3054_ACEOF
3055
3056
3057cat >>confdefs.h <<_ACEOF
3058#define VERSION "$VERSION"
3059_ACEOF
3060
3061# Some tools Automake needs.
3062
3063ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3064
3065
3066AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3067
3068
3069AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3070
3071
3072AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3073
3074
3075MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3076
3077# For better backward compatibility. To be removed once Automake 1.9.x
3078# dies out for good. For more background, see:
3079# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3080# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3081mkdir_p='$(MKDIR_P)'
3082
3083# We need awk for the "check" target (and possibly the TAP driver). The
3084# system "awk" is bad on some platforms.
3085# Always define AMTAR for backward compatibility. Yes, it's still used
3086# in the wild :-( We should find a proper way to deprecate it ...
3087AMTAR='$${TAR-tar}'
3088
3089
3090# We'll loop over all known methods to create a tar archive until one works.
3091_am_tools='gnutar pax cpio none'
3092
3093am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3094
3095
3096
3097
3098
3099
3100# POSIX will say in a future version that running "rm -f" with no argument
3101# is OK; and we want to be able to make that assumption in our Makefile
3102# recipes. So use an aggressive probe to check that the usage we want is
3103# actually supported "in the wild" to an acceptable degree.
3104# See automake bug#10828.
3105# To make any issue more visible, cause the running configure to be aborted
3106# by default if the 'rm' program in use doesn't match our expectations; the
3107# user can still override this though.
3108if rm -f && rm -fr && rm -rf; then : OK; else
3109 cat >&2 <<'END'
3110Oops!
3111
3112Your 'rm' program seems unable to run without file operands specified
3113on the command line, even when the '-f' option is present. This is contrary
3114to the behaviour of most rm programs out there, and not conforming with
3115the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3116
3117Please tell bug-automake@gnu.org about your system, including the value
3118of your $PATH and any error possibly output before this message. This
3119can help us improve future automake versions.
3120
3121END
3122 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3123 echo 'Configuration will proceed anyway, since you have set the' >&2
3124 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3125 echo >&2
3126 else
3127 cat >&2 <<'END'
3128Aborting the configuration process, to ensure you take notice of the issue.
3129
3130You can download and install GNU coreutils to get an 'rm' implementation
3131that behaves properly: <http://www.gnu.org/software/coreutils/>.
3132
3133If you want to complete the configuration process using your problematic
3134'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3135to "yes", and re-run configure.
3136
3137END
3138 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3139 fi
3140fi
3141
3142
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3144$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3145 # Check whether --enable-maintainer-mode was given.
3146if test "${enable_maintainer_mode+set}" = set; then :
3147 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3148else
3149 USE_MAINTAINER_MODE=no
3150fi
3151
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3153$as_echo "$USE_MAINTAINER_MODE" >&6; }
3154 if test $USE_MAINTAINER_MODE = yes; then
3155 MAINTAINER_MODE_TRUE=
3156 MAINTAINER_MODE_FALSE='#'
3157else
3158 MAINTAINER_MODE_TRUE='#'
3159 MAINTAINER_MODE_FALSE=
3160fi
3161
3162 MAINT=$MAINTAINER_MODE_TRUE
3163
3164
3165
3166DEPDIR="${am__leading_dot}deps"
3167
3168ac_config_commands="$ac_config_commands depfiles"
3169
3170
3171am_make=${MAKE-make}
3172cat > confinc << 'END'
3173am__doit:
3174 @echo this is the am__doit target
3175.PHONY: am__doit
3176END
3177# If we don't find an include directive, just comment out the code.
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3179$as_echo_n "checking for style of include used by $am_make... " >&6; }
3180am__include="#"
3181am__quote=
3182_am_result=none
3183# First try GNU make style include.
3184echo "include confinc" > confmf
3185# Ignore all kinds of additional output from 'make'.
3186case `$am_make -s -f confmf 2> /dev/null` in #(
3187*the\ am__doit\ target*)
3188 am__include=include
3189 am__quote=
3190 _am_result=GNU
3191 ;;
3192esac
3193# Now try BSD make style include.
3194if test "$am__include" = "#"; then
3195 echo '.include "confinc"' > confmf
3196 case `$am_make -s -f confmf 2> /dev/null` in #(
3197 *the\ am__doit\ target*)
3198 am__include=.include
3199 am__quote="\""
3200 _am_result=BSD
3201 ;;
3202 esac
3203fi
3204
3205
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3207$as_echo "$_am_result" >&6; }
3208rm -f confinc confmf
3209
3210# Check whether --enable-dependency-tracking was given.
3211if test "${enable_dependency_tracking+set}" = set; then :
3212 enableval=$enable_dependency_tracking;
3213fi
3214
3215if test "x$enable_dependency_tracking" != xno; then
3216 am_depcomp="$ac_aux_dir/depcomp"
3217 AMDEPBACKSLASH='\'
3218 am__nodep='_no'
3219fi
3220 if test "x$enable_dependency_tracking" != xno; then
3221 AMDEP_TRUE=
3222 AMDEP_FALSE='#'
3223else
3224 AMDEP_TRUE='#'
3225 AMDEP_FALSE=
3226fi
3227
3228
3229ac_ext=c
3230ac_cpp='$CPP $CPPFLAGS'
3231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234if test -n "$ac_tool_prefix"; then
3235 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3236set dummy ${ac_tool_prefix}gcc; ac_word=$2
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238$as_echo_n "checking for $ac_word... " >&6; }
3239if ${ac_cv_prog_CC+:} false; then :
3240 $as_echo_n "(cached) " >&6
3241else
3242 if test -n "$CC"; then
3243 ac_cv_prog_CC="$CC" # Let the user override the test.
3244else
3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246for as_dir in $PATH
3247do
3248 IFS=$as_save_IFS
3249 test -z "$as_dir" && as_dir=.
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 break 2
3255 fi
3256done
3257 done
3258IFS=$as_save_IFS
3259
3260fi
3261fi
3262CC=$ac_cv_prog_CC
3263if test -n "$CC"; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3265$as_echo "$CC" >&6; }
3266else
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268$as_echo "no" >&6; }
3269fi
3270
3271
3272fi
3273if test -z "$ac_cv_prog_CC"; then
3274 ac_ct_CC=$CC
3275 # Extract the first word of "gcc", so it can be a program name with args.
3276set dummy gcc; ac_word=$2
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278$as_echo_n "checking for $ac_word... " >&6; }
3279if ${ac_cv_prog_ac_ct_CC+:} false; then :
3280 $as_echo_n "(cached) " >&6
3281else
3282 if test -n "$ac_ct_CC"; then
3283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3284else
3285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286for as_dir in $PATH
3287do
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292 ac_cv_prog_ac_ct_CC="gcc"
3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 break 2
3295 fi
3296done
3297 done
3298IFS=$as_save_IFS
3299
3300fi
3301fi
3302ac_ct_CC=$ac_cv_prog_ac_ct_CC
3303if test -n "$ac_ct_CC"; then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3305$as_echo "$ac_ct_CC" >&6; }
3306else
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308$as_echo "no" >&6; }
3309fi
3310
3311 if test "x$ac_ct_CC" = x; then
3312 CC=""
3313 else
3314 case $cross_compiling:$ac_tool_warned in
3315yes:)
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3318ac_tool_warned=yes ;;
3319esac
3320 CC=$ac_ct_CC
3321 fi
3322else
3323 CC="$ac_cv_prog_CC"
3324fi
3325
3326if test -z "$CC"; then
3327 if test -n "$ac_tool_prefix"; then
3328 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3329set dummy ${ac_tool_prefix}cc; ac_word=$2
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331$as_echo_n "checking for $ac_word... " >&6; }
3332if ${ac_cv_prog_CC+:} false; then :
3333 $as_echo_n "(cached) " >&6
3334else
3335 if test -n "$CC"; then
3336 ac_cv_prog_CC="$CC" # Let the user override the test.
3337else
3338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339for as_dir in $PATH
3340do
3341 IFS=$as_save_IFS
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345 ac_cv_prog_CC="${ac_tool_prefix}cc"
3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 break 2
3348 fi
3349done
3350 done
3351IFS=$as_save_IFS
3352
3353fi
3354fi
3355CC=$ac_cv_prog_CC
3356if test -n "$CC"; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3358$as_echo "$CC" >&6; }
3359else
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361$as_echo "no" >&6; }
3362fi
3363
3364
3365 fi
3366fi
3367if test -z "$CC"; then
3368 # Extract the first word of "cc", so it can be a program name with args.
3369set dummy cc; ac_word=$2
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371$as_echo_n "checking for $ac_word... " >&6; }
3372if ${ac_cv_prog_CC+:} false; then :
3373 $as_echo_n "(cached) " >&6
3374else
3375 if test -n "$CC"; then
3376 ac_cv_prog_CC="$CC" # Let the user override the test.
3377else
3378 ac_prog_rejected=no
3379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380for as_dir in $PATH
3381do
3382 IFS=$as_save_IFS
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3386 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3387 ac_prog_rejected=yes
3388 continue
3389 fi
3390 ac_cv_prog_CC="cc"
3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 break 2
3393 fi
3394done
3395 done
3396IFS=$as_save_IFS
3397
3398if test $ac_prog_rejected = yes; then
3399 # We found a bogon in the path, so make sure we never use it.
3400 set dummy $ac_cv_prog_CC
3401 shift
3402 if test $# != 0; then
3403 # We chose a different compiler from the bogus one.
3404 # However, it has the same basename, so the bogon will be chosen
3405 # first if we set CC to just the basename; use the full file name.
3406 shift
3407 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3408 fi
3409fi
3410fi
3411fi
3412CC=$ac_cv_prog_CC
3413if test -n "$CC"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3415$as_echo "$CC" >&6; }
3416else
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418$as_echo "no" >&6; }
3419fi
3420
3421
3422fi
3423if test -z "$CC"; then
3424 if test -n "$ac_tool_prefix"; then
3425 for ac_prog in cl.exe
3426 do
3427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3428set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430$as_echo_n "checking for $ac_word... " >&6; }
3431if ${ac_cv_prog_CC+:} false; then :
3432 $as_echo_n "(cached) " >&6
3433else
3434 if test -n "$CC"; then
3435 ac_cv_prog_CC="$CC" # Let the user override the test.
3436else
3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438for as_dir in $PATH
3439do
3440 IFS=$as_save_IFS
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 break 2
3447 fi
3448done
3449 done
3450IFS=$as_save_IFS
3451
3452fi
3453fi
3454CC=$ac_cv_prog_CC
3455if test -n "$CC"; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457$as_echo "$CC" >&6; }
3458else
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460$as_echo "no" >&6; }
3461fi
3462
3463
3464 test -n "$CC" && break
3465 done
3466fi
3467if test -z "$CC"; then
3468 ac_ct_CC=$CC
3469 for ac_prog in cl.exe
3470do
3471 # Extract the first word of "$ac_prog", so it can be a program name with args.
3472set dummy $ac_prog; ac_word=$2
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474$as_echo_n "checking for $ac_word... " >&6; }
3475if ${ac_cv_prog_ac_ct_CC+:} false; then :
3476 $as_echo_n "(cached) " >&6
3477else
3478 if test -n "$ac_ct_CC"; then
3479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3480else
3481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482for as_dir in $PATH
3483do
3484 IFS=$as_save_IFS
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488 ac_cv_prog_ac_ct_CC="$ac_prog"
3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 break 2
3491 fi
3492done
3493 done
3494IFS=$as_save_IFS
3495
3496fi
3497fi
3498ac_ct_CC=$ac_cv_prog_ac_ct_CC
3499if test -n "$ac_ct_CC"; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3501$as_echo "$ac_ct_CC" >&6; }
3502else
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504$as_echo "no" >&6; }
3505fi
3506
3507
3508 test -n "$ac_ct_CC" && break
3509done
3510
3511 if test "x$ac_ct_CC" = x; then
3512 CC=""
3513 else
3514 case $cross_compiling:$ac_tool_warned in
3515yes:)
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3518ac_tool_warned=yes ;;
3519esac
3520 CC=$ac_ct_CC
3521 fi
3522fi
3523
3524fi
3525
3526
3527test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3529as_fn_error $? "no acceptable C compiler found in \$PATH
3530See \`config.log' for more details" "$LINENO" 5; }
3531
3532# Provide some information about the compiler.
3533$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3534set X $ac_compile
3535ac_compiler=$2
3536for ac_option in --version -v -V -qversion; do
3537 { { ac_try="$ac_compiler $ac_option >&5"
3538case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3541esac
3542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543$as_echo "$ac_try_echo"; } >&5
3544 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3545 ac_status=$?
3546 if test -s conftest.err; then
3547 sed '10a\
3548... rest of stderr output deleted ...
3549 10q' conftest.err >conftest.er1
3550 cat conftest.er1 >&5
3551 fi
3552 rm -f conftest.er1 conftest.err
3553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3554 test $ac_status = 0; }
3555done
3556
3557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558/* end confdefs.h. */
3559
3560int
3561main ()
3562{
3563
3564 ;
3565 return 0;
3566}
3567_ACEOF
3568ac_clean_files_save=$ac_clean_files
3569ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3570# Try to create an executable without -o first, disregard a.out.
3571# It will help us diagnose broken compilers, and finding out an intuition
3572# of exeext.
3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3574$as_echo_n "checking whether the C compiler works... " >&6; }
3575ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3576
3577# The possible output files:
3578ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3579
3580ac_rmfiles=
3581for ac_file in $ac_files
3582do
3583 case $ac_file in
3584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3585 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3586 esac
3587done
3588rm -f $ac_rmfiles
3589
3590if { { ac_try="$ac_link_default"
3591case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594esac
3595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3596$as_echo "$ac_try_echo"; } >&5
3597 (eval "$ac_link_default") 2>&5
3598 ac_status=$?
3599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3600 test $ac_status = 0; }; then :
3601 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3602# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3603# in a Makefile. We should not override ac_cv_exeext if it was cached,
3604# so that the user can short-circuit this test for compilers unknown to
3605# Autoconf.
3606for ac_file in $ac_files ''
3607do
3608 test -f "$ac_file" || continue
3609 case $ac_file in
3610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3611 ;;
3612 [ab].out )
3613 # We found the default executable, but exeext='' is most
3614 # certainly right.
3615 break;;
3616 *.* )
3617 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3618 then :; else
3619 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3620 fi
3621 # We set ac_cv_exeext here because the later test for it is not
3622 # safe: cross compilers may not add the suffix if given an `-o'
3623 # argument, so we may need to know it at that point already.
3624 # Even if this section looks crufty: it has the advantage of
3625 # actually working.
3626 break;;
3627 * )
3628 break;;
3629 esac
3630done
3631test "$ac_cv_exeext" = no && ac_cv_exeext=
3632
3633else
3634 ac_file=''
3635fi
3636if test -z "$ac_file"; then :
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638$as_echo "no" >&6; }
3639$as_echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644as_fn_error 77 "C compiler cannot create executables
3645See \`config.log' for more details" "$LINENO" 5; }
3646else
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3648$as_echo "yes" >&6; }
3649fi
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3651$as_echo_n "checking for C compiler default output file name... " >&6; }
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3653$as_echo "$ac_file" >&6; }
3654ac_exeext=$ac_cv_exeext
3655
3656rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3657ac_clean_files=$ac_clean_files_save
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3659$as_echo_n "checking for suffix of executables... " >&6; }
3660if { { ac_try="$ac_link"
3661case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664esac
3665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666$as_echo "$ac_try_echo"; } >&5
3667 (eval "$ac_link") 2>&5
3668 ac_status=$?
3669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670 test $ac_status = 0; }; then :
3671 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3672# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3673# work properly (i.e., refer to `conftest.exe'), while it won't with
3674# `rm'.
3675for ac_file in conftest.exe conftest conftest.*; do
3676 test -f "$ac_file" || continue
3677 case $ac_file in
3678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3679 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3680 break;;
3681 * ) break;;
3682 esac
3683done
3684else
3685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3688See \`config.log' for more details" "$LINENO" 5; }
3689fi
3690rm -f conftest conftest$ac_cv_exeext
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3692$as_echo "$ac_cv_exeext" >&6; }
3693
3694rm -f conftest.$ac_ext
3695EXEEXT=$ac_cv_exeext
3696ac_exeext=$EXEEXT
3697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698/* end confdefs.h. */
3699#include <stdio.h>
3700int
3701main ()
3702{
3703FILE *f = fopen ("conftest.out", "w");
3704 return ferror (f) || fclose (f) != 0;
3705
3706 ;
3707 return 0;
3708}
3709_ACEOF
3710ac_clean_files="$ac_clean_files conftest.out"
3711# Check that the compiler produces executables we can run. If not, either
3712# the compiler is broken, or we cross compile.
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3714$as_echo_n "checking whether we are cross compiling... " >&6; }
3715if test "$cross_compiling" != yes; then
3716 { { ac_try="$ac_link"
3717case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3720esac
3721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722$as_echo "$ac_try_echo"; } >&5
3723 (eval "$ac_link") 2>&5
3724 ac_status=$?
3725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726 test $ac_status = 0; }
3727 if { ac_try='./conftest$ac_cv_exeext'
3728 { { case "(($ac_try" in
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3731esac
3732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3733$as_echo "$ac_try_echo"; } >&5
3734 (eval "$ac_try") 2>&5
3735 ac_status=$?
3736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3737 test $ac_status = 0; }; }; then
3738 cross_compiling=no
3739 else
3740 if test "$cross_compiling" = maybe; then
3741 cross_compiling=yes
3742 else
3743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3745as_fn_error $? "cannot run C compiled programs.
3746If you meant to cross compile, use \`--host'.
3747See \`config.log' for more details" "$LINENO" 5; }
3748 fi
3749 fi
3750fi
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3752$as_echo "$cross_compiling" >&6; }
3753
3754rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3755ac_clean_files=$ac_clean_files_save
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3757$as_echo_n "checking for suffix of object files... " >&6; }
3758if ${ac_cv_objext+:} false; then :
3759 $as_echo_n "(cached) " >&6
3760else
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762/* end confdefs.h. */
3763
3764int
3765main ()
3766{
3767
3768 ;
3769 return 0;
3770}
3771_ACEOF
3772rm -f conftest.o conftest.obj
3773if { { ac_try="$ac_compile"
3774case "(($ac_try" in
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3777esac
3778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3779$as_echo "$ac_try_echo"; } >&5
3780 (eval "$ac_compile") 2>&5
3781 ac_status=$?
3782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3783 test $ac_status = 0; }; then :
3784 for ac_file in conftest.o conftest.obj conftest.*; do
3785 test -f "$ac_file" || continue;
3786 case $ac_file in
3787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3788 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3789 break;;
3790 esac
3791done
3792else
3793 $as_echo "$as_me: failed program was:" >&5
3794sed 's/^/| /' conftest.$ac_ext >&5
3795
3796{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3798as_fn_error $? "cannot compute suffix of object files: cannot compile
3799See \`config.log' for more details" "$LINENO" 5; }
3800fi
3801rm -f conftest.$ac_cv_objext conftest.$ac_ext
3802fi
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3804$as_echo "$ac_cv_objext" >&6; }
3805OBJEXT=$ac_cv_objext
3806ac_objext=$OBJEXT
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3808$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3809if ${ac_cv_c_compiler_gnu+:} false; then :
3810 $as_echo_n "(cached) " >&6
3811else
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813/* end confdefs.h. */
3814
3815int
3816main ()
3817{
3818#ifndef __GNUC__
3819 choke me
3820#endif
3821
3822 ;
3823 return 0;
3824}
3825_ACEOF
3826if ac_fn_c_try_compile "$LINENO"; then :
3827 ac_compiler_gnu=yes
3828else
3829 ac_compiler_gnu=no
3830fi
3831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832ac_cv_c_compiler_gnu=$ac_compiler_gnu
3833
3834fi
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3836$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3837if test $ac_compiler_gnu = yes; then
3838 GCC=yes
3839else
3840 GCC=
3841fi
3842ac_test_CFLAGS=${CFLAGS+set}
3843ac_save_CFLAGS=$CFLAGS
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3845$as_echo_n "checking whether $CC accepts -g... " >&6; }
3846if ${ac_cv_prog_cc_g+:} false; then :
3847 $as_echo_n "(cached) " >&6
3848else
3849 ac_save_c_werror_flag=$ac_c_werror_flag
3850 ac_c_werror_flag=yes
3851 ac_cv_prog_cc_g=no
3852 CFLAGS="-g"
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854/* end confdefs.h. */
3855
3856int
3857main ()
3858{
3859
3860 ;
3861 return 0;
3862}
3863_ACEOF
3864if ac_fn_c_try_compile "$LINENO"; then :
3865 ac_cv_prog_cc_g=yes
3866else
3867 CFLAGS=""
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869/* end confdefs.h. */
3870
3871int
3872main ()
3873{
3874
3875 ;
3876 return 0;
3877}
3878_ACEOF
3879if ac_fn_c_try_compile "$LINENO"; then :
3880
3881else
3882 ac_c_werror_flag=$ac_save_c_werror_flag
3883 CFLAGS="-g"
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885/* end confdefs.h. */
3886
3887int
3888main ()
3889{
3890
3891 ;
3892 return 0;
3893}
3894_ACEOF
3895if ac_fn_c_try_compile "$LINENO"; then :
3896 ac_cv_prog_cc_g=yes
3897fi
3898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899fi
3900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901fi
3902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 ac_c_werror_flag=$ac_save_c_werror_flag
3904fi
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3906$as_echo "$ac_cv_prog_cc_g" >&6; }
3907if test "$ac_test_CFLAGS" = set; then
3908 CFLAGS=$ac_save_CFLAGS
3909elif test $ac_cv_prog_cc_g = yes; then
3910 if test "$GCC" = yes; then
3911 CFLAGS="-g -O2"
3912 else
3913 CFLAGS="-g"
3914 fi
3915else
3916 if test "$GCC" = yes; then
3917 CFLAGS="-O2"
3918 else
3919 CFLAGS=
3920 fi
3921fi
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3923$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3924if ${ac_cv_prog_cc_c89+:} false; then :
3925 $as_echo_n "(cached) " >&6
3926else
3927 ac_cv_prog_cc_c89=no
3928ac_save_CC=$CC
3929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930/* end confdefs.h. */
3931#include <stdarg.h>
3932#include <stdio.h>
3933struct stat;
3934/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3935struct buf { int x; };
3936FILE * (*rcsopen) (struct buf *, struct stat *, int);
3937static char *e (p, i)
3938 char **p;
3939 int i;
3940{
3941 return p[i];
3942}
3943static char *f (char * (*g) (char **, int), char **p, ...)
3944{
3945 char *s;
3946 va_list v;
3947 va_start (v,p);
3948 s = g (p, va_arg (v,int));
3949 va_end (v);
3950 return s;
3951}
3952
3953/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3954 function prototypes and stuff, but not '\xHH' hex character constants.
3955 These don't provoke an error unfortunately, instead are silently treated
3956 as 'x'. The following induces an error, until -std is added to get
3957 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3958 array size at least. It's necessary to write '\x00'==0 to get something
3959 that's true only with -std. */
3960int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3961
3962/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3963 inside strings and character constants. */
3964#define FOO(x) 'x'
3965int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3966
3967int test (int i, double x);
3968struct s1 {int (*f) (int a);};
3969struct s2 {int (*f) (double a);};
3970int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3971int argc;
3972char **argv;
3973int
3974main ()
3975{
3976return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3977 ;
3978 return 0;
3979}
3980_ACEOF
3981for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3982 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3983do
3984 CC="$ac_save_CC $ac_arg"
3985 if ac_fn_c_try_compile "$LINENO"; then :
3986 ac_cv_prog_cc_c89=$ac_arg
3987fi
3988rm -f core conftest.err conftest.$ac_objext
3989 test "x$ac_cv_prog_cc_c89" != "xno" && break
3990done
3991rm -f conftest.$ac_ext
3992CC=$ac_save_CC
3993
3994fi
3995# AC_CACHE_VAL
3996case "x$ac_cv_prog_cc_c89" in
3997 x)
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3999$as_echo "none needed" >&6; } ;;
4000 xno)
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4002$as_echo "unsupported" >&6; } ;;
4003 *)
4004 CC="$CC $ac_cv_prog_cc_c89"
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4006$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4007esac
4008if test "x$ac_cv_prog_cc_c89" != xno; then :
4009
4010fi
4011
4012ac_ext=c
4013ac_cpp='$CPP $CPPFLAGS'
4014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4016ac_compiler_gnu=$ac_cv_c_compiler_gnu
4017
4018ac_ext=c
4019ac_cpp='$CPP $CPPFLAGS'
4020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4024$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4025if ${am_cv_prog_cc_c_o+:} false; then :
4026 $as_echo_n "(cached) " >&6
4027else
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029/* end confdefs.h. */
4030
4031int
4032main ()
4033{
4034
4035 ;
4036 return 0;
4037}
4038_ACEOF
4039 # Make sure it works both with $CC and with simple cc.
4040 # Following AC_PROG_CC_C_O, we do the test twice because some
4041 # compilers refuse to overwrite an existing .o file with -o,
4042 # though they will create one.
4043 am_cv_prog_cc_c_o=yes
4044 for am_i in 1 2; do
4045 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4046 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4047 ac_status=$?
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } \
4050 && test -f conftest2.$ac_objext; then
4051 : OK
4052 else
4053 am_cv_prog_cc_c_o=no
4054 break
4055 fi
4056 done
4057 rm -f core conftest*
4058 unset am_i
4059fi
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4061$as_echo "$am_cv_prog_cc_c_o" >&6; }
4062if test "$am_cv_prog_cc_c_o" != yes; then
4063 # Losing compiler, so override with the script.
4064 # FIXME: It is wrong to rewrite CC.
4065 # But if we don't then we get into trouble of one sort or another.
4066 # A longer-term fix would be to have automake use am__CC in this case,
4067 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4068 CC="$am_aux_dir/compile $CC"
4069fi
4070ac_ext=c
4071ac_cpp='$CPP $CPPFLAGS'
4072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075
4076
4077depcc="$CC" am_compiler_list=
4078
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4080$as_echo_n "checking dependency style of $depcc... " >&6; }
4081if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4082 $as_echo_n "(cached) " >&6
4083else
4084 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4085 # We make a subdir and do the tests there. Otherwise we can end up
4086 # making bogus files that we don't know about and never remove. For
4087 # instance it was reported that on HP-UX the gcc test will end up
4088 # making a dummy file named 'D' -- because '-MD' means "put the output
4089 # in D".
4090 rm -rf conftest.dir
4091 mkdir conftest.dir
4092 # Copy depcomp to subdir because otherwise we won't find it if we're
4093 # using a relative directory.
4094 cp "$am_depcomp" conftest.dir
4095 cd conftest.dir
4096 # We will build objects and dependencies in a subdirectory because
4097 # it helps to detect inapplicable dependency modes. For instance
4098 # both Tru64's cc and ICC support -MD to output dependencies as a
4099 # side effect of compilation, but ICC will put the dependencies in
4100 # the current directory while Tru64 will put them in the object
4101 # directory.
4102 mkdir sub
4103
4104 am_cv_CC_dependencies_compiler_type=none
4105 if test "$am_compiler_list" = ""; then
4106 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4107 fi
4108 am__universal=false
4109 case " $depcc " in #(
4110 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4111 esac
4112
4113 for depmode in $am_compiler_list; do
4114 # Setup a source with many dependencies, because some compilers
4115 # like to wrap large dependency lists on column 80 (with \), and
4116 # we should not choose a depcomp mode which is confused by this.
4117 #
4118 # We need to recreate these files for each test, as the compiler may
4119 # overwrite some of them when testing with obscure command lines.
4120 # This happens at least with the AIX C compiler.
4121 : > sub/conftest.c
4122 for i in 1 2 3 4 5 6; do
4123 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4124 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4125 # Solaris 10 /bin/sh.
4126 echo '/* dummy */' > sub/conftst$i.h
4127 done
4128 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4129
4130 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4131 # mode. It turns out that the SunPro C++ compiler does not properly
4132 # handle '-M -o', and we need to detect this. Also, some Intel
4133 # versions had trouble with output in subdirs.
4134 am__obj=sub/conftest.${OBJEXT-o}
4135 am__minus_obj="-o $am__obj"
4136 case $depmode in
4137 gcc)
4138 # This depmode causes a compiler race in universal mode.
4139 test "$am__universal" = false || continue
4140 ;;
4141 nosideeffect)
4142 # After this tag, mechanisms are not by side-effect, so they'll
4143 # only be used when explicitly requested.
4144 if test "x$enable_dependency_tracking" = xyes; then
4145 continue
4146 else
4147 break
4148 fi
4149 ;;
4150 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4151 # This compiler won't grok '-c -o', but also, the minuso test has
4152 # not run yet. These depmodes are late enough in the game, and
4153 # so weak that their functioning should not be impacted.
4154 am__obj=conftest.${OBJEXT-o}
4155 am__minus_obj=
4156 ;;
4157 none) break ;;
4158 esac
4159 if depmode=$depmode \
4160 source=sub/conftest.c object=$am__obj \
4161 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4162 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4163 >/dev/null 2>conftest.err &&
4164 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4165 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4166 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4167 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4168 # icc doesn't choke on unknown options, it will just issue warnings
4169 # or remarks (even with -Werror). So we grep stderr for any message
4170 # that says an option was ignored or not supported.
4171 # When given -MP, icc 7.0 and 7.1 complain thusly:
4172 # icc: Command line warning: ignoring option '-M'; no argument required
4173 # The diagnosis changed in icc 8.0:
4174 # icc: Command line remark: option '-MP' not supported
4175 if (grep 'ignoring option' conftest.err ||
4176 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4177 am_cv_CC_dependencies_compiler_type=$depmode
4178 break
4179 fi
4180 fi
4181 done
4182
4183 cd ..
4184 rm -rf conftest.dir
4185else
4186 am_cv_CC_dependencies_compiler_type=none
4187fi
4188
4189fi
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4191$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4192CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4193
4194 if
4195 test "x$enable_dependency_tracking" != xno \
4196 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4197 am__fastdepCC_TRUE=
4198 am__fastdepCC_FALSE='#'
4199else
4200 am__fastdepCC_TRUE='#'
4201 am__fastdepCC_FALSE=
4202fi
4203
4204
4205
4206ac_ext=c
4207ac_cpp='$CPP $CPPFLAGS'
4208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4210ac_compiler_gnu=$ac_cv_c_compiler_gnu
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4212$as_echo_n "checking how to run the C preprocessor... " >&6; }
4213# On Suns, sometimes $CPP names a directory.
4214if test -n "$CPP" && test -d "$CPP"; then
4215 CPP=
4216fi
4217if test -z "$CPP"; then
4218 if ${ac_cv_prog_CPP+:} false; then :
4219 $as_echo_n "(cached) " >&6
4220else
4221 # Double quotes because CPP needs to be expanded
4222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4223 do
4224 ac_preproc_ok=false
4225for ac_c_preproc_warn_flag in '' yes
4226do
4227 # Use a header file that comes with gcc, so configuring glibc
4228 # with a fresh cross-compiler works.
4229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4230 # <limits.h> exists even on freestanding compilers.
4231 # On the NeXT, cc -E runs the code through the compiler's parser,
4232 # not just through cpp. "Syntax error" is here to catch this case.
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234/* end confdefs.h. */
4235#ifdef __STDC__
4236# include <limits.h>
4237#else
4238# include <assert.h>
4239#endif
4240 Syntax error
4241_ACEOF
4242if ac_fn_c_try_cpp "$LINENO"; then :
4243
4244else
4245 # Broken: fails on valid input.
4246continue
4247fi
4248rm -f conftest.err conftest.i conftest.$ac_ext
4249
4250 # OK, works on sane cases. Now check whether nonexistent headers
4251 # can be detected and how.
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253/* end confdefs.h. */
4254#include <ac_nonexistent.h>
4255_ACEOF
4256if ac_fn_c_try_cpp "$LINENO"; then :
4257 # Broken: success on invalid input.
4258continue
4259else
4260 # Passes both tests.
4261ac_preproc_ok=:
4262break
4263fi
4264rm -f conftest.err conftest.i conftest.$ac_ext
4265
4266done
4267# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4268rm -f conftest.i conftest.err conftest.$ac_ext
4269if $ac_preproc_ok; then :
4270 break
4271fi
4272
4273 done
4274 ac_cv_prog_CPP=$CPP
4275
4276fi
4277 CPP=$ac_cv_prog_CPP
4278else
4279 ac_cv_prog_CPP=$CPP
4280fi
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4282$as_echo "$CPP" >&6; }
4283ac_preproc_ok=false
4284for ac_c_preproc_warn_flag in '' yes
4285do
4286 # Use a header file that comes with gcc, so configuring glibc
4287 # with a fresh cross-compiler works.
4288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4289 # <limits.h> exists even on freestanding compilers.
4290 # On the NeXT, cc -E runs the code through the compiler's parser,
4291 # not just through cpp. "Syntax error" is here to catch this case.
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293/* end confdefs.h. */
4294#ifdef __STDC__
4295# include <limits.h>
4296#else
4297# include <assert.h>
4298#endif
4299 Syntax error
4300_ACEOF
4301if ac_fn_c_try_cpp "$LINENO"; then :
4302
4303else
4304 # Broken: fails on valid input.
4305continue
4306fi
4307rm -f conftest.err conftest.i conftest.$ac_ext
4308
4309 # OK, works on sane cases. Now check whether nonexistent headers
4310 # can be detected and how.
4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312/* end confdefs.h. */
4313#include <ac_nonexistent.h>
4314_ACEOF
4315if ac_fn_c_try_cpp "$LINENO"; then :
4316 # Broken: success on invalid input.
4317continue
4318else
4319 # Passes both tests.
4320ac_preproc_ok=:
4321break
4322fi
4323rm -f conftest.err conftest.i conftest.$ac_ext
4324
4325done
4326# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4327rm -f conftest.i conftest.err conftest.$ac_ext
4328if $ac_preproc_ok; then :
4329
4330else
4331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4333as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4334See \`config.log' for more details" "$LINENO" 5; }
4335fi
4336
4337ac_ext=c
4338ac_cpp='$CPP $CPPFLAGS'
4339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342
4343
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4345$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4346if ${ac_cv_path_GREP+:} false; then :
4347 $as_echo_n "(cached) " >&6
4348else
4349 if test -z "$GREP"; then
4350 ac_path_GREP_found=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4354do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_prog in grep ggrep; do
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4360 as_fn_executable_p "$ac_path_GREP" || continue
4361# Check for GNU ac_path_GREP and select it if it is found.
4362 # Check for GNU $ac_path_GREP
4363case `"$ac_path_GREP" --version 2>&1` in
4364*GNU*)
4365 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4366*)
4367 ac_count=0
4368 $as_echo_n 0123456789 >"conftest.in"
4369 while :
4370 do
4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
4372 mv "conftest.tmp" "conftest.in"
4373 cp "conftest.in" "conftest.nl"
4374 $as_echo 'GREP' >> "conftest.nl"
4375 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4377 as_fn_arith $ac_count + 1 && ac_count=$as_val
4378 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4379 # Best one so far, save it but keep looking for a better one
4380 ac_cv_path_GREP="$ac_path_GREP"
4381 ac_path_GREP_max=$ac_count
4382 fi
4383 # 10*(2^10) chars as input seems more than enough
4384 test $ac_count -gt 10 && break
4385 done
4386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4387esac
4388
4389 $ac_path_GREP_found && break 3
4390 done
4391 done
4392 done
4393IFS=$as_save_IFS
4394 if test -z "$ac_cv_path_GREP"; then
4395 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4396 fi
4397else
4398 ac_cv_path_GREP=$GREP
4399fi
4400
4401fi
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4403$as_echo "$ac_cv_path_GREP" >&6; }
4404 GREP="$ac_cv_path_GREP"
4405
4406
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4408$as_echo_n "checking for egrep... " >&6; }
4409if ${ac_cv_path_EGREP+:} false; then :
4410 $as_echo_n "(cached) " >&6
4411else
4412 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4413 then ac_cv_path_EGREP="$GREP -E"
4414 else
4415 if test -z "$EGREP"; then
4416 ac_path_EGREP_found=false
4417 # Loop through the user's path and test for each of PROGNAME-LIST
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4420do
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_prog in egrep; do
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4426 as_fn_executable_p "$ac_path_EGREP" || continue
4427# Check for GNU ac_path_EGREP and select it if it is found.
4428 # Check for GNU $ac_path_EGREP
4429case `"$ac_path_EGREP" --version 2>&1` in
4430*GNU*)
4431 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4432*)
4433 ac_count=0
4434 $as_echo_n 0123456789 >"conftest.in"
4435 while :
4436 do
4437 cat "conftest.in" "conftest.in" >"conftest.tmp"
4438 mv "conftest.tmp" "conftest.in"
4439 cp "conftest.in" "conftest.nl"
4440 $as_echo 'EGREP' >> "conftest.nl"
4441 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4443 as_fn_arith $ac_count + 1 && ac_count=$as_val
4444 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4445 # Best one so far, save it but keep looking for a better one
4446 ac_cv_path_EGREP="$ac_path_EGREP"
4447 ac_path_EGREP_max=$ac_count
4448 fi
4449 # 10*(2^10) chars as input seems more than enough
4450 test $ac_count -gt 10 && break
4451 done
4452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4453esac
4454
4455 $ac_path_EGREP_found && break 3
4456 done
4457 done
4458 done
4459IFS=$as_save_IFS
4460 if test -z "$ac_cv_path_EGREP"; then
4461 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4462 fi
4463else
4464 ac_cv_path_EGREP=$EGREP
4465fi
4466
4467 fi
4468fi
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4470$as_echo "$ac_cv_path_EGREP" >&6; }
4471 EGREP="$ac_cv_path_EGREP"
4472
4473
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4475$as_echo_n "checking for ANSI C header files... " >&6; }
4476if ${ac_cv_header_stdc+:} false; then :
4477 $as_echo_n "(cached) " >&6
4478else
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480/* end confdefs.h. */
4481#include <stdlib.h>
4482#include <stdarg.h>
4483#include <string.h>
4484#include <float.h>
4485
4486int
4487main ()
4488{
4489
4490 ;
4491 return 0;
4492}
4493_ACEOF
4494if ac_fn_c_try_compile "$LINENO"; then :
4495 ac_cv_header_stdc=yes
4496else
4497 ac_cv_header_stdc=no
4498fi
4499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500
4501if test $ac_cv_header_stdc = yes; then
4502 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504/* end confdefs.h. */
4505#include <string.h>
4506
4507_ACEOF
4508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4509 $EGREP "memchr" >/dev/null 2>&1; then :
4510
4511else
4512 ac_cv_header_stdc=no
4513fi
4514rm -f conftest*
4515
4516fi
4517
4518if test $ac_cv_header_stdc = yes; then
4519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521/* end confdefs.h. */
4522#include <stdlib.h>
4523
4524_ACEOF
4525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4526 $EGREP "free" >/dev/null 2>&1; then :
4527
4528else
4529 ac_cv_header_stdc=no
4530fi
4531rm -f conftest*
4532
4533fi
4534
4535if test $ac_cv_header_stdc = yes; then
4536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4537 if test "$cross_compiling" = yes; then :
4538 :
4539else
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541/* end confdefs.h. */
4542#include <ctype.h>
4543#include <stdlib.h>
4544#if ((' ' & 0x0FF) == 0x020)
4545# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4546# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4547#else
4548# define ISLOWER(c) \
4549 (('a' <= (c) && (c) <= 'i') \
4550 || ('j' <= (c) && (c) <= 'r') \
4551 || ('s' <= (c) && (c) <= 'z'))
4552# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4553#endif
4554
4555#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4556int
4557main ()
4558{
4559 int i;
4560 for (i = 0; i < 256; i++)
4561 if (XOR (islower (i), ISLOWER (i))
4562 || toupper (i) != TOUPPER (i))
4563 return 2;
4564 return 0;
4565}
4566_ACEOF
4567if ac_fn_c_try_run "$LINENO"; then :
4568
4569else
4570 ac_cv_header_stdc=no
4571fi
4572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4573 conftest.$ac_objext conftest.beam conftest.$ac_ext
4574fi
4575
4576fi
4577fi
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4579$as_echo "$ac_cv_header_stdc" >&6; }
4580if test $ac_cv_header_stdc = yes; then
4581
4582$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4583
4584fi
4585
4586# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4587for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4588 inttypes.h stdint.h unistd.h
4589do :
4590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4591ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4592"
4593if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4594 cat >>confdefs.h <<_ACEOF
4595#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4596_ACEOF
4597
4598fi
4599
4600done
4601
4602
4603
4604 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4605if test "x$ac_cv_header_minix_config_h" = xyes; then :
4606 MINIX=yes
4607else
4608 MINIX=
4609fi
4610
4611
4612 if test "$MINIX" = yes; then
4613
4614$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4615
4616
4617$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4618
4619
4620$as_echo "#define _MINIX 1" >>confdefs.h
4621
4622 fi
4623
4624
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4626$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4627if ${ac_cv_safe_to_define___extensions__+:} false; then :
4628 $as_echo_n "(cached) " >&6
4629else
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631/* end confdefs.h. */
4632
4633# define __EXTENSIONS__ 1
4634 $ac_includes_default
4635int
4636main ()
4637{
4638
4639 ;
4640 return 0;
4641}
4642_ACEOF
4643if ac_fn_c_try_compile "$LINENO"; then :
4644 ac_cv_safe_to_define___extensions__=yes
4645else
4646 ac_cv_safe_to_define___extensions__=no
4647fi
4648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649fi
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4651$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4652 test $ac_cv_safe_to_define___extensions__ = yes &&
4653 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4654
4655 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4656
4657 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4658
4659 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4660
4661 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4662
4663
4664ac_ext=c
4665ac_cpp='$CPP $CPPFLAGS'
4666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4668ac_compiler_gnu=$ac_cv_c_compiler_gnu
4669if test -n "$ac_tool_prefix"; then
4670 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4671set dummy ${ac_tool_prefix}gcc; ac_word=$2
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673$as_echo_n "checking for $ac_word... " >&6; }
4674if ${ac_cv_prog_CC+:} false; then :
4675 $as_echo_n "(cached) " >&6
4676else
4677 if test -n "$CC"; then
4678 ac_cv_prog_CC="$CC" # Let the user override the test.
4679else
4680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681for as_dir in $PATH
4682do
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4687 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 break 2
4690 fi
4691done
4692 done
4693IFS=$as_save_IFS
4694
4695fi
4696fi
4697CC=$ac_cv_prog_CC
4698if test -n "$CC"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4700$as_echo "$CC" >&6; }
4701else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703$as_echo "no" >&6; }
4704fi
4705
4706
4707fi
4708if test -z "$ac_cv_prog_CC"; then
4709 ac_ct_CC=$CC
4710 # Extract the first word of "gcc", so it can be a program name with args.
4711set dummy gcc; ac_word=$2
4712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713$as_echo_n "checking for $ac_word... " >&6; }
4714if ${ac_cv_prog_ac_ct_CC+:} false; then :
4715 $as_echo_n "(cached) " >&6
4716else
4717 if test -n "$ac_ct_CC"; then
4718 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4719else
4720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721for as_dir in $PATH
4722do
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4727 ac_cv_prog_ac_ct_CC="gcc"
4728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 break 2
4730 fi
4731done
4732 done
4733IFS=$as_save_IFS
4734
4735fi
4736fi
4737ac_ct_CC=$ac_cv_prog_ac_ct_CC
4738if test -n "$ac_ct_CC"; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4740$as_echo "$ac_ct_CC" >&6; }
4741else
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743$as_echo "no" >&6; }
4744fi
4745
4746 if test "x$ac_ct_CC" = x; then
4747 CC=""
4748 else
4749 case $cross_compiling:$ac_tool_warned in
4750yes:)
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4753ac_tool_warned=yes ;;
4754esac
4755 CC=$ac_ct_CC
4756 fi
4757else
4758 CC="$ac_cv_prog_CC"
4759fi
4760
4761if test -z "$CC"; then
4762 if test -n "$ac_tool_prefix"; then
4763 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4764set dummy ${ac_tool_prefix}cc; ac_word=$2
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766$as_echo_n "checking for $ac_word... " >&6; }
4767if ${ac_cv_prog_CC+:} false; then :
4768 $as_echo_n "(cached) " >&6
4769else
4770 if test -n "$CC"; then
4771 ac_cv_prog_CC="$CC" # Let the user override the test.
4772else
4773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774for as_dir in $PATH
4775do
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4780 ac_cv_prog_CC="${ac_tool_prefix}cc"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4783 fi
4784done
4785 done
4786IFS=$as_save_IFS
4787
4788fi
4789fi
4790CC=$ac_cv_prog_CC
4791if test -n "$CC"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4793$as_echo "$CC" >&6; }
4794else
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796$as_echo "no" >&6; }
4797fi
4798
4799
4800 fi
4801fi
4802if test -z "$CC"; then
4803 # Extract the first word of "cc", so it can be a program name with args.
4804set dummy cc; ac_word=$2
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806$as_echo_n "checking for $ac_word... " >&6; }
4807if ${ac_cv_prog_CC+:} false; then :
4808 $as_echo_n "(cached) " >&6
4809else
4810 if test -n "$CC"; then
4811 ac_cv_prog_CC="$CC" # Let the user override the test.
4812else
4813 ac_prog_rejected=no
4814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815for as_dir in $PATH
4816do
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4822 ac_prog_rejected=yes
4823 continue
4824 fi
4825 ac_cv_prog_CC="cc"
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4828 fi
4829done
4830 done
4831IFS=$as_save_IFS
4832
4833if test $ac_prog_rejected = yes; then
4834 # We found a bogon in the path, so make sure we never use it.
4835 set dummy $ac_cv_prog_CC
4836 shift
4837 if test $# != 0; then
4838 # We chose a different compiler from the bogus one.
4839 # However, it has the same basename, so the bogon will be chosen
4840 # first if we set CC to just the basename; use the full file name.
4841 shift
4842 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4843 fi
4844fi
4845fi
4846fi
4847CC=$ac_cv_prog_CC
4848if test -n "$CC"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4850$as_echo "$CC" >&6; }
4851else
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853$as_echo "no" >&6; }
4854fi
4855
4856
4857fi
4858if test -z "$CC"; then
4859 if test -n "$ac_tool_prefix"; then
4860 for ac_prog in cl.exe
4861 do
4862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4863set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865$as_echo_n "checking for $ac_word... " >&6; }
4866if ${ac_cv_prog_CC+:} false; then :
4867 $as_echo_n "(cached) " >&6
4868else
4869 if test -n "$CC"; then
4870 ac_cv_prog_CC="$CC" # Let the user override the test.
4871else
4872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873for as_dir in $PATH
4874do
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4879 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 break 2
4882 fi
4883done
4884 done
4885IFS=$as_save_IFS
4886
4887fi
4888fi
4889CC=$ac_cv_prog_CC
4890if test -n "$CC"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4892$as_echo "$CC" >&6; }
4893else
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895$as_echo "no" >&6; }
4896fi
4897
4898
4899 test -n "$CC" && break
4900 done
4901fi
4902if test -z "$CC"; then
4903 ac_ct_CC=$CC
4904 for ac_prog in cl.exe
4905do
4906 # Extract the first word of "$ac_prog", so it can be a program name with args.
4907set dummy $ac_prog; ac_word=$2
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909$as_echo_n "checking for $ac_word... " >&6; }
4910if ${ac_cv_prog_ac_ct_CC+:} false; then :
4911 $as_echo_n "(cached) " >&6
4912else
4913 if test -n "$ac_ct_CC"; then
4914 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4915else
4916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917for as_dir in $PATH
4918do
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4923 ac_cv_prog_ac_ct_CC="$ac_prog"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 break 2
4926 fi
4927done
4928 done
4929IFS=$as_save_IFS
4930
4931fi
4932fi
4933ac_ct_CC=$ac_cv_prog_ac_ct_CC
4934if test -n "$ac_ct_CC"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4936$as_echo "$ac_ct_CC" >&6; }
4937else
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939$as_echo "no" >&6; }
4940fi
4941
4942
4943 test -n "$ac_ct_CC" && break
4944done
4945
4946 if test "x$ac_ct_CC" = x; then
4947 CC=""
4948 else
4949 case $cross_compiling:$ac_tool_warned in
4950yes:)
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4953ac_tool_warned=yes ;;
4954esac
4955 CC=$ac_ct_CC
4956 fi
4957fi
4958
4959fi
4960
4961
4962test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4963$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4964as_fn_error $? "no acceptable C compiler found in \$PATH
4965See \`config.log' for more details" "$LINENO" 5; }
4966
4967# Provide some information about the compiler.
4968$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4969set X $ac_compile
4970ac_compiler=$2
4971for ac_option in --version -v -V -qversion; do
4972 { { ac_try="$ac_compiler $ac_option >&5"
4973case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4976esac
4977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4978$as_echo "$ac_try_echo"; } >&5
4979 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4980 ac_status=$?
4981 if test -s conftest.err; then
4982 sed '10a\
4983... rest of stderr output deleted ...
4984 10q' conftest.err >conftest.er1
4985 cat conftest.er1 >&5
4986 fi
4987 rm -f conftest.er1 conftest.err
4988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4989 test $ac_status = 0; }
4990done
4991
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4993$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4994if ${ac_cv_c_compiler_gnu+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996else
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998/* end confdefs.h. */
4999
5000int
5001main ()
5002{
5003#ifndef __GNUC__
5004 choke me
5005#endif
5006
5007 ;
5008 return 0;
5009}
5010_ACEOF
5011if ac_fn_c_try_compile "$LINENO"; then :
5012 ac_compiler_gnu=yes
5013else
5014 ac_compiler_gnu=no
5015fi
5016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017ac_cv_c_compiler_gnu=$ac_compiler_gnu
5018
5019fi
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5021$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5022if test $ac_compiler_gnu = yes; then
5023 GCC=yes
5024else
5025 GCC=
5026fi
5027ac_test_CFLAGS=${CFLAGS+set}
5028ac_save_CFLAGS=$CFLAGS
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5030$as_echo_n "checking whether $CC accepts -g... " >&6; }
5031if ${ac_cv_prog_cc_g+:} false; then :
5032 $as_echo_n "(cached) " >&6
5033else
5034 ac_save_c_werror_flag=$ac_c_werror_flag
5035 ac_c_werror_flag=yes
5036 ac_cv_prog_cc_g=no
5037 CFLAGS="-g"
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039/* end confdefs.h. */
5040
5041int
5042main ()
5043{
5044
5045 ;
5046 return 0;
5047}
5048_ACEOF
5049if ac_fn_c_try_compile "$LINENO"; then :
5050 ac_cv_prog_cc_g=yes
5051else
5052 CFLAGS=""
5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054/* end confdefs.h. */
5055
5056int
5057main ()
5058{
5059
5060 ;
5061 return 0;
5062}
5063_ACEOF
5064if ac_fn_c_try_compile "$LINENO"; then :
5065
5066else
5067 ac_c_werror_flag=$ac_save_c_werror_flag
5068 CFLAGS="-g"
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070/* end confdefs.h. */
5071
5072int
5073main ()
5074{
5075
5076 ;
5077 return 0;
5078}
5079_ACEOF
5080if ac_fn_c_try_compile "$LINENO"; then :
5081 ac_cv_prog_cc_g=yes
5082fi
5083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5084fi
5085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086fi
5087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 ac_c_werror_flag=$ac_save_c_werror_flag
5089fi
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5091$as_echo "$ac_cv_prog_cc_g" >&6; }
5092if test "$ac_test_CFLAGS" = set; then
5093 CFLAGS=$ac_save_CFLAGS
5094elif test $ac_cv_prog_cc_g = yes; then
5095 if test "$GCC" = yes; then
5096 CFLAGS="-g -O2"
5097 else
5098 CFLAGS="-g"
5099 fi
5100else
5101 if test "$GCC" = yes; then
5102 CFLAGS="-O2"
5103 else
5104 CFLAGS=
5105 fi
5106fi
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5108$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5109if ${ac_cv_prog_cc_c89+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111else
5112 ac_cv_prog_cc_c89=no
5113ac_save_CC=$CC
5114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115/* end confdefs.h. */
5116#include <stdarg.h>
5117#include <stdio.h>
5118struct stat;
5119/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5120struct buf { int x; };
5121FILE * (*rcsopen) (struct buf *, struct stat *, int);
5122static char *e (p, i)
5123 char **p;
5124 int i;
5125{
5126 return p[i];
5127}
5128static char *f (char * (*g) (char **, int), char **p, ...)
5129{
5130 char *s;
5131 va_list v;
5132 va_start (v,p);
5133 s = g (p, va_arg (v,int));
5134 va_end (v);
5135 return s;
5136}
5137
5138/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5139 function prototypes and stuff, but not '\xHH' hex character constants.
5140 These don't provoke an error unfortunately, instead are silently treated
5141 as 'x'. The following induces an error, until -std is added to get
5142 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5143 array size at least. It's necessary to write '\x00'==0 to get something
5144 that's true only with -std. */
5145int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5146
5147/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5148 inside strings and character constants. */
5149#define FOO(x) 'x'
5150int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5151
5152int test (int i, double x);
5153struct s1 {int (*f) (int a);};
5154struct s2 {int (*f) (double a);};
5155int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5156int argc;
5157char **argv;
5158int
5159main ()
5160{
5161return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5162 ;
5163 return 0;
5164}
5165_ACEOF
5166for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5167 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5168do
5169 CC="$ac_save_CC $ac_arg"
5170 if ac_fn_c_try_compile "$LINENO"; then :
5171 ac_cv_prog_cc_c89=$ac_arg
5172fi
5173rm -f core conftest.err conftest.$ac_objext
5174 test "x$ac_cv_prog_cc_c89" != "xno" && break
5175done
5176rm -f conftest.$ac_ext
5177CC=$ac_save_CC
5178
5179fi
5180# AC_CACHE_VAL
5181case "x$ac_cv_prog_cc_c89" in
5182 x)
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5184$as_echo "none needed" >&6; } ;;
5185 xno)
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5187$as_echo "unsupported" >&6; } ;;
5188 *)
5189 CC="$CC $ac_cv_prog_cc_c89"
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5191$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5192esac
5193if test "x$ac_cv_prog_cc_c89" != xno; then :
5194
5195fi
5196
5197ac_ext=c
5198ac_cpp='$CPP $CPPFLAGS'
5199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201ac_compiler_gnu=$ac_cv_c_compiler_gnu
5202
5203ac_ext=c
5204ac_cpp='$CPP $CPPFLAGS'
5205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207ac_compiler_gnu=$ac_cv_c_compiler_gnu
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5209$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5210if ${am_cv_prog_cc_c_o+:} false; then :
5211 $as_echo_n "(cached) " >&6
5212else
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214/* end confdefs.h. */
5215
5216int
5217main ()
5218{
5219
5220 ;
5221 return 0;
5222}
5223_ACEOF
5224 # Make sure it works both with $CC and with simple cc.
5225 # Following AC_PROG_CC_C_O, we do the test twice because some
5226 # compilers refuse to overwrite an existing .o file with -o,
5227 # though they will create one.
5228 am_cv_prog_cc_c_o=yes
5229 for am_i in 1 2; do
5230 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5231 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } \
5235 && test -f conftest2.$ac_objext; then
5236 : OK
5237 else
5238 am_cv_prog_cc_c_o=no
5239 break
5240 fi
5241 done
5242 rm -f core conftest*
5243 unset am_i
5244fi
5245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5246$as_echo "$am_cv_prog_cc_c_o" >&6; }
5247if test "$am_cv_prog_cc_c_o" != yes; then
5248 # Losing compiler, so override with the script.
5249 # FIXME: It is wrong to rewrite CC.
5250 # But if we don't then we get into trouble of one sort or another.
5251 # A longer-term fix would be to have automake use am__CC in this case,
5252 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5253 CC="$am_aux_dir/compile $CC"
5254fi
5255ac_ext=c
5256ac_cpp='$CPP $CPPFLAGS'
5257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259ac_compiler_gnu=$ac_cv_c_compiler_gnu
5260
5261
5262depcc="$CC" am_compiler_list=
5263
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5265$as_echo_n "checking dependency style of $depcc... " >&6; }
5266if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268else
5269 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5270 # We make a subdir and do the tests there. Otherwise we can end up
5271 # making bogus files that we don't know about and never remove. For
5272 # instance it was reported that on HP-UX the gcc test will end up
5273 # making a dummy file named 'D' -- because '-MD' means "put the output
5274 # in D".
5275 rm -rf conftest.dir
5276 mkdir conftest.dir
5277 # Copy depcomp to subdir because otherwise we won't find it if we're
5278 # using a relative directory.
5279 cp "$am_depcomp" conftest.dir
5280 cd conftest.dir
5281 # We will build objects and dependencies in a subdirectory because
5282 # it helps to detect inapplicable dependency modes. For instance
5283 # both Tru64's cc and ICC support -MD to output dependencies as a
5284 # side effect of compilation, but ICC will put the dependencies in
5285 # the current directory while Tru64 will put them in the object
5286 # directory.
5287 mkdir sub
5288
5289 am_cv_CC_dependencies_compiler_type=none
5290 if test "$am_compiler_list" = ""; then
5291 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5292 fi
5293 am__universal=false
5294 case " $depcc " in #(
5295 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5296 esac
5297
5298 for depmode in $am_compiler_list; do
5299 # Setup a source with many dependencies, because some compilers
5300 # like to wrap large dependency lists on column 80 (with \), and
5301 # we should not choose a depcomp mode which is confused by this.
5302 #
5303 # We need to recreate these files for each test, as the compiler may
5304 # overwrite some of them when testing with obscure command lines.
5305 # This happens at least with the AIX C compiler.
5306 : > sub/conftest.c
5307 for i in 1 2 3 4 5 6; do
5308 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5309 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5310 # Solaris 10 /bin/sh.
5311 echo '/* dummy */' > sub/conftst$i.h
5312 done
5313 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5314
5315 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5316 # mode. It turns out that the SunPro C++ compiler does not properly
5317 # handle '-M -o', and we need to detect this. Also, some Intel
5318 # versions had trouble with output in subdirs.
5319 am__obj=sub/conftest.${OBJEXT-o}
5320 am__minus_obj="-o $am__obj"
5321 case $depmode in
5322 gcc)
5323 # This depmode causes a compiler race in universal mode.
5324 test "$am__universal" = false || continue
5325 ;;
5326 nosideeffect)
5327 # After this tag, mechanisms are not by side-effect, so they'll
5328 # only be used when explicitly requested.
5329 if test "x$enable_dependency_tracking" = xyes; then
5330 continue
5331 else
5332 break
5333 fi
5334 ;;
5335 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5336 # This compiler won't grok '-c -o', but also, the minuso test has
5337 # not run yet. These depmodes are late enough in the game, and
5338 # so weak that their functioning should not be impacted.
5339 am__obj=conftest.${OBJEXT-o}
5340 am__minus_obj=
5341 ;;
5342 none) break ;;
5343 esac
5344 if depmode=$depmode \
5345 source=sub/conftest.c object=$am__obj \
5346 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5347 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5348 >/dev/null 2>conftest.err &&
5349 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5350 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5351 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5352 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5353 # icc doesn't choke on unknown options, it will just issue warnings
5354 # or remarks (even with -Werror). So we grep stderr for any message
5355 # that says an option was ignored or not supported.
5356 # When given -MP, icc 7.0 and 7.1 complain thusly:
5357 # icc: Command line warning: ignoring option '-M'; no argument required
5358 # The diagnosis changed in icc 8.0:
5359 # icc: Command line remark: option '-MP' not supported
5360 if (grep 'ignoring option' conftest.err ||
5361 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5362 am_cv_CC_dependencies_compiler_type=$depmode
5363 break
5364 fi
5365 fi
5366 done
5367
5368 cd ..
5369 rm -rf conftest.dir
5370else
5371 am_cv_CC_dependencies_compiler_type=none
5372fi
5373
5374fi
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5376$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5377CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5378
5379 if
5380 test "x$enable_dependency_tracking" != xno \
5381 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5382 am__fastdepCC_TRUE=
5383 am__fastdepCC_FALSE='#'
5384else
5385 am__fastdepCC_TRUE='#'
5386 am__fastdepCC_FALSE=
5387fi
5388
5389
5390ac_ext=cpp
5391ac_cpp='$CXXCPP $CPPFLAGS'
5392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5395if test -z "$CXX"; then
5396 if test -n "$CCC"; then
5397 CXX=$CCC
5398 else
5399 if test -n "$ac_tool_prefix"; then
5400 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5401 do
5402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5403set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405$as_echo_n "checking for $ac_word... " >&6; }
5406if ${ac_cv_prog_CXX+:} false; then :
5407 $as_echo_n "(cached) " >&6
5408else
5409 if test -n "$CXX"; then
5410 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5411else
5412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413for as_dir in $PATH
5414do
5415 IFS=$as_save_IFS
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 break 2
5422 fi
5423done
5424 done
5425IFS=$as_save_IFS
5426
5427fi
5428fi
5429CXX=$ac_cv_prog_CXX
5430if test -n "$CXX"; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5432$as_echo "$CXX" >&6; }
5433else
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435$as_echo "no" >&6; }
5436fi
5437
5438
5439 test -n "$CXX" && break
5440 done
5441fi
5442if test -z "$CXX"; then
5443 ac_ct_CXX=$CXX
5444 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5445do
5446 # Extract the first word of "$ac_prog", so it can be a program name with args.
5447set dummy $ac_prog; ac_word=$2
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449$as_echo_n "checking for $ac_word... " >&6; }
5450if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5451 $as_echo_n "(cached) " >&6
5452else
5453 if test -n "$ac_ct_CXX"; then
5454 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5455else
5456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457for as_dir in $PATH
5458do
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463 ac_cv_prog_ac_ct_CXX="$ac_prog"
5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 break 2
5466 fi
5467done
5468 done
5469IFS=$as_save_IFS
5470
5471fi
5472fi
5473ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5474if test -n "$ac_ct_CXX"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5476$as_echo "$ac_ct_CXX" >&6; }
5477else
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479$as_echo "no" >&6; }
5480fi
5481
5482
5483 test -n "$ac_ct_CXX" && break
5484done
5485
5486 if test "x$ac_ct_CXX" = x; then
5487 CXX="g++"
5488 else
5489 case $cross_compiling:$ac_tool_warned in
5490yes:)
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5493ac_tool_warned=yes ;;
5494esac
5495 CXX=$ac_ct_CXX
5496 fi
5497fi
5498
5499 fi
5500fi
5501# Provide some information about the compiler.
5502$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5503set X $ac_compile
5504ac_compiler=$2
5505for ac_option in --version -v -V -qversion; do
5506 { { ac_try="$ac_compiler $ac_option >&5"
5507case "(($ac_try" in
5508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509 *) ac_try_echo=$ac_try;;
5510esac
5511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5512$as_echo "$ac_try_echo"; } >&5
5513 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5514 ac_status=$?
5515 if test -s conftest.err; then
5516 sed '10a\
5517... rest of stderr output deleted ...
5518 10q' conftest.err >conftest.er1
5519 cat conftest.er1 >&5
5520 fi
5521 rm -f conftest.er1 conftest.err
5522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5523 test $ac_status = 0; }
5524done
5525
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5527$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5528if ${ac_cv_cxx_compiler_gnu+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530else
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532/* end confdefs.h. */
5533
5534int
5535main ()
5536{
5537#ifndef __GNUC__
5538 choke me
5539#endif
5540
5541 ;
5542 return 0;
5543}
5544_ACEOF
5545if ac_fn_cxx_try_compile "$LINENO"; then :
5546 ac_compiler_gnu=yes
5547else
5548 ac_compiler_gnu=no
5549fi
5550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5552
5553fi
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5555$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5556if test $ac_compiler_gnu = yes; then
5557 GXX=yes
5558else
5559 GXX=
5560fi
5561ac_test_CXXFLAGS=${CXXFLAGS+set}
5562ac_save_CXXFLAGS=$CXXFLAGS
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5564$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5565if ${ac_cv_prog_cxx_g+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567else
5568 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5569 ac_cxx_werror_flag=yes
5570 ac_cv_prog_cxx_g=no
5571 CXXFLAGS="-g"
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573/* end confdefs.h. */
5574
5575int
5576main ()
5577{
5578
5579 ;
5580 return 0;
5581}
5582_ACEOF
5583if ac_fn_cxx_try_compile "$LINENO"; then :
5584 ac_cv_prog_cxx_g=yes
5585else
5586 CXXFLAGS=""
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588/* end confdefs.h. */
5589
5590int
5591main ()
5592{
5593
5594 ;
5595 return 0;
5596}
5597_ACEOF
5598if ac_fn_cxx_try_compile "$LINENO"; then :
5599
5600else
5601 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5602 CXXFLAGS="-g"
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604/* end confdefs.h. */
5605
5606int
5607main ()
5608{
5609
5610 ;
5611 return 0;
5612}
5613_ACEOF
5614if ac_fn_cxx_try_compile "$LINENO"; then :
5615 ac_cv_prog_cxx_g=yes
5616fi
5617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5618fi
5619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620fi
5621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5623fi
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5625$as_echo "$ac_cv_prog_cxx_g" >&6; }
5626if test "$ac_test_CXXFLAGS" = set; then
5627 CXXFLAGS=$ac_save_CXXFLAGS
5628elif test $ac_cv_prog_cxx_g = yes; then
5629 if test "$GXX" = yes; then
5630 CXXFLAGS="-g -O2"
5631 else
5632 CXXFLAGS="-g"
5633 fi
5634else
5635 if test "$GXX" = yes; then
5636 CXXFLAGS="-O2"
5637 else
5638 CXXFLAGS=
5639 fi
5640fi
5641ac_ext=c
5642ac_cpp='$CPP $CPPFLAGS'
5643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645ac_compiler_gnu=$ac_cv_c_compiler_gnu
5646
5647depcc="$CXX" am_compiler_list=
5648
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5650$as_echo_n "checking dependency style of $depcc... " >&6; }
5651if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5652 $as_echo_n "(cached) " >&6
5653else
5654 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5655 # We make a subdir and do the tests there. Otherwise we can end up
5656 # making bogus files that we don't know about and never remove. For
5657 # instance it was reported that on HP-UX the gcc test will end up
5658 # making a dummy file named 'D' -- because '-MD' means "put the output
5659 # in D".
5660 rm -rf conftest.dir
5661 mkdir conftest.dir
5662 # Copy depcomp to subdir because otherwise we won't find it if we're
5663 # using a relative directory.
5664 cp "$am_depcomp" conftest.dir
5665 cd conftest.dir
5666 # We will build objects and dependencies in a subdirectory because
5667 # it helps to detect inapplicable dependency modes. For instance
5668 # both Tru64's cc and ICC support -MD to output dependencies as a
5669 # side effect of compilation, but ICC will put the dependencies in
5670 # the current directory while Tru64 will put them in the object
5671 # directory.
5672 mkdir sub
5673
5674 am_cv_CXX_dependencies_compiler_type=none
5675 if test "$am_compiler_list" = ""; then
5676 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5677 fi
5678 am__universal=false
5679 case " $depcc " in #(
5680 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5681 esac
5682
5683 for depmode in $am_compiler_list; do
5684 # Setup a source with many dependencies, because some compilers
5685 # like to wrap large dependency lists on column 80 (with \), and
5686 # we should not choose a depcomp mode which is confused by this.
5687 #
5688 # We need to recreate these files for each test, as the compiler may
5689 # overwrite some of them when testing with obscure command lines.
5690 # This happens at least with the AIX C compiler.
5691 : > sub/conftest.c
5692 for i in 1 2 3 4 5 6; do
5693 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5694 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5695 # Solaris 10 /bin/sh.
5696 echo '/* dummy */' > sub/conftst$i.h
5697 done
5698 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5699
5700 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5701 # mode. It turns out that the SunPro C++ compiler does not properly
5702 # handle '-M -o', and we need to detect this. Also, some Intel
5703 # versions had trouble with output in subdirs.
5704 am__obj=sub/conftest.${OBJEXT-o}
5705 am__minus_obj="-o $am__obj"
5706 case $depmode in
5707 gcc)
5708 # This depmode causes a compiler race in universal mode.
5709 test "$am__universal" = false || continue
5710 ;;
5711 nosideeffect)
5712 # After this tag, mechanisms are not by side-effect, so they'll
5713 # only be used when explicitly requested.
5714 if test "x$enable_dependency_tracking" = xyes; then
5715 continue
5716 else
5717 break
5718 fi
5719 ;;
5720 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5721 # This compiler won't grok '-c -o', but also, the minuso test has
5722 # not run yet. These depmodes are late enough in the game, and
5723 # so weak that their functioning should not be impacted.
5724 am__obj=conftest.${OBJEXT-o}
5725 am__minus_obj=
5726 ;;
5727 none) break ;;
5728 esac
5729 if depmode=$depmode \
5730 source=sub/conftest.c object=$am__obj \
5731 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5732 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5733 >/dev/null 2>conftest.err &&
5734 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5735 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5736 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5737 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5738 # icc doesn't choke on unknown options, it will just issue warnings
5739 # or remarks (even with -Werror). So we grep stderr for any message
5740 # that says an option was ignored or not supported.
5741 # When given -MP, icc 7.0 and 7.1 complain thusly:
5742 # icc: Command line warning: ignoring option '-M'; no argument required
5743 # The diagnosis changed in icc 8.0:
5744 # icc: Command line remark: option '-MP' not supported
5745 if (grep 'ignoring option' conftest.err ||
5746 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5747 am_cv_CXX_dependencies_compiler_type=$depmode
5748 break
5749 fi
5750 fi
5751 done
5752
5753 cd ..
5754 rm -rf conftest.dir
5755else
5756 am_cv_CXX_dependencies_compiler_type=none
5757fi
5758
5759fi
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5761$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5762CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5763
5764 if
5765 test "x$enable_dependency_tracking" != xno \
5766 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5767 am__fastdepCXX_TRUE=
5768 am__fastdepCXX_FALSE='#'
5769else
5770 am__fastdepCXX_TRUE='#'
5771 am__fastdepCXX_FALSE=
5772fi
5773
5774
5775
5776if test -n "$ac_tool_prefix"; then
5777 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5778set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5780$as_echo_n "checking for $ac_word... " >&6; }
5781if ${ac_cv_prog_RANLIB+:} false; then :
5782 $as_echo_n "(cached) " >&6
5783else
5784 if test -n "$RANLIB"; then
5785 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5786else
5787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788for as_dir in $PATH
5789do
5790 IFS=$as_save_IFS
5791 test -z "$as_dir" && as_dir=.
5792 for ac_exec_ext in '' $ac_executable_extensions; do
5793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5796 break 2
5797 fi
5798done
5799 done
5800IFS=$as_save_IFS
5801
5802fi
5803fi
5804RANLIB=$ac_cv_prog_RANLIB
5805if test -n "$RANLIB"; then
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5807$as_echo "$RANLIB" >&6; }
5808else
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5810$as_echo "no" >&6; }
5811fi
5812
5813
5814fi
5815if test -z "$ac_cv_prog_RANLIB"; then
5816 ac_ct_RANLIB=$RANLIB
5817 # Extract the first word of "ranlib", so it can be a program name with args.
5818set dummy ranlib; ac_word=$2
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820$as_echo_n "checking for $ac_word... " >&6; }
5821if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5822 $as_echo_n "(cached) " >&6
5823else
5824 if test -n "$ac_ct_RANLIB"; then
5825 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5826else
5827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828for as_dir in $PATH
5829do
5830 IFS=$as_save_IFS
5831 test -z "$as_dir" && as_dir=.
5832 for ac_exec_ext in '' $ac_executable_extensions; do
5833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5834 ac_cv_prog_ac_ct_RANLIB="ranlib"
5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 break 2
5837 fi
5838done
5839 done
5840IFS=$as_save_IFS
5841
5842fi
5843fi
5844ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5845if test -n "$ac_ct_RANLIB"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5847$as_echo "$ac_ct_RANLIB" >&6; }
5848else
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850$as_echo "no" >&6; }
5851fi
5852
5853 if test "x$ac_ct_RANLIB" = x; then
5854 RANLIB=":"
5855 else
5856 case $cross_compiling:$ac_tool_warned in
5857yes:)
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5860ac_tool_warned=yes ;;
5861esac
5862 RANLIB=$ac_ct_RANLIB
5863 fi
5864else
5865 RANLIB="$ac_cv_prog_RANLIB"
5866fi
5867
5868if test -n "$ac_tool_prefix"; then
5869 for ac_prog in ar lib "link -lib"
5870 do
5871 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5872set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874$as_echo_n "checking for $ac_word... " >&6; }
5875if ${ac_cv_prog_AR+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877else
5878 if test -n "$AR"; then
5879 ac_cv_prog_AR="$AR" # Let the user override the test.
5880else
5881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH
5883do
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 break 2
5891 fi
5892done
5893 done
5894IFS=$as_save_IFS
5895
5896fi
5897fi
5898AR=$ac_cv_prog_AR
5899if test -n "$AR"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5901$as_echo "$AR" >&6; }
5902else
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904$as_echo "no" >&6; }
5905fi
5906
5907
5908 test -n "$AR" && break
5909 done
5910fi
5911if test -z "$AR"; then
5912 ac_ct_AR=$AR
5913 for ac_prog in ar lib "link -lib"
5914do
5915 # Extract the first word of "$ac_prog", so it can be a program name with args.
5916set dummy $ac_prog; ac_word=$2
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918$as_echo_n "checking for $ac_word... " >&6; }
5919if ${ac_cv_prog_ac_ct_AR+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921else
5922 if test -n "$ac_ct_AR"; then
5923 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5924else
5925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926for as_dir in $PATH
5927do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_prog_ac_ct_AR="$ac_prog"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936done
5937 done
5938IFS=$as_save_IFS
5939
5940fi
5941fi
5942ac_ct_AR=$ac_cv_prog_ac_ct_AR
5943if test -n "$ac_ct_AR"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5945$as_echo "$ac_ct_AR" >&6; }
5946else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948$as_echo "no" >&6; }
5949fi
5950
5951
5952 test -n "$ac_ct_AR" && break
5953done
5954
5955 if test "x$ac_ct_AR" = x; then
5956 AR="false"
5957 else
5958 case $cross_compiling:$ac_tool_warned in
5959yes:)
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5962ac_tool_warned=yes ;;
5963esac
5964 AR=$ac_ct_AR
5965 fi
5966fi
5967
5968: ${AR=ar}
5969
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5971$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5972if ${am_cv_ar_interface+:} false; then :
5973 $as_echo_n "(cached) " >&6
5974else
5975 ac_ext=c
5976ac_cpp='$CPP $CPPFLAGS'
5977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5979ac_compiler_gnu=$ac_cv_c_compiler_gnu
5980
5981 am_cv_ar_interface=ar
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983/* end confdefs.h. */
5984int some_variable = 0;
5985_ACEOF
5986if ac_fn_c_try_compile "$LINENO"; then :
5987 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5989 (eval $am_ar_try) 2>&5
5990 ac_status=$?
5991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5992 test $ac_status = 0; }
5993 if test "$ac_status" -eq 0; then
5994 am_cv_ar_interface=ar
5995 else
5996 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5998 (eval $am_ar_try) 2>&5
5999 ac_status=$?
6000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6001 test $ac_status = 0; }
6002 if test "$ac_status" -eq 0; then
6003 am_cv_ar_interface=lib
6004 else
6005 am_cv_ar_interface=unknown
6006 fi
6007 fi
6008 rm -f conftest.lib libconftest.a
6009
6010fi
6011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 ac_ext=c
6013ac_cpp='$CPP $CPPFLAGS'
6014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6016ac_compiler_gnu=$ac_cv_c_compiler_gnu
6017
6018fi
6019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6020$as_echo "$am_cv_ar_interface" >&6; }
6021
6022case $am_cv_ar_interface in
6023ar)
6024 ;;
6025lib)
6026 # Microsoft lib, so override with the ar-lib wrapper script.
6027 # FIXME: It is wrong to rewrite AR.
6028 # But if we don't then we get into trouble of one sort or another.
6029 # A longer-term fix would be to have automake use am__AR in this case,
6030 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6031 # similar.
6032 AR="$am_aux_dir/ar-lib $AR"
6033 ;;
6034unknown)
6035 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6036 ;;
6037esac
6038
6039
6040# Check whether --enable-shared was given.
6041if test "${enable_shared+set}" = set; then :
6042 enableval=$enable_shared; p=${PACKAGE-default}
6043 case $enableval in
6044 yes) enable_shared=yes ;;
6045 no) enable_shared=no ;;
6046 *)
6047 enable_shared=no
6048 # Look at the argument we got. We use all the common list separators.
6049 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6050 for pkg in $enableval; do
6051 IFS="$lt_save_ifs"
6052 if test "X$pkg" = "X$p"; then
6053 enable_shared=yes
6054 fi
6055 done
6056 IFS="$lt_save_ifs"
6057 ;;
6058 esac
6059else
6060 enable_shared=no
6061fi
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071case `pwd` in
6072 *\ * | *\ *)
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6074$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6075esac
6076
6077
6078
6079macro_version='2.2.7a'
6080macro_revision='1.3134'
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094ltmain="$ac_aux_dir/ltmain.sh"
6095
bb368aad
VM
6096# Backslashify metacharacters that are still active within
6097# double-quoted strings.
6098sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6099
6100# Same as above, but do not quote variable references.
6101double_quote_subst='s/\(["`\\]\)/\\\1/g'
6102
6103# Sed substitution to delay expansion of an escaped shell variable in a
6104# double_quote_subst'ed string.
6105delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6106
6107# Sed substitution to delay expansion of an escaped single quote.
6108delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6109
6110# Sed substitution to avoid accidental globbing in evaled expressions
6111no_glob_subst='s/\*/\\\*/g'
6112
6113ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6114ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6115ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6116
6117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6118$as_echo_n "checking how to print strings... " >&6; }
6119# Test print first, because it will be a builtin if present.
6120if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6121 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6122 ECHO='print -r --'
6123elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6124 ECHO='printf %s\n'
6125else
6126 # Use this function as a fallback that always works.
6127 func_fallback_echo ()
6128 {
6129 eval 'cat <<_LTECHO_EOF
6130$1
6131_LTECHO_EOF'
6132 }
6133 ECHO='func_fallback_echo'
6134fi
6135
6136# func_echo_all arg...
6137# Invoke $ECHO with all args, space-separated.
6138func_echo_all ()
6139{
6140 $ECHO ""
6141}
6142
6143case "$ECHO" in
6144 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6145$as_echo "printf" >&6; } ;;
6146 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6147$as_echo "print -r" >&6; } ;;
6148 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6149$as_echo "cat" >&6; } ;;
6150esac
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6166$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6167if ${ac_cv_path_SED+:} false; then :
6168 $as_echo_n "(cached) " >&6
6169else
6170 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6171 for ac_i in 1 2 3 4 5 6 7; do
6172 ac_script="$ac_script$as_nl$ac_script"
6173 done
6174 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6175 { ac_script=; unset ac_script;}
6176 if test -z "$SED"; then
6177 ac_path_SED_found=false
6178 # Loop through the user's path and test for each of PROGNAME-LIST
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180for as_dir in $PATH
6181do
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
6184 for ac_prog in sed gsed; do
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6187 as_fn_executable_p "$ac_path_SED" || continue
6188# Check for GNU ac_path_SED and select it if it is found.
6189 # Check for GNU $ac_path_SED
6190case `"$ac_path_SED" --version 2>&1` in
6191*GNU*)
6192 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6193*)
6194 ac_count=0
6195 $as_echo_n 0123456789 >"conftest.in"
6196 while :
6197 do
6198 cat "conftest.in" "conftest.in" >"conftest.tmp"
6199 mv "conftest.tmp" "conftest.in"
6200 cp "conftest.in" "conftest.nl"
6201 $as_echo '' >> "conftest.nl"
6202 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6203 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6204 as_fn_arith $ac_count + 1 && ac_count=$as_val
6205 if test $ac_count -gt ${ac_path_SED_max-0}; then
6206 # Best one so far, save it but keep looking for a better one
6207 ac_cv_path_SED="$ac_path_SED"
6208 ac_path_SED_max=$ac_count
6209 fi
6210 # 10*(2^10) chars as input seems more than enough
6211 test $ac_count -gt 10 && break
6212 done
6213 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6214esac
6215
6216 $ac_path_SED_found && break 3
6217 done
6218 done
6219 done
6220IFS=$as_save_IFS
6221 if test -z "$ac_cv_path_SED"; then
6222 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6223 fi
6224else
6225 ac_cv_path_SED=$SED
6226fi
6227
6228fi
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6230$as_echo "$ac_cv_path_SED" >&6; }
6231 SED="$ac_cv_path_SED"
6232 rm -f conftest.sed
6233
6234test -z "$SED" && SED=sed
6235Xsed="$SED -e 1s/^X//"
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6248$as_echo_n "checking for fgrep... " >&6; }
6249if ${ac_cv_path_FGREP+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251else
6252 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6253 then ac_cv_path_FGREP="$GREP -F"
6254 else
6255 if test -z "$FGREP"; then
6256 ac_path_FGREP_found=false
6257 # Loop through the user's path and test for each of PROGNAME-LIST
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6260do
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
6263 for ac_prog in fgrep; do
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6266 as_fn_executable_p "$ac_path_FGREP" || continue
6267# Check for GNU ac_path_FGREP and select it if it is found.
6268 # Check for GNU $ac_path_FGREP
6269case `"$ac_path_FGREP" --version 2>&1` in
6270*GNU*)
6271 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6272*)
6273 ac_count=0
6274 $as_echo_n 0123456789 >"conftest.in"
6275 while :
6276 do
6277 cat "conftest.in" "conftest.in" >"conftest.tmp"
6278 mv "conftest.tmp" "conftest.in"
6279 cp "conftest.in" "conftest.nl"
6280 $as_echo 'FGREP' >> "conftest.nl"
6281 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6282 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6283 as_fn_arith $ac_count + 1 && ac_count=$as_val
6284 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6285 # Best one so far, save it but keep looking for a better one
6286 ac_cv_path_FGREP="$ac_path_FGREP"
6287 ac_path_FGREP_max=$ac_count
6288 fi
6289 # 10*(2^10) chars as input seems more than enough
6290 test $ac_count -gt 10 && break
6291 done
6292 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6293esac
6294
6295 $ac_path_FGREP_found && break 3
6296 done
6297 done
6298 done
6299IFS=$as_save_IFS
6300 if test -z "$ac_cv_path_FGREP"; then
6301 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6302 fi
6303else
6304 ac_cv_path_FGREP=$FGREP
6305fi
6306
6307 fi
6308fi
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6310$as_echo "$ac_cv_path_FGREP" >&6; }
6311 FGREP="$ac_cv_path_FGREP"
6312
6313
6314test -z "$GREP" && GREP=grep
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334# Check whether --with-gnu-ld was given.
6335if test "${with_gnu_ld+set}" = set; then :
6336 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6337else
6338 with_gnu_ld=no
6339fi
6340
6341ac_prog=ld
6342if test "$GCC" = yes; then
6343 # Check if gcc -print-prog-name=ld gives a path.
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6345$as_echo_n "checking for ld used by $CC... " >&6; }
6346 case $host in
6347 *-*-mingw*)
6348 # gcc leaves a trailing carriage return which upsets mingw
6349 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6350 *)
6351 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6352 esac
6353 case $ac_prog in
6354 # Accept absolute paths.
6355 [\\/]* | ?:[\\/]*)
6356 re_direlt='/[^/][^/]*/\.\./'
6357 # Canonicalize the pathname of ld
6358 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6359 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6360 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6361 done
6362 test -z "$LD" && LD="$ac_prog"
6363 ;;
6364 "")
6365 # If it fails, then pretend we aren't using GCC.
6366 ac_prog=ld
6367 ;;
6368 *)
6369 # If it is relative, then search for the first ld in PATH.
6370 with_gnu_ld=unknown
6371 ;;
6372 esac
6373elif test "$with_gnu_ld" = yes; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6375$as_echo_n "checking for GNU ld... " >&6; }
6376else
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6378$as_echo_n "checking for non-GNU ld... " >&6; }
6379fi
6380if ${lt_cv_path_LD+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382else
6383 if test -z "$LD"; then
6384 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6385 for ac_dir in $PATH; do
6386 IFS="$lt_save_ifs"
6387 test -z "$ac_dir" && ac_dir=.
6388 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6389 lt_cv_path_LD="$ac_dir/$ac_prog"
6390 # Check to see if the program is GNU ld. I'd rather use --version,
6391 # but apparently some variants of GNU ld only accept -v.
6392 # Break only if it was the GNU/non-GNU ld that we prefer.
6393 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6394 *GNU* | *'with BFD'*)
6395 test "$with_gnu_ld" != no && break
6396 ;;
6397 *)
6398 test "$with_gnu_ld" != yes && break
6399 ;;
6400 esac
6401 fi
6402 done
6403 IFS="$lt_save_ifs"
6404else
6405 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6406fi
6407fi
6408
6409LD="$lt_cv_path_LD"
6410if test -n "$LD"; then
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6412$as_echo "$LD" >&6; }
6413else
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415$as_echo "no" >&6; }
6416fi
6417test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6419$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6420if ${lt_cv_prog_gnu_ld+:} false; then :
6421 $as_echo_n "(cached) " >&6
6422else
6423 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6424case `$LD -v 2>&1 </dev/null` in
6425*GNU* | *'with BFD'*)
6426 lt_cv_prog_gnu_ld=yes
6427 ;;
6428*)
6429 lt_cv_prog_gnu_ld=no
6430 ;;
6431esac
6432fi
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6434$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6435with_gnu_ld=$lt_cv_prog_gnu_ld
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6446$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6447if ${lt_cv_path_NM+:} false; then :
6448 $as_echo_n "(cached) " >&6
6449else
6450 if test -n "$NM"; then
6451 # Let the user override the nm to test.
6452 lt_nm_to_check="$NM"
6453 else
6454 lt_nm_to_check="${ac_tool_prefix}nm"
6455 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6456 lt_nm_to_check="$lt_nm_to_check nm"
6457 fi
6458 fi
6459 for lt_tmp_nm in $lt_nm_to_check; do
6460 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6461 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6462 IFS="$lt_save_ifs"
6463 test -z "$ac_dir" && ac_dir=.
6464 case "$lt_tmp_nm" in
6465 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6466 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6467 esac
6468 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6469 # Check to see if the nm accepts a BSD-compat flag.
6470 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6471 # nm: unknown option "B" ignored
6472 case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6473 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6474 break
6475 ;;
6476 *)
6477 case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6478 *$tmp_nm*)
6479 lt_cv_path_NM="$tmp_nm -p"
6480 break
6481 ;;
6482 *)
6483 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6484 continue # so that we can try to find one that supports BSD flags
6485 ;;
6486 esac
6487 ;;
6488 esac
6489 fi
6490 done
6491 IFS="$lt_save_ifs"
6492 done
6493 : ${lt_cv_path_NM=no}
6494fi
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6496$as_echo "$lt_cv_path_NM" >&6; }
6497if test "$lt_cv_path_NM" != "no"; then
6498 NM="$lt_cv_path_NM"
6499else
6500 # Didn't find any BSD compatible name lister, look for dumpbin.
6501 if test -n "$DUMPBIN"; then :
6502 # Let the user override the test.
6503 else
6504 if test -n "$ac_tool_prefix"; then
6505 for ac_prog in dumpbin "link -dump"
6506 do
6507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6508set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510$as_echo_n "checking for $ac_word... " >&6; }
6511if ${ac_cv_prog_DUMPBIN+:} false; then :
6512 $as_echo_n "(cached) " >&6
6513else
6514 if test -n "$DUMPBIN"; then
6515 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6516else
6517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518for as_dir in $PATH
6519do
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 break 2
6527 fi
6528done
6529 done
6530IFS=$as_save_IFS
6531
6532fi
6533fi
6534DUMPBIN=$ac_cv_prog_DUMPBIN
6535if test -n "$DUMPBIN"; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6537$as_echo "$DUMPBIN" >&6; }
6538else
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540$as_echo "no" >&6; }
6541fi
6542
6543
6544 test -n "$DUMPBIN" && break
6545 done
6546fi
6547if test -z "$DUMPBIN"; then
6548 ac_ct_DUMPBIN=$DUMPBIN
6549 for ac_prog in dumpbin "link -dump"
6550do
6551 # Extract the first word of "$ac_prog", so it can be a program name with args.
6552set dummy $ac_prog; ac_word=$2
6553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554$as_echo_n "checking for $ac_word... " >&6; }
6555if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6556 $as_echo_n "(cached) " >&6
6557else
6558 if test -n "$ac_ct_DUMPBIN"; then
6559 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6560else
6561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562for as_dir in $PATH
6563do
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6568 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 break 2
6571 fi
6572done
6573 done
6574IFS=$as_save_IFS
6575
6576fi
6577fi
6578ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6579if test -n "$ac_ct_DUMPBIN"; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6581$as_echo "$ac_ct_DUMPBIN" >&6; }
6582else
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584$as_echo "no" >&6; }
6585fi
6586
6587
6588 test -n "$ac_ct_DUMPBIN" && break
6589done
6590
6591 if test "x$ac_ct_DUMPBIN" = x; then
6592 DUMPBIN=":"
6593 else
6594 case $cross_compiling:$ac_tool_warned in
6595yes:)
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6598ac_tool_warned=yes ;;
6599esac
6600 DUMPBIN=$ac_ct_DUMPBIN
6601 fi
6602fi
6603
6604 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6605 *COFF*)
6606 DUMPBIN="$DUMPBIN -symbols"
6607 ;;
6608 *)
6609 DUMPBIN=:
6610 ;;
6611 esac
6612 fi
6613
6614 if test "$DUMPBIN" != ":"; then
6615 NM="$DUMPBIN"
6616 fi
6617fi
6618test -z "$NM" && NM=nm
6619
6620
6621
6622
6623
6624
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6626$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6627if ${lt_cv_nm_interface+:} false; then :
6628 $as_echo_n "(cached) " >&6
6629else
6630 lt_cv_nm_interface="BSD nm"
6631 echo "int some_variable = 0;" > conftest.$ac_ext
6632 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6633 (eval "$ac_compile" 2>conftest.err)
6634 cat conftest.err >&5
6635 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6636 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6637 cat conftest.err >&5
6638 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6639 cat conftest.out >&5
6640 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6641 lt_cv_nm_interface="MS dumpbin"
6642 fi
6643 rm -f conftest*
6644fi
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6646$as_echo "$lt_cv_nm_interface" >&6; }
6647
6648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6649$as_echo_n "checking whether ln -s works... " >&6; }
6650LN_S=$as_ln_s
6651if test "$LN_S" = "ln -s"; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6653$as_echo "yes" >&6; }
6654else
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6656$as_echo "no, using $LN_S" >&6; }
6657fi
6658
6659# find the maximum length of command line arguments
6660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6661$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6662if ${lt_cv_sys_max_cmd_len+:} false; then :
6663 $as_echo_n "(cached) " >&6
6664else
6665 i=0
6666 teststring="ABCD"
6667
6668 case $build_os in
6669 msdosdjgpp*)
6670 # On DJGPP, this test can blow up pretty badly due to problems in libc
6671 # (any single argument exceeding 2000 bytes causes a buffer overrun
6672 # during glob expansion). Even if it were fixed, the result of this
6673 # check would be larger than it should be.
6674 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6675 ;;
6676
6677 gnu*)
6678 # Under GNU Hurd, this test is not required because there is
6679 # no limit to the length of command line arguments.
6680 # Libtool will interpret -1 as no limit whatsoever
6681 lt_cv_sys_max_cmd_len=-1;
6682 ;;
6683
6684 cygwin* | mingw* | cegcc*)
6685 # On Win9x/ME, this test blows up -- it succeeds, but takes
6686 # about 5 minutes as the teststring grows exponentially.
6687 # Worse, since 9x/ME are not pre-emptively multitasking,
6688 # you end up with a "frozen" computer, even though with patience
6689 # the test eventually succeeds (with a max line length of 256k).
6690 # Instead, let's just punt: use the minimum linelength reported by
6691 # all of the supported platforms: 8192 (on NT/2K/XP).
6692 lt_cv_sys_max_cmd_len=8192;
6693 ;;
6694
6695 mint*)
6696 # On MiNT this can take a long time and run out of memory.
6697 lt_cv_sys_max_cmd_len=8192;
6698 ;;
6699
6700 amigaos*)
6701 # On AmigaOS with pdksh, this test takes hours, literally.
6702 # So we just punt and use a minimum line length of 8192.
6703 lt_cv_sys_max_cmd_len=8192;
6704 ;;
6705
6706 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6707 # This has been around since 386BSD, at least. Likely further.
6708 if test -x /sbin/sysctl; then
6709 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6710 elif test -x /usr/sbin/sysctl; then
6711 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6712 else
6713 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6714 fi
6715 # And add a safety zone
6716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6717 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6718 ;;
6719
6720 interix*)
6721 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6722 lt_cv_sys_max_cmd_len=196608
6723 ;;
6724
6725 osf*)
6726 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6727 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6728 # nice to cause kernel panics so lets avoid the loop below.
6729 # First set a reasonable default.
6730 lt_cv_sys_max_cmd_len=16384
6731 #
6732 if test -x /sbin/sysconfig; then
6733 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6734 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6735 esac
6736 fi
6737 ;;
6738 sco3.2v5*)
6739 lt_cv_sys_max_cmd_len=102400
6740 ;;
6741 sysv5* | sco5v6* | sysv4.2uw2*)
6742 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6743 if test -n "$kargmax"; then
6744 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6745 else
6746 lt_cv_sys_max_cmd_len=32768
6747 fi
6748 ;;
6749 *)
6750 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6751 if test -n "$lt_cv_sys_max_cmd_len"; then
6752 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6754 else
6755 # Make teststring a little bigger before we do anything with it.
6756 # a 1K string should be a reasonable start.
6757 for i in 1 2 3 4 5 6 7 8 ; do
6758 teststring=$teststring$teststring
6759 done
6760 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6761 # If test is not a shell built-in, we'll probably end up computing a
6762 # maximum length that is only half of the actual maximum length, but
6763 # we can't tell.
6764 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6765 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6766 test $i != 17 # 1/2 MB should be enough
6767 do
6768 i=`expr $i + 1`
6769 teststring=$teststring$teststring
6770 done
6771 # Only check the string length outside the loop.
6772 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6773 teststring=
6774 # Add a significant safety factor because C++ compilers can tack on
6775 # massive amounts of additional arguments before passing them to the
6776 # linker. It appears as though 1/2 is a usable value.
6777 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6778 fi
6779 ;;
6780 esac
6781
6782fi
6783
6784if test -n $lt_cv_sys_max_cmd_len ; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6786$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6787else
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6789$as_echo "none" >&6; }
6790fi
6791max_cmd_len=$lt_cv_sys_max_cmd_len
6792
6793
6794
6795
6796
6797
6798: ${CP="cp -f"}
6799: ${MV="mv -f"}
6800: ${RM="rm -f"}
6801
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6803$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6804# Try some XSI features
6805xsi_shell=no
6806( _lt_dummy="a/b/c"
6807 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6808 = c,a/b,, \
6809 && eval 'test $(( 1 + 1 )) -eq 2 \
6810 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6811 && xsi_shell=yes
6812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6813$as_echo "$xsi_shell" >&6; }
6814
6815
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6817$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6818lt_shell_append=no
6819( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6820 >/dev/null 2>&1 \
6821 && lt_shell_append=yes
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6823$as_echo "$lt_shell_append" >&6; }
6824
6825
6826if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6827 lt_unset=unset
6828else
6829 lt_unset=false
6830fi
6831
6832
6833
6834
6835
6836# test EBCDIC or ASCII
6837case `echo X|tr X '\101'` in
6838 A) # ASCII based system
6839 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6840 lt_SP2NL='tr \040 \012'
6841 lt_NL2SP='tr \015\012 \040\040'
6842 ;;
6843 *) # EBCDIC based system
6844 lt_SP2NL='tr \100 \n'
6845 lt_NL2SP='tr \r\n \100\100'
6846 ;;
6847esac
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6858$as_echo_n "checking for $LD option to reload object files... " >&6; }
6859if ${lt_cv_ld_reload_flag+:} false; then :
6860 $as_echo_n "(cached) " >&6
6861else
6862 lt_cv_ld_reload_flag='-r'
6863fi
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6865$as_echo "$lt_cv_ld_reload_flag" >&6; }
6866reload_flag=$lt_cv_ld_reload_flag
6867case $reload_flag in
6868"" | " "*) ;;
6869*) reload_flag=" $reload_flag" ;;
6870esac
6871reload_cmds='$LD$reload_flag -o $output$reload_objs'
6872case $host_os in
6873 darwin*)
6874 if test "$GCC" = yes; then
6875 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6876 else
6877 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6878 fi
6879 ;;
6880esac
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890if test -n "$ac_tool_prefix"; then
6891 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6892set dummy ${ac_tool_prefix}objdump; ac_word=$2
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894$as_echo_n "checking for $ac_word... " >&6; }
6895if ${ac_cv_prog_OBJDUMP+:} false; then :
6896 $as_echo_n "(cached) " >&6
6897else
6898 if test -n "$OBJDUMP"; then
6899 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6900else
6901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6908 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6911 fi
6912done
6913 done
6914IFS=$as_save_IFS
6915
6916fi
6917fi
6918OBJDUMP=$ac_cv_prog_OBJDUMP
6919if test -n "$OBJDUMP"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6921$as_echo "$OBJDUMP" >&6; }
6922else
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924$as_echo "no" >&6; }
6925fi
6926
6927
6928fi
6929if test -z "$ac_cv_prog_OBJDUMP"; then
6930 ac_ct_OBJDUMP=$OBJDUMP
6931 # Extract the first word of "objdump", so it can be a program name with args.
6932set dummy objdump; ac_word=$2
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934$as_echo_n "checking for $ac_word... " >&6; }
6935if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937else
6938 if test -n "$ac_ct_OBJDUMP"; then
6939 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6940else
6941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6948 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6951 fi
6952done
6953 done
6954IFS=$as_save_IFS
6955
6956fi
6957fi
6958ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6959if test -n "$ac_ct_OBJDUMP"; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6961$as_echo "$ac_ct_OBJDUMP" >&6; }
6962else
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964$as_echo "no" >&6; }
6965fi
6966
6967 if test "x$ac_ct_OBJDUMP" = x; then
6968 OBJDUMP="false"
6969 else
6970 case $cross_compiling:$ac_tool_warned in
6971yes:)
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6974ac_tool_warned=yes ;;
6975esac
6976 OBJDUMP=$ac_ct_OBJDUMP
6977 fi
6978else
6979 OBJDUMP="$ac_cv_prog_OBJDUMP"
6980fi
6981
6982test -z "$OBJDUMP" && OBJDUMP=objdump
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6993$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6994if ${lt_cv_deplibs_check_method+:} false; then :
6995 $as_echo_n "(cached) " >&6
6996else
6997 lt_cv_file_magic_cmd='$MAGIC_CMD'
6998lt_cv_file_magic_test_file=
6999lt_cv_deplibs_check_method='unknown'
7000# Need to set the preceding variable on all platforms that support
7001# interlibrary dependencies.
7002# 'none' -- dependencies not supported.
7003# `unknown' -- same as none, but documents that we really don't know.
7004# 'pass_all' -- all dependencies passed with no checks.
7005# 'test_compile' -- check by making test program.
7006# 'file_magic [[regex]]' -- check by looking for files in library path
7007# which responds to the $file_magic_cmd with a given extended regex.
7008# If you have `file' or equivalent on your system and you're not sure
7009# whether `pass_all' will *always* work, you probably want this one.
7010
7011case $host_os in
7012aix[4-9]*)
7013 lt_cv_deplibs_check_method=pass_all
7014 ;;
7015
7016beos*)
7017 lt_cv_deplibs_check_method=pass_all
7018 ;;
7019
7020bsdi[45]*)
7021 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7022 lt_cv_file_magic_cmd='/usr/bin/file -L'
7023 lt_cv_file_magic_test_file=/shlib/libc.so
7024 ;;
7025
7026cygwin*)
7027 # func_win32_libid is a shell function defined in ltmain.sh
7028 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7029 lt_cv_file_magic_cmd='func_win32_libid'
7030 ;;
7031
7032mingw* | pw32*)
7033 # Base MSYS/MinGW do not provide the 'file' command needed by
7034 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7035 # unless we find 'file', for example because we are cross-compiling.
7036 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7037 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7038 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7039 lt_cv_file_magic_cmd='func_win32_libid'
7040 else
7041 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7042 lt_cv_file_magic_cmd='$OBJDUMP -f'
7043 fi
7044 ;;
7045
7046cegcc*)
7047 # use the weaker test based on 'objdump'. See mingw*.
7048 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7049 lt_cv_file_magic_cmd='$OBJDUMP -f'
7050 ;;
7051
7052darwin* | rhapsody*)
7053 lt_cv_deplibs_check_method=pass_all
7054 ;;
7055
7056freebsd* | dragonfly*)
7057 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7058 case $host_cpu in
7059 i*86 )
7060 # Not sure whether the presence of OpenBSD here was a mistake.
7061 # Let's accept both of them until this is cleared up.
7062 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7063 lt_cv_file_magic_cmd=/usr/bin/file
7064 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7065 ;;
7066 esac
7067 else
7068 lt_cv_deplibs_check_method=pass_all
7069 fi
7070 ;;
7071
7072gnu*)
7073 lt_cv_deplibs_check_method=pass_all
7074 ;;
7075
7076haiku*)
7077 lt_cv_deplibs_check_method=pass_all
7078 ;;
7079
7080hpux10.20* | hpux11*)
7081 lt_cv_file_magic_cmd=/usr/bin/file
7082 case $host_cpu in
7083 ia64*)
7084 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7085 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7086 ;;
7087 hppa*64*)
7088 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]'
7089 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7090 ;;
7091 *)
7092 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7093 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7094 ;;
7095 esac
7096 ;;
7097
7098interix[3-9]*)
7099 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7101 ;;
7102
7103irix5* | irix6* | nonstopux*)
7104 case $LD in
7105 *-32|*"-32 ") libmagic=32-bit;;
7106 *-n32|*"-n32 ") libmagic=N32;;
7107 *-64|*"-64 ") libmagic=64-bit;;
7108 *) libmagic=never-match;;
7109 esac
7110 lt_cv_deplibs_check_method=pass_all
7111 ;;
7112
7113# This must be Linux ELF.
7114linux* | k*bsd*-gnu | kopensolaris*-gnu)
7115 lt_cv_deplibs_check_method=pass_all
7116 ;;
7117
7118netbsd*)
7119 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7121 else
7122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7123 fi
7124 ;;
7125
7126newos6*)
7127 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7128 lt_cv_file_magic_cmd=/usr/bin/file
7129 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7130 ;;
7131
7132*nto* | *qnx*)
7133 lt_cv_deplibs_check_method=pass_all
7134 ;;
7135
7136openbsd*)
7137 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7139 else
7140 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7141 fi
7142 ;;
7143
7144osf3* | osf4* | osf5*)
7145 lt_cv_deplibs_check_method=pass_all
7146 ;;
7147
7148rdos*)
7149 lt_cv_deplibs_check_method=pass_all
7150 ;;
7151
7152solaris*)
7153 lt_cv_deplibs_check_method=pass_all
7154 ;;
7155
7156sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7157 lt_cv_deplibs_check_method=pass_all
7158 ;;
7159
7160sysv4 | sysv4.3*)
7161 case $host_vendor in
7162 motorola)
7163 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]'
7164 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7165 ;;
7166 ncr)
7167 lt_cv_deplibs_check_method=pass_all
7168 ;;
7169 sequent)
7170 lt_cv_file_magic_cmd='/bin/file'
7171 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7172 ;;
7173 sni)
7174 lt_cv_file_magic_cmd='/bin/file'
7175 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7176 lt_cv_file_magic_test_file=/lib/libc.so
7177 ;;
7178 siemens)
7179 lt_cv_deplibs_check_method=pass_all
7180 ;;
7181 pc)
7182 lt_cv_deplibs_check_method=pass_all
7183 ;;
7184 esac
7185 ;;
7186
7187tpf*)
7188 lt_cv_deplibs_check_method=pass_all
7189 ;;
7190esac
7191
7192fi
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7194$as_echo "$lt_cv_deplibs_check_method" >&6; }
7195file_magic_cmd=$lt_cv_file_magic_cmd
7196deplibs_check_method=$lt_cv_deplibs_check_method
7197test -z "$deplibs_check_method" && deplibs_check_method=unknown
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210plugin_option=
7211plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7212for plugin in $plugin_names; do
7213 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7214 if test x$plugin_so = x$plugin; then
7215 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7216 fi
7217 if test x$plugin_so != x$plugin; then
7218 plugin_option="--plugin $plugin_so"
7219 break
7220 fi
7221done
7222
7223if test -n "$ac_tool_prefix"; then
7224 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7225set dummy ${ac_tool_prefix}ar; ac_word=$2
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7227$as_echo_n "checking for $ac_word... " >&6; }
7228if ${ac_cv_prog_AR+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230else
7231 if test -n "$AR"; then
7232 ac_cv_prog_AR="$AR" # Let the user override the test.
7233else
7234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235for as_dir in $PATH
7236do
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241 ac_cv_prog_AR="${ac_tool_prefix}ar"
7242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 break 2
7244 fi
7245done
7246 done
7247IFS=$as_save_IFS
7248
7249fi
7250fi
7251AR=$ac_cv_prog_AR
7252if test -n "$AR"; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7254$as_echo "$AR" >&6; }
7255else
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257$as_echo "no" >&6; }
7258fi
7259
7260
7261fi
7262if test -z "$ac_cv_prog_AR"; then
7263 ac_ct_AR=$AR
7264 # Extract the first word of "ar", so it can be a program name with args.
7265set dummy ar; ac_word=$2
7266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7267$as_echo_n "checking for $ac_word... " >&6; }
7268if ${ac_cv_prog_ac_ct_AR+:} false; then :
7269 $as_echo_n "(cached) " >&6
7270else
7271 if test -n "$ac_ct_AR"; then
7272 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7273else
7274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275for as_dir in $PATH
7276do
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7281 ac_cv_prog_ac_ct_AR="ar"
7282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 break 2
7284 fi
7285done
7286 done
7287IFS=$as_save_IFS
7288
7289fi
7290fi
7291ac_ct_AR=$ac_cv_prog_ac_ct_AR
7292if test -n "$ac_ct_AR"; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7294$as_echo "$ac_ct_AR" >&6; }
7295else
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297$as_echo "no" >&6; }
7298fi
7299
7300 if test "x$ac_ct_AR" = x; then
7301 AR="false"
7302 else
7303 case $cross_compiling:$ac_tool_warned in
7304yes:)
7305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7307ac_tool_warned=yes ;;
7308esac
7309 AR=$ac_ct_AR
7310 fi
7311else
7312 AR="$ac_cv_prog_AR"
7313fi
7314
7315test -z "$AR" && AR=ar
7316if test -n "$plugin_option"; then
7317 if $AR --help 2>&1 | grep -q "\--plugin"; then
7318 touch conftest.c
7319 $AR $plugin_option rc conftest.a conftest.c
7320 if test "$?" != 0; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7322$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7323 else
7324 AR="$AR $plugin_option"
7325 fi
7326 rm -f conftest.*
7327 fi
7328fi
7329test -z "$AR_FLAGS" && AR_FLAGS=cru
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341if test -n "$ac_tool_prefix"; then
7342 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7343set dummy ${ac_tool_prefix}strip; ac_word=$2
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345$as_echo_n "checking for $ac_word... " >&6; }
7346if ${ac_cv_prog_STRIP+:} false; then :
7347 $as_echo_n "(cached) " >&6
7348else
7349 if test -n "$STRIP"; then
7350 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7351else
7352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH
7354do
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 break 2
7362 fi
7363done
7364 done
7365IFS=$as_save_IFS
7366
7367fi
7368fi
7369STRIP=$ac_cv_prog_STRIP
7370if test -n "$STRIP"; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7372$as_echo "$STRIP" >&6; }
7373else
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375$as_echo "no" >&6; }
7376fi
7377
7378
7379fi
7380if test -z "$ac_cv_prog_STRIP"; then
7381 ac_ct_STRIP=$STRIP
7382 # Extract the first word of "strip", so it can be a program name with args.
7383set dummy strip; ac_word=$2
7384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385$as_echo_n "checking for $ac_word... " >&6; }
7386if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7387 $as_echo_n "(cached) " >&6
7388else
7389 if test -n "$ac_ct_STRIP"; then
7390 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7391else
7392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393for as_dir in $PATH
7394do
7395 IFS=$as_save_IFS
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7399 ac_cv_prog_ac_ct_STRIP="strip"
7400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 break 2
7402 fi
7403done
7404 done
7405IFS=$as_save_IFS
7406
7407fi
7408fi
7409ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7410if test -n "$ac_ct_STRIP"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7412$as_echo "$ac_ct_STRIP" >&6; }
7413else
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415$as_echo "no" >&6; }
7416fi
7417
7418 if test "x$ac_ct_STRIP" = x; then
7419 STRIP=":"
7420 else
7421 case $cross_compiling:$ac_tool_warned in
7422yes:)
7423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7425ac_tool_warned=yes ;;
7426esac
7427 STRIP=$ac_ct_STRIP
7428 fi
7429else
7430 STRIP="$ac_cv_prog_STRIP"
7431fi
7432
7433test -z "$STRIP" && STRIP=:
7434
7435
7436
7437
7438
7439
7440if test -n "$ac_tool_prefix"; then
7441 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7442set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444$as_echo_n "checking for $ac_word... " >&6; }
7445if ${ac_cv_prog_RANLIB+:} false; then :
7446 $as_echo_n "(cached) " >&6
7447else
7448 if test -n "$RANLIB"; then
7449 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7450else
7451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452for as_dir in $PATH
7453do
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 break 2
7461 fi
7462done
7463 done
7464IFS=$as_save_IFS
7465
7466fi
7467fi
7468RANLIB=$ac_cv_prog_RANLIB
7469if test -n "$RANLIB"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7471$as_echo "$RANLIB" >&6; }
7472else
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474$as_echo "no" >&6; }
7475fi
7476
7477
7478fi
7479if test -z "$ac_cv_prog_RANLIB"; then
7480 ac_ct_RANLIB=$RANLIB
7481 # Extract the first word of "ranlib", so it can be a program name with args.
7482set dummy ranlib; ac_word=$2
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484$as_echo_n "checking for $ac_word... " >&6; }
7485if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7486 $as_echo_n "(cached) " >&6
7487else
7488 if test -n "$ac_ct_RANLIB"; then
7489 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7490else
7491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492for as_dir in $PATH
7493do
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498 ac_cv_prog_ac_ct_RANLIB="ranlib"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 break 2
7501 fi
7502done
7503 done
7504IFS=$as_save_IFS
7505
7506fi
7507fi
7508ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7509if test -n "$ac_ct_RANLIB"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7511$as_echo "$ac_ct_RANLIB" >&6; }
7512else
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514$as_echo "no" >&6; }
7515fi
7516
7517 if test "x$ac_ct_RANLIB" = x; then
7518 RANLIB=":"
7519 else
7520 case $cross_compiling:$ac_tool_warned in
7521yes:)
7522{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7523$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7524ac_tool_warned=yes ;;
7525esac
7526 RANLIB=$ac_ct_RANLIB
7527 fi
7528else
7529 RANLIB="$ac_cv_prog_RANLIB"
7530fi
7531
7532test -z "$RANLIB" && RANLIB=:
7533if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7534 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7535 RANLIB="$RANLIB $plugin_option"
7536 fi
7537fi
7538
7539
7540
7541
7542
7543
7544# Determine commands to create old-style static archives.
7545old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7546old_postinstall_cmds='chmod 644 $oldlib'
7547old_postuninstall_cmds=
7548
7549if test -n "$RANLIB"; then
7550 case $host_os in
7551 openbsd*)
7552 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7553 ;;
7554 *)
7555 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7556 ;;
7557 esac
7558 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7559fi
7560
7561case $host_os in
7562 darwin*)
7563 lock_old_archive_extraction=yes ;;
7564 *)
7565 lock_old_archive_extraction=no ;;
7566esac
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606# If no C compiler was specified, use CC.
7607LTCC=${LTCC-"$CC"}
7608
7609# If no C compiler flags were specified, use CFLAGS.
7610LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7611
7612# Allow CC to be a program name with arguments.
7613compiler=$CC
7614
7615
7616# Check for command to grab the raw symbol name followed by C symbol from nm.
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7618$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7619if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7620 $as_echo_n "(cached) " >&6
7621else
7622
7623# These are sane defaults that work on at least a few old systems.
7624# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7625
7626# Character class describing NM global symbol codes.
7627symcode='[BCDEGRST]'
7628
7629# Regexp to match symbols that can be accessed directly from C.
7630sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7631
7632# Define system-specific variables.
7633case $host_os in
7634aix*)
7635 symcode='[BCDT]'
7636 ;;
7637cygwin* | mingw* | pw32* | cegcc*)
7638 symcode='[ABCDGISTW]'
7639 ;;
7640hpux*)
7641 if test "$host_cpu" = ia64; then
7642 symcode='[ABCDEGRST]'
7643 fi
7644 ;;
7645irix* | nonstopux*)
7646 symcode='[BCDEGRST]'
7647 ;;
7648osf*)
7649 symcode='[BCDEGQRST]'
7650 ;;
7651solaris*)
7652 symcode='[BCDRT]'
7653 ;;
7654sco3.2v5*)
7655 symcode='[DT]'
7656 ;;
7657sysv4.2uw2*)
7658 symcode='[DT]'
7659 ;;
7660sysv5* | sco5v6* | unixware* | OpenUNIX*)
7661 symcode='[ABDT]'
7662 ;;
7663sysv4)
7664 symcode='[DFNSTU]'
7665 ;;
7666esac
7667
7668# If we're using GNU nm, then use its standard symbol codes.
7669case `$NM -V 2>&1` in
7670*GNU* | *'with BFD'*)
7671 symcode='[ABCDGIRSTW]' ;;
7672esac
7673
7674# Transform an extracted symbol line into a proper C declaration.
7675# Some systems (esp. on ia64) link data and code symbols differently,
7676# so use this general approach.
7677lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7678
7679# Transform an extracted symbol line into symbol name and symbol address
7680lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7681lt_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'"
7682
7683# Handle CRLF in mingw tool chain
7684opt_cr=
7685case $build_os in
7686mingw*)
7687 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7688 ;;
7689esac
7690
7691# Try without a prefix underscore, then with it.
7692for ac_symprfx in "" "_"; do
7693
7694 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7695 symxfrm="\\1 $ac_symprfx\\2 \\2"
7696
7697 # Write the raw and C identifiers.
7698 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7699 # Fake it for dumpbin and say T for any non-static function
7700 # and D for any global variable.
7701 # Also find C++ and __fastcall symbols from MSVC++,
7702 # which start with @ or ?.
7703 lt_cv_sys_global_symbol_pipe="$AWK '"\
7704" {last_section=section; section=\$ 3};"\
7705" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7706" \$ 0!~/External *\|/{next};"\
7707" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7708" {if(hide[section]) next};"\
7709" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7710" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7711" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7712" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7713" ' prfx=^$ac_symprfx"
7714 else
7715 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7716 fi
7717
7718 # Check to see that the pipe works correctly.
7719 pipe_works=no
7720
7721 rm -f conftest*
7722 cat > conftest.$ac_ext <<_LT_EOF
7723#ifdef __cplusplus
7724extern "C" {
7725#endif
7726char nm_test_var;
7727void nm_test_func(void);
7728void nm_test_func(void){}
7729#ifdef __cplusplus
7730}
7731#endif
7732int main(){nm_test_var='a';nm_test_func();return(0);}
7733_LT_EOF
7734
7735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7736 (eval $ac_compile) 2>&5
7737 ac_status=$?
7738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7739 test $ac_status = 0; }; then
7740 # Now try to grab the symbols.
7741 nlist=conftest.nm
7742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7743 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7744 ac_status=$?
7745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7746 test $ac_status = 0; } && test -s "$nlist"; then
7747 # Try sorting and uniquifying the output.
7748 if sort "$nlist" | uniq > "$nlist"T; then
7749 mv -f "$nlist"T "$nlist"
7750 else
7751 rm -f "$nlist"T
7752 fi
7753
7754 # Make sure that we snagged all the symbols we need.
7755 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7756 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7757 cat <<_LT_EOF > conftest.$ac_ext
7758#ifdef __cplusplus
7759extern "C" {
7760#endif
7761
7762_LT_EOF
7763 # Now generate the symbol file.
7764 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7765
7766 cat <<_LT_EOF >> conftest.$ac_ext
7767
7768/* The mapping between symbol names and symbols. */
7769const struct {
7770 const char *name;
7771 void *address;
7772}
7773lt__PROGRAM__LTX_preloaded_symbols[] =
7774{
7775 { "@PROGRAM@", (void *) 0 },
7776_LT_EOF
7777 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7778 cat <<\_LT_EOF >> conftest.$ac_ext
7779 {0, (void *) 0}
7780};
7781
7782/* This works around a problem in FreeBSD linker */
7783#ifdef FREEBSD_WORKAROUND
7784static const void *lt_preloaded_setup() {
7785 return lt__PROGRAM__LTX_preloaded_symbols;
7786}
7787#endif
7788
7789#ifdef __cplusplus
7790}
7791#endif
7792_LT_EOF
7793 # Now try linking the two files.
7794 mv conftest.$ac_objext conftstm.$ac_objext
7795 lt_save_LIBS="$LIBS"
7796 lt_save_CFLAGS="$CFLAGS"
7797 LIBS="conftstm.$ac_objext"
7798 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7800 (eval $ac_link) 2>&5
7801 ac_status=$?
7802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7803 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7804 pipe_works=yes
7805 fi
7806 LIBS="$lt_save_LIBS"
7807 CFLAGS="$lt_save_CFLAGS"
7808 else
7809 echo "cannot find nm_test_func in $nlist" >&5
7810 fi
7811 else
7812 echo "cannot find nm_test_var in $nlist" >&5
7813 fi
7814 else
7815 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7816 fi
7817 else
7818 echo "$progname: failed program was:" >&5
7819 cat conftest.$ac_ext >&5
7820 fi
7821 rm -rf conftest* conftst*
7822
7823 # Do not use the global_symbol_pipe unless it works.
7824 if test "$pipe_works" = yes; then
7825 break
7826 else
7827 lt_cv_sys_global_symbol_pipe=
7828 fi
7829done
7830
7831fi
7832
7833if test -z "$lt_cv_sys_global_symbol_pipe"; then
7834 lt_cv_sys_global_symbol_to_cdecl=
7835fi
7836if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7838$as_echo "failed" >&6; }
7839else
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7841$as_echo "ok" >&6; }
7842fi
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865# Check whether --enable-libtool-lock was given.
7866if test "${enable_libtool_lock+set}" = set; then :
7867 enableval=$enable_libtool_lock;
7868fi
7869
7870test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7871
7872# Some flags need to be propagated to the compiler or linker for good
7873# libtool support.
7874case $host in
7875ia64-*-hpux*)
7876 # Find out which ABI we are using.
7877 echo 'int i;' > conftest.$ac_ext
7878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7879 (eval $ac_compile) 2>&5
7880 ac_status=$?
7881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7882 test $ac_status = 0; }; then
7883 case `/usr/bin/file conftest.$ac_objext` in
7884 *ELF-32*)
7885 HPUX_IA64_MODE="32"
7886 ;;
7887 *ELF-64*)
7888 HPUX_IA64_MODE="64"
7889 ;;
7890 esac
7891 fi
7892 rm -rf conftest*
7893 ;;
7894*-*-irix6*)
7895 # Find out which ABI we are using.
7896 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7898 (eval $ac_compile) 2>&5
7899 ac_status=$?
7900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7901 test $ac_status = 0; }; then
7902 if test "$lt_cv_prog_gnu_ld" = yes; then
7903 case `/usr/bin/file conftest.$ac_objext` in
7904 *32-bit*)
7905 LD="${LD-ld} -melf32bsmip"
7906 ;;
7907 *N32*)
7908 LD="${LD-ld} -melf32bmipn32"
7909 ;;
7910 *64-bit*)
7911 LD="${LD-ld} -melf64bmip"
7912 ;;
7913 esac
7914 else
7915 case `/usr/bin/file conftest.$ac_objext` in
7916 *32-bit*)
7917 LD="${LD-ld} -32"
7918 ;;
7919 *N32*)
7920 LD="${LD-ld} -n32"
7921 ;;
7922 *64-bit*)
7923 LD="${LD-ld} -64"
7924 ;;
7925 esac
7926 fi
7927 fi
7928 rm -rf conftest*
7929 ;;
7930
7931x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7932s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7933 # Find out which ABI we are using.
7934 echo 'int i;' > conftest.$ac_ext
7935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7936 (eval $ac_compile) 2>&5
7937 ac_status=$?
7938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7939 test $ac_status = 0; }; then
7940 case `/usr/bin/file conftest.o` in
7941 *32-bit*)
7942 case $host in
7943 x86_64-*kfreebsd*-gnu)
7944 LD="${LD-ld} -m elf_i386_fbsd"
7945 ;;
7946 x86_64-*linux*)
7947 case `/usr/bin/file conftest.o` in
7948 *x86-64*)
7949 LD="${LD-ld} -m elf32_x86_64"
7950 ;;
7951 *)
7952 LD="${LD-ld} -m elf_i386"
7953 ;;
7954 esac
7955 ;;
7956 powerpc64le-*linux*)
7957 LD="${LD-ld} -m elf32lppclinux"
7958 ;;
7959 powerpc64-*linux*)
7960 LD="${LD-ld} -m elf32ppclinux"
7961 ;;
7962 s390x-*linux*)
7963 LD="${LD-ld} -m elf_s390"
7964 ;;
7965 sparc64-*linux*)
7966 LD="${LD-ld} -m elf32_sparc"
7967 ;;
7968 esac
7969 ;;
7970 *64-bit*)
7971 case $host in
7972 x86_64-*kfreebsd*-gnu)
7973 LD="${LD-ld} -m elf_x86_64_fbsd"
7974 ;;
7975 x86_64-*linux*)
7976 LD="${LD-ld} -m elf_x86_64"
7977 ;;
7978 powerpcle-*linux*)
7979 LD="${LD-ld} -m elf64lppc"
7980 ;;
7981 powerpc-*linux*)
7982 LD="${LD-ld} -m elf64ppc"
7983 ;;
7984 s390*-*linux*|s390*-*tpf*)
7985 LD="${LD-ld} -m elf64_s390"
7986 ;;
7987 sparc*-*linux*)
7988 LD="${LD-ld} -m elf64_sparc"
7989 ;;
7990 esac
7991 ;;
7992 esac
7993 fi
7994 rm -rf conftest*
7995 ;;
7996
7997*-*-sco3.2v5*)
7998 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7999 SAVE_CFLAGS="$CFLAGS"
8000 CFLAGS="$CFLAGS -belf"
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8002$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8003if ${lt_cv_cc_needs_belf+:} false; then :
8004 $as_echo_n "(cached) " >&6
8005else
8006 ac_ext=c
8007ac_cpp='$CPP $CPPFLAGS'
8008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8010ac_compiler_gnu=$ac_cv_c_compiler_gnu
8011
8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013/* end confdefs.h. */
8014
8015int
8016main ()
8017{
8018
8019 ;
8020 return 0;
8021}
8022_ACEOF
8023if ac_fn_c_try_link "$LINENO"; then :
8024 lt_cv_cc_needs_belf=yes
8025else
8026 lt_cv_cc_needs_belf=no
8027fi
8028rm -f core conftest.err conftest.$ac_objext \
8029 conftest$ac_exeext conftest.$ac_ext
8030 ac_ext=c
8031ac_cpp='$CPP $CPPFLAGS'
8032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8034ac_compiler_gnu=$ac_cv_c_compiler_gnu
8035
8036fi
8037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8038$as_echo "$lt_cv_cc_needs_belf" >&6; }
8039 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8040 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8041 CFLAGS="$SAVE_CFLAGS"
8042 fi
8043 ;;
8044sparc*-*solaris*)
8045 # Find out which ABI we are using.
8046 echo 'int i;' > conftest.$ac_ext
8047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8048 (eval $ac_compile) 2>&5
8049 ac_status=$?
8050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8051 test $ac_status = 0; }; then
8052 case `/usr/bin/file conftest.o` in
8053 *64-bit*)
8054 case $lt_cv_prog_gnu_ld in
8055 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8056 *)
8057 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8058 LD="${LD-ld} -64"
8059 fi
8060 ;;
8061 esac
8062 ;;
8063 esac
8064 fi
8065 rm -rf conftest*
8066 ;;
8067esac
8068
8069need_locks="$enable_libtool_lock"
8070
8071
8072 case $host_os in
8073 rhapsody* | darwin*)
8074 if test -n "$ac_tool_prefix"; then
8075 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8076set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078$as_echo_n "checking for $ac_word... " >&6; }
8079if ${ac_cv_prog_DSYMUTIL+:} false; then :
8080 $as_echo_n "(cached) " >&6
8081else
8082 if test -n "$DSYMUTIL"; then
8083 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8084else
8085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086for as_dir in $PATH
8087do
8088 IFS=$as_save_IFS
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 break 2
8095 fi
8096done
8097 done
8098IFS=$as_save_IFS
8099
8100fi
8101fi
8102DSYMUTIL=$ac_cv_prog_DSYMUTIL
8103if test -n "$DSYMUTIL"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8105$as_echo "$DSYMUTIL" >&6; }
8106else
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108$as_echo "no" >&6; }
8109fi
8110
8111
8112fi
8113if test -z "$ac_cv_prog_DSYMUTIL"; then
8114 ac_ct_DSYMUTIL=$DSYMUTIL
8115 # Extract the first word of "dsymutil", so it can be a program name with args.
8116set dummy dsymutil; ac_word=$2
8117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118$as_echo_n "checking for $ac_word... " >&6; }
8119if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8120 $as_echo_n "(cached) " >&6
8121else
8122 if test -n "$ac_ct_DSYMUTIL"; then
8123 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8124else
8125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126for as_dir in $PATH
8127do
8128 IFS=$as_save_IFS
8129 test -z "$as_dir" && as_dir=.
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8132 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 break 2
8135 fi
8136done
8137 done
8138IFS=$as_save_IFS
8139
8140fi
8141fi
8142ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8143if test -n "$ac_ct_DSYMUTIL"; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8145$as_echo "$ac_ct_DSYMUTIL" >&6; }
8146else
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148$as_echo "no" >&6; }
8149fi
8150
8151 if test "x$ac_ct_DSYMUTIL" = x; then
8152 DSYMUTIL=":"
8153 else
8154 case $cross_compiling:$ac_tool_warned in
8155yes:)
8156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8158ac_tool_warned=yes ;;
8159esac
8160 DSYMUTIL=$ac_ct_DSYMUTIL
8161 fi
8162else
8163 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8164fi
8165
8166 if test -n "$ac_tool_prefix"; then
8167 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8168set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8170$as_echo_n "checking for $ac_word... " >&6; }
8171if ${ac_cv_prog_NMEDIT+:} false; then :
8172 $as_echo_n "(cached) " >&6
8173else
8174 if test -n "$NMEDIT"; then
8175 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8176else
8177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178for as_dir in $PATH
8179do
8180 IFS=$as_save_IFS
8181 test -z "$as_dir" && as_dir=.
8182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8184 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8186 break 2
8187 fi
8188done
8189 done
8190IFS=$as_save_IFS
8191
8192fi
8193fi
8194NMEDIT=$ac_cv_prog_NMEDIT
8195if test -n "$NMEDIT"; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8197$as_echo "$NMEDIT" >&6; }
8198else
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200$as_echo "no" >&6; }
8201fi
8202
8203
8204fi
8205if test -z "$ac_cv_prog_NMEDIT"; then
8206 ac_ct_NMEDIT=$NMEDIT
8207 # Extract the first word of "nmedit", so it can be a program name with args.
8208set dummy nmedit; ac_word=$2
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210$as_echo_n "checking for $ac_word... " >&6; }
8211if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8212 $as_echo_n "(cached) " >&6
8213else
8214 if test -n "$ac_ct_NMEDIT"; then
8215 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8216else
8217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218for as_dir in $PATH
8219do
8220 IFS=$as_save_IFS
8221 test -z "$as_dir" && as_dir=.
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8224 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8226 break 2
8227 fi
8228done
8229 done
8230IFS=$as_save_IFS
8231
8232fi
8233fi
8234ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8235if test -n "$ac_ct_NMEDIT"; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8237$as_echo "$ac_ct_NMEDIT" >&6; }
8238else
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240$as_echo "no" >&6; }
8241fi
8242
8243 if test "x$ac_ct_NMEDIT" = x; then
8244 NMEDIT=":"
8245 else
8246 case $cross_compiling:$ac_tool_warned in
8247yes:)
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8250ac_tool_warned=yes ;;
8251esac
8252 NMEDIT=$ac_ct_NMEDIT
8253 fi
8254else
8255 NMEDIT="$ac_cv_prog_NMEDIT"
8256fi
8257
8258 if test -n "$ac_tool_prefix"; then
8259 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8260set dummy ${ac_tool_prefix}lipo; ac_word=$2
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262$as_echo_n "checking for $ac_word... " >&6; }
8263if ${ac_cv_prog_LIPO+:} false; then :
8264 $as_echo_n "(cached) " >&6
8265else
8266 if test -n "$LIPO"; then
8267 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8268else
8269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270for as_dir in $PATH
8271do
8272 IFS=$as_save_IFS
8273 test -z "$as_dir" && as_dir=.
8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8276 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278 break 2
8279 fi
8280done
8281 done
8282IFS=$as_save_IFS
8283
8284fi
8285fi
8286LIPO=$ac_cv_prog_LIPO
8287if test -n "$LIPO"; then
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8289$as_echo "$LIPO" >&6; }
8290else
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292$as_echo "no" >&6; }
8293fi
8294
8295
8296fi
8297if test -z "$ac_cv_prog_LIPO"; then
8298 ac_ct_LIPO=$LIPO
8299 # Extract the first word of "lipo", so it can be a program name with args.
8300set dummy lipo; ac_word=$2
8301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302$as_echo_n "checking for $ac_word... " >&6; }
8303if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8304 $as_echo_n "(cached) " >&6
8305else
8306 if test -n "$ac_ct_LIPO"; then
8307 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8308else
8309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310for as_dir in $PATH
8311do
8312 IFS=$as_save_IFS
8313 test -z "$as_dir" && as_dir=.
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8316 ac_cv_prog_ac_ct_LIPO="lipo"
8317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 break 2
8319 fi
8320done
8321 done
8322IFS=$as_save_IFS
8323
8324fi
8325fi
8326ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8327if test -n "$ac_ct_LIPO"; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8329$as_echo "$ac_ct_LIPO" >&6; }
8330else
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332$as_echo "no" >&6; }
8333fi
8334
8335 if test "x$ac_ct_LIPO" = x; then
8336 LIPO=":"
8337 else
8338 case $cross_compiling:$ac_tool_warned in
8339yes:)
8340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8342ac_tool_warned=yes ;;
8343esac
8344 LIPO=$ac_ct_LIPO
8345 fi
8346else
8347 LIPO="$ac_cv_prog_LIPO"
8348fi
8349
8350 if test -n "$ac_tool_prefix"; then
8351 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8352set dummy ${ac_tool_prefix}otool; ac_word=$2
8353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354$as_echo_n "checking for $ac_word... " >&6; }
8355if ${ac_cv_prog_OTOOL+:} false; then :
8356 $as_echo_n "(cached) " >&6
8357else
8358 if test -n "$OTOOL"; then
8359 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8360else
8361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362for as_dir in $PATH
8363do
8364 IFS=$as_save_IFS
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8368 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 break 2
8371 fi
8372done
8373 done
8374IFS=$as_save_IFS
8375
8376fi
8377fi
8378OTOOL=$ac_cv_prog_OTOOL
8379if test -n "$OTOOL"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8381$as_echo "$OTOOL" >&6; }
8382else
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384$as_echo "no" >&6; }
8385fi
8386
8387
8388fi
8389if test -z "$ac_cv_prog_OTOOL"; then
8390 ac_ct_OTOOL=$OTOOL
8391 # Extract the first word of "otool", so it can be a program name with args.
8392set dummy otool; ac_word=$2
8393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394$as_echo_n "checking for $ac_word... " >&6; }
8395if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8396 $as_echo_n "(cached) " >&6
8397else
8398 if test -n "$ac_ct_OTOOL"; then
8399 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8400else
8401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402for as_dir in $PATH
8403do
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8408 ac_cv_prog_ac_ct_OTOOL="otool"
8409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 break 2
8411 fi
8412done
8413 done
8414IFS=$as_save_IFS
8415
8416fi
8417fi
8418ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8419if test -n "$ac_ct_OTOOL"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8421$as_echo "$ac_ct_OTOOL" >&6; }
8422else
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424$as_echo "no" >&6; }
8425fi
8426
8427 if test "x$ac_ct_OTOOL" = x; then
8428 OTOOL=":"
8429 else
8430 case $cross_compiling:$ac_tool_warned in
8431yes:)
8432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8434ac_tool_warned=yes ;;
8435esac
8436 OTOOL=$ac_ct_OTOOL
8437 fi
8438else
8439 OTOOL="$ac_cv_prog_OTOOL"
8440fi
8441
8442 if test -n "$ac_tool_prefix"; then
8443 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8444set dummy ${ac_tool_prefix}otool64; ac_word=$2
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446$as_echo_n "checking for $ac_word... " >&6; }
8447if ${ac_cv_prog_OTOOL64+:} false; then :
8448 $as_echo_n "(cached) " >&6
8449else
8450 if test -n "$OTOOL64"; then
8451 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8452else
8453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454for as_dir in $PATH
8455do
8456 IFS=$as_save_IFS
8457 test -z "$as_dir" && as_dir=.
8458 for ac_exec_ext in '' $ac_executable_extensions; do
8459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8460 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8462 break 2
8463 fi
8464done
8465 done
8466IFS=$as_save_IFS
8467
8468fi
8469fi
8470OTOOL64=$ac_cv_prog_OTOOL64
8471if test -n "$OTOOL64"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8473$as_echo "$OTOOL64" >&6; }
8474else
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476$as_echo "no" >&6; }
8477fi
8478
8479
8480fi
8481if test -z "$ac_cv_prog_OTOOL64"; then
8482 ac_ct_OTOOL64=$OTOOL64
8483 # Extract the first word of "otool64", so it can be a program name with args.
8484set dummy otool64; ac_word=$2
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486$as_echo_n "checking for $ac_word... " >&6; }
8487if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8488 $as_echo_n "(cached) " >&6
8489else
8490 if test -n "$ac_ct_OTOOL64"; then
8491 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8492else
8493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494for as_dir in $PATH
8495do
8496 IFS=$as_save_IFS
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8500 ac_cv_prog_ac_ct_OTOOL64="otool64"
8501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502 break 2
8503 fi
8504done
8505 done
8506IFS=$as_save_IFS
8507
8508fi
8509fi
8510ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8511if test -n "$ac_ct_OTOOL64"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8513$as_echo "$ac_ct_OTOOL64" >&6; }
8514else
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516$as_echo "no" >&6; }
8517fi
8518
8519 if test "x$ac_ct_OTOOL64" = x; then
8520 OTOOL64=":"
8521 else
8522 case $cross_compiling:$ac_tool_warned in
8523yes:)
8524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8526ac_tool_warned=yes ;;
8527esac
8528 OTOOL64=$ac_ct_OTOOL64
8529 fi
8530else
8531 OTOOL64="$ac_cv_prog_OTOOL64"
8532fi
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8561$as_echo_n "checking for -single_module linker flag... " >&6; }
8562if ${lt_cv_apple_cc_single_mod+:} false; then :
8563 $as_echo_n "(cached) " >&6
8564else
8565 lt_cv_apple_cc_single_mod=no
8566 if test -z "${LT_MULTI_MODULE}"; then
8567 # By default we will add the -single_module flag. You can override
8568 # by either setting the environment variable LT_MULTI_MODULE
8569 # non-empty at configure time, or by adding -multi_module to the
8570 # link flags.
8571 rm -rf libconftest.dylib*
8572 echo "int foo(void){return 1;}" > conftest.c
8573 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8574-dynamiclib -Wl,-single_module conftest.c" >&5
8575 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8576 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8577 _lt_result=$?
8578 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8579 lt_cv_apple_cc_single_mod=yes
8580 else
8581 cat conftest.err >&5
8582 fi
8583 rm -rf libconftest.dylib*
8584 rm -f conftest.*
8585 fi
8586fi
8587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8588$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8590$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8591if ${lt_cv_ld_exported_symbols_list+:} false; then :
8592 $as_echo_n "(cached) " >&6
8593else
8594 lt_cv_ld_exported_symbols_list=no
8595 save_LDFLAGS=$LDFLAGS
8596 echo "_main" > conftest.sym
8597 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599/* end confdefs.h. */
8600
8601int
8602main ()
8603{
8604
8605 ;
8606 return 0;
8607}
8608_ACEOF
8609if ac_fn_c_try_link "$LINENO"; then :
8610 lt_cv_ld_exported_symbols_list=yes
8611else
8612 lt_cv_ld_exported_symbols_list=no
8613fi
8614rm -f core conftest.err conftest.$ac_objext \
8615 conftest$ac_exeext conftest.$ac_ext
8616 LDFLAGS="$save_LDFLAGS"
8617
8618fi
8619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8620$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8622$as_echo_n "checking for -force_load linker flag... " >&6; }
8623if ${lt_cv_ld_force_load+:} false; then :
8624 $as_echo_n "(cached) " >&6
8625else
8626 lt_cv_ld_force_load=no
8627 cat > conftest.c << _LT_EOF
8628int forced_loaded() { return 2;}
8629_LT_EOF
8630 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8631 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8632 echo "$AR cru libconftest.a conftest.o" >&5
8633 $AR cru libconftest.a conftest.o 2>&5
8634 cat > conftest.c << _LT_EOF
8635int main() { return 0;}
8636_LT_EOF
8637 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8638 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8639 _lt_result=$?
8640 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8641 lt_cv_ld_force_load=yes
8642 else
8643 cat conftest.err >&5
8644 fi
8645 rm -f conftest.err libconftest.a conftest conftest.c
8646 rm -rf conftest.dSYM
8647
8648fi
8649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8650$as_echo "$lt_cv_ld_force_load" >&6; }
8651 case $host_os in
8652 rhapsody* | darwin1.[012])
8653 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8654 darwin1.*)
8655 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8656 darwin*) # darwin 5.x on
8657 # if running on 10.5 or later, the deployment target defaults
8658 # to the OS version, if on x86, and 10.4, the deployment
8659 # target defaults to 10.4. Don't you love it?
8660 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8661 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8662 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8663 10.[012][,.]*)
8664 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8665 10.*)
8666 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8667 esac
8668 ;;
8669 esac
8670 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8671 _lt_dar_single_mod='$single_module'
8672 fi
8673 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8674 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8675 else
8676 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8677 fi
8678 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8679 _lt_dsymutil='~$DSYMUTIL $lib || :'
8680 else
8681 _lt_dsymutil=
8682 fi
8683 ;;
8684 esac
8685
8686for ac_header in dlfcn.h
8687do :
8688 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8689"
8690if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8691 cat >>confdefs.h <<_ACEOF
8692#define HAVE_DLFCN_H 1
8693_ACEOF
8694
8695fi
8696
8697done
8698
8699
8700
8701
8702
8703
8704# Set options
8705
8706
8707
8708 enable_dlopen=no
8709
8710
8711 enable_win32_dll=no
8712
8713
8714
8715 # Check whether --enable-static was given.
8716if test "${enable_static+set}" = set; then :
8717 enableval=$enable_static; p=${PACKAGE-default}
8718 case $enableval in
8719 yes) enable_static=yes ;;
8720 no) enable_static=no ;;
8721 *)
8722 enable_static=no
8723 # Look at the argument we got. We use all the common list separators.
8724 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8725 for pkg in $enableval; do
8726 IFS="$lt_save_ifs"
8727 if test "X$pkg" = "X$p"; then
8728 enable_static=yes
8729 fi
8730 done
8731 IFS="$lt_save_ifs"
8732 ;;
8733 esac
8734else
8735 enable_static=yes
8736fi
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747# Check whether --with-pic was given.
8748if test "${with_pic+set}" = set; then :
8749 withval=$with_pic; pic_mode="$withval"
8750else
8751 pic_mode=default
8752fi
8753
8754
8755test -z "$pic_mode" && pic_mode=default
8756
8757
8758
8759
8760
8761
8762
8763 # Check whether --enable-fast-install was given.
8764if test "${enable_fast_install+set}" = set; then :
8765 enableval=$enable_fast_install; p=${PACKAGE-default}
8766 case $enableval in
8767 yes) enable_fast_install=yes ;;
8768 no) enable_fast_install=no ;;
8769 *)
8770 enable_fast_install=no
8771 # Look at the argument we got. We use all the common list separators.
8772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8773 for pkg in $enableval; do
8774 IFS="$lt_save_ifs"
8775 if test "X$pkg" = "X$p"; then
8776 enable_fast_install=yes
8777 fi
8778 done
8779 IFS="$lt_save_ifs"
8780 ;;
8781 esac
8782else
8783 enable_fast_install=yes
8784fi
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796# This can be used to rebuild libtool when needed
8797LIBTOOL_DEPS="$ltmain"
8798
8799# Always use our own libtool.
8800LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827test -z "$LN_S" && LN_S="ln -s"
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842if test -n "${ZSH_VERSION+set}" ; then
8843 setopt NO_GLOB_SUBST
8844fi
8845
8846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8847$as_echo_n "checking for objdir... " >&6; }
8848if ${lt_cv_objdir+:} false; then :
8849 $as_echo_n "(cached) " >&6
8850else
8851 rm -f .libs 2>/dev/null
8852mkdir .libs 2>/dev/null
8853if test -d .libs; then
8854 lt_cv_objdir=.libs
8855else
8856 # MS-DOS does not allow filenames that begin with a dot.
8857 lt_cv_objdir=_libs
8858fi
8859rmdir .libs 2>/dev/null
8860fi
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8862$as_echo "$lt_cv_objdir" >&6; }
8863objdir=$lt_cv_objdir
8864
8865
8866
8867
8868
8869cat >>confdefs.h <<_ACEOF
8870#define LT_OBJDIR "$lt_cv_objdir/"
8871_ACEOF
8872
8873
8874
8875
8876case $host_os in
8877aix3*)
8878 # AIX sometimes has problems with the GCC collect2 program. For some
8879 # reason, if we set the COLLECT_NAMES environment variable, the problems
8880 # vanish in a puff of smoke.
8881 if test "X${COLLECT_NAMES+set}" != Xset; then
8882 COLLECT_NAMES=
8883 export COLLECT_NAMES
8884 fi
8885 ;;
8886esac
8887
8888# Global variables:
8889ofile=libtool
8890can_build_shared=yes
8891
8892# All known linkers require a `.a' archive for static linking (except MSVC,
8893# which needs '.lib').
8894libext=a
8895
8896with_gnu_ld="$lt_cv_prog_gnu_ld"
8897
8898old_CC="$CC"
8899old_CFLAGS="$CFLAGS"
8900
8901# Set sane defaults for various variables
8902test -z "$CC" && CC=cc
8903test -z "$LTCC" && LTCC=$CC
8904test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8905test -z "$LD" && LD=ld
8906test -z "$ac_objext" && ac_objext=o
8907
8908for cc_temp in $compiler""; do
8909 case $cc_temp in
8910 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8911 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8912 \-*) ;;
8913 *) break;;
8914 esac
8915done
8916cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8917
8918
8919# Only perform the check for file, if the check method requires it
8920test -z "$MAGIC_CMD" && MAGIC_CMD=file
8921case $deplibs_check_method in
8922file_magic*)
8923 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8925$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8926if ${lt_cv_path_MAGIC_CMD+:} false; then :
8927 $as_echo_n "(cached) " >&6
8928else
8929 case $MAGIC_CMD in
8930[\\/*] | ?:[\\/]*)
8931 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8932 ;;
8933*)
8934 lt_save_MAGIC_CMD="$MAGIC_CMD"
8935 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8936 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8937 for ac_dir in $ac_dummy; do
8938 IFS="$lt_save_ifs"
8939 test -z "$ac_dir" && ac_dir=.
8940 if test -f $ac_dir/${ac_tool_prefix}file; then
8941 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8942 if test -n "$file_magic_test_file"; then
8943 case $deplibs_check_method in
8944 "file_magic "*)
8945 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8946 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8947 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8948 $EGREP "$file_magic_regex" > /dev/null; then
8949 :
8950 else
8951 cat <<_LT_EOF 1>&2
8952
8953*** Warning: the command libtool uses to detect shared libraries,
8954*** $file_magic_cmd, produces output that libtool cannot recognize.
8955*** The result is that libtool may fail to recognize shared libraries
8956*** as such. This will affect the creation of libtool libraries that
8957*** depend on shared libraries, but programs linked with such libtool
8958*** libraries will work regardless of this problem. Nevertheless, you
8959*** may want to report the problem to your system manager and/or to
8960*** bug-libtool@gnu.org
8961
8962_LT_EOF
8963 fi ;;
8964 esac
8965 fi
8966 break
8967 fi
8968 done
8969 IFS="$lt_save_ifs"
8970 MAGIC_CMD="$lt_save_MAGIC_CMD"
8971 ;;
8972esac
8973fi
8974
8975MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8976if test -n "$MAGIC_CMD"; then
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8978$as_echo "$MAGIC_CMD" >&6; }
8979else
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8981$as_echo "no" >&6; }
8982fi
8983
8984
8985
8986
8987
8988if test -z "$lt_cv_path_MAGIC_CMD"; then
8989 if test -n "$ac_tool_prefix"; then
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8991$as_echo_n "checking for file... " >&6; }
8992if ${lt_cv_path_MAGIC_CMD+:} false; then :
8993 $as_echo_n "(cached) " >&6
8994else
8995 case $MAGIC_CMD in
8996[\\/*] | ?:[\\/]*)
8997 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8998 ;;
8999*)
9000 lt_save_MAGIC_CMD="$MAGIC_CMD"
9001 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9002 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9003 for ac_dir in $ac_dummy; do
9004 IFS="$lt_save_ifs"
9005 test -z "$ac_dir" && ac_dir=.
9006 if test -f $ac_dir/file; then
9007 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9008 if test -n "$file_magic_test_file"; then
9009 case $deplibs_check_method in
9010 "file_magic "*)
9011 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9012 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9013 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9014 $EGREP "$file_magic_regex" > /dev/null; then
9015 :
9016 else
9017 cat <<_LT_EOF 1>&2
9018
9019*** Warning: the command libtool uses to detect shared libraries,
9020*** $file_magic_cmd, produces output that libtool cannot recognize.
9021*** The result is that libtool may fail to recognize shared libraries
9022*** as such. This will affect the creation of libtool libraries that
9023*** depend on shared libraries, but programs linked with such libtool
9024*** libraries will work regardless of this problem. Nevertheless, you
9025*** may want to report the problem to your system manager and/or to
9026*** bug-libtool@gnu.org
9027
9028_LT_EOF
9029 fi ;;
9030 esac
9031 fi
9032 break
9033 fi
9034 done
9035 IFS="$lt_save_ifs"
9036 MAGIC_CMD="$lt_save_MAGIC_CMD"
9037 ;;
9038esac
9039fi
9040
9041MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9042if test -n "$MAGIC_CMD"; then
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9044$as_echo "$MAGIC_CMD" >&6; }
9045else
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9047$as_echo "no" >&6; }
9048fi
9049
9050
9051 else
9052 MAGIC_CMD=:
9053 fi
9054fi
9055
9056 fi
9057 ;;
9058esac
9059
9060# Use C for the default configuration in the libtool script
9061
9062lt_save_CC="$CC"
9063ac_ext=c
9064ac_cpp='$CPP $CPPFLAGS'
9065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9067ac_compiler_gnu=$ac_cv_c_compiler_gnu
9068
9069
9070# Source file extension for C test sources.
9071ac_ext=c
9072
9073# Object file extension for compiled C test sources.
9074objext=o
9075objext=$objext
9076
9077# Code to be used in simple compile tests
9078lt_simple_compile_test_code="int some_variable = 0;"
9079
9080# Code to be used in simple link tests
9081lt_simple_link_test_code='int main(){return(0);}'
9082
9083
9084
9085
9086
9087
9088
9089# If no C compiler was specified, use CC.
9090LTCC=${LTCC-"$CC"}
9091
9092# If no C compiler flags were specified, use CFLAGS.
9093LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9094
9095# Allow CC to be a program name with arguments.
9096compiler=$CC
9097
9098# Save the default compiler, since it gets overwritten when the other
9099# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9100compiler_DEFAULT=$CC
9101
9102# save warnings/boilerplate of simple test code
9103ac_outfile=conftest.$ac_objext
9104echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9105eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9106_lt_compiler_boilerplate=`cat conftest.err`
9107$RM conftest*
9108
9109ac_outfile=conftest.$ac_objext
9110echo "$lt_simple_link_test_code" >conftest.$ac_ext
9111eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9112_lt_linker_boilerplate=`cat conftest.err`
9113$RM -r conftest*
9114
9115
9116## CAVEAT EMPTOR:
9117## There is no encapsulation within the following macros, do not change
9118## the running order or otherwise move them around unless you know exactly
9119## what you are doing...
9120if test -n "$compiler"; then
9121
9122lt_prog_compiler_no_builtin_flag=
9123
9124if test "$GCC" = yes; then
9125 case $cc_basename in
9126 nvcc*)
9127 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9128 *)
9129 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9130 esac
9131
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9133$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9134if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9135 $as_echo_n "(cached) " >&6
9136else
9137 lt_cv_prog_compiler_rtti_exceptions=no
9138 ac_outfile=conftest.$ac_objext
9139 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9140 lt_compiler_flag="-fno-rtti -fno-exceptions"
9141 # Insert the option either (1) after the last *FLAGS variable, or
9142 # (2) before a word containing "conftest.", or (3) at the end.
9143 # Note that $ac_compile itself does not contain backslashes and begins
9144 # with a dollar sign (not a hyphen), so the echo should work correctly.
9145 # The option is referenced via a variable to avoid confusing sed.
9146 lt_compile=`echo "$ac_compile" | $SED \
9147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9149 -e 's:$: $lt_compiler_flag:'`
9150 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9151 (eval "$lt_compile" 2>conftest.err)
9152 ac_status=$?
9153 cat conftest.err >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 if (exit $ac_status) && test -s "$ac_outfile"; then
9156 # The compiler can only warn and ignore the option if not recognized
9157 # So say no if there are warnings other than the usual output.
9158 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9159 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9160 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9161 lt_cv_prog_compiler_rtti_exceptions=yes
9162 fi
9163 fi
9164 $RM conftest*
9165
9166fi
9167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9168$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9169
9170if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9171 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9172else
9173 :
9174fi
9175
9176fi
9177
9178
9179
9180
9181
9182
9183 lt_prog_compiler_wl=
9184lt_prog_compiler_pic=
9185lt_prog_compiler_static=
9186
9187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9188$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9189
9190 if test "$GCC" = yes; then
9191 lt_prog_compiler_wl='-Wl,'
9192 lt_prog_compiler_static='-static'
9193
9194 case $host_os in
9195 aix*)
9196 # All AIX code is PIC.
9197 if test "$host_cpu" = ia64; then
9198 # AIX 5 now supports IA64 processor
9199 lt_prog_compiler_static='-Bstatic'
9200 fi
9201 lt_prog_compiler_pic='-fPIC'
9202 ;;
9203
9204 amigaos*)
9205 case $host_cpu in
9206 powerpc)
9207 # see comment about AmigaOS4 .so support
9208 lt_prog_compiler_pic='-fPIC'
9209 ;;
9210 m68k)
9211 # FIXME: we need at least 68020 code to build shared libraries, but
9212 # adding the `-m68020' flag to GCC prevents building anything better,
9213 # like `-m68040'.
9214 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9215 ;;
9216 esac
9217 ;;
9218
9219 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9220 # PIC is the default for these OSes.
9221 ;;
9222
9223 mingw* | cygwin* | pw32* | os2* | cegcc*)
9224 # This hack is so that the source file can tell whether it is being
9225 # built for inclusion in a dll (and should export symbols for example).
9226 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9227 # (--disable-auto-import) libraries
9228 lt_prog_compiler_pic='-DDLL_EXPORT'
9229 ;;
9230
9231 darwin* | rhapsody*)
9232 # PIC is the default on this platform
9233 # Common symbols not allowed in MH_DYLIB files
9234 lt_prog_compiler_pic='-fno-common'
9235 ;;
9236
9237 haiku*)
9238 # PIC is the default for Haiku.
9239 # The "-static" flag exists, but is broken.
9240 lt_prog_compiler_static=
9241 ;;
9242
9243 hpux*)
9244 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9245 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9246 # sets the default TLS model and affects inlining.
9247 case $host_cpu in
9248 hppa*64*)
9249 # +Z the default
9250 ;;
9251 *)
9252 lt_prog_compiler_pic='-fPIC'
9253 ;;
9254 esac
9255 ;;
9256
9257 interix[3-9]*)
9258 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9259 # Instead, we relocate shared libraries at runtime.
9260 ;;
9261
9262 msdosdjgpp*)
9263 # Just because we use GCC doesn't mean we suddenly get shared libraries
9264 # on systems that don't support them.
9265 lt_prog_compiler_can_build_shared=no
9266 enable_shared=no
9267 ;;
9268
9269 *nto* | *qnx*)
9270 # QNX uses GNU C++, but need to define -shared option too, otherwise
9271 # it will coredump.
9272 lt_prog_compiler_pic='-fPIC -shared'
9273 ;;
9274
9275 sysv4*MP*)
9276 if test -d /usr/nec; then
9277 lt_prog_compiler_pic=-Kconform_pic
9278 fi
9279 ;;
9280
9281 *)
9282 lt_prog_compiler_pic='-fPIC'
9283 ;;
9284 esac
9285
9286 case $cc_basename in
9287 nvcc*) # Cuda Compiler Driver 2.2
9288 lt_prog_compiler_wl='-Xlinker '
9289 lt_prog_compiler_pic='-Xcompiler -fPIC'
9290 ;;
9291 esac
9292 else
9293 # PORTME Check for flag to pass linker flags through the system compiler.
9294 case $host_os in
9295 aix*)
9296 lt_prog_compiler_wl='-Wl,'
9297 if test "$host_cpu" = ia64; then
9298 # AIX 5 now supports IA64 processor
9299 lt_prog_compiler_static='-Bstatic'
9300 else
9301 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9302 fi
9303 ;;
9304
9305 mingw* | cygwin* | pw32* | os2* | cegcc*)
9306 # This hack is so that the source file can tell whether it is being
9307 # built for inclusion in a dll (and should export symbols for example).
9308 lt_prog_compiler_pic='-DDLL_EXPORT'
9309 ;;
9310
9311 hpux9* | hpux10* | hpux11*)
9312 lt_prog_compiler_wl='-Wl,'
9313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9314 # not for PA HP-UX.
9315 case $host_cpu in
9316 hppa*64*|ia64*)
9317 # +Z the default
9318 ;;
9319 *)
9320 lt_prog_compiler_pic='+Z'
9321 ;;
9322 esac
9323 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9324 lt_prog_compiler_static='${wl}-a ${wl}archive'
9325 ;;
9326
9327 irix5* | irix6* | nonstopux*)
9328 lt_prog_compiler_wl='-Wl,'
9329 # PIC (with -KPIC) is the default.
9330 lt_prog_compiler_static='-non_shared'
9331 ;;
9332
9333 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9334 case $cc_basename in
9335 # old Intel for x86_64 which still supported -KPIC.
9336 ecc*)
9337 lt_prog_compiler_wl='-Wl,'
9338 lt_prog_compiler_pic='-KPIC'
9339 lt_prog_compiler_static='-static'
9340 ;;
9341 # icc used to be incompatible with GCC.
9342 # ICC 10 doesn't accept -KPIC any more.
9343 icc* | ifort*)
9344 lt_prog_compiler_wl='-Wl,'
9345 lt_prog_compiler_pic='-fPIC'
9346 lt_prog_compiler_static='-static'
9347 ;;
9348 # Lahey Fortran 8.1.
9349 lf95*)
9350 lt_prog_compiler_wl='-Wl,'
9351 lt_prog_compiler_pic='--shared'
9352 lt_prog_compiler_static='--static'
9353 ;;
9354 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9355 # Portland Group compilers (*not* the Pentium gcc compiler,
9356 # which looks to be a dead project)
9357 lt_prog_compiler_wl='-Wl,'
9358 lt_prog_compiler_pic='-fpic'
9359 lt_prog_compiler_static='-Bstatic'
9360 ;;
9361 ccc*)
9362 lt_prog_compiler_wl='-Wl,'
9363 # All Alpha code is PIC.
9364 lt_prog_compiler_static='-non_shared'
9365 ;;
9366 xl* | bgxl* | bgf* | mpixl*)
9367 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9368 lt_prog_compiler_wl='-Wl,'
9369 lt_prog_compiler_pic='-qpic'
9370 lt_prog_compiler_static='-qstaticlink'
9371 ;;
9372 *)
9373 case `$CC -V 2>&1 | sed 5q` in
9374 *Sun\ F* | *Sun*Fortran*)
9375 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9376 lt_prog_compiler_pic='-KPIC'
9377 lt_prog_compiler_static='-Bstatic'
9378 lt_prog_compiler_wl=''
9379 ;;
9380 *Sun\ C*)
9381 # Sun C 5.9
9382 lt_prog_compiler_pic='-KPIC'
9383 lt_prog_compiler_static='-Bstatic'
9384 lt_prog_compiler_wl='-Wl,'
9385 ;;
9386 esac
9387 ;;
9388 esac
9389 ;;
9390
9391 newsos6)
9392 lt_prog_compiler_pic='-KPIC'
9393 lt_prog_compiler_static='-Bstatic'
9394 ;;
9395
9396 *nto* | *qnx*)
9397 # QNX uses GNU C++, but need to define -shared option too, otherwise
9398 # it will coredump.
9399 lt_prog_compiler_pic='-fPIC -shared'
9400 ;;
9401
9402 osf3* | osf4* | osf5*)
9403 lt_prog_compiler_wl='-Wl,'
9404 # All OSF/1 code is PIC.
9405 lt_prog_compiler_static='-non_shared'
9406 ;;
9407
9408 rdos*)
9409 lt_prog_compiler_static='-non_shared'
9410 ;;
9411
9412 solaris*)
9413 lt_prog_compiler_pic='-KPIC'
9414 lt_prog_compiler_static='-Bstatic'
9415 case $cc_basename in
9416 f77* | f90* | f95*)
9417 lt_prog_compiler_wl='-Qoption ld ';;
9418 *)
9419 lt_prog_compiler_wl='-Wl,';;
9420 esac
9421 ;;
9422
9423 sunos4*)
9424 lt_prog_compiler_wl='-Qoption ld '
9425 lt_prog_compiler_pic='-PIC'
9426 lt_prog_compiler_static='-Bstatic'
9427 ;;
9428
9429 sysv4 | sysv4.2uw2* | sysv4.3*)
9430 lt_prog_compiler_wl='-Wl,'
9431 lt_prog_compiler_pic='-KPIC'
9432 lt_prog_compiler_static='-Bstatic'
9433 ;;
9434
9435 sysv4*MP*)
9436 if test -d /usr/nec ;then
9437 lt_prog_compiler_pic='-Kconform_pic'
9438 lt_prog_compiler_static='-Bstatic'
9439 fi
9440 ;;
9441
9442 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9443 lt_prog_compiler_wl='-Wl,'
9444 lt_prog_compiler_pic='-KPIC'
9445 lt_prog_compiler_static='-Bstatic'
9446 ;;
9447
9448 unicos*)
9449 lt_prog_compiler_wl='-Wl,'
9450 lt_prog_compiler_can_build_shared=no
9451 ;;
9452
9453 uts4*)
9454 lt_prog_compiler_pic='-pic'
9455 lt_prog_compiler_static='-Bstatic'
9456 ;;
9457
9458 *)
9459 lt_prog_compiler_can_build_shared=no
9460 ;;
9461 esac
9462 fi
9463
9464case $host_os in
9465 # For platforms which do not support PIC, -DPIC is meaningless:
9466 *djgpp*)
9467 lt_prog_compiler_pic=
9468 ;;
9469 *)
9470 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9471 ;;
9472esac
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9474$as_echo "$lt_prog_compiler_pic" >&6; }
9475
9476
9477
9478
9479
9480
9481#
9482# Check to make sure the PIC flag actually works.
9483#
9484if test -n "$lt_prog_compiler_pic"; then
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9486$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9487if ${lt_cv_prog_compiler_pic_works+:} false; then :
9488 $as_echo_n "(cached) " >&6
9489else
9490 lt_cv_prog_compiler_pic_works=no
9491 ac_outfile=conftest.$ac_objext
9492 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9493 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9494 # Insert the option either (1) after the last *FLAGS variable, or
9495 # (2) before a word containing "conftest.", or (3) at the end.
9496 # Note that $ac_compile itself does not contain backslashes and begins
9497 # with a dollar sign (not a hyphen), so the echo should work correctly.
9498 # The option is referenced via a variable to avoid confusing sed.
9499 lt_compile=`echo "$ac_compile" | $SED \
9500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9502 -e 's:$: $lt_compiler_flag:'`
9503 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9504 (eval "$lt_compile" 2>conftest.err)
9505 ac_status=$?
9506 cat conftest.err >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 if (exit $ac_status) && test -s "$ac_outfile"; then
9509 # The compiler can only warn and ignore the option if not recognized
9510 # So say no if there are warnings other than the usual output.
9511 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9513 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9514 lt_cv_prog_compiler_pic_works=yes
9515 fi
9516 fi
9517 $RM conftest*
9518
9519fi
9520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9521$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9522
9523if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9524 case $lt_prog_compiler_pic in
9525 "" | " "*) ;;
9526 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9527 esac
9528else
9529 lt_prog_compiler_pic=
9530 lt_prog_compiler_can_build_shared=no
9531fi
9532
9533fi
9534
9535
9536
9537
9538
9539
9540#
9541# Check to make sure the static flag actually works.
9542#
9543wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9545$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9546if ${lt_cv_prog_compiler_static_works+:} false; then :
9547 $as_echo_n "(cached) " >&6
9548else
9549 lt_cv_prog_compiler_static_works=no
9550 save_LDFLAGS="$LDFLAGS"
9551 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9552 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9553 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9554 # The linker can only warn and ignore the option if not recognized
9555 # So say no if there are warnings
9556 if test -s conftest.err; then
9557 # Append any errors to the config.log.
9558 cat conftest.err 1>&5
9559 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9560 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9561 if diff conftest.exp conftest.er2 >/dev/null; then
9562 lt_cv_prog_compiler_static_works=yes
9563 fi
9564 else
9565 lt_cv_prog_compiler_static_works=yes
9566 fi
9567 fi
9568 $RM -r conftest*
9569 LDFLAGS="$save_LDFLAGS"
9570
9571fi
9572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9573$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9574
9575if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9576 :
9577else
9578 lt_prog_compiler_static=
9579fi
9580
9581
9582
9583
9584
9585
9586
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9588$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9589if ${lt_cv_prog_compiler_c_o+:} false; then :
9590 $as_echo_n "(cached) " >&6
9591else
9592 lt_cv_prog_compiler_c_o=no
9593 $RM -r conftest 2>/dev/null
9594 mkdir conftest
9595 cd conftest
9596 mkdir out
9597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9598
9599 lt_compiler_flag="-o out/conftest2.$ac_objext"
9600 # Insert the option either (1) after the last *FLAGS variable, or
9601 # (2) before a word containing "conftest.", or (3) at the end.
9602 # Note that $ac_compile itself does not contain backslashes and begins
9603 # with a dollar sign (not a hyphen), so the echo should work correctly.
9604 lt_compile=`echo "$ac_compile" | $SED \
9605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9607 -e 's:$: $lt_compiler_flag:'`
9608 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9609 (eval "$lt_compile" 2>out/conftest.err)
9610 ac_status=$?
9611 cat out/conftest.err >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9614 then
9615 # The compiler can only warn and ignore the option if not recognized
9616 # So say no if there are warnings
9617 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9618 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9619 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9620 lt_cv_prog_compiler_c_o=yes
9621 fi
9622 fi
9623 chmod u+w . 2>&5
9624 $RM conftest*
9625 # SGI C++ compiler will create directory out/ii_files/ for
9626 # template instantiation
9627 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9628 $RM out/* && rmdir out
9629 cd ..
9630 $RM -r conftest
9631 $RM conftest*
9632
9633fi
9634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9635$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9636
9637
9638
9639
9640
9641
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9643$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9644if ${lt_cv_prog_compiler_c_o+:} false; then :
9645 $as_echo_n "(cached) " >&6
9646else
9647 lt_cv_prog_compiler_c_o=no
9648 $RM -r conftest 2>/dev/null
9649 mkdir conftest
9650 cd conftest
9651 mkdir out
9652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9653
9654 lt_compiler_flag="-o out/conftest2.$ac_objext"
9655 # Insert the option either (1) after the last *FLAGS variable, or
9656 # (2) before a word containing "conftest.", or (3) at the end.
9657 # Note that $ac_compile itself does not contain backslashes and begins
9658 # with a dollar sign (not a hyphen), so the echo should work correctly.
9659 lt_compile=`echo "$ac_compile" | $SED \
9660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9662 -e 's:$: $lt_compiler_flag:'`
9663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9664 (eval "$lt_compile" 2>out/conftest.err)
9665 ac_status=$?
9666 cat out/conftest.err >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9669 then
9670 # The compiler can only warn and ignore the option if not recognized
9671 # So say no if there are warnings
9672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9673 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9674 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9675 lt_cv_prog_compiler_c_o=yes
9676 fi
9677 fi
9678 chmod u+w . 2>&5
9679 $RM conftest*
9680 # SGI C++ compiler will create directory out/ii_files/ for
9681 # template instantiation
9682 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9683 $RM out/* && rmdir out
9684 cd ..
9685 $RM -r conftest
9686 $RM conftest*
9687
9688fi
9689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9690$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9691
9692
9693
9694
9695hard_links="nottested"
9696if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9697 # do not overwrite the value of need_locks provided by the user
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9699$as_echo_n "checking if we can lock with hard links... " >&6; }
9700 hard_links=yes
9701 $RM conftest*
9702 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9703 touch conftest.a
9704 ln conftest.a conftest.b 2>&5 || hard_links=no
9705 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9707$as_echo "$hard_links" >&6; }
9708 if test "$hard_links" = no; then
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9710$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9711 need_locks=warn
9712 fi
9713else
9714 need_locks=no
9715fi
9716
9717
9718
9719
9720
9721
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9723$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9724
9725 runpath_var=
9726 allow_undefined_flag=
9727 always_export_symbols=no
9728 archive_cmds=
9729 archive_expsym_cmds=
9730 compiler_needs_object=no
9731 enable_shared_with_static_runtimes=no
9732 export_dynamic_flag_spec=
9733 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9734 hardcode_automatic=no
9735 hardcode_direct=no
9736 hardcode_direct_absolute=no
9737 hardcode_libdir_flag_spec=
9738 hardcode_libdir_flag_spec_ld=
9739 hardcode_libdir_separator=
9740 hardcode_minus_L=no
9741 hardcode_shlibpath_var=unsupported
9742 inherit_rpath=no
9743 link_all_deplibs=unknown
9744 module_cmds=
9745 module_expsym_cmds=
9746 old_archive_from_new_cmds=
9747 old_archive_from_expsyms_cmds=
9748 thread_safe_flag_spec=
9749 whole_archive_flag_spec=
9750 # include_expsyms should be a list of space-separated symbols to be *always*
9751 # included in the symbol list
9752 include_expsyms=
9753 # exclude_expsyms can be an extended regexp of symbols to exclude
9754 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9755 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9756 # as well as any symbol that contains `d'.
9757 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9758 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9759 # platforms (ab)use it in PIC code, but their linkers get confused if
9760 # the symbol is explicitly referenced. Since portable code cannot
9761 # rely on this symbol name, it's probably fine to never include it in
9762 # preloaded symbol tables.
9763 # Exclude shared library initialization/finalization symbols.
9764 extract_expsyms_cmds=
9765
9766 case $host_os in
9767 cygwin* | mingw* | pw32* | cegcc*)
9768 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9769 # When not using gcc, we currently assume that we are using
9770 # Microsoft Visual C++.
9771 if test "$GCC" != yes; then
9772 with_gnu_ld=no
9773 fi
9774 ;;
9775 interix*)
9776 # we just hope/assume this is gcc and not c89 (= MSVC++)
9777 with_gnu_ld=yes
9778 ;;
9779 openbsd*)
9780 with_gnu_ld=no
9781 ;;
9782 esac
9783
9784 ld_shlibs=yes
9785
9786 # On some targets, GNU ld is compatible enough with the native linker
9787 # that we're better off using the native interface for both.
9788 lt_use_gnu_ld_interface=no
9789 if test "$with_gnu_ld" = yes; then
9790 case $host_os in
9791 aix*)
9792 # The AIX port of GNU ld has always aspired to compatibility
9793 # with the native linker. However, as the warning in the GNU ld
9794 # block says, versions before 2.19.5* couldn't really create working
9795 # shared libraries, regardless of the interface used.
9796 case `$LD -v 2>&1` in
9797 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9798 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9799 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9800 *)
9801 lt_use_gnu_ld_interface=yes
9802 ;;
9803 esac
9804 ;;
9805 *)
9806 lt_use_gnu_ld_interface=yes
9807 ;;
9808 esac
9809 fi
9810
9811 if test "$lt_use_gnu_ld_interface" = yes; then
9812 # If archive_cmds runs LD, not CC, wlarc should be empty
9813 wlarc='${wl}'
9814
9815 # Set some defaults for GNU ld with shared library support. These
9816 # are reset later if shared libraries are not supported. Putting them
9817 # here allows them to be overridden if necessary.
9818 runpath_var=LD_RUN_PATH
9819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9820 export_dynamic_flag_spec='${wl}--export-dynamic'
9821 # ancient GNU ld didn't support --whole-archive et. al.
9822 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9823 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9824 else
9825 whole_archive_flag_spec=
9826 fi
9827 supports_anon_versioning=no
9828 case `$LD -v 2>&1` in
9829 *GNU\ gold*) supports_anon_versioning=yes ;;
9830 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9831 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9832 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9833 *\ 2.11.*) ;; # other 2.11 versions
9834 *) supports_anon_versioning=yes ;;
9835 esac
9836
9837 # See if GNU ld supports shared libraries.
9838 case $host_os in
9839 aix[3-9]*)
9840 # On AIX/PPC, the GNU linker is very broken
9841 if test "$host_cpu" != ia64; then
9842 ld_shlibs=no
9843 cat <<_LT_EOF 1>&2
9844
9845*** Warning: the GNU linker, at least up to release 2.19, is reported
9846*** to be unable to reliably create shared libraries on AIX.
9847*** Therefore, libtool is disabling shared libraries support. If you
9848*** really care for shared libraries, you may want to install binutils
9849*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9850*** You will then need to restart the configuration process.
9851
9852_LT_EOF
9853 fi
9854 ;;
9855
9856 amigaos*)
9857 case $host_cpu in
9858 powerpc)
9859 # see comment about AmigaOS4 .so support
9860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9861 archive_expsym_cmds=''
9862 ;;
9863 m68k)
9864 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)'
9865 hardcode_libdir_flag_spec='-L$libdir'
9866 hardcode_minus_L=yes
9867 ;;
9868 esac
9869 ;;
9870
9871 beos*)
9872 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9873 allow_undefined_flag=unsupported
9874 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9875 # support --undefined. This deserves some investigation. FIXME
9876 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9877 else
9878 ld_shlibs=no
9879 fi
9880 ;;
9881
9882 cygwin* | mingw* | pw32* | cegcc*)
9883 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9884 # as there is no search path for DLLs.
9885 hardcode_libdir_flag_spec='-L$libdir'
9886 export_dynamic_flag_spec='${wl}--export-all-symbols'
9887 allow_undefined_flag=unsupported
9888 always_export_symbols=no
9889 enable_shared_with_static_runtimes=yes
9890 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9891
9892 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9894 # If the export-symbols file already is a .def file (1st line
9895 # is EXPORTS), use it as is; otherwise, prepend...
9896 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9897 cp $export_symbols $output_objdir/$soname.def;
9898 else
9899 echo EXPORTS > $output_objdir/$soname.def;
9900 cat $export_symbols >> $output_objdir/$soname.def;
9901 fi~
9902 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9903 else
9904 ld_shlibs=no
9905 fi
9906 ;;
9907
9908 haiku*)
9909 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9910 link_all_deplibs=yes
9911 ;;
9912
9913 interix[3-9]*)
9914 hardcode_direct=no
9915 hardcode_shlibpath_var=no
9916 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9917 export_dynamic_flag_spec='${wl}-E'
9918 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9919 # Instead, shared libraries are loaded at an image base (0x10000000 by
9920 # default) and relocated if they conflict, which is a slow very memory
9921 # consuming and fragmenting process. To avoid this, we pick a random,
9922 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9923 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9924 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9925 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'
9926 ;;
9927
9928 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9929 tmp_diet=no
9930 if test "$host_os" = linux-dietlibc; then
9931 case $cc_basename in
9932 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9933 esac
9934 fi
9935 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9936 && test "$tmp_diet" = no
9937 then
9938 tmp_addflag=' $pic_flag'
9939 tmp_sharedflag='-shared'
9940 case $cc_basename,$host_cpu in
9941 pgcc*) # Portland Group C compiler
9942 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'
9943 tmp_addflag=' $pic_flag'
9944 ;;
9945 pgf77* | pgf90* | pgf95* | pgfortran*)
9946 # Portland Group f77 and f90 compilers
9947 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'
9948 tmp_addflag=' $pic_flag -Mnomain' ;;
9949 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9950 tmp_addflag=' -i_dynamic' ;;
9951 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9952 tmp_addflag=' -i_dynamic -nofor_main' ;;
9953 ifc* | ifort*) # Intel Fortran compiler
9954 tmp_addflag=' -nofor_main' ;;
9955 lf95*) # Lahey Fortran 8.1
9956 whole_archive_flag_spec=
9957 tmp_sharedflag='--shared' ;;
9958 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9959 tmp_sharedflag='-qmkshrobj'
9960 tmp_addflag= ;;
9961 nvcc*) # Cuda Compiler Driver 2.2
9962 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'
9963 compiler_needs_object=yes
9964 ;;
9965 esac
9966 case `$CC -V 2>&1 | sed 5q` in
9967 *Sun\ C*) # Sun C 5.9
9968 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'
9969 compiler_needs_object=yes
9970 tmp_sharedflag='-G' ;;
9971 *Sun\ F*) # Sun Fortran 8.3
9972 tmp_sharedflag='-G' ;;
9973 esac
9974 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9975
9976 if test "x$supports_anon_versioning" = xyes; then
9977 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9978 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9979 echo "local: *; };" >> $output_objdir/$libname.ver~
9980 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9981 fi
9982
9983 case $cc_basename in
9984 xlf* | bgf* | bgxlf* | mpixlf*)
9985 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9986 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9987 hardcode_libdir_flag_spec=
9988 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9989 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9990 if test "x$supports_anon_versioning" = xyes; then
9991 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9992 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9993 echo "local: *; };" >> $output_objdir/$libname.ver~
9994 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9995 fi
9996 ;;
9997 esac
9998 else
9999 ld_shlibs=no
10000 fi
10001 ;;
10002
10003 netbsd*)
10004 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10005 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10006 wlarc=
10007 else
10008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10009 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10010 fi
10011 ;;
10012
10013 solaris*)
10014 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10015 ld_shlibs=no
10016 cat <<_LT_EOF 1>&2
10017
10018*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10019*** create shared libraries on Solaris systems. Therefore, libtool
10020*** is disabling shared libraries support. We urge you to upgrade GNU
10021*** binutils to release 2.9.1 or newer. Another option is to modify
10022*** your PATH or compiler configuration so that the native linker is
10023*** used, and then restart.
10024
10025_LT_EOF
10026 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10028 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10029 else
10030 ld_shlibs=no
10031 fi
10032 ;;
10033
10034 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10035 case `$LD -v 2>&1` in
10036 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10037 ld_shlibs=no
10038 cat <<_LT_EOF 1>&2
10039
10040*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10041*** reliably create shared libraries on SCO systems. Therefore, libtool
10042*** is disabling shared libraries support. We urge you to upgrade GNU
10043*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10044*** your PATH or compiler configuration so that the native linker is
10045*** used, and then restart.
10046
10047_LT_EOF
10048 ;;
10049 *)
10050 # For security reasons, it is highly recommended that you always
10051 # use absolute paths for naming shared libraries, and exclude the
10052 # DT_RUNPATH tag from executables and libraries. But doing so
10053 # requires that you compile everything twice, which is a pain.
10054 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10055 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10057 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10058 else
10059 ld_shlibs=no
10060 fi
10061 ;;
10062 esac
10063 ;;
10064
10065 sunos4*)
10066 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10067 wlarc=
10068 hardcode_direct=yes
10069 hardcode_shlibpath_var=no
10070 ;;
10071
10072 *)
10073 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10075 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10076 else
10077 ld_shlibs=no
10078 fi
10079 ;;
10080 esac
10081
10082 if test "$ld_shlibs" = no; then
10083 runpath_var=
10084 hardcode_libdir_flag_spec=
10085 export_dynamic_flag_spec=
10086 whole_archive_flag_spec=
10087 fi
10088 else
10089 # PORTME fill in a description of your system's linker (not GNU ld)
10090 case $host_os in
10091 aix3*)
10092 allow_undefined_flag=unsupported
10093 always_export_symbols=yes
10094 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'
10095 # Note: this linker hardcodes the directories in LIBPATH if there
10096 # are no directories specified by -L.
10097 hardcode_minus_L=yes
10098 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10099 # Neither direct hardcoding nor static linking is supported with a
10100 # broken collect2.
10101 hardcode_direct=unsupported
10102 fi
10103 ;;
10104
10105 aix[4-9]*)
10106 if test "$host_cpu" = ia64; then
10107 # On IA64, the linker does run time linking by default, so we don't
10108 # have to do anything special.
10109 aix_use_runtimelinking=no
10110 exp_sym_flag='-Bexport'
10111 no_entry_flag=""
10112 else
10113 # If we're using GNU nm, then we don't want the "-C" option.
10114 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10115 # Also, AIX nm treats weak defined symbols like other global
10116 # defined symbols, whereas GNU nm marks them as "W".
10117 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10118 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'
10119 else
10120 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'
10121 fi
10122 aix_use_runtimelinking=no
10123
10124 # Test if we are trying to use run time linking or normal
10125 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10126 # need to do runtime linking.
10127 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10128 for ld_flag in $LDFLAGS; do
10129 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10130 aix_use_runtimelinking=yes
10131 break
10132 fi
10133 done
10134 ;;
10135 esac
10136
10137 exp_sym_flag='-bexport'
10138 no_entry_flag='-bnoentry'
10139 fi
10140
10141 # When large executables or shared objects are built, AIX ld can
10142 # have problems creating the table of contents. If linking a library
10143 # or program results in "error TOC overflow" add -mminimal-toc to
10144 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10145 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10146
10147 archive_cmds=''
10148 hardcode_direct=yes
10149 hardcode_direct_absolute=yes
10150 hardcode_libdir_separator=':'
10151 link_all_deplibs=yes
10152 file_list_spec='${wl}-f,'
10153
10154 if test "$GCC" = yes; then
10155 case $host_os in aix4.[012]|aix4.[012].*)
10156 # We only want to do this on AIX 4.2 and lower, the check
10157 # below for broken collect2 doesn't work under 4.3+
10158 collect2name=`${CC} -print-prog-name=collect2`
10159 if test -f "$collect2name" &&
10160 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10161 then
10162 # We have reworked collect2
10163 :
10164 else
10165 # We have old collect2
10166 hardcode_direct=unsupported
10167 # It fails to find uninstalled libraries when the uninstalled
10168 # path is not listed in the libpath. Setting hardcode_minus_L
10169 # to unsupported forces relinking
10170 hardcode_minus_L=yes
10171 hardcode_libdir_flag_spec='-L$libdir'
10172 hardcode_libdir_separator=
10173 fi
10174 ;;
10175 esac
10176 shared_flag='-shared'
10177 if test "$aix_use_runtimelinking" = yes; then
10178 shared_flag="$shared_flag "'${wl}-G'
10179 fi
10180 else
10181 # not using gcc
10182 if test "$host_cpu" = ia64; then
10183 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10184 # chokes on -Wl,-G. The following line is correct:
10185 shared_flag='-G'
10186 else
10187 if test "$aix_use_runtimelinking" = yes; then
10188 shared_flag='${wl}-G'
10189 else
10190 shared_flag='${wl}-bM:SRE'
10191 fi
10192 fi
10193 fi
10194
10195 export_dynamic_flag_spec='${wl}-bexpall'
10196 # It seems that -bexpall does not export symbols beginning with
10197 # underscore (_), so it is better to generate a list of symbols to export.
10198 always_export_symbols=yes
10199 if test "$aix_use_runtimelinking" = yes; then
10200 # Warning - without using the other runtime loading flags (-brtl),
10201 # -berok will link without error, but may produce a broken library.
10202 allow_undefined_flag='-berok'
10203 # Determine the default libpath from the value encoded in an
10204 # empty executable.
10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206/* end confdefs.h. */
10207
10208int
10209main ()
10210{
10211
10212 ;
10213 return 0;
10214}
10215_ACEOF
10216if ac_fn_c_try_link "$LINENO"; then :
10217
10218lt_aix_libpath_sed='
10219 /Import File Strings/,/^$/ {
10220 /^0/ {
10221 s/^0 *\(.*\)$/\1/
10222 p
10223 }
10224 }'
10225aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10226# Check for a 64-bit object if we didn't find anything.
10227if test -z "$aix_libpath"; then
10228 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10229fi
10230fi
10231rm -f core conftest.err conftest.$ac_objext \
10232 conftest$ac_exeext conftest.$ac_ext
10233if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10234
10235 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10236 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"
10237 else
10238 if test "$host_cpu" = ia64; then
10239 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10240 allow_undefined_flag="-z nodefs"
10241 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"
10242 else
10243 # Determine the default libpath from the value encoded in an
10244 # empty executable.
10245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10246/* end confdefs.h. */
10247
10248int
10249main ()
10250{
10251
10252 ;
10253 return 0;
10254}
10255_ACEOF
10256if ac_fn_c_try_link "$LINENO"; then :
10257
10258lt_aix_libpath_sed='
10259 /Import File Strings/,/^$/ {
10260 /^0/ {
10261 s/^0 *\(.*\)$/\1/
10262 p
10263 }
10264 }'
10265aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10266# Check for a 64-bit object if we didn't find anything.
10267if test -z "$aix_libpath"; then
10268 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10269fi
10270fi
10271rm -f core conftest.err conftest.$ac_objext \
10272 conftest$ac_exeext conftest.$ac_ext
10273if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10274
10275 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10276 # Warning - without using the other run time loading flags,
10277 # -berok will link without error, but may produce a broken library.
10278 no_undefined_flag=' ${wl}-bernotok'
10279 allow_undefined_flag=' ${wl}-berok'
10280 if test "$with_gnu_ld" = yes; then
10281 # We only use this code for GNU lds that support --whole-archive.
10282 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10283 else
10284 # Exported symbols can be pulled into shared objects from archives
10285 whole_archive_flag_spec='$convenience'
10286 fi
10287 archive_cmds_need_lc=yes
10288 # This is similar to how AIX traditionally builds its shared libraries.
10289 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'
10290 fi
10291 fi
10292 ;;
10293
10294 amigaos*)
10295 case $host_cpu in
10296 powerpc)
10297 # see comment about AmigaOS4 .so support
10298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10299 archive_expsym_cmds=''
10300 ;;
10301 m68k)
10302 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)'
10303 hardcode_libdir_flag_spec='-L$libdir'
10304 hardcode_minus_L=yes
10305 ;;
10306 esac
10307 ;;
10308
10309 bsdi[45]*)
10310 export_dynamic_flag_spec=-rdynamic
10311 ;;
10312
10313 cygwin* | mingw* | pw32* | cegcc*)
10314 # When not using gcc, we currently assume that we are using
10315 # Microsoft Visual C++.
10316 # hardcode_libdir_flag_spec is actually meaningless, as there is
10317 # no search path for DLLs.
10318 hardcode_libdir_flag_spec=' '
10319 allow_undefined_flag=unsupported
10320 # Tell ltmain to make .lib files, not .a files.
10321 libext=lib
10322 # Tell ltmain to make .dll files, not .so files.
10323 shrext_cmds=".dll"
10324 # FIXME: Setting linknames here is a bad hack.
10325 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10326 # The linker will automatically build a .lib file if we build a DLL.
10327 old_archive_from_new_cmds='true'
10328 # FIXME: Should let the user specify the lib program.
10329 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10330 fix_srcfile_path='`cygpath -w "$srcfile"`'
10331 enable_shared_with_static_runtimes=yes
10332 ;;
10333
10334 darwin* | rhapsody*)
10335
10336
10337 archive_cmds_need_lc=no
10338 hardcode_direct=no
10339 hardcode_automatic=yes
10340 hardcode_shlibpath_var=unsupported
10341 if test "$lt_cv_ld_force_load" = "yes"; then
10342 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\"`'
10343 else
10344 whole_archive_flag_spec=''
10345 fi
10346 link_all_deplibs=yes
10347 allow_undefined_flag="$_lt_dar_allow_undefined"
10348 case $cc_basename in
10349 ifort*) _lt_dar_can_shared=yes ;;
10350 *) _lt_dar_can_shared=$GCC ;;
10351 esac
10352 if test "$_lt_dar_can_shared" = "yes"; then
10353 output_verbose_link_cmd=func_echo_all
10354 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10355 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10356 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}"
10357 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}"
10358
10359 else
10360 ld_shlibs=no
10361 fi
10362
10363 ;;
10364
10365 dgux*)
10366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10367 hardcode_libdir_flag_spec='-L$libdir'
10368 hardcode_shlibpath_var=no
10369 ;;
10370
10371 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10372 # support. Future versions do this automatically, but an explicit c++rt0.o
10373 # does not break anything, and helps significantly (at the cost of a little
10374 # extra space).
10375 freebsd2.2*)
10376 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10377 hardcode_libdir_flag_spec='-R$libdir'
10378 hardcode_direct=yes
10379 hardcode_shlibpath_var=no
10380 ;;
10381
10382 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10383 freebsd2.*)
10384 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10385 hardcode_direct=yes
10386 hardcode_minus_L=yes
10387 hardcode_shlibpath_var=no
10388 ;;
10389
10390 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10391 freebsd* | dragonfly*)
10392 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10393 hardcode_libdir_flag_spec='-R$libdir'
10394 hardcode_direct=yes
10395 hardcode_shlibpath_var=no
10396 ;;
10397
10398 hpux9*)
10399 if test "$GCC" = yes; then
10400 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'
10401 else
10402 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'
10403 fi
10404 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10405 hardcode_libdir_separator=:
10406 hardcode_direct=yes
10407
10408 # hardcode_minus_L: Not really in the search PATH,
10409 # but as the default location of the library.
10410 hardcode_minus_L=yes
10411 export_dynamic_flag_spec='${wl}-E'
10412 ;;
10413
10414 hpux10*)
10415 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10416 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10417 else
10418 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10419 fi
10420 if test "$with_gnu_ld" = no; then
10421 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10422 hardcode_libdir_flag_spec_ld='+b $libdir'
10423 hardcode_libdir_separator=:
10424 hardcode_direct=yes
10425 hardcode_direct_absolute=yes
10426 export_dynamic_flag_spec='${wl}-E'
10427 # hardcode_minus_L: Not really in the search PATH,
10428 # but as the default location of the library.
10429 hardcode_minus_L=yes
10430 fi
10431 ;;
10432
10433 hpux11*)
10434 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10435 case $host_cpu in
10436 hppa*64*)
10437 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10438 ;;
10439 ia64*)
10440 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10441 ;;
10442 *)
10443 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10444 ;;
10445 esac
10446 else
10447 case $host_cpu in
10448 hppa*64*)
10449 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10450 ;;
10451 ia64*)
10452 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10453 ;;
10454 *)
10455
10456 # Older versions of the 11.00 compiler do not understand -b yet
10457 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10459$as_echo_n "checking if $CC understands -b... " >&6; }
10460if ${lt_cv_prog_compiler__b+:} false; then :
10461 $as_echo_n "(cached) " >&6
10462else
10463 lt_cv_prog_compiler__b=no
10464 save_LDFLAGS="$LDFLAGS"
10465 LDFLAGS="$LDFLAGS -b"
10466 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10467 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10468 # The linker can only warn and ignore the option if not recognized
10469 # So say no if there are warnings
10470 if test -s conftest.err; then
10471 # Append any errors to the config.log.
10472 cat conftest.err 1>&5
10473 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10475 if diff conftest.exp conftest.er2 >/dev/null; then
10476 lt_cv_prog_compiler__b=yes
10477 fi
10478 else
10479 lt_cv_prog_compiler__b=yes
10480 fi
10481 fi
10482 $RM -r conftest*
10483 LDFLAGS="$save_LDFLAGS"
10484
10485fi
10486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10487$as_echo "$lt_cv_prog_compiler__b" >&6; }
10488
10489if test x"$lt_cv_prog_compiler__b" = xyes; then
10490 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10491else
10492 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10493fi
10494
10495 ;;
10496 esac
10497 fi
10498 if test "$with_gnu_ld" = no; then
10499 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10500 hardcode_libdir_separator=:
10501
10502 case $host_cpu in
10503 hppa*64*|ia64*)
10504 hardcode_direct=no
10505 hardcode_shlibpath_var=no
10506 ;;
10507 *)
10508 hardcode_direct=yes
10509 hardcode_direct_absolute=yes
10510 export_dynamic_flag_spec='${wl}-E'
10511
10512 # hardcode_minus_L: Not really in the search PATH,
10513 # but as the default location of the library.
10514 hardcode_minus_L=yes
10515 ;;
10516 esac
10517 fi
10518 ;;
10519
10520 irix5* | irix6* | nonstopux*)
10521 if test "$GCC" = yes; then
10522 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'
10523 # Try to use the -exported_symbol ld option, if it does not
10524 # work, assume that -exports_file does not work either and
10525 # implicitly export all symbols.
10526 save_LDFLAGS="$LDFLAGS"
10527 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529/* end confdefs.h. */
10530int foo(void) {}
10531_ACEOF
10532if ac_fn_c_try_link "$LINENO"; then :
10533 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'
10534
10535fi
10536rm -f core conftest.err conftest.$ac_objext \
10537 conftest$ac_exeext conftest.$ac_ext
10538 LDFLAGS="$save_LDFLAGS"
10539 else
10540 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'
10541 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'
10542 fi
10543 archive_cmds_need_lc='no'
10544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10545 hardcode_libdir_separator=:
10546 inherit_rpath=yes
10547 link_all_deplibs=yes
10548 ;;
10549
10550 netbsd*)
10551 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10553 else
10554 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10555 fi
10556 hardcode_libdir_flag_spec='-R$libdir'
10557 hardcode_direct=yes
10558 hardcode_shlibpath_var=no
10559 ;;
10560
10561 newsos6)
10562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10563 hardcode_direct=yes
10564 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10565 hardcode_libdir_separator=:
10566 hardcode_shlibpath_var=no
10567 ;;
10568
10569 *nto* | *qnx*)
10570 ;;
10571
10572 openbsd*)
10573 if test -f /usr/libexec/ld.so; then
10574 hardcode_direct=yes
10575 hardcode_shlibpath_var=no
10576 hardcode_direct_absolute=yes
10577 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10578 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10579 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10580 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10581 export_dynamic_flag_spec='${wl}-E'
10582 else
10583 case $host_os in
10584 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10585 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10586 hardcode_libdir_flag_spec='-R$libdir'
10587 ;;
10588 *)
10589 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10590 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10591 ;;
10592 esac
10593 fi
10594 else
10595 ld_shlibs=no
10596 fi
10597 ;;
10598
10599 os2*)
10600 hardcode_libdir_flag_spec='-L$libdir'
10601 hardcode_minus_L=yes
10602 allow_undefined_flag=unsupported
10603 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'
10604 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10605 ;;
10606
10607 osf3*)
10608 if test "$GCC" = yes; then
10609 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10610 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'
10611 else
10612 allow_undefined_flag=' -expect_unresolved \*'
10613 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'
10614 fi
10615 archive_cmds_need_lc='no'
10616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10617 hardcode_libdir_separator=:
10618 ;;
10619
10620 osf4* | osf5*) # as osf3* with the addition of -msym flag
10621 if test "$GCC" = yes; then
10622 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10623 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'
10624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10625 else
10626 allow_undefined_flag=' -expect_unresolved \*'
10627 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'
10628 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~
10629 $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'
10630
10631 # Both c and cxx compiler support -rpath directly
10632 hardcode_libdir_flag_spec='-rpath $libdir'
10633 fi
10634 archive_cmds_need_lc='no'
10635 hardcode_libdir_separator=:
10636 ;;
10637
10638 solaris*)
10639 no_undefined_flag=' -z defs'
10640 if test "$GCC" = yes; then
10641 wlarc='${wl}'
10642 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10643 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10644 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10645 else
10646 case `$CC -V 2>&1` in
10647 *"Compilers 5.0"*)
10648 wlarc=''
10649 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10650 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10651 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10652 ;;
10653 *)
10654 wlarc='${wl}'
10655 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10656 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10657 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10658 ;;
10659 esac
10660 fi
10661 hardcode_libdir_flag_spec='-R$libdir'
10662 hardcode_shlibpath_var=no
10663 case $host_os in
10664 solaris2.[0-5] | solaris2.[0-5].*) ;;
10665 *)
10666 # The compiler driver will combine and reorder linker options,
10667 # but understands `-z linker_flag'. GCC discards it without `$wl',
10668 # but is careful enough not to reorder.
10669 # Supported since Solaris 2.6 (maybe 2.5.1?)
10670 if test "$GCC" = yes; then
10671 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10672 else
10673 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10674 fi
10675 ;;
10676 esac
10677 link_all_deplibs=yes
10678 ;;
10679
10680 sunos4*)
10681 if test "x$host_vendor" = xsequent; then
10682 # Use $CC to link under sequent, because it throws in some extra .o
10683 # files that make .init and .fini sections work.
10684 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10685 else
10686 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10687 fi
10688 hardcode_libdir_flag_spec='-L$libdir'
10689 hardcode_direct=yes
10690 hardcode_minus_L=yes
10691 hardcode_shlibpath_var=no
10692 ;;
10693
10694 sysv4)
10695 case $host_vendor in
10696 sni)
10697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10698 hardcode_direct=yes # is this really true???
10699 ;;
10700 siemens)
10701 ## LD is ld it makes a PLAMLIB
10702 ## CC just makes a GrossModule.
10703 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10704 reload_cmds='$CC -r -o $output$reload_objs'
10705 hardcode_direct=no
10706 ;;
10707 motorola)
10708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10709 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10710 ;;
10711 esac
10712 runpath_var='LD_RUN_PATH'
10713 hardcode_shlibpath_var=no
10714 ;;
10715
10716 sysv4.3*)
10717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10718 hardcode_shlibpath_var=no
10719 export_dynamic_flag_spec='-Bexport'
10720 ;;
10721
10722 sysv4*MP*)
10723 if test -d /usr/nec; then
10724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10725 hardcode_shlibpath_var=no
10726 runpath_var=LD_RUN_PATH
10727 hardcode_runpath_var=yes
10728 ld_shlibs=yes
10729 fi
10730 ;;
10731
10732 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10733 no_undefined_flag='${wl}-z,text'
10734 archive_cmds_need_lc=no
10735 hardcode_shlibpath_var=no
10736 runpath_var='LD_RUN_PATH'
10737
10738 if test "$GCC" = yes; then
10739 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10740 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10741 else
10742 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10743 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10744 fi
10745 ;;
10746
10747 sysv5* | sco3.2v5* | sco5v6*)
10748 # Note: We can NOT use -z defs as we might desire, because we do not
10749 # link with -lc, and that would cause any symbols used from libc to
10750 # always be unresolved, which means just about no library would
10751 # ever link correctly. If we're not using GNU ld we use -z text
10752 # though, which does catch some bad symbols but isn't as heavy-handed
10753 # as -z defs.
10754 no_undefined_flag='${wl}-z,text'
10755 allow_undefined_flag='${wl}-z,nodefs'
10756 archive_cmds_need_lc=no
10757 hardcode_shlibpath_var=no
10758 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10759 hardcode_libdir_separator=':'
10760 link_all_deplibs=yes
10761 export_dynamic_flag_spec='${wl}-Bexport'
10762 runpath_var='LD_RUN_PATH'
10763
10764 if test "$GCC" = yes; then
10765 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10766 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10767 else
10768 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10769 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10770 fi
10771 ;;
10772
10773 uts4*)
10774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10775 hardcode_libdir_flag_spec='-L$libdir'
10776 hardcode_shlibpath_var=no
10777 ;;
10778
10779 *)
10780 ld_shlibs=no
10781 ;;
10782 esac
10783
10784 if test x$host_vendor = xsni; then
10785 case $host in
10786 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10787 export_dynamic_flag_spec='${wl}-Blargedynsym'
10788 ;;
10789 esac
10790 fi
10791 fi
10792
10793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10794$as_echo "$ld_shlibs" >&6; }
10795test "$ld_shlibs" = no && can_build_shared=no
10796
10797with_gnu_ld=$with_gnu_ld
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813#
10814# Do we need to explicitly link libc?
10815#
10816case "x$archive_cmds_need_lc" in
10817x|xyes)
10818 # Assume -lc should be added
10819 archive_cmds_need_lc=yes
10820
10821 if test "$enable_shared" = yes && test "$GCC" = yes; then
10822 case $archive_cmds in
10823 *'~'*)
10824 # FIXME: we may have to deal with multi-command sequences.
10825 ;;
10826 '$CC '*)
10827 # Test whether the compiler implicitly links with -lc since on some
10828 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10829 # to ld, don't add -lc before -lgcc.
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10831$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10832if ${lt_cv_archive_cmds_need_lc+:} false; then :
10833 $as_echo_n "(cached) " >&6
10834else
10835 $RM conftest*
10836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10837
10838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10839 (eval $ac_compile) 2>&5
10840 ac_status=$?
10841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10842 test $ac_status = 0; } 2>conftest.err; then
10843 soname=conftest
10844 lib=conftest
10845 libobjs=conftest.$ac_objext
10846 deplibs=
10847 wl=$lt_prog_compiler_wl
10848 pic_flag=$lt_prog_compiler_pic
10849 compiler_flags=-v
10850 linker_flags=-v
10851 verstring=
10852 output_objdir=.
10853 libname=conftest
10854 lt_save_allow_undefined_flag=$allow_undefined_flag
10855 allow_undefined_flag=
10856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10857 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10858 ac_status=$?
10859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10860 test $ac_status = 0; }
10861 then
10862 lt_cv_archive_cmds_need_lc=no
10863 else
10864 lt_cv_archive_cmds_need_lc=yes
10865 fi
10866 allow_undefined_flag=$lt_save_allow_undefined_flag
10867 else
10868 cat conftest.err 1>&5
10869 fi
10870 $RM conftest*
10871
10872fi
10873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10874$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10875 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10876 ;;
10877 esac
10878 fi
10879 ;;
10880esac
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11039$as_echo_n "checking dynamic linker characteristics... " >&6; }
11040
11041if test "$GCC" = yes; then
11042 case $host_os in
11043 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11044 *) lt_awk_arg="/^libraries:/" ;;
11045 esac
11046 case $host_os in
11047 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11048 *) lt_sed_strip_eq="s,=/,/,g" ;;
11049 esac
11050 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11051 case $lt_search_path_spec in
11052 *\;*)
11053 # if the path contains ";" then we assume it to be the separator
11054 # otherwise default to the standard path separator (i.e. ":") - it is
11055 # assumed that no part of a normal pathname contains ";" but that should
11056 # okay in the real world where ";" in dirpaths is itself problematic.
11057 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11058 ;;
11059 *)
11060 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11061 ;;
11062 esac
11063 # Ok, now we have the path, separated by spaces, we can step through it
11064 # and add multilib dir if necessary.
11065 lt_tmp_lt_search_path_spec=
11066 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11067 for lt_sys_path in $lt_search_path_spec; do
11068 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11069 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11070 else
11071 test -d "$lt_sys_path" && \
11072 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11073 fi
11074 done
11075 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11076BEGIN {RS=" "; FS="/|\n";} {
11077 lt_foo="";
11078 lt_count=0;
11079 for (lt_i = NF; lt_i > 0; lt_i--) {
11080 if ($lt_i != "" && $lt_i != ".") {
11081 if ($lt_i == "..") {
11082 lt_count++;
11083 } else {
11084 if (lt_count == 0) {
11085 lt_foo="/" $lt_i lt_foo;
11086 } else {
11087 lt_count--;
11088 }
11089 }
11090 }
11091 }
11092 if (lt_foo != "") { lt_freq[lt_foo]++; }
11093 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11094}'`
11095 # AWK program above erroneously prepends '/' to C:/dos/paths
11096 # for these hosts.
11097 case $host_os in
11098 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11099 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11100 esac
11101 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11102else
11103 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11104fi
11105library_names_spec=
11106libname_spec='lib$name'
11107soname_spec=
11108shrext_cmds=".so"
11109postinstall_cmds=
11110postuninstall_cmds=
11111finish_cmds=
11112finish_eval=
11113shlibpath_var=
11114shlibpath_overrides_runpath=unknown
11115version_type=none
11116dynamic_linker="$host_os ld.so"
11117sys_lib_dlsearch_path_spec="/lib /usr/lib"
11118need_lib_prefix=unknown
11119hardcode_into_libs=no
11120
11121# when you set need_version to no, make sure it does not cause -set_version
11122# flags to be left without arguments
11123need_version=unknown
11124
11125case $host_os in
11126aix3*)
11127 version_type=linux
11128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11129 shlibpath_var=LIBPATH
11130
11131 # AIX 3 has no versioning support, so we append a major version to the name.
11132 soname_spec='${libname}${release}${shared_ext}$major'
11133 ;;
11134
11135aix[4-9]*)
11136 version_type=linux
11137 need_lib_prefix=no
11138 need_version=no
11139 hardcode_into_libs=yes
11140 if test "$host_cpu" = ia64; then
11141 # AIX 5 supports IA64
11142 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 else
11145 # With GCC up to 2.95.x, collect2 would create an import file
11146 # for dependence libraries. The import file would start with
11147 # the line `#! .'. This would cause the generated library to
11148 # depend on `.', always an invalid library. This was fixed in
11149 # development snapshots of GCC prior to 3.0.
11150 case $host_os in
11151 aix4 | aix4.[01] | aix4.[01].*)
11152 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11153 echo ' yes '
11154 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11155 :
11156 else
11157 can_build_shared=no
11158 fi
11159 ;;
11160 esac
11161 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11162 # soname into executable. Probably we can add versioning support to
11163 # collect2, so additional links can be useful in future.
11164 if test "$aix_use_runtimelinking" = yes; then
11165 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11166 # instead of lib<name>.a to let people know that these are not
11167 # typical AIX shared libraries.
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169 else
11170 # We preserve .a as extension for shared libraries through AIX4.2
11171 # and later when we are not doing run time linking.
11172 library_names_spec='${libname}${release}.a $libname.a'
11173 soname_spec='${libname}${release}${shared_ext}$major'
11174 fi
11175 shlibpath_var=LIBPATH
11176 fi
11177 ;;
11178
11179amigaos*)
11180 case $host_cpu in
11181 powerpc)
11182 # Since July 2007 AmigaOS4 officially supports .so libraries.
11183 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185 ;;
11186 m68k)
11187 library_names_spec='$libname.ixlibrary $libname.a'
11188 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11189 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'
11190 ;;
11191 esac
11192 ;;
11193
11194beos*)
11195 library_names_spec='${libname}${shared_ext}'
11196 dynamic_linker="$host_os ld.so"
11197 shlibpath_var=LIBRARY_PATH
11198 ;;
11199
11200bsdi[45]*)
11201 version_type=linux
11202 need_version=no
11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204 soname_spec='${libname}${release}${shared_ext}$major'
11205 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11206 shlibpath_var=LD_LIBRARY_PATH
11207 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11208 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11209 # the default ld.so.conf also contains /usr/contrib/lib and
11210 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11211 # libtool to hard-code these into programs
11212 ;;
11213
11214cygwin* | mingw* | pw32* | cegcc*)
11215 version_type=windows
11216 shrext_cmds=".dll"
11217 need_version=no
11218 need_lib_prefix=no
11219
11220 case $GCC,$host_os in
11221 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11222 library_names_spec='$libname.dll.a'
11223 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11224 postinstall_cmds='base_file=`basename \${file}`~
11225 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11226 dldir=$destdir/`dirname \$dlpath`~
11227 test -d \$dldir || mkdir -p \$dldir~
11228 $install_prog $dir/$dlname \$dldir/$dlname~
11229 chmod a+x \$dldir/$dlname~
11230 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11231 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11232 fi'
11233 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11234 dlpath=$dir/\$dldll~
11235 $RM \$dlpath'
11236 shlibpath_overrides_runpath=yes
11237
11238 case $host_os in
11239 cygwin*)
11240 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11241 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11242
11243 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11244 ;;
11245 mingw* | cegcc*)
11246 # MinGW DLLs use traditional 'lib' prefix
11247 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11248 ;;
11249 pw32*)
11250 # pw32 DLLs use 'pw' prefix rather than 'lib'
11251 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11252 ;;
11253 esac
11254 ;;
11255
11256 *)
11257 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11258 ;;
11259 esac
11260 dynamic_linker='Win32 ld.exe'
11261 # FIXME: first we should search . and the directory the executable is in
11262 shlibpath_var=PATH
11263 ;;
11264
11265darwin* | rhapsody*)
11266 dynamic_linker="$host_os dyld"
11267 version_type=darwin
11268 need_lib_prefix=no
11269 need_version=no
11270 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11271 soname_spec='${libname}${release}${major}$shared_ext'
11272 shlibpath_overrides_runpath=yes
11273 shlibpath_var=DYLD_LIBRARY_PATH
11274 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11275
11276 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11277 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11278 ;;
11279
11280dgux*)
11281 version_type=linux
11282 need_lib_prefix=no
11283 need_version=no
11284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11285 soname_spec='${libname}${release}${shared_ext}$major'
11286 shlibpath_var=LD_LIBRARY_PATH
11287 ;;
11288
11289freebsd* | dragonfly*)
11290 # DragonFly does not have aout. When/if they implement a new
11291 # versioning mechanism, adjust this.
11292 if test -x /usr/bin/objformat; then
11293 objformat=`/usr/bin/objformat`
11294 else
11295 case $host_os in
11296 freebsd[23].*) objformat=aout ;;
11297 *) objformat=elf ;;
11298 esac
11299 fi
11300 version_type=freebsd-$objformat
11301 case $version_type in
11302 freebsd-elf*)
11303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11304 need_version=no
11305 need_lib_prefix=no
11306 ;;
11307 freebsd-*)
11308 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11309 need_version=yes
11310 ;;
11311 esac
11312 shlibpath_var=LD_LIBRARY_PATH
11313 case $host_os in
11314 freebsd2.*)
11315 shlibpath_overrides_runpath=yes
11316 ;;
11317 freebsd3.[01]* | freebsdelf3.[01]*)
11318 shlibpath_overrides_runpath=yes
11319 hardcode_into_libs=yes
11320 ;;
11321 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11322 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11323 shlibpath_overrides_runpath=no
11324 hardcode_into_libs=yes
11325 ;;
11326 *) # from 4.6 on, and DragonFly
11327 shlibpath_overrides_runpath=yes
11328 hardcode_into_libs=yes
11329 ;;
11330 esac
11331 ;;
11332
11333haiku*)
11334 version_type=linux
11335 need_lib_prefix=no
11336 need_version=no
11337 dynamic_linker="$host_os runtime_loader"
11338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11339 soname_spec='${libname}${release}${shared_ext}$major'
11340 shlibpath_var=LIBRARY_PATH
11341 shlibpath_overrides_runpath=yes
11342 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11343 hardcode_into_libs=yes
11344 ;;
11345
11346hpux9* | hpux10* | hpux11*)
11347 # Give a soname corresponding to the major version so that dld.sl refuses to
11348 # link against other versions.
11349 version_type=sunos
11350 need_lib_prefix=no
11351 need_version=no
11352 case $host_cpu in
11353 ia64*)
11354 shrext_cmds='.so'
11355 hardcode_into_libs=yes
11356 dynamic_linker="$host_os dld.so"
11357 shlibpath_var=LD_LIBRARY_PATH
11358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 if test "X$HPUX_IA64_MODE" = X32; then
11362 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11363 else
11364 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11365 fi
11366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11367 ;;
11368 hppa*64*)
11369 shrext_cmds='.sl'
11370 hardcode_into_libs=yes
11371 dynamic_linker="$host_os dld.sl"
11372 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11375 soname_spec='${libname}${release}${shared_ext}$major'
11376 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11378 ;;
11379 *)
11380 shrext_cmds='.sl'
11381 dynamic_linker="$host_os dld.sl"
11382 shlibpath_var=SHLIB_PATH
11383 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11385 soname_spec='${libname}${release}${shared_ext}$major'
11386 ;;
11387 esac
11388 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11389 postinstall_cmds='chmod 555 $lib'
11390 # or fails outright, so override atomically:
11391 install_override_mode=555
11392 ;;
11393
11394interix[3-9]*)
11395 version_type=linux
11396 need_lib_prefix=no
11397 need_version=no
11398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11399 soname_spec='${libname}${release}${shared_ext}$major'
11400 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11401 shlibpath_var=LD_LIBRARY_PATH
11402 shlibpath_overrides_runpath=no
11403 hardcode_into_libs=yes
11404 ;;
11405
11406irix5* | irix6* | nonstopux*)
11407 case $host_os in
11408 nonstopux*) version_type=nonstopux ;;
11409 *)
11410 if test "$lt_cv_prog_gnu_ld" = yes; then
11411 version_type=linux
11412 else
11413 version_type=irix
11414 fi ;;
11415 esac
11416 need_lib_prefix=no
11417 need_version=no
11418 soname_spec='${libname}${release}${shared_ext}$major'
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11420 case $host_os in
11421 irix5* | nonstopux*)
11422 libsuff= shlibsuff=
11423 ;;
11424 *)
11425 case $LD in # libtool.m4 will add one of these switches to LD
11426 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11427 libsuff= shlibsuff= libmagic=32-bit;;
11428 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11429 libsuff=32 shlibsuff=N32 libmagic=N32;;
11430 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11431 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11432 *) libsuff= shlibsuff= libmagic=never-match;;
11433 esac
11434 ;;
11435 esac
11436 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11437 shlibpath_overrides_runpath=no
11438 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11439 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11440 hardcode_into_libs=yes
11441 ;;
11442
11443# No shared lib support for Linux oldld, aout, or coff.
11444linux*oldld* | linux*aout* | linux*coff*)
11445 dynamic_linker=no
11446 ;;
11447
11448# This must be Linux ELF.
11449linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11450 version_type=linux
11451 need_lib_prefix=no
11452 need_version=no
11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454 soname_spec='${libname}${release}${shared_ext}$major'
11455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11456 shlibpath_var=LD_LIBRARY_PATH
11457 shlibpath_overrides_runpath=no
11458
11459 # Some binutils ld are patched to set DT_RUNPATH
11460 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11461 $as_echo_n "(cached) " >&6
11462else
11463 lt_cv_shlibpath_overrides_runpath=no
11464 save_LDFLAGS=$LDFLAGS
11465 save_libdir=$libdir
11466 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11467 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11469/* end confdefs.h. */
11470
11471int
11472main ()
11473{
11474
11475 ;
11476 return 0;
11477}
11478_ACEOF
11479if ac_fn_c_try_link "$LINENO"; then :
11480 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11481 lt_cv_shlibpath_overrides_runpath=yes
11482fi
11483fi
11484rm -f core conftest.err conftest.$ac_objext \
11485 conftest$ac_exeext conftest.$ac_ext
11486 LDFLAGS=$save_LDFLAGS
11487 libdir=$save_libdir
11488
11489fi
11490
11491 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11492
11493 # This implies no fast_install, which is unacceptable.
11494 # Some rework will be needed to allow for fast_install
11495 # before this can be enabled.
11496 hardcode_into_libs=yes
11497
11498 # Append ld.so.conf contents to the search path
11499 if test -f /etc/ld.so.conf; then
11500 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' ' '`
11501 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11502 fi
11503
11504 # We used to test for /lib/ld.so.1 and disable shared libraries on
11505 # powerpc, because MkLinux only supported shared libraries with the
11506 # GNU dynamic linker. Since this was broken with cross compilers,
11507 # most powerpc-linux boxes support dynamic linking these days and
11508 # people can always --disable-shared, the test was removed, and we
11509 # assume the GNU/Linux dynamic linker is in use.
11510 dynamic_linker='GNU/Linux ld.so'
11511 ;;
11512
11513netbsd*)
11514 version_type=sunos
11515 need_lib_prefix=no
11516 need_version=no
11517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11520 dynamic_linker='NetBSD (a.out) ld.so'
11521 else
11522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11523 soname_spec='${libname}${release}${shared_ext}$major'
11524 dynamic_linker='NetBSD ld.elf_so'
11525 fi
11526 shlibpath_var=LD_LIBRARY_PATH
11527 shlibpath_overrides_runpath=yes
11528 hardcode_into_libs=yes
11529 ;;
11530
11531newsos6)
11532 version_type=linux
11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534 shlibpath_var=LD_LIBRARY_PATH
11535 shlibpath_overrides_runpath=yes
11536 ;;
11537
11538*nto* | *qnx*)
11539 version_type=qnx
11540 need_lib_prefix=no
11541 need_version=no
11542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11543 soname_spec='${libname}${release}${shared_ext}$major'
11544 shlibpath_var=LD_LIBRARY_PATH
11545 shlibpath_overrides_runpath=no
11546 hardcode_into_libs=yes
11547 dynamic_linker='ldqnx.so'
11548 ;;
11549
11550openbsd*)
11551 version_type=sunos
11552 sys_lib_dlsearch_path_spec="/usr/lib"
11553 need_lib_prefix=no
11554 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11555 case $host_os in
11556 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11557 *) need_version=no ;;
11558 esac
11559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11560 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11561 shlibpath_var=LD_LIBRARY_PATH
11562 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11563 case $host_os in
11564 openbsd2.[89] | openbsd2.[89].*)
11565 shlibpath_overrides_runpath=no
11566 ;;
11567 *)
11568 shlibpath_overrides_runpath=yes
11569 ;;
11570 esac
11571 else
11572 shlibpath_overrides_runpath=yes
11573 fi
11574 ;;
11575
11576os2*)
11577 libname_spec='$name'
11578 shrext_cmds=".dll"
11579 need_lib_prefix=no
11580 library_names_spec='$libname${shared_ext} $libname.a'
11581 dynamic_linker='OS/2 ld.exe'
11582 shlibpath_var=LIBPATH
11583 ;;
11584
11585osf3* | osf4* | osf5*)
11586 version_type=osf
11587 need_lib_prefix=no
11588 need_version=no
11589 soname_spec='${libname}${release}${shared_ext}$major'
11590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11591 shlibpath_var=LD_LIBRARY_PATH
11592 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11593 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11594 ;;
11595
11596rdos*)
11597 dynamic_linker=no
11598 ;;
11599
11600solaris*)
11601 version_type=linux
11602 need_lib_prefix=no
11603 need_version=no
11604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11605 soname_spec='${libname}${release}${shared_ext}$major'
11606 shlibpath_var=LD_LIBRARY_PATH
11607 shlibpath_overrides_runpath=yes
11608 hardcode_into_libs=yes
11609 # ldd complains unless libraries are executable
11610 postinstall_cmds='chmod +x $lib'
11611 ;;
11612
11613sunos4*)
11614 version_type=sunos
11615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11616 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11617 shlibpath_var=LD_LIBRARY_PATH
11618 shlibpath_overrides_runpath=yes
11619 if test "$with_gnu_ld" = yes; then
11620 need_lib_prefix=no
11621 fi
11622 need_version=yes
11623 ;;
11624
11625sysv4 | sysv4.3*)
11626 version_type=linux
11627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628 soname_spec='${libname}${release}${shared_ext}$major'
11629 shlibpath_var=LD_LIBRARY_PATH
11630 case $host_vendor in
11631 sni)
11632 shlibpath_overrides_runpath=no
11633 need_lib_prefix=no
11634 runpath_var=LD_RUN_PATH
11635 ;;
11636 siemens)
11637 need_lib_prefix=no
11638 ;;
11639 motorola)
11640 need_lib_prefix=no
11641 need_version=no
11642 shlibpath_overrides_runpath=no
11643 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11644 ;;
11645 esac
11646 ;;
11647
11648sysv4*MP*)
11649 if test -d /usr/nec ;then
11650 version_type=linux
11651 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11652 soname_spec='$libname${shared_ext}.$major'
11653 shlibpath_var=LD_LIBRARY_PATH
11654 fi
11655 ;;
11656
11657sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11658 version_type=freebsd-elf
11659 need_lib_prefix=no
11660 need_version=no
11661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11662 soname_spec='${libname}${release}${shared_ext}$major'
11663 shlibpath_var=LD_LIBRARY_PATH
11664 shlibpath_overrides_runpath=yes
11665 hardcode_into_libs=yes
11666 if test "$with_gnu_ld" = yes; then
11667 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11668 else
11669 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11670 case $host_os in
11671 sco3.2v5*)
11672 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11673 ;;
11674 esac
11675 fi
11676 sys_lib_dlsearch_path_spec='/usr/lib'
11677 ;;
11678
11679tpf*)
11680 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11681 version_type=linux
11682 need_lib_prefix=no
11683 need_version=no
11684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11685 shlibpath_var=LD_LIBRARY_PATH
11686 shlibpath_overrides_runpath=no
11687 hardcode_into_libs=yes
11688 ;;
11689
11690uts4*)
11691 version_type=linux
11692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11693 soname_spec='${libname}${release}${shared_ext}$major'
11694 shlibpath_var=LD_LIBRARY_PATH
11695 ;;
11696
11697*)
11698 dynamic_linker=no
11699 ;;
11700esac
11701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11702$as_echo "$dynamic_linker" >&6; }
11703test "$dynamic_linker" = no && can_build_shared=no
11704
11705variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11706if test "$GCC" = yes; then
11707 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11708fi
11709
11710if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11711 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11712fi
11713if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11714 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11715fi
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11809$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11810hardcode_action=
11811if test -n "$hardcode_libdir_flag_spec" ||
11812 test -n "$runpath_var" ||
11813 test "X$hardcode_automatic" = "Xyes" ; then
11814
11815 # We can hardcode non-existent directories.
11816 if test "$hardcode_direct" != no &&
11817 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11818 # have to relink, otherwise we might link with an installed library
11819 # when we should be linking with a yet-to-be-installed one
11820 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11821 test "$hardcode_minus_L" != no; then
11822 # Linking always hardcodes the temporary library directory.
11823 hardcode_action=relink
11824 else
11825 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11826 hardcode_action=immediate
11827 fi
11828else
11829 # We cannot hardcode anything, or else we can only hardcode existing
11830 # directories.
11831 hardcode_action=unsupported
11832fi
11833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11834$as_echo "$hardcode_action" >&6; }
11835
11836if test "$hardcode_action" = relink ||
11837 test "$inherit_rpath" = yes; then
11838 # Fast installation is not supported
11839 enable_fast_install=no
11840elif test "$shlibpath_overrides_runpath" = yes ||
11841 test "$enable_shared" = no; then
11842 # Fast installation is not necessary
11843 enable_fast_install=needless
11844fi
11845
11846
11847
11848
11849
11850
11851 if test "x$enable_dlopen" != xyes; then
11852 enable_dlopen=unknown
11853 enable_dlopen_self=unknown
11854 enable_dlopen_self_static=unknown
11855else
11856 lt_cv_dlopen=no
11857 lt_cv_dlopen_libs=
11858
11859 case $host_os in
11860 beos*)
11861 lt_cv_dlopen="load_add_on"
11862 lt_cv_dlopen_libs=
11863 lt_cv_dlopen_self=yes
11864 ;;
11865
11866 mingw* | pw32* | cegcc*)
11867 lt_cv_dlopen="LoadLibrary"
11868 lt_cv_dlopen_libs=
11869 ;;
11870
11871 cygwin*)
11872 lt_cv_dlopen="dlopen"
11873 lt_cv_dlopen_libs=
11874 ;;
11875
11876 darwin*)
11877 # if libdl is installed we need to link against it
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11879$as_echo_n "checking for dlopen in -ldl... " >&6; }
11880if ${ac_cv_lib_dl_dlopen+:} false; then :
11881 $as_echo_n "(cached) " >&6
11882else
11883 ac_check_lib_save_LIBS=$LIBS
11884LIBS="-ldl $LIBS"
11885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886/* end confdefs.h. */
11887
11888/* Override any GCC internal prototype to avoid an error.
11889 Use char because int might match the return type of a GCC
11890 builtin and then its argument prototype would still apply. */
11891#ifdef __cplusplus
11892extern "C"
11893#endif
11894char dlopen ();
11895int
11896main ()
11897{
11898return dlopen ();
11899 ;
11900 return 0;
11901}
11902_ACEOF
11903if ac_fn_c_try_link "$LINENO"; then :
11904 ac_cv_lib_dl_dlopen=yes
11905else
11906 ac_cv_lib_dl_dlopen=no
11907fi
11908rm -f core conftest.err conftest.$ac_objext \
11909 conftest$ac_exeext conftest.$ac_ext
11910LIBS=$ac_check_lib_save_LIBS
11911fi
11912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11913$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11914if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11915 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11916else
11917
11918 lt_cv_dlopen="dyld"
11919 lt_cv_dlopen_libs=
11920 lt_cv_dlopen_self=yes
11921
11922fi
11923
11924 ;;
11925
11926 *)
11927 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11928if test "x$ac_cv_func_shl_load" = xyes; then :
11929 lt_cv_dlopen="shl_load"
11930else
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11932$as_echo_n "checking for shl_load in -ldld... " >&6; }
11933if ${ac_cv_lib_dld_shl_load+:} false; then :
11934 $as_echo_n "(cached) " >&6
11935else
11936 ac_check_lib_save_LIBS=$LIBS
11937LIBS="-ldld $LIBS"
11938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939/* end confdefs.h. */
11940
11941/* Override any GCC internal prototype to avoid an error.
11942 Use char because int might match the return type of a GCC
11943 builtin and then its argument prototype would still apply. */
11944#ifdef __cplusplus
11945extern "C"
11946#endif
11947char shl_load ();
11948int
11949main ()
11950{
11951return shl_load ();
11952 ;
11953 return 0;
11954}
11955_ACEOF
11956if ac_fn_c_try_link "$LINENO"; then :
11957 ac_cv_lib_dld_shl_load=yes
11958else
11959 ac_cv_lib_dld_shl_load=no
11960fi
11961rm -f core conftest.err conftest.$ac_objext \
11962 conftest$ac_exeext conftest.$ac_ext
11963LIBS=$ac_check_lib_save_LIBS
11964fi
11965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11966$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11967if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11968 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11969else
11970 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11971if test "x$ac_cv_func_dlopen" = xyes; then :
11972 lt_cv_dlopen="dlopen"
11973else
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11975$as_echo_n "checking for dlopen in -ldl... " >&6; }
11976if ${ac_cv_lib_dl_dlopen+:} false; then :
11977 $as_echo_n "(cached) " >&6
11978else
11979 ac_check_lib_save_LIBS=$LIBS
11980LIBS="-ldl $LIBS"
11981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982/* end confdefs.h. */
11983
11984/* Override any GCC internal prototype to avoid an error.
11985 Use char because int might match the return type of a GCC
11986 builtin and then its argument prototype would still apply. */
11987#ifdef __cplusplus
11988extern "C"
11989#endif
11990char dlopen ();
11991int
11992main ()
11993{
11994return dlopen ();
11995 ;
11996 return 0;
11997}
11998_ACEOF
11999if ac_fn_c_try_link "$LINENO"; then :
12000 ac_cv_lib_dl_dlopen=yes
12001else
12002 ac_cv_lib_dl_dlopen=no
12003fi
12004rm -f core conftest.err conftest.$ac_objext \
12005 conftest$ac_exeext conftest.$ac_ext
12006LIBS=$ac_check_lib_save_LIBS
12007fi
12008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12009$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12010if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12011 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12012else
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12014$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12015if ${ac_cv_lib_svld_dlopen+:} false; then :
12016 $as_echo_n "(cached) " >&6
12017else
12018 ac_check_lib_save_LIBS=$LIBS
12019LIBS="-lsvld $LIBS"
12020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021/* end confdefs.h. */
12022
12023/* Override any GCC internal prototype to avoid an error.
12024 Use char because int might match the return type of a GCC
12025 builtin and then its argument prototype would still apply. */
12026#ifdef __cplusplus
12027extern "C"
12028#endif
12029char dlopen ();
12030int
12031main ()
12032{
12033return dlopen ();
12034 ;
12035 return 0;
12036}
12037_ACEOF
12038if ac_fn_c_try_link "$LINENO"; then :
12039 ac_cv_lib_svld_dlopen=yes
12040else
12041 ac_cv_lib_svld_dlopen=no
12042fi
12043rm -f core conftest.err conftest.$ac_objext \
12044 conftest$ac_exeext conftest.$ac_ext
12045LIBS=$ac_check_lib_save_LIBS
12046fi
12047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12048$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12049if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12050 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12051else
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12053$as_echo_n "checking for dld_link in -ldld... " >&6; }
12054if ${ac_cv_lib_dld_dld_link+:} false; then :
12055 $as_echo_n "(cached) " >&6
12056else
12057 ac_check_lib_save_LIBS=$LIBS
12058LIBS="-ldld $LIBS"
12059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060/* end confdefs.h. */
12061
12062/* Override any GCC internal prototype to avoid an error.
12063 Use char because int might match the return type of a GCC
12064 builtin and then its argument prototype would still apply. */
12065#ifdef __cplusplus
12066extern "C"
12067#endif
12068char dld_link ();
12069int
12070main ()
12071{
12072return dld_link ();
12073 ;
12074 return 0;
12075}
12076_ACEOF
12077if ac_fn_c_try_link "$LINENO"; then :
12078 ac_cv_lib_dld_dld_link=yes
12079else
12080 ac_cv_lib_dld_dld_link=no
12081fi
12082rm -f core conftest.err conftest.$ac_objext \
12083 conftest$ac_exeext conftest.$ac_ext
12084LIBS=$ac_check_lib_save_LIBS
12085fi
12086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12087$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12088if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12089 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12090fi
12091
12092
12093fi
12094
12095
12096fi
12097
12098
12099fi
12100
12101
12102fi
12103
12104
12105fi
12106
12107 ;;
12108 esac
12109
12110 if test "x$lt_cv_dlopen" != xno; then
12111 enable_dlopen=yes
12112 else
12113 enable_dlopen=no
12114 fi
12115
12116 case $lt_cv_dlopen in
12117 dlopen)
12118 save_CPPFLAGS="$CPPFLAGS"
12119 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12120
12121 save_LDFLAGS="$LDFLAGS"
12122 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12123
12124 save_LIBS="$LIBS"
12125 LIBS="$lt_cv_dlopen_libs $LIBS"
12126
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12128$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12129if ${lt_cv_dlopen_self+:} false; then :
12130 $as_echo_n "(cached) " >&6
12131else
12132 if test "$cross_compiling" = yes; then :
12133 lt_cv_dlopen_self=cross
12134else
12135 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12136 lt_status=$lt_dlunknown
12137 cat > conftest.$ac_ext <<_LT_EOF
6109e902 12138#line 12138 "configure"
bb368aad
VM
12139#include "confdefs.h"
12140
12141#if HAVE_DLFCN_H
12142#include <dlfcn.h>
12143#endif
12144
12145#include <stdio.h>
12146
12147#ifdef RTLD_GLOBAL
12148# define LT_DLGLOBAL RTLD_GLOBAL
12149#else
12150# ifdef DL_GLOBAL
12151# define LT_DLGLOBAL DL_GLOBAL
12152# else
12153# define LT_DLGLOBAL 0
12154# endif
12155#endif
12156
12157/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12158 find out it does not work in some platform. */
12159#ifndef LT_DLLAZY_OR_NOW
12160# ifdef RTLD_LAZY
12161# define LT_DLLAZY_OR_NOW RTLD_LAZY
12162# else
12163# ifdef DL_LAZY
12164# define LT_DLLAZY_OR_NOW DL_LAZY
12165# else
12166# ifdef RTLD_NOW
12167# define LT_DLLAZY_OR_NOW RTLD_NOW
12168# else
12169# ifdef DL_NOW
12170# define LT_DLLAZY_OR_NOW DL_NOW
12171# else
12172# define LT_DLLAZY_OR_NOW 0
12173# endif
12174# endif
12175# endif
12176# endif
12177#endif
12178
12179/* When -fvisbility=hidden is used, assume the code has been annotated
12180 correspondingly for the symbols needed. */
12181#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12182void fnord () __attribute__((visibility("default")));
12183#endif
12184
12185void fnord () { int i=42; }
12186int main ()
12187{
12188 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12189 int status = $lt_dlunknown;
12190
12191 if (self)
12192 {
12193 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12194 else
12195 {
12196 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12197 else puts (dlerror ());
12198 }
12199 /* dlclose (self); */
12200 }
12201 else
12202 puts (dlerror ());
12203
12204 return status;
12205}
12206_LT_EOF
12207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12208 (eval $ac_link) 2>&5
12209 ac_status=$?
12210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12211 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12212 (./conftest; exit; ) >&5 2>/dev/null
12213 lt_status=$?
12214 case x$lt_status in
12215 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12216 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12217 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12218 esac
12219 else :
12220 # compilation failed
12221 lt_cv_dlopen_self=no
12222 fi
12223fi
12224rm -fr conftest*
12225
12226
12227fi
12228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12229$as_echo "$lt_cv_dlopen_self" >&6; }
12230
12231 if test "x$lt_cv_dlopen_self" = xyes; then
12232 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12234$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12235if ${lt_cv_dlopen_self_static+:} false; then :
12236 $as_echo_n "(cached) " >&6
12237else
12238 if test "$cross_compiling" = yes; then :
12239 lt_cv_dlopen_self_static=cross
12240else
12241 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12242 lt_status=$lt_dlunknown
12243 cat > conftest.$ac_ext <<_LT_EOF
6109e902 12244#line 12244 "configure"
bb368aad
VM
12245#include "confdefs.h"
12246
12247#if HAVE_DLFCN_H
12248#include <dlfcn.h>
12249#endif
12250
12251#include <stdio.h>
12252
12253#ifdef RTLD_GLOBAL
12254# define LT_DLGLOBAL RTLD_GLOBAL
12255#else
12256# ifdef DL_GLOBAL
12257# define LT_DLGLOBAL DL_GLOBAL
12258# else
12259# define LT_DLGLOBAL 0
12260# endif
12261#endif
12262
12263/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12264 find out it does not work in some platform. */
12265#ifndef LT_DLLAZY_OR_NOW
12266# ifdef RTLD_LAZY
12267# define LT_DLLAZY_OR_NOW RTLD_LAZY
12268# else
12269# ifdef DL_LAZY
12270# define LT_DLLAZY_OR_NOW DL_LAZY
12271# else
12272# ifdef RTLD_NOW
12273# define LT_DLLAZY_OR_NOW RTLD_NOW
12274# else
12275# ifdef DL_NOW
12276# define LT_DLLAZY_OR_NOW DL_NOW
12277# else
12278# define LT_DLLAZY_OR_NOW 0
12279# endif
12280# endif
12281# endif
12282# endif
12283#endif
12284
12285/* When -fvisbility=hidden is used, assume the code has been annotated
12286 correspondingly for the symbols needed. */
12287#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12288void fnord () __attribute__((visibility("default")));
12289#endif
12290
12291void fnord () { int i=42; }
12292int main ()
12293{
12294 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12295 int status = $lt_dlunknown;
12296
12297 if (self)
12298 {
12299 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12300 else
12301 {
12302 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12303 else puts (dlerror ());
12304 }
12305 /* dlclose (self); */
12306 }
12307 else
12308 puts (dlerror ());
12309
12310 return status;
12311}
12312_LT_EOF
12313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12314 (eval $ac_link) 2>&5
12315 ac_status=$?
12316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12317 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12318 (./conftest; exit; ) >&5 2>/dev/null
12319 lt_status=$?
12320 case x$lt_status in
12321 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12322 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12323 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12324 esac
12325 else :
12326 # compilation failed
12327 lt_cv_dlopen_self_static=no
12328 fi
12329fi
12330rm -fr conftest*
12331
12332
12333fi
12334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12335$as_echo "$lt_cv_dlopen_self_static" >&6; }
12336 fi
12337
12338 CPPFLAGS="$save_CPPFLAGS"
12339 LDFLAGS="$save_LDFLAGS"
12340 LIBS="$save_LIBS"
12341 ;;
12342 esac
12343
12344 case $lt_cv_dlopen_self in
12345 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12346 *) enable_dlopen_self=unknown ;;
12347 esac
12348
12349 case $lt_cv_dlopen_self_static in
12350 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12351 *) enable_dlopen_self_static=unknown ;;
12352 esac
12353fi
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371striplib=
12372old_striplib=
12373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12374$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12375if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12376 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12377 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12379$as_echo "yes" >&6; }
12380else
12381# FIXME - insert some real tests, host_os isn't really good enough
12382 case $host_os in
12383 darwin*)
12384 if test -n "$STRIP" ; then
12385 striplib="$STRIP -x"
12386 old_striplib="$STRIP -S"
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12388$as_echo "yes" >&6; }
12389 else
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391$as_echo "no" >&6; }
12392 fi
12393 ;;
12394 *)
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396$as_echo "no" >&6; }
12397 ;;
12398 esac
12399fi
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412 # Report which library types will actually be built
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12414$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12416$as_echo "$can_build_shared" >&6; }
12417
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12419$as_echo_n "checking whether to build shared libraries... " >&6; }
12420 test "$can_build_shared" = "no" && enable_shared=no
12421
12422 # On AIX, shared libraries and static libraries use the same namespace, and
12423 # are all built from PIC.
12424 case $host_os in
12425 aix3*)
12426 test "$enable_shared" = yes && enable_static=no
12427 if test -n "$RANLIB"; then
12428 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12429 postinstall_cmds='$RANLIB $lib'
12430 fi
12431 ;;
12432
12433 aix[4-9]*)
12434 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12435 test "$enable_shared" = yes && enable_static=no
12436 fi
12437 ;;
12438 esac
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12440$as_echo "$enable_shared" >&6; }
12441
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12443$as_echo_n "checking whether to build static libraries... " >&6; }
12444 # Make sure either enable_shared or enable_static is yes.
12445 test "$enable_shared" = yes || enable_static=yes
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12447$as_echo "$enable_static" >&6; }
12448
12449
12450
12451
12452fi
12453ac_ext=c
12454ac_cpp='$CPP $CPPFLAGS'
12455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12457ac_compiler_gnu=$ac_cv_c_compiler_gnu
12458
12459CC="$lt_save_CC"
12460
12461 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12462 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12463 (test "X$CXX" != "Xg++"))) ; then
12464 ac_ext=cpp
12465ac_cpp='$CXXCPP $CPPFLAGS'
12466ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12467ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12468ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12470$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12471if test -z "$CXXCPP"; then
12472 if ${ac_cv_prog_CXXCPP+:} false; then :
12473 $as_echo_n "(cached) " >&6
12474else
12475 # Double quotes because CXXCPP needs to be expanded
12476 for CXXCPP in "$CXX -E" "/lib/cpp"
12477 do
12478 ac_preproc_ok=false
12479for ac_cxx_preproc_warn_flag in '' yes
12480do
12481 # Use a header file that comes with gcc, so configuring glibc
12482 # with a fresh cross-compiler works.
12483 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12484 # <limits.h> exists even on freestanding compilers.
12485 # On the NeXT, cc -E runs the code through the compiler's parser,
12486 # not just through cpp. "Syntax error" is here to catch this case.
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488/* end confdefs.h. */
12489#ifdef __STDC__
12490# include <limits.h>
12491#else
12492# include <assert.h>
12493#endif
12494 Syntax error
12495_ACEOF
12496if ac_fn_cxx_try_cpp "$LINENO"; then :
12497
12498else
12499 # Broken: fails on valid input.
12500continue
12501fi
12502rm -f conftest.err conftest.i conftest.$ac_ext
12503
12504 # OK, works on sane cases. Now check whether nonexistent headers
12505 # can be detected and how.
12506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12507/* end confdefs.h. */
12508#include <ac_nonexistent.h>
12509_ACEOF
12510if ac_fn_cxx_try_cpp "$LINENO"; then :
12511 # Broken: success on invalid input.
12512continue
12513else
12514 # Passes both tests.
12515ac_preproc_ok=:
12516break
12517fi
12518rm -f conftest.err conftest.i conftest.$ac_ext
12519
12520done
12521# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12522rm -f conftest.i conftest.err conftest.$ac_ext
12523if $ac_preproc_ok; then :
12524 break
12525fi
12526
12527 done
12528 ac_cv_prog_CXXCPP=$CXXCPP
12529
12530fi
12531 CXXCPP=$ac_cv_prog_CXXCPP
12532else
12533 ac_cv_prog_CXXCPP=$CXXCPP
12534fi
12535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12536$as_echo "$CXXCPP" >&6; }
12537ac_preproc_ok=false
12538for ac_cxx_preproc_warn_flag in '' yes
12539do
12540 # Use a header file that comes with gcc, so configuring glibc
12541 # with a fresh cross-compiler works.
12542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12543 # <limits.h> exists even on freestanding compilers.
12544 # On the NeXT, cc -E runs the code through the compiler's parser,
12545 # not just through cpp. "Syntax error" is here to catch this case.
12546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547/* end confdefs.h. */
12548#ifdef __STDC__
12549# include <limits.h>
12550#else
12551# include <assert.h>
12552#endif
12553 Syntax error
12554_ACEOF
12555if ac_fn_cxx_try_cpp "$LINENO"; then :
12556
12557else
12558 # Broken: fails on valid input.
12559continue
12560fi
12561rm -f conftest.err conftest.i conftest.$ac_ext
12562
12563 # OK, works on sane cases. Now check whether nonexistent headers
12564 # can be detected and how.
12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566/* end confdefs.h. */
12567#include <ac_nonexistent.h>
12568_ACEOF
12569if ac_fn_cxx_try_cpp "$LINENO"; then :
12570 # Broken: success on invalid input.
12571continue
12572else
12573 # Passes both tests.
12574ac_preproc_ok=:
12575break
12576fi
12577rm -f conftest.err conftest.i conftest.$ac_ext
12578
12579done
12580# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12581rm -f conftest.i conftest.err conftest.$ac_ext
12582if $ac_preproc_ok; then :
12583
12584else
12585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12587as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12588See \`config.log' for more details" "$LINENO" 5; }
12589fi
12590
12591ac_ext=c
12592ac_cpp='$CPP $CPPFLAGS'
12593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12595ac_compiler_gnu=$ac_cv_c_compiler_gnu
12596
12597else
12598 _lt_caught_CXX_error=yes
12599fi
12600
12601ac_ext=cpp
12602ac_cpp='$CXXCPP $CPPFLAGS'
12603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12606
12607archive_cmds_need_lc_CXX=no
12608allow_undefined_flag_CXX=
12609always_export_symbols_CXX=no
12610archive_expsym_cmds_CXX=
12611compiler_needs_object_CXX=no
12612export_dynamic_flag_spec_CXX=
12613hardcode_direct_CXX=no
12614hardcode_direct_absolute_CXX=no
12615hardcode_libdir_flag_spec_CXX=
12616hardcode_libdir_flag_spec_ld_CXX=
12617hardcode_libdir_separator_CXX=
12618hardcode_minus_L_CXX=no
12619hardcode_shlibpath_var_CXX=unsupported
12620hardcode_automatic_CXX=no
12621inherit_rpath_CXX=no
12622module_cmds_CXX=
12623module_expsym_cmds_CXX=
12624link_all_deplibs_CXX=unknown
12625old_archive_cmds_CXX=$old_archive_cmds
12626reload_flag_CXX=$reload_flag
12627reload_cmds_CXX=$reload_cmds
12628no_undefined_flag_CXX=
12629whole_archive_flag_spec_CXX=
12630enable_shared_with_static_runtimes_CXX=no
12631
12632# Source file extension for C++ test sources.
12633ac_ext=cpp
12634
12635# Object file extension for compiled C++ test sources.
12636objext=o
12637objext_CXX=$objext
12638
12639# No sense in running all these tests if we already determined that
12640# the CXX compiler isn't working. Some variables (like enable_shared)
12641# are currently assumed to apply to all compilers on this platform,
12642# and will be corrupted by setting them based on a non-working compiler.
12643if test "$_lt_caught_CXX_error" != yes; then
12644 # Code to be used in simple compile tests
12645 lt_simple_compile_test_code="int some_variable = 0;"
12646
12647 # Code to be used in simple link tests
12648 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12649
12650 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12651
12652
12653
12654
12655
12656
12657# If no C compiler was specified, use CC.
12658LTCC=${LTCC-"$CC"}
12659
12660# If no C compiler flags were specified, use CFLAGS.
12661LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12662
12663# Allow CC to be a program name with arguments.
12664compiler=$CC
12665
12666
12667 # save warnings/boilerplate of simple test code
12668 ac_outfile=conftest.$ac_objext
12669echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12670eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12671_lt_compiler_boilerplate=`cat conftest.err`
12672$RM conftest*
12673
12674 ac_outfile=conftest.$ac_objext
12675echo "$lt_simple_link_test_code" >conftest.$ac_ext
12676eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12677_lt_linker_boilerplate=`cat conftest.err`
12678$RM -r conftest*
12679
12680
12681 # Allow CC to be a program name with arguments.
12682 lt_save_CC=$CC
12683 lt_save_LD=$LD
12684 lt_save_GCC=$GCC
12685 GCC=$GXX
12686 lt_save_with_gnu_ld=$with_gnu_ld
12687 lt_save_path_LD=$lt_cv_path_LD
12688 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12689 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12690 else
12691 $as_unset lt_cv_prog_gnu_ld
12692 fi
12693 if test -n "${lt_cv_path_LDCXX+set}"; then
12694 lt_cv_path_LD=$lt_cv_path_LDCXX
12695 else
12696 $as_unset lt_cv_path_LD
12697 fi
12698 test -z "${LDCXX+set}" || LD=$LDCXX
12699 CC=${CXX-"c++"}
12700 compiler=$CC
12701 compiler_CXX=$CC
12702 for cc_temp in $compiler""; do
12703 case $cc_temp in
12704 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12705 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12706 \-*) ;;
12707 *) break;;
12708 esac
12709done
12710cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12711
12712
12713 if test -n "$compiler"; then
12714 # We don't want -fno-exception when compiling C++ code, so set the
12715 # no_builtin_flag separately
12716 if test "$GXX" = yes; then
12717 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12718 else
12719 lt_prog_compiler_no_builtin_flag_CXX=
12720 fi
12721
12722 if test "$GXX" = yes; then
12723 # Set up default GNU C++ configuration
12724
12725
12726
12727# Check whether --with-gnu-ld was given.
12728if test "${with_gnu_ld+set}" = set; then :
12729 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12730else
12731 with_gnu_ld=no
12732fi
12733
12734ac_prog=ld
12735if test "$GCC" = yes; then
12736 # Check if gcc -print-prog-name=ld gives a path.
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12738$as_echo_n "checking for ld used by $CC... " >&6; }
12739 case $host in
12740 *-*-mingw*)
12741 # gcc leaves a trailing carriage return which upsets mingw
12742 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12743 *)
12744 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12745 esac
12746 case $ac_prog in
12747 # Accept absolute paths.
12748 [\\/]* | ?:[\\/]*)
12749 re_direlt='/[^/][^/]*/\.\./'
12750 # Canonicalize the pathname of ld
12751 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12752 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12753 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12754 done
12755 test -z "$LD" && LD="$ac_prog"
12756 ;;
12757 "")
12758 # If it fails, then pretend we aren't using GCC.
12759 ac_prog=ld
12760 ;;
12761 *)
12762 # If it is relative, then search for the first ld in PATH.
12763 with_gnu_ld=unknown
12764 ;;
12765 esac
12766elif test "$with_gnu_ld" = yes; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12768$as_echo_n "checking for GNU ld... " >&6; }
12769else
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12771$as_echo_n "checking for non-GNU ld... " >&6; }
12772fi
12773if ${lt_cv_path_LD+:} false; then :
12774 $as_echo_n "(cached) " >&6
12775else
12776 if test -z "$LD"; then
12777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12778 for ac_dir in $PATH; do
12779 IFS="$lt_save_ifs"
12780 test -z "$ac_dir" && ac_dir=.
12781 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12782 lt_cv_path_LD="$ac_dir/$ac_prog"
12783 # Check to see if the program is GNU ld. I'd rather use --version,
12784 # but apparently some variants of GNU ld only accept -v.
12785 # Break only if it was the GNU/non-GNU ld that we prefer.
12786 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12787 *GNU* | *'with BFD'*)
12788 test "$with_gnu_ld" != no && break
12789 ;;
12790 *)
12791 test "$with_gnu_ld" != yes && break
12792 ;;
12793 esac
12794 fi
12795 done
12796 IFS="$lt_save_ifs"
12797else
12798 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12799fi
12800fi
12801
12802LD="$lt_cv_path_LD"
12803if test -n "$LD"; then
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12805$as_echo "$LD" >&6; }
12806else
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808$as_echo "no" >&6; }
12809fi
12810test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12812$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12813if ${lt_cv_prog_gnu_ld+:} false; then :
12814 $as_echo_n "(cached) " >&6
12815else
12816 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12817case `$LD -v 2>&1 </dev/null` in
12818*GNU* | *'with BFD'*)
12819 lt_cv_prog_gnu_ld=yes
12820 ;;
12821*)
12822 lt_cv_prog_gnu_ld=no
12823 ;;
12824esac
12825fi
12826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12827$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12828with_gnu_ld=$lt_cv_prog_gnu_ld
12829
12830
12831
12832
12833
12834
12835
12836 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12837 # archiving commands below assume that GNU ld is being used.
12838 if test "$with_gnu_ld" = yes; then
12839 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12840 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'
12841
12842 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12843 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12844
12845 # If archive_cmds runs LD, not CC, wlarc should be empty
12846 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12847 # investigate it a little bit more. (MM)
12848 wlarc='${wl}'
12849
12850 # ancient GNU ld didn't support --whole-archive et. al.
12851 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12852 $GREP 'no-whole-archive' > /dev/null; then
12853 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12854 else
12855 whole_archive_flag_spec_CXX=
12856 fi
12857 else
12858 with_gnu_ld=no
12859 wlarc=
12860
12861 # A generic and very simple default shared library creation
12862 # command for GNU C++ for the case where it uses the native
12863 # linker, instead of GNU ld. If possible, this setting should
12864 # overridden to take advantage of the native linker features on
12865 # the platform it is being used on.
12866 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12867 fi
12868
12869 # Commands to make compiler produce verbose output that lists
12870 # what "hidden" libraries, object files and flags are used when
12871 # linking a shared library.
12872 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12873
12874 else
12875 GXX=no
12876 with_gnu_ld=no
12877 wlarc=
12878 fi
12879
12880 # PORTME: fill in a description of your system's C++ link characteristics
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12882$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12883 ld_shlibs_CXX=yes
12884 case $host_os in
12885 aix3*)
12886 # FIXME: insert proper C++ library support
12887 ld_shlibs_CXX=no
12888 ;;
12889 aix[4-9]*)
12890 if test "$host_cpu" = ia64; then
12891 # On IA64, the linker does run time linking by default, so we don't
12892 # have to do anything special.
12893 aix_use_runtimelinking=no
12894 exp_sym_flag='-Bexport'
12895 no_entry_flag=""
12896 else
12897 aix_use_runtimelinking=no
12898
12899 # Test if we are trying to use run time linking or normal
12900 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12901 # need to do runtime linking.
12902 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12903 for ld_flag in $LDFLAGS; do
12904 case $ld_flag in
12905 *-brtl*)
12906 aix_use_runtimelinking=yes
12907 break
12908 ;;
12909 esac
12910 done
12911 ;;
12912 esac
12913
12914 exp_sym_flag='-bexport'
12915 no_entry_flag='-bnoentry'
12916 fi
12917
12918 # When large executables or shared objects are built, AIX ld can
12919 # have problems creating the table of contents. If linking a library
12920 # or program results in "error TOC overflow" add -mminimal-toc to
12921 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12922 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12923
12924 archive_cmds_CXX=''
12925 hardcode_direct_CXX=yes
12926 hardcode_direct_absolute_CXX=yes
12927 hardcode_libdir_separator_CXX=':'
12928 link_all_deplibs_CXX=yes
12929 file_list_spec_CXX='${wl}-f,'
12930
12931 if test "$GXX" = yes; then
12932 case $host_os in aix4.[012]|aix4.[012].*)
12933 # We only want to do this on AIX 4.2 and lower, the check
12934 # below for broken collect2 doesn't work under 4.3+
12935 collect2name=`${CC} -print-prog-name=collect2`
12936 if test -f "$collect2name" &&
12937 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12938 then
12939 # We have reworked collect2
12940 :
12941 else
12942 # We have old collect2
12943 hardcode_direct_CXX=unsupported
12944 # It fails to find uninstalled libraries when the uninstalled
12945 # path is not listed in the libpath. Setting hardcode_minus_L
12946 # to unsupported forces relinking
12947 hardcode_minus_L_CXX=yes
12948 hardcode_libdir_flag_spec_CXX='-L$libdir'
12949 hardcode_libdir_separator_CXX=
12950 fi
12951 esac
12952 shared_flag='-shared'
12953 if test "$aix_use_runtimelinking" = yes; then
12954 shared_flag="$shared_flag "'${wl}-G'
12955 fi
12956 else
12957 # not using gcc
12958 if test "$host_cpu" = ia64; then
12959 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12960 # chokes on -Wl,-G. The following line is correct:
12961 shared_flag='-G'
12962 else
12963 if test "$aix_use_runtimelinking" = yes; then
12964 shared_flag='${wl}-G'
12965 else
12966 shared_flag='${wl}-bM:SRE'
12967 fi
12968 fi
12969 fi
12970
12971 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12972 # It seems that -bexpall does not export symbols beginning with
12973 # underscore (_), so it is better to generate a list of symbols to
12974 # export.
12975 always_export_symbols_CXX=yes
12976 if test "$aix_use_runtimelinking" = yes; then
12977 # Warning - without using the other runtime loading flags (-brtl),
12978 # -berok will link without error, but may produce a broken library.
12979 allow_undefined_flag_CXX='-berok'
12980 # Determine the default libpath from the value encoded in an empty
12981 # executable.
12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983/* end confdefs.h. */
12984
12985int
12986main ()
12987{
12988
12989 ;
12990 return 0;
12991}
12992_ACEOF
12993if ac_fn_cxx_try_link "$LINENO"; then :
12994
12995lt_aix_libpath_sed='
12996 /Import File Strings/,/^$/ {
12997 /^0/ {
12998 s/^0 *\(.*\)$/\1/
12999 p
13000 }
13001 }'
13002aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13003# Check for a 64-bit object if we didn't find anything.
13004if test -z "$aix_libpath"; then
13005 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13006fi
13007fi
13008rm -f core conftest.err conftest.$ac_objext \
13009 conftest$ac_exeext conftest.$ac_ext
13010if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13011
13012 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13013
13014 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"
13015 else
13016 if test "$host_cpu" = ia64; then
13017 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13018 allow_undefined_flag_CXX="-z nodefs"
13019 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"
13020 else
13021 # Determine the default libpath from the value encoded in an
13022 # empty executable.
13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024/* end confdefs.h. */
13025
13026int
13027main ()
13028{
13029
13030 ;
13031 return 0;
13032}
13033_ACEOF
13034if ac_fn_cxx_try_link "$LINENO"; then :
13035
13036lt_aix_libpath_sed='
13037 /Import File Strings/,/^$/ {
13038 /^0/ {
13039 s/^0 *\(.*\)$/\1/
13040 p
13041 }
13042 }'
13043aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13044# Check for a 64-bit object if we didn't find anything.
13045if test -z "$aix_libpath"; then
13046 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13047fi
13048fi
13049rm -f core conftest.err conftest.$ac_objext \
13050 conftest$ac_exeext conftest.$ac_ext
13051if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13052
13053 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13054 # Warning - without using the other run time loading flags,
13055 # -berok will link without error, but may produce a broken library.
13056 no_undefined_flag_CXX=' ${wl}-bernotok'
13057 allow_undefined_flag_CXX=' ${wl}-berok'
13058 if test "$with_gnu_ld" = yes; then
13059 # We only use this code for GNU lds that support --whole-archive.
13060 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13061 else
13062 # Exported symbols can be pulled into shared objects from archives
13063 whole_archive_flag_spec_CXX='$convenience'
13064 fi
13065 archive_cmds_need_lc_CXX=yes
13066 # This is similar to how AIX traditionally builds its shared
13067 # libraries.
13068 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'
13069 fi
13070 fi
13071 ;;
13072
13073 beos*)
13074 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13075 allow_undefined_flag_CXX=unsupported
13076 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13077 # support --undefined. This deserves some investigation. FIXME
13078 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13079 else
13080 ld_shlibs_CXX=no
13081 fi
13082 ;;
13083
13084 chorus*)
13085 case $cc_basename in
13086 *)
13087 # FIXME: insert proper C++ library support
13088 ld_shlibs_CXX=no
13089 ;;
13090 esac
13091 ;;
13092
13093 cygwin* | mingw* | pw32* | cegcc*)
13094 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13095 # as there is no search path for DLLs.
13096 hardcode_libdir_flag_spec_CXX='-L$libdir'
13097 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13098 allow_undefined_flag_CXX=unsupported
13099 always_export_symbols_CXX=no
13100 enable_shared_with_static_runtimes_CXX=yes
13101
13102 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13103 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'
13104 # If the export-symbols file already is a .def file (1st line
13105 # is EXPORTS), use it as is; otherwise, prepend...
13106 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13107 cp $export_symbols $output_objdir/$soname.def;
13108 else
13109 echo EXPORTS > $output_objdir/$soname.def;
13110 cat $export_symbols >> $output_objdir/$soname.def;
13111 fi~
13112 $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'
13113 else
13114 ld_shlibs_CXX=no
13115 fi
13116 ;;
13117 darwin* | rhapsody*)
13118
13119
13120 archive_cmds_need_lc_CXX=no
13121 hardcode_direct_CXX=no
13122 hardcode_automatic_CXX=yes
13123 hardcode_shlibpath_var_CXX=unsupported
13124 if test "$lt_cv_ld_force_load" = "yes"; then
13125 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\"`'
13126 else
13127 whole_archive_flag_spec_CXX=''
13128 fi
13129 link_all_deplibs_CXX=yes
13130 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13131 case $cc_basename in
13132 ifort*) _lt_dar_can_shared=yes ;;
13133 *) _lt_dar_can_shared=$GCC ;;
13134 esac
13135 if test "$_lt_dar_can_shared" = "yes"; then
13136 output_verbose_link_cmd=func_echo_all
13137 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}"
13138 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13139 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}"
13140 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}"
13141 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13142 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}"
13143 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}"
13144 fi
13145
13146 else
13147 ld_shlibs_CXX=no
13148 fi
13149
13150 ;;
13151
13152 dgux*)
13153 case $cc_basename in
13154 ec++*)
13155 # FIXME: insert proper C++ library support
13156 ld_shlibs_CXX=no
13157 ;;
13158 ghcx*)
13159 # Green Hills C++ Compiler
13160 # FIXME: insert proper C++ library support
13161 ld_shlibs_CXX=no
13162 ;;
13163 *)
13164 # FIXME: insert proper C++ library support
13165 ld_shlibs_CXX=no
13166 ;;
13167 esac
13168 ;;
13169
13170 freebsd2.*)
13171 # C++ shared libraries reported to be fairly broken before
13172 # switch to ELF
13173 ld_shlibs_CXX=no
13174 ;;
13175
13176 freebsd-elf*)
13177 archive_cmds_need_lc_CXX=no
13178 ;;
13179
13180 freebsd* | dragonfly*)
13181 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13182 # conventions
13183 ld_shlibs_CXX=yes
13184 ;;
13185
13186 gnu*)
13187 ;;
13188
13189 haiku*)
13190 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13191 link_all_deplibs_CXX=yes
13192 ;;
13193
13194 hpux9*)
13195 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13196 hardcode_libdir_separator_CXX=:
13197 export_dynamic_flag_spec_CXX='${wl}-E'
13198 hardcode_direct_CXX=yes
13199 hardcode_minus_L_CXX=yes # Not in the search PATH,
13200 # but as the default
13201 # location of the library.
13202
13203 case $cc_basename in
13204 CC*)
13205 # FIXME: insert proper C++ library support
13206 ld_shlibs_CXX=no
13207 ;;
13208 aCC*)
13209 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'
13210 # Commands to make compiler produce verbose output that lists
13211 # what "hidden" libraries, object files and flags are used when
13212 # linking a shared library.
13213 #
13214 # There doesn't appear to be a way to prevent this compiler from
13215 # explicitly linking system object files so we need to strip them
13216 # from the output so that they don't get included in the library
13217 # dependencies.
13218 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"'
13219 ;;
13220 *)
13221 if test "$GXX" = yes; then
13222 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'
13223 else
13224 # FIXME: insert proper C++ library support
13225 ld_shlibs_CXX=no
13226 fi
13227 ;;
13228 esac
13229 ;;
13230
13231 hpux10*|hpux11*)
13232 if test $with_gnu_ld = no; then
13233 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13234 hardcode_libdir_separator_CXX=:
13235
13236 case $host_cpu in
13237 hppa*64*|ia64*)
13238 ;;
13239 *)
13240 export_dynamic_flag_spec_CXX='${wl}-E'
13241 ;;
13242 esac
13243 fi
13244 case $host_cpu in
13245 hppa*64*|ia64*)
13246 hardcode_direct_CXX=no
13247 hardcode_shlibpath_var_CXX=no
13248 ;;
13249 *)
13250 hardcode_direct_CXX=yes
13251 hardcode_direct_absolute_CXX=yes
13252 hardcode_minus_L_CXX=yes # Not in the search PATH,
13253 # but as the default
13254 # location of the library.
13255 ;;
13256 esac
13257
13258 case $cc_basename in
13259 CC*)
13260 # FIXME: insert proper C++ library support
13261 ld_shlibs_CXX=no
13262 ;;
13263 aCC*)
13264 case $host_cpu in
13265 hppa*64*)
13266 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13267 ;;
13268 ia64*)
13269 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13270 ;;
13271 *)
13272 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13273 ;;
13274 esac
13275 # Commands to make compiler produce verbose output that lists
13276 # what "hidden" libraries, object files and flags are used when
13277 # linking a shared library.
13278 #
13279 # There doesn't appear to be a way to prevent this compiler from
13280 # explicitly linking system object files so we need to strip them
13281 # from the output so that they don't get included in the library
13282 # dependencies.
13283 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"'
13284 ;;
13285 *)
13286 if test "$GXX" = yes; then
13287 if test $with_gnu_ld = no; then
13288 case $host_cpu in
13289 hppa*64*)
13290 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13291 ;;
13292 ia64*)
13293 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13294 ;;
13295 *)
13296 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'
13297 ;;
13298 esac
13299 fi
13300 else
13301 # FIXME: insert proper C++ library support
13302 ld_shlibs_CXX=no
13303 fi
13304 ;;
13305 esac
13306 ;;
13307
13308 interix[3-9]*)
13309 hardcode_direct_CXX=no
13310 hardcode_shlibpath_var_CXX=no
13311 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13312 export_dynamic_flag_spec_CXX='${wl}-E'
13313 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13314 # Instead, shared libraries are loaded at an image base (0x10000000 by
13315 # default) and relocated if they conflict, which is a slow very memory
13316 # consuming and fragmenting process. To avoid this, we pick a random,
13317 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13318 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13319 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'
13320 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'
13321 ;;
13322 irix5* | irix6*)
13323 case $cc_basename in
13324 CC*)
13325 # SGI C++
13326 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'
13327
13328 # Archives containing C++ object files must be created using
13329 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13330 # necessary to make sure instantiated templates are included
13331 # in the archive.
13332 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13333 ;;
13334 *)
13335 if test "$GXX" = yes; then
13336 if test "$with_gnu_ld" = no; then
13337 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'
13338 else
13339 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'
13340 fi
13341 fi
13342 link_all_deplibs_CXX=yes
13343 ;;
13344 esac
13345 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13346 hardcode_libdir_separator_CXX=:
13347 inherit_rpath_CXX=yes
13348 ;;
13349
13350 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13351 case $cc_basename in
13352 KCC*)
13353 # Kuck and Associates, Inc. (KAI) C++ Compiler
13354
13355 # KCC will only create a shared library if the output file
13356 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13357 # to its proper name (with version) after linking.
13358 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'
13359 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'
13360 # Commands to make compiler produce verbose output that lists
13361 # what "hidden" libraries, object files and flags are used when
13362 # linking a shared library.
13363 #
13364 # There doesn't appear to be a way to prevent this compiler from
13365 # explicitly linking system object files so we need to strip them
13366 # from the output so that they don't get included in the library
13367 # dependencies.
13368 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"'
13369
13370 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13371 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13372
13373 # Archives containing C++ object files must be created using
13374 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13375 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13376 ;;
13377 icpc* | ecpc* )
13378 # Intel C++
13379 with_gnu_ld=yes
13380 # version 8.0 and above of icpc choke on multiply defined symbols
13381 # if we add $predep_objects and $postdep_objects, however 7.1 and
13382 # earlier do not add the objects themselves.
13383 case `$CC -V 2>&1` in
13384 *"Version 7."*)
13385 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13386 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'
13387 ;;
13388 *) # Version 8.0 or newer
13389 tmp_idyn=
13390 case $host_cpu in
13391 ia64*) tmp_idyn=' -i_dynamic';;
13392 esac
13393 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13394 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'
13395 ;;
13396 esac
13397 archive_cmds_need_lc_CXX=no
13398 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13399 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13400 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13401 ;;
13402 pgCC* | pgcpp*)
13403 # Portland Group C++ compiler
13404 case `$CC -V` in
13405 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13406 prelink_cmds_CXX='tpldir=Template.dir~
13407 rm -rf $tpldir~
13408 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13409 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13410 old_archive_cmds_CXX='tpldir=Template.dir~
13411 rm -rf $tpldir~
13412 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13413 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13414 $RANLIB $oldlib'
13415 archive_cmds_CXX='tpldir=Template.dir~
13416 rm -rf $tpldir~
13417 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13418 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13419 archive_expsym_cmds_CXX='tpldir=Template.dir~
13420 rm -rf $tpldir~
13421 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13422 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13423 ;;
13424 *) # Version 6 and above use weak symbols
13425 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13426 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'
13427 ;;
13428 esac
13429
13430 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13431 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13432 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'
13433 ;;
13434 cxx*)
13435 # Compaq C++
13436 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13437 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'
13438
13439 runpath_var=LD_RUN_PATH
13440 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13441 hardcode_libdir_separator_CXX=:
13442
13443 # Commands to make compiler produce verbose output that lists
13444 # what "hidden" libraries, object files and flags are used when
13445 # linking a shared library.
13446 #
13447 # There doesn't appear to be a way to prevent this compiler from
13448 # explicitly linking system object files so we need to strip them
13449 # from the output so that they don't get included in the library
13450 # dependencies.
13451 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'
13452 ;;
13453 xl* | mpixl* | bgxl*)
13454 # IBM XL 8.0 on PPC, with GNU ld
13455 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13456 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13457 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13458 if test "x$supports_anon_versioning" = xyes; then
13459 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13460 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13461 echo "local: *; };" >> $output_objdir/$libname.ver~
13462 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13463 fi
13464 ;;
13465 *)
13466 case `$CC -V 2>&1 | sed 5q` in
13467 *Sun\ C*)
13468 # Sun C++ 5.9
13469 no_undefined_flag_CXX=' -zdefs'
13470 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13471 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'
13472 hardcode_libdir_flag_spec_CXX='-R$libdir'
13473 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'
13474 compiler_needs_object_CXX=yes
13475
13476 # Not sure whether something based on
13477 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13478 # would be better.
13479 output_verbose_link_cmd='func_echo_all'
13480
13481 # Archives containing C++ object files must be created using
13482 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13483 # necessary to make sure instantiated templates are included
13484 # in the archive.
13485 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13486 ;;
13487 esac
13488 ;;
13489 esac
13490 ;;
13491
13492 lynxos*)
13493 # FIXME: insert proper C++ library support
13494 ld_shlibs_CXX=no
13495 ;;
13496
13497 m88k*)
13498 # FIXME: insert proper C++ library support
13499 ld_shlibs_CXX=no
13500 ;;
13501
13502 mvs*)
13503 case $cc_basename in
13504 cxx*)
13505 # FIXME: insert proper C++ library support
13506 ld_shlibs_CXX=no
13507 ;;
13508 *)
13509 # FIXME: insert proper C++ library support
13510 ld_shlibs_CXX=no
13511 ;;
13512 esac
13513 ;;
13514
13515 netbsd*)
13516 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13517 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13518 wlarc=
13519 hardcode_libdir_flag_spec_CXX='-R$libdir'
13520 hardcode_direct_CXX=yes
13521 hardcode_shlibpath_var_CXX=no
13522 fi
13523 # Workaround some broken pre-1.5 toolchains
13524 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13525 ;;
13526
13527 *nto* | *qnx*)
13528 ld_shlibs_CXX=yes
13529 ;;
13530
13531 openbsd2*)
13532 # C++ shared libraries are fairly broken
13533 ld_shlibs_CXX=no
13534 ;;
13535
13536 openbsd*)
13537 if test -f /usr/libexec/ld.so; then
13538 hardcode_direct_CXX=yes
13539 hardcode_shlibpath_var_CXX=no
13540 hardcode_direct_absolute_CXX=yes
13541 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13542 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13543 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13544 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13545 export_dynamic_flag_spec_CXX='${wl}-E'
13546 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13547 fi
13548 output_verbose_link_cmd=func_echo_all
13549 else
13550 ld_shlibs_CXX=no
13551 fi
13552 ;;
13553
13554 osf3* | osf4* | osf5*)
13555 case $cc_basename in
13556 KCC*)
13557 # Kuck and Associates, Inc. (KAI) C++ Compiler
13558
13559 # KCC will only create a shared library if the output file
13560 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13561 # to its proper name (with version) after linking.
13562 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'
13563
13564 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13565 hardcode_libdir_separator_CXX=:
13566
13567 # Archives containing C++ object files must be created using
13568 # the KAI C++ compiler.
13569 case $host in
13570 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13571 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13572 esac
13573 ;;
13574 RCC*)
13575 # Rational C++ 2.4.1
13576 # FIXME: insert proper C++ library support
13577 ld_shlibs_CXX=no
13578 ;;
13579 cxx*)
13580 case $host in
13581 osf3*)
13582 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13583 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'
13584 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13585 ;;
13586 *)
13587 allow_undefined_flag_CXX=' -expect_unresolved \*'
13588 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'
13589 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13590 echo "-hidden">> $lib.exp~
13591 $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~
13592 $RM $lib.exp'
13593 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13594 ;;
13595 esac
13596
13597 hardcode_libdir_separator_CXX=:
13598
13599 # Commands to make compiler produce verbose output that lists
13600 # what "hidden" libraries, object files and flags are used when
13601 # linking a shared library.
13602 #
13603 # There doesn't appear to be a way to prevent this compiler from
13604 # explicitly linking system object files so we need to strip them
13605 # from the output so that they don't get included in the library
13606 # dependencies.
13607 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"'
13608 ;;
13609 *)
13610 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13611 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13612 case $host in
13613 osf3*)
13614 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'
13615 ;;
13616 *)
13617 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'
13618 ;;
13619 esac
13620
13621 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13622 hardcode_libdir_separator_CXX=:
13623
13624 # Commands to make compiler produce verbose output that lists
13625 # what "hidden" libraries, object files and flags are used when
13626 # linking a shared library.
13627 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13628
13629 else
13630 # FIXME: insert proper C++ library support
13631 ld_shlibs_CXX=no
13632 fi
13633 ;;
13634 esac
13635 ;;
13636
13637 psos*)
13638 # FIXME: insert proper C++ library support
13639 ld_shlibs_CXX=no
13640 ;;
13641
13642 sunos4*)
13643 case $cc_basename in
13644 CC*)
13645 # Sun C++ 4.x
13646 # FIXME: insert proper C++ library support
13647 ld_shlibs_CXX=no
13648 ;;
13649 lcc*)
13650 # Lucid
13651 # FIXME: insert proper C++ library support
13652 ld_shlibs_CXX=no
13653 ;;
13654 *)
13655 # FIXME: insert proper C++ library support
13656 ld_shlibs_CXX=no
13657 ;;
13658 esac
13659 ;;
13660
13661 solaris*)
13662 case $cc_basename in
13663 CC*)
13664 # Sun C++ 4.2, 5.x and Centerline C++
13665 archive_cmds_need_lc_CXX=yes
13666 no_undefined_flag_CXX=' -zdefs'
13667 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13668 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13669 $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'
13670
13671 hardcode_libdir_flag_spec_CXX='-R$libdir'
13672 hardcode_shlibpath_var_CXX=no
13673 case $host_os in
13674 solaris2.[0-5] | solaris2.[0-5].*) ;;
13675 *)
13676 # The compiler driver will combine and reorder linker options,
13677 # but understands `-z linker_flag'.
13678 # Supported since Solaris 2.6 (maybe 2.5.1?)
13679 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13680 ;;
13681 esac
13682 link_all_deplibs_CXX=yes
13683
13684 output_verbose_link_cmd='func_echo_all'
13685
13686 # Archives containing C++ object files must be created using
13687 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13688 # necessary to make sure instantiated templates are included
13689 # in the archive.
13690 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13691 ;;
13692 gcx*)
13693 # Green Hills C++ Compiler
13694 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13695
13696 # The C++ compiler must be used to create the archive.
13697 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13698 ;;
13699 *)
13700 # GNU C++ compiler with Solaris linker
13701 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13702 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13703 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13704 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13705 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13706 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13707
13708 # Commands to make compiler produce verbose output that lists
13709 # what "hidden" libraries, object files and flags are used when
13710 # linking a shared library.
13711 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13712 else
13713 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13714 # platform.
13715 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13716 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13717 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13718
13719 # Commands to make compiler produce verbose output that lists
13720 # what "hidden" libraries, object files and flags are used when
13721 # linking a shared library.
13722 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13723 fi
13724
13725 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13726 case $host_os in
13727 solaris2.[0-5] | solaris2.[0-5].*) ;;
13728 *)
13729 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13730 ;;
13731 esac
13732 fi
13733 ;;
13734 esac
13735 ;;
13736
13737 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13738 no_undefined_flag_CXX='${wl}-z,text'
13739 archive_cmds_need_lc_CXX=no
13740 hardcode_shlibpath_var_CXX=no
13741 runpath_var='LD_RUN_PATH'
13742
13743 case $cc_basename in
13744 CC*)
13745 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13746 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13747 ;;
13748 *)
13749 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13750 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13751 ;;
13752 esac
13753 ;;
13754
13755 sysv5* | sco3.2v5* | sco5v6*)
13756 # Note: We can NOT use -z defs as we might desire, because we do not
13757 # link with -lc, and that would cause any symbols used from libc to
13758 # always be unresolved, which means just about no library would
13759 # ever link correctly. If we're not using GNU ld we use -z text
13760 # though, which does catch some bad symbols but isn't as heavy-handed
13761 # as -z defs.
13762 no_undefined_flag_CXX='${wl}-z,text'
13763 allow_undefined_flag_CXX='${wl}-z,nodefs'
13764 archive_cmds_need_lc_CXX=no
13765 hardcode_shlibpath_var_CXX=no
13766 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13767 hardcode_libdir_separator_CXX=':'
13768 link_all_deplibs_CXX=yes
13769 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13770 runpath_var='LD_RUN_PATH'
13771
13772 case $cc_basename in
13773 CC*)
13774 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13775 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13776 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13777 '"$old_archive_cmds_CXX"
13778 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13779 '"$reload_cmds_CXX"
13780 ;;
13781 *)
13782 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13783 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13784 ;;
13785 esac
13786 ;;
13787
13788 tandem*)
13789 case $cc_basename in
13790 NCC*)
13791 # NonStop-UX NCC 3.20
13792 # FIXME: insert proper C++ library support
13793 ld_shlibs_CXX=no
13794 ;;
13795 *)
13796 # FIXME: insert proper C++ library support
13797 ld_shlibs_CXX=no
13798 ;;
13799 esac
13800 ;;
13801
13802 vxworks*)
13803 # FIXME: insert proper C++ library support
13804 ld_shlibs_CXX=no
13805 ;;
13806
13807 *)
13808 # FIXME: insert proper C++ library support
13809 ld_shlibs_CXX=no
13810 ;;
13811 esac
13812
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13814$as_echo "$ld_shlibs_CXX" >&6; }
13815 test "$ld_shlibs_CXX" = no && can_build_shared=no
13816
13817 GCC_CXX="$GXX"
13818 LD_CXX="$LD"
13819
13820 ## CAVEAT EMPTOR:
13821 ## There is no encapsulation within the following macros, do not change
13822 ## the running order or otherwise move them around unless you know exactly
13823 ## what you are doing...
13824 # Dependencies to place before and after the object being linked:
13825predep_objects_CXX=
13826postdep_objects_CXX=
13827predeps_CXX=
13828postdeps_CXX=
13829compiler_lib_search_path_CXX=
13830
13831cat > conftest.$ac_ext <<_LT_EOF
13832class Foo
13833{
13834public:
13835 Foo (void) { a = 0; }
13836private:
13837 int a;
13838};
13839_LT_EOF
13840
13841if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13842 (eval $ac_compile) 2>&5
13843 ac_status=$?
13844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13845 test $ac_status = 0; }; then
13846 # Parse the compiler output and extract the necessary
13847 # objects, libraries and library flags.
13848
13849 # Sentinel used to keep track of whether or not we are before
13850 # the conftest object file.
13851 pre_test_object_deps_done=no
13852
13853 for p in `eval "$output_verbose_link_cmd"`; do
13854 case $p in
13855
13856 -L* | -R* | -l*)
13857 # Some compilers place space between "-{L,R}" and the path.
13858 # Remove the space.
13859 if test $p = "-L" ||
13860 test $p = "-R"; then
13861 prev=$p
13862 continue
13863 else
13864 prev=
13865 fi
13866
13867 if test "$pre_test_object_deps_done" = no; then
13868 case $p in
13869 -L* | -R*)
13870 # Internal compiler library paths should come after those
13871 # provided the user. The postdeps already come after the
13872 # user supplied libs so there is no need to process them.
13873 if test -z "$compiler_lib_search_path_CXX"; then
13874 compiler_lib_search_path_CXX="${prev}${p}"
13875 else
13876 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13877 fi
13878 ;;
13879 # The "-l" case would never come before the object being
13880 # linked, so don't bother handling this case.
13881 esac
13882 else
13883 if test -z "$postdeps_CXX"; then
13884 postdeps_CXX="${prev}${p}"
13885 else
13886 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13887 fi
13888 fi
13889 ;;
13890
13891 *.$objext)
13892 # This assumes that the test object file only shows up
13893 # once in the compiler output.
13894 if test "$p" = "conftest.$objext"; then
13895 pre_test_object_deps_done=yes
13896 continue
13897 fi
13898
13899 if test "$pre_test_object_deps_done" = no; then
13900 if test -z "$predep_objects_CXX"; then
13901 predep_objects_CXX="$p"
13902 else
13903 predep_objects_CXX="$predep_objects_CXX $p"
13904 fi
13905 else
13906 if test -z "$postdep_objects_CXX"; then
13907 postdep_objects_CXX="$p"
13908 else
13909 postdep_objects_CXX="$postdep_objects_CXX $p"
13910 fi
13911 fi
13912 ;;
13913
13914 *) ;; # Ignore the rest.
13915
13916 esac
13917 done
13918
13919 # Clean up.
13920 rm -f a.out a.exe
13921else
13922 echo "libtool.m4: error: problem compiling CXX test program"
13923fi
13924
13925$RM -f confest.$objext
13926
13927# PORTME: override above test on systems where it is broken
13928case $host_os in
13929interix[3-9]*)
13930 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13931 # hack all around it, let's just trust "g++" to DTRT.
13932 predep_objects_CXX=
13933 postdep_objects_CXX=
13934 postdeps_CXX=
13935 ;;
13936
13937linux*)
13938 case `$CC -V 2>&1 | sed 5q` in
13939 *Sun\ C*)
13940 # Sun C++ 5.9
13941
13942 # The more standards-conforming stlport4 library is
13943 # incompatible with the Cstd library. Avoid specifying
13944 # it if it's in CXXFLAGS. Ignore libCrun as
13945 # -library=stlport4 depends on it.
13946 case " $CXX $CXXFLAGS " in
13947 *" -library=stlport4 "*)
13948 solaris_use_stlport4=yes
13949 ;;
13950 esac
13951
13952 if test "$solaris_use_stlport4" != yes; then
13953 postdeps_CXX='-library=Cstd -library=Crun'
13954 fi
13955 ;;
13956 esac
13957 ;;
13958
13959solaris*)
13960 case $cc_basename in
13961 CC*)
13962 # The more standards-conforming stlport4 library is
13963 # incompatible with the Cstd library. Avoid specifying
13964 # it if it's in CXXFLAGS. Ignore libCrun as
13965 # -library=stlport4 depends on it.
13966 case " $CXX $CXXFLAGS " in
13967 *" -library=stlport4 "*)
13968 solaris_use_stlport4=yes
13969 ;;
13970 esac
13971
13972 # Adding this requires a known-good setup of shared libraries for
13973 # Sun compiler versions before 5.6, else PIC objects from an old
13974 # archive will be linked into the output, leading to subtle bugs.
13975 if test "$solaris_use_stlport4" != yes; then
13976 postdeps_CXX='-library=Cstd -library=Crun'
13977 fi
13978 ;;
13979 esac
13980 ;;
13981esac
13982
13983
13984case " $postdeps_CXX " in
13985*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13986esac
13987 compiler_lib_search_dirs_CXX=
13988if test -n "${compiler_lib_search_path_CXX}"; then
13989 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13990fi
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022 lt_prog_compiler_wl_CXX=
14023lt_prog_compiler_pic_CXX=
14024lt_prog_compiler_static_CXX=
14025
14026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14027$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14028
14029 # C++ specific cases for pic, static, wl, etc.
14030 if test "$GXX" = yes; then
14031 lt_prog_compiler_wl_CXX='-Wl,'
14032 lt_prog_compiler_static_CXX='-static'
14033
14034 case $host_os in
14035 aix*)
14036 # All AIX code is PIC.
14037 if test "$host_cpu" = ia64; then
14038 # AIX 5 now supports IA64 processor
14039 lt_prog_compiler_static_CXX='-Bstatic'
14040 fi
14041 lt_prog_compiler_pic_CXX='-fPIC'
14042 ;;
14043
14044 amigaos*)
14045 case $host_cpu in
14046 powerpc)
14047 # see comment about AmigaOS4 .so support
14048 lt_prog_compiler_pic_CXX='-fPIC'
14049 ;;
14050 m68k)
14051 # FIXME: we need at least 68020 code to build shared libraries, but
14052 # adding the `-m68020' flag to GCC prevents building anything better,
14053 # like `-m68040'.
14054 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14055 ;;
14056 esac
14057 ;;
14058
14059 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14060 # PIC is the default for these OSes.
14061 ;;
14062 mingw* | cygwin* | os2* | pw32* | cegcc*)
14063 # This hack is so that the source file can tell whether it is being
14064 # built for inclusion in a dll (and should export symbols for example).
14065 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14066 # (--disable-auto-import) libraries
14067 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14068 ;;
14069 darwin* | rhapsody*)
14070 # PIC is the default on this platform
14071 # Common symbols not allowed in MH_DYLIB files
14072 lt_prog_compiler_pic_CXX='-fno-common'
14073 ;;
14074 *djgpp*)
14075 # DJGPP does not support shared libraries at all
14076 lt_prog_compiler_pic_CXX=
14077 ;;
14078 haiku*)
14079 # PIC is the default for Haiku.
14080 # The "-static" flag exists, but is broken.
14081 lt_prog_compiler_static_CXX=
14082 ;;
14083 interix[3-9]*)
14084 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14085 # Instead, we relocate shared libraries at runtime.
14086 ;;
14087 sysv4*MP*)
14088 if test -d /usr/nec; then
14089 lt_prog_compiler_pic_CXX=-Kconform_pic
14090 fi
14091 ;;
14092 hpux*)
14093 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14094 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14095 # sets the default TLS model and affects inlining.
14096 case $host_cpu in
14097 hppa*64*)
14098 ;;
14099 *)
14100 lt_prog_compiler_pic_CXX='-fPIC'
14101 ;;
14102 esac
14103 ;;
14104 *qnx* | *nto*)
14105 # QNX uses GNU C++, but need to define -shared option too, otherwise
14106 # it will coredump.
14107 lt_prog_compiler_pic_CXX='-fPIC -shared'
14108 ;;
14109 *)
14110 lt_prog_compiler_pic_CXX='-fPIC'
14111 ;;
14112 esac
14113 else
14114 case $host_os in
14115 aix[4-9]*)
14116 # All AIX code is PIC.
14117 if test "$host_cpu" = ia64; then
14118 # AIX 5 now supports IA64 processor
14119 lt_prog_compiler_static_CXX='-Bstatic'
14120 else
14121 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14122 fi
14123 ;;
14124 chorus*)
14125 case $cc_basename in
14126 cxch68*)
14127 # Green Hills C++ Compiler
14128 # _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"
14129 ;;
14130 esac
14131 ;;
14132 dgux*)
14133 case $cc_basename in
14134 ec++*)
14135 lt_prog_compiler_pic_CXX='-KPIC'
14136 ;;
14137 ghcx*)
14138 # Green Hills C++ Compiler
14139 lt_prog_compiler_pic_CXX='-pic'
14140 ;;
14141 *)
14142 ;;
14143 esac
14144 ;;
14145 freebsd* | dragonfly*)
14146 # FreeBSD uses GNU C++
14147 ;;
14148 hpux9* | hpux10* | hpux11*)
14149 case $cc_basename in
14150 CC*)
14151 lt_prog_compiler_wl_CXX='-Wl,'
14152 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14153 if test "$host_cpu" != ia64; then
14154 lt_prog_compiler_pic_CXX='+Z'
14155 fi
14156 ;;
14157 aCC*)
14158 lt_prog_compiler_wl_CXX='-Wl,'
14159 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14160 case $host_cpu in
14161 hppa*64*|ia64*)
14162 # +Z the default
14163 ;;
14164 *)
14165 lt_prog_compiler_pic_CXX='+Z'
14166 ;;
14167 esac
14168 ;;
14169 *)
14170 ;;
14171 esac
14172 ;;
14173 interix*)
14174 # This is c89, which is MS Visual C++ (no shared libs)
14175 # Anyone wants to do a port?
14176 ;;
14177 irix5* | irix6* | nonstopux*)
14178 case $cc_basename in
14179 CC*)
14180 lt_prog_compiler_wl_CXX='-Wl,'
14181 lt_prog_compiler_static_CXX='-non_shared'
14182 # CC pic flag -KPIC is the default.
14183 ;;
14184 *)
14185 ;;
14186 esac
14187 ;;
14188 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14189 case $cc_basename in
14190 KCC*)
14191 # KAI C++ Compiler
14192 lt_prog_compiler_wl_CXX='--backend -Wl,'
14193 lt_prog_compiler_pic_CXX='-fPIC'
14194 ;;
14195 ecpc* )
14196 # old Intel C++ for x86_64 which still supported -KPIC.
14197 lt_prog_compiler_wl_CXX='-Wl,'
14198 lt_prog_compiler_pic_CXX='-KPIC'
14199 lt_prog_compiler_static_CXX='-static'
14200 ;;
14201 icpc* )
14202 # Intel C++, used to be incompatible with GCC.
14203 # ICC 10 doesn't accept -KPIC any more.
14204 lt_prog_compiler_wl_CXX='-Wl,'
14205 lt_prog_compiler_pic_CXX='-fPIC'
14206 lt_prog_compiler_static_CXX='-static'
14207 ;;
14208 pgCC* | pgcpp*)
14209 # Portland Group C++ compiler
14210 lt_prog_compiler_wl_CXX='-Wl,'
14211 lt_prog_compiler_pic_CXX='-fpic'
14212 lt_prog_compiler_static_CXX='-Bstatic'
14213 ;;
14214 cxx*)
14215 # Compaq C++
14216 # Make sure the PIC flag is empty. It appears that all Alpha
14217 # Linux and Compaq Tru64 Unix objects are PIC.
14218 lt_prog_compiler_pic_CXX=
14219 lt_prog_compiler_static_CXX='-non_shared'
14220 ;;
14221 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14222 # IBM XL 8.0, 9.0 on PPC and BlueGene
14223 lt_prog_compiler_wl_CXX='-Wl,'
14224 lt_prog_compiler_pic_CXX='-qpic'
14225 lt_prog_compiler_static_CXX='-qstaticlink'
14226 ;;
14227 *)
14228 case `$CC -V 2>&1 | sed 5q` in
14229 *Sun\ C*)
14230 # Sun C++ 5.9
14231 lt_prog_compiler_pic_CXX='-KPIC'
14232 lt_prog_compiler_static_CXX='-Bstatic'
14233 lt_prog_compiler_wl_CXX='-Qoption ld '
14234 ;;
14235 esac
14236 ;;
14237 esac
14238 ;;
14239 lynxos*)
14240 ;;
14241 m88k*)
14242 ;;
14243 mvs*)
14244 case $cc_basename in
14245 cxx*)
14246 lt_prog_compiler_pic_CXX='-W c,exportall'
14247 ;;
14248 *)
14249 ;;
14250 esac
14251 ;;
14252 netbsd*)
14253 ;;
14254 *qnx* | *nto*)
14255 # QNX uses GNU C++, but need to define -shared option too, otherwise
14256 # it will coredump.
14257 lt_prog_compiler_pic_CXX='-fPIC -shared'
14258 ;;
14259 osf3* | osf4* | osf5*)
14260 case $cc_basename in
14261 KCC*)
14262 lt_prog_compiler_wl_CXX='--backend -Wl,'
14263 ;;
14264 RCC*)
14265 # Rational C++ 2.4.1
14266 lt_prog_compiler_pic_CXX='-pic'
14267 ;;
14268 cxx*)
14269 # Digital/Compaq C++
14270 lt_prog_compiler_wl_CXX='-Wl,'
14271 # Make sure the PIC flag is empty. It appears that all Alpha
14272 # Linux and Compaq Tru64 Unix objects are PIC.
14273 lt_prog_compiler_pic_CXX=
14274 lt_prog_compiler_static_CXX='-non_shared'
14275 ;;
14276 *)
14277 ;;
14278 esac
14279 ;;
14280 psos*)
14281 ;;
14282 solaris*)
14283 case $cc_basename in
14284 CC*)
14285 # Sun C++ 4.2, 5.x and Centerline C++
14286 lt_prog_compiler_pic_CXX='-KPIC'
14287 lt_prog_compiler_static_CXX='-Bstatic'
14288 lt_prog_compiler_wl_CXX='-Qoption ld '
14289 ;;
14290 gcx*)
14291 # Green Hills C++ Compiler
14292 lt_prog_compiler_pic_CXX='-PIC'
14293 ;;
14294 *)
14295 ;;
14296 esac
14297 ;;
14298 sunos4*)
14299 case $cc_basename in
14300 CC*)
14301 # Sun C++ 4.x
14302 lt_prog_compiler_pic_CXX='-pic'
14303 lt_prog_compiler_static_CXX='-Bstatic'
14304 ;;
14305 lcc*)
14306 # Lucid
14307 lt_prog_compiler_pic_CXX='-pic'
14308 ;;
14309 *)
14310 ;;
14311 esac
14312 ;;
14313 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14314 case $cc_basename in
14315 CC*)
14316 lt_prog_compiler_wl_CXX='-Wl,'
14317 lt_prog_compiler_pic_CXX='-KPIC'
14318 lt_prog_compiler_static_CXX='-Bstatic'
14319 ;;
14320 esac
14321 ;;
14322 tandem*)
14323 case $cc_basename in
14324 NCC*)
14325 # NonStop-UX NCC 3.20
14326 lt_prog_compiler_pic_CXX='-KPIC'
14327 ;;
14328 *)
14329 ;;
14330 esac
14331 ;;
14332 vxworks*)
14333 ;;
14334 *)
14335 lt_prog_compiler_can_build_shared_CXX=no
14336 ;;
14337 esac
14338 fi
14339
14340case $host_os in
14341 # For platforms which do not support PIC, -DPIC is meaningless:
14342 *djgpp*)
14343 lt_prog_compiler_pic_CXX=
14344 ;;
14345 *)
14346 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14347 ;;
14348esac
14349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14350$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14351
14352
14353
14354#
14355# Check to make sure the PIC flag actually works.
14356#
14357if test -n "$lt_prog_compiler_pic_CXX"; then
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14359$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14360if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14361 $as_echo_n "(cached) " >&6
14362else
14363 lt_cv_prog_compiler_pic_works_CXX=no
14364 ac_outfile=conftest.$ac_objext
14365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14366 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14367 # Insert the option either (1) after the last *FLAGS variable, or
14368 # (2) before a word containing "conftest.", or (3) at the end.
14369 # Note that $ac_compile itself does not contain backslashes and begins
14370 # with a dollar sign (not a hyphen), so the echo should work correctly.
14371 # The option is referenced via a variable to avoid confusing sed.
14372 lt_compile=`echo "$ac_compile" | $SED \
14373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14375 -e 's:$: $lt_compiler_flag:'`
14376 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14377 (eval "$lt_compile" 2>conftest.err)
14378 ac_status=$?
14379 cat conftest.err >&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 if (exit $ac_status) && test -s "$ac_outfile"; then
14382 # The compiler can only warn and ignore the option if not recognized
14383 # So say no if there are warnings other than the usual output.
14384 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14386 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14387 lt_cv_prog_compiler_pic_works_CXX=yes
14388 fi
14389 fi
14390 $RM conftest*
14391
14392fi
14393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14394$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14395
14396if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14397 case $lt_prog_compiler_pic_CXX in
14398 "" | " "*) ;;
14399 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14400 esac
14401else
14402 lt_prog_compiler_pic_CXX=
14403 lt_prog_compiler_can_build_shared_CXX=no
14404fi
14405
14406fi
14407
14408
14409
14410#
14411# Check to make sure the static flag actually works.
14412#
14413wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14415$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14416if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14417 $as_echo_n "(cached) " >&6
14418else
14419 lt_cv_prog_compiler_static_works_CXX=no
14420 save_LDFLAGS="$LDFLAGS"
14421 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14422 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14423 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14424 # The linker can only warn and ignore the option if not recognized
14425 # So say no if there are warnings
14426 if test -s conftest.err; then
14427 # Append any errors to the config.log.
14428 cat conftest.err 1>&5
14429 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14431 if diff conftest.exp conftest.er2 >/dev/null; then
14432 lt_cv_prog_compiler_static_works_CXX=yes
14433 fi
14434 else
14435 lt_cv_prog_compiler_static_works_CXX=yes
14436 fi
14437 fi
14438 $RM -r conftest*
14439 LDFLAGS="$save_LDFLAGS"
14440
14441fi
14442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14443$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14444
14445if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14446 :
14447else
14448 lt_prog_compiler_static_CXX=
14449fi
14450
14451
14452
14453
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14455$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14456if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14457 $as_echo_n "(cached) " >&6
14458else
14459 lt_cv_prog_compiler_c_o_CXX=no
14460 $RM -r conftest 2>/dev/null
14461 mkdir conftest
14462 cd conftest
14463 mkdir out
14464 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14465
14466 lt_compiler_flag="-o out/conftest2.$ac_objext"
14467 # Insert the option either (1) after the last *FLAGS variable, or
14468 # (2) before a word containing "conftest.", or (3) at the end.
14469 # Note that $ac_compile itself does not contain backslashes and begins
14470 # with a dollar sign (not a hyphen), so the echo should work correctly.
14471 lt_compile=`echo "$ac_compile" | $SED \
14472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14474 -e 's:$: $lt_compiler_flag:'`
14475 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14476 (eval "$lt_compile" 2>out/conftest.err)
14477 ac_status=$?
14478 cat out/conftest.err >&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14481 then
14482 # The compiler can only warn and ignore the option if not recognized
14483 # So say no if there are warnings
14484 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14485 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14486 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14487 lt_cv_prog_compiler_c_o_CXX=yes
14488 fi
14489 fi
14490 chmod u+w . 2>&5
14491 $RM conftest*
14492 # SGI C++ compiler will create directory out/ii_files/ for
14493 # template instantiation
14494 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14495 $RM out/* && rmdir out
14496 cd ..
14497 $RM -r conftest
14498 $RM conftest*
14499
14500fi
14501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14502$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14503
14504
14505
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14507$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14508if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14509 $as_echo_n "(cached) " >&6
14510else
14511 lt_cv_prog_compiler_c_o_CXX=no
14512 $RM -r conftest 2>/dev/null
14513 mkdir conftest
14514 cd conftest
14515 mkdir out
14516 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14517
14518 lt_compiler_flag="-o out/conftest2.$ac_objext"
14519 # Insert the option either (1) after the last *FLAGS variable, or
14520 # (2) before a word containing "conftest.", or (3) at the end.
14521 # Note that $ac_compile itself does not contain backslashes and begins
14522 # with a dollar sign (not a hyphen), so the echo should work correctly.
14523 lt_compile=`echo "$ac_compile" | $SED \
14524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14526 -e 's:$: $lt_compiler_flag:'`
14527 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14528 (eval "$lt_compile" 2>out/conftest.err)
14529 ac_status=$?
14530 cat out/conftest.err >&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14533 then
14534 # The compiler can only warn and ignore the option if not recognized
14535 # So say no if there are warnings
14536 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14537 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14538 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14539 lt_cv_prog_compiler_c_o_CXX=yes
14540 fi
14541 fi
14542 chmod u+w . 2>&5
14543 $RM conftest*
14544 # SGI C++ compiler will create directory out/ii_files/ for
14545 # template instantiation
14546 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14547 $RM out/* && rmdir out
14548 cd ..
14549 $RM -r conftest
14550 $RM conftest*
14551
14552fi
14553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14554$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14555
14556
14557
14558
14559hard_links="nottested"
14560if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14561 # do not overwrite the value of need_locks provided by the user
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14563$as_echo_n "checking if we can lock with hard links... " >&6; }
14564 hard_links=yes
14565 $RM conftest*
14566 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14567 touch conftest.a
14568 ln conftest.a conftest.b 2>&5 || hard_links=no
14569 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14571$as_echo "$hard_links" >&6; }
14572 if test "$hard_links" = no; then
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14574$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14575 need_locks=warn
14576 fi
14577else
14578 need_locks=no
14579fi
14580
14581
14582
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14584$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14585
14586 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14587 case $host_os in
14588 aix[4-9]*)
14589 # If we're using GNU nm, then we don't want the "-C" option.
14590 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14591 # Also, AIX nm treats weak defined symbols like other global defined
14592 # symbols, whereas GNU nm marks them as "W".
14593 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14594 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'
14595 else
14596 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'
14597 fi
14598 ;;
14599 pw32*)
14600 export_symbols_cmds_CXX="$ltdll_cmds"
14601 ;;
14602 cygwin* | mingw* | cegcc*)
14603 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'
14604 ;;
14605 *)
14606 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14607 ;;
14608 esac
14609 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14610
14611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14612$as_echo "$ld_shlibs_CXX" >&6; }
14613test "$ld_shlibs_CXX" = no && can_build_shared=no
14614
14615with_gnu_ld_CXX=$with_gnu_ld
14616
14617
14618
14619
14620
14621
14622#
14623# Do we need to explicitly link libc?
14624#
14625case "x$archive_cmds_need_lc_CXX" in
14626x|xyes)
14627 # Assume -lc should be added
14628 archive_cmds_need_lc_CXX=yes
14629
14630 if test "$enable_shared" = yes && test "$GCC" = yes; then
14631 case $archive_cmds_CXX in
14632 *'~'*)
14633 # FIXME: we may have to deal with multi-command sequences.
14634 ;;
14635 '$CC '*)
14636 # Test whether the compiler implicitly links with -lc since on some
14637 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14638 # to ld, don't add -lc before -lgcc.
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14640$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14641if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14642 $as_echo_n "(cached) " >&6
14643else
14644 $RM conftest*
14645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14646
14647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14648 (eval $ac_compile) 2>&5
14649 ac_status=$?
14650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14651 test $ac_status = 0; } 2>conftest.err; then
14652 soname=conftest
14653 lib=conftest
14654 libobjs=conftest.$ac_objext
14655 deplibs=
14656 wl=$lt_prog_compiler_wl_CXX
14657 pic_flag=$lt_prog_compiler_pic_CXX
14658 compiler_flags=-v
14659 linker_flags=-v
14660 verstring=
14661 output_objdir=.
14662 libname=conftest
14663 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14664 allow_undefined_flag_CXX=
14665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14666 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14667 ac_status=$?
14668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14669 test $ac_status = 0; }
14670 then
14671 lt_cv_archive_cmds_need_lc_CXX=no
14672 else
14673 lt_cv_archive_cmds_need_lc_CXX=yes
14674 fi
14675 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14676 else
14677 cat conftest.err 1>&5
14678 fi
14679 $RM conftest*
14680
14681fi
14682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14683$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14684 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14685 ;;
14686 esac
14687 fi
14688 ;;
14689esac
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14755$as_echo_n "checking dynamic linker characteristics... " >&6; }
14756
14757library_names_spec=
14758libname_spec='lib$name'
14759soname_spec=
14760shrext_cmds=".so"
14761postinstall_cmds=
14762postuninstall_cmds=
14763finish_cmds=
14764finish_eval=
14765shlibpath_var=
14766shlibpath_overrides_runpath=unknown
14767version_type=none
14768dynamic_linker="$host_os ld.so"
14769sys_lib_dlsearch_path_spec="/lib /usr/lib"
14770need_lib_prefix=unknown
14771hardcode_into_libs=no
14772
14773# when you set need_version to no, make sure it does not cause -set_version
14774# flags to be left without arguments
14775need_version=unknown
14776
14777case $host_os in
14778aix3*)
14779 version_type=linux
14780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14781 shlibpath_var=LIBPATH
14782
14783 # AIX 3 has no versioning support, so we append a major version to the name.
14784 soname_spec='${libname}${release}${shared_ext}$major'
14785 ;;
14786
14787aix[4-9]*)
14788 version_type=linux
14789 need_lib_prefix=no
14790 need_version=no
14791 hardcode_into_libs=yes
14792 if test "$host_cpu" = ia64; then
14793 # AIX 5 supports IA64
14794 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14795 shlibpath_var=LD_LIBRARY_PATH
14796 else
14797 # With GCC up to 2.95.x, collect2 would create an import file
14798 # for dependence libraries. The import file would start with
14799 # the line `#! .'. This would cause the generated library to
14800 # depend on `.', always an invalid library. This was fixed in
14801 # development snapshots of GCC prior to 3.0.
14802 case $host_os in
14803 aix4 | aix4.[01] | aix4.[01].*)
14804 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14805 echo ' yes '
14806 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14807 :
14808 else
14809 can_build_shared=no
14810 fi
14811 ;;
14812 esac
14813 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14814 # soname into executable. Probably we can add versioning support to
14815 # collect2, so additional links can be useful in future.
14816 if test "$aix_use_runtimelinking" = yes; then
14817 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14818 # instead of lib<name>.a to let people know that these are not
14819 # typical AIX shared libraries.
14820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14821 else
14822 # We preserve .a as extension for shared libraries through AIX4.2
14823 # and later when we are not doing run time linking.
14824 library_names_spec='${libname}${release}.a $libname.a'
14825 soname_spec='${libname}${release}${shared_ext}$major'
14826 fi
14827 shlibpath_var=LIBPATH
14828 fi
14829 ;;
14830
14831amigaos*)
14832 case $host_cpu in
14833 powerpc)
14834 # Since July 2007 AmigaOS4 officially supports .so libraries.
14835 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14837 ;;
14838 m68k)
14839 library_names_spec='$libname.ixlibrary $libname.a'
14840 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14841 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'
14842 ;;
14843 esac
14844 ;;
14845
14846beos*)
14847 library_names_spec='${libname}${shared_ext}'
14848 dynamic_linker="$host_os ld.so"
14849 shlibpath_var=LIBRARY_PATH
14850 ;;
14851
14852bsdi[45]*)
14853 version_type=linux
14854 need_version=no
14855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14856 soname_spec='${libname}${release}${shared_ext}$major'
14857 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14858 shlibpath_var=LD_LIBRARY_PATH
14859 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14860 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14861 # the default ld.so.conf also contains /usr/contrib/lib and
14862 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14863 # libtool to hard-code these into programs
14864 ;;
14865
14866cygwin* | mingw* | pw32* | cegcc*)
14867 version_type=windows
14868 shrext_cmds=".dll"
14869 need_version=no
14870 need_lib_prefix=no
14871
14872 case $GCC,$host_os in
14873 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14874 library_names_spec='$libname.dll.a'
14875 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14876 postinstall_cmds='base_file=`basename \${file}`~
14877 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14878 dldir=$destdir/`dirname \$dlpath`~
14879 test -d \$dldir || mkdir -p \$dldir~
14880 $install_prog $dir/$dlname \$dldir/$dlname~
14881 chmod a+x \$dldir/$dlname~
14882 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14883 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14884 fi'
14885 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14886 dlpath=$dir/\$dldll~
14887 $RM \$dlpath'
14888 shlibpath_overrides_runpath=yes
14889
14890 case $host_os in
14891 cygwin*)
14892 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14893 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14894
14895 ;;
14896 mingw* | cegcc*)
14897 # MinGW DLLs use traditional 'lib' prefix
14898 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14899 ;;
14900 pw32*)
14901 # pw32 DLLs use 'pw' prefix rather than 'lib'
14902 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14903 ;;
14904 esac
14905 ;;
14906
14907 *)
14908 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14909 ;;
14910 esac
14911 dynamic_linker='Win32 ld.exe'
14912 # FIXME: first we should search . and the directory the executable is in
14913 shlibpath_var=PATH
14914 ;;
14915
14916darwin* | rhapsody*)
14917 dynamic_linker="$host_os dyld"
14918 version_type=darwin
14919 need_lib_prefix=no
14920 need_version=no
14921 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14922 soname_spec='${libname}${release}${major}$shared_ext'
14923 shlibpath_overrides_runpath=yes
14924 shlibpath_var=DYLD_LIBRARY_PATH
14925 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14926
14927 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14928 ;;
14929
14930dgux*)
14931 version_type=linux
14932 need_lib_prefix=no
14933 need_version=no
14934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14935 soname_spec='${libname}${release}${shared_ext}$major'
14936 shlibpath_var=LD_LIBRARY_PATH
14937 ;;
14938
14939freebsd* | dragonfly*)
14940 # DragonFly does not have aout. When/if they implement a new
14941 # versioning mechanism, adjust this.
14942 if test -x /usr/bin/objformat; then
14943 objformat=`/usr/bin/objformat`
14944 else
14945 case $host_os in
14946 freebsd[23].*) objformat=aout ;;
14947 *) objformat=elf ;;
14948 esac
14949 fi
14950 version_type=freebsd-$objformat
14951 case $version_type in
14952 freebsd-elf*)
14953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14954 need_version=no
14955 need_lib_prefix=no
14956 ;;
14957 freebsd-*)
14958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14959 need_version=yes
14960 ;;
14961 esac
14962 shlibpath_var=LD_LIBRARY_PATH
14963 case $host_os in
14964 freebsd2.*)
14965 shlibpath_overrides_runpath=yes
14966 ;;
14967 freebsd3.[01]* | freebsdelf3.[01]*)
14968 shlibpath_overrides_runpath=yes
14969 hardcode_into_libs=yes
14970 ;;
14971 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14972 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14973 shlibpath_overrides_runpath=no
14974 hardcode_into_libs=yes
14975 ;;
14976 *) # from 4.6 on, and DragonFly
14977 shlibpath_overrides_runpath=yes
14978 hardcode_into_libs=yes
14979 ;;
14980 esac
14981 ;;
14982
14983haiku*)
14984 version_type=linux
14985 need_lib_prefix=no
14986 need_version=no
14987 dynamic_linker="$host_os runtime_loader"
14988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14989 soname_spec='${libname}${release}${shared_ext}$major'
14990 shlibpath_var=LIBRARY_PATH
14991 shlibpath_overrides_runpath=yes
14992 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14993 hardcode_into_libs=yes
14994 ;;
14995
14996hpux9* | hpux10* | hpux11*)
14997 # Give a soname corresponding to the major version so that dld.sl refuses to
14998 # link against other versions.
14999 version_type=sunos
15000 need_lib_prefix=no
15001 need_version=no
15002 case $host_cpu in
15003 ia64*)
15004 shrext_cmds='.so'
15005 hardcode_into_libs=yes
15006 dynamic_linker="$host_os dld.so"
15007 shlibpath_var=LD_LIBRARY_PATH
15008 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15010 soname_spec='${libname}${release}${shared_ext}$major'
15011 if test "X$HPUX_IA64_MODE" = X32; then
15012 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15013 else
15014 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15015 fi
15016 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15017 ;;
15018 hppa*64*)
15019 shrext_cmds='.sl'
15020 hardcode_into_libs=yes
15021 dynamic_linker="$host_os dld.sl"
15022 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15025 soname_spec='${libname}${release}${shared_ext}$major'
15026 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15028 ;;
15029 *)
15030 shrext_cmds='.sl'
15031 dynamic_linker="$host_os dld.sl"
15032 shlibpath_var=SHLIB_PATH
15033 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15035 soname_spec='${libname}${release}${shared_ext}$major'
15036 ;;
15037 esac
15038 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15039 postinstall_cmds='chmod 555 $lib'
15040 # or fails outright, so override atomically:
15041 install_override_mode=555
15042 ;;
15043
15044interix[3-9]*)
15045 version_type=linux
15046 need_lib_prefix=no
15047 need_version=no
15048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15049 soname_spec='${libname}${release}${shared_ext}$major'
15050 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15051 shlibpath_var=LD_LIBRARY_PATH
15052 shlibpath_overrides_runpath=no
15053 hardcode_into_libs=yes
15054 ;;
15055
15056irix5* | irix6* | nonstopux*)
15057 case $host_os in
15058 nonstopux*) version_type=nonstopux ;;
15059 *)
15060 if test "$lt_cv_prog_gnu_ld" = yes; then
15061 version_type=linux
15062 else
15063 version_type=irix
15064 fi ;;
15065 esac
15066 need_lib_prefix=no
15067 need_version=no
15068 soname_spec='${libname}${release}${shared_ext}$major'
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15070 case $host_os in
15071 irix5* | nonstopux*)
15072 libsuff= shlibsuff=
15073 ;;
15074 *)
15075 case $LD in # libtool.m4 will add one of these switches to LD
15076 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15077 libsuff= shlibsuff= libmagic=32-bit;;
15078 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15079 libsuff=32 shlibsuff=N32 libmagic=N32;;
15080 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15081 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15082 *) libsuff= shlibsuff= libmagic=never-match;;
15083 esac
15084 ;;
15085 esac
15086 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15087 shlibpath_overrides_runpath=no
15088 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15089 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15090 hardcode_into_libs=yes
15091 ;;
15092
15093# No shared lib support for Linux oldld, aout, or coff.
15094linux*oldld* | linux*aout* | linux*coff*)
15095 dynamic_linker=no
15096 ;;
15097
15098# This must be Linux ELF.
15099linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15100 version_type=linux
15101 need_lib_prefix=no
15102 need_version=no
15103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15104 soname_spec='${libname}${release}${shared_ext}$major'
15105 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15106 shlibpath_var=LD_LIBRARY_PATH
15107 shlibpath_overrides_runpath=no
15108
15109 # Some binutils ld are patched to set DT_RUNPATH
15110 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15111 $as_echo_n "(cached) " >&6
15112else
15113 lt_cv_shlibpath_overrides_runpath=no
15114 save_LDFLAGS=$LDFLAGS
15115 save_libdir=$libdir
15116 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15117 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15119/* end confdefs.h. */
15120
15121int
15122main ()
15123{
15124
15125 ;
15126 return 0;
15127}
15128_ACEOF
15129if ac_fn_cxx_try_link "$LINENO"; then :
15130 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15131 lt_cv_shlibpath_overrides_runpath=yes
15132fi
15133fi
15134rm -f core conftest.err conftest.$ac_objext \
15135 conftest$ac_exeext conftest.$ac_ext
15136 LDFLAGS=$save_LDFLAGS
15137 libdir=$save_libdir
15138
15139fi
15140
15141 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15142
15143 # This implies no fast_install, which is unacceptable.
15144 # Some rework will be needed to allow for fast_install
15145 # before this can be enabled.
15146 hardcode_into_libs=yes
15147
15148 # Append ld.so.conf contents to the search path
15149 if test -f /etc/ld.so.conf; then
15150 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' ' '`
15151 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15152 fi
15153
15154 # We used to test for /lib/ld.so.1 and disable shared libraries on
15155 # powerpc, because MkLinux only supported shared libraries with the
15156 # GNU dynamic linker. Since this was broken with cross compilers,
15157 # most powerpc-linux boxes support dynamic linking these days and
15158 # people can always --disable-shared, the test was removed, and we
15159 # assume the GNU/Linux dynamic linker is in use.
15160 dynamic_linker='GNU/Linux ld.so'
15161 ;;
15162
15163netbsd*)
15164 version_type=sunos
15165 need_lib_prefix=no
15166 need_version=no
15167 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15170 dynamic_linker='NetBSD (a.out) ld.so'
15171 else
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15173 soname_spec='${libname}${release}${shared_ext}$major'
15174 dynamic_linker='NetBSD ld.elf_so'
15175 fi
15176 shlibpath_var=LD_LIBRARY_PATH
15177 shlibpath_overrides_runpath=yes
15178 hardcode_into_libs=yes
15179 ;;
15180
15181newsos6)
15182 version_type=linux
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15184 shlibpath_var=LD_LIBRARY_PATH
15185 shlibpath_overrides_runpath=yes
15186 ;;
15187
15188*nto* | *qnx*)
15189 version_type=qnx
15190 need_lib_prefix=no
15191 need_version=no
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15193 soname_spec='${libname}${release}${shared_ext}$major'
15194 shlibpath_var=LD_LIBRARY_PATH
15195 shlibpath_overrides_runpath=no
15196 hardcode_into_libs=yes
15197 dynamic_linker='ldqnx.so'
15198 ;;
15199
15200openbsd*)
15201 version_type=sunos
15202 sys_lib_dlsearch_path_spec="/usr/lib"
15203 need_lib_prefix=no
15204 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15205 case $host_os in
15206 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15207 *) need_version=no ;;
15208 esac
15209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15211 shlibpath_var=LD_LIBRARY_PATH
15212 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15213 case $host_os in
15214 openbsd2.[89] | openbsd2.[89].*)
15215 shlibpath_overrides_runpath=no
15216 ;;
15217 *)
15218 shlibpath_overrides_runpath=yes
15219 ;;
15220 esac
15221 else
15222 shlibpath_overrides_runpath=yes
15223 fi
15224 ;;
15225
15226os2*)
15227 libname_spec='$name'
15228 shrext_cmds=".dll"
15229 need_lib_prefix=no
15230 library_names_spec='$libname${shared_ext} $libname.a'
15231 dynamic_linker='OS/2 ld.exe'
15232 shlibpath_var=LIBPATH
15233 ;;
15234
15235osf3* | osf4* | osf5*)
15236 version_type=osf
15237 need_lib_prefix=no
15238 need_version=no
15239 soname_spec='${libname}${release}${shared_ext}$major'
15240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15241 shlibpath_var=LD_LIBRARY_PATH
15242 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15243 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15244 ;;
15245
15246rdos*)
15247 dynamic_linker=no
15248 ;;
15249
15250solaris*)
15251 version_type=linux
15252 need_lib_prefix=no
15253 need_version=no
15254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15255 soname_spec='${libname}${release}${shared_ext}$major'
15256 shlibpath_var=LD_LIBRARY_PATH
15257 shlibpath_overrides_runpath=yes
15258 hardcode_into_libs=yes
15259 # ldd complains unless libraries are executable
15260 postinstall_cmds='chmod +x $lib'
15261 ;;
15262
15263sunos4*)
15264 version_type=sunos
15265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15266 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15267 shlibpath_var=LD_LIBRARY_PATH
15268 shlibpath_overrides_runpath=yes
15269 if test "$with_gnu_ld" = yes; then
15270 need_lib_prefix=no
15271 fi
15272 need_version=yes
15273 ;;
15274
15275sysv4 | sysv4.3*)
15276 version_type=linux
15277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15278 soname_spec='${libname}${release}${shared_ext}$major'
15279 shlibpath_var=LD_LIBRARY_PATH
15280 case $host_vendor in
15281 sni)
15282 shlibpath_overrides_runpath=no
15283 need_lib_prefix=no
15284 runpath_var=LD_RUN_PATH
15285 ;;
15286 siemens)
15287 need_lib_prefix=no
15288 ;;
15289 motorola)
15290 need_lib_prefix=no
15291 need_version=no
15292 shlibpath_overrides_runpath=no
15293 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15294 ;;
15295 esac
15296 ;;
15297
15298sysv4*MP*)
15299 if test -d /usr/nec ;then
15300 version_type=linux
15301 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15302 soname_spec='$libname${shared_ext}.$major'
15303 shlibpath_var=LD_LIBRARY_PATH
15304 fi
15305 ;;
15306
15307sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15308 version_type=freebsd-elf
15309 need_lib_prefix=no
15310 need_version=no
15311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15312 soname_spec='${libname}${release}${shared_ext}$major'
15313 shlibpath_var=LD_LIBRARY_PATH
15314 shlibpath_overrides_runpath=yes
15315 hardcode_into_libs=yes
15316 if test "$with_gnu_ld" = yes; then
15317 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15318 else
15319 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15320 case $host_os in
15321 sco3.2v5*)
15322 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15323 ;;
15324 esac
15325 fi
15326 sys_lib_dlsearch_path_spec='/usr/lib'
15327 ;;
15328
15329tpf*)
15330 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15331 version_type=linux
15332 need_lib_prefix=no
15333 need_version=no
15334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15335 shlibpath_var=LD_LIBRARY_PATH
15336 shlibpath_overrides_runpath=no
15337 hardcode_into_libs=yes
15338 ;;
15339
15340uts4*)
15341 version_type=linux
15342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15343 soname_spec='${libname}${release}${shared_ext}$major'
15344 shlibpath_var=LD_LIBRARY_PATH
15345 ;;
15346
15347*)
15348 dynamic_linker=no
15349 ;;
15350esac
15351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15352$as_echo "$dynamic_linker" >&6; }
15353test "$dynamic_linker" = no && can_build_shared=no
15354
15355variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15356if test "$GCC" = yes; then
15357 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15358fi
15359
15360if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15361 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15362fi
15363if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15364 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15365fi
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15405$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15406hardcode_action_CXX=
15407if test -n "$hardcode_libdir_flag_spec_CXX" ||
15408 test -n "$runpath_var_CXX" ||
15409 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15410
15411 # We can hardcode non-existent directories.
15412 if test "$hardcode_direct_CXX" != no &&
15413 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15414 # have to relink, otherwise we might link with an installed library
15415 # when we should be linking with a yet-to-be-installed one
15416 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15417 test "$hardcode_minus_L_CXX" != no; then
15418 # Linking always hardcodes the temporary library directory.
15419 hardcode_action_CXX=relink
15420 else
15421 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15422 hardcode_action_CXX=immediate
15423 fi
15424else
15425 # We cannot hardcode anything, or else we can only hardcode existing
15426 # directories.
15427 hardcode_action_CXX=unsupported
15428fi
15429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15430$as_echo "$hardcode_action_CXX" >&6; }
15431
15432if test "$hardcode_action_CXX" = relink ||
15433 test "$inherit_rpath_CXX" = yes; then
15434 # Fast installation is not supported
15435 enable_fast_install=no
15436elif test "$shlibpath_overrides_runpath" = yes ||
15437 test "$enable_shared" = no; then
15438 # Fast installation is not necessary
15439 enable_fast_install=needless
15440fi
15441
15442
15443
15444
15445
15446
15447
15448 fi # test -n "$compiler"
15449
15450 CC=$lt_save_CC
15451 LDCXX=$LD
15452 LD=$lt_save_LD
15453 GCC=$lt_save_GCC
15454 with_gnu_ld=$lt_save_with_gnu_ld
15455 lt_cv_path_LDCXX=$lt_cv_path_LD
15456 lt_cv_path_LD=$lt_save_path_LD
15457 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15458 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15459fi # test "$_lt_caught_CXX_error" != yes
15460
15461ac_ext=c
15462ac_cpp='$CPP $CPPFLAGS'
15463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15465ac_compiler_gnu=$ac_cv_c_compiler_gnu
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479 ac_config_commands="$ac_config_commands libtool"
15480
15481
15482
15483
15484# Only expand once:
15485
15486
15487
15488GPROFNG_LIBADD="-L../../libiberty -liberty"
15489if test "$enable_shared" = "yes"; then
15490 GPROFNG_LIBADD="-L../../libiberty/pic -liberty"
15491fi
15492
15493
15494# Figure out what compiler warnings we can enable.
15495# See config/warnings.m4 for details.
15496
15497ac_ext=c
15498ac_cpp='$CPP $CPPFLAGS'
15499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15501ac_compiler_gnu=$ac_cv_c_compiler_gnu
15502
15503WERROR=
15504# Check whether --enable-werror-always was given.
15505if test "${enable_werror_always+set}" = set; then :
15506 enableval=$enable_werror_always;
15507else
15508 enable_werror_always=no
15509fi
15510
15511if test $enable_werror_always = yes; then :
15512 WERROR="$WERROR${WERROR:+ }-Werror"
15513fi
15514
15515ac_ext=c
15516ac_cpp='$CPP $CPPFLAGS'
15517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15519ac_compiler_gnu=$ac_cv_c_compiler_gnu
15520
15521
15522ac_ext=c
15523ac_cpp='$CPP $CPPFLAGS'
15524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15526ac_compiler_gnu=$ac_cv_c_compiler_gnu
15527
15528gprofng_cflags=
15529save_CFLAGS="$CFLAGS"
15530for real_option in -Wall; do
15531 # Do the check with the no- prefix removed since gcc silently
15532 # accepts any -Wno-* option on purpose
15533 case $real_option in
15534 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15535 *) option=$real_option ;;
15536 esac
15537 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15538
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15540$as_echo_n "checking whether $CC supports $option... " >&6; }
15541if eval \${$as_acx_Woption+:} false; then :
15542 $as_echo_n "(cached) " >&6
15543else
15544 CFLAGS="$option"
15545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546/* end confdefs.h. */
15547
15548int
15549main ()
15550{
15551
15552 ;
15553 return 0;
15554}
15555_ACEOF
15556if ac_fn_c_try_compile "$LINENO"; then :
15557 eval "$as_acx_Woption=yes"
15558else
15559 eval "$as_acx_Woption=no"
15560fi
15561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15562
15563fi
15564eval ac_res=\$$as_acx_Woption
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15566$as_echo "$ac_res" >&6; }
15567 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15568 gprofng_cflags="$gprofng_cflags${gprofng_cflags:+ }$real_option"
15569fi
15570 done
15571CFLAGS="$save_CFLAGS"
15572ac_ext=c
15573ac_cpp='$CPP $CPPFLAGS'
15574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15576ac_compiler_gnu=$ac_cv_c_compiler_gnu
15577
15578
61a1f2e7
L
15579ac_ext=c
15580ac_cpp='$CPP $CPPFLAGS'
15581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15583ac_compiler_gnu=$ac_cv_c_compiler_gnu
15584
15585GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS=
15586save_CFLAGS="$CFLAGS"
15587for real_option in -Wno-format-truncation; do
15588 # Do the check with the no- prefix removed since gcc silently
15589 # accepts any -Wno-* option on purpose
15590 case $real_option in
15591 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15592 *) option=$real_option ;;
15593 esac
15594 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15595
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15597$as_echo_n "checking whether $CC supports $option... " >&6; }
15598if eval \${$as_acx_Woption+:} false; then :
15599 $as_echo_n "(cached) " >&6
15600else
15601 CFLAGS="$option"
15602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15603/* end confdefs.h. */
15604
15605int
15606main ()
15607{
15608
15609 ;
15610 return 0;
15611}
15612_ACEOF
15613if ac_fn_c_try_compile "$LINENO"; then :
15614 eval "$as_acx_Woption=yes"
15615else
15616 eval "$as_acx_Woption=no"
15617fi
15618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15619
15620fi
15621eval ac_res=\$$as_acx_Woption
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15623$as_echo "$ac_res" >&6; }
15624 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15625 GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS="$GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS${GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS:+ }$real_option"
15626fi
15627 done
15628CFLAGS="$save_CFLAGS"
15629ac_ext=c
15630ac_cpp='$CPP $CPPFLAGS'
15631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15633ac_compiler_gnu=$ac_cv_c_compiler_gnu
15634
15635
15636ac_ext=c
15637ac_cpp='$CPP $CPPFLAGS'
15638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15640ac_compiler_gnu=$ac_cv_c_compiler_gnu
15641
15642GPROFNG_NO_SWITCH_CFLAGS=
15643save_CFLAGS="$CFLAGS"
15644for real_option in -Wno-switch; do
15645 # Do the check with the no- prefix removed since gcc silently
15646 # accepts any -Wno-* option on purpose
15647 case $real_option in
15648 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15649 *) option=$real_option ;;
15650 esac
15651 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15652
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15654$as_echo_n "checking whether $CC supports $option... " >&6; }
15655if eval \${$as_acx_Woption+:} false; then :
15656 $as_echo_n "(cached) " >&6
15657else
15658 CFLAGS="$option"
15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660/* end confdefs.h. */
15661
15662int
15663main ()
15664{
15665
15666 ;
15667 return 0;
15668}
15669_ACEOF
15670if ac_fn_c_try_compile "$LINENO"; then :
15671 eval "$as_acx_Woption=yes"
15672else
15673 eval "$as_acx_Woption=no"
15674fi
15675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15676
15677fi
15678eval ac_res=\$$as_acx_Woption
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15680$as_echo "$ac_res" >&6; }
15681 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15682 GPROFNG_NO_SWITCH_CFLAGS="$GPROFNG_NO_SWITCH_CFLAGS${GPROFNG_NO_SWITCH_CFLAGS:+ }$real_option"
15683fi
15684 done
15685CFLAGS="$save_CFLAGS"
15686ac_ext=c
15687ac_cpp='$CPP $CPPFLAGS'
15688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15690ac_compiler_gnu=$ac_cv_c_compiler_gnu
15691
15692
bb368aad
VM
15693gprofng_cppflags="-U_ASM"
15694build_collector=
15695build_src=
15696
15697# This is annoying: it means we have to pass --enable-shared explicitly to
15698# get gprofng, while the configure default is supposed to be that shared libs
15699# are on by default. But as long as libiberty has code like this, so must
15700# we...
15701
15702 case "${target}" in
15703 x86_64-*-linux*)
15704 build_src=true
15705 build_collector=true
15706 ;;
15707 i?86-*-linux*)
15708 build_collector=true
15709 build_collector=true
15710 ;;
15711 aarch64-*-linux*)
15712 build_src=true
15713 build_collector=true
15714 ;;
15715 esac
15716 # Check whether --enable-gprofng-tools was given.
15717if test "${enable_gprofng_tools+set}" = set; then :
15718 enableval=$enable_gprofng_tools; build_src=$enableval
15719fi
15720
15721
15722 if test x$build_collector = xtrue; then
15723 BUILD_COLLECTOR_TRUE=
15724 BUILD_COLLECTOR_FALSE='#'
15725else
15726 BUILD_COLLECTOR_TRUE='#'
15727 BUILD_COLLECTOR_FALSE=
15728fi
15729
15730 if test x$build_src = xtrue; then
15731 BUILD_SRC_TRUE=
15732 BUILD_SRC_FALSE='#'
15733else
15734 BUILD_SRC_TRUE='#'
15735 BUILD_SRC_FALSE=
15736fi
15737
15738
15739run_tests=false
15740if test x$build_collector = xtrue; then
15741
15742
15743subdirs="$subdirs libcollector"
15744
15745 if test x${host} = x${target}; then
15746 run_tests=true
15747 fi
15748fi
15749 if test x$run_tests = xtrue; then
15750 RUN_TESTS_TRUE=
15751 RUN_TESTS_FALSE='#'
15752else
15753 RUN_TESTS_TRUE='#'
15754 RUN_TESTS_FALSE=
15755fi
15756
15757
15758
15759
15760
15761ac_ext=c
15762ac_cpp='$CPP $CPPFLAGS'
15763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15765ac_compiler_gnu=$ac_cv_c_compiler_gnu
15766
15767ax_pthread_ok=no
15768
15769# We used to check for pthread.h first, but this fails if pthread.h
15770# requires special compiler flags (e.g. on Tru64 or Sequent).
15771# It gets checked for in the link test anyway.
15772
15773# First of all, check if the user has set any of the PTHREAD_LIBS,
15774# etcetera environment variables, and if threads linking works using
15775# them:
15776if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
15777 ax_pthread_save_CC="$CC"
15778 ax_pthread_save_CFLAGS="$CFLAGS"
15779 ax_pthread_save_LIBS="$LIBS"
15780 if test "x$PTHREAD_CC" != "x"; then :
15781 CC="$PTHREAD_CC"
15782fi
15783 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15784 LIBS="$PTHREAD_LIBS $LIBS"
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
15786$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
15787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15788/* end confdefs.h. */
15789
15790/* Override any GCC internal prototype to avoid an error.
15791 Use char because int might match the return type of a GCC
15792 builtin and then its argument prototype would still apply. */
15793#ifdef __cplusplus
15794extern "C"
15795#endif
15796char pthread_join ();
15797int
15798main ()
15799{
15800return pthread_join ();
15801 ;
15802 return 0;
15803}
15804_ACEOF
15805if ac_fn_c_try_link "$LINENO"; then :
15806 ax_pthread_ok=yes
15807fi
15808rm -f core conftest.err conftest.$ac_objext \
15809 conftest$ac_exeext conftest.$ac_ext
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15811$as_echo "$ax_pthread_ok" >&6; }
15812 if test "x$ax_pthread_ok" = "xno"; then
15813 PTHREAD_LIBS=""
15814 PTHREAD_CFLAGS=""
15815 fi
15816 CC="$ax_pthread_save_CC"
15817 CFLAGS="$ax_pthread_save_CFLAGS"
15818 LIBS="$ax_pthread_save_LIBS"
15819fi
15820
15821# We must check for the threads library under a number of different
15822# names; the ordering is very important because some systems
15823# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15824# libraries is broken (non-POSIX).
15825
15826# Create a list of thread flags to try. Items starting with a "-" are
15827# C compiler flags, and other items are library names, except for "none"
15828# which indicates that we try without any flags at all, and "pthread-config"
15829# which is a program returning the flags for the Pth emulation library.
15830
15831ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15832
15833# The ordering *is* (sometimes) important. Some notes on the
15834# individual items follow:
15835
15836# pthreads: AIX (must check this before -lpthread)
15837# none: in case threads are in libc; should be tried before -Kthread and
15838# other compiler flags to prevent continual compiler warnings
15839# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15840# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
15841# (Note: HP C rejects this with "bad form for `-t' option")
15842# -pthreads: Solaris/gcc (Note: HP C also rejects)
15843# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15844# doesn't hurt to check since this sometimes defines pthreads and
15845# -D_REENTRANT too), HP C (must be checked before -lpthread, which
15846# is present but should not be used directly; and before -mthreads,
15847# because the compiler interprets this as "-mt" + "-hreads")
15848# -mthreads: Mingw32/gcc, Lynx/gcc
15849# pthread: Linux, etcetera
15850# --thread-safe: KAI C++
15851# pthread-config: use pthread-config program (for GNU Pth library)
15852
15853case $host_os in
15854
15855 freebsd*)
15856
15857 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15858 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15859
15860 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
15861 ;;
15862
15863 hpux*)
15864
15865 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
15866 # multi-threading and also sets -lpthread."
15867
15868 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
15869 ;;
15870
15871 openedition*)
15872
15873 # IBM z/OS requires a feature-test macro to be defined in order to
15874 # enable POSIX threads at all, so give the user a hint if this is
15875 # not set. (We don't define these ourselves, as they can affect
15876 # other portions of the system API in unpredictable ways.)
15877
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879/* end confdefs.h. */
15880
15881# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
15882 AX_PTHREAD_ZOS_MISSING
15883# endif
15884
15885_ACEOF
15886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15887 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
15889$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
15890fi
15891rm -f conftest*
15892
15893 ;;
15894
15895 solaris*)
15896
15897 # On Solaris (at least, for some versions), libc contains stubbed
15898 # (non-functional) versions of the pthreads routines, so link-based
15899 # tests will erroneously succeed. (N.B.: The stubs are missing
15900 # pthread_cleanup_push, or rather a function called by this macro,
15901 # so we could check for that, but who knows whether they'll stub
15902 # that too in a future libc.) So we'll check first for the
15903 # standard Solaris way of linking pthreads (-mt -lpthread).
15904
15905 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
15906 ;;
15907esac
15908
15909# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
15910
15911if test "x$GCC" = "xyes"; then :
15912 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
15913fi
15914
15915# The presence of a feature test macro requesting re-entrant function
15916# definitions is, on some systems, a strong hint that pthreads support is
15917# correctly enabled
15918
15919case $host_os in
15920 darwin* | hpux* | linux* | osf* | solaris*)
15921 ax_pthread_check_macro="_REENTRANT"
15922 ;;
15923
15924 aix*)
15925 ax_pthread_check_macro="_THREAD_SAFE"
15926 ;;
15927
15928 *)
15929 ax_pthread_check_macro="--"
15930 ;;
15931esac
15932if test "x$ax_pthread_check_macro" = "x--"; then :
15933 ax_pthread_check_cond=0
15934else
15935 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
15936fi
15937
15938# Are we compiling with Clang?
15939
15940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
15941$as_echo_n "checking whether $CC is Clang... " >&6; }
15942if ${ax_cv_PTHREAD_CLANG+:} false; then :
15943 $as_echo_n "(cached) " >&6
15944else
15945 ax_cv_PTHREAD_CLANG=no
15946 # Note that Autoconf sets GCC=yes for Clang as well as GCC
15947 if test "x$GCC" = "xyes"; then
15948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15949/* end confdefs.h. */
15950/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
15951# if defined(__clang__) && defined(__llvm__)
15952 AX_PTHREAD_CC_IS_CLANG
15953# endif
15954
15955_ACEOF
15956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15957 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
15958 ax_cv_PTHREAD_CLANG=yes
15959fi
15960rm -f conftest*
15961
15962 fi
15963
15964fi
15965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
15966$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
15967ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
15968
15969ax_pthread_clang_warning=no
15970
15971# Clang needs special handling, because older versions handle the -pthread
15972# option in a rather... idiosyncratic way
15973
15974if test "x$ax_pthread_clang" = "xyes"; then
15975
15976 # Clang takes -pthread; it has never supported any other flag
15977
15978 # (Note 1: This will need to be revisited if a system that Clang
15979 # supports has POSIX threads in a separate library. This tends not
15980 # to be the way of modern systems, but it's conceivable.)
15981
15982 # (Note 2: On some systems, notably Darwin, -pthread is not needed
15983 # to get POSIX threads support; the API is always present and
15984 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
15985 # -pthread does define _REENTRANT, and while the Darwin headers
15986 # ignore this macro, third-party headers might not.)
15987
15988 PTHREAD_CFLAGS="-pthread"
15989 PTHREAD_LIBS=
15990
15991 ax_pthread_ok=yes
15992
15993 # However, older versions of Clang make a point of warning the user
15994 # that, in an invocation where only linking and no compilation is
15995 # taking place, the -pthread option has no effect ("argument unused
15996 # during compilation"). They expect -pthread to be passed in only
15997 # when source code is being compiled.
15998 #
15999 # Problem is, this is at odds with the way Automake and most other
16000 # C build frameworks function, which is that the same flags used in
16001 # compilation (CFLAGS) are also used in linking. Many systems
16002 # supported by AX_PTHREAD require exactly this for POSIX threads
16003 # support, and in fact it is often not straightforward to specify a
16004 # flag that is used only in the compilation phase and not in
16005 # linking. Such a scenario is extremely rare in practice.
16006 #
16007 # Even though use of the -pthread flag in linking would only print
16008 # a warning, this can be a nuisance for well-run software projects
16009 # that build with -Werror. So if the active version of Clang has
16010 # this misfeature, we search for an option to squash it.
16011
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
16013$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
16014if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
16015 $as_echo_n "(cached) " >&6
16016else
16017 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
16018 # Create an alternate version of $ac_link that compiles and
16019 # links in two steps (.c -> .o, .o -> exe) instead of one
16020 # (.c -> exe), because the warning occurs only in the second
16021 # step
16022 ax_pthread_save_ac_link="$ac_link"
16023 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
16024 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
16025 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
16026 ax_pthread_save_CFLAGS="$CFLAGS"
16027 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
16028 if test "x$ax_pthread_try" = "xunknown"; then :
16029 break
16030fi
16031 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
16032 ac_link="$ax_pthread_save_ac_link"
16033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034/* end confdefs.h. */
16035int main(void){return 0;}
16036_ACEOF
16037if ac_fn_c_try_link "$LINENO"; then :
16038 ac_link="$ax_pthread_2step_ac_link"
16039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040/* end confdefs.h. */
16041int main(void){return 0;}
16042_ACEOF
16043if ac_fn_c_try_link "$LINENO"; then :
16044 break
16045fi
16046rm -f core conftest.err conftest.$ac_objext \
16047 conftest$ac_exeext conftest.$ac_ext
16048
16049fi
16050rm -f core conftest.err conftest.$ac_objext \
16051 conftest$ac_exeext conftest.$ac_ext
16052 done
16053 ac_link="$ax_pthread_save_ac_link"
16054 CFLAGS="$ax_pthread_save_CFLAGS"
16055 if test "x$ax_pthread_try" = "x"; then :
16056 ax_pthread_try=no
16057fi
16058 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
16059
16060fi
16061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
16062$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
16063
16064 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
16065 no | unknown) ;;
16066 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
16067 esac
16068
16069fi # $ax_pthread_clang = yes
16070
16071if test "x$ax_pthread_ok" = "xno"; then
16072for ax_pthread_try_flag in $ax_pthread_flags; do
16073
16074 case $ax_pthread_try_flag in
16075 none)
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16077$as_echo_n "checking whether pthreads work without any flags... " >&6; }
16078 ;;
16079
16080 -mt,pthread)
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
16082$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
16083 PTHREAD_CFLAGS="-mt"
16084 PTHREAD_LIBS="-lpthread"
16085 ;;
16086
16087 -*)
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
16089$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
16090 PTHREAD_CFLAGS="$ax_pthread_try_flag"
16091 ;;
16092
16093 pthread-config)
16094 # Extract the first word of "pthread-config", so it can be a program name with args.
16095set dummy pthread-config; ac_word=$2
16096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16097$as_echo_n "checking for $ac_word... " >&6; }
16098if ${ac_cv_prog_ax_pthread_config+:} false; then :
16099 $as_echo_n "(cached) " >&6
16100else
16101 if test -n "$ax_pthread_config"; then
16102 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16103else
16104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16105for as_dir in $PATH
16106do
16107 IFS=$as_save_IFS
16108 test -z "$as_dir" && as_dir=.
16109 for ac_exec_ext in '' $ac_executable_extensions; do
16110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16111 ac_cv_prog_ax_pthread_config="yes"
16112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16113 break 2
16114 fi
16115done
16116 done
16117IFS=$as_save_IFS
16118
16119 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16120fi
16121fi
16122ax_pthread_config=$ac_cv_prog_ax_pthread_config
16123if test -n "$ax_pthread_config"; then
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16125$as_echo "$ax_pthread_config" >&6; }
16126else
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16128$as_echo "no" >&6; }
16129fi
16130
16131
16132 if test "x$ax_pthread_config" = "xno"; then :
16133 continue
16134fi
16135 PTHREAD_CFLAGS="`pthread-config --cflags`"
16136 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16137 ;;
16138
16139 *)
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
16141$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
16142 PTHREAD_LIBS="-l$ax_pthread_try_flag"
16143 ;;
16144 esac
16145
16146 ax_pthread_save_CFLAGS="$CFLAGS"
16147 ax_pthread_save_LIBS="$LIBS"
16148 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16149 LIBS="$PTHREAD_LIBS $LIBS"
16150
16151 # Check for various functions. We must include pthread.h,
16152 # since some functions may be macros. (On the Sequent, we
16153 # need a special flag -Kthread to make this header compile.)
16154 # We check for pthread_join because it is in -lpthread on IRIX
16155 # while pthread_create is in libc. We check for pthread_attr_init
16156 # due to DEC craziness with -lpthreads. We check for
16157 # pthread_cleanup_push because it is one of the few pthread
16158 # functions on Solaris that doesn't have a non-functional libc stub.
16159 # We try pthread_create on general principles.
16160
16161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16162/* end confdefs.h. */
16163#include <pthread.h>
16164# if $ax_pthread_check_cond
16165# error "$ax_pthread_check_macro must be defined"
16166# endif
16167 static void routine(void *a) { a = 0; }
16168 static void *start_routine(void *a) { return a; }
16169int
16170main ()
16171{
16172pthread_t th; pthread_attr_t attr;
16173 pthread_create(&th, 0, start_routine, 0);
16174 pthread_join(th, 0);
16175 pthread_attr_init(&attr);
16176 pthread_cleanup_push(routine, 0);
16177 pthread_cleanup_pop(0) /* ; */
16178 ;
16179 return 0;
16180}
16181_ACEOF
16182if ac_fn_c_try_link "$LINENO"; then :
16183 ax_pthread_ok=yes
16184fi
16185rm -f core conftest.err conftest.$ac_objext \
16186 conftest$ac_exeext conftest.$ac_ext
16187
16188 CFLAGS="$ax_pthread_save_CFLAGS"
16189 LIBS="$ax_pthread_save_LIBS"
16190
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16192$as_echo "$ax_pthread_ok" >&6; }
16193 if test "x$ax_pthread_ok" = "xyes"; then :
16194 break
16195fi
16196
16197 PTHREAD_LIBS=""
16198 PTHREAD_CFLAGS=""
16199done
16200fi
16201
16202# Various other checks:
16203if test "x$ax_pthread_ok" = "xyes"; then
16204 ax_pthread_save_CFLAGS="$CFLAGS"
16205 ax_pthread_save_LIBS="$LIBS"
16206 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16207 LIBS="$PTHREAD_LIBS $LIBS"
16208
16209 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16211$as_echo_n "checking for joinable pthread attribute... " >&6; }
16212if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
16213 $as_echo_n "(cached) " >&6
16214else
16215 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
16216 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218/* end confdefs.h. */
16219#include <pthread.h>
16220int
16221main ()
16222{
16223int attr = $ax_pthread_attr; return attr /* ; */
16224 ;
16225 return 0;
16226}
16227_ACEOF
16228if ac_fn_c_try_link "$LINENO"; then :
16229 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
16230fi
16231rm -f core conftest.err conftest.$ac_objext \
16232 conftest$ac_exeext conftest.$ac_ext
16233 done
16234
16235fi
16236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
16237$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
16238 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
16239 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
16240 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
16241
16242cat >>confdefs.h <<_ACEOF
16243#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
16244_ACEOF
16245
16246 ax_pthread_joinable_attr_defined=yes
16247
16248fi
16249
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
16251$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
16252if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
16253 $as_echo_n "(cached) " >&6
16254else
16255 ax_cv_PTHREAD_SPECIAL_FLAGS=no
16256 case $host_os in
16257 solaris*)
16258 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
16259 ;;
16260 esac
16261
16262fi
16263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
16264$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
16265 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
16266 test "x$ax_pthread_special_flags_added" != "xyes"; then :
16267 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
16268 ax_pthread_special_flags_added=yes
16269fi
16270
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16272$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16273if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16274 $as_echo_n "(cached) " >&6
16275else
16276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16277/* end confdefs.h. */
16278#include <pthread.h>
16279int
16280main ()
16281{
16282int i = PTHREAD_PRIO_INHERIT;
16283 ;
16284 return 0;
16285}
16286_ACEOF
16287if ac_fn_c_try_link "$LINENO"; then :
16288 ax_cv_PTHREAD_PRIO_INHERIT=yes
16289else
16290 ax_cv_PTHREAD_PRIO_INHERIT=no
16291fi
16292rm -f core conftest.err conftest.$ac_objext \
16293 conftest$ac_exeext conftest.$ac_ext
16294
16295fi
16296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16297$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16298 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
16299 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
16300
16301$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16302
16303 ax_pthread_prio_inherit_defined=yes
16304
16305fi
16306
16307 CFLAGS="$ax_pthread_save_CFLAGS"
16308 LIBS="$ax_pthread_save_LIBS"
16309
16310 # More AIX lossage: compile with *_r variant
16311 if test "x$GCC" != "xyes"; then
16312 case $host_os in
16313 aix*)
16314 case "x/$CC" in #(
16315 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16316 #handle absolute path differently from PATH based program lookup
16317 case "x$CC" in #(
16318 x/*) :
16319 if as_fn_executable_p ${CC}_r; then :
16320 PTHREAD_CC="${CC}_r"
16321fi ;; #(
16322 *) :
16323 for ac_prog in ${CC}_r
16324do
16325 # Extract the first word of "$ac_prog", so it can be a program name with args.
16326set dummy $ac_prog; ac_word=$2
16327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16328$as_echo_n "checking for $ac_word... " >&6; }
16329if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16330 $as_echo_n "(cached) " >&6
16331else
16332 if test -n "$PTHREAD_CC"; then
16333 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16334else
16335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16336for as_dir in $PATH
16337do
16338 IFS=$as_save_IFS
16339 test -z "$as_dir" && as_dir=.
16340 for ac_exec_ext in '' $ac_executable_extensions; do
16341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16342 ac_cv_prog_PTHREAD_CC="$ac_prog"
16343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16344 break 2
16345 fi
16346done
16347 done
16348IFS=$as_save_IFS
16349
16350fi
16351fi
16352PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16353if test -n "$PTHREAD_CC"; then
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16355$as_echo "$PTHREAD_CC" >&6; }
16356else
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16358$as_echo "no" >&6; }
16359fi
16360
16361
16362 test -n "$PTHREAD_CC" && break
16363done
16364test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16365 ;;
16366esac ;; #(
16367 *) :
16368 ;;
16369esac
16370 ;;
16371 esac
16372 fi
16373fi
16374
16375test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16376
16377
16378
16379
16380
16381# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16382if test "x$ax_pthread_ok" = "xyes"; then
16383
16384$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16385
16386 :
16387else
16388 ax_pthread_ok=no
16389
16390fi
16391ac_ext=c
16392ac_cpp='$CPP $CPPFLAGS'
16393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16395ac_compiler_gnu=$ac_cv_c_compiler_gnu
16396
16397
16398
16399# Specify a location for JDK
16400enable_gprofng_jp=
16401jdk_inc=
16402
16403# Check whether --with-jdk was given.
16404if test "${with_jdk+set}" = set; then :
16405 withval=$with_jdk;
16406fi
16407
16408
16409if test "x$with_jdk" != x; then
16410 jdk_inc="-I$with_jdk/include -I$with_jdk/include/linux"
16411 enable_gprofng_jp=yes
16412else
16413 # Extract the first word of "javac", so it can be a program name with args.
16414set dummy javac; ac_word=$2
16415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16416$as_echo_n "checking for $ac_word... " >&6; }
16417if ${ac_cv_path_JAVAC+:} false; then :
16418 $as_echo_n "(cached) " >&6
16419else
16420 case $JAVAC in
16421 [\\/]* | ?:[\\/]*)
16422 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
16423 ;;
16424 *)
16425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16426for as_dir in $PATH
16427do
16428 IFS=$as_save_IFS
16429 test -z "$as_dir" && as_dir=.
16430 for ac_exec_ext in '' $ac_executable_extensions; do
16431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16432 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
16433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16434 break 2
16435 fi
16436done
16437 done
16438IFS=$as_save_IFS
16439
16440 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="javac"
16441 ;;
16442esac
16443fi
16444JAVAC=$ac_cv_path_JAVAC
16445if test -n "$JAVAC"; then
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
16447$as_echo "$JAVAC" >&6; }
16448else
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16450$as_echo "no" >&6; }
16451fi
16452
16453
16454 if test -f $JAVAC; then
16455 x=`readlink -f $JAVAC`
16456 x=`dirname $x`
16457 x=`dirname $x`
16458 if ! test -f $x/include/jni.h; then
16459 x=`dirname $x`
16460 fi
16461 if test -f $x/include/jni.h; then
16462 jdk_inc="-I$x/include -I$x/include/linux"
16463 enable_gprofng_jp=yes
16464 fi
16465 fi
16466fi
16467if test "x$enable_gprofng_jp" = x; then
16468 # Extract the first word of "java", so it can be a program name with args.
16469set dummy java; ac_word=$2
16470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16471$as_echo_n "checking for $ac_word... " >&6; }
16472if ${ac_cv_path_JAVA+:} false; then :
16473 $as_echo_n "(cached) " >&6
16474else
16475 case $JAVA in
16476 [\\/]* | ?:[\\/]*)
16477 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
16478 ;;
16479 *)
16480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16481for as_dir in $PATH
16482do
16483 IFS=$as_save_IFS
16484 test -z "$as_dir" && as_dir=.
16485 for ac_exec_ext in '' $ac_executable_extensions; do
16486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16487 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
16488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16489 break 2
16490 fi
16491done
16492 done
16493IFS=$as_save_IFS
16494
16495 test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="java"
16496 ;;
16497esac
16498fi
16499JAVA=$ac_cv_path_JAVA
16500if test -n "$JAVA"; then
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
16502$as_echo "$JAVA" >&6; }
16503else
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16505$as_echo "no" >&6; }
16506fi
16507
16508
16509 if test -f $JAVA; then
16510 x=`readlink -f $JAVA`
16511 x=`dirname $x`
16512 x=`dirname $x`
16513 if ! test -f $x/include/jni.h; then
16514 x=`dirname $x`
16515 fi
16516 if test -f $x/include/jni.h; then
16517 jdk_inc="-I$x/include -I$x/include/linux"
16518 enable_gprofng_jp=yes
16519 fi
16520 fi
16521fi
16522if test "x$enable_gprofng_jp" = x; then
16523 ac_fn_c_check_header_compile "$LINENO" "jni.h" "ac_cv_header_jni_h" "
16524"
16525if test "x$ac_cv_header_jni_h" = xyes; then :
16526 enable_gprofng_jp=yes
16527fi
16528
16529
16530fi
16531if test "x$enable_gprofng_jp" = x; then
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find the JDK include directory.
16533 gprofng will be build without support for profiling Java applications.
16534 Use --with-jdk=PATH to specify directory for the installed JDK" >&5
16535$as_echo "$as_me: WARNING: Cannot find the JDK include directory.
16536 gprofng will be build without support for profiling Java applications.
16537 Use --with-jdk=PATH to specify directory for the installed JDK" >&2;}
16538else
16539
16540$as_echo "#define GPROFNG_JAVA_PROFILING 1" >>confdefs.h
16541
16542fi
16543
16544
16545DEBUG=
16546 # Check whether --enable-gprofng-debug was given.
16547if test "${enable_gprofng_debug+set}" = set; then :
16548 enableval=$enable_gprofng_debug;
16549 case "$enableval" in
16550 yes|no) ;;
16551 *) as_fn_error $? "Argument to enable/disable gprofng-debug must be yes or no" "$LINENO" 5 ;;
16552 esac
16553
16554else
16555 enable_gprofng_debug=no
16556fi
16557
16558
16559if test "${enable_gprofng_debug}" = yes; then
16560
16561$as_echo "#define DEBUG 1" >>confdefs.h
16562
16563fi
16564
16565# Check if linker supports --as-needed and --no-as-needed options.
16566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
16567$as_echo_n "checking linker --as-needed support... " >&6; }
16568if ${bfd_cv_ld_as_needed+:} false; then :
16569 $as_echo_n "(cached) " >&6
16570else
16571 bfd_cv_ld_as_needed=no
16572 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
16573 bfd_cv_ld_as_needed=yes
16574 fi
16575
16576fi
16577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
16578$as_echo "$bfd_cv_ld_as_needed" >&6; }
16579
16580no_as_needed=
16581if test x"$bfd_cv_ld_as_needed" = xyes; then
16582 no_as_needed='-Wl,--no-as-needed'
16583fi
16584
16585# Extract the first word of "expect", so it can be a program name with args.
16586set dummy expect; ac_word=$2
16587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16588$as_echo_n "checking for $ac_word... " >&6; }
16589if ${ac_cv_path_EXPECT+:} false; then :
16590 $as_echo_n "(cached) " >&6
16591else
16592 case $EXPECT in
16593 [\\/]* | ?:[\\/]*)
16594 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
16595 ;;
16596 *)
16597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16598for as_dir in $PATH
16599do
16600 IFS=$as_save_IFS
16601 test -z "$as_dir" && as_dir=.
16602 for ac_exec_ext in '' $ac_executable_extensions; do
16603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16604 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
16605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16606 break 2
16607 fi
16608done
16609 done
16610IFS=$as_save_IFS
16611
16612 ;;
16613esac
16614fi
16615EXPECT=$ac_cv_path_EXPECT
16616if test -n "$EXPECT"; then
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
16618$as_echo "$EXPECT" >&6; }
16619else
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16621$as_echo "no" >&6; }
16622fi
16623
16624
16625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5
16626$as_echo_n "checking for Tcl supporting try/catch... " >&6; }
16627if ${ac_cv_libctf_tcl_try+:} false; then :
16628 $as_echo_n "(cached) " >&6
16629else
16630 ac_cv_libctf_tcl_try=`if test -z $EXPECT; then echo no; else $EXPECT << EOF
16631if [llength [info commands try]] then { puts yes } else { puts no }
16632EOF
16633fi`
16634
16635fi
16636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5
16637$as_echo "$ac_cv_libctf_tcl_try" >&6; }
16638 if test "${ac_cv_libctf_tcl_try}" = yes; then
16639 TCL_TRY_TRUE=
16640 TCL_TRY_FALSE='#'
16641else
16642 TCL_TRY_TRUE='#'
16643 TCL_TRY_FALSE=
16644fi
16645
16646
16647
16648# Generate manpages, if possible.
16649if test $cross_compiling = no; then
16650
16651HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
16652
16653 build_man=true
16654else
16655 build_man=false
16656fi
16657 if test x$build_man = xtrue; then
16658 BUILD_MAN_TRUE=
16659 BUILD_MAN_FALSE='#'
16660else
16661 BUILD_MAN_TRUE='#'
16662 BUILD_MAN_FALSE=
16663fi
16664
16665
16666LD_NO_AS_NEEDED=${no_as_needed}
16667
16668GPROFNG_CFLAGS=${gprofng_cflags}
16669
61a1f2e7
L
16670
16671
bb368aad
VM
16672GPROFNG_CPPFLAGS=${gprofng_cppflags}
16673
16674GPROFNG_LIBDIR=${libdir}
16675
16676
16677ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
16678if test "x$ac_cv_have_decl_basename" = xyes; then :
16679 ac_have_decl=1
16680else
16681 ac_have_decl=0
16682fi
16683
16684cat >>confdefs.h <<_ACEOF
16685#define HAVE_DECL_BASENAME $ac_have_decl
16686_ACEOF
16687
4ec39c4b 16688for ac_func in clock_gettime strsignal
bb368aad 16689do :
4ec39c4b
NC
16690 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16691ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16692if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
bb368aad 16693 cat >>confdefs.h <<_ACEOF
4ec39c4b 16694#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
bb368aad
VM
16695_ACEOF
16696
16697fi
16698done
16699
16700
16701
16702
16703ac_config_files="$ac_config_files Makefile src/Makefile gp-display-html/Makefile doc/Makefile"
16704
16705ac_config_headers="$ac_config_headers config.h:common/config.h.in"
16706
16707
16708cat >confcache <<\_ACEOF
16709# This file is a shell script that caches the results of configure
16710# tests run on this system so they can be shared between configure
16711# scripts and configure runs, see configure's option --config-cache.
16712# It is not useful on other systems. If it contains results you don't
16713# want to keep, you may remove or edit it.
16714#
16715# config.status only pays attention to the cache file if you give it
16716# the --recheck option to rerun configure.
16717#
16718# `ac_cv_env_foo' variables (set or unset) will be overridden when
16719# loading this file, other *unset* `ac_cv_foo' will be assigned the
16720# following values.
16721
16722_ACEOF
16723
16724# The following way of writing the cache mishandles newlines in values,
16725# but we know of no workaround that is simple, portable, and efficient.
16726# So, we kill variables containing newlines.
16727# Ultrix sh set writes to stderr and can't be redirected directly,
16728# and sets the high bit in the cache file unless we assign to the vars.
16729(
16730 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16731 eval ac_val=\$$ac_var
16732 case $ac_val in #(
16733 *${as_nl}*)
16734 case $ac_var in #(
16735 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16736$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16737 esac
16738 case $ac_var in #(
16739 _ | IFS | as_nl) ;; #(
16740 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16741 *) { eval $ac_var=; unset $ac_var;} ;;
16742 esac ;;
16743 esac
16744 done
16745
16746 (set) 2>&1 |
16747 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16748 *${as_nl}ac_space=\ *)
16749 # `set' does not quote correctly, so add quotes: double-quote
16750 # substitution turns \\\\ into \\, and sed turns \\ into \.
16751 sed -n \
16752 "s/'/'\\\\''/g;
16753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16754 ;; #(
16755 *)
16756 # `set' quotes correctly as required by POSIX, so do not add quotes.
16757 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16758 ;;
16759 esac |
16760 sort
16761) |
16762 sed '
16763 /^ac_cv_env_/b end
16764 t clear
16765 :clear
16766 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16767 t end
16768 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16769 :end' >>confcache
16770if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16771 if test -w "$cache_file"; then
16772 if test "x$cache_file" != "x/dev/null"; then
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16774$as_echo "$as_me: updating cache $cache_file" >&6;}
16775 if test ! -f "$cache_file" || test -h "$cache_file"; then
16776 cat confcache >"$cache_file"
16777 else
16778 case $cache_file in #(
16779 */* | ?:*)
16780 mv -f confcache "$cache_file"$$ &&
16781 mv -f "$cache_file"$$ "$cache_file" ;; #(
16782 *)
16783 mv -f confcache "$cache_file" ;;
16784 esac
16785 fi
16786 fi
16787 else
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16789$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16790 fi
16791fi
16792rm -f confcache
16793
16794test "x$prefix" = xNONE && prefix=$ac_default_prefix
16795# Let make expand exec_prefix.
16796test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16797
16798DEFS=-DHAVE_CONFIG_H
16799
16800ac_libobjs=
16801ac_ltlibobjs=
16802U=
16803for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16804 # 1. Remove the extension, and $U if already installed.
16805 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16806 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16807 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16808 # will be set to the directory where LIBOBJS objects are built.
16809 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16810 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16811done
16812LIBOBJS=$ac_libobjs
16813
16814LTLIBOBJS=$ac_ltlibobjs
16815
16816
16817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16818$as_echo_n "checking that generated files are newer than configure... " >&6; }
16819 if test -n "$am_sleep_pid"; then
16820 # Hide warnings about reused PIDs.
16821 wait $am_sleep_pid 2>/dev/null
16822 fi
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16824$as_echo "done" >&6; }
16825 if test -n "$EXEEXT"; then
16826 am__EXEEXT_TRUE=
16827 am__EXEEXT_FALSE='#'
16828else
16829 am__EXEEXT_TRUE='#'
16830 am__EXEEXT_FALSE=
16831fi
16832
16833if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16834 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16835Usually this means the macro was only invoked conditionally." "$LINENO" 5
16836fi
16837if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16838 as_fn_error $? "conditional \"AMDEP\" was never defined.
16839Usually this means the macro was only invoked conditionally." "$LINENO" 5
16840fi
16841if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16842 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16843Usually this means the macro was only invoked conditionally." "$LINENO" 5
16844fi
16845if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16846 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16847Usually this means the macro was only invoked conditionally." "$LINENO" 5
16848fi
16849if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16850 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16851Usually this means the macro was only invoked conditionally." "$LINENO" 5
16852fi
16853if test -z "${BUILD_COLLECTOR_TRUE}" && test -z "${BUILD_COLLECTOR_FALSE}"; then
16854 as_fn_error $? "conditional \"BUILD_COLLECTOR\" was never defined.
16855Usually this means the macro was only invoked conditionally." "$LINENO" 5
16856fi
16857if test -z "${BUILD_SRC_TRUE}" && test -z "${BUILD_SRC_FALSE}"; then
16858 as_fn_error $? "conditional \"BUILD_SRC\" was never defined.
16859Usually this means the macro was only invoked conditionally." "$LINENO" 5
16860fi
16861if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
16862 as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
16863Usually this means the macro was only invoked conditionally." "$LINENO" 5
16864fi
16865if test -z "${TCL_TRY_TRUE}" && test -z "${TCL_TRY_FALSE}"; then
16866 as_fn_error $? "conditional \"TCL_TRY\" was never defined.
16867Usually this means the macro was only invoked conditionally." "$LINENO" 5
16868fi
16869if test -z "${BUILD_MAN_TRUE}" && test -z "${BUILD_MAN_FALSE}"; then
16870 as_fn_error $? "conditional \"BUILD_MAN\" was never defined.
16871Usually this means the macro was only invoked conditionally." "$LINENO" 5
16872fi
16873
16874: "${CONFIG_STATUS=./config.status}"
16875ac_write_fail=0
16876ac_clean_files_save=$ac_clean_files
16877ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16878{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16879$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16880as_write_fail=0
16881cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16882#! $SHELL
16883# Generated by $as_me.
16884# Run this file to recreate the current configuration.
16885# Compiler output produced by configure, useful for debugging
16886# configure, is in config.log if it exists.
16887
16888debug=false
16889ac_cs_recheck=false
16890ac_cs_silent=false
16891
16892SHELL=\${CONFIG_SHELL-$SHELL}
16893export SHELL
16894_ASEOF
16895cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16896## -------------------- ##
16897## M4sh Initialization. ##
16898## -------------------- ##
16899
16900# Be more Bourne compatible
16901DUALCASE=1; export DUALCASE # for MKS sh
16902if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16903 emulate sh
16904 NULLCMD=:
16905 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16906 # is contrary to our usage. Disable this feature.
16907 alias -g '${1+"$@"}'='"$@"'
16908 setopt NO_GLOB_SUBST
16909else
16910 case `(set -o) 2>/dev/null` in #(
16911 *posix*) :
16912 set -o posix ;; #(
16913 *) :
16914 ;;
16915esac
16916fi
16917
16918
16919as_nl='
16920'
16921export as_nl
16922# Printing a long string crashes Solaris 7 /usr/bin/printf.
16923as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16924as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16925as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16926# Prefer a ksh shell builtin over an external printf program on Solaris,
16927# but without wasting forks for bash or zsh.
16928if test -z "$BASH_VERSION$ZSH_VERSION" \
16929 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16930 as_echo='print -r --'
16931 as_echo_n='print -rn --'
16932elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16933 as_echo='printf %s\n'
16934 as_echo_n='printf %s'
16935else
16936 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16937 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16938 as_echo_n='/usr/ucb/echo -n'
16939 else
16940 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16941 as_echo_n_body='eval
16942 arg=$1;
16943 case $arg in #(
16944 *"$as_nl"*)
16945 expr "X$arg" : "X\\(.*\\)$as_nl";
16946 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16947 esac;
16948 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16949 '
16950 export as_echo_n_body
16951 as_echo_n='sh -c $as_echo_n_body as_echo'
16952 fi
16953 export as_echo_body
16954 as_echo='sh -c $as_echo_body as_echo'
16955fi
16956
16957# The user is always right.
16958if test "${PATH_SEPARATOR+set}" != set; then
16959 PATH_SEPARATOR=:
16960 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16961 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16962 PATH_SEPARATOR=';'
16963 }
16964fi
16965
16966
16967# IFS
16968# We need space, tab and new line, in precisely that order. Quoting is
16969# there to prevent editors from complaining about space-tab.
16970# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16971# splitting by setting IFS to empty value.)
16972IFS=" "" $as_nl"
16973
16974# Find who we are. Look in the path if we contain no directory separator.
16975as_myself=
16976case $0 in #((
16977 *[\\/]* ) as_myself=$0 ;;
16978 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16979for as_dir in $PATH
16980do
16981 IFS=$as_save_IFS
16982 test -z "$as_dir" && as_dir=.
16983 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16984 done
16985IFS=$as_save_IFS
16986
16987 ;;
16988esac
16989# We did not find ourselves, most probably we were run as `sh COMMAND'
16990# in which case we are not to be found in the path.
16991if test "x$as_myself" = x; then
16992 as_myself=$0
16993fi
16994if test ! -f "$as_myself"; then
16995 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16996 exit 1
16997fi
16998
16999# Unset variables that we do not need and which cause bugs (e.g. in
17000# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17001# suppresses any "Segmentation fault" message there. '((' could
17002# trigger a bug in pdksh 5.2.14.
17003for as_var in BASH_ENV ENV MAIL MAILPATH
17004do eval test x\${$as_var+set} = xset \
17005 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17006done
17007PS1='$ '
17008PS2='> '
17009PS4='+ '
17010
17011# NLS nuisances.
17012LC_ALL=C
17013export LC_ALL
17014LANGUAGE=C
17015export LANGUAGE
17016
17017# CDPATH.
17018(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17019
17020
17021# as_fn_error STATUS ERROR [LINENO LOG_FD]
17022# ----------------------------------------
17023# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17024# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17025# script with STATUS, using 1 if that was 0.
17026as_fn_error ()
17027{
17028 as_status=$1; test $as_status -eq 0 && as_status=1
17029 if test "$4"; then
17030 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17031 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17032 fi
17033 $as_echo "$as_me: error: $2" >&2
17034 as_fn_exit $as_status
17035} # as_fn_error
17036
17037
17038# as_fn_set_status STATUS
17039# -----------------------
17040# Set $? to STATUS, without forking.
17041as_fn_set_status ()
17042{
17043 return $1
17044} # as_fn_set_status
17045
17046# as_fn_exit STATUS
17047# -----------------
17048# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17049as_fn_exit ()
17050{
17051 set +e
17052 as_fn_set_status $1
17053 exit $1
17054} # as_fn_exit
17055
17056# as_fn_unset VAR
17057# ---------------
17058# Portably unset VAR.
17059as_fn_unset ()
17060{
17061 { eval $1=; unset $1;}
17062}
17063as_unset=as_fn_unset
17064# as_fn_append VAR VALUE
17065# ----------------------
17066# Append the text in VALUE to the end of the definition contained in VAR. Take
17067# advantage of any shell optimizations that allow amortized linear growth over
17068# repeated appends, instead of the typical quadratic growth present in naive
17069# implementations.
17070if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17071 eval 'as_fn_append ()
17072 {
17073 eval $1+=\$2
17074 }'
17075else
17076 as_fn_append ()
17077 {
17078 eval $1=\$$1\$2
17079 }
17080fi # as_fn_append
17081
17082# as_fn_arith ARG...
17083# ------------------
17084# Perform arithmetic evaluation on the ARGs, and store the result in the
17085# global $as_val. Take advantage of shells that can avoid forks. The arguments
17086# must be portable across $(()) and expr.
17087if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17088 eval 'as_fn_arith ()
17089 {
17090 as_val=$(( $* ))
17091 }'
17092else
17093 as_fn_arith ()
17094 {
17095 as_val=`expr "$@" || test $? -eq 1`
17096 }
17097fi # as_fn_arith
17098
17099
17100if expr a : '\(a\)' >/dev/null 2>&1 &&
17101 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17102 as_expr=expr
17103else
17104 as_expr=false
17105fi
17106
17107if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17108 as_basename=basename
17109else
17110 as_basename=false
17111fi
17112
17113if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17114 as_dirname=dirname
17115else
17116 as_dirname=false
17117fi
17118
17119as_me=`$as_basename -- "$0" ||
17120$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17121 X"$0" : 'X\(//\)$' \| \
17122 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17123$as_echo X/"$0" |
17124 sed '/^.*\/\([^/][^/]*\)\/*$/{
17125 s//\1/
17126 q
17127 }
17128 /^X\/\(\/\/\)$/{
17129 s//\1/
17130 q
17131 }
17132 /^X\/\(\/\).*/{
17133 s//\1/
17134 q
17135 }
17136 s/.*/./; q'`
17137
17138# Avoid depending upon Character Ranges.
17139as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17140as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17141as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17142as_cr_digits='0123456789'
17143as_cr_alnum=$as_cr_Letters$as_cr_digits
17144
17145ECHO_C= ECHO_N= ECHO_T=
17146case `echo -n x` in #(((((
17147-n*)
17148 case `echo 'xy\c'` in
17149 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17150 xy) ECHO_C='\c';;
17151 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17152 ECHO_T=' ';;
17153 esac;;
17154*)
17155 ECHO_N='-n';;
17156esac
17157
17158rm -f conf$$ conf$$.exe conf$$.file
17159if test -d conf$$.dir; then
17160 rm -f conf$$.dir/conf$$.file
17161else
17162 rm -f conf$$.dir
17163 mkdir conf$$.dir 2>/dev/null
17164fi
17165if (echo >conf$$.file) 2>/dev/null; then
17166 if ln -s conf$$.file conf$$ 2>/dev/null; then
17167 as_ln_s='ln -s'
17168 # ... but there are two gotchas:
17169 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17170 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17171 # In both cases, we have to default to `cp -pR'.
17172 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17173 as_ln_s='cp -pR'
17174 elif ln conf$$.file conf$$ 2>/dev/null; then
17175 as_ln_s=ln
17176 else
17177 as_ln_s='cp -pR'
17178 fi
17179else
17180 as_ln_s='cp -pR'
17181fi
17182rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17183rmdir conf$$.dir 2>/dev/null
17184
17185
17186# as_fn_mkdir_p
17187# -------------
17188# Create "$as_dir" as a directory, including parents if necessary.
17189as_fn_mkdir_p ()
17190{
17191
17192 case $as_dir in #(
17193 -*) as_dir=./$as_dir;;
17194 esac
17195 test -d "$as_dir" || eval $as_mkdir_p || {
17196 as_dirs=
17197 while :; do
17198 case $as_dir in #(
17199 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17200 *) as_qdir=$as_dir;;
17201 esac
17202 as_dirs="'$as_qdir' $as_dirs"
17203 as_dir=`$as_dirname -- "$as_dir" ||
17204$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17205 X"$as_dir" : 'X\(//\)[^/]' \| \
17206 X"$as_dir" : 'X\(//\)$' \| \
17207 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17208$as_echo X"$as_dir" |
17209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17210 s//\1/
17211 q
17212 }
17213 /^X\(\/\/\)[^/].*/{
17214 s//\1/
17215 q
17216 }
17217 /^X\(\/\/\)$/{
17218 s//\1/
17219 q
17220 }
17221 /^X\(\/\).*/{
17222 s//\1/
17223 q
17224 }
17225 s/.*/./; q'`
17226 test -d "$as_dir" && break
17227 done
17228 test -z "$as_dirs" || eval "mkdir $as_dirs"
17229 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17230
17231
17232} # as_fn_mkdir_p
17233if mkdir -p . 2>/dev/null; then
17234 as_mkdir_p='mkdir -p "$as_dir"'
17235else
17236 test -d ./-p && rmdir ./-p
17237 as_mkdir_p=false
17238fi
17239
17240
17241# as_fn_executable_p FILE
17242# -----------------------
17243# Test if FILE is an executable regular file.
17244as_fn_executable_p ()
17245{
17246 test -f "$1" && test -x "$1"
17247} # as_fn_executable_p
17248as_test_x='test -x'
17249as_executable_p=as_fn_executable_p
17250
17251# Sed expression to map a string onto a valid CPP name.
17252as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17253
17254# Sed expression to map a string onto a valid variable name.
17255as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17256
17257
17258exec 6>&1
17259## ----------------------------------- ##
17260## Main body of $CONFIG_STATUS script. ##
17261## ----------------------------------- ##
17262_ASEOF
17263test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17264
17265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17266# Save the log message, to keep $0 and so on meaningful, and to
17267# report actual input values of CONFIG_FILES etc. instead of their
17268# values after options handling.
17269ac_log="
17270This file was extended by gprofng $as_me 2.38.50, which was
17271generated by GNU Autoconf 2.69. Invocation command line was
17272
17273 CONFIG_FILES = $CONFIG_FILES
17274 CONFIG_HEADERS = $CONFIG_HEADERS
17275 CONFIG_LINKS = $CONFIG_LINKS
17276 CONFIG_COMMANDS = $CONFIG_COMMANDS
17277 $ $0 $@
17278
17279on `(hostname || uname -n) 2>/dev/null | sed 1q`
17280"
17281
17282_ACEOF
17283
17284case $ac_config_files in *"
17285"*) set x $ac_config_files; shift; ac_config_files=$*;;
17286esac
17287
17288case $ac_config_headers in *"
17289"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17290esac
17291
17292
17293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17294# Files that config.status was made for.
17295config_files="$ac_config_files"
17296config_headers="$ac_config_headers"
17297config_commands="$ac_config_commands"
17298
17299_ACEOF
17300
17301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17302ac_cs_usage="\
17303\`$as_me' instantiates files and other configuration actions
17304from templates according to the current configuration. Unless the files
17305and actions are specified as TAGs, all are instantiated by default.
17306
17307Usage: $0 [OPTION]... [TAG]...
17308
17309 -h, --help print this help, then exit
17310 -V, --version print version number and configuration settings, then exit
17311 --config print configuration, then exit
17312 -q, --quiet, --silent
17313 do not print progress messages
17314 -d, --debug don't remove temporary files
17315 --recheck update $as_me by reconfiguring in the same conditions
17316 --file=FILE[:TEMPLATE]
17317 instantiate the configuration file FILE
17318 --header=FILE[:TEMPLATE]
17319 instantiate the configuration header FILE
17320
17321Configuration files:
17322$config_files
17323
17324Configuration headers:
17325$config_headers
17326
17327Configuration commands:
17328$config_commands
17329
17330Report bugs to the package provider."
17331
17332_ACEOF
17333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17334ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17335ac_cs_version="\\
17336gprofng config.status 2.38.50
17337configured by $0, generated by GNU Autoconf 2.69,
17338 with options \\"\$ac_cs_config\\"
17339
17340Copyright (C) 2012 Free Software Foundation, Inc.
17341This config.status script is free software; the Free Software Foundation
17342gives unlimited permission to copy, distribute and modify it."
17343
17344ac_pwd='$ac_pwd'
17345srcdir='$srcdir'
17346INSTALL='$INSTALL'
17347MKDIR_P='$MKDIR_P'
17348AWK='$AWK'
17349test -n "\$AWK" || AWK=awk
17350_ACEOF
17351
17352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17353# The default lists apply if the user does not specify any file.
17354ac_need_defaults=:
17355while test $# != 0
17356do
17357 case $1 in
17358 --*=?*)
17359 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17360 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17361 ac_shift=:
17362 ;;
17363 --*=)
17364 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17365 ac_optarg=
17366 ac_shift=:
17367 ;;
17368 *)
17369 ac_option=$1
17370 ac_optarg=$2
17371 ac_shift=shift
17372 ;;
17373 esac
17374
17375 case $ac_option in
17376 # Handling of the options.
17377 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17378 ac_cs_recheck=: ;;
17379 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17380 $as_echo "$ac_cs_version"; exit ;;
17381 --config | --confi | --conf | --con | --co | --c )
17382 $as_echo "$ac_cs_config"; exit ;;
17383 --debug | --debu | --deb | --de | --d | -d )
17384 debug=: ;;
17385 --file | --fil | --fi | --f )
17386 $ac_shift
17387 case $ac_optarg in
17388 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17389 '') as_fn_error $? "missing file argument" ;;
17390 esac
17391 as_fn_append CONFIG_FILES " '$ac_optarg'"
17392 ac_need_defaults=false;;
17393 --header | --heade | --head | --hea )
17394 $ac_shift
17395 case $ac_optarg in
17396 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17397 esac
17398 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17399 ac_need_defaults=false;;
17400 --he | --h)
17401 # Conflict between --help and --header
17402 as_fn_error $? "ambiguous option: \`$1'
17403Try \`$0 --help' for more information.";;
17404 --help | --hel | -h )
17405 $as_echo "$ac_cs_usage"; exit ;;
17406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17407 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17408 ac_cs_silent=: ;;
17409
17410 # This is an error.
17411 -*) as_fn_error $? "unrecognized option: \`$1'
17412Try \`$0 --help' for more information." ;;
17413
17414 *) as_fn_append ac_config_targets " $1"
17415 ac_need_defaults=false ;;
17416
17417 esac
17418 shift
17419done
17420
17421ac_configure_extra_args=
17422
17423if $ac_cs_silent; then
17424 exec 6>/dev/null
17425 ac_configure_extra_args="$ac_configure_extra_args --silent"
17426fi
17427
17428_ACEOF
17429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17430if \$ac_cs_recheck; then
17431 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17432 shift
17433 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17434 CONFIG_SHELL='$SHELL'
17435 export CONFIG_SHELL
17436 exec "\$@"
17437fi
17438
17439_ACEOF
17440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17441exec 5>>config.log
17442{
17443 echo
17444 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17445## Running $as_me. ##
17446_ASBOX
17447 $as_echo "$ac_log"
17448} >&5
17449
17450_ACEOF
17451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17452#
17453# INIT-COMMANDS
17454#
17455AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17456
17457
17458# The HP-UX ksh and POSIX shell print the target directory to stdout
17459# if CDPATH is set.
17460(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17461
17462sed_quote_subst='$sed_quote_subst'
17463double_quote_subst='$double_quote_subst'
17464delay_variable_subst='$delay_variable_subst'
17465enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17466macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17467macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17468enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17469pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17470enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17471SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17472ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17473host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17474host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17475host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17476build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17477build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17478build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17479SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17480Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17481GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17482EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17483FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17484LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17485NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17486LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17487max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17488ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17489exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17490lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17491lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17492lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17493reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17494reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17495OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17496deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17497file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17498AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17499AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17500STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17501RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17502old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17503old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17504old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17505lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17506CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17507CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17508compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17509GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17510lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17511lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17512lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17513lt_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"`'
17514objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17515MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17516lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17517lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17518lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17519lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17520lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17521need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17522DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17523NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17524LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17525OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17526OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17527libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17528shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17529extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17530archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17531enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17532export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17533whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17534compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17535old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17536old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17537archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17538archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17539module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17540module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17541with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17542allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17543no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17544hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17545hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17546hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17547hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17548hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17549hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17550hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17551hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17552inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17553link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17554fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17555always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17556export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17557exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17558include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17559prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17560file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17561variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17562need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17563need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17564version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17565runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17566shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17567shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17568libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17569library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17570soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17571install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17572postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17573postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17574finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17575finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17576hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17577sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17578sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17579hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17580enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17581enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17582enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17583old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17584striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17585compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17586predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17587postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17588predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17589postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17590compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17591LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17592reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17593reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17594old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17595compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17596GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17597lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17598lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17599lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17600lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17601lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17602archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17603enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17604export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17605whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17606compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17607old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17608old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17609archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17610archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17611module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17612module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17613with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17614allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17615no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17616hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17617hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17618hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17619hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17620hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17621hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17622hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17623hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17624inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17625link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17626fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17627always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17628export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17629exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17630include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17631prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17632file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17633hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17634compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17635predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17636postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17637predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17638postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17639compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17640
17641LTCC='$LTCC'
17642LTCFLAGS='$LTCFLAGS'
17643compiler='$compiler_DEFAULT'
17644
17645# A function that is used when there is no print builtin or printf.
17646func_fallback_echo ()
17647{
17648 eval 'cat <<_LTECHO_EOF
17649\$1
17650_LTECHO_EOF'
17651}
17652
17653# Quote evaled strings.
17654for var in SHELL \
17655ECHO \
17656SED \
17657GREP \
17658EGREP \
17659FGREP \
17660LD \
17661NM \
17662LN_S \
17663lt_SP2NL \
17664lt_NL2SP \
17665reload_flag \
17666OBJDUMP \
17667deplibs_check_method \
17668file_magic_cmd \
17669AR \
17670AR_FLAGS \
17671STRIP \
17672RANLIB \
17673CC \
17674CFLAGS \
17675compiler \
17676lt_cv_sys_global_symbol_pipe \
17677lt_cv_sys_global_symbol_to_cdecl \
17678lt_cv_sys_global_symbol_to_c_name_address \
17679lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17680lt_prog_compiler_no_builtin_flag \
17681lt_prog_compiler_wl \
17682lt_prog_compiler_pic \
17683lt_prog_compiler_static \
17684lt_cv_prog_compiler_c_o \
17685need_locks \
17686DSYMUTIL \
17687NMEDIT \
17688LIPO \
17689OTOOL \
17690OTOOL64 \
17691shrext_cmds \
17692export_dynamic_flag_spec \
17693whole_archive_flag_spec \
17694compiler_needs_object \
17695with_gnu_ld \
17696allow_undefined_flag \
17697no_undefined_flag \
17698hardcode_libdir_flag_spec \
17699hardcode_libdir_flag_spec_ld \
17700hardcode_libdir_separator \
17701fix_srcfile_path \
17702exclude_expsyms \
17703include_expsyms \
17704file_list_spec \
17705variables_saved_for_relink \
17706libname_spec \
17707library_names_spec \
17708soname_spec \
17709install_override_mode \
17710finish_eval \
17711old_striplib \
17712striplib \
17713compiler_lib_search_dirs \
17714predep_objects \
17715postdep_objects \
17716predeps \
17717postdeps \
17718compiler_lib_search_path \
17719LD_CXX \
17720reload_flag_CXX \
17721compiler_CXX \
17722lt_prog_compiler_no_builtin_flag_CXX \
17723lt_prog_compiler_wl_CXX \
17724lt_prog_compiler_pic_CXX \
17725lt_prog_compiler_static_CXX \
17726lt_cv_prog_compiler_c_o_CXX \
17727export_dynamic_flag_spec_CXX \
17728whole_archive_flag_spec_CXX \
17729compiler_needs_object_CXX \
17730with_gnu_ld_CXX \
17731allow_undefined_flag_CXX \
17732no_undefined_flag_CXX \
17733hardcode_libdir_flag_spec_CXX \
17734hardcode_libdir_flag_spec_ld_CXX \
17735hardcode_libdir_separator_CXX \
17736fix_srcfile_path_CXX \
17737exclude_expsyms_CXX \
17738include_expsyms_CXX \
17739file_list_spec_CXX \
17740compiler_lib_search_dirs_CXX \
17741predep_objects_CXX \
17742postdep_objects_CXX \
17743predeps_CXX \
17744postdeps_CXX \
17745compiler_lib_search_path_CXX; do
17746 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17747 *[\\\\\\\`\\"\\\$]*)
17748 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17749 ;;
17750 *)
17751 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17752 ;;
17753 esac
17754done
17755
17756# Double-quote double-evaled strings.
17757for var in reload_cmds \
17758old_postinstall_cmds \
17759old_postuninstall_cmds \
17760old_archive_cmds \
17761extract_expsyms_cmds \
17762old_archive_from_new_cmds \
17763old_archive_from_expsyms_cmds \
17764archive_cmds \
17765archive_expsym_cmds \
17766module_cmds \
17767module_expsym_cmds \
17768export_symbols_cmds \
17769prelink_cmds \
17770postinstall_cmds \
17771postuninstall_cmds \
17772finish_cmds \
17773sys_lib_search_path_spec \
17774sys_lib_dlsearch_path_spec \
17775reload_cmds_CXX \
17776old_archive_cmds_CXX \
17777old_archive_from_new_cmds_CXX \
17778old_archive_from_expsyms_cmds_CXX \
17779archive_cmds_CXX \
17780archive_expsym_cmds_CXX \
17781module_cmds_CXX \
17782module_expsym_cmds_CXX \
17783export_symbols_cmds_CXX \
17784prelink_cmds_CXX; do
17785 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17786 *[\\\\\\\`\\"\\\$]*)
17787 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17788 ;;
17789 *)
17790 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17791 ;;
17792 esac
17793done
17794
17795ac_aux_dir='$ac_aux_dir'
17796xsi_shell='$xsi_shell'
17797lt_shell_append='$lt_shell_append'
17798
17799# See if we are running on zsh, and set the options which allow our
17800# commands through without removal of \ escapes INIT.
17801if test -n "\${ZSH_VERSION+set}" ; then
17802 setopt NO_GLOB_SUBST
17803fi
17804
17805
17806 PACKAGE='$PACKAGE'
17807 VERSION='$VERSION'
17808 TIMESTAMP='$TIMESTAMP'
17809 RM='$RM'
17810 ofile='$ofile'
17811
17812
17813
17814
17815
17816
17817_ACEOF
17818
17819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17820
17821# Handling of arguments.
17822for ac_config_target in $ac_config_targets
17823do
17824 case $ac_config_target in
17825 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17826 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17827 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17828 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17829 "gp-display-html/Makefile") CONFIG_FILES="$CONFIG_FILES gp-display-html/Makefile" ;;
17830 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17831 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:common/config.h.in" ;;
17832
17833 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17834 esac
17835done
17836
17837
17838# If the user did not use the arguments to specify the items to instantiate,
17839# then the envvar interface is used. Set only those that are not.
17840# We use the long form for the default assignment because of an extremely
17841# bizarre bug on SunOS 4.1.3.
17842if $ac_need_defaults; then
17843 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17844 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17845 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17846fi
17847
17848# Have a temporary directory for convenience. Make it in the build tree
17849# simply because there is no reason against having it here, and in addition,
17850# creating and moving files from /tmp can sometimes cause problems.
17851# Hook for its removal unless debugging.
17852# Note that there is a small window in which the directory will not be cleaned:
17853# after its creation but before its name has been assigned to `$tmp'.
17854$debug ||
17855{
17856 tmp= ac_tmp=
17857 trap 'exit_status=$?
17858 : "${ac_tmp:=$tmp}"
17859 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17860' 0
17861 trap 'as_fn_exit 1' 1 2 13 15
17862}
17863# Create a (secure) tmp directory for tmp files.
17864
17865{
17866 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17867 test -d "$tmp"
17868} ||
17869{
17870 tmp=./conf$$-$RANDOM
17871 (umask 077 && mkdir "$tmp")
17872} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17873ac_tmp=$tmp
17874
17875# Set up the scripts for CONFIG_FILES section.
17876# No need to generate them if there are no CONFIG_FILES.
17877# This happens for instance with `./config.status config.h'.
17878if test -n "$CONFIG_FILES"; then
17879
17880
17881ac_cr=`echo X | tr X '\015'`
17882# On cygwin, bash can eat \r inside `` if the user requested igncr.
17883# But we know of no other shell where ac_cr would be empty at this
17884# point, so we can use a bashism as a fallback.
17885if test "x$ac_cr" = x; then
17886 eval ac_cr=\$\'\\r\'
17887fi
17888ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17889if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17890 ac_cs_awk_cr='\\r'
17891else
17892 ac_cs_awk_cr=$ac_cr
17893fi
17894
17895echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17896_ACEOF
17897
17898
17899{
17900 echo "cat >conf$$subs.awk <<_ACEOF" &&
17901 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17902 echo "_ACEOF"
17903} >conf$$subs.sh ||
17904 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17905ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17906ac_delim='%!_!# '
17907for ac_last_try in false false false false false :; do
17908 . ./conf$$subs.sh ||
17909 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17910
17911 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17912 if test $ac_delim_n = $ac_delim_num; then
17913 break
17914 elif $ac_last_try; then
17915 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17916 else
17917 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17918 fi
17919done
17920rm -f conf$$subs.sh
17921
17922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17923cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17924_ACEOF
17925sed -n '
17926h
17927s/^/S["/; s/!.*/"]=/
17928p
17929g
17930s/^[^!]*!//
17931:repl
17932t repl
17933s/'"$ac_delim"'$//
17934t delim
17935:nl
17936h
17937s/\(.\{148\}\)..*/\1/
17938t more1
17939s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17940p
17941n
17942b repl
17943:more1
17944s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17945p
17946g
17947s/.\{148\}//
17948t nl
17949:delim
17950h
17951s/\(.\{148\}\)..*/\1/
17952t more2
17953s/["\\]/\\&/g; s/^/"/; s/$/"/
17954p
17955b
17956:more2
17957s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17958p
17959g
17960s/.\{148\}//
17961t delim
17962' <conf$$subs.awk | sed '
17963/^[^""]/{
17964 N
17965 s/\n//
17966}
17967' >>$CONFIG_STATUS || ac_write_fail=1
17968rm -f conf$$subs.awk
17969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17970_ACAWK
17971cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17972 for (key in S) S_is_set[key] = 1
17973 FS = "\a"
17974
17975}
17976{
17977 line = $ 0
17978 nfields = split(line, field, "@")
17979 substed = 0
17980 len = length(field[1])
17981 for (i = 2; i < nfields; i++) {
17982 key = field[i]
17983 keylen = length(key)
17984 if (S_is_set[key]) {
17985 value = S[key]
17986 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17987 len += length(value) + length(field[++i])
17988 substed = 1
17989 } else
17990 len += 1 + keylen
17991 }
17992
17993 print line
17994}
17995
17996_ACAWK
17997_ACEOF
17998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17999if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18000 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18001else
18002 cat
18003fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18004 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18005_ACEOF
18006
18007# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18008# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18009# trailing colons and then remove the whole line if VPATH becomes empty
18010# (actually we leave an empty line to preserve line numbers).
18011if test "x$srcdir" = x.; then
18012 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18013h
18014s///
18015s/^/:/
18016s/[ ]*$/:/
18017s/:\$(srcdir):/:/g
18018s/:\${srcdir}:/:/g
18019s/:@srcdir@:/:/g
18020s/^:*//
18021s/:*$//
18022x
18023s/\(=[ ]*\).*/\1/
18024G
18025s/\n//
18026s/^[^=]*=[ ]*$//
18027}'
18028fi
18029
18030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18031fi # test -n "$CONFIG_FILES"
18032
18033# Set up the scripts for CONFIG_HEADERS section.
18034# No need to generate them if there are no CONFIG_HEADERS.
18035# This happens for instance with `./config.status Makefile'.
18036if test -n "$CONFIG_HEADERS"; then
18037cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18038BEGIN {
18039_ACEOF
18040
18041# Transform confdefs.h into an awk script `defines.awk', embedded as
18042# here-document in config.status, that substitutes the proper values into
18043# config.h.in to produce config.h.
18044
18045# Create a delimiter string that does not exist in confdefs.h, to ease
18046# handling of long lines.
18047ac_delim='%!_!# '
18048for ac_last_try in false false :; do
18049 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18050 if test -z "$ac_tt"; then
18051 break
18052 elif $ac_last_try; then
18053 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18054 else
18055 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18056 fi
18057done
18058
18059# For the awk script, D is an array of macro values keyed by name,
18060# likewise P contains macro parameters if any. Preserve backslash
18061# newline sequences.
18062
18063ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18064sed -n '
18065s/.\{148\}/&'"$ac_delim"'/g
18066t rset
18067:rset
18068s/^[ ]*#[ ]*define[ ][ ]*/ /
18069t def
18070d
18071:def
18072s/\\$//
18073t bsnl
18074s/["\\]/\\&/g
18075s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18076D["\1"]=" \3"/p
18077s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18078d
18079:bsnl
18080s/["\\]/\\&/g
18081s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18082D["\1"]=" \3\\\\\\n"\\/p
18083t cont
18084s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18085t cont
18086d
18087:cont
18088n
18089s/.\{148\}/&'"$ac_delim"'/g
18090t clear
18091:clear
18092s/\\$//
18093t bsnlc
18094s/["\\]/\\&/g; s/^/"/; s/$/"/p
18095d
18096:bsnlc
18097s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18098b cont
18099' <confdefs.h | sed '
18100s/'"$ac_delim"'/"\\\
18101"/g' >>$CONFIG_STATUS || ac_write_fail=1
18102
18103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18104 for (key in D) D_is_set[key] = 1
18105 FS = "\a"
18106}
18107/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18108 line = \$ 0
18109 split(line, arg, " ")
18110 if (arg[1] == "#") {
18111 defundef = arg[2]
18112 mac1 = arg[3]
18113 } else {
18114 defundef = substr(arg[1], 2)
18115 mac1 = arg[2]
18116 }
18117 split(mac1, mac2, "(") #)
18118 macro = mac2[1]
18119 prefix = substr(line, 1, index(line, defundef) - 1)
18120 if (D_is_set[macro]) {
18121 # Preserve the white space surrounding the "#".
18122 print prefix "define", macro P[macro] D[macro]
18123 next
18124 } else {
18125 # Replace #undef with comments. This is necessary, for example,
18126 # in the case of _POSIX_SOURCE, which is predefined and required
18127 # on some systems where configure will not decide to define it.
18128 if (defundef == "undef") {
18129 print "/*", prefix defundef, macro, "*/"
18130 next
18131 }
18132 }
18133}
18134{ print }
18135_ACAWK
18136_ACEOF
18137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18138 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18139fi # test -n "$CONFIG_HEADERS"
18140
18141
18142eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18143shift
18144for ac_tag
18145do
18146 case $ac_tag in
18147 :[FHLC]) ac_mode=$ac_tag; continue;;
18148 esac
18149 case $ac_mode$ac_tag in
18150 :[FHL]*:*);;
18151 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18152 :[FH]-) ac_tag=-:-;;
18153 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18154 esac
18155 ac_save_IFS=$IFS
18156 IFS=:
18157 set x $ac_tag
18158 IFS=$ac_save_IFS
18159 shift
18160 ac_file=$1
18161 shift
18162
18163 case $ac_mode in
18164 :L) ac_source=$1;;
18165 :[FH])
18166 ac_file_inputs=
18167 for ac_f
18168 do
18169 case $ac_f in
18170 -) ac_f="$ac_tmp/stdin";;
18171 *) # Look for the file first in the build tree, then in the source tree
18172 # (if the path is not absolute). The absolute path cannot be DOS-style,
18173 # because $ac_f cannot contain `:'.
18174 test -f "$ac_f" ||
18175 case $ac_f in
18176 [\\/$]*) false;;
18177 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18178 esac ||
18179 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18180 esac
18181 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18182 as_fn_append ac_file_inputs " '$ac_f'"
18183 done
18184
18185 # Let's still pretend it is `configure' which instantiates (i.e., don't
18186 # use $as_me), people would be surprised to read:
18187 # /* config.h. Generated by config.status. */
18188 configure_input='Generated from '`
18189 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18190 `' by configure.'
18191 if test x"$ac_file" != x-; then
18192 configure_input="$ac_file. $configure_input"
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18194$as_echo "$as_me: creating $ac_file" >&6;}
18195 fi
18196 # Neutralize special characters interpreted by sed in replacement strings.
18197 case $configure_input in #(
18198 *\&* | *\|* | *\\* )
18199 ac_sed_conf_input=`$as_echo "$configure_input" |
18200 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18201 *) ac_sed_conf_input=$configure_input;;
18202 esac
18203
18204 case $ac_tag in
18205 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18206 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18207 esac
18208 ;;
18209 esac
18210
18211 ac_dir=`$as_dirname -- "$ac_file" ||
18212$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18213 X"$ac_file" : 'X\(//\)[^/]' \| \
18214 X"$ac_file" : 'X\(//\)$' \| \
18215 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18216$as_echo X"$ac_file" |
18217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18218 s//\1/
18219 q
18220 }
18221 /^X\(\/\/\)[^/].*/{
18222 s//\1/
18223 q
18224 }
18225 /^X\(\/\/\)$/{
18226 s//\1/
18227 q
18228 }
18229 /^X\(\/\).*/{
18230 s//\1/
18231 q
18232 }
18233 s/.*/./; q'`
18234 as_dir="$ac_dir"; as_fn_mkdir_p
18235 ac_builddir=.
18236
18237case "$ac_dir" in
18238.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18239*)
18240 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18241 # A ".." for each directory in $ac_dir_suffix.
18242 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18243 case $ac_top_builddir_sub in
18244 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18245 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18246 esac ;;
18247esac
18248ac_abs_top_builddir=$ac_pwd
18249ac_abs_builddir=$ac_pwd$ac_dir_suffix
18250# for backward compatibility:
18251ac_top_builddir=$ac_top_build_prefix
18252
18253case $srcdir in
18254 .) # We are building in place.
18255 ac_srcdir=.
18256 ac_top_srcdir=$ac_top_builddir_sub
18257 ac_abs_top_srcdir=$ac_pwd ;;
18258 [\\/]* | ?:[\\/]* ) # Absolute name.
18259 ac_srcdir=$srcdir$ac_dir_suffix;
18260 ac_top_srcdir=$srcdir
18261 ac_abs_top_srcdir=$srcdir ;;
18262 *) # Relative name.
18263 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18264 ac_top_srcdir=$ac_top_build_prefix$srcdir
18265 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18266esac
18267ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18268
18269
18270 case $ac_mode in
18271 :F)
18272 #
18273 # CONFIG_FILE
18274 #
18275
18276 case $INSTALL in
18277 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18278 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18279 esac
18280 ac_MKDIR_P=$MKDIR_P
18281 case $MKDIR_P in
18282 [\\/$]* | ?:[\\/]* ) ;;
18283 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18284 esac
18285_ACEOF
18286
18287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18288# If the template does not know about datarootdir, expand it.
18289# FIXME: This hack should be removed a few years after 2.60.
18290ac_datarootdir_hack=; ac_datarootdir_seen=
18291ac_sed_dataroot='
18292/datarootdir/ {
18293 p
18294 q
18295}
18296/@datadir@/p
18297/@docdir@/p
18298/@infodir@/p
18299/@localedir@/p
18300/@mandir@/p'
18301case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18302*datarootdir*) ac_datarootdir_seen=yes;;
18303*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18305$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18306_ACEOF
18307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18308 ac_datarootdir_hack='
18309 s&@datadir@&$datadir&g
18310 s&@docdir@&$docdir&g
18311 s&@infodir@&$infodir&g
18312 s&@localedir@&$localedir&g
18313 s&@mandir@&$mandir&g
18314 s&\\\${datarootdir}&$datarootdir&g' ;;
18315esac
18316_ACEOF
18317
18318# Neutralize VPATH when `$srcdir' = `.'.
18319# Shell code in configure.ac might set extrasub.
18320# FIXME: do we really want to maintain this feature?
18321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18322ac_sed_extra="$ac_vpsub
18323$extrasub
18324_ACEOF
18325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18326:t
18327/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18328s|@configure_input@|$ac_sed_conf_input|;t t
18329s&@top_builddir@&$ac_top_builddir_sub&;t t
18330s&@top_build_prefix@&$ac_top_build_prefix&;t t
18331s&@srcdir@&$ac_srcdir&;t t
18332s&@abs_srcdir@&$ac_abs_srcdir&;t t
18333s&@top_srcdir@&$ac_top_srcdir&;t t
18334s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18335s&@builddir@&$ac_builddir&;t t
18336s&@abs_builddir@&$ac_abs_builddir&;t t
18337s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18338s&@INSTALL@&$ac_INSTALL&;t t
18339s&@MKDIR_P@&$ac_MKDIR_P&;t t
18340$ac_datarootdir_hack
18341"
18342eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18343 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18344
18345test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18346 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18347 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18348 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18350which seems to be undefined. Please make sure it is defined" >&5
18351$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18352which seems to be undefined. Please make sure it is defined" >&2;}
18353
18354 rm -f "$ac_tmp/stdin"
18355 case $ac_file in
18356 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18357 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18358 esac \
18359 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18360 ;;
18361 :H)
18362 #
18363 # CONFIG_HEADER
18364 #
18365 if test x"$ac_file" != x-; then
18366 {
18367 $as_echo "/* $configure_input */" \
18368 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18369 } >"$ac_tmp/config.h" \
18370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18371 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18373$as_echo "$as_me: $ac_file is unchanged" >&6;}
18374 else
18375 rm -f "$ac_file"
18376 mv "$ac_tmp/config.h" "$ac_file" \
18377 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18378 fi
18379 else
18380 $as_echo "/* $configure_input */" \
18381 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18382 || as_fn_error $? "could not create -" "$LINENO" 5
18383 fi
18384# Compute "$ac_file"'s index in $config_headers.
18385_am_arg="$ac_file"
18386_am_stamp_count=1
18387for _am_header in $config_headers :; do
18388 case $_am_header in
18389 $_am_arg | $_am_arg:* )
18390 break ;;
18391 * )
18392 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18393 esac
18394done
18395echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18396$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18397 X"$_am_arg" : 'X\(//\)[^/]' \| \
18398 X"$_am_arg" : 'X\(//\)$' \| \
18399 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18400$as_echo X"$_am_arg" |
18401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18402 s//\1/
18403 q
18404 }
18405 /^X\(\/\/\)[^/].*/{
18406 s//\1/
18407 q
18408 }
18409 /^X\(\/\/\)$/{
18410 s//\1/
18411 q
18412 }
18413 /^X\(\/\).*/{
18414 s//\1/
18415 q
18416 }
18417 s/.*/./; q'`/stamp-h$_am_stamp_count
18418 ;;
18419
18420 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18421$as_echo "$as_me: executing $ac_file commands" >&6;}
18422 ;;
18423 esac
18424
18425
18426 case $ac_file$ac_mode in
18427 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18428 # Older Autoconf quotes --file arguments for eval, but not when files
18429 # are listed without --file. Let's play safe and only enable the eval
18430 # if we detect the quoting.
18431 case $CONFIG_FILES in
18432 *\'*) eval set x "$CONFIG_FILES" ;;
18433 *) set x $CONFIG_FILES ;;
18434 esac
18435 shift
18436 for mf
18437 do
18438 # Strip MF so we end up with the name of the file.
18439 mf=`echo "$mf" | sed -e 's/:.*$//'`
18440 # Check whether this is an Automake generated Makefile or not.
18441 # We used to match only the files named 'Makefile.in', but
18442 # some people rename them; so instead we look at the file content.
18443 # Grep'ing the first line is not enough: some people post-process
18444 # each Makefile.in and add a new line on top of each file to say so.
18445 # Grep'ing the whole file is not good either: AIX grep has a line
18446 # limit of 2048, but all sed's we know have understand at least 4000.
18447 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18448 dirpart=`$as_dirname -- "$mf" ||
18449$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18450 X"$mf" : 'X\(//\)[^/]' \| \
18451 X"$mf" : 'X\(//\)$' \| \
18452 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18453$as_echo X"$mf" |
18454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18455 s//\1/
18456 q
18457 }
18458 /^X\(\/\/\)[^/].*/{
18459 s//\1/
18460 q
18461 }
18462 /^X\(\/\/\)$/{
18463 s//\1/
18464 q
18465 }
18466 /^X\(\/\).*/{
18467 s//\1/
18468 q
18469 }
18470 s/.*/./; q'`
18471 else
18472 continue
18473 fi
18474 # Extract the definition of DEPDIR, am__include, and am__quote
18475 # from the Makefile without running 'make'.
18476 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18477 test -z "$DEPDIR" && continue
18478 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18479 test -z "$am__include" && continue
18480 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18481 # Find all dependency output files, they are included files with
18482 # $(DEPDIR) in their names. We invoke sed twice because it is the
18483 # simplest approach to changing $(DEPDIR) to its actual value in the
18484 # expansion.
18485 for file in `sed -n "
18486 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18487 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18488 # Make sure the directory exists.
18489 test -f "$dirpart/$file" && continue
18490 fdir=`$as_dirname -- "$file" ||
18491$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18492 X"$file" : 'X\(//\)[^/]' \| \
18493 X"$file" : 'X\(//\)$' \| \
18494 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18495$as_echo X"$file" |
18496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18497 s//\1/
18498 q
18499 }
18500 /^X\(\/\/\)[^/].*/{
18501 s//\1/
18502 q
18503 }
18504 /^X\(\/\/\)$/{
18505 s//\1/
18506 q
18507 }
18508 /^X\(\/\).*/{
18509 s//\1/
18510 q
18511 }
18512 s/.*/./; q'`
18513 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18514 # echo "creating $dirpart/$file"
18515 echo '# dummy' > "$dirpart/$file"
18516 done
18517 done
18518}
18519 ;;
18520 "libtool":C)
18521
18522 # See if we are running on zsh, and set the options which allow our
18523 # commands through without removal of \ escapes.
18524 if test -n "${ZSH_VERSION+set}" ; then
18525 setopt NO_GLOB_SUBST
18526 fi
18527
18528 cfgfile="${ofile}T"
18529 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18530 $RM "$cfgfile"
18531
18532 cat <<_LT_EOF >> "$cfgfile"
18533#! $SHELL
18534
18535# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18536# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18537# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18538# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18539#
18540# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18541# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18542# Written by Gordon Matzigkeit, 1996
18543#
18544# This file is part of GNU Libtool.
18545#
18546# GNU Libtool is free software; you can redistribute it and/or
18547# modify it under the terms of the GNU General Public License as
18548# published by the Free Software Foundation; either version 2 of
18549# the License, or (at your option) any later version.
18550#
18551# As a special exception to the GNU General Public License,
18552# if you distribute this file as part of a program or library that
18553# is built using GNU Libtool, you may include this file under the
18554# same distribution terms that you use for the rest of that program.
18555#
18556# GNU Libtool is distributed in the hope that it will be useful,
18557# but WITHOUT ANY WARRANTY; without even the implied warranty of
18558# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18559# GNU General Public License for more details.
18560#
18561# You should have received a copy of the GNU General Public License
18562# along with GNU Libtool; see the file COPYING. If not, a copy
18563# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18564# obtained by writing to the Free Software Foundation, Inc.,
18565# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18566
18567
18568# The names of the tagged configurations supported by this script.
18569available_tags="CXX "
18570
18571# ### BEGIN LIBTOOL CONFIG
18572
18573# Whether or not to build shared libraries.
18574build_libtool_libs=$enable_shared
18575
18576# Which release of libtool.m4 was used?
18577macro_version=$macro_version
18578macro_revision=$macro_revision
18579
18580# Whether or not to build static libraries.
18581build_old_libs=$enable_static
18582
18583# What type of objects to build.
18584pic_mode=$pic_mode
18585
18586# Whether or not to optimize for fast installation.
18587fast_install=$enable_fast_install
18588
18589# Shell to use when invoking shell scripts.
18590SHELL=$lt_SHELL
18591
18592# An echo program that protects backslashes.
18593ECHO=$lt_ECHO
18594
18595# The host system.
18596host_alias=$host_alias
18597host=$host
18598host_os=$host_os
18599
18600# The build system.
18601build_alias=$build_alias
18602build=$build
18603build_os=$build_os
18604
18605# A sed program that does not truncate output.
18606SED=$lt_SED
18607
18608# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18609Xsed="\$SED -e 1s/^X//"
18610
18611# A grep program that handles long lines.
18612GREP=$lt_GREP
18613
18614# An ERE matcher.
18615EGREP=$lt_EGREP
18616
18617# A literal string matcher.
18618FGREP=$lt_FGREP
18619
18620# A BSD- or MS-compatible name lister.
18621NM=$lt_NM
18622
18623# Whether we need soft or hard links.
18624LN_S=$lt_LN_S
18625
18626# What is the maximum length of a command?
18627max_cmd_len=$max_cmd_len
18628
18629# Object file suffix (normally "o").
18630objext=$ac_objext
18631
18632# Executable file suffix (normally "").
18633exeext=$exeext
18634
18635# whether the shell understands "unset".
18636lt_unset=$lt_unset
18637
18638# turn spaces into newlines.
18639SP2NL=$lt_lt_SP2NL
18640
18641# turn newlines into spaces.
18642NL2SP=$lt_lt_NL2SP
18643
18644# An object symbol dumper.
18645OBJDUMP=$lt_OBJDUMP
18646
18647# Method to check whether dependent libraries are shared objects.
18648deplibs_check_method=$lt_deplibs_check_method
18649
18650# Command to use when deplibs_check_method == "file_magic".
18651file_magic_cmd=$lt_file_magic_cmd
18652
18653# The archiver.
18654AR=$lt_AR
18655AR_FLAGS=$lt_AR_FLAGS
18656
18657# A symbol stripping program.
18658STRIP=$lt_STRIP
18659
18660# Commands used to install an old-style archive.
18661RANLIB=$lt_RANLIB
18662old_postinstall_cmds=$lt_old_postinstall_cmds
18663old_postuninstall_cmds=$lt_old_postuninstall_cmds
18664
18665# Whether to use a lock for old archive extraction.
18666lock_old_archive_extraction=$lock_old_archive_extraction
18667
18668# A C compiler.
18669LTCC=$lt_CC
18670
18671# LTCC compiler flags.
18672LTCFLAGS=$lt_CFLAGS
18673
18674# Take the output of nm and produce a listing of raw symbols and C names.
18675global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18676
18677# Transform the output of nm in a proper C declaration.
18678global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18679
18680# Transform the output of nm in a C name address pair.
18681global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18682
18683# Transform the output of nm in a C name address pair when lib prefix is needed.
18684global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18685
18686# The name of the directory that contains temporary libtool files.
18687objdir=$objdir
18688
18689# Used to examine libraries when file_magic_cmd begins with "file".
18690MAGIC_CMD=$MAGIC_CMD
18691
18692# Must we lock files when doing compilation?
18693need_locks=$lt_need_locks
18694
18695# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18696DSYMUTIL=$lt_DSYMUTIL
18697
18698# Tool to change global to local symbols on Mac OS X.
18699NMEDIT=$lt_NMEDIT
18700
18701# Tool to manipulate fat objects and archives on Mac OS X.
18702LIPO=$lt_LIPO
18703
18704# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18705OTOOL=$lt_OTOOL
18706
18707# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18708OTOOL64=$lt_OTOOL64
18709
18710# Old archive suffix (normally "a").
18711libext=$libext
18712
18713# Shared library suffix (normally ".so").
18714shrext_cmds=$lt_shrext_cmds
18715
18716# The commands to extract the exported symbol list from a shared archive.
18717extract_expsyms_cmds=$lt_extract_expsyms_cmds
18718
18719# Variables whose values should be saved in libtool wrapper scripts and
18720# restored at link time.
18721variables_saved_for_relink=$lt_variables_saved_for_relink
18722
18723# Do we need the "lib" prefix for modules?
18724need_lib_prefix=$need_lib_prefix
18725
18726# Do we need a version for libraries?
18727need_version=$need_version
18728
18729# Library versioning type.
18730version_type=$version_type
18731
18732# Shared library runtime path variable.
18733runpath_var=$runpath_var
18734
18735# Shared library path variable.
18736shlibpath_var=$shlibpath_var
18737
18738# Is shlibpath searched before the hard-coded library search path?
18739shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18740
18741# Format of library name prefix.
18742libname_spec=$lt_libname_spec
18743
18744# List of archive names. First name is the real one, the rest are links.
18745# The last name is the one that the linker finds with -lNAME
18746library_names_spec=$lt_library_names_spec
18747
18748# The coded name of the library, if different from the real name.
18749soname_spec=$lt_soname_spec
18750
18751# Permission mode override for installation of shared libraries.
18752install_override_mode=$lt_install_override_mode
18753
18754# Command to use after installation of a shared archive.
18755postinstall_cmds=$lt_postinstall_cmds
18756
18757# Command to use after uninstallation of a shared archive.
18758postuninstall_cmds=$lt_postuninstall_cmds
18759
18760# Commands used to finish a libtool library installation in a directory.
18761finish_cmds=$lt_finish_cmds
18762
18763# As "finish_cmds", except a single script fragment to be evaled but
18764# not shown.
18765finish_eval=$lt_finish_eval
18766
18767# Whether we should hardcode library paths into libraries.
18768hardcode_into_libs=$hardcode_into_libs
18769
18770# Compile-time system search path for libraries.
18771sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18772
18773# Run-time system search path for libraries.
18774sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18775
18776# Whether dlopen is supported.
18777dlopen_support=$enable_dlopen
18778
18779# Whether dlopen of programs is supported.
18780dlopen_self=$enable_dlopen_self
18781
18782# Whether dlopen of statically linked programs is supported.
18783dlopen_self_static=$enable_dlopen_self_static
18784
18785# Commands to strip libraries.
18786old_striplib=$lt_old_striplib
18787striplib=$lt_striplib
18788
18789
18790# The linker used to build libraries.
18791LD=$lt_LD
18792
18793# How to create reloadable object files.
18794reload_flag=$lt_reload_flag
18795reload_cmds=$lt_reload_cmds
18796
18797# Commands used to build an old-style archive.
18798old_archive_cmds=$lt_old_archive_cmds
18799
18800# A language specific compiler.
18801CC=$lt_compiler
18802
18803# Is the compiler the GNU compiler?
18804with_gcc=$GCC
18805
18806# Compiler flag to turn off builtin functions.
18807no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18808
18809# How to pass a linker flag through the compiler.
18810wl=$lt_lt_prog_compiler_wl
18811
18812# Additional compiler flags for building library objects.
18813pic_flag=$lt_lt_prog_compiler_pic
18814
18815# Compiler flag to prevent dynamic linking.
18816link_static_flag=$lt_lt_prog_compiler_static
18817
18818# Does compiler simultaneously support -c and -o options?
18819compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18820
18821# Whether or not to add -lc for building shared libraries.
18822build_libtool_need_lc=$archive_cmds_need_lc
18823
18824# Whether or not to disallow shared libs when runtime libs are static.
18825allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18826
18827# Compiler flag to allow reflexive dlopens.
18828export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18829
18830# Compiler flag to generate shared objects directly from archives.
18831whole_archive_flag_spec=$lt_whole_archive_flag_spec
18832
18833# Whether the compiler copes with passing no objects directly.
18834compiler_needs_object=$lt_compiler_needs_object
18835
18836# Create an old-style archive from a shared archive.
18837old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18838
18839# Create a temporary old-style archive to link instead of a shared archive.
18840old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18841
18842# Commands used to build a shared archive.
18843archive_cmds=$lt_archive_cmds
18844archive_expsym_cmds=$lt_archive_expsym_cmds
18845
18846# Commands used to build a loadable module if different from building
18847# a shared archive.
18848module_cmds=$lt_module_cmds
18849module_expsym_cmds=$lt_module_expsym_cmds
18850
18851# Whether we are building with GNU ld or not.
18852with_gnu_ld=$lt_with_gnu_ld
18853
18854# Flag that allows shared libraries with undefined symbols to be built.
18855allow_undefined_flag=$lt_allow_undefined_flag
18856
18857# Flag that enforces no undefined symbols.
18858no_undefined_flag=$lt_no_undefined_flag
18859
18860# Flag to hardcode \$libdir into a binary during linking.
18861# This must work even if \$libdir does not exist
18862hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18863
18864# If ld is used when linking, flag to hardcode \$libdir into a binary
18865# during linking. This must work even if \$libdir does not exist.
18866hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18867
18868# Whether we need a single "-rpath" flag with a separated argument.
18869hardcode_libdir_separator=$lt_hardcode_libdir_separator
18870
18871# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18872# DIR into the resulting binary.
18873hardcode_direct=$hardcode_direct
18874
18875# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18876# DIR into the resulting binary and the resulting library dependency is
18877# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18878# library is relocated.
18879hardcode_direct_absolute=$hardcode_direct_absolute
18880
18881# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18882# into the resulting binary.
18883hardcode_minus_L=$hardcode_minus_L
18884
18885# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18886# into the resulting binary.
18887hardcode_shlibpath_var=$hardcode_shlibpath_var
18888
18889# Set to "yes" if building a shared library automatically hardcodes DIR
18890# into the library and all subsequent libraries and executables linked
18891# against it.
18892hardcode_automatic=$hardcode_automatic
18893
18894# Set to yes if linker adds runtime paths of dependent libraries
18895# to runtime path list.
18896inherit_rpath=$inherit_rpath
18897
18898# Whether libtool must link a program against all its dependency libraries.
18899link_all_deplibs=$link_all_deplibs
18900
18901# Fix the shell variable \$srcfile for the compiler.
18902fix_srcfile_path=$lt_fix_srcfile_path
18903
18904# Set to "yes" if exported symbols are required.
18905always_export_symbols=$always_export_symbols
18906
18907# The commands to list exported symbols.
18908export_symbols_cmds=$lt_export_symbols_cmds
18909
18910# Symbols that should not be listed in the preloaded symbols.
18911exclude_expsyms=$lt_exclude_expsyms
18912
18913# Symbols that must always be exported.
18914include_expsyms=$lt_include_expsyms
18915
18916# Commands necessary for linking programs (against libraries) with templates.
18917prelink_cmds=$lt_prelink_cmds
18918
18919# Specify filename containing input files.
18920file_list_spec=$lt_file_list_spec
18921
18922# How to hardcode a shared library path into an executable.
18923hardcode_action=$hardcode_action
18924
18925# The directories searched by this compiler when creating a shared library.
18926compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18927
18928# Dependencies to place before and after the objects being linked to
18929# create a shared library.
18930predep_objects=$lt_predep_objects
18931postdep_objects=$lt_postdep_objects
18932predeps=$lt_predeps
18933postdeps=$lt_postdeps
18934
18935# The library search path used internally by the compiler when linking
18936# a shared library.
18937compiler_lib_search_path=$lt_compiler_lib_search_path
18938
18939# ### END LIBTOOL CONFIG
18940
18941_LT_EOF
18942
18943 case $host_os in
18944 aix3*)
18945 cat <<\_LT_EOF >> "$cfgfile"
18946# AIX sometimes has problems with the GCC collect2 program. For some
18947# reason, if we set the COLLECT_NAMES environment variable, the problems
18948# vanish in a puff of smoke.
18949if test "X${COLLECT_NAMES+set}" != Xset; then
18950 COLLECT_NAMES=
18951 export COLLECT_NAMES
18952fi
18953_LT_EOF
18954 ;;
18955 esac
18956
18957
18958ltmain="$ac_aux_dir/ltmain.sh"
18959
18960
18961 # We use sed instead of cat because bash on DJGPP gets confused if
18962 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18963 # text mode, it properly converts lines to CR/LF. This bash problem
18964 # is reportedly fixed, but why not run on old versions too?
18965 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18966 || (rm -f "$cfgfile"; exit 1)
18967
18968 case $xsi_shell in
18969 yes)
18970 cat << \_LT_EOF >> "$cfgfile"
18971
18972# func_dirname file append nondir_replacement
18973# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18974# otherwise set result to NONDIR_REPLACEMENT.
18975func_dirname ()
18976{
18977 case ${1} in
18978 */*) func_dirname_result="${1%/*}${2}" ;;
18979 * ) func_dirname_result="${3}" ;;
18980 esac
18981}
18982
18983# func_basename file
18984func_basename ()
18985{
18986 func_basename_result="${1##*/}"
18987}
18988
18989# func_dirname_and_basename file append nondir_replacement
18990# perform func_basename and func_dirname in a single function
18991# call:
18992# dirname: Compute the dirname of FILE. If nonempty,
18993# add APPEND to the result, otherwise set result
18994# to NONDIR_REPLACEMENT.
18995# value returned in "$func_dirname_result"
18996# basename: Compute filename of FILE.
18997# value retuned in "$func_basename_result"
18998# Implementation must be kept synchronized with func_dirname
18999# and func_basename. For efficiency, we do not delegate to
19000# those functions but instead duplicate the functionality here.
19001func_dirname_and_basename ()
19002{
19003 case ${1} in
19004 */*) func_dirname_result="${1%/*}${2}" ;;
19005 * ) func_dirname_result="${3}" ;;
19006 esac
19007 func_basename_result="${1##*/}"
19008}
19009
19010# func_stripname prefix suffix name
19011# strip PREFIX and SUFFIX off of NAME.
19012# PREFIX and SUFFIX must not contain globbing or regex special
19013# characters, hashes, percent signs, but SUFFIX may contain a leading
19014# dot (in which case that matches only a dot).
19015func_stripname ()
19016{
19017 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19018 # positional parameters, so assign one to ordinary parameter first.
19019 func_stripname_result=${3}
19020 func_stripname_result=${func_stripname_result#"${1}"}
19021 func_stripname_result=${func_stripname_result%"${2}"}
19022}
19023
19024# func_opt_split
19025func_opt_split ()
19026{
19027 func_opt_split_opt=${1%%=*}
19028 func_opt_split_arg=${1#*=}
19029}
19030
19031# func_lo2o object
19032func_lo2o ()
19033{
19034 case ${1} in
19035 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19036 *) func_lo2o_result=${1} ;;
19037 esac
19038}
19039
19040# func_xform libobj-or-source
19041func_xform ()
19042{
19043 func_xform_result=${1%.*}.lo
19044}
19045
19046# func_arith arithmetic-term...
19047func_arith ()
19048{
19049 func_arith_result=$(( $* ))
19050}
19051
19052# func_len string
19053# STRING may not start with a hyphen.
19054func_len ()
19055{
19056 func_len_result=${#1}
19057}
19058
19059_LT_EOF
19060 ;;
19061 *) # Bourne compatible functions.
19062 cat << \_LT_EOF >> "$cfgfile"
19063
19064# func_dirname file append nondir_replacement
19065# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19066# otherwise set result to NONDIR_REPLACEMENT.
19067func_dirname ()
19068{
19069 # Extract subdirectory from the argument.
19070 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19071 if test "X$func_dirname_result" = "X${1}"; then
19072 func_dirname_result="${3}"
19073 else
19074 func_dirname_result="$func_dirname_result${2}"
19075 fi
19076}
19077
19078# func_basename file
19079func_basename ()
19080{
19081 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19082}
19083
19084
19085# func_stripname prefix suffix name
19086# strip PREFIX and SUFFIX off of NAME.
19087# PREFIX and SUFFIX must not contain globbing or regex special
19088# characters, hashes, percent signs, but SUFFIX may contain a leading
19089# dot (in which case that matches only a dot).
19090# func_strip_suffix prefix name
19091func_stripname ()
19092{
19093 case ${2} in
19094 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19095 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19096 esac
19097}
19098
19099# sed scripts:
19100my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19101my_sed_long_arg='1s/^-[^=]*=//'
19102
19103# func_opt_split
19104func_opt_split ()
19105{
19106 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19107 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19108}
19109
19110# func_lo2o object
19111func_lo2o ()
19112{
19113 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19114}
19115
19116# func_xform libobj-or-source
19117func_xform ()
19118{
19119 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19120}
19121
19122# func_arith arithmetic-term...
19123func_arith ()
19124{
19125 func_arith_result=`expr "$@"`
19126}
19127
19128# func_len string
19129# STRING may not start with a hyphen.
19130func_len ()
19131{
19132 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19133}
19134
19135_LT_EOF
19136esac
19137
19138case $lt_shell_append in
19139 yes)
19140 cat << \_LT_EOF >> "$cfgfile"
19141
19142# func_append var value
19143# Append VALUE to the end of shell variable VAR.
19144func_append ()
19145{
19146 eval "$1+=\$2"
19147}
19148_LT_EOF
19149 ;;
19150 *)
19151 cat << \_LT_EOF >> "$cfgfile"
19152
19153# func_append var value
19154# Append VALUE to the end of shell variable VAR.
19155func_append ()
19156{
19157 eval "$1=\$$1\$2"
19158}
19159
19160_LT_EOF
19161 ;;
19162 esac
19163
19164
19165 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19166 || (rm -f "$cfgfile"; exit 1)
19167
19168 mv -f "$cfgfile" "$ofile" ||
19169 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19170 chmod +x "$ofile"
19171
19172
19173 cat <<_LT_EOF >> "$ofile"
19174
19175# ### BEGIN LIBTOOL TAG CONFIG: CXX
19176
19177# The linker used to build libraries.
19178LD=$lt_LD_CXX
19179
19180# How to create reloadable object files.
19181reload_flag=$lt_reload_flag_CXX
19182reload_cmds=$lt_reload_cmds_CXX
19183
19184# Commands used to build an old-style archive.
19185old_archive_cmds=$lt_old_archive_cmds_CXX
19186
19187# A language specific compiler.
19188CC=$lt_compiler_CXX
19189
19190# Is the compiler the GNU compiler?
19191with_gcc=$GCC_CXX
19192
19193# Compiler flag to turn off builtin functions.
19194no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19195
19196# How to pass a linker flag through the compiler.
19197wl=$lt_lt_prog_compiler_wl_CXX
19198
19199# Additional compiler flags for building library objects.
19200pic_flag=$lt_lt_prog_compiler_pic_CXX
19201
19202# Compiler flag to prevent dynamic linking.
19203link_static_flag=$lt_lt_prog_compiler_static_CXX
19204
19205# Does compiler simultaneously support -c and -o options?
19206compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19207
19208# Whether or not to add -lc for building shared libraries.
19209build_libtool_need_lc=$archive_cmds_need_lc_CXX
19210
19211# Whether or not to disallow shared libs when runtime libs are static.
19212allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19213
19214# Compiler flag to allow reflexive dlopens.
19215export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19216
19217# Compiler flag to generate shared objects directly from archives.
19218whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19219
19220# Whether the compiler copes with passing no objects directly.
19221compiler_needs_object=$lt_compiler_needs_object_CXX
19222
19223# Create an old-style archive from a shared archive.
19224old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19225
19226# Create a temporary old-style archive to link instead of a shared archive.
19227old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19228
19229# Commands used to build a shared archive.
19230archive_cmds=$lt_archive_cmds_CXX
19231archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19232
19233# Commands used to build a loadable module if different from building
19234# a shared archive.
19235module_cmds=$lt_module_cmds_CXX
19236module_expsym_cmds=$lt_module_expsym_cmds_CXX
19237
19238# Whether we are building with GNU ld or not.
19239with_gnu_ld=$lt_with_gnu_ld_CXX
19240
19241# Flag that allows shared libraries with undefined symbols to be built.
19242allow_undefined_flag=$lt_allow_undefined_flag_CXX
19243
19244# Flag that enforces no undefined symbols.
19245no_undefined_flag=$lt_no_undefined_flag_CXX
19246
19247# Flag to hardcode \$libdir into a binary during linking.
19248# This must work even if \$libdir does not exist
19249hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19250
19251# If ld is used when linking, flag to hardcode \$libdir into a binary
19252# during linking. This must work even if \$libdir does not exist.
19253hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19254
19255# Whether we need a single "-rpath" flag with a separated argument.
19256hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19257
19258# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19259# DIR into the resulting binary.
19260hardcode_direct=$hardcode_direct_CXX
19261
19262# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19263# DIR into the resulting binary and the resulting library dependency is
19264# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19265# library is relocated.
19266hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19267
19268# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19269# into the resulting binary.
19270hardcode_minus_L=$hardcode_minus_L_CXX
19271
19272# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19273# into the resulting binary.
19274hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19275
19276# Set to "yes" if building a shared library automatically hardcodes DIR
19277# into the library and all subsequent libraries and executables linked
19278# against it.
19279hardcode_automatic=$hardcode_automatic_CXX
19280
19281# Set to yes if linker adds runtime paths of dependent libraries
19282# to runtime path list.
19283inherit_rpath=$inherit_rpath_CXX
19284
19285# Whether libtool must link a program against all its dependency libraries.
19286link_all_deplibs=$link_all_deplibs_CXX
19287
19288# Fix the shell variable \$srcfile for the compiler.
19289fix_srcfile_path=$lt_fix_srcfile_path_CXX
19290
19291# Set to "yes" if exported symbols are required.
19292always_export_symbols=$always_export_symbols_CXX
19293
19294# The commands to list exported symbols.
19295export_symbols_cmds=$lt_export_symbols_cmds_CXX
19296
19297# Symbols that should not be listed in the preloaded symbols.
19298exclude_expsyms=$lt_exclude_expsyms_CXX
19299
19300# Symbols that must always be exported.
19301include_expsyms=$lt_include_expsyms_CXX
19302
19303# Commands necessary for linking programs (against libraries) with templates.
19304prelink_cmds=$lt_prelink_cmds_CXX
19305
19306# Specify filename containing input files.
19307file_list_spec=$lt_file_list_spec_CXX
19308
19309# How to hardcode a shared library path into an executable.
19310hardcode_action=$hardcode_action_CXX
19311
19312# The directories searched by this compiler when creating a shared library.
19313compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19314
19315# Dependencies to place before and after the objects being linked to
19316# create a shared library.
19317predep_objects=$lt_predep_objects_CXX
19318postdep_objects=$lt_postdep_objects_CXX
19319predeps=$lt_predeps_CXX
19320postdeps=$lt_postdeps_CXX
19321
19322# The library search path used internally by the compiler when linking
19323# a shared library.
19324compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19325
19326# ### END LIBTOOL TAG CONFIG: CXX
19327_LT_EOF
19328
19329 ;;
19330
19331 esac
19332done # for ac_tag
19333
19334
19335as_fn_exit 0
19336_ACEOF
19337ac_clean_files=$ac_clean_files_save
19338
19339test $ac_write_fail = 0 ||
19340 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19341
19342
19343# configure is writing to config.log, and then calls config.status.
19344# config.status does its own redirection, appending to config.log.
19345# Unfortunately, on DOS this fails, as config.log is still kept open
19346# by configure, so config.status won't be able to write to it; its
19347# output is simply discarded. So we exec the FD to /dev/null,
19348# effectively closing config.log, so it can be properly (re)opened and
19349# appended to by config.status. When coming back to configure, we
19350# need to make the FD available again.
19351if test "$no_create" != yes; then
19352 ac_cs_success=:
19353 ac_config_status_args=
19354 test "$silent" = yes &&
19355 ac_config_status_args="$ac_config_status_args --quiet"
19356 exec 5>/dev/null
19357 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19358 exec 5>>config.log
19359 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19360 # would make configure fail if this is the last instruction.
19361 $ac_cs_success || as_fn_exit 1
19362fi
19363
19364#
19365# CONFIG_SUBDIRS section.
19366#
19367if test "$no_recursion" != yes; then
19368
19369 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19370 # so they do not pile up.
19371 ac_sub_configure_args=
19372 ac_prev=
19373 eval "set x $ac_configure_args"
19374 shift
19375 for ac_arg
19376 do
19377 if test -n "$ac_prev"; then
19378 ac_prev=
19379 continue
19380 fi
19381 case $ac_arg in
19382 -cache-file | --cache-file | --cache-fil | --cache-fi \
19383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19384 ac_prev=cache_file ;;
19385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19387 | --c=*)
19388 ;;
19389 --config-cache | -C)
19390 ;;
19391 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19392 ac_prev=srcdir ;;
19393 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19394 ;;
19395 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19396 ac_prev=prefix ;;
19397 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19398 ;;
19399 --disable-option-checking)
19400 ;;
19401 *)
19402 case $ac_arg in
19403 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19404 esac
19405 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19406 esac
19407 done
19408
19409 # Always prepend --prefix to ensure using the same prefix
19410 # in subdir configurations.
19411 ac_arg="--prefix=$prefix"
19412 case $ac_arg in
19413 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19414 esac
19415 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19416
19417 # Pass --silent
19418 if test "$silent" = yes; then
19419 ac_sub_configure_args="--silent $ac_sub_configure_args"
19420 fi
19421
19422 # Always prepend --disable-option-checking to silence warnings, since
19423 # different subdirs can have different --enable and --with options.
19424 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19425
19426 ac_popdir=`pwd`
19427 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19428
19429 # Do not complain, so a configure script can configure whichever
19430 # parts of a large source tree are present.
19431 test -d "$srcdir/$ac_dir" || continue
19432
19433 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19434 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19435 $as_echo "$ac_msg" >&6
19436 as_dir="$ac_dir"; as_fn_mkdir_p
19437 ac_builddir=.
19438
19439case "$ac_dir" in
19440.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19441*)
19442 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19443 # A ".." for each directory in $ac_dir_suffix.
19444 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19445 case $ac_top_builddir_sub in
19446 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19447 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19448 esac ;;
19449esac
19450ac_abs_top_builddir=$ac_pwd
19451ac_abs_builddir=$ac_pwd$ac_dir_suffix
19452# for backward compatibility:
19453ac_top_builddir=$ac_top_build_prefix
19454
19455case $srcdir in
19456 .) # We are building in place.
19457 ac_srcdir=.
19458 ac_top_srcdir=$ac_top_builddir_sub
19459 ac_abs_top_srcdir=$ac_pwd ;;
19460 [\\/]* | ?:[\\/]* ) # Absolute name.
19461 ac_srcdir=$srcdir$ac_dir_suffix;
19462 ac_top_srcdir=$srcdir
19463 ac_abs_top_srcdir=$srcdir ;;
19464 *) # Relative name.
19465 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19466 ac_top_srcdir=$ac_top_build_prefix$srcdir
19467 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19468esac
19469ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19470
19471
19472 cd "$ac_dir"
19473
19474 # Check for guested configure; otherwise get Cygnus style configure.
19475 if test -f "$ac_srcdir/configure.gnu"; then
19476 ac_sub_configure=$ac_srcdir/configure.gnu
19477 elif test -f "$ac_srcdir/configure"; then
19478 ac_sub_configure=$ac_srcdir/configure
19479 elif test -f "$ac_srcdir/configure.in"; then
19480 # This should be Cygnus configure.
19481 ac_sub_configure=$ac_aux_dir/configure
19482 else
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19484$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19485 ac_sub_configure=
19486 fi
19487
19488 # The recursion is here.
19489 if test -n "$ac_sub_configure"; then
19490 # Make the cache file name correct relative to the subdirectory.
19491 case $cache_file in
19492 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19493 *) # Relative name.
19494 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19495 esac
19496
19497 { $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
19498$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19499 # The eval makes quoting arguments work.
19500 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19501 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19502 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19503 fi
19504
19505 cd "$ac_popdir"
19506 done
19507fi
19508if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19510$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19511fi
19512
19513