]> git.ipfire.org Git - thirdparty/gcc.git/blame - libhsail-rt/configure
Brig front-end
[thirdparty/gcc.git] / libhsail-rt / configure
CommitLineData
5fd1486c
PJ
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for phsa HSAIL runtime library 1.0.
4#
5# Report bugs to <pekka.jaaskelainen@parmance.com>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101IFS=$as_save_IFS
102
103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
175 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
176 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 PATH=/empty FPATH=/empty; export PATH FPATH
180 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
181 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
182test \$(( 1 + 1 )) = 2 || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185else
186 as_have_required=no
187fi
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192as_found=false
193for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194do
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
199 /*)
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
208fi
209fi
210 done;;
211 esac
212 as_found=false
213done
214$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217fi; }
218IFS=$as_save_IFS
219
220
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and
240$0: pekka.jaaskelainen@parmance.com about your system,
241$0: including any error possibly output before this
242$0: message. Then install a modern shell, or manually run
243$0: the script under such a shell if you do have one."
244 fi
245 exit 1
246fi
247fi
248fi
249SHELL=${CONFIG_SHELL-/bin/sh}
250export SHELL
251# Unset more variables known to interfere with behavior of common tools.
252CLICOLOR_FORCE= GREP_OPTIONS=
253unset CLICOLOR_FORCE GREP_OPTIONS
254
255## --------------------- ##
256## M4sh Shell Functions. ##
257## --------------------- ##
258# as_fn_unset VAR
259# ---------------
260# Portably unset VAR.
261as_fn_unset ()
262{
263 { eval $1=; unset $1;}
264}
265as_unset=as_fn_unset
266
267# as_fn_set_status STATUS
268# -----------------------
269# Set $? to STATUS, without forking.
270as_fn_set_status ()
271{
272 return $1
273} # as_fn_set_status
274
275# as_fn_exit STATUS
276# -----------------
277# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278as_fn_exit ()
279{
280 set +e
281 as_fn_set_status $1
282 exit $1
283} # as_fn_exit
284
285# as_fn_mkdir_p
286# -------------
287# Create "$as_dir" as a directory, including parents if necessary.
288as_fn_mkdir_p ()
289{
290
291 case $as_dir in #(
292 -*) as_dir=./$as_dir;;
293 esac
294 test -d "$as_dir" || eval $as_mkdir_p || {
295 as_dirs=
296 while :; do
297 case $as_dir in #(
298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
299 *) as_qdir=$as_dir;;
300 esac
301 as_dirs="'$as_qdir' $as_dirs"
302 as_dir=`$as_dirname -- "$as_dir" ||
303$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304 X"$as_dir" : 'X\(//\)[^/]' \| \
305 X"$as_dir" : 'X\(//\)$' \| \
306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307$as_echo X"$as_dir" |
308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
309 s//\1/
310 q
311 }
312 /^X\(\/\/\)[^/].*/{
313 s//\1/
314 q
315 }
316 /^X\(\/\/\)$/{
317 s//\1/
318 q
319 }
320 /^X\(\/\).*/{
321 s//\1/
322 q
323 }
324 s/.*/./; q'`
325 test -d "$as_dir" && break
326 done
327 test -z "$as_dirs" || eval "mkdir $as_dirs"
328 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329
330
331} # as_fn_mkdir_p
332# as_fn_append VAR VALUE
333# ----------------------
334# Append the text in VALUE to the end of the definition contained in VAR. Take
335# advantage of any shell optimizations that allow amortized linear growth over
336# repeated appends, instead of the typical quadratic growth present in naive
337# implementations.
338if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
339 eval 'as_fn_append ()
340 {
341 eval $1+=\$2
342 }'
343else
344 as_fn_append ()
345 {
346 eval $1=\$$1\$2
347 }
348fi # as_fn_append
349
350# as_fn_arith ARG...
351# ------------------
352# Perform arithmetic evaluation on the ARGs, and store the result in the
353# global $as_val. Take advantage of shells that can avoid forks. The arguments
354# must be portable across $(()) and expr.
355if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356 eval 'as_fn_arith ()
357 {
358 as_val=$(( $* ))
359 }'
360else
361 as_fn_arith ()
362 {
363 as_val=`expr "$@" || test $? -eq 1`
364 }
365fi # as_fn_arith
366
367
368# as_fn_error ERROR [LINENO LOG_FD]
369# ---------------------------------
370# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372# script with status $?, using 1 if that was 0.
373as_fn_error ()
374{
375 as_status=$?; test $as_status -eq 0 && as_status=1
376 if test "$3"; then
377 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
379 fi
380 $as_echo "$as_me: error: $1" >&2
381 as_fn_exit $as_status
382} # as_fn_error
383
384if expr a : '\(a\)' >/dev/null 2>&1 &&
385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
386 as_expr=expr
387else
388 as_expr=false
389fi
390
391if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 as_basename=basename
393else
394 as_basename=false
395fi
396
397if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_dirname=dirname
399else
400 as_dirname=false
401fi
402
403as_me=`$as_basename -- "$0" ||
404$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405 X"$0" : 'X\(//\)$' \| \
406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407$as_echo X/"$0" |
408 sed '/^.*\/\([^/][^/]*\)\/*$/{
409 s//\1/
410 q
411 }
412 /^X\/\(\/\/\)$/{
413 s//\1/
414 q
415 }
416 /^X\/\(\/\).*/{
417 s//\1/
418 q
419 }
420 s/.*/./; q'`
421
422# Avoid depending upon Character Ranges.
423as_cr_letters='abcdefghijklmnopqrstuvwxyz'
424as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425as_cr_Letters=$as_cr_letters$as_cr_LETTERS
426as_cr_digits='0123456789'
427as_cr_alnum=$as_cr_Letters$as_cr_digits
428
429
430 as_lineno_1=$LINENO as_lineno_1a=$LINENO
431 as_lineno_2=$LINENO as_lineno_2a=$LINENO
432 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
434 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 sed -n '
436 p
437 /[$]LINENO/=
438 ' <$as_myself |
439 sed '
440 s/[$]LINENO.*/&-/
441 t lineno
442 b
443 :lineno
444 N
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 t loop
448 s/-\n.*//
449 ' >$as_me.lineno &&
450 chmod +x "$as_me.lineno" ||
451 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
459}
460
461ECHO_C= ECHO_N= ECHO_T=
462case `echo -n x` in #(((((
463-n*)
464 case `echo 'xy\c'` in
465 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 xy) ECHO_C='\c';;
467 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 ECHO_T=' ';;
469 esac;;
470*)
471 ECHO_N='-n';;
472esac
473
474rm -f conf$$ conf$$.exe conf$$.file
475if test -d conf$$.dir; then
476 rm -f conf$$.dir/conf$$.file
477else
478 rm -f conf$$.dir
479 mkdir conf$$.dir 2>/dev/null
480fi
481if (echo >conf$$.file) 2>/dev/null; then
482 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s='ln -s'
484 # ... but there are two gotchas:
485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487 # In both cases, we have to default to `cp -p'.
488 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 as_ln_s='cp -p'
490 elif ln conf$$.file conf$$ 2>/dev/null; then
491 as_ln_s=ln
492 else
493 as_ln_s='cp -p'
494 fi
495else
496 as_ln_s='cp -p'
497fi
498rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499rmdir conf$$.dir 2>/dev/null
500
501if mkdir -p . 2>/dev/null; then
502 as_mkdir_p='mkdir -p "$as_dir"'
503else
504 test -d ./-p && rmdir ./-p
505 as_mkdir_p=false
506fi
507
508if test -x / >/dev/null 2>&1; then
509 as_test_x='test -x'
510else
511 if ls -dL / >/dev/null 2>&1; then
512 as_ls_L_option=L
513 else
514 as_ls_L_option=
515 fi
516 as_test_x='
517 eval sh -c '\''
518 if test -d "$1"; then
519 test -d "$1/.";
520 else
521 case $1 in #(
522 -*)set "./$1";;
523 esac;
524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525 ???[sx]*):;;*)false;;esac;fi
526 '\'' sh
527 '
528fi
529as_executable_p=$as_test_x
530
531# Sed expression to map a string onto a valid CPP name.
532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534# Sed expression to map a string onto a valid variable name.
535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537SHELL=${CONFIG_SHELL-/bin/sh}
538
539
540exec 7<&0 </dev/null 6>&1
541
542# Name of the host.
543# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544# so uname gets run too.
545ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547#
548# Initializations.
549#
550ac_default_prefix=/usr/local
551ac_clean_files=
552ac_config_libobj_dir=.
553LIBOBJS=
554cross_compiling=no
555subdirs=
556MFLAGS=
557MAKEFLAGS=
558
559# Identity of this package.
560PACKAGE_NAME='phsa HSAIL runtime library'
561PACKAGE_TARNAME='phsa-hsail-runtime-library'
562PACKAGE_VERSION='1.0'
563PACKAGE_STRING='phsa HSAIL runtime library 1.0'
564PACKAGE_BUGREPORT='pekka.jaaskelainen@parmance.com'
565PACKAGE_URL=''
566
567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#ifdef HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#ifdef HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#ifdef STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# ifdef HAVE_STDLIB_H
581# include <stdlib.h>
582# endif
583#endif
584#ifdef HAVE_STRING_H
585# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586# include <memory.h>
587# endif
588# include <string.h>
589#endif
590#ifdef HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#ifdef HAVE_INTTYPES_H
594# include <inttypes.h>
595#endif
596#ifdef HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#ifdef HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
602
603ac_subst_vars='am__EXEEXT_FALSE
604am__EXEEXT_TRUE
605LTLIBOBJS
606LIBOBJS
607toolexeclibdir
608toolexecdir
609CXXCPP
610CPP
611OTOOL64
612OTOOL
613LIPO
614NMEDIT
615DSYMUTIL
616RANLIB
617AR
618OBJDUMP
619LN_S
620NM
621ac_ct_DUMPBIN
622DUMPBIN
623LD
624FGREP
625EGREP
626GREP
627SED
628LIBTOOL
629MAC_LINKER_SCRIPT_FALSE
630MAC_LINKER_SCRIPT_TRUE
631LINUX_LINKER_SCRIPT_FALSE
632LINUX_LINKER_SCRIPT_TRUE
633config_dir
634am__fastdepCXX_FALSE
635am__fastdepCXX_TRUE
636CXXDEPMODE
637ac_ct_CXX
638CXXFLAGS
639CXX
640am__fastdepCC_FALSE
641am__fastdepCC_TRUE
642CCDEPMODE
643AMDEPBACKSLASH
644AMDEP_FALSE
645AMDEP_TRUE
646am__quote
647am__include
648DEPDIR
649OBJEXT
650EXEEXT
651ac_ct_CC
652CPPFLAGS
653LDFLAGS
654CFLAGS
655CC
656MAINT
657MAINTAINER_MODE_FALSE
658MAINTAINER_MODE_TRUE
659am__untar
660am__tar
661AMTAR
662am__leading_dot
663SET_MAKE
664AWK
665mkdir_p
666MKDIR_P
667INSTALL_STRIP_PROGRAM
668STRIP
669install_sh
670MAKEINFO
671AUTOHEADER
672AUTOMAKE
673AUTOCONF
674ACLOCAL
675VERSION
676PACKAGE
677CYGPATH_W
678am__isrc
679INSTALL_DATA
680INSTALL_SCRIPT
681INSTALL_PROGRAM
682target_os
683target_vendor
684target_cpu
685target
686host_os
687host_vendor
688host_cpu
689host
690build_os
691build_vendor
692build_cpu
693build
694target_alias
695host_alias
696build_alias
697LIBS
698ECHO_T
699ECHO_N
700ECHO_C
701DEFS
702mandir
703localedir
704libdir
705psdir
706pdfdir
707dvidir
708htmldir
709infodir
710docdir
711oldincludedir
712includedir
713localstatedir
714sharedstatedir
715sysconfdir
716datadir
717datarootdir
718libexecdir
719sbindir
720bindir
721program_transform_name
722prefix
723exec_prefix
724PACKAGE_URL
725PACKAGE_BUGREPORT
726PACKAGE_STRING
727PACKAGE_VERSION
728PACKAGE_TARNAME
729PACKAGE_NAME
730PATH_SEPARATOR
731SHELL'
732ac_subst_files=''
733ac_user_opts='
734enable_option_checking
735enable_maintainer_mode
736enable_dependency_tracking
737enable_version_specific_runtime_libs
738enable_shared
739enable_static
740with_pic
741enable_fast_install
742with_gnu_ld
743enable_libtool_lock
744'
745 ac_precious_vars='build_alias
746host_alias
747target_alias
748CC
749CFLAGS
750LDFLAGS
751LIBS
752CPPFLAGS
753CXX
754CXXFLAGS
755CCC
756CPP
757CXXCPP'
758
759
760# Initialize some variables set by options.
761ac_init_help=
762ac_init_version=false
763ac_unrecognized_opts=
764ac_unrecognized_sep=
765# The variables have the same names as the options, with
766# dashes changed to underlines.
767cache_file=/dev/null
768exec_prefix=NONE
769no_create=
770no_recursion=
771prefix=NONE
772program_prefix=NONE
773program_suffix=NONE
774program_transform_name=s,x,x,
775silent=
776site=
777srcdir=
778verbose=
779x_includes=NONE
780x_libraries=NONE
781
782# Installation directory options.
783# These are left unexpanded so users can "make install exec_prefix=/foo"
784# and all the variables that are supposed to be based on exec_prefix
785# by default will actually change.
786# Use braces instead of parens because sh, perl, etc. also accept them.
787# (The list follows the same order as the GNU Coding Standards.)
788bindir='${exec_prefix}/bin'
789sbindir='${exec_prefix}/sbin'
790libexecdir='${exec_prefix}/libexec'
791datarootdir='${prefix}/share'
792datadir='${datarootdir}'
793sysconfdir='${prefix}/etc'
794sharedstatedir='${prefix}/com'
795localstatedir='${prefix}/var'
796includedir='${prefix}/include'
797oldincludedir='/usr/include'
798docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
799infodir='${datarootdir}/info'
800htmldir='${docdir}'
801dvidir='${docdir}'
802pdfdir='${docdir}'
803psdir='${docdir}'
804libdir='${exec_prefix}/lib'
805localedir='${datarootdir}/locale'
806mandir='${datarootdir}/man'
807
808ac_prev=
809ac_dashdash=
810for ac_option
811do
812 # If the previous option needs an argument, assign it.
813 if test -n "$ac_prev"; then
814 eval $ac_prev=\$ac_option
815 ac_prev=
816 continue
817 fi
818
819 case $ac_option in
820 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821 *) ac_optarg=yes ;;
822 esac
823
824 # Accept the important Cygnus configure options, so we can diagnose typos.
825
826 case $ac_dashdash$ac_option in
827 --)
828 ac_dashdash=yes ;;
829
830 -bindir | --bindir | --bindi | --bind | --bin | --bi)
831 ac_prev=bindir ;;
832 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833 bindir=$ac_optarg ;;
834
835 -build | --build | --buil | --bui | --bu)
836 ac_prev=build_alias ;;
837 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
838 build_alias=$ac_optarg ;;
839
840 -cache-file | --cache-file | --cache-fil | --cache-fi \
841 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
842 ac_prev=cache_file ;;
843 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
844 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
845 cache_file=$ac_optarg ;;
846
847 --config-cache | -C)
848 cache_file=config.cache ;;
849
850 -datadir | --datadir | --datadi | --datad)
851 ac_prev=datadir ;;
852 -datadir=* | --datadir=* | --datadi=* | --datad=*)
853 datadir=$ac_optarg ;;
854
855 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
856 | --dataroo | --dataro | --datar)
857 ac_prev=datarootdir ;;
858 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
859 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
860 datarootdir=$ac_optarg ;;
861
862 -disable-* | --disable-*)
863 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866 as_fn_error "invalid feature name: $ac_useropt"
867 ac_useropt_orig=$ac_useropt
868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869 case $ac_user_opts in
870 *"
871"enable_$ac_useropt"
872"*) ;;
873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874 ac_unrecognized_sep=', ';;
875 esac
876 eval enable_$ac_useropt=no ;;
877
878 -docdir | --docdir | --docdi | --doc | --do)
879 ac_prev=docdir ;;
880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881 docdir=$ac_optarg ;;
882
883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884 ac_prev=dvidir ;;
885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886 dvidir=$ac_optarg ;;
887
888 -enable-* | --enable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897"enable_$ac_useropt"
898"*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=\$ac_optarg ;;
903
904 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906 | --exec | --exe | --ex)
907 ac_prev=exec_prefix ;;
908 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910 | --exec=* | --exe=* | --ex=*)
911 exec_prefix=$ac_optarg ;;
912
913 -gas | --gas | --ga | --g)
914 # Obsolete; use --with-gas.
915 with_gas=yes ;;
916
917 -help | --help | --hel | --he | -h)
918 ac_init_help=long ;;
919 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920 ac_init_help=recursive ;;
921 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922 ac_init_help=short ;;
923
924 -host | --host | --hos | --ho)
925 ac_prev=host_alias ;;
926 -host=* | --host=* | --hos=* | --ho=*)
927 host_alias=$ac_optarg ;;
928
929 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930 ac_prev=htmldir ;;
931 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932 | --ht=*)
933 htmldir=$ac_optarg ;;
934
935 -includedir | --includedir | --includedi | --included | --include \
936 | --includ | --inclu | --incl | --inc)
937 ac_prev=includedir ;;
938 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939 | --includ=* | --inclu=* | --incl=* | --inc=*)
940 includedir=$ac_optarg ;;
941
942 -infodir | --infodir | --infodi | --infod | --info | --inf)
943 ac_prev=infodir ;;
944 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945 infodir=$ac_optarg ;;
946
947 -libdir | --libdir | --libdi | --libd)
948 ac_prev=libdir ;;
949 -libdir=* | --libdir=* | --libdi=* | --libd=*)
950 libdir=$ac_optarg ;;
951
952 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953 | --libexe | --libex | --libe)
954 ac_prev=libexecdir ;;
955 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956 | --libexe=* | --libex=* | --libe=*)
957 libexecdir=$ac_optarg ;;
958
959 -localedir | --localedir | --localedi | --localed | --locale)
960 ac_prev=localedir ;;
961 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962 localedir=$ac_optarg ;;
963
964 -localstatedir | --localstatedir | --localstatedi | --localstated \
965 | --localstate | --localstat | --localsta | --localst | --locals)
966 ac_prev=localstatedir ;;
967 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969 localstatedir=$ac_optarg ;;
970
971 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972 ac_prev=mandir ;;
973 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974 mandir=$ac_optarg ;;
975
976 -nfp | --nfp | --nf)
977 # Obsolete; use --without-fp.
978 with_fp=no ;;
979
980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981 | --no-cr | --no-c | -n)
982 no_create=yes ;;
983
984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986 no_recursion=yes ;;
987
988 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990 | --oldin | --oldi | --old | --ol | --o)
991 ac_prev=oldincludedir ;;
992 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995 oldincludedir=$ac_optarg ;;
996
997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998 ac_prev=prefix ;;
999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 prefix=$ac_optarg ;;
1001
1002 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003 | --program-pre | --program-pr | --program-p)
1004 ac_prev=program_prefix ;;
1005 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007 program_prefix=$ac_optarg ;;
1008
1009 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010 | --program-suf | --program-su | --program-s)
1011 ac_prev=program_suffix ;;
1012 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014 program_suffix=$ac_optarg ;;
1015
1016 -program-transform-name | --program-transform-name \
1017 | --program-transform-nam | --program-transform-na \
1018 | --program-transform-n | --program-transform- \
1019 | --program-transform | --program-transfor \
1020 | --program-transfo | --program-transf \
1021 | --program-trans | --program-tran \
1022 | --progr-tra | --program-tr | --program-t)
1023 ac_prev=program_transform_name ;;
1024 -program-transform-name=* | --program-transform-name=* \
1025 | --program-transform-nam=* | --program-transform-na=* \
1026 | --program-transform-n=* | --program-transform-=* \
1027 | --program-transform=* | --program-transfor=* \
1028 | --program-transfo=* | --program-transf=* \
1029 | --program-trans=* | --program-tran=* \
1030 | --progr-tra=* | --program-tr=* | --program-t=*)
1031 program_transform_name=$ac_optarg ;;
1032
1033 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034 ac_prev=pdfdir ;;
1035 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036 pdfdir=$ac_optarg ;;
1037
1038 -psdir | --psdir | --psdi | --psd | --ps)
1039 ac_prev=psdir ;;
1040 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041 psdir=$ac_optarg ;;
1042
1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1045 silent=yes ;;
1046
1047 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1048 ac_prev=sbindir ;;
1049 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1050 | --sbi=* | --sb=*)
1051 sbindir=$ac_optarg ;;
1052
1053 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1054 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1055 | --sharedst | --shareds | --shared | --share | --shar \
1056 | --sha | --sh)
1057 ac_prev=sharedstatedir ;;
1058 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1059 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1060 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1061 | --sha=* | --sh=*)
1062 sharedstatedir=$ac_optarg ;;
1063
1064 -site | --site | --sit)
1065 ac_prev=site ;;
1066 -site=* | --site=* | --sit=*)
1067 site=$ac_optarg ;;
1068
1069 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1070 ac_prev=srcdir ;;
1071 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1072 srcdir=$ac_optarg ;;
1073
1074 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1075 | --syscon | --sysco | --sysc | --sys | --sy)
1076 ac_prev=sysconfdir ;;
1077 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1078 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1079 sysconfdir=$ac_optarg ;;
1080
1081 -target | --target | --targe | --targ | --tar | --ta | --t)
1082 ac_prev=target_alias ;;
1083 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1084 target_alias=$ac_optarg ;;
1085
1086 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087 verbose=yes ;;
1088
1089 -version | --version | --versio | --versi | --vers | -V)
1090 ac_init_version=: ;;
1091
1092 -with-* | --with-*)
1093 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error "invalid package name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1100 *"
1101"with_$ac_useropt"
1102"*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval with_$ac_useropt=\$ac_optarg ;;
1107
1108 -without-* | --without-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error "invalid package name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1116 *"
1117"with_$ac_useropt"
1118"*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1121 esac
1122 eval with_$ac_useropt=no ;;
1123
1124 --x)
1125 # Obsolete; use --with-x.
1126 with_x=yes ;;
1127
1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129 | --x-incl | --x-inc | --x-in | --x-i)
1130 ac_prev=x_includes ;;
1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133 x_includes=$ac_optarg ;;
1134
1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137 ac_prev=x_libraries ;;
1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140 x_libraries=$ac_optarg ;;
1141
1142 -*) as_fn_error "unrecognized option: \`$ac_option'
1143Try \`$0 --help' for more information."
1144 ;;
1145
1146 *=*)
1147 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1148 # Reject names that are not valid shell variable names.
1149 case $ac_envvar in #(
1150 '' | [0-9]* | *[!_$as_cr_alnum]* )
1151 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1152 esac
1153 eval $ac_envvar=\$ac_optarg
1154 export $ac_envvar ;;
1155
1156 *)
1157 # FIXME: should be removed in autoconf 3.0.
1158 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1162 ;;
1163
1164 esac
1165done
1166
1167if test -n "$ac_prev"; then
1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169 as_fn_error "missing argument to $ac_option"
1170fi
1171
1172if test -n "$ac_unrecognized_opts"; then
1173 case $enable_option_checking in
1174 no) ;;
1175 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1176 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1177 esac
1178fi
1179
1180# Check all directory arguments for consistency.
1181for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1182 datadir sysconfdir sharedstatedir localstatedir includedir \
1183 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1184 libdir localedir mandir
1185do
1186 eval ac_val=\$$ac_var
1187 # Remove trailing slashes.
1188 case $ac_val in
1189 */ )
1190 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1191 eval $ac_var=\$ac_val;;
1192 esac
1193 # Be sure to have absolute directory names.
1194 case $ac_val in
1195 [\\/$]* | ?:[\\/]* ) continue;;
1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197 esac
1198 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1199done
1200
1201# There might be people who depend on the old broken behavior: `$host'
1202# used to hold the argument of --host etc.
1203# FIXME: To remove some day.
1204build=$build_alias
1205host=$host_alias
1206target=$target_alias
1207
1208# FIXME: To remove some day.
1209if test "x$host_alias" != x; then
1210 if test "x$build_alias" = x; then
1211 cross_compiling=maybe
1212 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213 If a cross compiler is detected then cross compile mode will be used." >&2
1214 elif test "x$build_alias" != "x$host_alias"; then
1215 cross_compiling=yes
1216 fi
1217fi
1218
1219ac_tool_prefix=
1220test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222test "$silent" = yes && exec 6>/dev/null
1223
1224
1225ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226ac_ls_di=`ls -di .` &&
1227ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228 as_fn_error "working directory cannot be determined"
1229test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1230 as_fn_error "pwd does not report name of working directory"
1231
1232
1233# Find the source files, if location was not specified.
1234if test -z "$srcdir"; then
1235 ac_srcdir_defaulted=yes
1236 # Try the directory containing this script, then the parent directory.
1237 ac_confdir=`$as_dirname -- "$as_myself" ||
1238$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239 X"$as_myself" : 'X\(//\)[^/]' \| \
1240 X"$as_myself" : 'X\(//\)$' \| \
1241 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1242$as_echo X"$as_myself" |
1243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244 s//\1/
1245 q
1246 }
1247 /^X\(\/\/\)[^/].*/{
1248 s//\1/
1249 q
1250 }
1251 /^X\(\/\/\)$/{
1252 s//\1/
1253 q
1254 }
1255 /^X\(\/\).*/{
1256 s//\1/
1257 q
1258 }
1259 s/.*/./; q'`
1260 srcdir=$ac_confdir
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 srcdir=..
1263 fi
1264else
1265 ac_srcdir_defaulted=no
1266fi
1267if test ! -r "$srcdir/$ac_unique_file"; then
1268 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1269 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1270fi
1271ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272ac_abs_confdir=`(
1273 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1274 pwd)`
1275# When building in place, set srcdir=.
1276if test "$ac_abs_confdir" = "$ac_pwd"; then
1277 srcdir=.
1278fi
1279# Remove unnecessary trailing slashes from srcdir.
1280# Double slashes in file names in object file debugging info
1281# mess up M-x gdb in Emacs.
1282case $srcdir in
1283*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284esac
1285for ac_var in $ac_precious_vars; do
1286 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_env_${ac_var}_value=\$${ac_var}
1288 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1289 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1290done
1291
1292#
1293# Report the --help message.
1294#
1295if test "$ac_init_help" = "long"; then
1296 # Omit some internal or obsolete options to make the list less imposing.
1297 # This message is too long to be a string in the A/UX 3.1 sh.
1298 cat <<_ACEOF
1299\`configure' configures phsa HSAIL runtime library 1.0 to adapt to many kinds of systems.
1300
1301Usage: $0 [OPTION]... [VAR=VALUE]...
1302
1303To assign environment variables (e.g., CC, CFLAGS...), specify them as
1304VAR=VALUE. See below for descriptions of some of the useful variables.
1305
1306Defaults for the options are specified in brackets.
1307
1308Configuration:
1309 -h, --help display this help and exit
1310 --help=short display options specific to this package
1311 --help=recursive display the short help of all the included packages
1312 -V, --version display version information and exit
1313 -q, --quiet, --silent do not print \`checking...' messages
1314 --cache-file=FILE cache test results in FILE [disabled]
1315 -C, --config-cache alias for \`--cache-file=config.cache'
1316 -n, --no-create do not create output files
1317 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1318
1319Installation directories:
1320 --prefix=PREFIX install architecture-independent files in PREFIX
1321 [$ac_default_prefix]
1322 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1323 [PREFIX]
1324
1325By default, \`make install' will install all the files in
1326\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1327an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1328for instance \`--prefix=\$HOME'.
1329
1330For better control, use the options below.
1331
1332Fine tuning of the installation directories:
1333 --bindir=DIR user executables [EPREFIX/bin]
1334 --sbindir=DIR system admin executables [EPREFIX/sbin]
1335 --libexecdir=DIR program executables [EPREFIX/libexec]
1336 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1337 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1338 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1339 --libdir=DIR object code libraries [EPREFIX/lib]
1340 --includedir=DIR C header files [PREFIX/include]
1341 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1342 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1343 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1344 --infodir=DIR info documentation [DATAROOTDIR/info]
1345 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1346 --mandir=DIR man documentation [DATAROOTDIR/man]
1347 --docdir=DIR documentation root
1348 [DATAROOTDIR/doc/phsa-hsail-runtime-library]
1349 --htmldir=DIR html documentation [DOCDIR]
1350 --dvidir=DIR dvi documentation [DOCDIR]
1351 --pdfdir=DIR pdf documentation [DOCDIR]
1352 --psdir=DIR ps documentation [DOCDIR]
1353_ACEOF
1354
1355 cat <<\_ACEOF
1356
1357Program names:
1358 --program-prefix=PREFIX prepend PREFIX to installed program names
1359 --program-suffix=SUFFIX append SUFFIX to installed program names
1360 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1361
1362System types:
1363 --build=BUILD configure for building on BUILD [guessed]
1364 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1365 --target=TARGET configure for building compilers for TARGET [HOST]
1366_ACEOF
1367fi
1368
1369if test -n "$ac_init_help"; then
1370 case $ac_init_help in
1371 short | recursive ) echo "Configuration of phsa HSAIL runtime library 1.0:";;
1372 esac
1373 cat <<\_ACEOF
1374
1375Optional Features:
1376 --disable-option-checking ignore unrecognized --enable/--with options
1377 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1378 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1379 --enable-maintainer-mode enable make rules and dependencies not useful
1380 (and sometimes confusing) to the casual installer
1381 --disable-dependency-tracking speeds up one-time build
1382 --enable-dependency-tracking do not reject slow dependency extractors
1383 --enable-version-specific-runtime-libs
1384 Specify that runtime libraries should be installed
1385 in a compi ler-specific directory
1386 --enable-shared[=PKGS] build shared libraries [default=yes]
1387 --enable-static[=PKGS] build static libraries [default=yes]
1388 --enable-fast-install[=PKGS]
1389 optimize for fast installation [default=yes]
1390 --disable-libtool-lock avoid locking (might break parallel builds)
1391
1392Optional Packages:
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --with-pic try to use only PIC/non-PIC objects [default=use
1396 both]
1397 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1398
1399Some influential environment variables:
1400 CC C compiler command
1401 CFLAGS C compiler flags
1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1403 nonstandard directory <lib dir>
1404 LIBS libraries to pass to the linker, e.g. -l<library>
1405 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1406 you have headers in a nonstandard directory <include dir>
1407 CXX C++ compiler command
1408 CXXFLAGS C++ compiler flags
1409 CPP C preprocessor
1410 CXXCPP C++ preprocessor
1411
1412Use these variables to override the choices made by `configure' or to help
1413it to find libraries and programs with nonstandard names/locations.
1414
1415Report bugs to <pekka.jaaskelainen@parmance.com>.
1416_ACEOF
1417ac_status=$?
1418fi
1419
1420if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423 test -d "$ac_dir" ||
1424 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425 continue
1426 ac_builddir=.
1427
1428case "$ac_dir" in
1429.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430*)
1431 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432 # A ".." for each directory in $ac_dir_suffix.
1433 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434 case $ac_top_builddir_sub in
1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437 esac ;;
1438esac
1439ac_abs_top_builddir=$ac_pwd
1440ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441# for backward compatibility:
1442ac_top_builddir=$ac_top_build_prefix
1443
1444case $srcdir in
1445 .) # We are building in place.
1446 ac_srcdir=.
1447 ac_top_srcdir=$ac_top_builddir_sub
1448 ac_abs_top_srcdir=$ac_pwd ;;
1449 [\\/]* | ?:[\\/]* ) # Absolute name.
1450 ac_srcdir=$srcdir$ac_dir_suffix;
1451 ac_top_srcdir=$srcdir
1452 ac_abs_top_srcdir=$srcdir ;;
1453 *) # Relative name.
1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455 ac_top_srcdir=$ac_top_build_prefix$srcdir
1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457esac
1458ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459
1460 cd "$ac_dir" || { ac_status=$?; continue; }
1461 # Check for guested configure.
1462 if test -f "$ac_srcdir/configure.gnu"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465 elif test -f "$ac_srcdir/configure"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure" --help=recursive
1468 else
1469 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470 fi || ac_status=$?
1471 cd "$ac_pwd" || { ac_status=$?; break; }
1472 done
1473fi
1474
1475test -n "$ac_init_help" && exit $ac_status
1476if $ac_init_version; then
1477 cat <<\_ACEOF
1478phsa HSAIL runtime library configure 1.0
1479generated by GNU Autoconf 2.64
1480
1481Copyright (C) 2009 Free Software Foundation, Inc.
1482This configure script is free software; the Free Software Foundation
1483gives unlimited permission to copy, distribute and modify it.
1484_ACEOF
1485 exit
1486fi
1487
1488## ------------------------ ##
1489## Autoconf initialization. ##
1490## ------------------------ ##
1491
1492# ac_fn_c_try_compile LINENO
1493# --------------------------
1494# Try to compile conftest.$ac_ext, and return whether this succeeded.
1495ac_fn_c_try_compile ()
1496{
1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498 rm -f conftest.$ac_objext
1499 if { { ac_try="$ac_compile"
1500case "(($ac_try" in
1501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502 *) ac_try_echo=$ac_try;;
1503esac
1504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505$as_echo "$ac_try_echo"; } >&5
1506 (eval "$ac_compile") 2>conftest.err
1507 ac_status=$?
1508 if test -s conftest.err; then
1509 grep -v '^ *+' conftest.err >conftest.er1
1510 cat conftest.er1 >&5
1511 mv -f conftest.er1 conftest.err
1512 fi
1513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514 test $ac_status = 0; } && {
1515 test -z "$ac_c_werror_flag" ||
1516 test ! -s conftest.err
1517 } && test -s conftest.$ac_objext; then :
1518 ac_retval=0
1519else
1520 $as_echo "$as_me: failed program was:" >&5
1521sed 's/^/| /' conftest.$ac_ext >&5
1522
1523 ac_retval=1
1524fi
1525 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1526 return $ac_retval
1527
1528} # ac_fn_c_try_compile
1529
1530# ac_fn_cxx_try_compile LINENO
1531# ----------------------------
1532# Try to compile conftest.$ac_ext, and return whether this succeeded.
1533ac_fn_cxx_try_compile ()
1534{
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 rm -f conftest.$ac_objext
1537 if { { ac_try="$ac_compile"
1538case "(($ac_try" in
1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540 *) ac_try_echo=$ac_try;;
1541esac
1542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543$as_echo "$ac_try_echo"; } >&5
1544 (eval "$ac_compile") 2>conftest.err
1545 ac_status=$?
1546 if test -s conftest.err; then
1547 grep -v '^ *+' conftest.err >conftest.er1
1548 cat conftest.er1 >&5
1549 mv -f conftest.er1 conftest.err
1550 fi
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; } && {
1553 test -z "$ac_cxx_werror_flag" ||
1554 test ! -s conftest.err
1555 } && test -s conftest.$ac_objext; then :
1556 ac_retval=0
1557else
1558 $as_echo "$as_me: failed program was:" >&5
1559sed 's/^/| /' conftest.$ac_ext >&5
1560
1561 ac_retval=1
1562fi
1563 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1564 return $ac_retval
1565
1566} # ac_fn_cxx_try_compile
1567
1568# ac_fn_c_try_link LINENO
1569# -----------------------
1570# Try to link conftest.$ac_ext, and return whether this succeeded.
1571ac_fn_c_try_link ()
1572{
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 rm -f conftest.$ac_objext conftest$ac_exeext
1575 if { { ac_try="$ac_link"
1576case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579esac
1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581$as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_link") 2>conftest.err
1583 ac_status=$?
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1588 fi
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && {
1591 test -z "$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1593 } && test -s conftest$ac_exeext && {
1594 test "$cross_compiling" = yes ||
1595 $as_test_x conftest$ac_exeext
1596 }; then :
1597 ac_retval=0
1598else
1599 $as_echo "$as_me: failed program was:" >&5
1600sed 's/^/| /' conftest.$ac_ext >&5
1601
1602 ac_retval=1
1603fi
1604 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1605 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1606 # interfere with the next link command; also delete a directory that is
1607 # left behind by Apple's compiler. We do this before executing the actions.
1608 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1610 return $ac_retval
1611
1612} # ac_fn_c_try_link
1613
1614# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1615# -------------------------------------------------------
1616# Tests whether HEADER exists and can be compiled using the include files in
1617# INCLUDES, setting the cache variable VAR accordingly.
1618ac_fn_c_check_header_compile ()
1619{
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622$as_echo_n "checking for $2... " >&6; }
1623if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1624 $as_echo_n "(cached) " >&6
1625else
1626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627/* end confdefs.h. */
1628$4
1629#include <$2>
1630_ACEOF
1631if ac_fn_c_try_compile "$LINENO"; then :
1632 eval "$3=yes"
1633else
1634 eval "$3=no"
1635fi
1636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1637fi
1638eval ac_res=\$$3
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640$as_echo "$ac_res" >&6; }
1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1642
1643} # ac_fn_c_check_header_compile
1644
1645# ac_fn_c_try_cpp LINENO
1646# ----------------------
1647# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648ac_fn_c_try_cpp ()
1649{
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 if { { ac_try="$ac_cpp conftest.$ac_ext"
1652case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655esac
1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657$as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1659 ac_status=$?
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1664 fi
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } >/dev/null && {
1667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1669 }; then :
1670 ac_retval=0
1671else
1672 $as_echo "$as_me: failed program was:" >&5
1673sed 's/^/| /' conftest.$ac_ext >&5
1674
1675 ac_retval=1
1676fi
1677 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1678 return $ac_retval
1679
1680} # ac_fn_c_try_cpp
1681
1682# ac_fn_c_try_run LINENO
1683# ----------------------
1684# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1685# that executables *can* be run.
1686ac_fn_c_try_run ()
1687{
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if { { ac_try="$ac_link"
1690case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_link") 2>&5
1697 ac_status=$?
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1700 { { case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705$as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_try") 2>&5
1707 ac_status=$?
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; }; }; then :
1710 ac_retval=0
1711else
1712 $as_echo "$as_me: program exited with status $ac_status" >&5
1713 $as_echo "$as_me: failed program was:" >&5
1714sed 's/^/| /' conftest.$ac_ext >&5
1715
1716 ac_retval=$ac_status
1717fi
1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720 return $ac_retval
1721
1722} # ac_fn_c_try_run
1723
1724# ac_fn_c_check_func LINENO FUNC VAR
1725# ----------------------------------
1726# Tests whether FUNC exists, setting the cache variable VAR accordingly
1727ac_fn_c_check_func ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731$as_echo_n "checking for $2... " >&6; }
1732if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1733 $as_echo_n "(cached) " >&6
1734else
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736/* end confdefs.h. */
1737/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1739#define $2 innocuous_$2
1740
1741/* System header to define __stub macros and hopefully few prototypes,
1742 which can conflict with char $2 (); below.
1743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1744 <limits.h> exists even on freestanding compilers. */
1745
1746#ifdef __STDC__
1747# include <limits.h>
1748#else
1749# include <assert.h>
1750#endif
1751
1752#undef $2
1753
1754/* Override any GCC internal prototype to avoid an error.
1755 Use char because int might match the return type of a GCC
1756 builtin and then its argument prototype would still apply. */
1757#ifdef __cplusplus
1758extern "C"
1759#endif
1760char $2 ();
1761/* The GNU C library defines this for functions which it implements
1762 to always fail with ENOSYS. Some functions are actually named
1763 something starting with __ and the normal name is an alias. */
1764#if defined __stub_$2 || defined __stub___$2
1765choke me
1766#endif
1767
1768int
1769main ()
1770{
1771return $2 ();
1772 ;
1773 return 0;
1774}
1775_ACEOF
1776if ac_fn_c_try_link "$LINENO"; then :
1777 eval "$3=yes"
1778else
1779 eval "$3=no"
1780fi
1781rm -f core conftest.err conftest.$ac_objext \
1782 conftest$ac_exeext conftest.$ac_ext
1783fi
1784eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786$as_echo "$ac_res" >&6; }
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788
1789} # ac_fn_c_check_func
1790
1791# ac_fn_cxx_try_cpp LINENO
1792# ------------------------
1793# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1794ac_fn_cxx_try_cpp ()
1795{
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if { { ac_try="$ac_cpp conftest.$ac_ext"
1798case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801esac
1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803$as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1805 ac_status=$?
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1810 fi
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } >/dev/null && {
1813 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1814 test ! -s conftest.err
1815 }; then :
1816 ac_retval=0
1817else
1818 $as_echo "$as_me: failed program was:" >&5
1819sed 's/^/| /' conftest.$ac_ext >&5
1820
1821 ac_retval=1
1822fi
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824 return $ac_retval
1825
1826} # ac_fn_cxx_try_cpp
1827
1828# ac_fn_cxx_try_link LINENO
1829# -------------------------
1830# Try to link conftest.$ac_ext, and return whether this succeeded.
1831ac_fn_cxx_try_link ()
1832{
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 rm -f conftest.$ac_objext conftest$ac_exeext
1835 if { { ac_try="$ac_link"
1836case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839esac
1840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841$as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_link") 2>conftest.err
1843 ac_status=$?
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1848 fi
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && {
1851 test -z "$ac_cxx_werror_flag" ||
1852 test ! -s conftest.err
1853 } && test -s conftest$ac_exeext && {
1854 test "$cross_compiling" = yes ||
1855 $as_test_x conftest$ac_exeext
1856 }; then :
1857 ac_retval=0
1858else
1859 $as_echo "$as_me: failed program was:" >&5
1860sed 's/^/| /' conftest.$ac_ext >&5
1861
1862 ac_retval=1
1863fi
1864 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1865 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1866 # interfere with the next link command; also delete a directory that is
1867 # left behind by Apple's compiler. We do this before executing the actions.
1868 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 return $ac_retval
1871
1872} # ac_fn_cxx_try_link
1873
1874# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1875# --------------------------------------------
1876# Tries to find the compile-time value of EXPR in a program that includes
1877# INCLUDES, setting VAR accordingly. Returns whether the value could be
1878# computed
1879ac_fn_c_compute_int ()
1880{
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if test "$cross_compiling" = yes; then
1883 # Depending upon the size, compute the lo and hi bounds.
1884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885/* end confdefs.h. */
1886$4
1887int
1888main ()
1889{
1890static int test_array [1 - 2 * !(($2) >= 0)];
1891test_array [0] = 0
1892
1893 ;
1894 return 0;
1895}
1896_ACEOF
1897if ac_fn_c_try_compile "$LINENO"; then :
1898 ac_lo=0 ac_mid=0
1899 while :; do
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901/* end confdefs.h. */
1902$4
1903int
1904main ()
1905{
1906static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1907test_array [0] = 0
1908
1909 ;
1910 return 0;
1911}
1912_ACEOF
1913if ac_fn_c_try_compile "$LINENO"; then :
1914 ac_hi=$ac_mid; break
1915else
1916 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1917 if test $ac_lo -le $ac_mid; then
1918 ac_lo= ac_hi=
1919 break
1920 fi
1921 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1922fi
1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 done
1925else
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h. */
1928$4
1929int
1930main ()
1931{
1932static int test_array [1 - 2 * !(($2) < 0)];
1933test_array [0] = 0
1934
1935 ;
1936 return 0;
1937}
1938_ACEOF
1939if ac_fn_c_try_compile "$LINENO"; then :
1940 ac_hi=-1 ac_mid=-1
1941 while :; do
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h. */
1944$4
1945int
1946main ()
1947{
1948static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1949test_array [0] = 0
1950
1951 ;
1952 return 0;
1953}
1954_ACEOF
1955if ac_fn_c_try_compile "$LINENO"; then :
1956 ac_lo=$ac_mid; break
1957else
1958 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1959 if test $ac_mid -le $ac_hi; then
1960 ac_lo= ac_hi=
1961 break
1962 fi
1963 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1964fi
1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 done
1967else
1968 ac_lo= ac_hi=
1969fi
1970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971fi
1972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973# Binary search between lo and hi bounds.
1974while test "x$ac_lo" != "x$ac_hi"; do
1975 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977/* end confdefs.h. */
1978$4
1979int
1980main ()
1981{
1982static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1983test_array [0] = 0
1984
1985 ;
1986 return 0;
1987}
1988_ACEOF
1989if ac_fn_c_try_compile "$LINENO"; then :
1990 ac_hi=$ac_mid
1991else
1992 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1993fi
1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995done
1996case $ac_lo in #((
1997?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1998'') ac_retval=1 ;;
1999esac
2000 else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002/* end confdefs.h. */
2003$4
2004static long int longval () { return $2; }
2005static unsigned long int ulongval () { return $2; }
2006#include <stdio.h>
2007#include <stdlib.h>
2008int
2009main ()
2010{
2011
2012 FILE *f = fopen ("conftest.val", "w");
2013 if (! f)
2014 return 1;
2015 if (($2) < 0)
2016 {
2017 long int i = longval ();
2018 if (i != ($2))
2019 return 1;
2020 fprintf (f, "%ld", i);
2021 }
2022 else
2023 {
2024 unsigned long int i = ulongval ();
2025 if (i != ($2))
2026 return 1;
2027 fprintf (f, "%lu", i);
2028 }
2029 /* Do not output a trailing newline, as this causes \r\n confusion
2030 on some platforms. */
2031 return ferror (f) || fclose (f) != 0;
2032
2033 ;
2034 return 0;
2035}
2036_ACEOF
2037if ac_fn_c_try_run "$LINENO"; then :
2038 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2039else
2040 ac_retval=1
2041fi
2042rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2043 conftest.$ac_objext conftest.beam conftest.$ac_ext
2044rm -f conftest.val
2045
2046 fi
2047 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2048 return $ac_retval
2049
2050} # ac_fn_c_compute_int
2051cat >config.log <<_ACEOF
2052This file contains any messages produced by compilers while
2053running configure, to aid debugging if configure makes a mistake.
2054
2055It was created by phsa HSAIL runtime library $as_me 1.0, which was
2056generated by GNU Autoconf 2.64. Invocation command line was
2057
2058 $ $0 $@
2059
2060_ACEOF
2061exec 5>>config.log
2062{
2063cat <<_ASUNAME
2064## --------- ##
2065## Platform. ##
2066## --------- ##
2067
2068hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2069uname -m = `(uname -m) 2>/dev/null || echo unknown`
2070uname -r = `(uname -r) 2>/dev/null || echo unknown`
2071uname -s = `(uname -s) 2>/dev/null || echo unknown`
2072uname -v = `(uname -v) 2>/dev/null || echo unknown`
2073
2074/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2075/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2076
2077/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2078/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2079/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2080/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2081/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2082/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2083/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2084
2085_ASUNAME
2086
2087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088for as_dir in $PATH
2089do
2090 IFS=$as_save_IFS
2091 test -z "$as_dir" && as_dir=.
2092 $as_echo "PATH: $as_dir"
2093 done
2094IFS=$as_save_IFS
2095
2096} >&5
2097
2098cat >&5 <<_ACEOF
2099
2100
2101## ----------- ##
2102## Core tests. ##
2103## ----------- ##
2104
2105_ACEOF
2106
2107
2108# Keep a trace of the command line.
2109# Strip out --no-create and --no-recursion so they do not pile up.
2110# Strip out --silent because we don't want to record it for future runs.
2111# Also quote any args containing shell meta-characters.
2112# Make two passes to allow for proper duplicate-argument suppression.
2113ac_configure_args=
2114ac_configure_args0=
2115ac_configure_args1=
2116ac_must_keep_next=false
2117for ac_pass in 1 2
2118do
2119 for ac_arg
2120 do
2121 case $ac_arg in
2122 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2124 | -silent | --silent | --silen | --sile | --sil)
2125 continue ;;
2126 *\'*)
2127 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2128 esac
2129 case $ac_pass in
2130 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2131 2)
2132 as_fn_append ac_configure_args1 " '$ac_arg'"
2133 if test $ac_must_keep_next = true; then
2134 ac_must_keep_next=false # Got value, back to normal.
2135 else
2136 case $ac_arg in
2137 *=* | --config-cache | -C | -disable-* | --disable-* \
2138 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2139 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2140 | -with-* | --with-* | -without-* | --without-* | --x)
2141 case "$ac_configure_args0 " in
2142 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2143 esac
2144 ;;
2145 -* ) ac_must_keep_next=true ;;
2146 esac
2147 fi
2148 as_fn_append ac_configure_args " '$ac_arg'"
2149 ;;
2150 esac
2151 done
2152done
2153{ ac_configure_args0=; unset ac_configure_args0;}
2154{ ac_configure_args1=; unset ac_configure_args1;}
2155
2156# When interrupted or exit'd, cleanup temporary files, and complete
2157# config.log. We remove comments because anyway the quotes in there
2158# would cause problems or look ugly.
2159# WARNING: Use '\'' to represent an apostrophe within the trap.
2160# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2161trap 'exit_status=$?
2162 # Save into config.log some information that might help in debugging.
2163 {
2164 echo
2165
2166 cat <<\_ASBOX
2167## ---------------- ##
2168## Cache variables. ##
2169## ---------------- ##
2170_ASBOX
2171 echo
2172 # The following way of writing the cache mishandles newlines in values,
2173(
2174 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2175 eval ac_val=\$$ac_var
2176 case $ac_val in #(
2177 *${as_nl}*)
2178 case $ac_var in #(
2179 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2180$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2181 esac
2182 case $ac_var in #(
2183 _ | IFS | as_nl) ;; #(
2184 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2185 *) { eval $ac_var=; unset $ac_var;} ;;
2186 esac ;;
2187 esac
2188 done
2189 (set) 2>&1 |
2190 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2191 *${as_nl}ac_space=\ *)
2192 sed -n \
2193 "s/'\''/'\''\\\\'\'''\''/g;
2194 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2195 ;; #(
2196 *)
2197 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2198 ;;
2199 esac |
2200 sort
2201)
2202 echo
2203
2204 cat <<\_ASBOX
2205## ----------------- ##
2206## Output variables. ##
2207## ----------------- ##
2208_ASBOX
2209 echo
2210 for ac_var in $ac_subst_vars
2211 do
2212 eval ac_val=\$$ac_var
2213 case $ac_val in
2214 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2215 esac
2216 $as_echo "$ac_var='\''$ac_val'\''"
2217 done | sort
2218 echo
2219
2220 if test -n "$ac_subst_files"; then
2221 cat <<\_ASBOX
2222## ------------------- ##
2223## File substitutions. ##
2224## ------------------- ##
2225_ASBOX
2226 echo
2227 for ac_var in $ac_subst_files
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 fi
2237
2238 if test -s confdefs.h; then
2239 cat <<\_ASBOX
2240## ----------- ##
2241## confdefs.h. ##
2242## ----------- ##
2243_ASBOX
2244 echo
2245 cat confdefs.h
2246 echo
2247 fi
2248 test "$ac_signal" != 0 &&
2249 $as_echo "$as_me: caught signal $ac_signal"
2250 $as_echo "$as_me: exit $exit_status"
2251 } >&5
2252 rm -f core *.core core.conftest.* &&
2253 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2254 exit $exit_status
2255' 0
2256for ac_signal in 1 2 13 15; do
2257 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2258done
2259ac_signal=0
2260
2261# confdefs.h avoids OS command line length limits that DEFS can exceed.
2262rm -f -r conftest* confdefs.h
2263
2264$as_echo "/* confdefs.h */" > confdefs.h
2265
2266# Predefined preprocessor variables.
2267
2268cat >>confdefs.h <<_ACEOF
2269#define PACKAGE_NAME "$PACKAGE_NAME"
2270_ACEOF
2271
2272cat >>confdefs.h <<_ACEOF
2273#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2274_ACEOF
2275
2276cat >>confdefs.h <<_ACEOF
2277#define PACKAGE_VERSION "$PACKAGE_VERSION"
2278_ACEOF
2279
2280cat >>confdefs.h <<_ACEOF
2281#define PACKAGE_STRING "$PACKAGE_STRING"
2282_ACEOF
2283
2284cat >>confdefs.h <<_ACEOF
2285#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2286_ACEOF
2287
2288cat >>confdefs.h <<_ACEOF
2289#define PACKAGE_URL "$PACKAGE_URL"
2290_ACEOF
2291
2292
2293# Let the site file select an alternate cache file if it wants to.
2294# Prefer an explicitly selected file to automatically selected ones.
2295ac_site_file1=NONE
2296ac_site_file2=NONE
2297if test -n "$CONFIG_SITE"; then
2298 ac_site_file1=$CONFIG_SITE
2299elif test "x$prefix" != xNONE; then
2300 ac_site_file1=$prefix/share/config.site
2301 ac_site_file2=$prefix/etc/config.site
2302else
2303 ac_site_file1=$ac_default_prefix/share/config.site
2304 ac_site_file2=$ac_default_prefix/etc/config.site
2305fi
2306for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2307do
2308 test "x$ac_site_file" = xNONE && continue
2309 if test -r "$ac_site_file"; then
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2311$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2312 sed 's/^/| /' "$ac_site_file" >&5
2313 . "$ac_site_file"
2314 fi
2315done
2316
2317if test -r "$cache_file"; then
2318 # Some versions of bash will fail to source /dev/null (special
2319 # files actually), so we avoid doing that.
2320 if test -f "$cache_file"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2322$as_echo "$as_me: loading cache $cache_file" >&6;}
2323 case $cache_file in
2324 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2325 *) . "./$cache_file";;
2326 esac
2327 fi
2328else
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2330$as_echo "$as_me: creating cache $cache_file" >&6;}
2331 >$cache_file
2332fi
2333
2334# Check that the precious variables saved in the cache have kept the same
2335# value.
2336ac_cache_corrupted=false
2337for ac_var in $ac_precious_vars; do
2338 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2339 eval ac_new_set=\$ac_env_${ac_var}_set
2340 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2341 eval ac_new_val=\$ac_env_${ac_var}_value
2342 case $ac_old_set,$ac_new_set in
2343 set,)
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2345$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2346 ac_cache_corrupted=: ;;
2347 ,set)
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2349$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2350 ac_cache_corrupted=: ;;
2351 ,);;
2352 *)
2353 if test "x$ac_old_val" != "x$ac_new_val"; then
2354 # differences in whitespace do not lead to failure.
2355 ac_old_val_w=`echo x $ac_old_val`
2356 ac_new_val_w=`echo x $ac_new_val`
2357 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2359$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2360 ac_cache_corrupted=:
2361 else
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2363$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2364 eval $ac_var=\$ac_old_val
2365 fi
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2367$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2369$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2370 fi;;
2371 esac
2372 # Pass precious variables to config.status.
2373 if test "$ac_new_set" = set; then
2374 case $ac_new_val in
2375 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2376 *) ac_arg=$ac_var=$ac_new_val ;;
2377 esac
2378 case " $ac_configure_args " in
2379 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2380 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2381 esac
2382 fi
2383done
2384if $ac_cache_corrupted; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2388$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2389 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2390fi
2391## -------------------- ##
2392## Main body of script. ##
2393## -------------------- ##
2394
2395ac_ext=c
2396ac_cpp='$CPP $CPPFLAGS'
2397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2399ac_compiler_gnu=$ac_cv_c_compiler_gnu
2400
2401
2402
2403
2404
2405
2406# Needed to define ${target}. Needs to be very early to avoid annoying
2407# warning about calling AC_ARG_PROGRAM before AC_CANONICAL_SYSTEM
2408ac_aux_dir=
2409for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2410 for ac_t in install-sh install.sh shtool; do
2411 if test -f "$ac_dir/$ac_t"; then
2412 ac_aux_dir=$ac_dir
2413 ac_install_sh="$ac_aux_dir/$ac_t -c"
2414 break 2
2415 fi
2416 done
2417done
2418if test -z "$ac_aux_dir"; then
2419 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2420fi
2421
2422# These three variables are undocumented and unsupported,
2423# and are intended to be withdrawn in a future Autoconf release.
2424# They can cause serious problems if a builder's source tree is in a directory
2425# whose full name contains unusual characters.
2426ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2427ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2428ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2429
2430
2431# Make sure we can run config.sub.
2432$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2433 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2434
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2436$as_echo_n "checking build system type... " >&6; }
2437if test "${ac_cv_build+set}" = set; then :
2438 $as_echo_n "(cached) " >&6
2439else
2440 ac_build_alias=$build_alias
2441test "x$ac_build_alias" = x &&
2442 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2443test "x$ac_build_alias" = x &&
2444 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2445ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2446 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2447
2448fi
2449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2450$as_echo "$ac_cv_build" >&6; }
2451case $ac_cv_build in
2452*-*-*) ;;
2453*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2454esac
2455build=$ac_cv_build
2456ac_save_IFS=$IFS; IFS='-'
2457set x $ac_cv_build
2458shift
2459build_cpu=$1
2460build_vendor=$2
2461shift; shift
2462# Remember, the first character of IFS is used to create $*,
2463# except with old shells:
2464build_os=$*
2465IFS=$ac_save_IFS
2466case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2467
2468
2469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2470$as_echo_n "checking host system type... " >&6; }
2471if test "${ac_cv_host+set}" = set; then :
2472 $as_echo_n "(cached) " >&6
2473else
2474 if test "x$host_alias" = x; then
2475 ac_cv_host=$ac_cv_build
2476else
2477 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2478 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2479fi
2480
2481fi
2482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2483$as_echo "$ac_cv_host" >&6; }
2484case $ac_cv_host in
2485*-*-*) ;;
2486*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2487esac
2488host=$ac_cv_host
2489ac_save_IFS=$IFS; IFS='-'
2490set x $ac_cv_host
2491shift
2492host_cpu=$1
2493host_vendor=$2
2494shift; shift
2495# Remember, the first character of IFS is used to create $*,
2496# except with old shells:
2497host_os=$*
2498IFS=$ac_save_IFS
2499case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2500
2501
2502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2503$as_echo_n "checking target system type... " >&6; }
2504if test "${ac_cv_target+set}" = set; then :
2505 $as_echo_n "(cached) " >&6
2506else
2507 if test "x$target_alias" = x; then
2508 ac_cv_target=$ac_cv_host
2509else
2510 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2511 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2512fi
2513
2514fi
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2516$as_echo "$ac_cv_target" >&6; }
2517case $ac_cv_target in
2518*-*-*) ;;
2519*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2520esac
2521target=$ac_cv_target
2522ac_save_IFS=$IFS; IFS='-'
2523set x $ac_cv_target
2524shift
2525target_cpu=$1
2526target_vendor=$2
2527shift; shift
2528# Remember, the first character of IFS is used to create $*,
2529# except with old shells:
2530target_os=$*
2531IFS=$ac_save_IFS
2532case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2533
2534
2535# The aliases save the names the user supplied, while $host etc.
2536# will get canonicalized.
2537test -n "$target_alias" &&
2538 test "$program_prefix$program_suffix$program_transform_name" = \
2539 NONENONEs,x,x, &&
2540 program_prefix=${target_alias}-
2541
2542target_alias=${target_alias-$host_alias}
2543
2544am__api_version='1.11'
2545
2546# Find a good install program. We prefer a C program (faster),
2547# so one script is as good as another. But avoid the broken or
2548# incompatible versions:
2549# SysV /etc/install, /usr/sbin/install
2550# SunOS /usr/etc/install
2551# IRIX /sbin/install
2552# AIX /bin/install
2553# AmigaOS /C/install, which installs bootblocks on floppy discs
2554# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2555# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2556# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2557# OS/2's system install, which has a completely different semantic
2558# ./install, which can be erroneously created by make from ./install.sh.
2559# Reject install programs that cannot install multiple files.
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2561$as_echo_n "checking for a BSD-compatible install... " >&6; }
2562if test -z "$INSTALL"; then
2563if test "${ac_cv_path_install+set}" = set; then :
2564 $as_echo_n "(cached) " >&6
2565else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 # Account for people who put trailing slashes in PATH elements.
2572case $as_dir/ in #((
2573 ./ | .// | /[cC]/* | \
2574 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2575 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2576 /usr/ucb/* ) ;;
2577 *)
2578 # OSF1 and SCO ODT 3.0 have their own names for install.
2579 # Don't use installbsd from OSF since it installs stuff as root
2580 # by default.
2581 for ac_prog in ginstall scoinst install; do
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2584 if test $ac_prog = install &&
2585 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2586 # AIX install. It has an incompatible calling convention.
2587 :
2588 elif test $ac_prog = install &&
2589 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2590 # program-specific install script used by HP pwplus--don't use.
2591 :
2592 else
2593 rm -rf conftest.one conftest.two conftest.dir
2594 echo one > conftest.one
2595 echo two > conftest.two
2596 mkdir conftest.dir
2597 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2598 test -s conftest.one && test -s conftest.two &&
2599 test -s conftest.dir/conftest.one &&
2600 test -s conftest.dir/conftest.two
2601 then
2602 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2603 break 3
2604 fi
2605 fi
2606 fi
2607 done
2608 done
2609 ;;
2610esac
2611
2612 done
2613IFS=$as_save_IFS
2614
2615rm -rf conftest.one conftest.two conftest.dir
2616
2617fi
2618 if test "${ac_cv_path_install+set}" = set; then
2619 INSTALL=$ac_cv_path_install
2620 else
2621 # As a last resort, use the slow shell script. Don't cache a
2622 # value for INSTALL within a source directory, because that will
2623 # break other packages using the cache if that directory is
2624 # removed, or if the value is a relative name.
2625 INSTALL=$ac_install_sh
2626 fi
2627fi
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2629$as_echo "$INSTALL" >&6; }
2630
2631# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2632# It thinks the first close brace ends the variable substitution.
2633test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2634
2635test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2636
2637test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2638
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2640$as_echo_n "checking whether build environment is sane... " >&6; }
2641# Just in case
2642sleep 1
2643echo timestamp > conftest.file
2644# Reject unsafe characters in $srcdir or the absolute working directory
2645# name. Accept space and tab only in the latter.
2646am_lf='
2647'
2648case `pwd` in
2649 *[\\\"\#\$\&\'\`$am_lf]*)
2650 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2651esac
2652case $srcdir in
2653 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2654 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2655esac
2656
2657# Do `set' in a subshell so we don't clobber the current shell's
2658# arguments. Must try -L first in case configure is actually a
2659# symlink; some systems play weird games with the mod time of symlinks
2660# (eg FreeBSD returns the mod time of the symlink's containing
2661# directory).
2662if (
2663 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2664 if test "$*" = "X"; then
2665 # -L didn't work.
2666 set X `ls -t "$srcdir/configure" conftest.file`
2667 fi
2668 rm -f conftest.file
2669 if test "$*" != "X $srcdir/configure conftest.file" \
2670 && test "$*" != "X conftest.file $srcdir/configure"; then
2671
2672 # If neither matched, then we have a broken ls. This can happen
2673 # if, for instance, CONFIG_SHELL is bash and it inherits a
2674 # broken ls alias from the environment. This has actually
2675 # happened. Such a system could not be considered "sane".
2676 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2677alias in your environment" "$LINENO" 5
2678 fi
2679
2680 test "$2" = conftest.file
2681 )
2682then
2683 # Ok.
2684 :
2685else
2686 as_fn_error "newly created file is older than distributed files!
2687Check your system clock" "$LINENO" 5
2688fi
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2690$as_echo "yes" >&6; }
2691test "$program_prefix" != NONE &&
2692 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2693# Use a double $ so make ignores it.
2694test "$program_suffix" != NONE &&
2695 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2696# Double any \ or $.
2697# By default was `s,x,x', remove it if useless.
2698ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2699program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2700
2701# expand $ac_aux_dir to an absolute path
2702am_aux_dir=`cd $ac_aux_dir && pwd`
2703
2704if test x"${MISSING+set}" != xset; then
2705 case $am_aux_dir in
2706 *\ * | *\ *)
2707 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2708 *)
2709 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2710 esac
2711fi
2712# Use eval to expand $SHELL
2713if eval "$MISSING --run true"; then
2714 am_missing_run="$MISSING --run "
2715else
2716 am_missing_run=
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2718$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2719fi
2720
2721if test x"${install_sh}" != xset; then
2722 case $am_aux_dir in
2723 *\ * | *\ *)
2724 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2725 *)
2726 install_sh="\${SHELL} $am_aux_dir/install-sh"
2727 esac
2728fi
2729
2730# Installed binaries are usually stripped using `strip' when the user
2731# run `make install-strip'. However `strip' might not be the right
2732# tool to use in cross-compilation environments, therefore Automake
2733# will honor the `STRIP' environment variable to overrule this program.
2734if test "$cross_compiling" != no; then
2735 if test -n "$ac_tool_prefix"; then
2736 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2737set dummy ${ac_tool_prefix}strip; ac_word=$2
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739$as_echo_n "checking for $ac_word... " >&6; }
2740if test "${ac_cv_prog_STRIP+set}" = set; then :
2741 $as_echo_n "(cached) " >&6
2742else
2743 if test -n "$STRIP"; then
2744 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2745else
2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747for as_dir in $PATH
2748do
2749 IFS=$as_save_IFS
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2753 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 break 2
2756 fi
2757done
2758 done
2759IFS=$as_save_IFS
2760
2761fi
2762fi
2763STRIP=$ac_cv_prog_STRIP
2764if test -n "$STRIP"; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2766$as_echo "$STRIP" >&6; }
2767else
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769$as_echo "no" >&6; }
2770fi
2771
2772
2773fi
2774if test -z "$ac_cv_prog_STRIP"; then
2775 ac_ct_STRIP=$STRIP
2776 # Extract the first word of "strip", so it can be a program name with args.
2777set dummy strip; ac_word=$2
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779$as_echo_n "checking for $ac_word... " >&6; }
2780if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2781 $as_echo_n "(cached) " >&6
2782else
2783 if test -n "$ac_ct_STRIP"; then
2784 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2785else
2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787for as_dir in $PATH
2788do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 ac_cv_prog_ac_ct_STRIP="strip"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2796 fi
2797done
2798 done
2799IFS=$as_save_IFS
2800
2801fi
2802fi
2803ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2804if test -n "$ac_ct_STRIP"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2806$as_echo "$ac_ct_STRIP" >&6; }
2807else
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809$as_echo "no" >&6; }
2810fi
2811
2812 if test "x$ac_ct_STRIP" = x; then
2813 STRIP=":"
2814 else
2815 case $cross_compiling:$ac_tool_warned in
2816yes:)
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2819ac_tool_warned=yes ;;
2820esac
2821 STRIP=$ac_ct_STRIP
2822 fi
2823else
2824 STRIP="$ac_cv_prog_STRIP"
2825fi
2826
2827fi
2828INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2829
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2831$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2832if test -z "$MKDIR_P"; then
2833 if test "${ac_cv_path_mkdir+set}" = set; then :
2834 $as_echo_n "(cached) " >&6
2835else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2838do
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_prog in mkdir gmkdir; do
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2844 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2845 'mkdir (GNU coreutils) '* | \
2846 'mkdir (coreutils) '* | \
2847 'mkdir (fileutils) '4.1*)
2848 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2849 break 3;;
2850 esac
2851 done
2852 done
2853 done
2854IFS=$as_save_IFS
2855
2856fi
2857
2858 if test "${ac_cv_path_mkdir+set}" = set; then
2859 MKDIR_P="$ac_cv_path_mkdir -p"
2860 else
2861 # As a last resort, use the slow shell script. Don't cache a
2862 # value for MKDIR_P within a source directory, because that will
2863 # break other packages using the cache if that directory is
2864 # removed, or if the value is a relative name.
2865 test -d ./--version && rmdir ./--version
2866 MKDIR_P="$ac_install_sh -d"
2867 fi
2868fi
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2870$as_echo "$MKDIR_P" >&6; }
2871
2872mkdir_p="$MKDIR_P"
2873case $mkdir_p in
2874 [\\/$]* | ?:[\\/]*) ;;
2875 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2876esac
2877
2878for ac_prog in gawk mawk nawk awk
2879do
2880 # Extract the first word of "$ac_prog", so it can be a program name with args.
2881set dummy $ac_prog; ac_word=$2
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883$as_echo_n "checking for $ac_word... " >&6; }
2884if test "${ac_cv_prog_AWK+set}" = set; then :
2885 $as_echo_n "(cached) " >&6
2886else
2887 if test -n "$AWK"; then
2888 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2889else
2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891for as_dir in $PATH
2892do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_AWK="$ac_prog"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2900 fi
2901done
2902 done
2903IFS=$as_save_IFS
2904
2905fi
2906fi
2907AWK=$ac_cv_prog_AWK
2908if test -n "$AWK"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2910$as_echo "$AWK" >&6; }
2911else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913$as_echo "no" >&6; }
2914fi
2915
2916
2917 test -n "$AWK" && break
2918done
2919
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2921$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2922set x ${MAKE-make}
2923ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2924if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2925 $as_echo_n "(cached) " >&6
2926else
2927 cat >conftest.make <<\_ACEOF
2928SHELL = /bin/sh
2929all:
2930 @echo '@@@%%%=$(MAKE)=@@@%%%'
2931_ACEOF
2932# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2933case `${MAKE-make} -f conftest.make 2>/dev/null` in
2934 *@@@%%%=?*=@@@%%%*)
2935 eval ac_cv_prog_make_${ac_make}_set=yes;;
2936 *)
2937 eval ac_cv_prog_make_${ac_make}_set=no;;
2938esac
2939rm -f conftest.make
2940fi
2941if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2943$as_echo "yes" >&6; }
2944 SET_MAKE=
2945else
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947$as_echo "no" >&6; }
2948 SET_MAKE="MAKE=${MAKE-make}"
2949fi
2950
2951rm -rf .tst 2>/dev/null
2952mkdir .tst 2>/dev/null
2953if test -d .tst; then
2954 am__leading_dot=.
2955else
2956 am__leading_dot=_
2957fi
2958rmdir .tst 2>/dev/null
2959
2960if test "`cd $srcdir && pwd`" != "`pwd`"; then
2961 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2962 # is not polluted with repeated "-I."
2963 am__isrc=' -I$(srcdir)'
2964 # test to see if srcdir already configured
2965 if test -f $srcdir/config.status; then
2966 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2967 fi
2968fi
2969
2970# test whether we have cygpath
2971if test -z "$CYGPATH_W"; then
2972 if (cygpath --version) >/dev/null 2>/dev/null; then
2973 CYGPATH_W='cygpath -w'
2974 else
2975 CYGPATH_W=echo
2976 fi
2977fi
2978
2979
2980# Define the identity of the package.
2981 PACKAGE='phsa-hsail-runtime-library'
2982 VERSION='1.0'
2983
2984
2985cat >>confdefs.h <<_ACEOF
2986#define PACKAGE "$PACKAGE"
2987_ACEOF
2988
2989
2990cat >>confdefs.h <<_ACEOF
2991#define VERSION "$VERSION"
2992_ACEOF
2993
2994# Some tools Automake needs.
2995
2996ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2997
2998
2999AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3000
3001
3002AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3003
3004
3005AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3006
3007
3008MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3009
3010# We need awk for the "check" target. The system "awk" is bad on
3011# some platforms.
3012# Always define AMTAR for backward compatibility.
3013
3014AMTAR=${AMTAR-"${am_missing_run}tar"}
3015
3016am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3017
3018
3019
3020
3021
3022
3023
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3025$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3026 # Check whether --enable-maintainer-mode was given.
3027if test "${enable_maintainer_mode+set}" = set; then :
3028 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3029else
3030 USE_MAINTAINER_MODE=no
3031fi
3032
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3034$as_echo "$USE_MAINTAINER_MODE" >&6; }
3035 if test $USE_MAINTAINER_MODE = yes; then
3036 MAINTAINER_MODE_TRUE=
3037 MAINTAINER_MODE_FALSE='#'
3038else
3039 MAINTAINER_MODE_TRUE='#'
3040 MAINTAINER_MODE_FALSE=
3041fi
3042
3043 MAINT=$MAINTAINER_MODE_TRUE
3044
3045
3046
3047ac_ext=c
3048ac_cpp='$CPP $CPPFLAGS'
3049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051ac_compiler_gnu=$ac_cv_c_compiler_gnu
3052if test -n "$ac_tool_prefix"; then
3053 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3054set dummy ${ac_tool_prefix}gcc; ac_word=$2
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056$as_echo_n "checking for $ac_word... " >&6; }
3057if test "${ac_cv_prog_CC+set}" = set; then :
3058 $as_echo_n "(cached) " >&6
3059else
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC="$CC" # Let the user override the test.
3062else
3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064for as_dir in $PATH
3065do
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3073 fi
3074done
3075 done
3076IFS=$as_save_IFS
3077
3078fi
3079fi
3080CC=$ac_cv_prog_CC
3081if test -n "$CC"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083$as_echo "$CC" >&6; }
3084else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086$as_echo "no" >&6; }
3087fi
3088
3089
3090fi
3091if test -z "$ac_cv_prog_CC"; then
3092 ac_ct_CC=$CC
3093 # Extract the first word of "gcc", so it can be a program name with args.
3094set dummy gcc; ac_word=$2
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096$as_echo_n "checking for $ac_word... " >&6; }
3097if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3098 $as_echo_n "(cached) " >&6
3099else
3100 if test -n "$ac_ct_CC"; then
3101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3102else
3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104for as_dir in $PATH
3105do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110 ac_cv_prog_ac_ct_CC="gcc"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3113 fi
3114done
3115 done
3116IFS=$as_save_IFS
3117
3118fi
3119fi
3120ac_ct_CC=$ac_cv_prog_ac_ct_CC
3121if test -n "$ac_ct_CC"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3123$as_echo "$ac_ct_CC" >&6; }
3124else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126$as_echo "no" >&6; }
3127fi
3128
3129 if test "x$ac_ct_CC" = x; then
3130 CC=""
3131 else
3132 case $cross_compiling:$ac_tool_warned in
3133yes:)
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3135$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3136ac_tool_warned=yes ;;
3137esac
3138 CC=$ac_ct_CC
3139 fi
3140else
3141 CC="$ac_cv_prog_CC"
3142fi
3143
3144if test -z "$CC"; then
3145 if test -n "$ac_tool_prefix"; then
3146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3147set dummy ${ac_tool_prefix}cc; ac_word=$2
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149$as_echo_n "checking for $ac_word... " >&6; }
3150if test "${ac_cv_prog_CC+set}" = set; then :
3151 $as_echo_n "(cached) " >&6
3152else
3153 if test -n "$CC"; then
3154 ac_cv_prog_CC="$CC" # Let the user override the test.
3155else
3156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157for as_dir in $PATH
3158do
3159 IFS=$as_save_IFS
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3163 ac_cv_prog_CC="${ac_tool_prefix}cc"
3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 break 2
3166 fi
3167done
3168 done
3169IFS=$as_save_IFS
3170
3171fi
3172fi
3173CC=$ac_cv_prog_CC
3174if test -n "$CC"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3176$as_echo "$CC" >&6; }
3177else
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179$as_echo "no" >&6; }
3180fi
3181
3182
3183 fi
3184fi
3185if test -z "$CC"; then
3186 # Extract the first word of "cc", so it can be a program name with args.
3187set dummy cc; ac_word=$2
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189$as_echo_n "checking for $ac_word... " >&6; }
3190if test "${ac_cv_prog_CC+set}" = set; then :
3191 $as_echo_n "(cached) " >&6
3192else
3193 if test -n "$CC"; then
3194 ac_cv_prog_CC="$CC" # Let the user override the test.
3195else
3196 ac_prog_rejected=no
3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198for as_dir in $PATH
3199do
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3205 ac_prog_rejected=yes
3206 continue
3207 fi
3208 ac_cv_prog_CC="cc"
3209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 break 2
3211 fi
3212done
3213 done
3214IFS=$as_save_IFS
3215
3216if test $ac_prog_rejected = yes; then
3217 # We found a bogon in the path, so make sure we never use it.
3218 set dummy $ac_cv_prog_CC
3219 shift
3220 if test $# != 0; then
3221 # We chose a different compiler from the bogus one.
3222 # However, it has the same basename, so the bogon will be chosen
3223 # first if we set CC to just the basename; use the full file name.
3224 shift
3225 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3226 fi
3227fi
3228fi
3229fi
3230CC=$ac_cv_prog_CC
3231if test -n "$CC"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3233$as_echo "$CC" >&6; }
3234else
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236$as_echo "no" >&6; }
3237fi
3238
3239
3240fi
3241if test -z "$CC"; then
3242 if test -n "$ac_tool_prefix"; then
3243 for ac_prog in cl.exe
3244 do
3245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3246set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248$as_echo_n "checking for $ac_word... " >&6; }
3249if test "${ac_cv_prog_CC+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3251else
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254else
3255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256for as_dir in $PATH
3257do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266done
3267 done
3268IFS=$as_save_IFS
3269
3270fi
3271fi
3272CC=$ac_cv_prog_CC
3273if test -n "$CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275$as_echo "$CC" >&6; }
3276else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278$as_echo "no" >&6; }
3279fi
3280
3281
3282 test -n "$CC" && break
3283 done
3284fi
3285if test -z "$CC"; then
3286 ac_ct_CC=$CC
3287 for ac_prog in cl.exe
3288do
3289 # Extract the first word of "$ac_prog", so it can be a program name with args.
3290set dummy $ac_prog; ac_word=$2
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292$as_echo_n "checking for $ac_word... " >&6; }
3293if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3294 $as_echo_n "(cached) " >&6
3295else
3296 if test -n "$ac_ct_CC"; then
3297 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3298else
3299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH
3301do
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3306 ac_cv_prog_ac_ct_CC="$ac_prog"
3307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 break 2
3309 fi
3310done
3311 done
3312IFS=$as_save_IFS
3313
3314fi
3315fi
3316ac_ct_CC=$ac_cv_prog_ac_ct_CC
3317if test -n "$ac_ct_CC"; then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3319$as_echo "$ac_ct_CC" >&6; }
3320else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322$as_echo "no" >&6; }
3323fi
3324
3325
3326 test -n "$ac_ct_CC" && break
3327done
3328
3329 if test "x$ac_ct_CC" = x; then
3330 CC=""
3331 else
3332 case $cross_compiling:$ac_tool_warned in
3333yes:)
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3336ac_tool_warned=yes ;;
3337esac
3338 CC=$ac_ct_CC
3339 fi
3340fi
3341
3342fi
3343
3344
3345test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347as_fn_error "no acceptable C compiler found in \$PATH
3348See \`config.log' for more details." "$LINENO" 5; }
3349
3350# Provide some information about the compiler.
3351$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3352set X $ac_compile
3353ac_compiler=$2
3354for ac_option in --version -v -V -qversion; do
3355 { { ac_try="$ac_compiler $ac_option >&5"
3356case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359esac
3360eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361$as_echo "$ac_try_echo"; } >&5
3362 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3363 ac_status=$?
3364 if test -s conftest.err; then
3365 sed '10a\
3366... rest of stderr output deleted ...
3367 10q' conftest.err >conftest.er1
3368 cat conftest.er1 >&5
3369 rm -f conftest.er1 conftest.err
3370 fi
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }
3373done
3374
3375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376/* end confdefs.h. */
3377#include <stdio.h>
3378int
3379main ()
3380{
3381FILE *f = fopen ("conftest.out", "w");
3382 return ferror (f) || fclose (f) != 0;
3383
3384 ;
3385 return 0;
3386}
3387_ACEOF
3388ac_clean_files_save=$ac_clean_files
3389ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3390# Try to create an executable without -o first, disregard a.out.
3391# It will help us diagnose broken compilers, and finding out an intuition
3392# of exeext.
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3394$as_echo_n "checking for C compiler default output file name... " >&6; }
3395ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3396
3397# The possible output files:
3398ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3399
3400ac_rmfiles=
3401for ac_file in $ac_files
3402do
3403 case $ac_file in
3404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3405 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3406 esac
3407done
3408rm -f $ac_rmfiles
3409
3410if { { ac_try="$ac_link_default"
3411case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414esac
3415eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416$as_echo "$ac_try_echo"; } >&5
3417 (eval "$ac_link_default") 2>&5
3418 ac_status=$?
3419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420 test $ac_status = 0; }; then :
3421 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3422# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3423# in a Makefile. We should not override ac_cv_exeext if it was cached,
3424# so that the user can short-circuit this test for compilers unknown to
3425# Autoconf.
3426for ac_file in $ac_files ''
3427do
3428 test -f "$ac_file" || continue
3429 case $ac_file in
3430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3431 ;;
3432 [ab].out )
3433 # We found the default executable, but exeext='' is most
3434 # certainly right.
3435 break;;
3436 *.* )
3437 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3438 then :; else
3439 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3440 fi
3441 # We set ac_cv_exeext here because the later test for it is not
3442 # safe: cross compilers may not add the suffix if given an `-o'
3443 # argument, so we may need to know it at that point already.
3444 # Even if this section looks crufty: it has the advantage of
3445 # actually working.
3446 break;;
3447 * )
3448 break;;
3449 esac
3450done
3451test "$ac_cv_exeext" = no && ac_cv_exeext=
3452
3453else
3454 ac_file=''
3455fi
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3457$as_echo "$ac_file" >&6; }
3458if test -z "$ac_file"; then :
3459 $as_echo "$as_me: failed program was:" >&5
3460sed 's/^/| /' conftest.$ac_ext >&5
3461
3462{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464{ as_fn_set_status 77
3465as_fn_error "C compiler cannot create executables
3466See \`config.log' for more details." "$LINENO" 5; }; }
3467fi
3468ac_exeext=$ac_cv_exeext
3469
3470# Check that the compiler produces executables we can run. If not, either
3471# the compiler is broken, or we cross compile.
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3473$as_echo_n "checking whether the C compiler works... " >&6; }
3474# If not cross compiling, check that we can run a simple program.
3475if test "$cross_compiling" != yes; then
3476 if { ac_try='./$ac_file'
3477 { { case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480esac
3481eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482$as_echo "$ac_try_echo"; } >&5
3483 (eval "$ac_try") 2>&5
3484 ac_status=$?
3485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486 test $ac_status = 0; }; }; then
3487 cross_compiling=no
3488 else
3489 if test "$cross_compiling" = maybe; then
3490 cross_compiling=yes
3491 else
3492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3494as_fn_error "cannot run C compiled programs.
3495If you meant to cross compile, use \`--host'.
3496See \`config.log' for more details." "$LINENO" 5; }
3497 fi
3498 fi
3499fi
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3501$as_echo "yes" >&6; }
3502
3503rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3504ac_clean_files=$ac_clean_files_save
3505# Check that the compiler produces executables we can run. If not, either
3506# the compiler is broken, or we cross compile.
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3508$as_echo_n "checking whether we are cross compiling... " >&6; }
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3510$as_echo "$cross_compiling" >&6; }
3511
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3513$as_echo_n "checking for suffix of executables... " >&6; }
3514if { { ac_try="$ac_link"
3515case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518esac
3519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520$as_echo "$ac_try_echo"; } >&5
3521 (eval "$ac_link") 2>&5
3522 ac_status=$?
3523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524 test $ac_status = 0; }; then :
3525 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3526# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3527# work properly (i.e., refer to `conftest.exe'), while it won't with
3528# `rm'.
3529for ac_file in conftest.exe conftest conftest.*; do
3530 test -f "$ac_file" || continue
3531 case $ac_file in
3532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3533 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3534 break;;
3535 * ) break;;
3536 esac
3537done
3538else
3539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3541as_fn_error "cannot compute suffix of executables: cannot compile and link
3542See \`config.log' for more details." "$LINENO" 5; }
3543fi
3544rm -f conftest$ac_cv_exeext
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3546$as_echo "$ac_cv_exeext" >&6; }
3547
3548rm -f conftest.$ac_ext
3549EXEEXT=$ac_cv_exeext
3550ac_exeext=$EXEEXT
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3552$as_echo_n "checking for suffix of object files... " >&6; }
3553if test "${ac_cv_objext+set}" = set; then :
3554 $as_echo_n "(cached) " >&6
3555else
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557/* end confdefs.h. */
3558
3559int
3560main ()
3561{
3562
3563 ;
3564 return 0;
3565}
3566_ACEOF
3567rm -f conftest.o conftest.obj
3568if { { ac_try="$ac_compile"
3569case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3572esac
3573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574$as_echo "$ac_try_echo"; } >&5
3575 (eval "$ac_compile") 2>&5
3576 ac_status=$?
3577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578 test $ac_status = 0; }; then :
3579 for ac_file in conftest.o conftest.obj conftest.*; do
3580 test -f "$ac_file" || continue;
3581 case $ac_file in
3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3583 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3584 break;;
3585 esac
3586done
3587else
3588 $as_echo "$as_me: failed program was:" >&5
3589sed 's/^/| /' conftest.$ac_ext >&5
3590
3591{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593as_fn_error "cannot compute suffix of object files: cannot compile
3594See \`config.log' for more details." "$LINENO" 5; }
3595fi
3596rm -f conftest.$ac_cv_objext conftest.$ac_ext
3597fi
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3599$as_echo "$ac_cv_objext" >&6; }
3600OBJEXT=$ac_cv_objext
3601ac_objext=$OBJEXT
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3603$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3604if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3605 $as_echo_n "(cached) " >&6
3606else
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608/* end confdefs.h. */
3609
3610int
3611main ()
3612{
3613#ifndef __GNUC__
3614 choke me
3615#endif
3616
3617 ;
3618 return 0;
3619}
3620_ACEOF
3621if ac_fn_c_try_compile "$LINENO"; then :
3622 ac_compiler_gnu=yes
3623else
3624 ac_compiler_gnu=no
3625fi
3626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627ac_cv_c_compiler_gnu=$ac_compiler_gnu
3628
3629fi
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3631$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3632if test $ac_compiler_gnu = yes; then
3633 GCC=yes
3634else
3635 GCC=
3636fi
3637ac_test_CFLAGS=${CFLAGS+set}
3638ac_save_CFLAGS=$CFLAGS
3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3640$as_echo_n "checking whether $CC accepts -g... " >&6; }
3641if test "${ac_cv_prog_cc_g+set}" = set; then :
3642 $as_echo_n "(cached) " >&6
3643else
3644 ac_save_c_werror_flag=$ac_c_werror_flag
3645 ac_c_werror_flag=yes
3646 ac_cv_prog_cc_g=no
3647 CFLAGS="-g"
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649/* end confdefs.h. */
3650
3651int
3652main ()
3653{
3654
3655 ;
3656 return 0;
3657}
3658_ACEOF
3659if ac_fn_c_try_compile "$LINENO"; then :
3660 ac_cv_prog_cc_g=yes
3661else
3662 CFLAGS=""
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664/* end confdefs.h. */
3665
3666int
3667main ()
3668{
3669
3670 ;
3671 return 0;
3672}
3673_ACEOF
3674if ac_fn_c_try_compile "$LINENO"; then :
3675
3676else
3677 ac_c_werror_flag=$ac_save_c_werror_flag
3678 CFLAGS="-g"
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680/* end confdefs.h. */
3681
3682int
3683main ()
3684{
3685
3686 ;
3687 return 0;
3688}
3689_ACEOF
3690if ac_fn_c_try_compile "$LINENO"; then :
3691 ac_cv_prog_cc_g=yes
3692fi
3693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694fi
3695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696fi
3697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698 ac_c_werror_flag=$ac_save_c_werror_flag
3699fi
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3701$as_echo "$ac_cv_prog_cc_g" >&6; }
3702if test "$ac_test_CFLAGS" = set; then
3703 CFLAGS=$ac_save_CFLAGS
3704elif test $ac_cv_prog_cc_g = yes; then
3705 if test "$GCC" = yes; then
3706 CFLAGS="-g -O2"
3707 else
3708 CFLAGS="-g"
3709 fi
3710else
3711 if test "$GCC" = yes; then
3712 CFLAGS="-O2"
3713 else
3714 CFLAGS=
3715 fi
3716fi
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3718$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3719if test "${ac_cv_prog_cc_c89+set}" = set; then :
3720 $as_echo_n "(cached) " >&6
3721else
3722 ac_cv_prog_cc_c89=no
3723ac_save_CC=$CC
3724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725/* end confdefs.h. */
3726#include <stdarg.h>
3727#include <stdio.h>
3728#include <sys/types.h>
3729#include <sys/stat.h>
3730/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3731struct buf { int x; };
3732FILE * (*rcsopen) (struct buf *, struct stat *, int);
3733static char *e (p, i)
3734 char **p;
3735 int i;
3736{
3737 return p[i];
3738}
3739static char *f (char * (*g) (char **, int), char **p, ...)
3740{
3741 char *s;
3742 va_list v;
3743 va_start (v,p);
3744 s = g (p, va_arg (v,int));
3745 va_end (v);
3746 return s;
3747}
3748
3749/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3750 function prototypes and stuff, but not '\xHH' hex character constants.
3751 These don't provoke an error unfortunately, instead are silently treated
3752 as 'x'. The following induces an error, until -std is added to get
3753 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3754 array size at least. It's necessary to write '\x00'==0 to get something
3755 that's true only with -std. */
3756int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3757
3758/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3759 inside strings and character constants. */
3760#define FOO(x) 'x'
3761int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3762
3763int test (int i, double x);
3764struct s1 {int (*f) (int a);};
3765struct s2 {int (*f) (double a);};
3766int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3767int argc;
3768char **argv;
3769int
3770main ()
3771{
3772return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3773 ;
3774 return 0;
3775}
3776_ACEOF
3777for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3778 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3779do
3780 CC="$ac_save_CC $ac_arg"
3781 if ac_fn_c_try_compile "$LINENO"; then :
3782 ac_cv_prog_cc_c89=$ac_arg
3783fi
3784rm -f core conftest.err conftest.$ac_objext
3785 test "x$ac_cv_prog_cc_c89" != "xno" && break
3786done
3787rm -f conftest.$ac_ext
3788CC=$ac_save_CC
3789
3790fi
3791# AC_CACHE_VAL
3792case "x$ac_cv_prog_cc_c89" in
3793 x)
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3795$as_echo "none needed" >&6; } ;;
3796 xno)
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3798$as_echo "unsupported" >&6; } ;;
3799 *)
3800 CC="$CC $ac_cv_prog_cc_c89"
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3802$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3803esac
3804if test "x$ac_cv_prog_cc_c89" != xno; then :
3805
3806fi
3807
3808ac_ext=c
3809ac_cpp='$CPP $CPPFLAGS'
3810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813DEPDIR="${am__leading_dot}deps"
3814
3815ac_config_commands="$ac_config_commands depfiles"
3816
3817
3818am_make=${MAKE-make}
3819cat > confinc << 'END'
3820am__doit:
3821 @echo this is the am__doit target
3822.PHONY: am__doit
3823END
3824# If we don't find an include directive, just comment out the code.
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3826$as_echo_n "checking for style of include used by $am_make... " >&6; }
3827am__include="#"
3828am__quote=
3829_am_result=none
3830# First try GNU make style include.
3831echo "include confinc" > confmf
3832# Ignore all kinds of additional output from `make'.
3833case `$am_make -s -f confmf 2> /dev/null` in #(
3834*the\ am__doit\ target*)
3835 am__include=include
3836 am__quote=
3837 _am_result=GNU
3838 ;;
3839esac
3840# Now try BSD make style include.
3841if test "$am__include" = "#"; then
3842 echo '.include "confinc"' > confmf
3843 case `$am_make -s -f confmf 2> /dev/null` in #(
3844 *the\ am__doit\ target*)
3845 am__include=.include
3846 am__quote="\""
3847 _am_result=BSD
3848 ;;
3849 esac
3850fi
3851
3852
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3854$as_echo "$_am_result" >&6; }
3855rm -f confinc confmf
3856
3857# Check whether --enable-dependency-tracking was given.
3858if test "${enable_dependency_tracking+set}" = set; then :
3859 enableval=$enable_dependency_tracking;
3860fi
3861
3862if test "x$enable_dependency_tracking" != xno; then
3863 am_depcomp="$ac_aux_dir/depcomp"
3864 AMDEPBACKSLASH='\'
3865fi
3866 if test "x$enable_dependency_tracking" != xno; then
3867 AMDEP_TRUE=
3868 AMDEP_FALSE='#'
3869else
3870 AMDEP_TRUE='#'
3871 AMDEP_FALSE=
3872fi
3873
3874
3875
3876depcc="$CC" am_compiler_list=
3877
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3879$as_echo_n "checking dependency style of $depcc... " >&6; }
3880if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3881 $as_echo_n "(cached) " >&6
3882else
3883 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3884 # We make a subdir and do the tests there. Otherwise we can end up
3885 # making bogus files that we don't know about and never remove. For
3886 # instance it was reported that on HP-UX the gcc test will end up
3887 # making a dummy file named `D' -- because `-MD' means `put the output
3888 # in D'.
3889 mkdir conftest.dir
3890 # Copy depcomp to subdir because otherwise we won't find it if we're
3891 # using a relative directory.
3892 cp "$am_depcomp" conftest.dir
3893 cd conftest.dir
3894 # We will build objects and dependencies in a subdirectory because
3895 # it helps to detect inapplicable dependency modes. For instance
3896 # both Tru64's cc and ICC support -MD to output dependencies as a
3897 # side effect of compilation, but ICC will put the dependencies in
3898 # the current directory while Tru64 will put them in the object
3899 # directory.
3900 mkdir sub
3901
3902 am_cv_CC_dependencies_compiler_type=none
3903 if test "$am_compiler_list" = ""; then
3904 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3905 fi
3906 am__universal=false
3907 case " $depcc " in #(
3908 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3909 esac
3910
3911 for depmode in $am_compiler_list; do
3912 # Setup a source with many dependencies, because some compilers
3913 # like to wrap large dependency lists on column 80 (with \), and
3914 # we should not choose a depcomp mode which is confused by this.
3915 #
3916 # We need to recreate these files for each test, as the compiler may
3917 # overwrite some of them when testing with obscure command lines.
3918 # This happens at least with the AIX C compiler.
3919 : > sub/conftest.c
3920 for i in 1 2 3 4 5 6; do
3921 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3922 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3923 # Solaris 8's {/usr,}/bin/sh.
3924 touch sub/conftst$i.h
3925 done
3926 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3927
3928 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3929 # mode. It turns out that the SunPro C++ compiler does not properly
3930 # handle `-M -o', and we need to detect this. Also, some Intel
3931 # versions had trouble with output in subdirs
3932 am__obj=sub/conftest.${OBJEXT-o}
3933 am__minus_obj="-o $am__obj"
3934 case $depmode in
3935 gcc)
3936 # This depmode causes a compiler race in universal mode.
3937 test "$am__universal" = false || continue
3938 ;;
3939 nosideeffect)
3940 # after this tag, mechanisms are not by side-effect, so they'll
3941 # only be used when explicitly requested
3942 if test "x$enable_dependency_tracking" = xyes; then
3943 continue
3944 else
3945 break
3946 fi
3947 ;;
3948 msvisualcpp | msvcmsys)
3949 # This compiler won't grok `-c -o', but also, the minuso test has
3950 # not run yet. These depmodes are late enough in the game, and
3951 # so weak that their functioning should not be impacted.
3952 am__obj=conftest.${OBJEXT-o}
3953 am__minus_obj=
3954 ;;
3955 none) break ;;
3956 esac
3957 if depmode=$depmode \
3958 source=sub/conftest.c object=$am__obj \
3959 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3960 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3961 >/dev/null 2>conftest.err &&
3962 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3963 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3964 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3965 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3966 # icc doesn't choke on unknown options, it will just issue warnings
3967 # or remarks (even with -Werror). So we grep stderr for any message
3968 # that says an option was ignored or not supported.
3969 # When given -MP, icc 7.0 and 7.1 complain thusly:
3970 # icc: Command line warning: ignoring option '-M'; no argument required
3971 # The diagnosis changed in icc 8.0:
3972 # icc: Command line remark: option '-MP' not supported
3973 if (grep 'ignoring option' conftest.err ||
3974 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3975 am_cv_CC_dependencies_compiler_type=$depmode
3976 break
3977 fi
3978 fi
3979 done
3980
3981 cd ..
3982 rm -rf conftest.dir
3983else
3984 am_cv_CC_dependencies_compiler_type=none
3985fi
3986
3987fi
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3989$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3990CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3991
3992 if
3993 test "x$enable_dependency_tracking" != xno \
3994 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3995 am__fastdepCC_TRUE=
3996 am__fastdepCC_FALSE='#'
3997else
3998 am__fastdepCC_TRUE='#'
3999 am__fastdepCC_FALSE=
4000fi
4001
4002
4003ac_ext=cpp
4004ac_cpp='$CXXCPP $CPPFLAGS'
4005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4008if test -z "$CXX"; then
4009 if test -n "$CCC"; then
4010 CXX=$CCC
4011 else
4012 if test -n "$ac_tool_prefix"; then
4013 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4014 do
4015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4016set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018$as_echo_n "checking for $ac_word... " >&6; }
4019if test "${ac_cv_prog_CXX+set}" = set; then :
4020 $as_echo_n "(cached) " >&6
4021else
4022 if test -n "$CXX"; then
4023 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4024else
4025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026for as_dir in $PATH
4027do
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4032 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 break 2
4035 fi
4036done
4037 done
4038IFS=$as_save_IFS
4039
4040fi
4041fi
4042CXX=$ac_cv_prog_CXX
4043if test -n "$CXX"; then
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4045$as_echo "$CXX" >&6; }
4046else
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048$as_echo "no" >&6; }
4049fi
4050
4051
4052 test -n "$CXX" && break
4053 done
4054fi
4055if test -z "$CXX"; then
4056 ac_ct_CXX=$CXX
4057 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4058do
4059 # Extract the first word of "$ac_prog", so it can be a program name with args.
4060set dummy $ac_prog; ac_word=$2
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062$as_echo_n "checking for $ac_word... " >&6; }
4063if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4064 $as_echo_n "(cached) " >&6
4065else
4066 if test -n "$ac_ct_CXX"; then
4067 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4068else
4069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070for as_dir in $PATH
4071do
4072 IFS=$as_save_IFS
4073 test -z "$as_dir" && as_dir=.
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4076 ac_cv_prog_ac_ct_CXX="$ac_prog"
4077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4078 break 2
4079 fi
4080done
4081 done
4082IFS=$as_save_IFS
4083
4084fi
4085fi
4086ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4087if test -n "$ac_ct_CXX"; then
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4089$as_echo "$ac_ct_CXX" >&6; }
4090else
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4092$as_echo "no" >&6; }
4093fi
4094
4095
4096 test -n "$ac_ct_CXX" && break
4097done
4098
4099 if test "x$ac_ct_CXX" = x; then
4100 CXX="g++"
4101 else
4102 case $cross_compiling:$ac_tool_warned in
4103yes:)
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4106ac_tool_warned=yes ;;
4107esac
4108 CXX=$ac_ct_CXX
4109 fi
4110fi
4111
4112 fi
4113fi
4114# Provide some information about the compiler.
4115$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4116set X $ac_compile
4117ac_compiler=$2
4118for ac_option in --version -v -V -qversion; do
4119 { { ac_try="$ac_compiler $ac_option >&5"
4120case "(($ac_try" in
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4123esac
4124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4125$as_echo "$ac_try_echo"; } >&5
4126 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4127 ac_status=$?
4128 if test -s conftest.err; then
4129 sed '10a\
4130... rest of stderr output deleted ...
4131 10q' conftest.err >conftest.er1
4132 cat conftest.er1 >&5
4133 rm -f conftest.er1 conftest.err
4134 fi
4135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4136 test $ac_status = 0; }
4137done
4138
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4140$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4141if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4142 $as_echo_n "(cached) " >&6
4143else
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145/* end confdefs.h. */
4146
4147int
4148main ()
4149{
4150#ifndef __GNUC__
4151 choke me
4152#endif
4153
4154 ;
4155 return 0;
4156}
4157_ACEOF
4158if ac_fn_cxx_try_compile "$LINENO"; then :
4159 ac_compiler_gnu=yes
4160else
4161 ac_compiler_gnu=no
4162fi
4163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4165
4166fi
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4168$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4169if test $ac_compiler_gnu = yes; then
4170 GXX=yes
4171else
4172 GXX=
4173fi
4174ac_test_CXXFLAGS=${CXXFLAGS+set}
4175ac_save_CXXFLAGS=$CXXFLAGS
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4177$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4178if test "${ac_cv_prog_cxx_g+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4180else
4181 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4182 ac_cxx_werror_flag=yes
4183 ac_cv_prog_cxx_g=no
4184 CXXFLAGS="-g"
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186/* end confdefs.h. */
4187
4188int
4189main ()
4190{
4191
4192 ;
4193 return 0;
4194}
4195_ACEOF
4196if ac_fn_cxx_try_compile "$LINENO"; then :
4197 ac_cv_prog_cxx_g=yes
4198else
4199 CXXFLAGS=""
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201/* end confdefs.h. */
4202
4203int
4204main ()
4205{
4206
4207 ;
4208 return 0;
4209}
4210_ACEOF
4211if ac_fn_cxx_try_compile "$LINENO"; then :
4212
4213else
4214 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4215 CXXFLAGS="-g"
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217/* end confdefs.h. */
4218
4219int
4220main ()
4221{
4222
4223 ;
4224 return 0;
4225}
4226_ACEOF
4227if ac_fn_cxx_try_compile "$LINENO"; then :
4228 ac_cv_prog_cxx_g=yes
4229fi
4230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231fi
4232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233fi
4234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4236fi
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4238$as_echo "$ac_cv_prog_cxx_g" >&6; }
4239if test "$ac_test_CXXFLAGS" = set; then
4240 CXXFLAGS=$ac_save_CXXFLAGS
4241elif test $ac_cv_prog_cxx_g = yes; then
4242 if test "$GXX" = yes; then
4243 CXXFLAGS="-g -O2"
4244 else
4245 CXXFLAGS="-g"
4246 fi
4247else
4248 if test "$GXX" = yes; then
4249 CXXFLAGS="-O2"
4250 else
4251 CXXFLAGS=
4252 fi
4253fi
4254ac_ext=c
4255ac_cpp='$CPP $CPPFLAGS'
4256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259
4260depcc="$CXX" am_compiler_list=
4261
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4263$as_echo_n "checking dependency style of $depcc... " >&6; }
4264if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4265 $as_echo_n "(cached) " >&6
4266else
4267 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4268 # We make a subdir and do the tests there. Otherwise we can end up
4269 # making bogus files that we don't know about and never remove. For
4270 # instance it was reported that on HP-UX the gcc test will end up
4271 # making a dummy file named `D' -- because `-MD' means `put the output
4272 # in D'.
4273 mkdir conftest.dir
4274 # Copy depcomp to subdir because otherwise we won't find it if we're
4275 # using a relative directory.
4276 cp "$am_depcomp" conftest.dir
4277 cd conftest.dir
4278 # We will build objects and dependencies in a subdirectory because
4279 # it helps to detect inapplicable dependency modes. For instance
4280 # both Tru64's cc and ICC support -MD to output dependencies as a
4281 # side effect of compilation, but ICC will put the dependencies in
4282 # the current directory while Tru64 will put them in the object
4283 # directory.
4284 mkdir sub
4285
4286 am_cv_CXX_dependencies_compiler_type=none
4287 if test "$am_compiler_list" = ""; then
4288 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4289 fi
4290 am__universal=false
4291 case " $depcc " in #(
4292 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4293 esac
4294
4295 for depmode in $am_compiler_list; do
4296 # Setup a source with many dependencies, because some compilers
4297 # like to wrap large dependency lists on column 80 (with \), and
4298 # we should not choose a depcomp mode which is confused by this.
4299 #
4300 # We need to recreate these files for each test, as the compiler may
4301 # overwrite some of them when testing with obscure command lines.
4302 # This happens at least with the AIX C compiler.
4303 : > sub/conftest.c
4304 for i in 1 2 3 4 5 6; do
4305 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4306 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4307 # Solaris 8's {/usr,}/bin/sh.
4308 touch sub/conftst$i.h
4309 done
4310 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4311
4312 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4313 # mode. It turns out that the SunPro C++ compiler does not properly
4314 # handle `-M -o', and we need to detect this. Also, some Intel
4315 # versions had trouble with output in subdirs
4316 am__obj=sub/conftest.${OBJEXT-o}
4317 am__minus_obj="-o $am__obj"
4318 case $depmode in
4319 gcc)
4320 # This depmode causes a compiler race in universal mode.
4321 test "$am__universal" = false || continue
4322 ;;
4323 nosideeffect)
4324 # after this tag, mechanisms are not by side-effect, so they'll
4325 # only be used when explicitly requested
4326 if test "x$enable_dependency_tracking" = xyes; then
4327 continue
4328 else
4329 break
4330 fi
4331 ;;
4332 msvisualcpp | msvcmsys)
4333 # This compiler won't grok `-c -o', but also, the minuso test has
4334 # not run yet. These depmodes are late enough in the game, and
4335 # so weak that their functioning should not be impacted.
4336 am__obj=conftest.${OBJEXT-o}
4337 am__minus_obj=
4338 ;;
4339 none) break ;;
4340 esac
4341 if depmode=$depmode \
4342 source=sub/conftest.c object=$am__obj \
4343 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4344 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4345 >/dev/null 2>conftest.err &&
4346 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4347 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4348 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4349 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4350 # icc doesn't choke on unknown options, it will just issue warnings
4351 # or remarks (even with -Werror). So we grep stderr for any message
4352 # that says an option was ignored or not supported.
4353 # When given -MP, icc 7.0 and 7.1 complain thusly:
4354 # icc: Command line warning: ignoring option '-M'; no argument required
4355 # The diagnosis changed in icc 8.0:
4356 # icc: Command line remark: option '-MP' not supported
4357 if (grep 'ignoring option' conftest.err ||
4358 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4359 am_cv_CXX_dependencies_compiler_type=$depmode
4360 break
4361 fi
4362 fi
4363 done
4364
4365 cd ..
4366 rm -rf conftest.dir
4367else
4368 am_cv_CXX_dependencies_compiler_type=none
4369fi
4370
4371fi
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4373$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4374CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4375
4376 if
4377 test "x$enable_dependency_tracking" != xno \
4378 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4379 am__fastdepCXX_TRUE=
4380 am__fastdepCXX_FALSE='#'
4381else
4382 am__fastdepCXX_TRUE='#'
4383 am__fastdepCXX_FALSE=
4384fi
4385
4386
4387# AC_PROG_LIBTOOL
4388ac_config_files="$ac_config_files Makefile"
4389
4390
4391if test "${multilib}" = "yes"; then
4392 multilib_arg="--enable-multilib"
4393else
4394 multilib_arg=
4395fi
4396
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
4398$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
4399# Check whether --enable-version-specific-runtime-libs was given.
4400if test "${enable_version_specific_runtime_libs+set}" = set; then :
4401 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4402 yes) enable_version_specific_runtime_libs=yes ;;
4403 no) enable_version_specific_runtime_libs=no ;;
4404 *) as_fn_error "Unknown argument to enable/disable version-specific libs
4405" "$LINENO" 5;;
4406 esac
4407else
4408 enable_version_specific_runtime_libs=no
4409fi
4410
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
4412$as_echo "$enable_version_specific_runtime_libs" >&6; }
4413
4414# Calculate toolexeclibdir
4415# Also toolexecdir, though it's only used in toolexeclibdir
4416case ${enable_version_specific_runtime_libs} in
4417 yes)
4418 # Need the gcc compiler version to know where to install libraries
4419 # and header files if --enable-version-specific-runtime-libs option
4420 # is selected.
4421 toolexecdir='$(libdir)/gcc/$(target_alias)'
4422 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4423 ;;
4424 no)
4425 if test -n "$with_cross_host" &&
4426 test x"$with_cross_host" != x"no"; then
4427 # Install a library built with a cross compiler in tooldir, not libdir.
4428 toolexecdir='$(exec_prefix)/$(target_alias)'
4429 toolexeclibdir='$(toolexecdir)/lib'
4430 else
4431 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4432 toolexeclibdir='$(libdir)'
4433 fi
4434 multi_os_directory=`$CC -print-multi-os-directory`
4435 case $multi_os_directory in
4436 .) ;; # Avoid trailing /.
4437 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4438 esac
4439 ;;
4440esac
4441
4442# Set config_dir based on the target. config_dir specifies where to get
4443# target-specific files. The generic implementation is incomplete, but
4444# contains information on what's needed
4445case "${target}" in
4446
4447 x86_64-*-*)
4448 config_dir="x86"
4449 ;;
4450
4451 i?86-*-*)
4452 config_dir="x86"
4453 ;;
4454
4455 *)
4456 config_dir="generic"
4457 ;;
4458
4459esac
4460
4461
4462# We have linker scripts for appropriate operating systems
4463linux_linker_script=no
4464case "${host}" in
4465 *-*-linux*)
4466 linux_linker_script=yes
4467 ;;
4468esac
4469 if test "$linux_linker_script" = "yes"; then
4470 LINUX_LINKER_SCRIPT_TRUE=
4471 LINUX_LINKER_SCRIPT_FALSE='#'
4472else
4473 LINUX_LINKER_SCRIPT_TRUE='#'
4474 LINUX_LINKER_SCRIPT_FALSE=
4475fi
4476
4477
4478mac_linker_script=no
4479case "${host}" in
4480 *-*-apple*)
4481 mac_linker_script=yes
4482 ;;
4483esac
4484 if test "$mac_linker_script" = "yes"; then
4485 MAC_LINKER_SCRIPT_TRUE=
4486 MAC_LINKER_SCRIPT_FALSE='#'
4487else
4488 MAC_LINKER_SCRIPT_TRUE='#'
4489 MAC_LINKER_SCRIPT_FALSE=
4490fi
4491
4492
4493enable_dlopen=yes
4494
4495
4496
4497case `pwd` in
4498 *\ * | *\ *)
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4500$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4501esac
4502
4503
4504
4505macro_version='2.2.7a'
4506macro_revision='1.3134'
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520ltmain="$ac_aux_dir/ltmain.sh"
4521
4522# Backslashify metacharacters that are still active within
4523# double-quoted strings.
4524sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4525
4526# Same as above, but do not quote variable references.
4527double_quote_subst='s/\(["`\\]\)/\\\1/g'
4528
4529# Sed substitution to delay expansion of an escaped shell variable in a
4530# double_quote_subst'ed string.
4531delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4532
4533# Sed substitution to delay expansion of an escaped single quote.
4534delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4535
4536# Sed substitution to avoid accidental globbing in evaled expressions
4537no_glob_subst='s/\*/\\\*/g'
4538
4539ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4540ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4541ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4542
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4544$as_echo_n "checking how to print strings... " >&6; }
4545# Test print first, because it will be a builtin if present.
4546if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4547 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4548 ECHO='print -r --'
4549elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4550 ECHO='printf %s\n'
4551else
4552 # Use this function as a fallback that always works.
4553 func_fallback_echo ()
4554 {
4555 eval 'cat <<_LTECHO_EOF
4556$1
4557_LTECHO_EOF'
4558 }
4559 ECHO='func_fallback_echo'
4560fi
4561
4562# func_echo_all arg...
4563# Invoke $ECHO with all args, space-separated.
4564func_echo_all ()
4565{
4566 $ECHO ""
4567}
4568
4569case "$ECHO" in
4570 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4571$as_echo "printf" >&6; } ;;
4572 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4573$as_echo "print -r" >&6; } ;;
4574 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4575$as_echo "cat" >&6; } ;;
4576esac
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4592$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4593if test "${ac_cv_path_SED+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4595else
4596 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4597 for ac_i in 1 2 3 4 5 6 7; do
4598 ac_script="$ac_script$as_nl$ac_script"
4599 done
4600 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4601 { ac_script=; unset ac_script;}
4602 if test -z "$SED"; then
4603 ac_path_SED_found=false
4604 # Loop through the user's path and test for each of PROGNAME-LIST
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606for as_dir in $PATH
4607do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_prog in sed gsed; do
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4613 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4614# Check for GNU ac_path_SED and select it if it is found.
4615 # Check for GNU $ac_path_SED
4616case `"$ac_path_SED" --version 2>&1` in
4617*GNU*)
4618 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4619*)
4620 ac_count=0
4621 $as_echo_n 0123456789 >"conftest.in"
4622 while :
4623 do
4624 cat "conftest.in" "conftest.in" >"conftest.tmp"
4625 mv "conftest.tmp" "conftest.in"
4626 cp "conftest.in" "conftest.nl"
4627 $as_echo '' >> "conftest.nl"
4628 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4630 as_fn_arith $ac_count + 1 && ac_count=$as_val
4631 if test $ac_count -gt ${ac_path_SED_max-0}; then
4632 # Best one so far, save it but keep looking for a better one
4633 ac_cv_path_SED="$ac_path_SED"
4634 ac_path_SED_max=$ac_count
4635 fi
4636 # 10*(2^10) chars as input seems more than enough
4637 test $ac_count -gt 10 && break
4638 done
4639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4640esac
4641
4642 $ac_path_SED_found && break 3
4643 done
4644 done
4645 done
4646IFS=$as_save_IFS
4647 if test -z "$ac_cv_path_SED"; then
4648 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4649 fi
4650else
4651 ac_cv_path_SED=$SED
4652fi
4653
4654fi
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4656$as_echo "$ac_cv_path_SED" >&6; }
4657 SED="$ac_cv_path_SED"
4658 rm -f conftest.sed
4659
4660test -z "$SED" && SED=sed
4661Xsed="$SED -e 1s/^X//"
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4674$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4675if test "${ac_cv_path_GREP+set}" = set; then :
4676 $as_echo_n "(cached) " >&6
4677else
4678 if test -z "$GREP"; then
4679 ac_path_GREP_found=false
4680 # Loop through the user's path and test for each of PROGNAME-LIST
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4683do
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_prog in grep ggrep; do
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4689 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4690# Check for GNU ac_path_GREP and select it if it is found.
4691 # Check for GNU $ac_path_GREP
4692case `"$ac_path_GREP" --version 2>&1` in
4693*GNU*)
4694 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4695*)
4696 ac_count=0
4697 $as_echo_n 0123456789 >"conftest.in"
4698 while :
4699 do
4700 cat "conftest.in" "conftest.in" >"conftest.tmp"
4701 mv "conftest.tmp" "conftest.in"
4702 cp "conftest.in" "conftest.nl"
4703 $as_echo 'GREP' >> "conftest.nl"
4704 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4706 as_fn_arith $ac_count + 1 && ac_count=$as_val
4707 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4708 # Best one so far, save it but keep looking for a better one
4709 ac_cv_path_GREP="$ac_path_GREP"
4710 ac_path_GREP_max=$ac_count
4711 fi
4712 # 10*(2^10) chars as input seems more than enough
4713 test $ac_count -gt 10 && break
4714 done
4715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4716esac
4717
4718 $ac_path_GREP_found && break 3
4719 done
4720 done
4721 done
4722IFS=$as_save_IFS
4723 if test -z "$ac_cv_path_GREP"; then
4724 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4725 fi
4726else
4727 ac_cv_path_GREP=$GREP
4728fi
4729
4730fi
4731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4732$as_echo "$ac_cv_path_GREP" >&6; }
4733 GREP="$ac_cv_path_GREP"
4734
4735
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4737$as_echo_n "checking for egrep... " >&6; }
4738if test "${ac_cv_path_EGREP+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4740else
4741 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4742 then ac_cv_path_EGREP="$GREP -E"
4743 else
4744 if test -z "$EGREP"; then
4745 ac_path_EGREP_found=false
4746 # Loop through the user's path and test for each of PROGNAME-LIST
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4749do
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 for ac_prog in egrep; do
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4755 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4756# Check for GNU ac_path_EGREP and select it if it is found.
4757 # Check for GNU $ac_path_EGREP
4758case `"$ac_path_EGREP" --version 2>&1` in
4759*GNU*)
4760 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4761*)
4762 ac_count=0
4763 $as_echo_n 0123456789 >"conftest.in"
4764 while :
4765 do
4766 cat "conftest.in" "conftest.in" >"conftest.tmp"
4767 mv "conftest.tmp" "conftest.in"
4768 cp "conftest.in" "conftest.nl"
4769 $as_echo 'EGREP' >> "conftest.nl"
4770 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4772 as_fn_arith $ac_count + 1 && ac_count=$as_val
4773 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4774 # Best one so far, save it but keep looking for a better one
4775 ac_cv_path_EGREP="$ac_path_EGREP"
4776 ac_path_EGREP_max=$ac_count
4777 fi
4778 # 10*(2^10) chars as input seems more than enough
4779 test $ac_count -gt 10 && break
4780 done
4781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4782esac
4783
4784 $ac_path_EGREP_found && break 3
4785 done
4786 done
4787 done
4788IFS=$as_save_IFS
4789 if test -z "$ac_cv_path_EGREP"; then
4790 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4791 fi
4792else
4793 ac_cv_path_EGREP=$EGREP
4794fi
4795
4796 fi
4797fi
4798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4799$as_echo "$ac_cv_path_EGREP" >&6; }
4800 EGREP="$ac_cv_path_EGREP"
4801
4802
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4804$as_echo_n "checking for fgrep... " >&6; }
4805if test "${ac_cv_path_FGREP+set}" = set; then :
4806 $as_echo_n "(cached) " >&6
4807else
4808 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4809 then ac_cv_path_FGREP="$GREP -F"
4810 else
4811 if test -z "$FGREP"; then
4812 ac_path_FGREP_found=false
4813 # Loop through the user's path and test for each of PROGNAME-LIST
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4816do
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_prog in fgrep; do
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4822 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4823# Check for GNU ac_path_FGREP and select it if it is found.
4824 # Check for GNU $ac_path_FGREP
4825case `"$ac_path_FGREP" --version 2>&1` in
4826*GNU*)
4827 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4828*)
4829 ac_count=0
4830 $as_echo_n 0123456789 >"conftest.in"
4831 while :
4832 do
4833 cat "conftest.in" "conftest.in" >"conftest.tmp"
4834 mv "conftest.tmp" "conftest.in"
4835 cp "conftest.in" "conftest.nl"
4836 $as_echo 'FGREP' >> "conftest.nl"
4837 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4838 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4839 as_fn_arith $ac_count + 1 && ac_count=$as_val
4840 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4841 # Best one so far, save it but keep looking for a better one
4842 ac_cv_path_FGREP="$ac_path_FGREP"
4843 ac_path_FGREP_max=$ac_count
4844 fi
4845 # 10*(2^10) chars as input seems more than enough
4846 test $ac_count -gt 10 && break
4847 done
4848 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4849esac
4850
4851 $ac_path_FGREP_found && break 3
4852 done
4853 done
4854 done
4855IFS=$as_save_IFS
4856 if test -z "$ac_cv_path_FGREP"; then
4857 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4858 fi
4859else
4860 ac_cv_path_FGREP=$FGREP
4861fi
4862
4863 fi
4864fi
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4866$as_echo "$ac_cv_path_FGREP" >&6; }
4867 FGREP="$ac_cv_path_FGREP"
4868
4869
4870test -z "$GREP" && GREP=grep
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890# Check whether --with-gnu-ld was given.
4891if test "${with_gnu_ld+set}" = set; then :
4892 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4893else
4894 with_gnu_ld=no
4895fi
4896
4897ac_prog=ld
4898if test "$GCC" = yes; then
4899 # Check if gcc -print-prog-name=ld gives a path.
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4901$as_echo_n "checking for ld used by $CC... " >&6; }
4902 case $host in
4903 *-*-mingw*)
4904 # gcc leaves a trailing carriage return which upsets mingw
4905 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4906 *)
4907 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4908 esac
4909 case $ac_prog in
4910 # Accept absolute paths.
4911 [\\/]* | ?:[\\/]*)
4912 re_direlt='/[^/][^/]*/\.\./'
4913 # Canonicalize the pathname of ld
4914 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4915 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4916 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4917 done
4918 test -z "$LD" && LD="$ac_prog"
4919 ;;
4920 "")
4921 # If it fails, then pretend we aren't using GCC.
4922 ac_prog=ld
4923 ;;
4924 *)
4925 # If it is relative, then search for the first ld in PATH.
4926 with_gnu_ld=unknown
4927 ;;
4928 esac
4929elif test "$with_gnu_ld" = yes; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4931$as_echo_n "checking for GNU ld... " >&6; }
4932else
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4934$as_echo_n "checking for non-GNU ld... " >&6; }
4935fi
4936if test "${lt_cv_path_LD+set}" = set; then :
4937 $as_echo_n "(cached) " >&6
4938else
4939 if test -z "$LD"; then
4940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4941 for ac_dir in $PATH; do
4942 IFS="$lt_save_ifs"
4943 test -z "$ac_dir" && ac_dir=.
4944 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4945 lt_cv_path_LD="$ac_dir/$ac_prog"
4946 # Check to see if the program is GNU ld. I'd rather use --version,
4947 # but apparently some variants of GNU ld only accept -v.
4948 # Break only if it was the GNU/non-GNU ld that we prefer.
4949 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4950 *GNU* | *'with BFD'*)
4951 test "$with_gnu_ld" != no && break
4952 ;;
4953 *)
4954 test "$with_gnu_ld" != yes && break
4955 ;;
4956 esac
4957 fi
4958 done
4959 IFS="$lt_save_ifs"
4960else
4961 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4962fi
4963fi
4964
4965LD="$lt_cv_path_LD"
4966if test -n "$LD"; then
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4968$as_echo "$LD" >&6; }
4969else
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971$as_echo "no" >&6; }
4972fi
4973test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4975$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4976if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4977 $as_echo_n "(cached) " >&6
4978else
4979 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4980case `$LD -v 2>&1 </dev/null` in
4981*GNU* | *'with BFD'*)
4982 lt_cv_prog_gnu_ld=yes
4983 ;;
4984*)
4985 lt_cv_prog_gnu_ld=no
4986 ;;
4987esac
4988fi
4989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4990$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4991with_gnu_ld=$lt_cv_prog_gnu_ld
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5002$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5003if test "${lt_cv_path_NM+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
5005else
5006 if test -n "$NM"; then
5007 # Let the user override the test.
5008 lt_cv_path_NM="$NM"
5009else
5010 lt_nm_to_check="${ac_tool_prefix}nm"
5011 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5012 lt_nm_to_check="$lt_nm_to_check nm"
5013 fi
5014 for lt_tmp_nm in $lt_nm_to_check; do
5015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5016 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5017 IFS="$lt_save_ifs"
5018 test -z "$ac_dir" && ac_dir=.
5019 tmp_nm="$ac_dir/$lt_tmp_nm"
5020 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5021 # Check to see if the nm accepts a BSD-compat flag.
5022 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5023 # nm: unknown option "B" ignored
5024 # Tru64's nm complains that /dev/null is an invalid object file
5025 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5026 */dev/null* | *'Invalid file or object type'*)
5027 lt_cv_path_NM="$tmp_nm -B"
5028 break
5029 ;;
5030 *)
5031 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5032 */dev/null*)
5033 lt_cv_path_NM="$tmp_nm -p"
5034 break
5035 ;;
5036 *)
5037 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5038 continue # so that we can try to find one that supports BSD flags
5039 ;;
5040 esac
5041 ;;
5042 esac
5043 fi
5044 done
5045 IFS="$lt_save_ifs"
5046 done
5047 : ${lt_cv_path_NM=no}
5048fi
5049fi
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5051$as_echo "$lt_cv_path_NM" >&6; }
5052if test "$lt_cv_path_NM" != "no"; then
5053 NM="$lt_cv_path_NM"
5054else
5055 # Didn't find any BSD compatible name lister, look for dumpbin.
5056 if test -n "$DUMPBIN"; then :
5057 # Let the user override the test.
5058 else
5059 if test -n "$ac_tool_prefix"; then
5060 for ac_prog in dumpbin "link -dump"
5061 do
5062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5063set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065$as_echo_n "checking for $ac_word... " >&6; }
5066if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5067 $as_echo_n "(cached) " >&6
5068else
5069 if test -n "$DUMPBIN"; then
5070 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5071else
5072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073for as_dir in $PATH
5074do
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 break 2
5082 fi
5083done
5084 done
5085IFS=$as_save_IFS
5086
5087fi
5088fi
5089DUMPBIN=$ac_cv_prog_DUMPBIN
5090if test -n "$DUMPBIN"; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5092$as_echo "$DUMPBIN" >&6; }
5093else
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095$as_echo "no" >&6; }
5096fi
5097
5098
5099 test -n "$DUMPBIN" && break
5100 done
5101fi
5102if test -z "$DUMPBIN"; then
5103 ac_ct_DUMPBIN=$DUMPBIN
5104 for ac_prog in dumpbin "link -dump"
5105do
5106 # Extract the first word of "$ac_prog", so it can be a program name with args.
5107set dummy $ac_prog; ac_word=$2
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109$as_echo_n "checking for $ac_word... " >&6; }
5110if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5111 $as_echo_n "(cached) " >&6
5112else
5113 if test -n "$ac_ct_DUMPBIN"; then
5114 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5115else
5116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117for as_dir in $PATH
5118do
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5123 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5126 fi
5127done
5128 done
5129IFS=$as_save_IFS
5130
5131fi
5132fi
5133ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5134if test -n "$ac_ct_DUMPBIN"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5136$as_echo "$ac_ct_DUMPBIN" >&6; }
5137else
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139$as_echo "no" >&6; }
5140fi
5141
5142
5143 test -n "$ac_ct_DUMPBIN" && break
5144done
5145
5146 if test "x$ac_ct_DUMPBIN" = x; then
5147 DUMPBIN=":"
5148 else
5149 case $cross_compiling:$ac_tool_warned in
5150yes:)
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5153ac_tool_warned=yes ;;
5154esac
5155 DUMPBIN=$ac_ct_DUMPBIN
5156 fi
5157fi
5158
5159 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5160 *COFF*)
5161 DUMPBIN="$DUMPBIN -symbols"
5162 ;;
5163 *)
5164 DUMPBIN=:
5165 ;;
5166 esac
5167 fi
5168
5169 if test "$DUMPBIN" != ":"; then
5170 NM="$DUMPBIN"
5171 fi
5172fi
5173test -z "$NM" && NM=nm
5174
5175
5176
5177
5178
5179
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5181$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5182if test "${lt_cv_nm_interface+set}" = set; then :
5183 $as_echo_n "(cached) " >&6
5184else
5185 lt_cv_nm_interface="BSD nm"
5186 echo "int some_variable = 0;" > conftest.$ac_ext
5187 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5188 (eval "$ac_compile" 2>conftest.err)
5189 cat conftest.err >&5
5190 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5191 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5192 cat conftest.err >&5
5193 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5194 cat conftest.out >&5
5195 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5196 lt_cv_nm_interface="MS dumpbin"
5197 fi
5198 rm -f conftest*
5199fi
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5201$as_echo "$lt_cv_nm_interface" >&6; }
5202
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5204$as_echo_n "checking whether ln -s works... " >&6; }
5205LN_S=$as_ln_s
5206if test "$LN_S" = "ln -s"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5208$as_echo "yes" >&6; }
5209else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5211$as_echo "no, using $LN_S" >&6; }
5212fi
5213
5214# find the maximum length of command line arguments
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5216$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5217if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5218 $as_echo_n "(cached) " >&6
5219else
5220 i=0
5221 teststring="ABCD"
5222
5223 case $build_os in
5224 msdosdjgpp*)
5225 # On DJGPP, this test can blow up pretty badly due to problems in libc
5226 # (any single argument exceeding 2000 bytes causes a buffer overrun
5227 # during glob expansion). Even if it were fixed, the result of this
5228 # check would be larger than it should be.
5229 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5230 ;;
5231
5232 gnu*)
5233 # Under GNU Hurd, this test is not required because there is
5234 # no limit to the length of command line arguments.
5235 # Libtool will interpret -1 as no limit whatsoever
5236 lt_cv_sys_max_cmd_len=-1;
5237 ;;
5238
5239 cygwin* | mingw* | cegcc*)
5240 # On Win9x/ME, this test blows up -- it succeeds, but takes
5241 # about 5 minutes as the teststring grows exponentially.
5242 # Worse, since 9x/ME are not pre-emptively multitasking,
5243 # you end up with a "frozen" computer, even though with patience
5244 # the test eventually succeeds (with a max line length of 256k).
5245 # Instead, let's just punt: use the minimum linelength reported by
5246 # all of the supported platforms: 8192 (on NT/2K/XP).
5247 lt_cv_sys_max_cmd_len=8192;
5248 ;;
5249
5250 mint*)
5251 # On MiNT this can take a long time and run out of memory.
5252 lt_cv_sys_max_cmd_len=8192;
5253 ;;
5254
5255 amigaos*)
5256 # On AmigaOS with pdksh, this test takes hours, literally.
5257 # So we just punt and use a minimum line length of 8192.
5258 lt_cv_sys_max_cmd_len=8192;
5259 ;;
5260
5261 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5262 # This has been around since 386BSD, at least. Likely further.
5263 if test -x /sbin/sysctl; then
5264 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5265 elif test -x /usr/sbin/sysctl; then
5266 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5267 else
5268 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5269 fi
5270 # And add a safety zone
5271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5272 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5273 ;;
5274
5275 interix*)
5276 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5277 lt_cv_sys_max_cmd_len=196608
5278 ;;
5279
5280 osf*)
5281 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5282 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5283 # nice to cause kernel panics so lets avoid the loop below.
5284 # First set a reasonable default.
5285 lt_cv_sys_max_cmd_len=16384
5286 #
5287 if test -x /sbin/sysconfig; then
5288 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5289 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5290 esac
5291 fi
5292 ;;
5293 sco3.2v5*)
5294 lt_cv_sys_max_cmd_len=102400
5295 ;;
5296 sysv5* | sco5v6* | sysv4.2uw2*)
5297 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5298 if test -n "$kargmax"; then
5299 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5300 else
5301 lt_cv_sys_max_cmd_len=32768
5302 fi
5303 ;;
5304 *)
5305 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5306 if test -n "$lt_cv_sys_max_cmd_len"; then
5307 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5308 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5309 else
5310 # Make teststring a little bigger before we do anything with it.
5311 # a 1K string should be a reasonable start.
5312 for i in 1 2 3 4 5 6 7 8 ; do
5313 teststring=$teststring$teststring
5314 done
5315 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5316 # If test is not a shell built-in, we'll probably end up computing a
5317 # maximum length that is only half of the actual maximum length, but
5318 # we can't tell.
5319 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5320 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5321 test $i != 17 # 1/2 MB should be enough
5322 do
5323 i=`expr $i + 1`
5324 teststring=$teststring$teststring
5325 done
5326 # Only check the string length outside the loop.
5327 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5328 teststring=
5329 # Add a significant safety factor because C++ compilers can tack on
5330 # massive amounts of additional arguments before passing them to the
5331 # linker. It appears as though 1/2 is a usable value.
5332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5333 fi
5334 ;;
5335 esac
5336
5337fi
5338
5339if test -n $lt_cv_sys_max_cmd_len ; then
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5341$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5342else
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5344$as_echo "none" >&6; }
5345fi
5346max_cmd_len=$lt_cv_sys_max_cmd_len
5347
5348
5349
5350
5351
5352
5353: ${CP="cp -f"}
5354: ${MV="mv -f"}
5355: ${RM="rm -f"}
5356
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5358$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5359# Try some XSI features
5360xsi_shell=no
5361( _lt_dummy="a/b/c"
5362 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5363 = c,a/b,, \
5364 && eval 'test $(( 1 + 1 )) -eq 2 \
5365 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5366 && xsi_shell=yes
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5368$as_echo "$xsi_shell" >&6; }
5369
5370
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5372$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5373lt_shell_append=no
5374( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5375 >/dev/null 2>&1 \
5376 && lt_shell_append=yes
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5378$as_echo "$lt_shell_append" >&6; }
5379
5380
5381if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5382 lt_unset=unset
5383else
5384 lt_unset=false
5385fi
5386
5387
5388
5389
5390
5391# test EBCDIC or ASCII
5392case `echo X|tr X '\101'` in
5393 A) # ASCII based system
5394 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5395 lt_SP2NL='tr \040 \012'
5396 lt_NL2SP='tr \015\012 \040\040'
5397 ;;
5398 *) # EBCDIC based system
5399 lt_SP2NL='tr \100 \n'
5400 lt_NL2SP='tr \r\n \100\100'
5401 ;;
5402esac
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5413$as_echo_n "checking for $LD option to reload object files... " >&6; }
5414if test "${lt_cv_ld_reload_flag+set}" = set; then :
5415 $as_echo_n "(cached) " >&6
5416else
5417 lt_cv_ld_reload_flag='-r'
5418fi
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5420$as_echo "$lt_cv_ld_reload_flag" >&6; }
5421reload_flag=$lt_cv_ld_reload_flag
5422case $reload_flag in
5423"" | " "*) ;;
5424*) reload_flag=" $reload_flag" ;;
5425esac
5426reload_cmds='$LD$reload_flag -o $output$reload_objs'
5427case $host_os in
5428 darwin*)
5429 if test "$GCC" = yes; then
5430 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5431 else
5432 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5433 fi
5434 ;;
5435esac
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445if test -n "$ac_tool_prefix"; then
5446 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5447set dummy ${ac_tool_prefix}objdump; 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 test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5451 $as_echo_n "(cached) " >&6
5452else
5453 if test -n "$OBJDUMP"; then
5454 ac_cv_prog_OBJDUMP="$OBJDUMP" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
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
5473OBJDUMP=$ac_cv_prog_OBJDUMP
5474if test -n "$OBJDUMP"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5476$as_echo "$OBJDUMP" >&6; }
5477else
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479$as_echo "no" >&6; }
5480fi
5481
5482
5483fi
5484if test -z "$ac_cv_prog_OBJDUMP"; then
5485 ac_ct_OBJDUMP=$OBJDUMP
5486 # Extract the first word of "objdump", so it can be a program name with args.
5487set dummy objdump; ac_word=$2
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489$as_echo_n "checking for $ac_word... " >&6; }
5490if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5491 $as_echo_n "(cached) " >&6
5492else
5493 if test -n "$ac_ct_OBJDUMP"; then
5494 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5495else
5496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497for as_dir in $PATH
5498do
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 break 2
5506 fi
5507done
5508 done
5509IFS=$as_save_IFS
5510
5511fi
5512fi
5513ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5514if test -n "$ac_ct_OBJDUMP"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5516$as_echo "$ac_ct_OBJDUMP" >&6; }
5517else
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519$as_echo "no" >&6; }
5520fi
5521
5522 if test "x$ac_ct_OBJDUMP" = x; then
5523 OBJDUMP="false"
5524 else
5525 case $cross_compiling:$ac_tool_warned in
5526yes:)
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5529ac_tool_warned=yes ;;
5530esac
5531 OBJDUMP=$ac_ct_OBJDUMP
5532 fi
5533else
5534 OBJDUMP="$ac_cv_prog_OBJDUMP"
5535fi
5536
5537test -z "$OBJDUMP" && OBJDUMP=objdump
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5548$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5549if test "${lt_cv_deplibs_check_method+set}" = set; then :
5550 $as_echo_n "(cached) " >&6
5551else
5552 lt_cv_file_magic_cmd='$MAGIC_CMD'
5553lt_cv_file_magic_test_file=
5554lt_cv_deplibs_check_method='unknown'
5555# Need to set the preceding variable on all platforms that support
5556# interlibrary dependencies.
5557# 'none' -- dependencies not supported.
5558# `unknown' -- same as none, but documents that we really don't know.
5559# 'pass_all' -- all dependencies passed with no checks.
5560# 'test_compile' -- check by making test program.
5561# 'file_magic [[regex]]' -- check by looking for files in library path
5562# which responds to the $file_magic_cmd with a given extended regex.
5563# If you have `file' or equivalent on your system and you're not sure
5564# whether `pass_all' will *always* work, you probably want this one.
5565
5566case $host_os in
5567aix[4-9]*)
5568 lt_cv_deplibs_check_method=pass_all
5569 ;;
5570
5571beos*)
5572 lt_cv_deplibs_check_method=pass_all
5573 ;;
5574
5575bsdi[45]*)
5576 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5577 lt_cv_file_magic_cmd='/usr/bin/file -L'
5578 lt_cv_file_magic_test_file=/shlib/libc.so
5579 ;;
5580
5581cygwin*)
5582 # func_win32_libid is a shell function defined in ltmain.sh
5583 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5584 lt_cv_file_magic_cmd='func_win32_libid'
5585 ;;
5586
5587mingw* | pw32*)
5588 # Base MSYS/MinGW do not provide the 'file' command needed by
5589 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5590 # unless we find 'file', for example because we are cross-compiling.
5591 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5592 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5593 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5594 lt_cv_file_magic_cmd='func_win32_libid'
5595 else
5596 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5597 lt_cv_file_magic_cmd='$OBJDUMP -f'
5598 fi
5599 ;;
5600
5601cegcc*)
5602 # use the weaker test based on 'objdump'. See mingw*.
5603 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5604 lt_cv_file_magic_cmd='$OBJDUMP -f'
5605 ;;
5606
5607darwin* | rhapsody*)
5608 lt_cv_deplibs_check_method=pass_all
5609 ;;
5610
5611freebsd* | dragonfly*)
5612 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5613 case $host_cpu in
5614 i*86 )
5615 # Not sure whether the presence of OpenBSD here was a mistake.
5616 # Let's accept both of them until this is cleared up.
5617 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5618 lt_cv_file_magic_cmd=/usr/bin/file
5619 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5620 ;;
5621 esac
5622 else
5623 lt_cv_deplibs_check_method=pass_all
5624 fi
5625 ;;
5626
5627gnu*)
5628 lt_cv_deplibs_check_method=pass_all
5629 ;;
5630
5631haiku*)
5632 lt_cv_deplibs_check_method=pass_all
5633 ;;
5634
5635hpux10.20* | hpux11*)
5636 lt_cv_file_magic_cmd=/usr/bin/file
5637 case $host_cpu in
5638 ia64*)
5639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5640 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5641 ;;
5642 hppa*64*)
5643 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]'
5644 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5645 ;;
5646 *)
5647 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5648 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5649 ;;
5650 esac
5651 ;;
5652
5653interix[3-9]*)
5654 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5656 ;;
5657
5658irix5* | irix6* | nonstopux*)
5659 case $LD in
5660 *-32|*"-32 ") libmagic=32-bit;;
5661 *-n32|*"-n32 ") libmagic=N32;;
5662 *-64|*"-64 ") libmagic=64-bit;;
5663 *) libmagic=never-match;;
5664 esac
5665 lt_cv_deplibs_check_method=pass_all
5666 ;;
5667
5668# This must be Linux ELF.
5669linux* | k*bsd*-gnu | kopensolaris*-gnu)
5670 lt_cv_deplibs_check_method=pass_all
5671 ;;
5672
5673netbsd*)
5674 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5676 else
5677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5678 fi
5679 ;;
5680
5681newos6*)
5682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5683 lt_cv_file_magic_cmd=/usr/bin/file
5684 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5685 ;;
5686
5687*nto* | *qnx*)
5688 lt_cv_deplibs_check_method=pass_all
5689 ;;
5690
5691openbsd*)
5692 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5694 else
5695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5696 fi
5697 ;;
5698
5699osf3* | osf4* | osf5*)
5700 lt_cv_deplibs_check_method=pass_all
5701 ;;
5702
5703rdos*)
5704 lt_cv_deplibs_check_method=pass_all
5705 ;;
5706
5707solaris*)
5708 lt_cv_deplibs_check_method=pass_all
5709 ;;
5710
5711sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5712 lt_cv_deplibs_check_method=pass_all
5713 ;;
5714
5715sysv4 | sysv4.3*)
5716 case $host_vendor in
5717 motorola)
5718 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]'
5719 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5720 ;;
5721 ncr)
5722 lt_cv_deplibs_check_method=pass_all
5723 ;;
5724 sequent)
5725 lt_cv_file_magic_cmd='/bin/file'
5726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5727 ;;
5728 sni)
5729 lt_cv_file_magic_cmd='/bin/file'
5730 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5731 lt_cv_file_magic_test_file=/lib/libc.so
5732 ;;
5733 siemens)
5734 lt_cv_deplibs_check_method=pass_all
5735 ;;
5736 pc)
5737 lt_cv_deplibs_check_method=pass_all
5738 ;;
5739 esac
5740 ;;
5741
5742tpf*)
5743 lt_cv_deplibs_check_method=pass_all
5744 ;;
5745esac
5746
5747fi
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5749$as_echo "$lt_cv_deplibs_check_method" >&6; }
5750file_magic_cmd=$lt_cv_file_magic_cmd
5751deplibs_check_method=$lt_cv_deplibs_check_method
5752test -z "$deplibs_check_method" && deplibs_check_method=unknown
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765if test -n "$ac_tool_prefix"; then
5766 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5767set dummy ${ac_tool_prefix}ar; ac_word=$2
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769$as_echo_n "checking for $ac_word... " >&6; }
5770if test "${ac_cv_prog_AR+set}" = set; then :
5771 $as_echo_n "(cached) " >&6
5772else
5773 if test -n "$AR"; then
5774 ac_cv_prog_AR="$AR" # Let the user override the test.
5775else
5776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777for as_dir in $PATH
5778do
5779 IFS=$as_save_IFS
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783 ac_cv_prog_AR="${ac_tool_prefix}ar"
5784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 break 2
5786 fi
5787done
5788 done
5789IFS=$as_save_IFS
5790
5791fi
5792fi
5793AR=$ac_cv_prog_AR
5794if test -n "$AR"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5796$as_echo "$AR" >&6; }
5797else
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799$as_echo "no" >&6; }
5800fi
5801
5802
5803fi
5804if test -z "$ac_cv_prog_AR"; then
5805 ac_ct_AR=$AR
5806 # Extract the first word of "ar", so it can be a program name with args.
5807set dummy ar; ac_word=$2
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809$as_echo_n "checking for $ac_word... " >&6; }
5810if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5812else
5813 if test -n "$ac_ct_AR"; then
5814 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5815else
5816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817for as_dir in $PATH
5818do
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823 ac_cv_prog_ac_ct_AR="ar"
5824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 break 2
5826 fi
5827done
5828 done
5829IFS=$as_save_IFS
5830
5831fi
5832fi
5833ac_ct_AR=$ac_cv_prog_ac_ct_AR
5834if test -n "$ac_ct_AR"; then
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5836$as_echo "$ac_ct_AR" >&6; }
5837else
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839$as_echo "no" >&6; }
5840fi
5841
5842 if test "x$ac_ct_AR" = x; then
5843 AR="false"
5844 else
5845 case $cross_compiling:$ac_tool_warned in
5846yes:)
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5849ac_tool_warned=yes ;;
5850esac
5851 AR=$ac_ct_AR
5852 fi
5853else
5854 AR="$ac_cv_prog_AR"
5855fi
5856
5857test -z "$AR" && AR=ar
5858test -z "$AR_FLAGS" && AR_FLAGS=cru
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870if test -n "$ac_tool_prefix"; then
5871 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5872set dummy ${ac_tool_prefix}strip; 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 test "${ac_cv_prog_STRIP+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5877else
5878 if test -n "$STRIP"; then
5879 ac_cv_prog_STRIP="$STRIP" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
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
5898STRIP=$ac_cv_prog_STRIP
5899if test -n "$STRIP"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5901$as_echo "$STRIP" >&6; }
5902else
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904$as_echo "no" >&6; }
5905fi
5906
5907
5908fi
5909if test -z "$ac_cv_prog_STRIP"; then
5910 ac_ct_STRIP=$STRIP
5911 # Extract the first word of "strip", so it can be a program name with args.
5912set dummy strip; ac_word=$2
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914$as_echo_n "checking for $ac_word... " >&6; }
5915if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5917else
5918 if test -n "$ac_ct_STRIP"; then
5919 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5920else
5921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922for as_dir in $PATH
5923do
5924 IFS=$as_save_IFS
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5928 ac_cv_prog_ac_ct_STRIP="strip"
5929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 break 2
5931 fi
5932done
5933 done
5934IFS=$as_save_IFS
5935
5936fi
5937fi
5938ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5939if test -n "$ac_ct_STRIP"; then
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5941$as_echo "$ac_ct_STRIP" >&6; }
5942else
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944$as_echo "no" >&6; }
5945fi
5946
5947 if test "x$ac_ct_STRIP" = x; then
5948 STRIP=":"
5949 else
5950 case $cross_compiling:$ac_tool_warned in
5951yes:)
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5954ac_tool_warned=yes ;;
5955esac
5956 STRIP=$ac_ct_STRIP
5957 fi
5958else
5959 STRIP="$ac_cv_prog_STRIP"
5960fi
5961
5962test -z "$STRIP" && STRIP=:
5963
5964
5965
5966
5967
5968
5969if test -n "$ac_tool_prefix"; then
5970 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5971set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973$as_echo_n "checking for $ac_word... " >&6; }
5974if test "${ac_cv_prog_RANLIB+set}" = set; then :
5975 $as_echo_n "(cached) " >&6
5976else
5977 if test -n "$RANLIB"; then
5978 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5979else
5980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981for as_dir in $PATH
5982do
5983 IFS=$as_save_IFS
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5987 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 break 2
5990 fi
5991done
5992 done
5993IFS=$as_save_IFS
5994
5995fi
5996fi
5997RANLIB=$ac_cv_prog_RANLIB
5998if test -n "$RANLIB"; then
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6000$as_echo "$RANLIB" >&6; }
6001else
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003$as_echo "no" >&6; }
6004fi
6005
6006
6007fi
6008if test -z "$ac_cv_prog_RANLIB"; then
6009 ac_ct_RANLIB=$RANLIB
6010 # Extract the first word of "ranlib", so it can be a program name with args.
6011set dummy ranlib; ac_word=$2
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013$as_echo_n "checking for $ac_word... " >&6; }
6014if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6015 $as_echo_n "(cached) " >&6
6016else
6017 if test -n "$ac_ct_RANLIB"; then
6018 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6019else
6020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021for as_dir in $PATH
6022do
6023 IFS=$as_save_IFS
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6027 ac_cv_prog_ac_ct_RANLIB="ranlib"
6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 break 2
6030 fi
6031done
6032 done
6033IFS=$as_save_IFS
6034
6035fi
6036fi
6037ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6038if test -n "$ac_ct_RANLIB"; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6040$as_echo "$ac_ct_RANLIB" >&6; }
6041else
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043$as_echo "no" >&6; }
6044fi
6045
6046 if test "x$ac_ct_RANLIB" = x; then
6047 RANLIB=":"
6048 else
6049 case $cross_compiling:$ac_tool_warned in
6050yes:)
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6053ac_tool_warned=yes ;;
6054esac
6055 RANLIB=$ac_ct_RANLIB
6056 fi
6057else
6058 RANLIB="$ac_cv_prog_RANLIB"
6059fi
6060
6061test -z "$RANLIB" && RANLIB=:
6062
6063
6064
6065
6066
6067
6068# Determine commands to create old-style static archives.
6069old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6070old_postinstall_cmds='chmod 644 $oldlib'
6071old_postuninstall_cmds=
6072
6073if test -n "$RANLIB"; then
6074 case $host_os in
6075 openbsd*)
6076 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6077 ;;
6078 *)
6079 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6080 ;;
6081 esac
6082 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6083fi
6084
6085case $host_os in
6086 darwin*)
6087 lock_old_archive_extraction=yes ;;
6088 *)
6089 lock_old_archive_extraction=no ;;
6090esac
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130# If no C compiler was specified, use CC.
6131LTCC=${LTCC-"$CC"}
6132
6133# If no C compiler flags were specified, use CFLAGS.
6134LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6135
6136# Allow CC to be a program name with arguments.
6137compiler=$CC
6138
6139
6140# Check for command to grab the raw symbol name followed by C symbol from nm.
6141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6142$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6143if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6144 $as_echo_n "(cached) " >&6
6145else
6146
6147# These are sane defaults that work on at least a few old systems.
6148# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6149
6150# Character class describing NM global symbol codes.
6151symcode='[BCDEGRST]'
6152
6153# Regexp to match symbols that can be accessed directly from C.
6154sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6155
6156# Define system-specific variables.
6157case $host_os in
6158aix*)
6159 symcode='[BCDT]'
6160 ;;
6161cygwin* | mingw* | pw32* | cegcc*)
6162 symcode='[ABCDGISTW]'
6163 ;;
6164hpux*)
6165 if test "$host_cpu" = ia64; then
6166 symcode='[ABCDEGRST]'
6167 fi
6168 ;;
6169irix* | nonstopux*)
6170 symcode='[BCDEGRST]'
6171 ;;
6172osf*)
6173 symcode='[BCDEGQRST]'
6174 ;;
6175solaris*)
6176 symcode='[BDRT]'
6177 ;;
6178sco3.2v5*)
6179 symcode='[DT]'
6180 ;;
6181sysv4.2uw2*)
6182 symcode='[DT]'
6183 ;;
6184sysv5* | sco5v6* | unixware* | OpenUNIX*)
6185 symcode='[ABDT]'
6186 ;;
6187sysv4)
6188 symcode='[DFNSTU]'
6189 ;;
6190esac
6191
6192# If we're using GNU nm, then use its standard symbol codes.
6193case `$NM -V 2>&1` in
6194*GNU* | *'with BFD'*)
6195 symcode='[ABCDGIRSTW]' ;;
6196esac
6197
6198# Transform an extracted symbol line into a proper C declaration.
6199# Some systems (esp. on ia64) link data and code symbols differently,
6200# so use this general approach.
6201lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6202
6203# Transform an extracted symbol line into symbol name and symbol address
6204lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6205lt_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'"
6206
6207# Handle CRLF in mingw tool chain
6208opt_cr=
6209case $build_os in
6210mingw*)
6211 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6212 ;;
6213esac
6214
6215# Try without a prefix underscore, then with it.
6216for ac_symprfx in "" "_"; do
6217
6218 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6219 symxfrm="\\1 $ac_symprfx\\2 \\2"
6220
6221 # Write the raw and C identifiers.
6222 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6223 # Fake it for dumpbin and say T for any non-static function
6224 # and D for any global variable.
6225 # Also find C++ and __fastcall symbols from MSVC++,
6226 # which start with @ or ?.
6227 lt_cv_sys_global_symbol_pipe="$AWK '"\
6228" {last_section=section; section=\$ 3};"\
6229" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6230" \$ 0!~/External *\|/{next};"\
6231" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6232" {if(hide[section]) next};"\
6233" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6234" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6235" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6236" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6237" ' prfx=^$ac_symprfx"
6238 else
6239 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6240 fi
6241
6242 # Check to see that the pipe works correctly.
6243 pipe_works=no
6244
6245 rm -f conftest*
6246 cat > conftest.$ac_ext <<_LT_EOF
6247#ifdef __cplusplus
6248extern "C" {
6249#endif
6250char nm_test_var;
6251void nm_test_func(void);
6252void nm_test_func(void){}
6253#ifdef __cplusplus
6254}
6255#endif
6256int main(){nm_test_var='a';nm_test_func();return(0);}
6257_LT_EOF
6258
6259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6260 (eval $ac_compile) 2>&5
6261 ac_status=$?
6262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6263 test $ac_status = 0; }; then
6264 # Now try to grab the symbols.
6265 nlist=conftest.nm
6266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6267 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6268 ac_status=$?
6269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6270 test $ac_status = 0; } && test -s "$nlist"; then
6271 # Try sorting and uniquifying the output.
6272 if sort "$nlist" | uniq > "$nlist"T; then
6273 mv -f "$nlist"T "$nlist"
6274 else
6275 rm -f "$nlist"T
6276 fi
6277
6278 # Make sure that we snagged all the symbols we need.
6279 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6280 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6281 cat <<_LT_EOF > conftest.$ac_ext
6282#ifdef __cplusplus
6283extern "C" {
6284#endif
6285
6286_LT_EOF
6287 # Now generate the symbol file.
6288 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6289
6290 cat <<_LT_EOF >> conftest.$ac_ext
6291
6292/* The mapping between symbol names and symbols. */
6293const struct {
6294 const char *name;
6295 void *address;
6296}
6297lt__PROGRAM__LTX_preloaded_symbols[] =
6298{
6299 { "@PROGRAM@", (void *) 0 },
6300_LT_EOF
6301 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6302 cat <<\_LT_EOF >> conftest.$ac_ext
6303 {0, (void *) 0}
6304};
6305
6306/* This works around a problem in FreeBSD linker */
6307#ifdef FREEBSD_WORKAROUND
6308static const void *lt_preloaded_setup() {
6309 return lt__PROGRAM__LTX_preloaded_symbols;
6310}
6311#endif
6312
6313#ifdef __cplusplus
6314}
6315#endif
6316_LT_EOF
6317 # Now try linking the two files.
6318 mv conftest.$ac_objext conftstm.$ac_objext
6319 lt_save_LIBS="$LIBS"
6320 lt_save_CFLAGS="$CFLAGS"
6321 LIBS="conftstm.$ac_objext"
6322 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6324 (eval $ac_link) 2>&5
6325 ac_status=$?
6326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6327 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6328 pipe_works=yes
6329 fi
6330 LIBS="$lt_save_LIBS"
6331 CFLAGS="$lt_save_CFLAGS"
6332 else
6333 echo "cannot find nm_test_func in $nlist" >&5
6334 fi
6335 else
6336 echo "cannot find nm_test_var in $nlist" >&5
6337 fi
6338 else
6339 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6340 fi
6341 else
6342 echo "$progname: failed program was:" >&5
6343 cat conftest.$ac_ext >&5
6344 fi
6345 rm -rf conftest* conftst*
6346
6347 # Do not use the global_symbol_pipe unless it works.
6348 if test "$pipe_works" = yes; then
6349 break
6350 else
6351 lt_cv_sys_global_symbol_pipe=
6352 fi
6353done
6354
6355fi
6356
6357if test -z "$lt_cv_sys_global_symbol_pipe"; then
6358 lt_cv_sys_global_symbol_to_cdecl=
6359fi
6360if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6362$as_echo "failed" >&6; }
6363else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6365$as_echo "ok" >&6; }
6366fi
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390# Check whether --enable-libtool-lock was given.
6391if test "${enable_libtool_lock+set}" = set; then :
6392 enableval=$enable_libtool_lock;
6393fi
6394
6395test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6396
6397# Some flags need to be propagated to the compiler or linker for good
6398# libtool support.
6399case $host in
6400ia64-*-hpux*)
6401 # Find out which ABI we are using.
6402 echo 'int i;' > conftest.$ac_ext
6403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6404 (eval $ac_compile) 2>&5
6405 ac_status=$?
6406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407 test $ac_status = 0; }; then
6408 case `/usr/bin/file conftest.$ac_objext` in
6409 *ELF-32*)
6410 HPUX_IA64_MODE="32"
6411 ;;
6412 *ELF-64*)
6413 HPUX_IA64_MODE="64"
6414 ;;
6415 esac
6416 fi
6417 rm -rf conftest*
6418 ;;
6419*-*-irix6*)
6420 # Find out which ABI we are using.
6421 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6423 (eval $ac_compile) 2>&5
6424 ac_status=$?
6425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6426 test $ac_status = 0; }; then
6427 if test "$lt_cv_prog_gnu_ld" = yes; then
6428 case `/usr/bin/file conftest.$ac_objext` in
6429 *32-bit*)
6430 LD="${LD-ld} -melf32bsmip"
6431 ;;
6432 *N32*)
6433 LD="${LD-ld} -melf32bmipn32"
6434 ;;
6435 *64-bit*)
6436 LD="${LD-ld} -melf64bmip"
6437 ;;
6438 esac
6439 else
6440 case `/usr/bin/file conftest.$ac_objext` in
6441 *32-bit*)
6442 LD="${LD-ld} -32"
6443 ;;
6444 *N32*)
6445 LD="${LD-ld} -n32"
6446 ;;
6447 *64-bit*)
6448 LD="${LD-ld} -64"
6449 ;;
6450 esac
6451 fi
6452 fi
6453 rm -rf conftest*
6454 ;;
6455
6456x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6457s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6458 # Find out which ABI we are using.
6459 echo 'int i;' > conftest.$ac_ext
6460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6461 (eval $ac_compile) 2>&5
6462 ac_status=$?
6463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6464 test $ac_status = 0; }; then
6465 case `/usr/bin/file conftest.o` in
6466 *32-bit*)
6467 case $host in
6468 x86_64-*kfreebsd*-gnu)
6469 LD="${LD-ld} -m elf_i386_fbsd"
6470 ;;
6471 x86_64-*linux*)
6472 case `/usr/bin/file conftest.o` in
6473 *x86-64*)
6474 LD="${LD-ld} -m elf32_x86_64"
6475 ;;
6476 *)
6477 LD="${LD-ld} -m elf_i386"
6478 ;;
6479 esac
6480 ;;
6481 powerpc64le-*linux*)
6482 LD="${LD-ld} -m elf32lppclinux"
6483 ;;
6484 powerpc64-*linux*)
6485 LD="${LD-ld} -m elf32ppclinux"
6486 ;;
6487 s390x-*linux*)
6488 LD="${LD-ld} -m elf_s390"
6489 ;;
6490 sparc64-*linux*)
6491 LD="${LD-ld} -m elf32_sparc"
6492 ;;
6493 esac
6494 ;;
6495 *64-bit*)
6496 case $host in
6497 x86_64-*kfreebsd*-gnu)
6498 LD="${LD-ld} -m elf_x86_64_fbsd"
6499 ;;
6500 x86_64-*linux*)
6501 LD="${LD-ld} -m elf_x86_64"
6502 ;;
6503 powerpcle-*linux*)
6504 LD="${LD-ld} -m elf64lppc"
6505 ;;
6506 powerpc-*linux*)
6507 LD="${LD-ld} -m elf64ppc"
6508 ;;
6509 s390*-*linux*|s390*-*tpf*)
6510 LD="${LD-ld} -m elf64_s390"
6511 ;;
6512 sparc*-*linux*)
6513 LD="${LD-ld} -m elf64_sparc"
6514 ;;
6515 esac
6516 ;;
6517 esac
6518 fi
6519 rm -rf conftest*
6520 ;;
6521
6522*-*-sco3.2v5*)
6523 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6524 SAVE_CFLAGS="$CFLAGS"
6525 CFLAGS="$CFLAGS -belf"
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6527$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6528if test "${lt_cv_cc_needs_belf+set}" = set; then :
6529 $as_echo_n "(cached) " >&6
6530else
6531 ac_ext=c
6532ac_cpp='$CPP $CPPFLAGS'
6533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6535ac_compiler_gnu=$ac_cv_c_compiler_gnu
6536
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538/* end confdefs.h. */
6539
6540int
6541main ()
6542{
6543
6544 ;
6545 return 0;
6546}
6547_ACEOF
6548if ac_fn_c_try_link "$LINENO"; then :
6549 lt_cv_cc_needs_belf=yes
6550else
6551 lt_cv_cc_needs_belf=no
6552fi
6553rm -f core conftest.err conftest.$ac_objext \
6554 conftest$ac_exeext conftest.$ac_ext
6555 ac_ext=c
6556ac_cpp='$CPP $CPPFLAGS'
6557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6559ac_compiler_gnu=$ac_cv_c_compiler_gnu
6560
6561fi
6562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6563$as_echo "$lt_cv_cc_needs_belf" >&6; }
6564 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6565 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6566 CFLAGS="$SAVE_CFLAGS"
6567 fi
6568 ;;
6569sparc*-*solaris*)
6570 # Find out which ABI we are using.
6571 echo 'int i;' > conftest.$ac_ext
6572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6573 (eval $ac_compile) 2>&5
6574 ac_status=$?
6575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6576 test $ac_status = 0; }; then
6577 case `/usr/bin/file conftest.o` in
6578 *64-bit*)
6579 case $lt_cv_prog_gnu_ld in
6580 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6581 *)
6582 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6583 LD="${LD-ld} -64"
6584 fi
6585 ;;
6586 esac
6587 ;;
6588 esac
6589 fi
6590 rm -rf conftest*
6591 ;;
6592esac
6593
6594need_locks="$enable_libtool_lock"
6595
6596
6597 case $host_os in
6598 rhapsody* | darwin*)
6599 if test -n "$ac_tool_prefix"; then
6600 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6601set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6603$as_echo_n "checking for $ac_word... " >&6; }
6604if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6605 $as_echo_n "(cached) " >&6
6606else
6607 if test -n "$DSYMUTIL"; then
6608 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6609else
6610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611for as_dir in $PATH
6612do
6613 IFS=$as_save_IFS
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6617 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 break 2
6620 fi
6621done
6622 done
6623IFS=$as_save_IFS
6624
6625fi
6626fi
6627DSYMUTIL=$ac_cv_prog_DSYMUTIL
6628if test -n "$DSYMUTIL"; then
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6630$as_echo "$DSYMUTIL" >&6; }
6631else
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633$as_echo "no" >&6; }
6634fi
6635
6636
6637fi
6638if test -z "$ac_cv_prog_DSYMUTIL"; then
6639 ac_ct_DSYMUTIL=$DSYMUTIL
6640 # Extract the first word of "dsymutil", so it can be a program name with args.
6641set dummy dsymutil; ac_word=$2
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643$as_echo_n "checking for $ac_word... " >&6; }
6644if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6645 $as_echo_n "(cached) " >&6
6646else
6647 if test -n "$ac_ct_DSYMUTIL"; then
6648 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6649else
6650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651for as_dir in $PATH
6652do
6653 IFS=$as_save_IFS
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 break 2
6660 fi
6661done
6662 done
6663IFS=$as_save_IFS
6664
6665fi
6666fi
6667ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6668if test -n "$ac_ct_DSYMUTIL"; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6670$as_echo "$ac_ct_DSYMUTIL" >&6; }
6671else
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673$as_echo "no" >&6; }
6674fi
6675
6676 if test "x$ac_ct_DSYMUTIL" = x; then
6677 DSYMUTIL=":"
6678 else
6679 case $cross_compiling:$ac_tool_warned in
6680yes:)
6681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6683ac_tool_warned=yes ;;
6684esac
6685 DSYMUTIL=$ac_ct_DSYMUTIL
6686 fi
6687else
6688 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6689fi
6690
6691 if test -n "$ac_tool_prefix"; then
6692 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6693set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695$as_echo_n "checking for $ac_word... " >&6; }
6696if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6697 $as_echo_n "(cached) " >&6
6698else
6699 if test -n "$NMEDIT"; then
6700 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6701else
6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6709 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713done
6714 done
6715IFS=$as_save_IFS
6716
6717fi
6718fi
6719NMEDIT=$ac_cv_prog_NMEDIT
6720if test -n "$NMEDIT"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6722$as_echo "$NMEDIT" >&6; }
6723else
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725$as_echo "no" >&6; }
6726fi
6727
6728
6729fi
6730if test -z "$ac_cv_prog_NMEDIT"; then
6731 ac_ct_NMEDIT=$NMEDIT
6732 # Extract the first word of "nmedit", so it can be a program name with args.
6733set dummy nmedit; ac_word=$2
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735$as_echo_n "checking for $ac_word... " >&6; }
6736if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6737 $as_echo_n "(cached) " >&6
6738else
6739 if test -n "$ac_ct_NMEDIT"; then
6740 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6741else
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753done
6754 done
6755IFS=$as_save_IFS
6756
6757fi
6758fi
6759ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6760if test -n "$ac_ct_NMEDIT"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6762$as_echo "$ac_ct_NMEDIT" >&6; }
6763else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765$as_echo "no" >&6; }
6766fi
6767
6768 if test "x$ac_ct_NMEDIT" = x; then
6769 NMEDIT=":"
6770 else
6771 case $cross_compiling:$ac_tool_warned in
6772yes:)
6773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775ac_tool_warned=yes ;;
6776esac
6777 NMEDIT=$ac_ct_NMEDIT
6778 fi
6779else
6780 NMEDIT="$ac_cv_prog_NMEDIT"
6781fi
6782
6783 if test -n "$ac_tool_prefix"; then
6784 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6785set dummy ${ac_tool_prefix}lipo; ac_word=$2
6786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787$as_echo_n "checking for $ac_word... " >&6; }
6788if test "${ac_cv_prog_LIPO+set}" = set; then :
6789 $as_echo_n "(cached) " >&6
6790else
6791 if test -n "$LIPO"; then
6792 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6793else
6794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795for as_dir in $PATH
6796do
6797 IFS=$as_save_IFS
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6801 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 break 2
6804 fi
6805done
6806 done
6807IFS=$as_save_IFS
6808
6809fi
6810fi
6811LIPO=$ac_cv_prog_LIPO
6812if test -n "$LIPO"; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6814$as_echo "$LIPO" >&6; }
6815else
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817$as_echo "no" >&6; }
6818fi
6819
6820
6821fi
6822if test -z "$ac_cv_prog_LIPO"; then
6823 ac_ct_LIPO=$LIPO
6824 # Extract the first word of "lipo", so it can be a program name with args.
6825set dummy lipo; ac_word=$2
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827$as_echo_n "checking for $ac_word... " >&6; }
6828if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
6830else
6831 if test -n "$ac_ct_LIPO"; then
6832 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6833else
6834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835for as_dir in $PATH
6836do
6837 IFS=$as_save_IFS
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841 ac_cv_prog_ac_ct_LIPO="lipo"
6842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 break 2
6844 fi
6845done
6846 done
6847IFS=$as_save_IFS
6848
6849fi
6850fi
6851ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6852if test -n "$ac_ct_LIPO"; then
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6854$as_echo "$ac_ct_LIPO" >&6; }
6855else
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857$as_echo "no" >&6; }
6858fi
6859
6860 if test "x$ac_ct_LIPO" = x; then
6861 LIPO=":"
6862 else
6863 case $cross_compiling:$ac_tool_warned in
6864yes:)
6865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6867ac_tool_warned=yes ;;
6868esac
6869 LIPO=$ac_ct_LIPO
6870 fi
6871else
6872 LIPO="$ac_cv_prog_LIPO"
6873fi
6874
6875 if test -n "$ac_tool_prefix"; then
6876 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6877set dummy ${ac_tool_prefix}otool; ac_word=$2
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879$as_echo_n "checking for $ac_word... " >&6; }
6880if test "${ac_cv_prog_OTOOL+set}" = set; then :
6881 $as_echo_n "(cached) " >&6
6882else
6883 if test -n "$OTOOL"; then
6884 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6885else
6886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887for as_dir in $PATH
6888do
6889 IFS=$as_save_IFS
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 break 2
6896 fi
6897done
6898 done
6899IFS=$as_save_IFS
6900
6901fi
6902fi
6903OTOOL=$ac_cv_prog_OTOOL
6904if test -n "$OTOOL"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6906$as_echo "$OTOOL" >&6; }
6907else
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909$as_echo "no" >&6; }
6910fi
6911
6912
6913fi
6914if test -z "$ac_cv_prog_OTOOL"; then
6915 ac_ct_OTOOL=$OTOOL
6916 # Extract the first word of "otool", so it can be a program name with args.
6917set dummy otool; ac_word=$2
6918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919$as_echo_n "checking for $ac_word... " >&6; }
6920if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6922else
6923 if test -n "$ac_ct_OTOOL"; then
6924 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6925else
6926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927for as_dir in $PATH
6928do
6929 IFS=$as_save_IFS
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_prog_ac_ct_OTOOL="otool"
6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 break 2
6936 fi
6937done
6938 done
6939IFS=$as_save_IFS
6940
6941fi
6942fi
6943ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6944if test -n "$ac_ct_OTOOL"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6946$as_echo "$ac_ct_OTOOL" >&6; }
6947else
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949$as_echo "no" >&6; }
6950fi
6951
6952 if test "x$ac_ct_OTOOL" = x; then
6953 OTOOL=":"
6954 else
6955 case $cross_compiling:$ac_tool_warned in
6956yes:)
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6959ac_tool_warned=yes ;;
6960esac
6961 OTOOL=$ac_ct_OTOOL
6962 fi
6963else
6964 OTOOL="$ac_cv_prog_OTOOL"
6965fi
6966
6967 if test -n "$ac_tool_prefix"; then
6968 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6969set dummy ${ac_tool_prefix}otool64; ac_word=$2
6970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6971$as_echo_n "checking for $ac_word... " >&6; }
6972if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6973 $as_echo_n "(cached) " >&6
6974else
6975 if test -n "$OTOOL64"; then
6976 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6977else
6978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979for as_dir in $PATH
6980do
6981 IFS=$as_save_IFS
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6985 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 break 2
6988 fi
6989done
6990 done
6991IFS=$as_save_IFS
6992
6993fi
6994fi
6995OTOOL64=$ac_cv_prog_OTOOL64
6996if test -n "$OTOOL64"; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6998$as_echo "$OTOOL64" >&6; }
6999else
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001$as_echo "no" >&6; }
7002fi
7003
7004
7005fi
7006if test -z "$ac_cv_prog_OTOOL64"; then
7007 ac_ct_OTOOL64=$OTOOL64
7008 # Extract the first word of "otool64", so it can be a program name with args.
7009set dummy otool64; ac_word=$2
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011$as_echo_n "checking for $ac_word... " >&6; }
7012if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7013 $as_echo_n "(cached) " >&6
7014else
7015 if test -n "$ac_ct_OTOOL64"; then
7016 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7017else
7018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019for as_dir in $PATH
7020do
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7025 ac_cv_prog_ac_ct_OTOOL64="otool64"
7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7028 fi
7029done
7030 done
7031IFS=$as_save_IFS
7032
7033fi
7034fi
7035ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7036if test -n "$ac_ct_OTOOL64"; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7038$as_echo "$ac_ct_OTOOL64" >&6; }
7039else
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041$as_echo "no" >&6; }
7042fi
7043
7044 if test "x$ac_ct_OTOOL64" = x; then
7045 OTOOL64=":"
7046 else
7047 case $cross_compiling:$ac_tool_warned in
7048yes:)
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7051ac_tool_warned=yes ;;
7052esac
7053 OTOOL64=$ac_ct_OTOOL64
7054 fi
7055else
7056 OTOOL64="$ac_cv_prog_OTOOL64"
7057fi
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7086$as_echo_n "checking for -single_module linker flag... " >&6; }
7087if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7088 $as_echo_n "(cached) " >&6
7089else
7090 lt_cv_apple_cc_single_mod=no
7091 if test -z "${LT_MULTI_MODULE}"; then
7092 # By default we will add the -single_module flag. You can override
7093 # by either setting the environment variable LT_MULTI_MODULE
7094 # non-empty at configure time, or by adding -multi_module to the
7095 # link flags.
7096 rm -rf libconftest.dylib*
7097 echo "int foo(void){return 1;}" > conftest.c
7098 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7099-dynamiclib -Wl,-single_module conftest.c" >&5
7100 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7101 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7102 _lt_result=$?
7103 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7104 lt_cv_apple_cc_single_mod=yes
7105 else
7106 cat conftest.err >&5
7107 fi
7108 rm -rf libconftest.dylib*
7109 rm -f conftest.*
7110 fi
7111fi
7112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7113$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7115$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7116if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7117 $as_echo_n "(cached) " >&6
7118else
7119 lt_cv_ld_exported_symbols_list=no
7120 save_LDFLAGS=$LDFLAGS
7121 echo "_main" > conftest.sym
7122 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124/* end confdefs.h. */
7125
7126int
7127main ()
7128{
7129
7130 ;
7131 return 0;
7132}
7133_ACEOF
7134if ac_fn_c_try_link "$LINENO"; then :
7135 lt_cv_ld_exported_symbols_list=yes
7136else
7137 lt_cv_ld_exported_symbols_list=no
7138fi
7139rm -f core conftest.err conftest.$ac_objext \
7140 conftest$ac_exeext conftest.$ac_ext
7141 LDFLAGS="$save_LDFLAGS"
7142
7143fi
7144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7145$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7147$as_echo_n "checking for -force_load linker flag... " >&6; }
7148if test "${lt_cv_ld_force_load+set}" = set; then :
7149 $as_echo_n "(cached) " >&6
7150else
7151 lt_cv_ld_force_load=no
7152 cat > conftest.c << _LT_EOF
7153int forced_loaded() { return 2;}
7154_LT_EOF
7155 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7156 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7157 echo "$AR cru libconftest.a conftest.o" >&5
7158 $AR cru libconftest.a conftest.o 2>&5
7159 cat > conftest.c << _LT_EOF
7160int main() { return 0;}
7161_LT_EOF
7162 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7163 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7164 _lt_result=$?
7165 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7166 lt_cv_ld_force_load=yes
7167 else
7168 cat conftest.err >&5
7169 fi
7170 rm -f conftest.err libconftest.a conftest conftest.c
7171 rm -rf conftest.dSYM
7172
7173fi
7174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7175$as_echo "$lt_cv_ld_force_load" >&6; }
7176 case $host_os in
7177 rhapsody* | darwin1.[012])
7178 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7179 darwin1.*)
7180 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7181 darwin*) # darwin 5.x on
7182 # if running on 10.5 or later, the deployment target defaults
7183 # to the OS version, if on x86, and 10.4, the deployment
7184 # target defaults to 10.4. Don't you love it?
7185 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7186 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7187 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7188 10.[012][,.]*)
7189 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7190 10.*)
7191 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7192 esac
7193 ;;
7194 esac
7195 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7196 _lt_dar_single_mod='$single_module'
7197 fi
7198 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7199 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7200 else
7201 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7202 fi
7203 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7204 _lt_dsymutil='~$DSYMUTIL $lib || :'
7205 else
7206 _lt_dsymutil=
7207 fi
7208 ;;
7209 esac
7210
7211ac_ext=c
7212ac_cpp='$CPP $CPPFLAGS'
7213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7215ac_compiler_gnu=$ac_cv_c_compiler_gnu
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7217$as_echo_n "checking how to run the C preprocessor... " >&6; }
7218# On Suns, sometimes $CPP names a directory.
7219if test -n "$CPP" && test -d "$CPP"; then
7220 CPP=
7221fi
7222if test -z "$CPP"; then
7223 if test "${ac_cv_prog_CPP+set}" = set; then :
7224 $as_echo_n "(cached) " >&6
7225else
7226 # Double quotes because CPP needs to be expanded
7227 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7228 do
7229 ac_preproc_ok=false
7230for ac_c_preproc_warn_flag in '' yes
7231do
7232 # Use a header file that comes with gcc, so configuring glibc
7233 # with a fresh cross-compiler works.
7234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7235 # <limits.h> exists even on freestanding compilers.
7236 # On the NeXT, cc -E runs the code through the compiler's parser,
7237 # not just through cpp. "Syntax error" is here to catch this case.
7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239/* end confdefs.h. */
7240#ifdef __STDC__
7241# include <limits.h>
7242#else
7243# include <assert.h>
7244#endif
7245 Syntax error
7246_ACEOF
7247if ac_fn_c_try_cpp "$LINENO"; then :
7248
7249else
7250 # Broken: fails on valid input.
7251continue
7252fi
7253rm -f conftest.err conftest.$ac_ext
7254
7255 # OK, works on sane cases. Now check whether nonexistent headers
7256 # can be detected and how.
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258/* end confdefs.h. */
7259#include <ac_nonexistent.h>
7260_ACEOF
7261if ac_fn_c_try_cpp "$LINENO"; then :
7262 # Broken: success on invalid input.
7263continue
7264else
7265 # Passes both tests.
7266ac_preproc_ok=:
7267break
7268fi
7269rm -f conftest.err conftest.$ac_ext
7270
7271done
7272# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7273rm -f conftest.err conftest.$ac_ext
7274if $ac_preproc_ok; then :
7275 break
7276fi
7277
7278 done
7279 ac_cv_prog_CPP=$CPP
7280
7281fi
7282 CPP=$ac_cv_prog_CPP
7283else
7284 ac_cv_prog_CPP=$CPP
7285fi
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7287$as_echo "$CPP" >&6; }
7288ac_preproc_ok=false
7289for ac_c_preproc_warn_flag in '' yes
7290do
7291 # Use a header file that comes with gcc, so configuring glibc
7292 # with a fresh cross-compiler works.
7293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7294 # <limits.h> exists even on freestanding compilers.
7295 # On the NeXT, cc -E runs the code through the compiler's parser,
7296 # not just through cpp. "Syntax error" is here to catch this case.
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298/* end confdefs.h. */
7299#ifdef __STDC__
7300# include <limits.h>
7301#else
7302# include <assert.h>
7303#endif
7304 Syntax error
7305_ACEOF
7306if ac_fn_c_try_cpp "$LINENO"; then :
7307
7308else
7309 # Broken: fails on valid input.
7310continue
7311fi
7312rm -f conftest.err conftest.$ac_ext
7313
7314 # OK, works on sane cases. Now check whether nonexistent headers
7315 # can be detected and how.
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317/* end confdefs.h. */
7318#include <ac_nonexistent.h>
7319_ACEOF
7320if ac_fn_c_try_cpp "$LINENO"; then :
7321 # Broken: success on invalid input.
7322continue
7323else
7324 # Passes both tests.
7325ac_preproc_ok=:
7326break
7327fi
7328rm -f conftest.err conftest.$ac_ext
7329
7330done
7331# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7332rm -f conftest.err conftest.$ac_ext
7333if $ac_preproc_ok; then :
7334
7335else
7336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7338as_fn_error "C preprocessor \"$CPP\" fails sanity check
7339See \`config.log' for more details." "$LINENO" 5; }
7340fi
7341
7342ac_ext=c
7343ac_cpp='$CPP $CPPFLAGS'
7344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7346ac_compiler_gnu=$ac_cv_c_compiler_gnu
7347
7348
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7350$as_echo_n "checking for ANSI C header files... " >&6; }
7351if test "${ac_cv_header_stdc+set}" = set; then :
7352 $as_echo_n "(cached) " >&6
7353else
7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355/* end confdefs.h. */
7356#include <stdlib.h>
7357#include <stdarg.h>
7358#include <string.h>
7359#include <float.h>
7360
7361int
7362main ()
7363{
7364
7365 ;
7366 return 0;
7367}
7368_ACEOF
7369if ac_fn_c_try_compile "$LINENO"; then :
7370 ac_cv_header_stdc=yes
7371else
7372 ac_cv_header_stdc=no
7373fi
7374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375
7376if test $ac_cv_header_stdc = yes; then
7377 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379/* end confdefs.h. */
7380#include <string.h>
7381
7382_ACEOF
7383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7384 $EGREP "memchr" >/dev/null 2>&1; then :
7385
7386else
7387 ac_cv_header_stdc=no
7388fi
7389rm -f conftest*
7390
7391fi
7392
7393if test $ac_cv_header_stdc = yes; then
7394 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396/* end confdefs.h. */
7397#include <stdlib.h>
7398
7399_ACEOF
7400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7401 $EGREP "free" >/dev/null 2>&1; then :
7402
7403else
7404 ac_cv_header_stdc=no
7405fi
7406rm -f conftest*
7407
7408fi
7409
7410if test $ac_cv_header_stdc = yes; then
7411 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7412 if test "$cross_compiling" = yes; then :
7413 :
7414else
7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416/* end confdefs.h. */
7417#include <ctype.h>
7418#include <stdlib.h>
7419#if ((' ' & 0x0FF) == 0x020)
7420# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7421# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7422#else
7423# define ISLOWER(c) \
7424 (('a' <= (c) && (c) <= 'i') \
7425 || ('j' <= (c) && (c) <= 'r') \
7426 || ('s' <= (c) && (c) <= 'z'))
7427# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7428#endif
7429
7430#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7431int
7432main ()
7433{
7434 int i;
7435 for (i = 0; i < 256; i++)
7436 if (XOR (islower (i), ISLOWER (i))
7437 || toupper (i) != TOUPPER (i))
7438 return 2;
7439 return 0;
7440}
7441_ACEOF
7442if ac_fn_c_try_run "$LINENO"; then :
7443
7444else
7445 ac_cv_header_stdc=no
7446fi
7447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7448 conftest.$ac_objext conftest.beam conftest.$ac_ext
7449fi
7450
7451fi
7452fi
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7454$as_echo "$ac_cv_header_stdc" >&6; }
7455if test $ac_cv_header_stdc = yes; then
7456
7457$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7458
7459fi
7460
7461# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7462for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7463 inttypes.h stdint.h unistd.h
7464do :
7465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7466ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7467"
7468eval as_val=\$$as_ac_Header
7469 if test "x$as_val" = x""yes; then :
7470 cat >>confdefs.h <<_ACEOF
7471#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7472_ACEOF
7473
7474fi
7475
7476done
7477
7478
7479for ac_header in dlfcn.h
7480do :
7481 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7482"
7483if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7484 cat >>confdefs.h <<_ACEOF
7485#define HAVE_DLFCN_H 1
7486_ACEOF
7487
7488fi
7489
7490done
7491
7492
7493
7494
7495
7496
7497# Set options
7498
7499
7500
7501
7502 enable_win32_dll=no
7503
7504
7505 # Check whether --enable-shared was given.
7506if test "${enable_shared+set}" = set; then :
7507 enableval=$enable_shared; p=${PACKAGE-default}
7508 case $enableval in
7509 yes) enable_shared=yes ;;
7510 no) enable_shared=no ;;
7511 *)
7512 enable_shared=no
7513 # Look at the argument we got. We use all the common list separators.
7514 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7515 for pkg in $enableval; do
7516 IFS="$lt_save_ifs"
7517 if test "X$pkg" = "X$p"; then
7518 enable_shared=yes
7519 fi
7520 done
7521 IFS="$lt_save_ifs"
7522 ;;
7523 esac
7524else
7525 enable_shared=yes
7526fi
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536 # Check whether --enable-static was given.
7537if test "${enable_static+set}" = set; then :
7538 enableval=$enable_static; p=${PACKAGE-default}
7539 case $enableval in
7540 yes) enable_static=yes ;;
7541 no) enable_static=no ;;
7542 *)
7543 enable_static=no
7544 # Look at the argument we got. We use all the common list separators.
7545 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7546 for pkg in $enableval; do
7547 IFS="$lt_save_ifs"
7548 if test "X$pkg" = "X$p"; then
7549 enable_static=yes
7550 fi
7551 done
7552 IFS="$lt_save_ifs"
7553 ;;
7554 esac
7555else
7556 enable_static=yes
7557fi
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568# Check whether --with-pic was given.
7569if test "${with_pic+set}" = set; then :
7570 withval=$with_pic; pic_mode="$withval"
7571else
7572 pic_mode=default
7573fi
7574
7575
7576test -z "$pic_mode" && pic_mode=default
7577
7578
7579
7580
7581
7582
7583
7584 # Check whether --enable-fast-install was given.
7585if test "${enable_fast_install+set}" = set; then :
7586 enableval=$enable_fast_install; p=${PACKAGE-default}
7587 case $enableval in
7588 yes) enable_fast_install=yes ;;
7589 no) enable_fast_install=no ;;
7590 *)
7591 enable_fast_install=no
7592 # Look at the argument we got. We use all the common list separators.
7593 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7594 for pkg in $enableval; do
7595 IFS="$lt_save_ifs"
7596 if test "X$pkg" = "X$p"; then
7597 enable_fast_install=yes
7598 fi
7599 done
7600 IFS="$lt_save_ifs"
7601 ;;
7602 esac
7603else
7604 enable_fast_install=yes
7605fi
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617# This can be used to rebuild libtool when needed
7618LIBTOOL_DEPS="$ltmain"
7619
7620# Always use our own libtool.
7621LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648test -z "$LN_S" && LN_S="ln -s"
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663if test -n "${ZSH_VERSION+set}" ; then
7664 setopt NO_GLOB_SUBST
7665fi
7666
7667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7668$as_echo_n "checking for objdir... " >&6; }
7669if test "${lt_cv_objdir+set}" = set; then :
7670 $as_echo_n "(cached) " >&6
7671else
7672 rm -f .libs 2>/dev/null
7673mkdir .libs 2>/dev/null
7674if test -d .libs; then
7675 lt_cv_objdir=.libs
7676else
7677 # MS-DOS does not allow filenames that begin with a dot.
7678 lt_cv_objdir=_libs
7679fi
7680rmdir .libs 2>/dev/null
7681fi
7682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7683$as_echo "$lt_cv_objdir" >&6; }
7684objdir=$lt_cv_objdir
7685
7686
7687
7688
7689
7690cat >>confdefs.h <<_ACEOF
7691#define LT_OBJDIR "$lt_cv_objdir/"
7692_ACEOF
7693
7694
7695
7696
7697case $host_os in
7698aix3*)
7699 # AIX sometimes has problems with the GCC collect2 program. For some
7700 # reason, if we set the COLLECT_NAMES environment variable, the problems
7701 # vanish in a puff of smoke.
7702 if test "X${COLLECT_NAMES+set}" != Xset; then
7703 COLLECT_NAMES=
7704 export COLLECT_NAMES
7705 fi
7706 ;;
7707esac
7708
7709# Global variables:
7710ofile=libtool
7711can_build_shared=yes
7712
7713# All known linkers require a `.a' archive for static linking (except MSVC,
7714# which needs '.lib').
7715libext=a
7716
7717with_gnu_ld="$lt_cv_prog_gnu_ld"
7718
7719old_CC="$CC"
7720old_CFLAGS="$CFLAGS"
7721
7722# Set sane defaults for various variables
7723test -z "$CC" && CC=cc
7724test -z "$LTCC" && LTCC=$CC
7725test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7726test -z "$LD" && LD=ld
7727test -z "$ac_objext" && ac_objext=o
7728
7729for cc_temp in $compiler""; do
7730 case $cc_temp in
7731 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7732 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7733 \-*) ;;
7734 *) break;;
7735 esac
7736done
7737cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7738
7739
7740# Only perform the check for file, if the check method requires it
7741test -z "$MAGIC_CMD" && MAGIC_CMD=file
7742case $deplibs_check_method in
7743file_magic*)
7744 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7746$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7747if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7749else
7750 case $MAGIC_CMD in
7751[\\/*] | ?:[\\/]*)
7752 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7753 ;;
7754*)
7755 lt_save_MAGIC_CMD="$MAGIC_CMD"
7756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7757 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7758 for ac_dir in $ac_dummy; do
7759 IFS="$lt_save_ifs"
7760 test -z "$ac_dir" && ac_dir=.
7761 if test -f $ac_dir/${ac_tool_prefix}file; then
7762 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7763 if test -n "$file_magic_test_file"; then
7764 case $deplibs_check_method in
7765 "file_magic "*)
7766 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7767 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7768 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7769 $EGREP "$file_magic_regex" > /dev/null; then
7770 :
7771 else
7772 cat <<_LT_EOF 1>&2
7773
7774*** Warning: the command libtool uses to detect shared libraries,
7775*** $file_magic_cmd, produces output that libtool cannot recognize.
7776*** The result is that libtool may fail to recognize shared libraries
7777*** as such. This will affect the creation of libtool libraries that
7778*** depend on shared libraries, but programs linked with such libtool
7779*** libraries will work regardless of this problem. Nevertheless, you
7780*** may want to report the problem to your system manager and/or to
7781*** bug-libtool@gnu.org
7782
7783_LT_EOF
7784 fi ;;
7785 esac
7786 fi
7787 break
7788 fi
7789 done
7790 IFS="$lt_save_ifs"
7791 MAGIC_CMD="$lt_save_MAGIC_CMD"
7792 ;;
7793esac
7794fi
7795
7796MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7797if test -n "$MAGIC_CMD"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7799$as_echo "$MAGIC_CMD" >&6; }
7800else
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802$as_echo "no" >&6; }
7803fi
7804
7805
7806
7807
7808
7809if test -z "$lt_cv_path_MAGIC_CMD"; then
7810 if test -n "$ac_tool_prefix"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7812$as_echo_n "checking for file... " >&6; }
7813if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7814 $as_echo_n "(cached) " >&6
7815else
7816 case $MAGIC_CMD in
7817[\\/*] | ?:[\\/]*)
7818 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7819 ;;
7820*)
7821 lt_save_MAGIC_CMD="$MAGIC_CMD"
7822 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7823 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7824 for ac_dir in $ac_dummy; do
7825 IFS="$lt_save_ifs"
7826 test -z "$ac_dir" && ac_dir=.
7827 if test -f $ac_dir/file; then
7828 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7829 if test -n "$file_magic_test_file"; then
7830 case $deplibs_check_method in
7831 "file_magic "*)
7832 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7833 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7834 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7835 $EGREP "$file_magic_regex" > /dev/null; then
7836 :
7837 else
7838 cat <<_LT_EOF 1>&2
7839
7840*** Warning: the command libtool uses to detect shared libraries,
7841*** $file_magic_cmd, produces output that libtool cannot recognize.
7842*** The result is that libtool may fail to recognize shared libraries
7843*** as such. This will affect the creation of libtool libraries that
7844*** depend on shared libraries, but programs linked with such libtool
7845*** libraries will work regardless of this problem. Nevertheless, you
7846*** may want to report the problem to your system manager and/or to
7847*** bug-libtool@gnu.org
7848
7849_LT_EOF
7850 fi ;;
7851 esac
7852 fi
7853 break
7854 fi
7855 done
7856 IFS="$lt_save_ifs"
7857 MAGIC_CMD="$lt_save_MAGIC_CMD"
7858 ;;
7859esac
7860fi
7861
7862MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7863if test -n "$MAGIC_CMD"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7865$as_echo "$MAGIC_CMD" >&6; }
7866else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868$as_echo "no" >&6; }
7869fi
7870
7871
7872 else
7873 MAGIC_CMD=:
7874 fi
7875fi
7876
7877 fi
7878 ;;
7879esac
7880
7881# Use C for the default configuration in the libtool script
7882
7883lt_save_CC="$CC"
7884ac_ext=c
7885ac_cpp='$CPP $CPPFLAGS'
7886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7888ac_compiler_gnu=$ac_cv_c_compiler_gnu
7889
7890
7891# Source file extension for C test sources.
7892ac_ext=c
7893
7894# Object file extension for compiled C test sources.
7895objext=o
7896objext=$objext
7897
7898# Code to be used in simple compile tests
7899lt_simple_compile_test_code="int some_variable = 0;"
7900
7901# Code to be used in simple link tests
7902lt_simple_link_test_code='int main(){return(0);}'
7903
7904
7905
7906
7907
7908
7909
7910# If no C compiler was specified, use CC.
7911LTCC=${LTCC-"$CC"}
7912
7913# If no C compiler flags were specified, use CFLAGS.
7914LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7915
7916# Allow CC to be a program name with arguments.
7917compiler=$CC
7918
7919# Save the default compiler, since it gets overwritten when the other
7920# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7921compiler_DEFAULT=$CC
7922
7923# save warnings/boilerplate of simple test code
7924ac_outfile=conftest.$ac_objext
7925echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7926eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7927_lt_compiler_boilerplate=`cat conftest.err`
7928$RM conftest*
7929
7930ac_outfile=conftest.$ac_objext
7931echo "$lt_simple_link_test_code" >conftest.$ac_ext
7932eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7933_lt_linker_boilerplate=`cat conftest.err`
7934$RM -r conftest*
7935
7936
7937## CAVEAT EMPTOR:
7938## There is no encapsulation within the following macros, do not change
7939## the running order or otherwise move them around unless you know exactly
7940## what you are doing...
7941if test -n "$compiler"; then
7942
7943lt_prog_compiler_no_builtin_flag=
7944
7945if test "$GCC" = yes; then
7946 case $cc_basename in
7947 nvcc*)
7948 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7949 *)
7950 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7951 esac
7952
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7954$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7955if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7956 $as_echo_n "(cached) " >&6
7957else
7958 lt_cv_prog_compiler_rtti_exceptions=no
7959 ac_outfile=conftest.$ac_objext
7960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7961 lt_compiler_flag="-fno-rtti -fno-exceptions"
7962 # Insert the option either (1) after the last *FLAGS variable, or
7963 # (2) before a word containing "conftest.", or (3) at the end.
7964 # Note that $ac_compile itself does not contain backslashes and begins
7965 # with a dollar sign (not a hyphen), so the echo should work correctly.
7966 # The option is referenced via a variable to avoid confusing sed.
7967 lt_compile=`echo "$ac_compile" | $SED \
7968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7970 -e 's:$: $lt_compiler_flag:'`
7971 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7972 (eval "$lt_compile" 2>conftest.err)
7973 ac_status=$?
7974 cat conftest.err >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 if (exit $ac_status) && test -s "$ac_outfile"; then
7977 # The compiler can only warn and ignore the option if not recognized
7978 # So say no if there are warnings other than the usual output.
7979 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7981 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7982 lt_cv_prog_compiler_rtti_exceptions=yes
7983 fi
7984 fi
7985 $RM conftest*
7986
7987fi
7988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7989$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7990
7991if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7992 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7993else
7994 :
7995fi
7996
7997fi
7998
7999
8000
8001
8002
8003
8004 lt_prog_compiler_wl=
8005lt_prog_compiler_pic=
8006lt_prog_compiler_static=
8007
8008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8009$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8010
8011 if test "$GCC" = yes; then
8012 lt_prog_compiler_wl='-Wl,'
8013 lt_prog_compiler_static='-static'
8014
8015 case $host_os in
8016 aix*)
8017 # All AIX code is PIC.
8018 if test "$host_cpu" = ia64; then
8019 # AIX 5 now supports IA64 processor
8020 lt_prog_compiler_static='-Bstatic'
8021 fi
8022 lt_prog_compiler_pic='-fPIC'
8023 ;;
8024
8025 amigaos*)
8026 case $host_cpu in
8027 powerpc)
8028 # see comment about AmigaOS4 .so support
8029 lt_prog_compiler_pic='-fPIC'
8030 ;;
8031 m68k)
8032 # FIXME: we need at least 68020 code to build shared libraries, but
8033 # adding the `-m68020' flag to GCC prevents building anything better,
8034 # like `-m68040'.
8035 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8036 ;;
8037 esac
8038 ;;
8039
8040 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8041 # PIC is the default for these OSes.
8042 ;;
8043
8044 mingw* | cygwin* | pw32* | os2* | cegcc*)
8045 # This hack is so that the source file can tell whether it is being
8046 # built for inclusion in a dll (and should export symbols for example).
8047 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8048 # (--disable-auto-import) libraries
8049 lt_prog_compiler_pic='-DDLL_EXPORT'
8050 ;;
8051
8052 darwin* | rhapsody*)
8053 # PIC is the default on this platform
8054 # Common symbols not allowed in MH_DYLIB files
8055 lt_prog_compiler_pic='-fno-common'
8056 ;;
8057
8058 haiku*)
8059 # PIC is the default for Haiku.
8060 # The "-static" flag exists, but is broken.
8061 lt_prog_compiler_static=
8062 ;;
8063
8064 hpux*)
8065 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8066 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8067 # sets the default TLS model and affects inlining.
8068 case $host_cpu in
8069 hppa*64*)
8070 # +Z the default
8071 ;;
8072 *)
8073 lt_prog_compiler_pic='-fPIC'
8074 ;;
8075 esac
8076 ;;
8077
8078 interix[3-9]*)
8079 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8080 # Instead, we relocate shared libraries at runtime.
8081 ;;
8082
8083 msdosdjgpp*)
8084 # Just because we use GCC doesn't mean we suddenly get shared libraries
8085 # on systems that don't support them.
8086 lt_prog_compiler_can_build_shared=no
8087 enable_shared=no
8088 ;;
8089
8090 *nto* | *qnx*)
8091 # QNX uses GNU C++, but need to define -shared option too, otherwise
8092 # it will coredump.
8093 lt_prog_compiler_pic='-fPIC -shared'
8094 ;;
8095
8096 sysv4*MP*)
8097 if test -d /usr/nec; then
8098 lt_prog_compiler_pic=-Kconform_pic
8099 fi
8100 ;;
8101
8102 *)
8103 lt_prog_compiler_pic='-fPIC'
8104 ;;
8105 esac
8106
8107 case $cc_basename in
8108 nvcc*) # Cuda Compiler Driver 2.2
8109 lt_prog_compiler_wl='-Xlinker '
8110 lt_prog_compiler_pic='-Xcompiler -fPIC'
8111 ;;
8112 esac
8113 else
8114 # PORTME Check for flag to pass linker flags through the system compiler.
8115 case $host_os in
8116 aix*)
8117 lt_prog_compiler_wl='-Wl,'
8118 if test "$host_cpu" = ia64; then
8119 # AIX 5 now supports IA64 processor
8120 lt_prog_compiler_static='-Bstatic'
8121 else
8122 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8123 fi
8124 ;;
8125
8126 mingw* | cygwin* | pw32* | os2* | cegcc*)
8127 # This hack is so that the source file can tell whether it is being
8128 # built for inclusion in a dll (and should export symbols for example).
8129 lt_prog_compiler_pic='-DDLL_EXPORT'
8130 ;;
8131
8132 hpux9* | hpux10* | hpux11*)
8133 lt_prog_compiler_wl='-Wl,'
8134 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8135 # not for PA HP-UX.
8136 case $host_cpu in
8137 hppa*64*|ia64*)
8138 # +Z the default
8139 ;;
8140 *)
8141 lt_prog_compiler_pic='+Z'
8142 ;;
8143 esac
8144 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8145 lt_prog_compiler_static='${wl}-a ${wl}archive'
8146 ;;
8147
8148 irix5* | irix6* | nonstopux*)
8149 lt_prog_compiler_wl='-Wl,'
8150 # PIC (with -KPIC) is the default.
8151 lt_prog_compiler_static='-non_shared'
8152 ;;
8153
8154 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8155 case $cc_basename in
8156 # old Intel for x86_64 which still supported -KPIC.
8157 ecc*)
8158 lt_prog_compiler_wl='-Wl,'
8159 lt_prog_compiler_pic='-KPIC'
8160 lt_prog_compiler_static='-static'
8161 ;;
8162 # icc used to be incompatible with GCC.
8163 # ICC 10 doesn't accept -KPIC any more.
8164 icc* | ifort*)
8165 lt_prog_compiler_wl='-Wl,'
8166 lt_prog_compiler_pic='-fPIC'
8167 lt_prog_compiler_static='-static'
8168 ;;
8169 # Lahey Fortran 8.1.
8170 lf95*)
8171 lt_prog_compiler_wl='-Wl,'
8172 lt_prog_compiler_pic='--shared'
8173 lt_prog_compiler_static='--static'
8174 ;;
8175 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8176 # Portland Group compilers (*not* the Pentium gcc compiler,
8177 # which looks to be a dead project)
8178 lt_prog_compiler_wl='-Wl,'
8179 lt_prog_compiler_pic='-fpic'
8180 lt_prog_compiler_static='-Bstatic'
8181 ;;
8182 ccc*)
8183 lt_prog_compiler_wl='-Wl,'
8184 # All Alpha code is PIC.
8185 lt_prog_compiler_static='-non_shared'
8186 ;;
8187 xl* | bgxl* | bgf* | mpixl*)
8188 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8189 lt_prog_compiler_wl='-Wl,'
8190 lt_prog_compiler_pic='-qpic'
8191 lt_prog_compiler_static='-qstaticlink'
8192 ;;
8193 *)
8194 case `$CC -V 2>&1 | sed 5q` in
8195 *Sun\ F* | *Sun*Fortran*)
8196 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8197 lt_prog_compiler_pic='-KPIC'
8198 lt_prog_compiler_static='-Bstatic'
8199 lt_prog_compiler_wl=''
8200 ;;
8201 *Sun\ C*)
8202 # Sun C 5.9
8203 lt_prog_compiler_pic='-KPIC'
8204 lt_prog_compiler_static='-Bstatic'
8205 lt_prog_compiler_wl='-Wl,'
8206 ;;
8207 esac
8208 ;;
8209 esac
8210 ;;
8211
8212 newsos6)
8213 lt_prog_compiler_pic='-KPIC'
8214 lt_prog_compiler_static='-Bstatic'
8215 ;;
8216
8217 *nto* | *qnx*)
8218 # QNX uses GNU C++, but need to define -shared option too, otherwise
8219 # it will coredump.
8220 lt_prog_compiler_pic='-fPIC -shared'
8221 ;;
8222
8223 osf3* | osf4* | osf5*)
8224 lt_prog_compiler_wl='-Wl,'
8225 # All OSF/1 code is PIC.
8226 lt_prog_compiler_static='-non_shared'
8227 ;;
8228
8229 rdos*)
8230 lt_prog_compiler_static='-non_shared'
8231 ;;
8232
8233 solaris*)
8234 lt_prog_compiler_pic='-KPIC'
8235 lt_prog_compiler_static='-Bstatic'
8236 case $cc_basename in
8237 f77* | f90* | f95*)
8238 lt_prog_compiler_wl='-Qoption ld ';;
8239 *)
8240 lt_prog_compiler_wl='-Wl,';;
8241 esac
8242 ;;
8243
8244 sunos4*)
8245 lt_prog_compiler_wl='-Qoption ld '
8246 lt_prog_compiler_pic='-PIC'
8247 lt_prog_compiler_static='-Bstatic'
8248 ;;
8249
8250 sysv4 | sysv4.2uw2* | sysv4.3*)
8251 lt_prog_compiler_wl='-Wl,'
8252 lt_prog_compiler_pic='-KPIC'
8253 lt_prog_compiler_static='-Bstatic'
8254 ;;
8255
8256 sysv4*MP*)
8257 if test -d /usr/nec ;then
8258 lt_prog_compiler_pic='-Kconform_pic'
8259 lt_prog_compiler_static='-Bstatic'
8260 fi
8261 ;;
8262
8263 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8264 lt_prog_compiler_wl='-Wl,'
8265 lt_prog_compiler_pic='-KPIC'
8266 lt_prog_compiler_static='-Bstatic'
8267 ;;
8268
8269 unicos*)
8270 lt_prog_compiler_wl='-Wl,'
8271 lt_prog_compiler_can_build_shared=no
8272 ;;
8273
8274 uts4*)
8275 lt_prog_compiler_pic='-pic'
8276 lt_prog_compiler_static='-Bstatic'
8277 ;;
8278
8279 *)
8280 lt_prog_compiler_can_build_shared=no
8281 ;;
8282 esac
8283 fi
8284
8285case $host_os in
8286 # For platforms which do not support PIC, -DPIC is meaningless:
8287 *djgpp*)
8288 lt_prog_compiler_pic=
8289 ;;
8290 *)
8291 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8292 ;;
8293esac
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8295$as_echo "$lt_prog_compiler_pic" >&6; }
8296
8297
8298
8299
8300
8301
8302#
8303# Check to make sure the PIC flag actually works.
8304#
8305if test -n "$lt_prog_compiler_pic"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8307$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8308if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8309 $as_echo_n "(cached) " >&6
8310else
8311 lt_cv_prog_compiler_pic_works=no
8312 ac_outfile=conftest.$ac_objext
8313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8314 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8315 # Insert the option either (1) after the last *FLAGS variable, or
8316 # (2) before a word containing "conftest.", or (3) at the end.
8317 # Note that $ac_compile itself does not contain backslashes and begins
8318 # with a dollar sign (not a hyphen), so the echo should work correctly.
8319 # The option is referenced via a variable to avoid confusing sed.
8320 lt_compile=`echo "$ac_compile" | $SED \
8321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8323 -e 's:$: $lt_compiler_flag:'`
8324 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8325 (eval "$lt_compile" 2>conftest.err)
8326 ac_status=$?
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 if (exit $ac_status) && test -s "$ac_outfile"; then
8330 # The compiler can only warn and ignore the option if not recognized
8331 # So say no if there are warnings other than the usual output.
8332 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8334 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8335 lt_cv_prog_compiler_pic_works=yes
8336 fi
8337 fi
8338 $RM conftest*
8339
8340fi
8341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8342$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8343
8344if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8345 case $lt_prog_compiler_pic in
8346 "" | " "*) ;;
8347 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8348 esac
8349else
8350 lt_prog_compiler_pic=
8351 lt_prog_compiler_can_build_shared=no
8352fi
8353
8354fi
8355
8356
8357
8358
8359
8360
8361#
8362# Check to make sure the static flag actually works.
8363#
8364wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8366$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8367if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8368 $as_echo_n "(cached) " >&6
8369else
8370 lt_cv_prog_compiler_static_works=no
8371 save_LDFLAGS="$LDFLAGS"
8372 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8373 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8374 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8375 # The linker can only warn and ignore the option if not recognized
8376 # So say no if there are warnings
8377 if test -s conftest.err; then
8378 # Append any errors to the config.log.
8379 cat conftest.err 1>&5
8380 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8381 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8382 if diff conftest.exp conftest.er2 >/dev/null; then
8383 lt_cv_prog_compiler_static_works=yes
8384 fi
8385 else
8386 lt_cv_prog_compiler_static_works=yes
8387 fi
8388 fi
8389 $RM -r conftest*
8390 LDFLAGS="$save_LDFLAGS"
8391
8392fi
8393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8394$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8395
8396if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8397 :
8398else
8399 lt_prog_compiler_static=
8400fi
8401
8402
8403
8404
8405
8406
8407
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8409$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8410if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8411 $as_echo_n "(cached) " >&6
8412else
8413 lt_cv_prog_compiler_c_o=no
8414 $RM -r conftest 2>/dev/null
8415 mkdir conftest
8416 cd conftest
8417 mkdir out
8418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8419
8420 lt_compiler_flag="-o out/conftest2.$ac_objext"
8421 # Insert the option either (1) after the last *FLAGS variable, or
8422 # (2) before a word containing "conftest.", or (3) at the end.
8423 # Note that $ac_compile itself does not contain backslashes and begins
8424 # with a dollar sign (not a hyphen), so the echo should work correctly.
8425 lt_compile=`echo "$ac_compile" | $SED \
8426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8428 -e 's:$: $lt_compiler_flag:'`
8429 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8430 (eval "$lt_compile" 2>out/conftest.err)
8431 ac_status=$?
8432 cat out/conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8435 then
8436 # The compiler can only warn and ignore the option if not recognized
8437 # So say no if there are warnings
8438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8439 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8440 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8441 lt_cv_prog_compiler_c_o=yes
8442 fi
8443 fi
8444 chmod u+w . 2>&5
8445 $RM conftest*
8446 # SGI C++ compiler will create directory out/ii_files/ for
8447 # template instantiation
8448 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8449 $RM out/* && rmdir out
8450 cd ..
8451 $RM -r conftest
8452 $RM conftest*
8453
8454fi
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8456$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8457
8458
8459
8460
8461
8462
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8464$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8465if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8466 $as_echo_n "(cached) " >&6
8467else
8468 lt_cv_prog_compiler_c_o=no
8469 $RM -r conftest 2>/dev/null
8470 mkdir conftest
8471 cd conftest
8472 mkdir out
8473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8474
8475 lt_compiler_flag="-o out/conftest2.$ac_objext"
8476 # Insert the option either (1) after the last *FLAGS variable, or
8477 # (2) before a word containing "conftest.", or (3) at the end.
8478 # Note that $ac_compile itself does not contain backslashes and begins
8479 # with a dollar sign (not a hyphen), so the echo should work correctly.
8480 lt_compile=`echo "$ac_compile" | $SED \
8481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8483 -e 's:$: $lt_compiler_flag:'`
8484 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8485 (eval "$lt_compile" 2>out/conftest.err)
8486 ac_status=$?
8487 cat out/conftest.err >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8490 then
8491 # The compiler can only warn and ignore the option if not recognized
8492 # So say no if there are warnings
8493 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8494 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8495 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8496 lt_cv_prog_compiler_c_o=yes
8497 fi
8498 fi
8499 chmod u+w . 2>&5
8500 $RM conftest*
8501 # SGI C++ compiler will create directory out/ii_files/ for
8502 # template instantiation
8503 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8504 $RM out/* && rmdir out
8505 cd ..
8506 $RM -r conftest
8507 $RM conftest*
8508
8509fi
8510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8511$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8512
8513
8514
8515
8516hard_links="nottested"
8517if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8518 # do not overwrite the value of need_locks provided by the user
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8520$as_echo_n "checking if we can lock with hard links... " >&6; }
8521 hard_links=yes
8522 $RM conftest*
8523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8524 touch conftest.a
8525 ln conftest.a conftest.b 2>&5 || hard_links=no
8526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8528$as_echo "$hard_links" >&6; }
8529 if test "$hard_links" = no; then
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8531$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8532 need_locks=warn
8533 fi
8534else
8535 need_locks=no
8536fi
8537
8538
8539
8540
8541
8542
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8544$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8545
8546 runpath_var=
8547 allow_undefined_flag=
8548 always_export_symbols=no
8549 archive_cmds=
8550 archive_expsym_cmds=
8551 compiler_needs_object=no
8552 enable_shared_with_static_runtimes=no
8553 export_dynamic_flag_spec=
8554 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8555 hardcode_automatic=no
8556 hardcode_direct=no
8557 hardcode_direct_absolute=no
8558 hardcode_libdir_flag_spec=
8559 hardcode_libdir_flag_spec_ld=
8560 hardcode_libdir_separator=
8561 hardcode_minus_L=no
8562 hardcode_shlibpath_var=unsupported
8563 inherit_rpath=no
8564 link_all_deplibs=unknown
8565 module_cmds=
8566 module_expsym_cmds=
8567 old_archive_from_new_cmds=
8568 old_archive_from_expsyms_cmds=
8569 thread_safe_flag_spec=
8570 whole_archive_flag_spec=
8571 # include_expsyms should be a list of space-separated symbols to be *always*
8572 # included in the symbol list
8573 include_expsyms=
8574 # exclude_expsyms can be an extended regexp of symbols to exclude
8575 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8576 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8577 # as well as any symbol that contains `d'.
8578 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8579 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8580 # platforms (ab)use it in PIC code, but their linkers get confused if
8581 # the symbol is explicitly referenced. Since portable code cannot
8582 # rely on this symbol name, it's probably fine to never include it in
8583 # preloaded symbol tables.
8584 # Exclude shared library initialization/finalization symbols.
8585 extract_expsyms_cmds=
8586
8587 case $host_os in
8588 cygwin* | mingw* | pw32* | cegcc*)
8589 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8590 # When not using gcc, we currently assume that we are using
8591 # Microsoft Visual C++.
8592 if test "$GCC" != yes; then
8593 with_gnu_ld=no
8594 fi
8595 ;;
8596 interix*)
8597 # we just hope/assume this is gcc and not c89 (= MSVC++)
8598 with_gnu_ld=yes
8599 ;;
8600 openbsd*)
8601 with_gnu_ld=no
8602 ;;
8603 esac
8604
8605 ld_shlibs=yes
8606
8607 # On some targets, GNU ld is compatible enough with the native linker
8608 # that we're better off using the native interface for both.
8609 lt_use_gnu_ld_interface=no
8610 if test "$with_gnu_ld" = yes; then
8611 case $host_os in
8612 aix*)
8613 # The AIX port of GNU ld has always aspired to compatibility
8614 # with the native linker. However, as the warning in the GNU ld
8615 # block says, versions before 2.19.5* couldn't really create working
8616 # shared libraries, regardless of the interface used.
8617 case `$LD -v 2>&1` in
8618 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8619 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8620 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8621 *)
8622 lt_use_gnu_ld_interface=yes
8623 ;;
8624 esac
8625 ;;
8626 *)
8627 lt_use_gnu_ld_interface=yes
8628 ;;
8629 esac
8630 fi
8631
8632 if test "$lt_use_gnu_ld_interface" = yes; then
8633 # If archive_cmds runs LD, not CC, wlarc should be empty
8634 wlarc='${wl}'
8635
8636 # Set some defaults for GNU ld with shared library support. These
8637 # are reset later if shared libraries are not supported. Putting them
8638 # here allows them to be overridden if necessary.
8639 runpath_var=LD_RUN_PATH
8640 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8641 export_dynamic_flag_spec='${wl}--export-dynamic'
8642 # ancient GNU ld didn't support --whole-archive et. al.
8643 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8644 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8645 else
8646 whole_archive_flag_spec=
8647 fi
8648 supports_anon_versioning=no
8649 case `$LD -v 2>&1` in
8650 *GNU\ gold*) supports_anon_versioning=yes ;;
8651 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8652 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8653 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8654 *\ 2.11.*) ;; # other 2.11 versions
8655 *) supports_anon_versioning=yes ;;
8656 esac
8657
8658 # See if GNU ld supports shared libraries.
8659 case $host_os in
8660 aix[3-9]*)
8661 # On AIX/PPC, the GNU linker is very broken
8662 if test "$host_cpu" != ia64; then
8663 ld_shlibs=no
8664 cat <<_LT_EOF 1>&2
8665
8666*** Warning: the GNU linker, at least up to release 2.19, is reported
8667*** to be unable to reliably create shared libraries on AIX.
8668*** Therefore, libtool is disabling shared libraries support. If you
8669*** really care for shared libraries, you may want to install binutils
8670*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8671*** You will then need to restart the configuration process.
8672
8673_LT_EOF
8674 fi
8675 ;;
8676
8677 amigaos*)
8678 case $host_cpu in
8679 powerpc)
8680 # see comment about AmigaOS4 .so support
8681 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8682 archive_expsym_cmds=''
8683 ;;
8684 m68k)
8685 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)'
8686 hardcode_libdir_flag_spec='-L$libdir'
8687 hardcode_minus_L=yes
8688 ;;
8689 esac
8690 ;;
8691
8692 beos*)
8693 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8694 allow_undefined_flag=unsupported
8695 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8696 # support --undefined. This deserves some investigation. FIXME
8697 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698 else
8699 ld_shlibs=no
8700 fi
8701 ;;
8702
8703 cygwin* | mingw* | pw32* | cegcc*)
8704 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8705 # as there is no search path for DLLs.
8706 hardcode_libdir_flag_spec='-L$libdir'
8707 export_dynamic_flag_spec='${wl}--export-all-symbols'
8708 allow_undefined_flag=unsupported
8709 always_export_symbols=no
8710 enable_shared_with_static_runtimes=yes
8711 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8712
8713 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8715 # If the export-symbols file already is a .def file (1st line
8716 # is EXPORTS), use it as is; otherwise, prepend...
8717 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8718 cp $export_symbols $output_objdir/$soname.def;
8719 else
8720 echo EXPORTS > $output_objdir/$soname.def;
8721 cat $export_symbols >> $output_objdir/$soname.def;
8722 fi~
8723 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8724 else
8725 ld_shlibs=no
8726 fi
8727 ;;
8728
8729 haiku*)
8730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8731 link_all_deplibs=yes
8732 ;;
8733
8734 interix[3-9]*)
8735 hardcode_direct=no
8736 hardcode_shlibpath_var=no
8737 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8738 export_dynamic_flag_spec='${wl}-E'
8739 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8740 # Instead, shared libraries are loaded at an image base (0x10000000 by
8741 # default) and relocated if they conflict, which is a slow very memory
8742 # consuming and fragmenting process. To avoid this, we pick a random,
8743 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8744 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8745 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8746 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'
8747 ;;
8748
8749 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8750 tmp_diet=no
8751 if test "$host_os" = linux-dietlibc; then
8752 case $cc_basename in
8753 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8754 esac
8755 fi
8756 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8757 && test "$tmp_diet" = no
8758 then
8759 tmp_addflag=' $pic_flag'
8760 tmp_sharedflag='-shared'
8761 case $cc_basename,$host_cpu in
8762 pgcc*) # Portland Group C compiler
8763 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'
8764 tmp_addflag=' $pic_flag'
8765 ;;
8766 pgf77* | pgf90* | pgf95* | pgfortran*)
8767 # Portland Group f77 and f90 compilers
8768 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'
8769 tmp_addflag=' $pic_flag -Mnomain' ;;
8770 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8771 tmp_addflag=' -i_dynamic' ;;
8772 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8773 tmp_addflag=' -i_dynamic -nofor_main' ;;
8774 ifc* | ifort*) # Intel Fortran compiler
8775 tmp_addflag=' -nofor_main' ;;
8776 lf95*) # Lahey Fortran 8.1
8777 whole_archive_flag_spec=
8778 tmp_sharedflag='--shared' ;;
8779 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8780 tmp_sharedflag='-qmkshrobj'
8781 tmp_addflag= ;;
8782 nvcc*) # Cuda Compiler Driver 2.2
8783 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'
8784 compiler_needs_object=yes
8785 ;;
8786 esac
8787 case `$CC -V 2>&1 | sed 5q` in
8788 *Sun\ C*) # Sun C 5.9
8789 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'
8790 compiler_needs_object=yes
8791 tmp_sharedflag='-G' ;;
8792 *Sun\ F*) # Sun Fortran 8.3
8793 tmp_sharedflag='-G' ;;
8794 esac
8795 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8796
8797 if test "x$supports_anon_versioning" = xyes; then
8798 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8799 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8800 echo "local: *; };" >> $output_objdir/$libname.ver~
8801 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8802 fi
8803
8804 case $cc_basename in
8805 xlf* | bgf* | bgxlf* | mpixlf*)
8806 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8807 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8808 hardcode_libdir_flag_spec=
8809 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8810 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8811 if test "x$supports_anon_versioning" = xyes; then
8812 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8813 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8814 echo "local: *; };" >> $output_objdir/$libname.ver~
8815 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8816 fi
8817 ;;
8818 esac
8819 else
8820 ld_shlibs=no
8821 fi
8822 ;;
8823
8824 netbsd*)
8825 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8826 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8827 wlarc=
8828 else
8829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8831 fi
8832 ;;
8833
8834 solaris*)
8835 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8836 ld_shlibs=no
8837 cat <<_LT_EOF 1>&2
8838
8839*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8840*** create shared libraries on Solaris systems. Therefore, libtool
8841*** is disabling shared libraries support. We urge you to upgrade GNU
8842*** binutils to release 2.9.1 or newer. Another option is to modify
8843*** your PATH or compiler configuration so that the native linker is
8844*** used, and then restart.
8845
8846_LT_EOF
8847 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8850 else
8851 ld_shlibs=no
8852 fi
8853 ;;
8854
8855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8856 case `$LD -v 2>&1` in
8857 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8858 ld_shlibs=no
8859 cat <<_LT_EOF 1>&2
8860
8861*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8862*** reliably create shared libraries on SCO systems. Therefore, libtool
8863*** is disabling shared libraries support. We urge you to upgrade GNU
8864*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8865*** your PATH or compiler configuration so that the native linker is
8866*** used, and then restart.
8867
8868_LT_EOF
8869 ;;
8870 *)
8871 # For security reasons, it is highly recommended that you always
8872 # use absolute paths for naming shared libraries, and exclude the
8873 # DT_RUNPATH tag from executables and libraries. But doing so
8874 # requires that you compile everything twice, which is a pain.
8875 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8878 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8879 else
8880 ld_shlibs=no
8881 fi
8882 ;;
8883 esac
8884 ;;
8885
8886 sunos4*)
8887 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8888 wlarc=
8889 hardcode_direct=yes
8890 hardcode_shlibpath_var=no
8891 ;;
8892
8893 *)
8894 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8896 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8897 else
8898 ld_shlibs=no
8899 fi
8900 ;;
8901 esac
8902
8903 if test "$ld_shlibs" = no; then
8904 runpath_var=
8905 hardcode_libdir_flag_spec=
8906 export_dynamic_flag_spec=
8907 whole_archive_flag_spec=
8908 fi
8909 else
8910 # PORTME fill in a description of your system's linker (not GNU ld)
8911 case $host_os in
8912 aix3*)
8913 allow_undefined_flag=unsupported
8914 always_export_symbols=yes
8915 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'
8916 # Note: this linker hardcodes the directories in LIBPATH if there
8917 # are no directories specified by -L.
8918 hardcode_minus_L=yes
8919 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8920 # Neither direct hardcoding nor static linking is supported with a
8921 # broken collect2.
8922 hardcode_direct=unsupported
8923 fi
8924 ;;
8925
8926 aix[4-9]*)
8927 if test "$host_cpu" = ia64; then
8928 # On IA64, the linker does run time linking by default, so we don't
8929 # have to do anything special.
8930 aix_use_runtimelinking=no
8931 exp_sym_flag='-Bexport'
8932 no_entry_flag=""
8933 else
8934 # If we're using GNU nm, then we don't want the "-C" option.
8935 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8936 # Also, AIX nm treats weak defined symbols like other global
8937 # defined symbols, whereas GNU nm marks them as "W".
8938 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8939 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'
8940 else
8941 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'
8942 fi
8943 aix_use_runtimelinking=no
8944
8945 # Test if we are trying to use run time linking or normal
8946 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8947 # need to do runtime linking.
8948 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8949 for ld_flag in $LDFLAGS; do
8950 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8951 aix_use_runtimelinking=yes
8952 break
8953 fi
8954 done
8955 ;;
8956 esac
8957
8958 exp_sym_flag='-bexport'
8959 no_entry_flag='-bnoentry'
8960 fi
8961
8962 # When large executables or shared objects are built, AIX ld can
8963 # have problems creating the table of contents. If linking a library
8964 # or program results in "error TOC overflow" add -mminimal-toc to
8965 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8966 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8967
8968 archive_cmds=''
8969 hardcode_direct=yes
8970 hardcode_direct_absolute=yes
8971 hardcode_libdir_separator=':'
8972 link_all_deplibs=yes
8973 file_list_spec='${wl}-f,'
8974
8975 if test "$GCC" = yes; then
8976 case $host_os in aix4.[012]|aix4.[012].*)
8977 # We only want to do this on AIX 4.2 and lower, the check
8978 # below for broken collect2 doesn't work under 4.3+
8979 collect2name=`${CC} -print-prog-name=collect2`
8980 if test -f "$collect2name" &&
8981 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8982 then
8983 # We have reworked collect2
8984 :
8985 else
8986 # We have old collect2
8987 hardcode_direct=unsupported
8988 # It fails to find uninstalled libraries when the uninstalled
8989 # path is not listed in the libpath. Setting hardcode_minus_L
8990 # to unsupported forces relinking
8991 hardcode_minus_L=yes
8992 hardcode_libdir_flag_spec='-L$libdir'
8993 hardcode_libdir_separator=
8994 fi
8995 ;;
8996 esac
8997 shared_flag='-shared'
8998 if test "$aix_use_runtimelinking" = yes; then
8999 shared_flag="$shared_flag "'${wl}-G'
9000 fi
9001 else
9002 # not using gcc
9003 if test "$host_cpu" = ia64; then
9004 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9005 # chokes on -Wl,-G. The following line is correct:
9006 shared_flag='-G'
9007 else
9008 if test "$aix_use_runtimelinking" = yes; then
9009 shared_flag='${wl}-G'
9010 else
9011 shared_flag='${wl}-bM:SRE'
9012 fi
9013 fi
9014 fi
9015
9016 export_dynamic_flag_spec='${wl}-bexpall'
9017 # It seems that -bexpall does not export symbols beginning with
9018 # underscore (_), so it is better to generate a list of symbols to export.
9019 always_export_symbols=yes
9020 if test "$aix_use_runtimelinking" = yes; then
9021 # Warning - without using the other runtime loading flags (-brtl),
9022 # -berok will link without error, but may produce a broken library.
9023 allow_undefined_flag='-berok'
9024 # Determine the default libpath from the value encoded in an
9025 # empty executable.
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027/* end confdefs.h. */
9028
9029int
9030main ()
9031{
9032
9033 ;
9034 return 0;
9035}
9036_ACEOF
9037if ac_fn_c_try_link "$LINENO"; then :
9038
9039lt_aix_libpath_sed='
9040 /Import File Strings/,/^$/ {
9041 /^0/ {
9042 s/^0 *\(.*\)$/\1/
9043 p
9044 }
9045 }'
9046aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9047# Check for a 64-bit object if we didn't find anything.
9048if test -z "$aix_libpath"; then
9049 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9050fi
9051fi
9052rm -f core conftest.err conftest.$ac_objext \
9053 conftest$ac_exeext conftest.$ac_ext
9054if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9055
9056 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9057 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"
9058 else
9059 if test "$host_cpu" = ia64; then
9060 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9061 allow_undefined_flag="-z nodefs"
9062 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"
9063 else
9064 # Determine the default libpath from the value encoded in an
9065 # empty executable.
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067/* end confdefs.h. */
9068
9069int
9070main ()
9071{
9072
9073 ;
9074 return 0;
9075}
9076_ACEOF
9077if ac_fn_c_try_link "$LINENO"; then :
9078
9079lt_aix_libpath_sed='
9080 /Import File Strings/,/^$/ {
9081 /^0/ {
9082 s/^0 *\(.*\)$/\1/
9083 p
9084 }
9085 }'
9086aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9087# Check for a 64-bit object if we didn't find anything.
9088if test -z "$aix_libpath"; then
9089 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9090fi
9091fi
9092rm -f core conftest.err conftest.$ac_objext \
9093 conftest$ac_exeext conftest.$ac_ext
9094if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9095
9096 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9097 # Warning - without using the other run time loading flags,
9098 # -berok will link without error, but may produce a broken library.
9099 no_undefined_flag=' ${wl}-bernotok'
9100 allow_undefined_flag=' ${wl}-berok'
9101 if test "$with_gnu_ld" = yes; then
9102 # We only use this code for GNU lds that support --whole-archive.
9103 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9104 else
9105 # Exported symbols can be pulled into shared objects from archives
9106 whole_archive_flag_spec='$convenience'
9107 fi
9108 archive_cmds_need_lc=yes
9109 # This is similar to how AIX traditionally builds its shared libraries.
9110 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'
9111 fi
9112 fi
9113 ;;
9114
9115 amigaos*)
9116 case $host_cpu in
9117 powerpc)
9118 # see comment about AmigaOS4 .so support
9119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9120 archive_expsym_cmds=''
9121 ;;
9122 m68k)
9123 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)'
9124 hardcode_libdir_flag_spec='-L$libdir'
9125 hardcode_minus_L=yes
9126 ;;
9127 esac
9128 ;;
9129
9130 bsdi[45]*)
9131 export_dynamic_flag_spec=-rdynamic
9132 ;;
9133
9134 cygwin* | mingw* | pw32* | cegcc*)
9135 # When not using gcc, we currently assume that we are using
9136 # Microsoft Visual C++.
9137 # hardcode_libdir_flag_spec is actually meaningless, as there is
9138 # no search path for DLLs.
9139 hardcode_libdir_flag_spec=' '
9140 allow_undefined_flag=unsupported
9141 # Tell ltmain to make .lib files, not .a files.
9142 libext=lib
9143 # Tell ltmain to make .dll files, not .so files.
9144 shrext_cmds=".dll"
9145 # FIXME: Setting linknames here is a bad hack.
9146 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9147 # The linker will automatically build a .lib file if we build a DLL.
9148 old_archive_from_new_cmds='true'
9149 # FIXME: Should let the user specify the lib program.
9150 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9151 fix_srcfile_path='`cygpath -w "$srcfile"`'
9152 enable_shared_with_static_runtimes=yes
9153 ;;
9154
9155 darwin* | rhapsody*)
9156
9157
9158 archive_cmds_need_lc=no
9159 hardcode_direct=no
9160 hardcode_automatic=yes
9161 hardcode_shlibpath_var=unsupported
9162 if test "$lt_cv_ld_force_load" = "yes"; then
9163 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\"`'
9164 else
9165 whole_archive_flag_spec=''
9166 fi
9167 link_all_deplibs=yes
9168 allow_undefined_flag="$_lt_dar_allow_undefined"
9169 case $cc_basename in
9170 ifort*) _lt_dar_can_shared=yes ;;
9171 *) _lt_dar_can_shared=$GCC ;;
9172 esac
9173 if test "$_lt_dar_can_shared" = "yes"; then
9174 output_verbose_link_cmd=func_echo_all
9175 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9176 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9177 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}"
9178 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}"
9179
9180 else
9181 ld_shlibs=no
9182 fi
9183
9184 ;;
9185
9186 dgux*)
9187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9188 hardcode_libdir_flag_spec='-L$libdir'
9189 hardcode_shlibpath_var=no
9190 ;;
9191
9192 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9193 # support. Future versions do this automatically, but an explicit c++rt0.o
9194 # does not break anything, and helps significantly (at the cost of a little
9195 # extra space).
9196 freebsd2.2*)
9197 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9198 hardcode_libdir_flag_spec='-R$libdir'
9199 hardcode_direct=yes
9200 hardcode_shlibpath_var=no
9201 ;;
9202
9203 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9204 freebsd2.*)
9205 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9206 hardcode_direct=yes
9207 hardcode_minus_L=yes
9208 hardcode_shlibpath_var=no
9209 ;;
9210
9211 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9212 freebsd* | dragonfly*)
9213 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9214 hardcode_libdir_flag_spec='-R$libdir'
9215 hardcode_direct=yes
9216 hardcode_shlibpath_var=no
9217 ;;
9218
9219 hpux9*)
9220 if test "$GCC" = yes; then
9221 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'
9222 else
9223 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'
9224 fi
9225 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9226 hardcode_libdir_separator=:
9227 hardcode_direct=yes
9228
9229 # hardcode_minus_L: Not really in the search PATH,
9230 # but as the default location of the library.
9231 hardcode_minus_L=yes
9232 export_dynamic_flag_spec='${wl}-E'
9233 ;;
9234
9235 hpux10*)
9236 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9237 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9238 else
9239 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9240 fi
9241 if test "$with_gnu_ld" = no; then
9242 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9243 hardcode_libdir_flag_spec_ld='+b $libdir'
9244 hardcode_libdir_separator=:
9245 hardcode_direct=yes
9246 hardcode_direct_absolute=yes
9247 export_dynamic_flag_spec='${wl}-E'
9248 # hardcode_minus_L: Not really in the search PATH,
9249 # but as the default location of the library.
9250 hardcode_minus_L=yes
9251 fi
9252 ;;
9253
9254 hpux11*)
9255 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9256 case $host_cpu in
9257 hppa*64*)
9258 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9259 ;;
9260 ia64*)
9261 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9262 ;;
9263 *)
9264 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9265 ;;
9266 esac
9267 else
9268 case $host_cpu in
9269 hppa*64*)
9270 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9271 ;;
9272 ia64*)
9273 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9274 ;;
9275 *)
9276
9277 # Older versions of the 11.00 compiler do not understand -b yet
9278 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9280$as_echo_n "checking if $CC understands -b... " >&6; }
9281if test "${lt_cv_prog_compiler__b+set}" = set; then :
9282 $as_echo_n "(cached) " >&6
9283else
9284 lt_cv_prog_compiler__b=no
9285 save_LDFLAGS="$LDFLAGS"
9286 LDFLAGS="$LDFLAGS -b"
9287 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9288 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9289 # The linker can only warn and ignore the option if not recognized
9290 # So say no if there are warnings
9291 if test -s conftest.err; then
9292 # Append any errors to the config.log.
9293 cat conftest.err 1>&5
9294 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9296 if diff conftest.exp conftest.er2 >/dev/null; then
9297 lt_cv_prog_compiler__b=yes
9298 fi
9299 else
9300 lt_cv_prog_compiler__b=yes
9301 fi
9302 fi
9303 $RM -r conftest*
9304 LDFLAGS="$save_LDFLAGS"
9305
9306fi
9307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9308$as_echo "$lt_cv_prog_compiler__b" >&6; }
9309
9310if test x"$lt_cv_prog_compiler__b" = xyes; then
9311 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9312else
9313 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9314fi
9315
9316 ;;
9317 esac
9318 fi
9319 if test "$with_gnu_ld" = no; then
9320 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9321 hardcode_libdir_separator=:
9322
9323 case $host_cpu in
9324 hppa*64*|ia64*)
9325 hardcode_direct=no
9326 hardcode_shlibpath_var=no
9327 ;;
9328 *)
9329 hardcode_direct=yes
9330 hardcode_direct_absolute=yes
9331 export_dynamic_flag_spec='${wl}-E'
9332
9333 # hardcode_minus_L: Not really in the search PATH,
9334 # but as the default location of the library.
9335 hardcode_minus_L=yes
9336 ;;
9337 esac
9338 fi
9339 ;;
9340
9341 irix5* | irix6* | nonstopux*)
9342 if test "$GCC" = yes; then
9343 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'
9344 # Try to use the -exported_symbol ld option, if it does not
9345 # work, assume that -exports_file does not work either and
9346 # implicitly export all symbols.
9347 save_LDFLAGS="$LDFLAGS"
9348 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350/* end confdefs.h. */
9351int foo(void) {}
9352_ACEOF
9353if ac_fn_c_try_link "$LINENO"; then :
9354 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'
9355
9356fi
9357rm -f core conftest.err conftest.$ac_objext \
9358 conftest$ac_exeext conftest.$ac_ext
9359 LDFLAGS="$save_LDFLAGS"
9360 else
9361 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'
9362 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'
9363 fi
9364 archive_cmds_need_lc='no'
9365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9366 hardcode_libdir_separator=:
9367 inherit_rpath=yes
9368 link_all_deplibs=yes
9369 ;;
9370
9371 netbsd*)
9372 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9374 else
9375 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9376 fi
9377 hardcode_libdir_flag_spec='-R$libdir'
9378 hardcode_direct=yes
9379 hardcode_shlibpath_var=no
9380 ;;
9381
9382 newsos6)
9383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9384 hardcode_direct=yes
9385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9386 hardcode_libdir_separator=:
9387 hardcode_shlibpath_var=no
9388 ;;
9389
9390 *nto* | *qnx*)
9391 ;;
9392
9393 openbsd*)
9394 if test -f /usr/libexec/ld.so; then
9395 hardcode_direct=yes
9396 hardcode_shlibpath_var=no
9397 hardcode_direct_absolute=yes
9398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9399 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9400 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9401 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9402 export_dynamic_flag_spec='${wl}-E'
9403 else
9404 case $host_os in
9405 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9406 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9407 hardcode_libdir_flag_spec='-R$libdir'
9408 ;;
9409 *)
9410 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9411 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9412 ;;
9413 esac
9414 fi
9415 else
9416 ld_shlibs=no
9417 fi
9418 ;;
9419
9420 os2*)
9421 hardcode_libdir_flag_spec='-L$libdir'
9422 hardcode_minus_L=yes
9423 allow_undefined_flag=unsupported
9424 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'
9425 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9426 ;;
9427
9428 osf3*)
9429 if test "$GCC" = yes; then
9430 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9431 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'
9432 else
9433 allow_undefined_flag=' -expect_unresolved \*'
9434 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'
9435 fi
9436 archive_cmds_need_lc='no'
9437 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9438 hardcode_libdir_separator=:
9439 ;;
9440
9441 osf4* | osf5*) # as osf3* with the addition of -msym flag
9442 if test "$GCC" = yes; then
9443 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9444 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'
9445 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9446 else
9447 allow_undefined_flag=' -expect_unresolved \*'
9448 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'
9449 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~
9450 $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'
9451
9452 # Both c and cxx compiler support -rpath directly
9453 hardcode_libdir_flag_spec='-rpath $libdir'
9454 fi
9455 archive_cmds_need_lc='no'
9456 hardcode_libdir_separator=:
9457 ;;
9458
9459 solaris*)
9460 no_undefined_flag=' -z defs'
9461 if test "$GCC" = yes; then
9462 wlarc='${wl}'
9463 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9464 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9465 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9466 else
9467 case `$CC -V 2>&1` in
9468 *"Compilers 5.0"*)
9469 wlarc=''
9470 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9471 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9472 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9473 ;;
9474 *)
9475 wlarc='${wl}'
9476 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9477 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9478 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9479 ;;
9480 esac
9481 fi
9482 hardcode_libdir_flag_spec='-R$libdir'
9483 hardcode_shlibpath_var=no
9484 case $host_os in
9485 solaris2.[0-5] | solaris2.[0-5].*) ;;
9486 *)
9487 # The compiler driver will combine and reorder linker options,
9488 # but understands `-z linker_flag'. GCC discards it without `$wl',
9489 # but is careful enough not to reorder.
9490 # Supported since Solaris 2.6 (maybe 2.5.1?)
9491 if test "$GCC" = yes; then
9492 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9493 else
9494 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9495 fi
9496 ;;
9497 esac
9498 link_all_deplibs=yes
9499 ;;
9500
9501 sunos4*)
9502 if test "x$host_vendor" = xsequent; then
9503 # Use $CC to link under sequent, because it throws in some extra .o
9504 # files that make .init and .fini sections work.
9505 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9506 else
9507 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9508 fi
9509 hardcode_libdir_flag_spec='-L$libdir'
9510 hardcode_direct=yes
9511 hardcode_minus_L=yes
9512 hardcode_shlibpath_var=no
9513 ;;
9514
9515 sysv4)
9516 case $host_vendor in
9517 sni)
9518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9519 hardcode_direct=yes # is this really true???
9520 ;;
9521 siemens)
9522 ## LD is ld it makes a PLAMLIB
9523 ## CC just makes a GrossModule.
9524 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9525 reload_cmds='$CC -r -o $output$reload_objs'
9526 hardcode_direct=no
9527 ;;
9528 motorola)
9529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9530 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9531 ;;
9532 esac
9533 runpath_var='LD_RUN_PATH'
9534 hardcode_shlibpath_var=no
9535 ;;
9536
9537 sysv4.3*)
9538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9539 hardcode_shlibpath_var=no
9540 export_dynamic_flag_spec='-Bexport'
9541 ;;
9542
9543 sysv4*MP*)
9544 if test -d /usr/nec; then
9545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9546 hardcode_shlibpath_var=no
9547 runpath_var=LD_RUN_PATH
9548 hardcode_runpath_var=yes
9549 ld_shlibs=yes
9550 fi
9551 ;;
9552
9553 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9554 no_undefined_flag='${wl}-z,text'
9555 archive_cmds_need_lc=no
9556 hardcode_shlibpath_var=no
9557 runpath_var='LD_RUN_PATH'
9558
9559 if test "$GCC" = yes; then
9560 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9561 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9562 else
9563 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9564 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9565 fi
9566 ;;
9567
9568 sysv5* | sco3.2v5* | sco5v6*)
9569 # Note: We can NOT use -z defs as we might desire, because we do not
9570 # link with -lc, and that would cause any symbols used from libc to
9571 # always be unresolved, which means just about no library would
9572 # ever link correctly. If we're not using GNU ld we use -z text
9573 # though, which does catch some bad symbols but isn't as heavy-handed
9574 # as -z defs.
9575 no_undefined_flag='${wl}-z,text'
9576 allow_undefined_flag='${wl}-z,nodefs'
9577 archive_cmds_need_lc=no
9578 hardcode_shlibpath_var=no
9579 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9580 hardcode_libdir_separator=':'
9581 link_all_deplibs=yes
9582 export_dynamic_flag_spec='${wl}-Bexport'
9583 runpath_var='LD_RUN_PATH'
9584
9585 if test "$GCC" = yes; then
9586 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9587 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9588 else
9589 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9590 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9591 fi
9592 ;;
9593
9594 uts4*)
9595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9596 hardcode_libdir_flag_spec='-L$libdir'
9597 hardcode_shlibpath_var=no
9598 ;;
9599
9600 *)
9601 ld_shlibs=no
9602 ;;
9603 esac
9604
9605 if test x$host_vendor = xsni; then
9606 case $host in
9607 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9608 export_dynamic_flag_spec='${wl}-Blargedynsym'
9609 ;;
9610 esac
9611 fi
9612 fi
9613
9614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9615$as_echo "$ld_shlibs" >&6; }
9616test "$ld_shlibs" = no && can_build_shared=no
9617
9618with_gnu_ld=$with_gnu_ld
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634#
9635# Do we need to explicitly link libc?
9636#
9637case "x$archive_cmds_need_lc" in
9638x|xyes)
9639 # Assume -lc should be added
9640 archive_cmds_need_lc=yes
9641
9642 if test "$enable_shared" = yes && test "$GCC" = yes; then
9643 case $archive_cmds in
9644 *'~'*)
9645 # FIXME: we may have to deal with multi-command sequences.
9646 ;;
9647 '$CC '*)
9648 # Test whether the compiler implicitly links with -lc since on some
9649 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9650 # to ld, don't add -lc before -lgcc.
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9652$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9653if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9654 $as_echo_n "(cached) " >&6
9655else
9656 $RM conftest*
9657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9658
9659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9660 (eval $ac_compile) 2>&5
9661 ac_status=$?
9662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9663 test $ac_status = 0; } 2>conftest.err; then
9664 soname=conftest
9665 lib=conftest
9666 libobjs=conftest.$ac_objext
9667 deplibs=
9668 wl=$lt_prog_compiler_wl
9669 pic_flag=$lt_prog_compiler_pic
9670 compiler_flags=-v
9671 linker_flags=-v
9672 verstring=
9673 output_objdir=.
9674 libname=conftest
9675 lt_save_allow_undefined_flag=$allow_undefined_flag
9676 allow_undefined_flag=
9677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9678 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9679 ac_status=$?
9680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9681 test $ac_status = 0; }
9682 then
9683 lt_cv_archive_cmds_need_lc=no
9684 else
9685 lt_cv_archive_cmds_need_lc=yes
9686 fi
9687 allow_undefined_flag=$lt_save_allow_undefined_flag
9688 else
9689 cat conftest.err 1>&5
9690 fi
9691 $RM conftest*
9692
9693fi
9694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9695$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9696 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9697 ;;
9698 esac
9699 fi
9700 ;;
9701esac
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9860$as_echo_n "checking dynamic linker characteristics... " >&6; }
9861
9862if test "$GCC" = yes; then
9863 case $host_os in
9864 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9865 *) lt_awk_arg="/^libraries:/" ;;
9866 esac
9867 case $host_os in
9868 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9869 *) lt_sed_strip_eq="s,=/,/,g" ;;
9870 esac
9871 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9872 case $lt_search_path_spec in
9873 *\;*)
9874 # if the path contains ";" then we assume it to be the separator
9875 # otherwise default to the standard path separator (i.e. ":") - it is
9876 # assumed that no part of a normal pathname contains ";" but that should
9877 # okay in the real world where ";" in dirpaths is itself problematic.
9878 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9879 ;;
9880 *)
9881 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9882 ;;
9883 esac
9884 # Ok, now we have the path, separated by spaces, we can step through it
9885 # and add multilib dir if necessary.
9886 lt_tmp_lt_search_path_spec=
9887 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9888 for lt_sys_path in $lt_search_path_spec; do
9889 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9890 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9891 else
9892 test -d "$lt_sys_path" && \
9893 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9894 fi
9895 done
9896 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9897BEGIN {RS=" "; FS="/|\n";} {
9898 lt_foo="";
9899 lt_count=0;
9900 for (lt_i = NF; lt_i > 0; lt_i--) {
9901 if ($lt_i != "" && $lt_i != ".") {
9902 if ($lt_i == "..") {
9903 lt_count++;
9904 } else {
9905 if (lt_count == 0) {
9906 lt_foo="/" $lt_i lt_foo;
9907 } else {
9908 lt_count--;
9909 }
9910 }
9911 }
9912 }
9913 if (lt_foo != "") { lt_freq[lt_foo]++; }
9914 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9915}'`
9916 # AWK program above erroneously prepends '/' to C:/dos/paths
9917 # for these hosts.
9918 case $host_os in
9919 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9920 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9921 esac
9922 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9923else
9924 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9925fi
9926library_names_spec=
9927libname_spec='lib$name'
9928soname_spec=
9929shrext_cmds=".so"
9930postinstall_cmds=
9931postuninstall_cmds=
9932finish_cmds=
9933finish_eval=
9934shlibpath_var=
9935shlibpath_overrides_runpath=unknown
9936version_type=none
9937dynamic_linker="$host_os ld.so"
9938sys_lib_dlsearch_path_spec="/lib /usr/lib"
9939need_lib_prefix=unknown
9940hardcode_into_libs=no
9941
9942# when you set need_version to no, make sure it does not cause -set_version
9943# flags to be left without arguments
9944need_version=unknown
9945
9946case $host_os in
9947aix3*)
9948 version_type=linux
9949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9950 shlibpath_var=LIBPATH
9951
9952 # AIX 3 has no versioning support, so we append a major version to the name.
9953 soname_spec='${libname}${release}${shared_ext}$major'
9954 ;;
9955
9956aix[4-9]*)
9957 version_type=linux
9958 need_lib_prefix=no
9959 need_version=no
9960 hardcode_into_libs=yes
9961 if test "$host_cpu" = ia64; then
9962 # AIX 5 supports IA64
9963 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9964 shlibpath_var=LD_LIBRARY_PATH
9965 else
9966 # With GCC up to 2.95.x, collect2 would create an import file
9967 # for dependence libraries. The import file would start with
9968 # the line `#! .'. This would cause the generated library to
9969 # depend on `.', always an invalid library. This was fixed in
9970 # development snapshots of GCC prior to 3.0.
9971 case $host_os in
9972 aix4 | aix4.[01] | aix4.[01].*)
9973 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9974 echo ' yes '
9975 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9976 :
9977 else
9978 can_build_shared=no
9979 fi
9980 ;;
9981 esac
9982 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9983 # soname into executable. Probably we can add versioning support to
9984 # collect2, so additional links can be useful in future.
9985 if test "$aix_use_runtimelinking" = yes; then
9986 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9987 # instead of lib<name>.a to let people know that these are not
9988 # typical AIX shared libraries.
9989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9990 else
9991 # We preserve .a as extension for shared libraries through AIX4.2
9992 # and later when we are not doing run time linking.
9993 library_names_spec='${libname}${release}.a $libname.a'
9994 soname_spec='${libname}${release}${shared_ext}$major'
9995 fi
9996 shlibpath_var=LIBPATH
9997 fi
9998 ;;
9999
10000amigaos*)
10001 case $host_cpu in
10002 powerpc)
10003 # Since July 2007 AmigaOS4 officially supports .so libraries.
10004 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006 ;;
10007 m68k)
10008 library_names_spec='$libname.ixlibrary $libname.a'
10009 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10010 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'
10011 ;;
10012 esac
10013 ;;
10014
10015beos*)
10016 library_names_spec='${libname}${shared_ext}'
10017 dynamic_linker="$host_os ld.so"
10018 shlibpath_var=LIBRARY_PATH
10019 ;;
10020
10021bsdi[45]*)
10022 version_type=linux
10023 need_version=no
10024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10025 soname_spec='${libname}${release}${shared_ext}$major'
10026 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10027 shlibpath_var=LD_LIBRARY_PATH
10028 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10029 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10030 # the default ld.so.conf also contains /usr/contrib/lib and
10031 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10032 # libtool to hard-code these into programs
10033 ;;
10034
10035cygwin* | mingw* | pw32* | cegcc*)
10036 version_type=windows
10037 shrext_cmds=".dll"
10038 need_version=no
10039 need_lib_prefix=no
10040
10041 case $GCC,$host_os in
10042 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10043 library_names_spec='$libname.dll.a'
10044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10045 postinstall_cmds='base_file=`basename \${file}`~
10046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10047 dldir=$destdir/`dirname \$dlpath`~
10048 test -d \$dldir || mkdir -p \$dldir~
10049 $install_prog $dir/$dlname \$dldir/$dlname~
10050 chmod a+x \$dldir/$dlname~
10051 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10052 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10053 fi'
10054 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10055 dlpath=$dir/\$dldll~
10056 $RM \$dlpath'
10057 shlibpath_overrides_runpath=yes
10058
10059 case $host_os in
10060 cygwin*)
10061 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10062 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10063
10064 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10065 ;;
10066 mingw* | cegcc*)
10067 # MinGW DLLs use traditional 'lib' prefix
10068 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10069 ;;
10070 pw32*)
10071 # pw32 DLLs use 'pw' prefix rather than 'lib'
10072 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10073 ;;
10074 esac
10075 ;;
10076
10077 *)
10078 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10079 ;;
10080 esac
10081 dynamic_linker='Win32 ld.exe'
10082 # FIXME: first we should search . and the directory the executable is in
10083 shlibpath_var=PATH
10084 ;;
10085
10086darwin* | rhapsody*)
10087 dynamic_linker="$host_os dyld"
10088 version_type=darwin
10089 need_lib_prefix=no
10090 need_version=no
10091 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10092 soname_spec='${libname}${release}${major}$shared_ext'
10093 shlibpath_overrides_runpath=yes
10094 shlibpath_var=DYLD_LIBRARY_PATH
10095 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10096
10097 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10098 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10099 ;;
10100
10101dgux*)
10102 version_type=linux
10103 need_lib_prefix=no
10104 need_version=no
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 shlibpath_var=LD_LIBRARY_PATH
10108 ;;
10109
10110freebsd* | dragonfly*)
10111 # DragonFly does not have aout. When/if they implement a new
10112 # versioning mechanism, adjust this.
10113 if test -x /usr/bin/objformat; then
10114 objformat=`/usr/bin/objformat`
10115 else
10116 case $host_os in
10117 freebsd[23].*) objformat=aout ;;
10118 *) objformat=elf ;;
10119 esac
10120 fi
10121 version_type=freebsd-$objformat
10122 case $version_type in
10123 freebsd-elf*)
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10125 need_version=no
10126 need_lib_prefix=no
10127 ;;
10128 freebsd-*)
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10130 need_version=yes
10131 ;;
10132 esac
10133 shlibpath_var=LD_LIBRARY_PATH
10134 case $host_os in
10135 freebsd2.*)
10136 shlibpath_overrides_runpath=yes
10137 ;;
10138 freebsd3.[01]* | freebsdelf3.[01]*)
10139 shlibpath_overrides_runpath=yes
10140 hardcode_into_libs=yes
10141 ;;
10142 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10143 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10144 shlibpath_overrides_runpath=no
10145 hardcode_into_libs=yes
10146 ;;
10147 *) # from 4.6 on, and DragonFly
10148 shlibpath_overrides_runpath=yes
10149 hardcode_into_libs=yes
10150 ;;
10151 esac
10152 ;;
10153
10154gnu*)
10155 version_type=linux
10156 need_lib_prefix=no
10157 need_version=no
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 shlibpath_var=LD_LIBRARY_PATH
10161 hardcode_into_libs=yes
10162 ;;
10163
10164haiku*)
10165 version_type=linux
10166 need_lib_prefix=no
10167 need_version=no
10168 dynamic_linker="$host_os runtime_loader"
10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10170 soname_spec='${libname}${release}${shared_ext}$major'
10171 shlibpath_var=LIBRARY_PATH
10172 shlibpath_overrides_runpath=yes
10173 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10174 hardcode_into_libs=yes
10175 ;;
10176
10177hpux9* | hpux10* | hpux11*)
10178 # Give a soname corresponding to the major version so that dld.sl refuses to
10179 # link against other versions.
10180 version_type=sunos
10181 need_lib_prefix=no
10182 need_version=no
10183 case $host_cpu in
10184 ia64*)
10185 shrext_cmds='.so'
10186 hardcode_into_libs=yes
10187 dynamic_linker="$host_os dld.so"
10188 shlibpath_var=LD_LIBRARY_PATH
10189 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 if test "X$HPUX_IA64_MODE" = X32; then
10193 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10194 else
10195 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10196 fi
10197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10198 ;;
10199 hppa*64*)
10200 shrext_cmds='.sl'
10201 hardcode_into_libs=yes
10202 dynamic_linker="$host_os dld.sl"
10203 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206 soname_spec='${libname}${release}${shared_ext}$major'
10207 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10209 ;;
10210 *)
10211 shrext_cmds='.sl'
10212 dynamic_linker="$host_os dld.sl"
10213 shlibpath_var=SHLIB_PATH
10214 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10216 soname_spec='${libname}${release}${shared_ext}$major'
10217 ;;
10218 esac
10219 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10220 postinstall_cmds='chmod 555 $lib'
10221 # or fails outright, so override atomically:
10222 install_override_mode=555
10223 ;;
10224
10225interix[3-9]*)
10226 version_type=linux
10227 need_lib_prefix=no
10228 need_version=no
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10230 soname_spec='${libname}${release}${shared_ext}$major'
10231 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 shlibpath_overrides_runpath=no
10234 hardcode_into_libs=yes
10235 ;;
10236
10237irix5* | irix6* | nonstopux*)
10238 case $host_os in
10239 nonstopux*) version_type=nonstopux ;;
10240 *)
10241 if test "$lt_cv_prog_gnu_ld" = yes; then
10242 version_type=linux
10243 else
10244 version_type=irix
10245 fi ;;
10246 esac
10247 need_lib_prefix=no
10248 need_version=no
10249 soname_spec='${libname}${release}${shared_ext}$major'
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10251 case $host_os in
10252 irix5* | nonstopux*)
10253 libsuff= shlibsuff=
10254 ;;
10255 *)
10256 case $LD in # libtool.m4 will add one of these switches to LD
10257 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10258 libsuff= shlibsuff= libmagic=32-bit;;
10259 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10260 libsuff=32 shlibsuff=N32 libmagic=N32;;
10261 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10262 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10263 *) libsuff= shlibsuff= libmagic=never-match;;
10264 esac
10265 ;;
10266 esac
10267 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10268 shlibpath_overrides_runpath=no
10269 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10270 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10271 hardcode_into_libs=yes
10272 ;;
10273
10274# No shared lib support for Linux oldld, aout, or coff.
10275linux*oldld* | linux*aout* | linux*coff*)
10276 dynamic_linker=no
10277 ;;
10278
10279# This must be Linux ELF.
10280linux* | k*bsd*-gnu | kopensolaris*-gnu)
10281 version_type=linux
10282 need_lib_prefix=no
10283 need_version=no
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285 soname_spec='${libname}${release}${shared_ext}$major'
10286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 shlibpath_overrides_runpath=no
10289
10290 # Some binutils ld are patched to set DT_RUNPATH
10291 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10292 $as_echo_n "(cached) " >&6
10293else
10294 lt_cv_shlibpath_overrides_runpath=no
10295 save_LDFLAGS=$LDFLAGS
10296 save_libdir=$libdir
10297 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10298 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300/* end confdefs.h. */
10301
10302int
10303main ()
10304{
10305
10306 ;
10307 return 0;
10308}
10309_ACEOF
10310if ac_fn_c_try_link "$LINENO"; then :
10311 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10312 lt_cv_shlibpath_overrides_runpath=yes
10313fi
10314fi
10315rm -f core conftest.err conftest.$ac_objext \
10316 conftest$ac_exeext conftest.$ac_ext
10317 LDFLAGS=$save_LDFLAGS
10318 libdir=$save_libdir
10319
10320fi
10321
10322 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10323
10324 # This implies no fast_install, which is unacceptable.
10325 # Some rework will be needed to allow for fast_install
10326 # before this can be enabled.
10327 hardcode_into_libs=yes
10328
10329 # Append ld.so.conf contents to the search path
10330 if test -f /etc/ld.so.conf; then
10331 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' ' '`
10332 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10333 fi
10334
10335 # We used to test for /lib/ld.so.1 and disable shared libraries on
10336 # powerpc, because MkLinux only supported shared libraries with the
10337 # GNU dynamic linker. Since this was broken with cross compilers,
10338 # most powerpc-linux boxes support dynamic linking these days and
10339 # people can always --disable-shared, the test was removed, and we
10340 # assume the GNU/Linux dynamic linker is in use.
10341 dynamic_linker='GNU/Linux ld.so'
10342 ;;
10343
10344netbsd*)
10345 version_type=sunos
10346 need_lib_prefix=no
10347 need_version=no
10348 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10351 dynamic_linker='NetBSD (a.out) ld.so'
10352 else
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 dynamic_linker='NetBSD ld.elf_so'
10356 fi
10357 shlibpath_var=LD_LIBRARY_PATH
10358 shlibpath_overrides_runpath=yes
10359 hardcode_into_libs=yes
10360 ;;
10361
10362newsos6)
10363 version_type=linux
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 shlibpath_overrides_runpath=yes
10367 ;;
10368
10369*nto* | *qnx*)
10370 version_type=qnx
10371 need_lib_prefix=no
10372 need_version=no
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10374 soname_spec='${libname}${release}${shared_ext}$major'
10375 shlibpath_var=LD_LIBRARY_PATH
10376 shlibpath_overrides_runpath=no
10377 hardcode_into_libs=yes
10378 dynamic_linker='ldqnx.so'
10379 ;;
10380
10381openbsd*)
10382 version_type=sunos
10383 sys_lib_dlsearch_path_spec="/usr/lib"
10384 need_lib_prefix=no
10385 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10386 case $host_os in
10387 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10388 *) need_version=no ;;
10389 esac
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10394 case $host_os in
10395 openbsd2.[89] | openbsd2.[89].*)
10396 shlibpath_overrides_runpath=no
10397 ;;
10398 *)
10399 shlibpath_overrides_runpath=yes
10400 ;;
10401 esac
10402 else
10403 shlibpath_overrides_runpath=yes
10404 fi
10405 ;;
10406
10407os2*)
10408 libname_spec='$name'
10409 shrext_cmds=".dll"
10410 need_lib_prefix=no
10411 library_names_spec='$libname${shared_ext} $libname.a'
10412 dynamic_linker='OS/2 ld.exe'
10413 shlibpath_var=LIBPATH
10414 ;;
10415
10416osf3* | osf4* | osf5*)
10417 version_type=osf
10418 need_lib_prefix=no
10419 need_version=no
10420 soname_spec='${libname}${release}${shared_ext}$major'
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10422 shlibpath_var=LD_LIBRARY_PATH
10423 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10424 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10425 ;;
10426
10427rdos*)
10428 dynamic_linker=no
10429 ;;
10430
10431solaris*)
10432 version_type=linux
10433 need_lib_prefix=no
10434 need_version=no
10435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10436 soname_spec='${libname}${release}${shared_ext}$major'
10437 shlibpath_var=LD_LIBRARY_PATH
10438 shlibpath_overrides_runpath=yes
10439 hardcode_into_libs=yes
10440 # ldd complains unless libraries are executable
10441 postinstall_cmds='chmod +x $lib'
10442 ;;
10443
10444sunos4*)
10445 version_type=sunos
10446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10447 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 shlibpath_overrides_runpath=yes
10450 if test "$with_gnu_ld" = yes; then
10451 need_lib_prefix=no
10452 fi
10453 need_version=yes
10454 ;;
10455
10456sysv4 | sysv4.3*)
10457 version_type=linux
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 shlibpath_var=LD_LIBRARY_PATH
10461 case $host_vendor in
10462 sni)
10463 shlibpath_overrides_runpath=no
10464 need_lib_prefix=no
10465 runpath_var=LD_RUN_PATH
10466 ;;
10467 siemens)
10468 need_lib_prefix=no
10469 ;;
10470 motorola)
10471 need_lib_prefix=no
10472 need_version=no
10473 shlibpath_overrides_runpath=no
10474 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10475 ;;
10476 esac
10477 ;;
10478
10479sysv4*MP*)
10480 if test -d /usr/nec ;then
10481 version_type=linux
10482 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10483 soname_spec='$libname${shared_ext}.$major'
10484 shlibpath_var=LD_LIBRARY_PATH
10485 fi
10486 ;;
10487
10488sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10489 version_type=freebsd-elf
10490 need_lib_prefix=no
10491 need_version=no
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10493 soname_spec='${libname}${release}${shared_ext}$major'
10494 shlibpath_var=LD_LIBRARY_PATH
10495 shlibpath_overrides_runpath=yes
10496 hardcode_into_libs=yes
10497 if test "$with_gnu_ld" = yes; then
10498 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10499 else
10500 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10501 case $host_os in
10502 sco3.2v5*)
10503 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10504 ;;
10505 esac
10506 fi
10507 sys_lib_dlsearch_path_spec='/usr/lib'
10508 ;;
10509
10510tpf*)
10511 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10512 version_type=linux
10513 need_lib_prefix=no
10514 need_version=no
10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10516 shlibpath_var=LD_LIBRARY_PATH
10517 shlibpath_overrides_runpath=no
10518 hardcode_into_libs=yes
10519 ;;
10520
10521uts4*)
10522 version_type=linux
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10524 soname_spec='${libname}${release}${shared_ext}$major'
10525 shlibpath_var=LD_LIBRARY_PATH
10526 ;;
10527
10528*)
10529 dynamic_linker=no
10530 ;;
10531esac
10532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10533$as_echo "$dynamic_linker" >&6; }
10534test "$dynamic_linker" = no && can_build_shared=no
10535
10536variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10537if test "$GCC" = yes; then
10538 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10539fi
10540
10541if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10542 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10543fi
10544if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10545 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10546fi
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10640$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10641hardcode_action=
10642if test -n "$hardcode_libdir_flag_spec" ||
10643 test -n "$runpath_var" ||
10644 test "X$hardcode_automatic" = "Xyes" ; then
10645
10646 # We can hardcode non-existent directories.
10647 if test "$hardcode_direct" != no &&
10648 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10649 # have to relink, otherwise we might link with an installed library
10650 # when we should be linking with a yet-to-be-installed one
10651 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10652 test "$hardcode_minus_L" != no; then
10653 # Linking always hardcodes the temporary library directory.
10654 hardcode_action=relink
10655 else
10656 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10657 hardcode_action=immediate
10658 fi
10659else
10660 # We cannot hardcode anything, or else we can only hardcode existing
10661 # directories.
10662 hardcode_action=unsupported
10663fi
10664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10665$as_echo "$hardcode_action" >&6; }
10666
10667if test "$hardcode_action" = relink ||
10668 test "$inherit_rpath" = yes; then
10669 # Fast installation is not supported
10670 enable_fast_install=no
10671elif test "$shlibpath_overrides_runpath" = yes ||
10672 test "$enable_shared" = no; then
10673 # Fast installation is not necessary
10674 enable_fast_install=needless
10675fi
10676
10677
10678
10679
10680
10681
10682 if test "x$enable_dlopen" != xyes; then
10683 enable_dlopen=unknown
10684 enable_dlopen_self=unknown
10685 enable_dlopen_self_static=unknown
10686else
10687 lt_cv_dlopen=no
10688 lt_cv_dlopen_libs=
10689
10690 case $host_os in
10691 beos*)
10692 lt_cv_dlopen="load_add_on"
10693 lt_cv_dlopen_libs=
10694 lt_cv_dlopen_self=yes
10695 ;;
10696
10697 mingw* | pw32* | cegcc*)
10698 lt_cv_dlopen="LoadLibrary"
10699 lt_cv_dlopen_libs=
10700 ;;
10701
10702 cygwin*)
10703 lt_cv_dlopen="dlopen"
10704 lt_cv_dlopen_libs=
10705 ;;
10706
10707 darwin*)
10708 # if libdl is installed we need to link against it
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10710$as_echo_n "checking for dlopen in -ldl... " >&6; }
10711if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10712 $as_echo_n "(cached) " >&6
10713else
10714 ac_check_lib_save_LIBS=$LIBS
10715LIBS="-ldl $LIBS"
10716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717/* end confdefs.h. */
10718
10719/* Override any GCC internal prototype to avoid an error.
10720 Use char because int might match the return type of a GCC
10721 builtin and then its argument prototype would still apply. */
10722#ifdef __cplusplus
10723extern "C"
10724#endif
10725char dlopen ();
10726int
10727main ()
10728{
10729return dlopen ();
10730 ;
10731 return 0;
10732}
10733_ACEOF
10734if ac_fn_c_try_link "$LINENO"; then :
10735 ac_cv_lib_dl_dlopen=yes
10736else
10737 ac_cv_lib_dl_dlopen=no
10738fi
10739rm -f core conftest.err conftest.$ac_objext \
10740 conftest$ac_exeext conftest.$ac_ext
10741LIBS=$ac_check_lib_save_LIBS
10742fi
10743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10744$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10745if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10746 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10747else
10748
10749 lt_cv_dlopen="dyld"
10750 lt_cv_dlopen_libs=
10751 lt_cv_dlopen_self=yes
10752
10753fi
10754
10755 ;;
10756
10757 *)
10758 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10759if test "x$ac_cv_func_shl_load" = x""yes; then :
10760 lt_cv_dlopen="shl_load"
10761else
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10763$as_echo_n "checking for shl_load in -ldld... " >&6; }
10764if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10765 $as_echo_n "(cached) " >&6
10766else
10767 ac_check_lib_save_LIBS=$LIBS
10768LIBS="-ldld $LIBS"
10769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770/* end confdefs.h. */
10771
10772/* Override any GCC internal prototype to avoid an error.
10773 Use char because int might match the return type of a GCC
10774 builtin and then its argument prototype would still apply. */
10775#ifdef __cplusplus
10776extern "C"
10777#endif
10778char shl_load ();
10779int
10780main ()
10781{
10782return shl_load ();
10783 ;
10784 return 0;
10785}
10786_ACEOF
10787if ac_fn_c_try_link "$LINENO"; then :
10788 ac_cv_lib_dld_shl_load=yes
10789else
10790 ac_cv_lib_dld_shl_load=no
10791fi
10792rm -f core conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
10794LIBS=$ac_check_lib_save_LIBS
10795fi
10796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10797$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10798if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10799 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10800else
10801 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10802if test "x$ac_cv_func_dlopen" = x""yes; then :
10803 lt_cv_dlopen="dlopen"
10804else
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10806$as_echo_n "checking for dlopen in -ldl... " >&6; }
10807if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10808 $as_echo_n "(cached) " >&6
10809else
10810 ac_check_lib_save_LIBS=$LIBS
10811LIBS="-ldl $LIBS"
10812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813/* end confdefs.h. */
10814
10815/* Override any GCC internal prototype to avoid an error.
10816 Use char because int might match the return type of a GCC
10817 builtin and then its argument prototype would still apply. */
10818#ifdef __cplusplus
10819extern "C"
10820#endif
10821char dlopen ();
10822int
10823main ()
10824{
10825return dlopen ();
10826 ;
10827 return 0;
10828}
10829_ACEOF
10830if ac_fn_c_try_link "$LINENO"; then :
10831 ac_cv_lib_dl_dlopen=yes
10832else
10833 ac_cv_lib_dl_dlopen=no
10834fi
10835rm -f core conftest.err conftest.$ac_objext \
10836 conftest$ac_exeext conftest.$ac_ext
10837LIBS=$ac_check_lib_save_LIBS
10838fi
10839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10840$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10841if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10842 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10843else
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10845$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10846if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10847 $as_echo_n "(cached) " >&6
10848else
10849 ac_check_lib_save_LIBS=$LIBS
10850LIBS="-lsvld $LIBS"
10851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852/* end confdefs.h. */
10853
10854/* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10857#ifdef __cplusplus
10858extern "C"
10859#endif
10860char dlopen ();
10861int
10862main ()
10863{
10864return dlopen ();
10865 ;
10866 return 0;
10867}
10868_ACEOF
10869if ac_fn_c_try_link "$LINENO"; then :
10870 ac_cv_lib_svld_dlopen=yes
10871else
10872 ac_cv_lib_svld_dlopen=no
10873fi
10874rm -f core conftest.err conftest.$ac_objext \
10875 conftest$ac_exeext conftest.$ac_ext
10876LIBS=$ac_check_lib_save_LIBS
10877fi
10878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10879$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10880if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10881 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10882else
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10884$as_echo_n "checking for dld_link in -ldld... " >&6; }
10885if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10886 $as_echo_n "(cached) " >&6
10887else
10888 ac_check_lib_save_LIBS=$LIBS
10889LIBS="-ldld $LIBS"
10890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891/* end confdefs.h. */
10892
10893/* Override any GCC internal prototype to avoid an error.
10894 Use char because int might match the return type of a GCC
10895 builtin and then its argument prototype would still apply. */
10896#ifdef __cplusplus
10897extern "C"
10898#endif
10899char dld_link ();
10900int
10901main ()
10902{
10903return dld_link ();
10904 ;
10905 return 0;
10906}
10907_ACEOF
10908if ac_fn_c_try_link "$LINENO"; then :
10909 ac_cv_lib_dld_dld_link=yes
10910else
10911 ac_cv_lib_dld_dld_link=no
10912fi
10913rm -f core conftest.err conftest.$ac_objext \
10914 conftest$ac_exeext conftest.$ac_ext
10915LIBS=$ac_check_lib_save_LIBS
10916fi
10917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10918$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10919if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10920 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10921fi
10922
10923
10924fi
10925
10926
10927fi
10928
10929
10930fi
10931
10932
10933fi
10934
10935
10936fi
10937
10938 ;;
10939 esac
10940
10941 if test "x$lt_cv_dlopen" != xno; then
10942 enable_dlopen=yes
10943 else
10944 enable_dlopen=no
10945 fi
10946
10947 case $lt_cv_dlopen in
10948 dlopen)
10949 save_CPPFLAGS="$CPPFLAGS"
10950 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10951
10952 save_LDFLAGS="$LDFLAGS"
10953 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10954
10955 save_LIBS="$LIBS"
10956 LIBS="$lt_cv_dlopen_libs $LIBS"
10957
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10959$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10960if test "${lt_cv_dlopen_self+set}" = set; then :
10961 $as_echo_n "(cached) " >&6
10962else
10963 if test "$cross_compiling" = yes; then :
10964 lt_cv_dlopen_self=cross
10965else
10966 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10967 lt_status=$lt_dlunknown
10968 cat > conftest.$ac_ext <<_LT_EOF
10969#line 10969 "configure"
10970#include "confdefs.h"
10971
10972#if HAVE_DLFCN_H
10973#include <dlfcn.h>
10974#endif
10975
10976#include <stdio.h>
10977
10978#ifdef RTLD_GLOBAL
10979# define LT_DLGLOBAL RTLD_GLOBAL
10980#else
10981# ifdef DL_GLOBAL
10982# define LT_DLGLOBAL DL_GLOBAL
10983# else
10984# define LT_DLGLOBAL 0
10985# endif
10986#endif
10987
10988/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10989 find out it does not work in some platform. */
10990#ifndef LT_DLLAZY_OR_NOW
10991# ifdef RTLD_LAZY
10992# define LT_DLLAZY_OR_NOW RTLD_LAZY
10993# else
10994# ifdef DL_LAZY
10995# define LT_DLLAZY_OR_NOW DL_LAZY
10996# else
10997# ifdef RTLD_NOW
10998# define LT_DLLAZY_OR_NOW RTLD_NOW
10999# else
11000# ifdef DL_NOW
11001# define LT_DLLAZY_OR_NOW DL_NOW
11002# else
11003# define LT_DLLAZY_OR_NOW 0
11004# endif
11005# endif
11006# endif
11007# endif
11008#endif
11009
11010/* When -fvisbility=hidden is used, assume the code has been annotated
11011 correspondingly for the symbols needed. */
11012#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11013void fnord () __attribute__((visibility("default")));
11014#endif
11015
11016void fnord () { int i=42; }
11017int main ()
11018{
11019 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11020 int status = $lt_dlunknown;
11021
11022 if (self)
11023 {
11024 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11025 else
11026 {
11027 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11028 else puts (dlerror ());
11029 }
11030 /* dlclose (self); */
11031 }
11032 else
11033 puts (dlerror ());
11034
11035 return status;
11036}
11037_LT_EOF
11038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11039 (eval $ac_link) 2>&5
11040 ac_status=$?
11041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11042 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11043 (./conftest; exit; ) >&5 2>/dev/null
11044 lt_status=$?
11045 case x$lt_status in
11046 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11047 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11048 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11049 esac
11050 else :
11051 # compilation failed
11052 lt_cv_dlopen_self=no
11053 fi
11054fi
11055rm -fr conftest*
11056
11057
11058fi
11059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11060$as_echo "$lt_cv_dlopen_self" >&6; }
11061
11062 if test "x$lt_cv_dlopen_self" = xyes; then
11063 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11065$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11066if test "${lt_cv_dlopen_self_static+set}" = set; then :
11067 $as_echo_n "(cached) " >&6
11068else
11069 if test "$cross_compiling" = yes; then :
11070 lt_cv_dlopen_self_static=cross
11071else
11072 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11073 lt_status=$lt_dlunknown
11074 cat > conftest.$ac_ext <<_LT_EOF
11075#line 11075 "configure"
11076#include "confdefs.h"
11077
11078#if HAVE_DLFCN_H
11079#include <dlfcn.h>
11080#endif
11081
11082#include <stdio.h>
11083
11084#ifdef RTLD_GLOBAL
11085# define LT_DLGLOBAL RTLD_GLOBAL
11086#else
11087# ifdef DL_GLOBAL
11088# define LT_DLGLOBAL DL_GLOBAL
11089# else
11090# define LT_DLGLOBAL 0
11091# endif
11092#endif
11093
11094/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11095 find out it does not work in some platform. */
11096#ifndef LT_DLLAZY_OR_NOW
11097# ifdef RTLD_LAZY
11098# define LT_DLLAZY_OR_NOW RTLD_LAZY
11099# else
11100# ifdef DL_LAZY
11101# define LT_DLLAZY_OR_NOW DL_LAZY
11102# else
11103# ifdef RTLD_NOW
11104# define LT_DLLAZY_OR_NOW RTLD_NOW
11105# else
11106# ifdef DL_NOW
11107# define LT_DLLAZY_OR_NOW DL_NOW
11108# else
11109# define LT_DLLAZY_OR_NOW 0
11110# endif
11111# endif
11112# endif
11113# endif
11114#endif
11115
11116/* When -fvisbility=hidden is used, assume the code has been annotated
11117 correspondingly for the symbols needed. */
11118#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11119void fnord () __attribute__((visibility("default")));
11120#endif
11121
11122void fnord () { int i=42; }
11123int main ()
11124{
11125 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11126 int status = $lt_dlunknown;
11127
11128 if (self)
11129 {
11130 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11131 else
11132 {
11133 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11134 else puts (dlerror ());
11135 }
11136 /* dlclose (self); */
11137 }
11138 else
11139 puts (dlerror ());
11140
11141 return status;
11142}
11143_LT_EOF
11144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11145 (eval $ac_link) 2>&5
11146 ac_status=$?
11147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11148 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11149 (./conftest; exit; ) >&5 2>/dev/null
11150 lt_status=$?
11151 case x$lt_status in
11152 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11153 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11154 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11155 esac
11156 else :
11157 # compilation failed
11158 lt_cv_dlopen_self_static=no
11159 fi
11160fi
11161rm -fr conftest*
11162
11163
11164fi
11165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11166$as_echo "$lt_cv_dlopen_self_static" >&6; }
11167 fi
11168
11169 CPPFLAGS="$save_CPPFLAGS"
11170 LDFLAGS="$save_LDFLAGS"
11171 LIBS="$save_LIBS"
11172 ;;
11173 esac
11174
11175 case $lt_cv_dlopen_self in
11176 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11177 *) enable_dlopen_self=unknown ;;
11178 esac
11179
11180 case $lt_cv_dlopen_self_static in
11181 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11182 *) enable_dlopen_self_static=unknown ;;
11183 esac
11184fi
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202striplib=
11203old_striplib=
11204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11205$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11206if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11207 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11208 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11210$as_echo "yes" >&6; }
11211else
11212# FIXME - insert some real tests, host_os isn't really good enough
11213 case $host_os in
11214 darwin*)
11215 if test -n "$STRIP" ; then
11216 striplib="$STRIP -x"
11217 old_striplib="$STRIP -S"
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11219$as_echo "yes" >&6; }
11220 else
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222$as_echo "no" >&6; }
11223 fi
11224 ;;
11225 *)
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227$as_echo "no" >&6; }
11228 ;;
11229 esac
11230fi
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243 # Report which library types will actually be built
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11245$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11247$as_echo "$can_build_shared" >&6; }
11248
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11250$as_echo_n "checking whether to build shared libraries... " >&6; }
11251 test "$can_build_shared" = "no" && enable_shared=no
11252
11253 # On AIX, shared libraries and static libraries use the same namespace, and
11254 # are all built from PIC.
11255 case $host_os in
11256 aix3*)
11257 test "$enable_shared" = yes && enable_static=no
11258 if test -n "$RANLIB"; then
11259 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11260 postinstall_cmds='$RANLIB $lib'
11261 fi
11262 ;;
11263
11264 aix[4-9]*)
11265 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11266 test "$enable_shared" = yes && enable_static=no
11267 fi
11268 ;;
11269 esac
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11271$as_echo "$enable_shared" >&6; }
11272
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11274$as_echo_n "checking whether to build static libraries... " >&6; }
11275 # Make sure either enable_shared or enable_static is yes.
11276 test "$enable_shared" = yes || enable_static=yes
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11278$as_echo "$enable_static" >&6; }
11279
11280
11281
11282
11283fi
11284ac_ext=c
11285ac_cpp='$CPP $CPPFLAGS'
11286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11288ac_compiler_gnu=$ac_cv_c_compiler_gnu
11289
11290CC="$lt_save_CC"
11291
11292 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11293 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11294 (test "X$CXX" != "Xg++"))) ; then
11295 ac_ext=cpp
11296ac_cpp='$CXXCPP $CPPFLAGS'
11297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11301$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11302if test -z "$CXXCPP"; then
11303 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
11305else
11306 # Double quotes because CXXCPP needs to be expanded
11307 for CXXCPP in "$CXX -E" "/lib/cpp"
11308 do
11309 ac_preproc_ok=false
11310for ac_cxx_preproc_warn_flag in '' yes
11311do
11312 # Use a header file that comes with gcc, so configuring glibc
11313 # with a fresh cross-compiler works.
11314 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11315 # <limits.h> exists even on freestanding compilers.
11316 # On the NeXT, cc -E runs the code through the compiler's parser,
11317 # not just through cpp. "Syntax error" is here to catch this case.
11318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319/* end confdefs.h. */
11320#ifdef __STDC__
11321# include <limits.h>
11322#else
11323# include <assert.h>
11324#endif
11325 Syntax error
11326_ACEOF
11327if ac_fn_cxx_try_cpp "$LINENO"; then :
11328
11329else
11330 # Broken: fails on valid input.
11331continue
11332fi
11333rm -f conftest.err conftest.$ac_ext
11334
11335 # OK, works on sane cases. Now check whether nonexistent headers
11336 # can be detected and how.
11337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11338/* end confdefs.h. */
11339#include <ac_nonexistent.h>
11340_ACEOF
11341if ac_fn_cxx_try_cpp "$LINENO"; then :
11342 # Broken: success on invalid input.
11343continue
11344else
11345 # Passes both tests.
11346ac_preproc_ok=:
11347break
11348fi
11349rm -f conftest.err conftest.$ac_ext
11350
11351done
11352# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11353rm -f conftest.err conftest.$ac_ext
11354if $ac_preproc_ok; then :
11355 break
11356fi
11357
11358 done
11359 ac_cv_prog_CXXCPP=$CXXCPP
11360
11361fi
11362 CXXCPP=$ac_cv_prog_CXXCPP
11363else
11364 ac_cv_prog_CXXCPP=$CXXCPP
11365fi
11366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11367$as_echo "$CXXCPP" >&6; }
11368ac_preproc_ok=false
11369for ac_cxx_preproc_warn_flag in '' yes
11370do
11371 # Use a header file that comes with gcc, so configuring glibc
11372 # with a fresh cross-compiler works.
11373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11374 # <limits.h> exists even on freestanding compilers.
11375 # On the NeXT, cc -E runs the code through the compiler's parser,
11376 # not just through cpp. "Syntax error" is here to catch this case.
11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378/* end confdefs.h. */
11379#ifdef __STDC__
11380# include <limits.h>
11381#else
11382# include <assert.h>
11383#endif
11384 Syntax error
11385_ACEOF
11386if ac_fn_cxx_try_cpp "$LINENO"; then :
11387
11388else
11389 # Broken: fails on valid input.
11390continue
11391fi
11392rm -f conftest.err conftest.$ac_ext
11393
11394 # OK, works on sane cases. Now check whether nonexistent headers
11395 # can be detected and how.
11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397/* end confdefs.h. */
11398#include <ac_nonexistent.h>
11399_ACEOF
11400if ac_fn_cxx_try_cpp "$LINENO"; then :
11401 # Broken: success on invalid input.
11402continue
11403else
11404 # Passes both tests.
11405ac_preproc_ok=:
11406break
11407fi
11408rm -f conftest.err conftest.$ac_ext
11409
11410done
11411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11412rm -f conftest.err conftest.$ac_ext
11413if $ac_preproc_ok; then :
11414
11415else
11416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11418as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11419See \`config.log' for more details." "$LINENO" 5; }
11420fi
11421
11422ac_ext=c
11423ac_cpp='$CPP $CPPFLAGS'
11424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11426ac_compiler_gnu=$ac_cv_c_compiler_gnu
11427
11428else
11429 _lt_caught_CXX_error=yes
11430fi
11431
11432ac_ext=cpp
11433ac_cpp='$CXXCPP $CPPFLAGS'
11434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11437
11438archive_cmds_need_lc_CXX=no
11439allow_undefined_flag_CXX=
11440always_export_symbols_CXX=no
11441archive_expsym_cmds_CXX=
11442compiler_needs_object_CXX=no
11443export_dynamic_flag_spec_CXX=
11444hardcode_direct_CXX=no
11445hardcode_direct_absolute_CXX=no
11446hardcode_libdir_flag_spec_CXX=
11447hardcode_libdir_flag_spec_ld_CXX=
11448hardcode_libdir_separator_CXX=
11449hardcode_minus_L_CXX=no
11450hardcode_shlibpath_var_CXX=unsupported
11451hardcode_automatic_CXX=no
11452inherit_rpath_CXX=no
11453module_cmds_CXX=
11454module_expsym_cmds_CXX=
11455link_all_deplibs_CXX=unknown
11456old_archive_cmds_CXX=$old_archive_cmds
11457reload_flag_CXX=$reload_flag
11458reload_cmds_CXX=$reload_cmds
11459no_undefined_flag_CXX=
11460whole_archive_flag_spec_CXX=
11461enable_shared_with_static_runtimes_CXX=no
11462
11463# Source file extension for C++ test sources.
11464ac_ext=cpp
11465
11466# Object file extension for compiled C++ test sources.
11467objext=o
11468objext_CXX=$objext
11469
11470# No sense in running all these tests if we already determined that
11471# the CXX compiler isn't working. Some variables (like enable_shared)
11472# are currently assumed to apply to all compilers on this platform,
11473# and will be corrupted by setting them based on a non-working compiler.
11474if test "$_lt_caught_CXX_error" != yes; then
11475 # Code to be used in simple compile tests
11476 lt_simple_compile_test_code="int some_variable = 0;"
11477
11478 # Code to be used in simple link tests
11479 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11480
11481 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11482
11483
11484
11485
11486
11487
11488# If no C compiler was specified, use CC.
11489LTCC=${LTCC-"$CC"}
11490
11491# If no C compiler flags were specified, use CFLAGS.
11492LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11493
11494# Allow CC to be a program name with arguments.
11495compiler=$CC
11496
11497
11498 # save warnings/boilerplate of simple test code
11499 ac_outfile=conftest.$ac_objext
11500echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11501eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11502_lt_compiler_boilerplate=`cat conftest.err`
11503$RM conftest*
11504
11505 ac_outfile=conftest.$ac_objext
11506echo "$lt_simple_link_test_code" >conftest.$ac_ext
11507eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11508_lt_linker_boilerplate=`cat conftest.err`
11509$RM -r conftest*
11510
11511
11512 # Allow CC to be a program name with arguments.
11513 lt_save_CC=$CC
11514 lt_save_LD=$LD
11515 lt_save_GCC=$GCC
11516 GCC=$GXX
11517 lt_save_with_gnu_ld=$with_gnu_ld
11518 lt_save_path_LD=$lt_cv_path_LD
11519 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11520 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11521 else
11522 $as_unset lt_cv_prog_gnu_ld
11523 fi
11524 if test -n "${lt_cv_path_LDCXX+set}"; then
11525 lt_cv_path_LD=$lt_cv_path_LDCXX
11526 else
11527 $as_unset lt_cv_path_LD
11528 fi
11529 test -z "${LDCXX+set}" || LD=$LDCXX
11530 CC=${CXX-"c++"}
11531 compiler=$CC
11532 compiler_CXX=$CC
11533 for cc_temp in $compiler""; do
11534 case $cc_temp in
11535 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11536 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11537 \-*) ;;
11538 *) break;;
11539 esac
11540done
11541cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11542
11543
11544 if test -n "$compiler"; then
11545 # We don't want -fno-exception when compiling C++ code, so set the
11546 # no_builtin_flag separately
11547 if test "$GXX" = yes; then
11548 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11549 else
11550 lt_prog_compiler_no_builtin_flag_CXX=
11551 fi
11552
11553 if test "$GXX" = yes; then
11554 # Set up default GNU C++ configuration
11555
11556
11557
11558# Check whether --with-gnu-ld was given.
11559if test "${with_gnu_ld+set}" = set; then :
11560 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11561else
11562 with_gnu_ld=no
11563fi
11564
11565ac_prog=ld
11566if test "$GCC" = yes; then
11567 # Check if gcc -print-prog-name=ld gives a path.
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11569$as_echo_n "checking for ld used by $CC... " >&6; }
11570 case $host in
11571 *-*-mingw*)
11572 # gcc leaves a trailing carriage return which upsets mingw
11573 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11574 *)
11575 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11576 esac
11577 case $ac_prog in
11578 # Accept absolute paths.
11579 [\\/]* | ?:[\\/]*)
11580 re_direlt='/[^/][^/]*/\.\./'
11581 # Canonicalize the pathname of ld
11582 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11583 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11584 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11585 done
11586 test -z "$LD" && LD="$ac_prog"
11587 ;;
11588 "")
11589 # If it fails, then pretend we aren't using GCC.
11590 ac_prog=ld
11591 ;;
11592 *)
11593 # If it is relative, then search for the first ld in PATH.
11594 with_gnu_ld=unknown
11595 ;;
11596 esac
11597elif test "$with_gnu_ld" = yes; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11599$as_echo_n "checking for GNU ld... " >&6; }
11600else
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11602$as_echo_n "checking for non-GNU ld... " >&6; }
11603fi
11604if test "${lt_cv_path_LD+set}" = set; then :
11605 $as_echo_n "(cached) " >&6
11606else
11607 if test -z "$LD"; then
11608 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11609 for ac_dir in $PATH; do
11610 IFS="$lt_save_ifs"
11611 test -z "$ac_dir" && ac_dir=.
11612 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11613 lt_cv_path_LD="$ac_dir/$ac_prog"
11614 # Check to see if the program is GNU ld. I'd rather use --version,
11615 # but apparently some variants of GNU ld only accept -v.
11616 # Break only if it was the GNU/non-GNU ld that we prefer.
11617 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11618 *GNU* | *'with BFD'*)
11619 test "$with_gnu_ld" != no && break
11620 ;;
11621 *)
11622 test "$with_gnu_ld" != yes && break
11623 ;;
11624 esac
11625 fi
11626 done
11627 IFS="$lt_save_ifs"
11628else
11629 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11630fi
11631fi
11632
11633LD="$lt_cv_path_LD"
11634if test -n "$LD"; then
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11636$as_echo "$LD" >&6; }
11637else
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639$as_echo "no" >&6; }
11640fi
11641test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11643$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11644if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11645 $as_echo_n "(cached) " >&6
11646else
11647 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11648case `$LD -v 2>&1 </dev/null` in
11649*GNU* | *'with BFD'*)
11650 lt_cv_prog_gnu_ld=yes
11651 ;;
11652*)
11653 lt_cv_prog_gnu_ld=no
11654 ;;
11655esac
11656fi
11657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11658$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11659with_gnu_ld=$lt_cv_prog_gnu_ld
11660
11661
11662
11663
11664
11665
11666
11667 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11668 # archiving commands below assume that GNU ld is being used.
11669 if test "$with_gnu_ld" = yes; then
11670 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11671 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'
11672
11673 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11674 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11675
11676 # If archive_cmds runs LD, not CC, wlarc should be empty
11677 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11678 # investigate it a little bit more. (MM)
11679 wlarc='${wl}'
11680
11681 # ancient GNU ld didn't support --whole-archive et. al.
11682 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11683 $GREP 'no-whole-archive' > /dev/null; then
11684 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11685 else
11686 whole_archive_flag_spec_CXX=
11687 fi
11688 else
11689 with_gnu_ld=no
11690 wlarc=
11691
11692 # A generic and very simple default shared library creation
11693 # command for GNU C++ for the case where it uses the native
11694 # linker, instead of GNU ld. If possible, this setting should
11695 # overridden to take advantage of the native linker features on
11696 # the platform it is being used on.
11697 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11698 fi
11699
11700 # Commands to make compiler produce verbose output that lists
11701 # what "hidden" libraries, object files and flags are used when
11702 # linking a shared library.
11703 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11704
11705 else
11706 GXX=no
11707 with_gnu_ld=no
11708 wlarc=
11709 fi
11710
11711 # PORTME: fill in a description of your system's C++ link characteristics
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11713$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11714 ld_shlibs_CXX=yes
11715 case $host_os in
11716 aix3*)
11717 # FIXME: insert proper C++ library support
11718 ld_shlibs_CXX=no
11719 ;;
11720 aix[4-9]*)
11721 if test "$host_cpu" = ia64; then
11722 # On IA64, the linker does run time linking by default, so we don't
11723 # have to do anything special.
11724 aix_use_runtimelinking=no
11725 exp_sym_flag='-Bexport'
11726 no_entry_flag=""
11727 else
11728 aix_use_runtimelinking=no
11729
11730 # Test if we are trying to use run time linking or normal
11731 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11732 # need to do runtime linking.
11733 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11734 for ld_flag in $LDFLAGS; do
11735 case $ld_flag in
11736 *-brtl*)
11737 aix_use_runtimelinking=yes
11738 break
11739 ;;
11740 esac
11741 done
11742 ;;
11743 esac
11744
11745 exp_sym_flag='-bexport'
11746 no_entry_flag='-bnoentry'
11747 fi
11748
11749 # When large executables or shared objects are built, AIX ld can
11750 # have problems creating the table of contents. If linking a library
11751 # or program results in "error TOC overflow" add -mminimal-toc to
11752 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11753 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11754
11755 archive_cmds_CXX=''
11756 hardcode_direct_CXX=yes
11757 hardcode_direct_absolute_CXX=yes
11758 hardcode_libdir_separator_CXX=':'
11759 link_all_deplibs_CXX=yes
11760 file_list_spec_CXX='${wl}-f,'
11761
11762 if test "$GXX" = yes; then
11763 case $host_os in aix4.[012]|aix4.[012].*)
11764 # We only want to do this on AIX 4.2 and lower, the check
11765 # below for broken collect2 doesn't work under 4.3+
11766 collect2name=`${CC} -print-prog-name=collect2`
11767 if test -f "$collect2name" &&
11768 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11769 then
11770 # We have reworked collect2
11771 :
11772 else
11773 # We have old collect2
11774 hardcode_direct_CXX=unsupported
11775 # It fails to find uninstalled libraries when the uninstalled
11776 # path is not listed in the libpath. Setting hardcode_minus_L
11777 # to unsupported forces relinking
11778 hardcode_minus_L_CXX=yes
11779 hardcode_libdir_flag_spec_CXX='-L$libdir'
11780 hardcode_libdir_separator_CXX=
11781 fi
11782 esac
11783 shared_flag='-shared'
11784 if test "$aix_use_runtimelinking" = yes; then
11785 shared_flag="$shared_flag "'${wl}-G'
11786 fi
11787 else
11788 # not using gcc
11789 if test "$host_cpu" = ia64; then
11790 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11791 # chokes on -Wl,-G. The following line is correct:
11792 shared_flag='-G'
11793 else
11794 if test "$aix_use_runtimelinking" = yes; then
11795 shared_flag='${wl}-G'
11796 else
11797 shared_flag='${wl}-bM:SRE'
11798 fi
11799 fi
11800 fi
11801
11802 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11803 # It seems that -bexpall does not export symbols beginning with
11804 # underscore (_), so it is better to generate a list of symbols to
11805 # export.
11806 always_export_symbols_CXX=yes
11807 if test "$aix_use_runtimelinking" = yes; then
11808 # Warning - without using the other runtime loading flags (-brtl),
11809 # -berok will link without error, but may produce a broken library.
11810 allow_undefined_flag_CXX='-berok'
11811 # Determine the default libpath from the value encoded in an empty
11812 # executable.
11813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814/* end confdefs.h. */
11815
11816int
11817main ()
11818{
11819
11820 ;
11821 return 0;
11822}
11823_ACEOF
11824if ac_fn_cxx_try_link "$LINENO"; then :
11825
11826lt_aix_libpath_sed='
11827 /Import File Strings/,/^$/ {
11828 /^0/ {
11829 s/^0 *\(.*\)$/\1/
11830 p
11831 }
11832 }'
11833aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11834# Check for a 64-bit object if we didn't find anything.
11835if test -z "$aix_libpath"; then
11836 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11837fi
11838fi
11839rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11841if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11842
11843 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11844
11845 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"
11846 else
11847 if test "$host_cpu" = ia64; then
11848 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11849 allow_undefined_flag_CXX="-z nodefs"
11850 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"
11851 else
11852 # Determine the default libpath from the value encoded in an
11853 # empty executable.
11854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855/* end confdefs.h. */
11856
11857int
11858main ()
11859{
11860
11861 ;
11862 return 0;
11863}
11864_ACEOF
11865if ac_fn_cxx_try_link "$LINENO"; then :
11866
11867lt_aix_libpath_sed='
11868 /Import File Strings/,/^$/ {
11869 /^0/ {
11870 s/^0 *\(.*\)$/\1/
11871 p
11872 }
11873 }'
11874aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11875# Check for a 64-bit object if we didn't find anything.
11876if test -z "$aix_libpath"; then
11877 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11878fi
11879fi
11880rm -f core conftest.err conftest.$ac_objext \
11881 conftest$ac_exeext conftest.$ac_ext
11882if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11883
11884 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11885 # Warning - without using the other run time loading flags,
11886 # -berok will link without error, but may produce a broken library.
11887 no_undefined_flag_CXX=' ${wl}-bernotok'
11888 allow_undefined_flag_CXX=' ${wl}-berok'
11889 if test "$with_gnu_ld" = yes; then
11890 # We only use this code for GNU lds that support --whole-archive.
11891 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11892 else
11893 # Exported symbols can be pulled into shared objects from archives
11894 whole_archive_flag_spec_CXX='$convenience'
11895 fi
11896 archive_cmds_need_lc_CXX=yes
11897 # This is similar to how AIX traditionally builds its shared
11898 # libraries.
11899 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'
11900 fi
11901 fi
11902 ;;
11903
11904 beos*)
11905 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11906 allow_undefined_flag_CXX=unsupported
11907 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11908 # support --undefined. This deserves some investigation. FIXME
11909 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11910 else
11911 ld_shlibs_CXX=no
11912 fi
11913 ;;
11914
11915 chorus*)
11916 case $cc_basename in
11917 *)
11918 # FIXME: insert proper C++ library support
11919 ld_shlibs_CXX=no
11920 ;;
11921 esac
11922 ;;
11923
11924 cygwin* | mingw* | pw32* | cegcc*)
11925 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11926 # as there is no search path for DLLs.
11927 hardcode_libdir_flag_spec_CXX='-L$libdir'
11928 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11929 allow_undefined_flag_CXX=unsupported
11930 always_export_symbols_CXX=no
11931 enable_shared_with_static_runtimes_CXX=yes
11932
11933 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11934 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'
11935 # If the export-symbols file already is a .def file (1st line
11936 # is EXPORTS), use it as is; otherwise, prepend...
11937 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11938 cp $export_symbols $output_objdir/$soname.def;
11939 else
11940 echo EXPORTS > $output_objdir/$soname.def;
11941 cat $export_symbols >> $output_objdir/$soname.def;
11942 fi~
11943 $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'
11944 else
11945 ld_shlibs_CXX=no
11946 fi
11947 ;;
11948 darwin* | rhapsody*)
11949
11950
11951 archive_cmds_need_lc_CXX=no
11952 hardcode_direct_CXX=no
11953 hardcode_automatic_CXX=yes
11954 hardcode_shlibpath_var_CXX=unsupported
11955 if test "$lt_cv_ld_force_load" = "yes"; then
11956 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\"`'
11957 else
11958 whole_archive_flag_spec_CXX=''
11959 fi
11960 link_all_deplibs_CXX=yes
11961 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11962 case $cc_basename in
11963 ifort*) _lt_dar_can_shared=yes ;;
11964 *) _lt_dar_can_shared=$GCC ;;
11965 esac
11966 if test "$_lt_dar_can_shared" = "yes"; then
11967 output_verbose_link_cmd=func_echo_all
11968 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}"
11969 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11970 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}"
11971 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}"
11972 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11973 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}"
11974 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}"
11975 fi
11976
11977 else
11978 ld_shlibs_CXX=no
11979 fi
11980
11981 ;;
11982
11983 dgux*)
11984 case $cc_basename in
11985 ec++*)
11986 # FIXME: insert proper C++ library support
11987 ld_shlibs_CXX=no
11988 ;;
11989 ghcx*)
11990 # Green Hills C++ Compiler
11991 # FIXME: insert proper C++ library support
11992 ld_shlibs_CXX=no
11993 ;;
11994 *)
11995 # FIXME: insert proper C++ library support
11996 ld_shlibs_CXX=no
11997 ;;
11998 esac
11999 ;;
12000
12001 freebsd2.*)
12002 # C++ shared libraries reported to be fairly broken before
12003 # switch to ELF
12004 ld_shlibs_CXX=no
12005 ;;
12006
12007 freebsd-elf*)
12008 archive_cmds_need_lc_CXX=no
12009 ;;
12010
12011 freebsd* | dragonfly*)
12012 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12013 # conventions
12014 ld_shlibs_CXX=yes
12015 ;;
12016
12017 gnu*)
12018 ;;
12019
12020 haiku*)
12021 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12022 link_all_deplibs_CXX=yes
12023 ;;
12024
12025 hpux9*)
12026 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12027 hardcode_libdir_separator_CXX=:
12028 export_dynamic_flag_spec_CXX='${wl}-E'
12029 hardcode_direct_CXX=yes
12030 hardcode_minus_L_CXX=yes # Not in the search PATH,
12031 # but as the default
12032 # location of the library.
12033
12034 case $cc_basename in
12035 CC*)
12036 # FIXME: insert proper C++ library support
12037 ld_shlibs_CXX=no
12038 ;;
12039 aCC*)
12040 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'
12041 # Commands to make compiler produce verbose output that lists
12042 # what "hidden" libraries, object files and flags are used when
12043 # linking a shared library.
12044 #
12045 # There doesn't appear to be a way to prevent this compiler from
12046 # explicitly linking system object files so we need to strip them
12047 # from the output so that they don't get included in the library
12048 # dependencies.
12049 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"'
12050 ;;
12051 *)
12052 if test "$GXX" = yes; then
12053 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'
12054 else
12055 # FIXME: insert proper C++ library support
12056 ld_shlibs_CXX=no
12057 fi
12058 ;;
12059 esac
12060 ;;
12061
12062 hpux10*|hpux11*)
12063 if test $with_gnu_ld = no; then
12064 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12065 hardcode_libdir_separator_CXX=:
12066
12067 case $host_cpu in
12068 hppa*64*|ia64*)
12069 ;;
12070 *)
12071 export_dynamic_flag_spec_CXX='${wl}-E'
12072 ;;
12073 esac
12074 fi
12075 case $host_cpu in
12076 hppa*64*|ia64*)
12077 hardcode_direct_CXX=no
12078 hardcode_shlibpath_var_CXX=no
12079 ;;
12080 *)
12081 hardcode_direct_CXX=yes
12082 hardcode_direct_absolute_CXX=yes
12083 hardcode_minus_L_CXX=yes # Not in the search PATH,
12084 # but as the default
12085 # location of the library.
12086 ;;
12087 esac
12088
12089 case $cc_basename in
12090 CC*)
12091 # FIXME: insert proper C++ library support
12092 ld_shlibs_CXX=no
12093 ;;
12094 aCC*)
12095 case $host_cpu in
12096 hppa*64*)
12097 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12098 ;;
12099 ia64*)
12100 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12101 ;;
12102 *)
12103 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12104 ;;
12105 esac
12106 # Commands to make compiler produce verbose output that lists
12107 # what "hidden" libraries, object files and flags are used when
12108 # linking a shared library.
12109 #
12110 # There doesn't appear to be a way to prevent this compiler from
12111 # explicitly linking system object files so we need to strip them
12112 # from the output so that they don't get included in the library
12113 # dependencies.
12114 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"'
12115 ;;
12116 *)
12117 if test "$GXX" = yes; then
12118 if test $with_gnu_ld = no; then
12119 case $host_cpu in
12120 hppa*64*)
12121 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12122 ;;
12123 ia64*)
12124 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12125 ;;
12126 *)
12127 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'
12128 ;;
12129 esac
12130 fi
12131 else
12132 # FIXME: insert proper C++ library support
12133 ld_shlibs_CXX=no
12134 fi
12135 ;;
12136 esac
12137 ;;
12138
12139 interix[3-9]*)
12140 hardcode_direct_CXX=no
12141 hardcode_shlibpath_var_CXX=no
12142 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12143 export_dynamic_flag_spec_CXX='${wl}-E'
12144 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12145 # Instead, shared libraries are loaded at an image base (0x10000000 by
12146 # default) and relocated if they conflict, which is a slow very memory
12147 # consuming and fragmenting process. To avoid this, we pick a random,
12148 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12149 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12150 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'
12151 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'
12152 ;;
12153 irix5* | irix6*)
12154 case $cc_basename in
12155 CC*)
12156 # SGI C++
12157 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'
12158
12159 # Archives containing C++ object files must be created using
12160 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12161 # necessary to make sure instantiated templates are included
12162 # in the archive.
12163 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12164 ;;
12165 *)
12166 if test "$GXX" = yes; then
12167 if test "$with_gnu_ld" = no; then
12168 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'
12169 else
12170 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'
12171 fi
12172 fi
12173 link_all_deplibs_CXX=yes
12174 ;;
12175 esac
12176 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12177 hardcode_libdir_separator_CXX=:
12178 inherit_rpath_CXX=yes
12179 ;;
12180
12181 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12182 case $cc_basename in
12183 KCC*)
12184 # Kuck and Associates, Inc. (KAI) C++ Compiler
12185
12186 # KCC will only create a shared library if the output file
12187 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12188 # to its proper name (with version) after linking.
12189 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'
12190 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'
12191 # Commands to make compiler produce verbose output that lists
12192 # what "hidden" libraries, object files and flags are used when
12193 # linking a shared library.
12194 #
12195 # There doesn't appear to be a way to prevent this compiler from
12196 # explicitly linking system object files so we need to strip them
12197 # from the output so that they don't get included in the library
12198 # dependencies.
12199 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"'
12200
12201 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12202 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12203
12204 # Archives containing C++ object files must be created using
12205 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12206 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12207 ;;
12208 icpc* | ecpc* )
12209 # Intel C++
12210 with_gnu_ld=yes
12211 # version 8.0 and above of icpc choke on multiply defined symbols
12212 # if we add $predep_objects and $postdep_objects, however 7.1 and
12213 # earlier do not add the objects themselves.
12214 case `$CC -V 2>&1` in
12215 *"Version 7."*)
12216 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12217 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'
12218 ;;
12219 *) # Version 8.0 or newer
12220 tmp_idyn=
12221 case $host_cpu in
12222 ia64*) tmp_idyn=' -i_dynamic';;
12223 esac
12224 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12225 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'
12226 ;;
12227 esac
12228 archive_cmds_need_lc_CXX=no
12229 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12230 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12231 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12232 ;;
12233 pgCC* | pgcpp*)
12234 # Portland Group C++ compiler
12235 case `$CC -V` in
12236 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12237 prelink_cmds_CXX='tpldir=Template.dir~
12238 rm -rf $tpldir~
12239 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12240 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12241 old_archive_cmds_CXX='tpldir=Template.dir~
12242 rm -rf $tpldir~
12243 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12244 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12245 $RANLIB $oldlib'
12246 archive_cmds_CXX='tpldir=Template.dir~
12247 rm -rf $tpldir~
12248 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12249 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12250 archive_expsym_cmds_CXX='tpldir=Template.dir~
12251 rm -rf $tpldir~
12252 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12253 $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'
12254 ;;
12255 *) # Version 6 and above use weak symbols
12256 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12257 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'
12258 ;;
12259 esac
12260
12261 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12262 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12263 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'
12264 ;;
12265 cxx*)
12266 # Compaq C++
12267 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12268 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'
12269
12270 runpath_var=LD_RUN_PATH
12271 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12272 hardcode_libdir_separator_CXX=:
12273
12274 # Commands to make compiler produce verbose output that lists
12275 # what "hidden" libraries, object files and flags are used when
12276 # linking a shared library.
12277 #
12278 # There doesn't appear to be a way to prevent this compiler from
12279 # explicitly linking system object files so we need to strip them
12280 # from the output so that they don't get included in the library
12281 # dependencies.
12282 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'
12283 ;;
12284 xl* | mpixl* | bgxl*)
12285 # IBM XL 8.0 on PPC, with GNU ld
12286 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12287 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12288 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12289 if test "x$supports_anon_versioning" = xyes; then
12290 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12291 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12292 echo "local: *; };" >> $output_objdir/$libname.ver~
12293 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12294 fi
12295 ;;
12296 *)
12297 case `$CC -V 2>&1 | sed 5q` in
12298 *Sun\ C*)
12299 # Sun C++ 5.9
12300 no_undefined_flag_CXX=' -zdefs'
12301 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12302 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'
12303 hardcode_libdir_flag_spec_CXX='-R$libdir'
12304 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'
12305 compiler_needs_object_CXX=yes
12306
12307 # Not sure whether something based on
12308 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12309 # would be better.
12310 output_verbose_link_cmd='func_echo_all'
12311
12312 # Archives containing C++ object files must be created using
12313 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12314 # necessary to make sure instantiated templates are included
12315 # in the archive.
12316 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12317 ;;
12318 esac
12319 ;;
12320 esac
12321 ;;
12322
12323 lynxos*)
12324 # FIXME: insert proper C++ library support
12325 ld_shlibs_CXX=no
12326 ;;
12327
12328 m88k*)
12329 # FIXME: insert proper C++ library support
12330 ld_shlibs_CXX=no
12331 ;;
12332
12333 mvs*)
12334 case $cc_basename in
12335 cxx*)
12336 # FIXME: insert proper C++ library support
12337 ld_shlibs_CXX=no
12338 ;;
12339 *)
12340 # FIXME: insert proper C++ library support
12341 ld_shlibs_CXX=no
12342 ;;
12343 esac
12344 ;;
12345
12346 netbsd*)
12347 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12348 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12349 wlarc=
12350 hardcode_libdir_flag_spec_CXX='-R$libdir'
12351 hardcode_direct_CXX=yes
12352 hardcode_shlibpath_var_CXX=no
12353 fi
12354 # Workaround some broken pre-1.5 toolchains
12355 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12356 ;;
12357
12358 *nto* | *qnx*)
12359 ld_shlibs_CXX=yes
12360 ;;
12361
12362 openbsd2*)
12363 # C++ shared libraries are fairly broken
12364 ld_shlibs_CXX=no
12365 ;;
12366
12367 openbsd*)
12368 if test -f /usr/libexec/ld.so; then
12369 hardcode_direct_CXX=yes
12370 hardcode_shlibpath_var_CXX=no
12371 hardcode_direct_absolute_CXX=yes
12372 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12373 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12375 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12376 export_dynamic_flag_spec_CXX='${wl}-E'
12377 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12378 fi
12379 output_verbose_link_cmd=func_echo_all
12380 else
12381 ld_shlibs_CXX=no
12382 fi
12383 ;;
12384
12385 osf3* | osf4* | osf5*)
12386 case $cc_basename in
12387 KCC*)
12388 # Kuck and Associates, Inc. (KAI) C++ Compiler
12389
12390 # KCC will only create a shared library if the output file
12391 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12392 # to its proper name (with version) after linking.
12393 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'
12394
12395 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12396 hardcode_libdir_separator_CXX=:
12397
12398 # Archives containing C++ object files must be created using
12399 # the KAI C++ compiler.
12400 case $host in
12401 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12402 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12403 esac
12404 ;;
12405 RCC*)
12406 # Rational C++ 2.4.1
12407 # FIXME: insert proper C++ library support
12408 ld_shlibs_CXX=no
12409 ;;
12410 cxx*)
12411 case $host in
12412 osf3*)
12413 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12414 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'
12415 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12416 ;;
12417 *)
12418 allow_undefined_flag_CXX=' -expect_unresolved \*'
12419 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'
12420 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12421 echo "-hidden">> $lib.exp~
12422 $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~
12423 $RM $lib.exp'
12424 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12425 ;;
12426 esac
12427
12428 hardcode_libdir_separator_CXX=:
12429
12430 # Commands to make compiler produce verbose output that lists
12431 # what "hidden" libraries, object files and flags are used when
12432 # linking a shared library.
12433 #
12434 # There doesn't appear to be a way to prevent this compiler from
12435 # explicitly linking system object files so we need to strip them
12436 # from the output so that they don't get included in the library
12437 # dependencies.
12438 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"'
12439 ;;
12440 *)
12441 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12442 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12443 case $host in
12444 osf3*)
12445 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'
12446 ;;
12447 *)
12448 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'
12449 ;;
12450 esac
12451
12452 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12453 hardcode_libdir_separator_CXX=:
12454
12455 # Commands to make compiler produce verbose output that lists
12456 # what "hidden" libraries, object files and flags are used when
12457 # linking a shared library.
12458 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12459
12460 else
12461 # FIXME: insert proper C++ library support
12462 ld_shlibs_CXX=no
12463 fi
12464 ;;
12465 esac
12466 ;;
12467
12468 psos*)
12469 # FIXME: insert proper C++ library support
12470 ld_shlibs_CXX=no
12471 ;;
12472
12473 sunos4*)
12474 case $cc_basename in
12475 CC*)
12476 # Sun C++ 4.x
12477 # FIXME: insert proper C++ library support
12478 ld_shlibs_CXX=no
12479 ;;
12480 lcc*)
12481 # Lucid
12482 # FIXME: insert proper C++ library support
12483 ld_shlibs_CXX=no
12484 ;;
12485 *)
12486 # FIXME: insert proper C++ library support
12487 ld_shlibs_CXX=no
12488 ;;
12489 esac
12490 ;;
12491
12492 solaris*)
12493 case $cc_basename in
12494 CC*)
12495 # Sun C++ 4.2, 5.x and Centerline C++
12496 archive_cmds_need_lc_CXX=yes
12497 no_undefined_flag_CXX=' -zdefs'
12498 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12499 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12500 $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'
12501
12502 hardcode_libdir_flag_spec_CXX='-R$libdir'
12503 hardcode_shlibpath_var_CXX=no
12504 case $host_os in
12505 solaris2.[0-5] | solaris2.[0-5].*) ;;
12506 *)
12507 # The compiler driver will combine and reorder linker options,
12508 # but understands `-z linker_flag'.
12509 # Supported since Solaris 2.6 (maybe 2.5.1?)
12510 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12511 ;;
12512 esac
12513 link_all_deplibs_CXX=yes
12514
12515 output_verbose_link_cmd='func_echo_all'
12516
12517 # Archives containing C++ object files must be created using
12518 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12519 # necessary to make sure instantiated templates are included
12520 # in the archive.
12521 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12522 ;;
12523 gcx*)
12524 # Green Hills C++ Compiler
12525 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12526
12527 # The C++ compiler must be used to create the archive.
12528 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12529 ;;
12530 *)
12531 # GNU C++ compiler with Solaris linker
12532 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12533 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12534 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12535 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12536 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12537 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12538
12539 # Commands to make compiler produce verbose output that lists
12540 # what "hidden" libraries, object files and flags are used when
12541 # linking a shared library.
12542 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12543 else
12544 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12545 # platform.
12546 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12547 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12548 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12549
12550 # Commands to make compiler produce verbose output that lists
12551 # what "hidden" libraries, object files and flags are used when
12552 # linking a shared library.
12553 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12554 fi
12555
12556 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12557 case $host_os in
12558 solaris2.[0-5] | solaris2.[0-5].*) ;;
12559 *)
12560 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12561 ;;
12562 esac
12563 fi
12564 ;;
12565 esac
12566 ;;
12567
12568 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12569 no_undefined_flag_CXX='${wl}-z,text'
12570 archive_cmds_need_lc_CXX=no
12571 hardcode_shlibpath_var_CXX=no
12572 runpath_var='LD_RUN_PATH'
12573
12574 case $cc_basename in
12575 CC*)
12576 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12577 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12578 ;;
12579 *)
12580 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12581 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12582 ;;
12583 esac
12584 ;;
12585
12586 sysv5* | sco3.2v5* | sco5v6*)
12587 # Note: We can NOT use -z defs as we might desire, because we do not
12588 # link with -lc, and that would cause any symbols used from libc to
12589 # always be unresolved, which means just about no library would
12590 # ever link correctly. If we're not using GNU ld we use -z text
12591 # though, which does catch some bad symbols but isn't as heavy-handed
12592 # as -z defs.
12593 no_undefined_flag_CXX='${wl}-z,text'
12594 allow_undefined_flag_CXX='${wl}-z,nodefs'
12595 archive_cmds_need_lc_CXX=no
12596 hardcode_shlibpath_var_CXX=no
12597 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12598 hardcode_libdir_separator_CXX=':'
12599 link_all_deplibs_CXX=yes
12600 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12601 runpath_var='LD_RUN_PATH'
12602
12603 case $cc_basename in
12604 CC*)
12605 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12606 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12607 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12608 '"$old_archive_cmds_CXX"
12609 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12610 '"$reload_cmds_CXX"
12611 ;;
12612 *)
12613 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12614 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12615 ;;
12616 esac
12617 ;;
12618
12619 tandem*)
12620 case $cc_basename in
12621 NCC*)
12622 # NonStop-UX NCC 3.20
12623 # FIXME: insert proper C++ library support
12624 ld_shlibs_CXX=no
12625 ;;
12626 *)
12627 # FIXME: insert proper C++ library support
12628 ld_shlibs_CXX=no
12629 ;;
12630 esac
12631 ;;
12632
12633 vxworks*)
12634 # FIXME: insert proper C++ library support
12635 ld_shlibs_CXX=no
12636 ;;
12637
12638 *)
12639 # FIXME: insert proper C++ library support
12640 ld_shlibs_CXX=no
12641 ;;
12642 esac
12643
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12645$as_echo "$ld_shlibs_CXX" >&6; }
12646 test "$ld_shlibs_CXX" = no && can_build_shared=no
12647
12648 GCC_CXX="$GXX"
12649 LD_CXX="$LD"
12650
12651 ## CAVEAT EMPTOR:
12652 ## There is no encapsulation within the following macros, do not change
12653 ## the running order or otherwise move them around unless you know exactly
12654 ## what you are doing...
12655 # Dependencies to place before and after the object being linked:
12656predep_objects_CXX=
12657postdep_objects_CXX=
12658predeps_CXX=
12659postdeps_CXX=
12660compiler_lib_search_path_CXX=
12661
12662cat > conftest.$ac_ext <<_LT_EOF
12663class Foo
12664{
12665public:
12666 Foo (void) { a = 0; }
12667private:
12668 int a;
12669};
12670_LT_EOF
12671
12672if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12673 (eval $ac_compile) 2>&5
12674 ac_status=$?
12675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12676 test $ac_status = 0; }; then
12677 # Parse the compiler output and extract the necessary
12678 # objects, libraries and library flags.
12679
12680 # Sentinel used to keep track of whether or not we are before
12681 # the conftest object file.
12682 pre_test_object_deps_done=no
12683
12684 for p in `eval "$output_verbose_link_cmd"`; do
12685 case $p in
12686
12687 -L* | -R* | -l*)
12688 # Some compilers place space between "-{L,R}" and the path.
12689 # Remove the space.
12690 if test $p = "-L" ||
12691 test $p = "-R"; then
12692 prev=$p
12693 continue
12694 else
12695 prev=
12696 fi
12697
12698 if test "$pre_test_object_deps_done" = no; then
12699 case $p in
12700 -L* | -R*)
12701 # Internal compiler library paths should come after those
12702 # provided the user. The postdeps already come after the
12703 # user supplied libs so there is no need to process them.
12704 if test -z "$compiler_lib_search_path_CXX"; then
12705 compiler_lib_search_path_CXX="${prev}${p}"
12706 else
12707 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12708 fi
12709 ;;
12710 # The "-l" case would never come before the object being
12711 # linked, so don't bother handling this case.
12712 esac
12713 else
12714 if test -z "$postdeps_CXX"; then
12715 postdeps_CXX="${prev}${p}"
12716 else
12717 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12718 fi
12719 fi
12720 ;;
12721
12722 *.$objext)
12723 # This assumes that the test object file only shows up
12724 # once in the compiler output.
12725 if test "$p" = "conftest.$objext"; then
12726 pre_test_object_deps_done=yes
12727 continue
12728 fi
12729
12730 if test "$pre_test_object_deps_done" = no; then
12731 if test -z "$predep_objects_CXX"; then
12732 predep_objects_CXX="$p"
12733 else
12734 predep_objects_CXX="$predep_objects_CXX $p"
12735 fi
12736 else
12737 if test -z "$postdep_objects_CXX"; then
12738 postdep_objects_CXX="$p"
12739 else
12740 postdep_objects_CXX="$postdep_objects_CXX $p"
12741 fi
12742 fi
12743 ;;
12744
12745 *) ;; # Ignore the rest.
12746
12747 esac
12748 done
12749
12750 # Clean up.
12751 rm -f a.out a.exe
12752else
12753 echo "libtool.m4: error: problem compiling CXX test program"
12754fi
12755
12756$RM -f confest.$objext
12757
12758# PORTME: override above test on systems where it is broken
12759case $host_os in
12760interix[3-9]*)
12761 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12762 # hack all around it, let's just trust "g++" to DTRT.
12763 predep_objects_CXX=
12764 postdep_objects_CXX=
12765 postdeps_CXX=
12766 ;;
12767
12768linux*)
12769 case `$CC -V 2>&1 | sed 5q` in
12770 *Sun\ C*)
12771 # Sun C++ 5.9
12772
12773 # The more standards-conforming stlport4 library is
12774 # incompatible with the Cstd library. Avoid specifying
12775 # it if it's in CXXFLAGS. Ignore libCrun as
12776 # -library=stlport4 depends on it.
12777 case " $CXX $CXXFLAGS " in
12778 *" -library=stlport4 "*)
12779 solaris_use_stlport4=yes
12780 ;;
12781 esac
12782
12783 if test "$solaris_use_stlport4" != yes; then
12784 postdeps_CXX='-library=Cstd -library=Crun'
12785 fi
12786 ;;
12787 esac
12788 ;;
12789
12790solaris*)
12791 case $cc_basename in
12792 CC*)
12793 # The more standards-conforming stlport4 library is
12794 # incompatible with the Cstd library. Avoid specifying
12795 # it if it's in CXXFLAGS. Ignore libCrun as
12796 # -library=stlport4 depends on it.
12797 case " $CXX $CXXFLAGS " in
12798 *" -library=stlport4 "*)
12799 solaris_use_stlport4=yes
12800 ;;
12801 esac
12802
12803 # Adding this requires a known-good setup of shared libraries for
12804 # Sun compiler versions before 5.6, else PIC objects from an old
12805 # archive will be linked into the output, leading to subtle bugs.
12806 if test "$solaris_use_stlport4" != yes; then
12807 postdeps_CXX='-library=Cstd -library=Crun'
12808 fi
12809 ;;
12810 esac
12811 ;;
12812esac
12813
12814
12815case " $postdeps_CXX " in
12816*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12817esac
12818 compiler_lib_search_dirs_CXX=
12819if test -n "${compiler_lib_search_path_CXX}"; then
12820 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12821fi
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853 lt_prog_compiler_wl_CXX=
12854lt_prog_compiler_pic_CXX=
12855lt_prog_compiler_static_CXX=
12856
12857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12858$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12859
12860 # C++ specific cases for pic, static, wl, etc.
12861 if test "$GXX" = yes; then
12862 lt_prog_compiler_wl_CXX='-Wl,'
12863 lt_prog_compiler_static_CXX='-static'
12864
12865 case $host_os in
12866 aix*)
12867 # All AIX code is PIC.
12868 if test "$host_cpu" = ia64; then
12869 # AIX 5 now supports IA64 processor
12870 lt_prog_compiler_static_CXX='-Bstatic'
12871 fi
12872 lt_prog_compiler_pic_CXX='-fPIC'
12873 ;;
12874
12875 amigaos*)
12876 case $host_cpu in
12877 powerpc)
12878 # see comment about AmigaOS4 .so support
12879 lt_prog_compiler_pic_CXX='-fPIC'
12880 ;;
12881 m68k)
12882 # FIXME: we need at least 68020 code to build shared libraries, but
12883 # adding the `-m68020' flag to GCC prevents building anything better,
12884 # like `-m68040'.
12885 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12886 ;;
12887 esac
12888 ;;
12889
12890 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12891 # PIC is the default for these OSes.
12892 ;;
12893 mingw* | cygwin* | os2* | pw32* | cegcc*)
12894 # This hack is so that the source file can tell whether it is being
12895 # built for inclusion in a dll (and should export symbols for example).
12896 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12897 # (--disable-auto-import) libraries
12898 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12899 ;;
12900 darwin* | rhapsody*)
12901 # PIC is the default on this platform
12902 # Common symbols not allowed in MH_DYLIB files
12903 lt_prog_compiler_pic_CXX='-fno-common'
12904 ;;
12905 *djgpp*)
12906 # DJGPP does not support shared libraries at all
12907 lt_prog_compiler_pic_CXX=
12908 ;;
12909 haiku*)
12910 # PIC is the default for Haiku.
12911 # The "-static" flag exists, but is broken.
12912 lt_prog_compiler_static_CXX=
12913 ;;
12914 interix[3-9]*)
12915 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12916 # Instead, we relocate shared libraries at runtime.
12917 ;;
12918 sysv4*MP*)
12919 if test -d /usr/nec; then
12920 lt_prog_compiler_pic_CXX=-Kconform_pic
12921 fi
12922 ;;
12923 hpux*)
12924 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12925 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12926 # sets the default TLS model and affects inlining.
12927 case $host_cpu in
12928 hppa*64*)
12929 ;;
12930 *)
12931 lt_prog_compiler_pic_CXX='-fPIC'
12932 ;;
12933 esac
12934 ;;
12935 *qnx* | *nto*)
12936 # QNX uses GNU C++, but need to define -shared option too, otherwise
12937 # it will coredump.
12938 lt_prog_compiler_pic_CXX='-fPIC -shared'
12939 ;;
12940 *)
12941 lt_prog_compiler_pic_CXX='-fPIC'
12942 ;;
12943 esac
12944 else
12945 case $host_os in
12946 aix[4-9]*)
12947 # All AIX code is PIC.
12948 if test "$host_cpu" = ia64; then
12949 # AIX 5 now supports IA64 processor
12950 lt_prog_compiler_static_CXX='-Bstatic'
12951 else
12952 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12953 fi
12954 ;;
12955 chorus*)
12956 case $cc_basename in
12957 cxch68*)
12958 # Green Hills C++ Compiler
12959 # _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"
12960 ;;
12961 esac
12962 ;;
12963 dgux*)
12964 case $cc_basename in
12965 ec++*)
12966 lt_prog_compiler_pic_CXX='-KPIC'
12967 ;;
12968 ghcx*)
12969 # Green Hills C++ Compiler
12970 lt_prog_compiler_pic_CXX='-pic'
12971 ;;
12972 *)
12973 ;;
12974 esac
12975 ;;
12976 freebsd* | dragonfly*)
12977 # FreeBSD uses GNU C++
12978 ;;
12979 hpux9* | hpux10* | hpux11*)
12980 case $cc_basename in
12981 CC*)
12982 lt_prog_compiler_wl_CXX='-Wl,'
12983 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12984 if test "$host_cpu" != ia64; then
12985 lt_prog_compiler_pic_CXX='+Z'
12986 fi
12987 ;;
12988 aCC*)
12989 lt_prog_compiler_wl_CXX='-Wl,'
12990 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12991 case $host_cpu in
12992 hppa*64*|ia64*)
12993 # +Z the default
12994 ;;
12995 *)
12996 lt_prog_compiler_pic_CXX='+Z'
12997 ;;
12998 esac
12999 ;;
13000 *)
13001 ;;
13002 esac
13003 ;;
13004 interix*)
13005 # This is c89, which is MS Visual C++ (no shared libs)
13006 # Anyone wants to do a port?
13007 ;;
13008 irix5* | irix6* | nonstopux*)
13009 case $cc_basename in
13010 CC*)
13011 lt_prog_compiler_wl_CXX='-Wl,'
13012 lt_prog_compiler_static_CXX='-non_shared'
13013 # CC pic flag -KPIC is the default.
13014 ;;
13015 *)
13016 ;;
13017 esac
13018 ;;
13019 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13020 case $cc_basename in
13021 KCC*)
13022 # KAI C++ Compiler
13023 lt_prog_compiler_wl_CXX='--backend -Wl,'
13024 lt_prog_compiler_pic_CXX='-fPIC'
13025 ;;
13026 ecpc* )
13027 # old Intel C++ for x86_64 which still supported -KPIC.
13028 lt_prog_compiler_wl_CXX='-Wl,'
13029 lt_prog_compiler_pic_CXX='-KPIC'
13030 lt_prog_compiler_static_CXX='-static'
13031 ;;
13032 icpc* )
13033 # Intel C++, used to be incompatible with GCC.
13034 # ICC 10 doesn't accept -KPIC any more.
13035 lt_prog_compiler_wl_CXX='-Wl,'
13036 lt_prog_compiler_pic_CXX='-fPIC'
13037 lt_prog_compiler_static_CXX='-static'
13038 ;;
13039 pgCC* | pgcpp*)
13040 # Portland Group C++ compiler
13041 lt_prog_compiler_wl_CXX='-Wl,'
13042 lt_prog_compiler_pic_CXX='-fpic'
13043 lt_prog_compiler_static_CXX='-Bstatic'
13044 ;;
13045 cxx*)
13046 # Compaq C++
13047 # Make sure the PIC flag is empty. It appears that all Alpha
13048 # Linux and Compaq Tru64 Unix objects are PIC.
13049 lt_prog_compiler_pic_CXX=
13050 lt_prog_compiler_static_CXX='-non_shared'
13051 ;;
13052 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13053 # IBM XL 8.0, 9.0 on PPC and BlueGene
13054 lt_prog_compiler_wl_CXX='-Wl,'
13055 lt_prog_compiler_pic_CXX='-qpic'
13056 lt_prog_compiler_static_CXX='-qstaticlink'
13057 ;;
13058 *)
13059 case `$CC -V 2>&1 | sed 5q` in
13060 *Sun\ C*)
13061 # Sun C++ 5.9
13062 lt_prog_compiler_pic_CXX='-KPIC'
13063 lt_prog_compiler_static_CXX='-Bstatic'
13064 lt_prog_compiler_wl_CXX='-Qoption ld '
13065 ;;
13066 esac
13067 ;;
13068 esac
13069 ;;
13070 lynxos*)
13071 ;;
13072 m88k*)
13073 ;;
13074 mvs*)
13075 case $cc_basename in
13076 cxx*)
13077 lt_prog_compiler_pic_CXX='-W c,exportall'
13078 ;;
13079 *)
13080 ;;
13081 esac
13082 ;;
13083 netbsd*)
13084 ;;
13085 *qnx* | *nto*)
13086 # QNX uses GNU C++, but need to define -shared option too, otherwise
13087 # it will coredump.
13088 lt_prog_compiler_pic_CXX='-fPIC -shared'
13089 ;;
13090 osf3* | osf4* | osf5*)
13091 case $cc_basename in
13092 KCC*)
13093 lt_prog_compiler_wl_CXX='--backend -Wl,'
13094 ;;
13095 RCC*)
13096 # Rational C++ 2.4.1
13097 lt_prog_compiler_pic_CXX='-pic'
13098 ;;
13099 cxx*)
13100 # Digital/Compaq C++
13101 lt_prog_compiler_wl_CXX='-Wl,'
13102 # Make sure the PIC flag is empty. It appears that all Alpha
13103 # Linux and Compaq Tru64 Unix objects are PIC.
13104 lt_prog_compiler_pic_CXX=
13105 lt_prog_compiler_static_CXX='-non_shared'
13106 ;;
13107 *)
13108 ;;
13109 esac
13110 ;;
13111 psos*)
13112 ;;
13113 solaris*)
13114 case $cc_basename in
13115 CC*)
13116 # Sun C++ 4.2, 5.x and Centerline C++
13117 lt_prog_compiler_pic_CXX='-KPIC'
13118 lt_prog_compiler_static_CXX='-Bstatic'
13119 lt_prog_compiler_wl_CXX='-Qoption ld '
13120 ;;
13121 gcx*)
13122 # Green Hills C++ Compiler
13123 lt_prog_compiler_pic_CXX='-PIC'
13124 ;;
13125 *)
13126 ;;
13127 esac
13128 ;;
13129 sunos4*)
13130 case $cc_basename in
13131 CC*)
13132 # Sun C++ 4.x
13133 lt_prog_compiler_pic_CXX='-pic'
13134 lt_prog_compiler_static_CXX='-Bstatic'
13135 ;;
13136 lcc*)
13137 # Lucid
13138 lt_prog_compiler_pic_CXX='-pic'
13139 ;;
13140 *)
13141 ;;
13142 esac
13143 ;;
13144 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13145 case $cc_basename in
13146 CC*)
13147 lt_prog_compiler_wl_CXX='-Wl,'
13148 lt_prog_compiler_pic_CXX='-KPIC'
13149 lt_prog_compiler_static_CXX='-Bstatic'
13150 ;;
13151 esac
13152 ;;
13153 tandem*)
13154 case $cc_basename in
13155 NCC*)
13156 # NonStop-UX NCC 3.20
13157 lt_prog_compiler_pic_CXX='-KPIC'
13158 ;;
13159 *)
13160 ;;
13161 esac
13162 ;;
13163 vxworks*)
13164 ;;
13165 *)
13166 lt_prog_compiler_can_build_shared_CXX=no
13167 ;;
13168 esac
13169 fi
13170
13171case $host_os in
13172 # For platforms which do not support PIC, -DPIC is meaningless:
13173 *djgpp*)
13174 lt_prog_compiler_pic_CXX=
13175 ;;
13176 *)
13177 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13178 ;;
13179esac
13180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13181$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13182
13183
13184
13185#
13186# Check to make sure the PIC flag actually works.
13187#
13188if test -n "$lt_prog_compiler_pic_CXX"; then
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13190$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13191if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13192 $as_echo_n "(cached) " >&6
13193else
13194 lt_cv_prog_compiler_pic_works_CXX=no
13195 ac_outfile=conftest.$ac_objext
13196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13197 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13198 # Insert the option either (1) after the last *FLAGS variable, or
13199 # (2) before a word containing "conftest.", or (3) at the end.
13200 # Note that $ac_compile itself does not contain backslashes and begins
13201 # with a dollar sign (not a hyphen), so the echo should work correctly.
13202 # The option is referenced via a variable to avoid confusing sed.
13203 lt_compile=`echo "$ac_compile" | $SED \
13204 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13205 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13206 -e 's:$: $lt_compiler_flag:'`
13207 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13208 (eval "$lt_compile" 2>conftest.err)
13209 ac_status=$?
13210 cat conftest.err >&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 if (exit $ac_status) && test -s "$ac_outfile"; then
13213 # The compiler can only warn and ignore the option if not recognized
13214 # So say no if there are warnings other than the usual output.
13215 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13217 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13218 lt_cv_prog_compiler_pic_works_CXX=yes
13219 fi
13220 fi
13221 $RM conftest*
13222
13223fi
13224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13225$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13226
13227if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13228 case $lt_prog_compiler_pic_CXX in
13229 "" | " "*) ;;
13230 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13231 esac
13232else
13233 lt_prog_compiler_pic_CXX=
13234 lt_prog_compiler_can_build_shared_CXX=no
13235fi
13236
13237fi
13238
13239
13240
13241#
13242# Check to make sure the static flag actually works.
13243#
13244wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13246$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13247if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13248 $as_echo_n "(cached) " >&6
13249else
13250 lt_cv_prog_compiler_static_works_CXX=no
13251 save_LDFLAGS="$LDFLAGS"
13252 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13253 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13254 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13255 # The linker can only warn and ignore the option if not recognized
13256 # So say no if there are warnings
13257 if test -s conftest.err; then
13258 # Append any errors to the config.log.
13259 cat conftest.err 1>&5
13260 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13262 if diff conftest.exp conftest.er2 >/dev/null; then
13263 lt_cv_prog_compiler_static_works_CXX=yes
13264 fi
13265 else
13266 lt_cv_prog_compiler_static_works_CXX=yes
13267 fi
13268 fi
13269 $RM -r conftest*
13270 LDFLAGS="$save_LDFLAGS"
13271
13272fi
13273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13274$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13275
13276if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13277 :
13278else
13279 lt_prog_compiler_static_CXX=
13280fi
13281
13282
13283
13284
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13286$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13287if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13288 $as_echo_n "(cached) " >&6
13289else
13290 lt_cv_prog_compiler_c_o_CXX=no
13291 $RM -r conftest 2>/dev/null
13292 mkdir conftest
13293 cd conftest
13294 mkdir out
13295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13296
13297 lt_compiler_flag="-o out/conftest2.$ac_objext"
13298 # Insert the option either (1) after the last *FLAGS variable, or
13299 # (2) before a word containing "conftest.", or (3) at the end.
13300 # Note that $ac_compile itself does not contain backslashes and begins
13301 # with a dollar sign (not a hyphen), so the echo should work correctly.
13302 lt_compile=`echo "$ac_compile" | $SED \
13303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13305 -e 's:$: $lt_compiler_flag:'`
13306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13307 (eval "$lt_compile" 2>out/conftest.err)
13308 ac_status=$?
13309 cat out/conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13312 then
13313 # The compiler can only warn and ignore the option if not recognized
13314 # So say no if there are warnings
13315 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13316 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13317 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13318 lt_cv_prog_compiler_c_o_CXX=yes
13319 fi
13320 fi
13321 chmod u+w . 2>&5
13322 $RM conftest*
13323 # SGI C++ compiler will create directory out/ii_files/ for
13324 # template instantiation
13325 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13326 $RM out/* && rmdir out
13327 cd ..
13328 $RM -r conftest
13329 $RM conftest*
13330
13331fi
13332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13333$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13334
13335
13336
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13338$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13339if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13340 $as_echo_n "(cached) " >&6
13341else
13342 lt_cv_prog_compiler_c_o_CXX=no
13343 $RM -r conftest 2>/dev/null
13344 mkdir conftest
13345 cd conftest
13346 mkdir out
13347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13348
13349 lt_compiler_flag="-o out/conftest2.$ac_objext"
13350 # Insert the option either (1) after the last *FLAGS variable, or
13351 # (2) before a word containing "conftest.", or (3) at the end.
13352 # Note that $ac_compile itself does not contain backslashes and begins
13353 # with a dollar sign (not a hyphen), so the echo should work correctly.
13354 lt_compile=`echo "$ac_compile" | $SED \
13355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13357 -e 's:$: $lt_compiler_flag:'`
13358 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13359 (eval "$lt_compile" 2>out/conftest.err)
13360 ac_status=$?
13361 cat out/conftest.err >&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13364 then
13365 # The compiler can only warn and ignore the option if not recognized
13366 # So say no if there are warnings
13367 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13368 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13369 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13370 lt_cv_prog_compiler_c_o_CXX=yes
13371 fi
13372 fi
13373 chmod u+w . 2>&5
13374 $RM conftest*
13375 # SGI C++ compiler will create directory out/ii_files/ for
13376 # template instantiation
13377 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13378 $RM out/* && rmdir out
13379 cd ..
13380 $RM -r conftest
13381 $RM conftest*
13382
13383fi
13384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13385$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13386
13387
13388
13389
13390hard_links="nottested"
13391if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13392 # do not overwrite the value of need_locks provided by the user
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13394$as_echo_n "checking if we can lock with hard links... " >&6; }
13395 hard_links=yes
13396 $RM conftest*
13397 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13398 touch conftest.a
13399 ln conftest.a conftest.b 2>&5 || hard_links=no
13400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13402$as_echo "$hard_links" >&6; }
13403 if test "$hard_links" = no; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13405$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13406 need_locks=warn
13407 fi
13408else
13409 need_locks=no
13410fi
13411
13412
13413
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13415$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13416
13417 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13418 case $host_os in
13419 aix[4-9]*)
13420 # If we're using GNU nm, then we don't want the "-C" option.
13421 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13422 # Also, AIX nm treats weak defined symbols like other global defined
13423 # symbols, whereas GNU nm marks them as "W".
13424 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13425 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'
13426 else
13427 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'
13428 fi
13429 ;;
13430 pw32*)
13431 export_symbols_cmds_CXX="$ltdll_cmds"
13432 ;;
13433 cygwin* | mingw* | cegcc*)
13434 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'
13435 ;;
13436 *)
13437 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13438 ;;
13439 esac
13440 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13441
13442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13443$as_echo "$ld_shlibs_CXX" >&6; }
13444test "$ld_shlibs_CXX" = no && can_build_shared=no
13445
13446with_gnu_ld_CXX=$with_gnu_ld
13447
13448
13449
13450
13451
13452
13453#
13454# Do we need to explicitly link libc?
13455#
13456case "x$archive_cmds_need_lc_CXX" in
13457x|xyes)
13458 # Assume -lc should be added
13459 archive_cmds_need_lc_CXX=yes
13460
13461 if test "$enable_shared" = yes && test "$GCC" = yes; then
13462 case $archive_cmds_CXX in
13463 *'~'*)
13464 # FIXME: we may have to deal with multi-command sequences.
13465 ;;
13466 '$CC '*)
13467 # Test whether the compiler implicitly links with -lc since on some
13468 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13469 # to ld, don't add -lc before -lgcc.
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13471$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13472if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13473 $as_echo_n "(cached) " >&6
13474else
13475 $RM conftest*
13476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13477
13478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13479 (eval $ac_compile) 2>&5
13480 ac_status=$?
13481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13482 test $ac_status = 0; } 2>conftest.err; then
13483 soname=conftest
13484 lib=conftest
13485 libobjs=conftest.$ac_objext
13486 deplibs=
13487 wl=$lt_prog_compiler_wl_CXX
13488 pic_flag=$lt_prog_compiler_pic_CXX
13489 compiler_flags=-v
13490 linker_flags=-v
13491 verstring=
13492 output_objdir=.
13493 libname=conftest
13494 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13495 allow_undefined_flag_CXX=
13496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13497 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13498 ac_status=$?
13499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13500 test $ac_status = 0; }
13501 then
13502 lt_cv_archive_cmds_need_lc_CXX=no
13503 else
13504 lt_cv_archive_cmds_need_lc_CXX=yes
13505 fi
13506 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13507 else
13508 cat conftest.err 1>&5
13509 fi
13510 $RM conftest*
13511
13512fi
13513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13514$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13515 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13516 ;;
13517 esac
13518 fi
13519 ;;
13520esac
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13586$as_echo_n "checking dynamic linker characteristics... " >&6; }
13587
13588library_names_spec=
13589libname_spec='lib$name'
13590soname_spec=
13591shrext_cmds=".so"
13592postinstall_cmds=
13593postuninstall_cmds=
13594finish_cmds=
13595finish_eval=
13596shlibpath_var=
13597shlibpath_overrides_runpath=unknown
13598version_type=none
13599dynamic_linker="$host_os ld.so"
13600sys_lib_dlsearch_path_spec="/lib /usr/lib"
13601need_lib_prefix=unknown
13602hardcode_into_libs=no
13603
13604# when you set need_version to no, make sure it does not cause -set_version
13605# flags to be left without arguments
13606need_version=unknown
13607
13608case $host_os in
13609aix3*)
13610 version_type=linux
13611 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13612 shlibpath_var=LIBPATH
13613
13614 # AIX 3 has no versioning support, so we append a major version to the name.
13615 soname_spec='${libname}${release}${shared_ext}$major'
13616 ;;
13617
13618aix[4-9]*)
13619 version_type=linux
13620 need_lib_prefix=no
13621 need_version=no
13622 hardcode_into_libs=yes
13623 if test "$host_cpu" = ia64; then
13624 # AIX 5 supports IA64
13625 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13626 shlibpath_var=LD_LIBRARY_PATH
13627 else
13628 # With GCC up to 2.95.x, collect2 would create an import file
13629 # for dependence libraries. The import file would start with
13630 # the line `#! .'. This would cause the generated library to
13631 # depend on `.', always an invalid library. This was fixed in
13632 # development snapshots of GCC prior to 3.0.
13633 case $host_os in
13634 aix4 | aix4.[01] | aix4.[01].*)
13635 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13636 echo ' yes '
13637 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13638 :
13639 else
13640 can_build_shared=no
13641 fi
13642 ;;
13643 esac
13644 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13645 # soname into executable. Probably we can add versioning support to
13646 # collect2, so additional links can be useful in future.
13647 if test "$aix_use_runtimelinking" = yes; then
13648 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13649 # instead of lib<name>.a to let people know that these are not
13650 # typical AIX shared libraries.
13651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13652 else
13653 # We preserve .a as extension for shared libraries through AIX4.2
13654 # and later when we are not doing run time linking.
13655 library_names_spec='${libname}${release}.a $libname.a'
13656 soname_spec='${libname}${release}${shared_ext}$major'
13657 fi
13658 shlibpath_var=LIBPATH
13659 fi
13660 ;;
13661
13662amigaos*)
13663 case $host_cpu in
13664 powerpc)
13665 # Since July 2007 AmigaOS4 officially supports .so libraries.
13666 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13668 ;;
13669 m68k)
13670 library_names_spec='$libname.ixlibrary $libname.a'
13671 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13672 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'
13673 ;;
13674 esac
13675 ;;
13676
13677beos*)
13678 library_names_spec='${libname}${shared_ext}'
13679 dynamic_linker="$host_os ld.so"
13680 shlibpath_var=LIBRARY_PATH
13681 ;;
13682
13683bsdi[45]*)
13684 version_type=linux
13685 need_version=no
13686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13687 soname_spec='${libname}${release}${shared_ext}$major'
13688 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13689 shlibpath_var=LD_LIBRARY_PATH
13690 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13691 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13692 # the default ld.so.conf also contains /usr/contrib/lib and
13693 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13694 # libtool to hard-code these into programs
13695 ;;
13696
13697cygwin* | mingw* | pw32* | cegcc*)
13698 version_type=windows
13699 shrext_cmds=".dll"
13700 need_version=no
13701 need_lib_prefix=no
13702
13703 case $GCC,$host_os in
13704 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13705 library_names_spec='$libname.dll.a'
13706 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13707 postinstall_cmds='base_file=`basename \${file}`~
13708 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13709 dldir=$destdir/`dirname \$dlpath`~
13710 test -d \$dldir || mkdir -p \$dldir~
13711 $install_prog $dir/$dlname \$dldir/$dlname~
13712 chmod a+x \$dldir/$dlname~
13713 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13714 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13715 fi'
13716 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13717 dlpath=$dir/\$dldll~
13718 $RM \$dlpath'
13719 shlibpath_overrides_runpath=yes
13720
13721 case $host_os in
13722 cygwin*)
13723 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13724 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13725
13726 ;;
13727 mingw* | cegcc*)
13728 # MinGW DLLs use traditional 'lib' prefix
13729 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13730 ;;
13731 pw32*)
13732 # pw32 DLLs use 'pw' prefix rather than 'lib'
13733 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13734 ;;
13735 esac
13736 ;;
13737
13738 *)
13739 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13740 ;;
13741 esac
13742 dynamic_linker='Win32 ld.exe'
13743 # FIXME: first we should search . and the directory the executable is in
13744 shlibpath_var=PATH
13745 ;;
13746
13747darwin* | rhapsody*)
13748 dynamic_linker="$host_os dyld"
13749 version_type=darwin
13750 need_lib_prefix=no
13751 need_version=no
13752 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13753 soname_spec='${libname}${release}${major}$shared_ext'
13754 shlibpath_overrides_runpath=yes
13755 shlibpath_var=DYLD_LIBRARY_PATH
13756 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13757
13758 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13759 ;;
13760
13761dgux*)
13762 version_type=linux
13763 need_lib_prefix=no
13764 need_version=no
13765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13766 soname_spec='${libname}${release}${shared_ext}$major'
13767 shlibpath_var=LD_LIBRARY_PATH
13768 ;;
13769
13770freebsd* | dragonfly*)
13771 # DragonFly does not have aout. When/if they implement a new
13772 # versioning mechanism, adjust this.
13773 if test -x /usr/bin/objformat; then
13774 objformat=`/usr/bin/objformat`
13775 else
13776 case $host_os in
13777 freebsd[23].*) objformat=aout ;;
13778 *) objformat=elf ;;
13779 esac
13780 fi
13781 version_type=freebsd-$objformat
13782 case $version_type in
13783 freebsd-elf*)
13784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13785 need_version=no
13786 need_lib_prefix=no
13787 ;;
13788 freebsd-*)
13789 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13790 need_version=yes
13791 ;;
13792 esac
13793 shlibpath_var=LD_LIBRARY_PATH
13794 case $host_os in
13795 freebsd2.*)
13796 shlibpath_overrides_runpath=yes
13797 ;;
13798 freebsd3.[01]* | freebsdelf3.[01]*)
13799 shlibpath_overrides_runpath=yes
13800 hardcode_into_libs=yes
13801 ;;
13802 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13803 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13804 shlibpath_overrides_runpath=no
13805 hardcode_into_libs=yes
13806 ;;
13807 *) # from 4.6 on, and DragonFly
13808 shlibpath_overrides_runpath=yes
13809 hardcode_into_libs=yes
13810 ;;
13811 esac
13812 ;;
13813
13814gnu*)
13815 version_type=linux
13816 need_lib_prefix=no
13817 need_version=no
13818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13819 soname_spec='${libname}${release}${shared_ext}$major'
13820 shlibpath_var=LD_LIBRARY_PATH
13821 hardcode_into_libs=yes
13822 ;;
13823
13824haiku*)
13825 version_type=linux
13826 need_lib_prefix=no
13827 need_version=no
13828 dynamic_linker="$host_os runtime_loader"
13829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13830 soname_spec='${libname}${release}${shared_ext}$major'
13831 shlibpath_var=LIBRARY_PATH
13832 shlibpath_overrides_runpath=yes
13833 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13834 hardcode_into_libs=yes
13835 ;;
13836
13837hpux9* | hpux10* | hpux11*)
13838 # Give a soname corresponding to the major version so that dld.sl refuses to
13839 # link against other versions.
13840 version_type=sunos
13841 need_lib_prefix=no
13842 need_version=no
13843 case $host_cpu in
13844 ia64*)
13845 shrext_cmds='.so'
13846 hardcode_into_libs=yes
13847 dynamic_linker="$host_os dld.so"
13848 shlibpath_var=LD_LIBRARY_PATH
13849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13851 soname_spec='${libname}${release}${shared_ext}$major'
13852 if test "X$HPUX_IA64_MODE" = X32; then
13853 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13854 else
13855 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13856 fi
13857 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13858 ;;
13859 hppa*64*)
13860 shrext_cmds='.sl'
13861 hardcode_into_libs=yes
13862 dynamic_linker="$host_os dld.sl"
13863 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13866 soname_spec='${libname}${release}${shared_ext}$major'
13867 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13869 ;;
13870 *)
13871 shrext_cmds='.sl'
13872 dynamic_linker="$host_os dld.sl"
13873 shlibpath_var=SHLIB_PATH
13874 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13876 soname_spec='${libname}${release}${shared_ext}$major'
13877 ;;
13878 esac
13879 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13880 postinstall_cmds='chmod 555 $lib'
13881 # or fails outright, so override atomically:
13882 install_override_mode=555
13883 ;;
13884
13885interix[3-9]*)
13886 version_type=linux
13887 need_lib_prefix=no
13888 need_version=no
13889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13890 soname_spec='${libname}${release}${shared_ext}$major'
13891 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13892 shlibpath_var=LD_LIBRARY_PATH
13893 shlibpath_overrides_runpath=no
13894 hardcode_into_libs=yes
13895 ;;
13896
13897irix5* | irix6* | nonstopux*)
13898 case $host_os in
13899 nonstopux*) version_type=nonstopux ;;
13900 *)
13901 if test "$lt_cv_prog_gnu_ld" = yes; then
13902 version_type=linux
13903 else
13904 version_type=irix
13905 fi ;;
13906 esac
13907 need_lib_prefix=no
13908 need_version=no
13909 soname_spec='${libname}${release}${shared_ext}$major'
13910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13911 case $host_os in
13912 irix5* | nonstopux*)
13913 libsuff= shlibsuff=
13914 ;;
13915 *)
13916 case $LD in # libtool.m4 will add one of these switches to LD
13917 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13918 libsuff= shlibsuff= libmagic=32-bit;;
13919 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13920 libsuff=32 shlibsuff=N32 libmagic=N32;;
13921 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13922 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13923 *) libsuff= shlibsuff= libmagic=never-match;;
13924 esac
13925 ;;
13926 esac
13927 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13928 shlibpath_overrides_runpath=no
13929 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13930 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13931 hardcode_into_libs=yes
13932 ;;
13933
13934# No shared lib support for Linux oldld, aout, or coff.
13935linux*oldld* | linux*aout* | linux*coff*)
13936 dynamic_linker=no
13937 ;;
13938
13939# This must be Linux ELF.
13940linux* | k*bsd*-gnu | kopensolaris*-gnu)
13941 version_type=linux
13942 need_lib_prefix=no
13943 need_version=no
13944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13945 soname_spec='${libname}${release}${shared_ext}$major'
13946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13947 shlibpath_var=LD_LIBRARY_PATH
13948 shlibpath_overrides_runpath=no
13949
13950 # Some binutils ld are patched to set DT_RUNPATH
13951 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
13952 $as_echo_n "(cached) " >&6
13953else
13954 lt_cv_shlibpath_overrides_runpath=no
13955 save_LDFLAGS=$LDFLAGS
13956 save_libdir=$libdir
13957 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13958 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960/* end confdefs.h. */
13961
13962int
13963main ()
13964{
13965
13966 ;
13967 return 0;
13968}
13969_ACEOF
13970if ac_fn_cxx_try_link "$LINENO"; then :
13971 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13972 lt_cv_shlibpath_overrides_runpath=yes
13973fi
13974fi
13975rm -f core conftest.err conftest.$ac_objext \
13976 conftest$ac_exeext conftest.$ac_ext
13977 LDFLAGS=$save_LDFLAGS
13978 libdir=$save_libdir
13979
13980fi
13981
13982 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13983
13984 # This implies no fast_install, which is unacceptable.
13985 # Some rework will be needed to allow for fast_install
13986 # before this can be enabled.
13987 hardcode_into_libs=yes
13988
13989 # Append ld.so.conf contents to the search path
13990 if test -f /etc/ld.so.conf; then
13991 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' ' '`
13992 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13993 fi
13994
13995 # We used to test for /lib/ld.so.1 and disable shared libraries on
13996 # powerpc, because MkLinux only supported shared libraries with the
13997 # GNU dynamic linker. Since this was broken with cross compilers,
13998 # most powerpc-linux boxes support dynamic linking these days and
13999 # people can always --disable-shared, the test was removed, and we
14000 # assume the GNU/Linux dynamic linker is in use.
14001 dynamic_linker='GNU/Linux ld.so'
14002 ;;
14003
14004netbsd*)
14005 version_type=sunos
14006 need_lib_prefix=no
14007 need_version=no
14008 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14011 dynamic_linker='NetBSD (a.out) ld.so'
14012 else
14013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14014 soname_spec='${libname}${release}${shared_ext}$major'
14015 dynamic_linker='NetBSD ld.elf_so'
14016 fi
14017 shlibpath_var=LD_LIBRARY_PATH
14018 shlibpath_overrides_runpath=yes
14019 hardcode_into_libs=yes
14020 ;;
14021
14022newsos6)
14023 version_type=linux
14024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025 shlibpath_var=LD_LIBRARY_PATH
14026 shlibpath_overrides_runpath=yes
14027 ;;
14028
14029*nto* | *qnx*)
14030 version_type=qnx
14031 need_lib_prefix=no
14032 need_version=no
14033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14034 soname_spec='${libname}${release}${shared_ext}$major'
14035 shlibpath_var=LD_LIBRARY_PATH
14036 shlibpath_overrides_runpath=no
14037 hardcode_into_libs=yes
14038 dynamic_linker='ldqnx.so'
14039 ;;
14040
14041openbsd*)
14042 version_type=sunos
14043 sys_lib_dlsearch_path_spec="/usr/lib"
14044 need_lib_prefix=no
14045 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14046 case $host_os in
14047 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14048 *) need_version=no ;;
14049 esac
14050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14052 shlibpath_var=LD_LIBRARY_PATH
14053 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14054 case $host_os in
14055 openbsd2.[89] | openbsd2.[89].*)
14056 shlibpath_overrides_runpath=no
14057 ;;
14058 *)
14059 shlibpath_overrides_runpath=yes
14060 ;;
14061 esac
14062 else
14063 shlibpath_overrides_runpath=yes
14064 fi
14065 ;;
14066
14067os2*)
14068 libname_spec='$name'
14069 shrext_cmds=".dll"
14070 need_lib_prefix=no
14071 library_names_spec='$libname${shared_ext} $libname.a'
14072 dynamic_linker='OS/2 ld.exe'
14073 shlibpath_var=LIBPATH
14074 ;;
14075
14076osf3* | osf4* | osf5*)
14077 version_type=osf
14078 need_lib_prefix=no
14079 need_version=no
14080 soname_spec='${libname}${release}${shared_ext}$major'
14081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14082 shlibpath_var=LD_LIBRARY_PATH
14083 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14084 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14085 ;;
14086
14087rdos*)
14088 dynamic_linker=no
14089 ;;
14090
14091solaris*)
14092 version_type=linux
14093 need_lib_prefix=no
14094 need_version=no
14095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14096 soname_spec='${libname}${release}${shared_ext}$major'
14097 shlibpath_var=LD_LIBRARY_PATH
14098 shlibpath_overrides_runpath=yes
14099 hardcode_into_libs=yes
14100 # ldd complains unless libraries are executable
14101 postinstall_cmds='chmod +x $lib'
14102 ;;
14103
14104sunos4*)
14105 version_type=sunos
14106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14107 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14108 shlibpath_var=LD_LIBRARY_PATH
14109 shlibpath_overrides_runpath=yes
14110 if test "$with_gnu_ld" = yes; then
14111 need_lib_prefix=no
14112 fi
14113 need_version=yes
14114 ;;
14115
14116sysv4 | sysv4.3*)
14117 version_type=linux
14118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14119 soname_spec='${libname}${release}${shared_ext}$major'
14120 shlibpath_var=LD_LIBRARY_PATH
14121 case $host_vendor in
14122 sni)
14123 shlibpath_overrides_runpath=no
14124 need_lib_prefix=no
14125 runpath_var=LD_RUN_PATH
14126 ;;
14127 siemens)
14128 need_lib_prefix=no
14129 ;;
14130 motorola)
14131 need_lib_prefix=no
14132 need_version=no
14133 shlibpath_overrides_runpath=no
14134 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14135 ;;
14136 esac
14137 ;;
14138
14139sysv4*MP*)
14140 if test -d /usr/nec ;then
14141 version_type=linux
14142 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14143 soname_spec='$libname${shared_ext}.$major'
14144 shlibpath_var=LD_LIBRARY_PATH
14145 fi
14146 ;;
14147
14148sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14149 version_type=freebsd-elf
14150 need_lib_prefix=no
14151 need_version=no
14152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14153 soname_spec='${libname}${release}${shared_ext}$major'
14154 shlibpath_var=LD_LIBRARY_PATH
14155 shlibpath_overrides_runpath=yes
14156 hardcode_into_libs=yes
14157 if test "$with_gnu_ld" = yes; then
14158 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14159 else
14160 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14161 case $host_os in
14162 sco3.2v5*)
14163 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14164 ;;
14165 esac
14166 fi
14167 sys_lib_dlsearch_path_spec='/usr/lib'
14168 ;;
14169
14170tpf*)
14171 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14172 version_type=linux
14173 need_lib_prefix=no
14174 need_version=no
14175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14176 shlibpath_var=LD_LIBRARY_PATH
14177 shlibpath_overrides_runpath=no
14178 hardcode_into_libs=yes
14179 ;;
14180
14181uts4*)
14182 version_type=linux
14183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14184 soname_spec='${libname}${release}${shared_ext}$major'
14185 shlibpath_var=LD_LIBRARY_PATH
14186 ;;
14187
14188*)
14189 dynamic_linker=no
14190 ;;
14191esac
14192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14193$as_echo "$dynamic_linker" >&6; }
14194test "$dynamic_linker" = no && can_build_shared=no
14195
14196variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14197if test "$GCC" = yes; then
14198 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14199fi
14200
14201if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14202 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14203fi
14204if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14205 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14206fi
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14246$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14247hardcode_action_CXX=
14248if test -n "$hardcode_libdir_flag_spec_CXX" ||
14249 test -n "$runpath_var_CXX" ||
14250 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14251
14252 # We can hardcode non-existent directories.
14253 if test "$hardcode_direct_CXX" != no &&
14254 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14255 # have to relink, otherwise we might link with an installed library
14256 # when we should be linking with a yet-to-be-installed one
14257 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14258 test "$hardcode_minus_L_CXX" != no; then
14259 # Linking always hardcodes the temporary library directory.
14260 hardcode_action_CXX=relink
14261 else
14262 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14263 hardcode_action_CXX=immediate
14264 fi
14265else
14266 # We cannot hardcode anything, or else we can only hardcode existing
14267 # directories.
14268 hardcode_action_CXX=unsupported
14269fi
14270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14271$as_echo "$hardcode_action_CXX" >&6; }
14272
14273if test "$hardcode_action_CXX" = relink ||
14274 test "$inherit_rpath_CXX" = yes; then
14275 # Fast installation is not supported
14276 enable_fast_install=no
14277elif test "$shlibpath_overrides_runpath" = yes ||
14278 test "$enable_shared" = no; then
14279 # Fast installation is not necessary
14280 enable_fast_install=needless
14281fi
14282
14283
14284
14285
14286
14287
14288
14289 fi # test -n "$compiler"
14290
14291 CC=$lt_save_CC
14292 LDCXX=$LD
14293 LD=$lt_save_LD
14294 GCC=$lt_save_GCC
14295 with_gnu_ld=$lt_save_with_gnu_ld
14296 lt_cv_path_LDCXX=$lt_cv_path_LD
14297 lt_cv_path_LD=$lt_save_path_LD
14298 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14299 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14300fi # test "$_lt_caught_CXX_error" != yes
14301
14302ac_ext=c
14303ac_cpp='$CPP $CPPFLAGS'
14304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14306ac_compiler_gnu=$ac_cv_c_compiler_gnu
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320 ac_config_commands="$ac_config_commands libtool"
14321
14322
14323
14324
14325# Only expand once:
14326
14327
14328
14329
14330
14331ac_config_headers="$ac_config_headers target-config.h"
14332
14333
14334# The cast to long int works around a bug in the HP C Compiler
14335# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14336# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14337# This bug is HP SR number 8606223364.
14338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14339$as_echo_n "checking size of int... " >&6; }
14340if test "${ac_cv_sizeof_int+set}" = set; then :
14341 $as_echo_n "(cached) " >&6
14342else
14343 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14344
14345else
14346 if test "$ac_cv_type_int" = yes; then
14347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14349{ as_fn_set_status 77
14350as_fn_error "cannot compute sizeof (int)
14351See \`config.log' for more details." "$LINENO" 5; }; }
14352 else
14353 ac_cv_sizeof_int=0
14354 fi
14355fi
14356
14357fi
14358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14359$as_echo "$ac_cv_sizeof_int" >&6; }
14360
14361
14362
14363cat >>confdefs.h <<_ACEOF
14364#define SIZEOF_INT $ac_cv_sizeof_int
14365_ACEOF
14366
14367
14368# The cast to long int works around a bug in the HP C Compiler
14369# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14370# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14371# This bug is HP SR number 8606223364.
14372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
14373$as_echo_n "checking size of void*... " >&6; }
14374if test "${ac_cv_sizeof_voidp+set}" = set; then :
14375 $as_echo_n "(cached) " >&6
14376else
14377 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
14378
14379else
14380 if test "$ac_cv_type_voidp" = yes; then
14381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14383{ as_fn_set_status 77
14384as_fn_error "cannot compute sizeof (void*)
14385See \`config.log' for more details." "$LINENO" 5; }; }
14386 else
14387 ac_cv_sizeof_voidp=0
14388 fi
14389fi
14390
14391fi
14392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
14393$as_echo "$ac_cv_sizeof_voidp" >&6; }
14394
14395
14396
14397cat >>confdefs.h <<_ACEOF
14398#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
14399_ACEOF
14400
14401
14402
14403# Must be last
14404cat >confcache <<\_ACEOF
14405# This file is a shell script that caches the results of configure
14406# tests run on this system so they can be shared between configure
14407# scripts and configure runs, see configure's option --config-cache.
14408# It is not useful on other systems. If it contains results you don't
14409# want to keep, you may remove or edit it.
14410#
14411# config.status only pays attention to the cache file if you give it
14412# the --recheck option to rerun configure.
14413#
14414# `ac_cv_env_foo' variables (set or unset) will be overridden when
14415# loading this file, other *unset* `ac_cv_foo' will be assigned the
14416# following values.
14417
14418_ACEOF
14419
14420# The following way of writing the cache mishandles newlines in values,
14421# but we know of no workaround that is simple, portable, and efficient.
14422# So, we kill variables containing newlines.
14423# Ultrix sh set writes to stderr and can't be redirected directly,
14424# and sets the high bit in the cache file unless we assign to the vars.
14425(
14426 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14427 eval ac_val=\$$ac_var
14428 case $ac_val in #(
14429 *${as_nl}*)
14430 case $ac_var in #(
14431 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14432$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14433 esac
14434 case $ac_var in #(
14435 _ | IFS | as_nl) ;; #(
14436 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14437 *) { eval $ac_var=; unset $ac_var;} ;;
14438 esac ;;
14439 esac
14440 done
14441
14442 (set) 2>&1 |
14443 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14444 *${as_nl}ac_space=\ *)
14445 # `set' does not quote correctly, so add quotes: double-quote
14446 # substitution turns \\\\ into \\, and sed turns \\ into \.
14447 sed -n \
14448 "s/'/'\\\\''/g;
14449 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14450 ;; #(
14451 *)
14452 # `set' quotes correctly as required by POSIX, so do not add quotes.
14453 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14454 ;;
14455 esac |
14456 sort
14457) |
14458 sed '
14459 /^ac_cv_env_/b end
14460 t clear
14461 :clear
14462 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14463 t end
14464 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14465 :end' >>confcache
14466if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14467 if test -w "$cache_file"; then
14468 test "x$cache_file" != "x/dev/null" &&
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14470$as_echo "$as_me: updating cache $cache_file" >&6;}
14471 cat confcache >$cache_file
14472 else
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14474$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14475 fi
14476fi
14477rm -f confcache
14478
14479test "x$prefix" = xNONE && prefix=$ac_default_prefix
14480# Let make expand exec_prefix.
14481test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14482
14483DEFS=-DHAVE_CONFIG_H
14484
14485ac_libobjs=
14486ac_ltlibobjs=
14487for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14488 # 1. Remove the extension, and $U if already installed.
14489 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14490 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14491 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14492 # will be set to the directory where LIBOBJS objects are built.
14493 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14494 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14495done
14496LIBOBJS=$ac_libobjs
14497
14498LTLIBOBJS=$ac_ltlibobjs
14499
14500
14501 if test -n "$EXEEXT"; then
14502 am__EXEEXT_TRUE=
14503 am__EXEEXT_FALSE='#'
14504else
14505 am__EXEEXT_TRUE='#'
14506 am__EXEEXT_FALSE=
14507fi
14508
14509if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14510 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14511Usually this means the macro was only invoked conditionally." "$LINENO" 5
14512fi
14513if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14514 as_fn_error "conditional \"AMDEP\" was never defined.
14515Usually this means the macro was only invoked conditionally." "$LINENO" 5
14516fi
14517if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14518 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14519Usually this means the macro was only invoked conditionally." "$LINENO" 5
14520fi
14521if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14522 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14523Usually this means the macro was only invoked conditionally." "$LINENO" 5
14524fi
14525if test -z "${LINUX_LINKER_SCRIPT_TRUE}" && test -z "${LINUX_LINKER_SCRIPT_FALSE}"; then
14526 as_fn_error "conditional \"LINUX_LINKER_SCRIPT\" was never defined.
14527Usually this means the macro was only invoked conditionally." "$LINENO" 5
14528fi
14529if test -z "${MAC_LINKER_SCRIPT_TRUE}" && test -z "${MAC_LINKER_SCRIPT_FALSE}"; then
14530 as_fn_error "conditional \"MAC_LINKER_SCRIPT\" was never defined.
14531Usually this means the macro was only invoked conditionally." "$LINENO" 5
14532fi
14533
14534: ${CONFIG_STATUS=./config.status}
14535ac_write_fail=0
14536ac_clean_files_save=$ac_clean_files
14537ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14538{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14539$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14540as_write_fail=0
14541cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14542#! $SHELL
14543# Generated by $as_me.
14544# Run this file to recreate the current configuration.
14545# Compiler output produced by configure, useful for debugging
14546# configure, is in config.log if it exists.
14547
14548debug=false
14549ac_cs_recheck=false
14550ac_cs_silent=false
14551
14552SHELL=\${CONFIG_SHELL-$SHELL}
14553export SHELL
14554_ASEOF
14555cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14556## -------------------- ##
14557## M4sh Initialization. ##
14558## -------------------- ##
14559
14560# Be more Bourne compatible
14561DUALCASE=1; export DUALCASE # for MKS sh
14562if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14563 emulate sh
14564 NULLCMD=:
14565 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14566 # is contrary to our usage. Disable this feature.
14567 alias -g '${1+"$@"}'='"$@"'
14568 setopt NO_GLOB_SUBST
14569else
14570 case `(set -o) 2>/dev/null` in #(
14571 *posix*) :
14572 set -o posix ;; #(
14573 *) :
14574 ;;
14575esac
14576fi
14577
14578
14579as_nl='
14580'
14581export as_nl
14582# Printing a long string crashes Solaris 7 /usr/bin/printf.
14583as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14584as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14585as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14586# Prefer a ksh shell builtin over an external printf program on Solaris,
14587# but without wasting forks for bash or zsh.
14588if test -z "$BASH_VERSION$ZSH_VERSION" \
14589 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14590 as_echo='print -r --'
14591 as_echo_n='print -rn --'
14592elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14593 as_echo='printf %s\n'
14594 as_echo_n='printf %s'
14595else
14596 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14597 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14598 as_echo_n='/usr/ucb/echo -n'
14599 else
14600 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14601 as_echo_n_body='eval
14602 arg=$1;
14603 case $arg in #(
14604 *"$as_nl"*)
14605 expr "X$arg" : "X\\(.*\\)$as_nl";
14606 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14607 esac;
14608 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14609 '
14610 export as_echo_n_body
14611 as_echo_n='sh -c $as_echo_n_body as_echo'
14612 fi
14613 export as_echo_body
14614 as_echo='sh -c $as_echo_body as_echo'
14615fi
14616
14617# The user is always right.
14618if test "${PATH_SEPARATOR+set}" != set; then
14619 PATH_SEPARATOR=:
14620 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14621 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14622 PATH_SEPARATOR=';'
14623 }
14624fi
14625
14626
14627# IFS
14628# We need space, tab and new line, in precisely that order. Quoting is
14629# there to prevent editors from complaining about space-tab.
14630# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14631# splitting by setting IFS to empty value.)
14632IFS=" "" $as_nl"
14633
14634# Find who we are. Look in the path if we contain no directory separator.
14635case $0 in #((
14636 *[\\/]* ) as_myself=$0 ;;
14637 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14638for as_dir in $PATH
14639do
14640 IFS=$as_save_IFS
14641 test -z "$as_dir" && as_dir=.
14642 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14643 done
14644IFS=$as_save_IFS
14645
14646 ;;
14647esac
14648# We did not find ourselves, most probably we were run as `sh COMMAND'
14649# in which case we are not to be found in the path.
14650if test "x$as_myself" = x; then
14651 as_myself=$0
14652fi
14653if test ! -f "$as_myself"; then
14654 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14655 exit 1
14656fi
14657
14658# Unset variables that we do not need and which cause bugs (e.g. in
14659# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14660# suppresses any "Segmentation fault" message there. '((' could
14661# trigger a bug in pdksh 5.2.14.
14662for as_var in BASH_ENV ENV MAIL MAILPATH
14663do eval test x\${$as_var+set} = xset \
14664 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14665done
14666PS1='$ '
14667PS2='> '
14668PS4='+ '
14669
14670# NLS nuisances.
14671LC_ALL=C
14672export LC_ALL
14673LANGUAGE=C
14674export LANGUAGE
14675
14676# CDPATH.
14677(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14678
14679
14680# as_fn_error ERROR [LINENO LOG_FD]
14681# ---------------------------------
14682# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14683# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14684# script with status $?, using 1 if that was 0.
14685as_fn_error ()
14686{
14687 as_status=$?; test $as_status -eq 0 && as_status=1
14688 if test "$3"; then
14689 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14690 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14691 fi
14692 $as_echo "$as_me: error: $1" >&2
14693 as_fn_exit $as_status
14694} # as_fn_error
14695
14696
14697# as_fn_set_status STATUS
14698# -----------------------
14699# Set $? to STATUS, without forking.
14700as_fn_set_status ()
14701{
14702 return $1
14703} # as_fn_set_status
14704
14705# as_fn_exit STATUS
14706# -----------------
14707# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14708as_fn_exit ()
14709{
14710 set +e
14711 as_fn_set_status $1
14712 exit $1
14713} # as_fn_exit
14714
14715# as_fn_unset VAR
14716# ---------------
14717# Portably unset VAR.
14718as_fn_unset ()
14719{
14720 { eval $1=; unset $1;}
14721}
14722as_unset=as_fn_unset
14723# as_fn_append VAR VALUE
14724# ----------------------
14725# Append the text in VALUE to the end of the definition contained in VAR. Take
14726# advantage of any shell optimizations that allow amortized linear growth over
14727# repeated appends, instead of the typical quadratic growth present in naive
14728# implementations.
14729if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14730 eval 'as_fn_append ()
14731 {
14732 eval $1+=\$2
14733 }'
14734else
14735 as_fn_append ()
14736 {
14737 eval $1=\$$1\$2
14738 }
14739fi # as_fn_append
14740
14741# as_fn_arith ARG...
14742# ------------------
14743# Perform arithmetic evaluation on the ARGs, and store the result in the
14744# global $as_val. Take advantage of shells that can avoid forks. The arguments
14745# must be portable across $(()) and expr.
14746if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14747 eval 'as_fn_arith ()
14748 {
14749 as_val=$(( $* ))
14750 }'
14751else
14752 as_fn_arith ()
14753 {
14754 as_val=`expr "$@" || test $? -eq 1`
14755 }
14756fi # as_fn_arith
14757
14758
14759if expr a : '\(a\)' >/dev/null 2>&1 &&
14760 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14761 as_expr=expr
14762else
14763 as_expr=false
14764fi
14765
14766if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14767 as_basename=basename
14768else
14769 as_basename=false
14770fi
14771
14772if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14773 as_dirname=dirname
14774else
14775 as_dirname=false
14776fi
14777
14778as_me=`$as_basename -- "$0" ||
14779$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14780 X"$0" : 'X\(//\)$' \| \
14781 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14782$as_echo X/"$0" |
14783 sed '/^.*\/\([^/][^/]*\)\/*$/{
14784 s//\1/
14785 q
14786 }
14787 /^X\/\(\/\/\)$/{
14788 s//\1/
14789 q
14790 }
14791 /^X\/\(\/\).*/{
14792 s//\1/
14793 q
14794 }
14795 s/.*/./; q'`
14796
14797# Avoid depending upon Character Ranges.
14798as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14799as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14800as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14801as_cr_digits='0123456789'
14802as_cr_alnum=$as_cr_Letters$as_cr_digits
14803
14804ECHO_C= ECHO_N= ECHO_T=
14805case `echo -n x` in #(((((
14806-n*)
14807 case `echo 'xy\c'` in
14808 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14809 xy) ECHO_C='\c';;
14810 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14811 ECHO_T=' ';;
14812 esac;;
14813*)
14814 ECHO_N='-n';;
14815esac
14816
14817rm -f conf$$ conf$$.exe conf$$.file
14818if test -d conf$$.dir; then
14819 rm -f conf$$.dir/conf$$.file
14820else
14821 rm -f conf$$.dir
14822 mkdir conf$$.dir 2>/dev/null
14823fi
14824if (echo >conf$$.file) 2>/dev/null; then
14825 if ln -s conf$$.file conf$$ 2>/dev/null; then
14826 as_ln_s='ln -s'
14827 # ... but there are two gotchas:
14828 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14829 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14830 # In both cases, we have to default to `cp -p'.
14831 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14832 as_ln_s='cp -p'
14833 elif ln conf$$.file conf$$ 2>/dev/null; then
14834 as_ln_s=ln
14835 else
14836 as_ln_s='cp -p'
14837 fi
14838else
14839 as_ln_s='cp -p'
14840fi
14841rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14842rmdir conf$$.dir 2>/dev/null
14843
14844
14845# as_fn_mkdir_p
14846# -------------
14847# Create "$as_dir" as a directory, including parents if necessary.
14848as_fn_mkdir_p ()
14849{
14850
14851 case $as_dir in #(
14852 -*) as_dir=./$as_dir;;
14853 esac
14854 test -d "$as_dir" || eval $as_mkdir_p || {
14855 as_dirs=
14856 while :; do
14857 case $as_dir in #(
14858 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14859 *) as_qdir=$as_dir;;
14860 esac
14861 as_dirs="'$as_qdir' $as_dirs"
14862 as_dir=`$as_dirname -- "$as_dir" ||
14863$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14864 X"$as_dir" : 'X\(//\)[^/]' \| \
14865 X"$as_dir" : 'X\(//\)$' \| \
14866 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14867$as_echo X"$as_dir" |
14868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14869 s//\1/
14870 q
14871 }
14872 /^X\(\/\/\)[^/].*/{
14873 s//\1/
14874 q
14875 }
14876 /^X\(\/\/\)$/{
14877 s//\1/
14878 q
14879 }
14880 /^X\(\/\).*/{
14881 s//\1/
14882 q
14883 }
14884 s/.*/./; q'`
14885 test -d "$as_dir" && break
14886 done
14887 test -z "$as_dirs" || eval "mkdir $as_dirs"
14888 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14889
14890
14891} # as_fn_mkdir_p
14892if mkdir -p . 2>/dev/null; then
14893 as_mkdir_p='mkdir -p "$as_dir"'
14894else
14895 test -d ./-p && rmdir ./-p
14896 as_mkdir_p=false
14897fi
14898
14899if test -x / >/dev/null 2>&1; then
14900 as_test_x='test -x'
14901else
14902 if ls -dL / >/dev/null 2>&1; then
14903 as_ls_L_option=L
14904 else
14905 as_ls_L_option=
14906 fi
14907 as_test_x='
14908 eval sh -c '\''
14909 if test -d "$1"; then
14910 test -d "$1/.";
14911 else
14912 case $1 in #(
14913 -*)set "./$1";;
14914 esac;
14915 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14916 ???[sx]*):;;*)false;;esac;fi
14917 '\'' sh
14918 '
14919fi
14920as_executable_p=$as_test_x
14921
14922# Sed expression to map a string onto a valid CPP name.
14923as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14924
14925# Sed expression to map a string onto a valid variable name.
14926as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14927
14928
14929exec 6>&1
14930## ----------------------------------- ##
14931## Main body of $CONFIG_STATUS script. ##
14932## ----------------------------------- ##
14933_ASEOF
14934test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14935
14936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14937# Save the log message, to keep $0 and so on meaningful, and to
14938# report actual input values of CONFIG_FILES etc. instead of their
14939# values after options handling.
14940ac_log="
14941This file was extended by phsa HSAIL runtime library $as_me 1.0, which was
14942generated by GNU Autoconf 2.64. Invocation command line was
14943
14944 CONFIG_FILES = $CONFIG_FILES
14945 CONFIG_HEADERS = $CONFIG_HEADERS
14946 CONFIG_LINKS = $CONFIG_LINKS
14947 CONFIG_COMMANDS = $CONFIG_COMMANDS
14948 $ $0 $@
14949
14950on `(hostname || uname -n) 2>/dev/null | sed 1q`
14951"
14952
14953_ACEOF
14954
14955case $ac_config_files in *"
14956"*) set x $ac_config_files; shift; ac_config_files=$*;;
14957esac
14958
14959case $ac_config_headers in *"
14960"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14961esac
14962
14963
14964cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14965# Files that config.status was made for.
14966config_files="$ac_config_files"
14967config_headers="$ac_config_headers"
14968config_commands="$ac_config_commands"
14969
14970_ACEOF
14971
14972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14973ac_cs_usage="\
14974\`$as_me' instantiates files and other configuration actions
14975from templates according to the current configuration. Unless the files
14976and actions are specified as TAGs, all are instantiated by default.
14977
14978Usage: $0 [OPTION]... [TAG]...
14979
14980 -h, --help print this help, then exit
14981 -V, --version print version number and configuration settings, then exit
14982 -q, --quiet, --silent
14983 do not print progress messages
14984 -d, --debug don't remove temporary files
14985 --recheck update $as_me by reconfiguring in the same conditions
14986 --file=FILE[:TEMPLATE]
14987 instantiate the configuration file FILE
14988 --header=FILE[:TEMPLATE]
14989 instantiate the configuration header FILE
14990
14991Configuration files:
14992$config_files
14993
14994Configuration headers:
14995$config_headers
14996
14997Configuration commands:
14998$config_commands
14999
15000Report bugs to <pekka.jaaskelainen@parmance.com>."
15001
15002_ACEOF
15003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15004ac_cs_version="\\
15005phsa HSAIL runtime library config.status 1.0
15006configured by $0, generated by GNU Autoconf 2.64,
15007 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15008
15009Copyright (C) 2009 Free Software Foundation, Inc.
15010This config.status script is free software; the Free Software Foundation
15011gives unlimited permission to copy, distribute and modify it."
15012
15013ac_pwd='$ac_pwd'
15014srcdir='$srcdir'
15015INSTALL='$INSTALL'
15016MKDIR_P='$MKDIR_P'
15017AWK='$AWK'
15018test -n "\$AWK" || AWK=awk
15019_ACEOF
15020
15021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15022# The default lists apply if the user does not specify any file.
15023ac_need_defaults=:
15024while test $# != 0
15025do
15026 case $1 in
15027 --*=*)
15028 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15029 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15030 ac_shift=:
15031 ;;
15032 *)
15033 ac_option=$1
15034 ac_optarg=$2
15035 ac_shift=shift
15036 ;;
15037 esac
15038
15039 case $ac_option in
15040 # Handling of the options.
15041 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15042 ac_cs_recheck=: ;;
15043 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15044 $as_echo "$ac_cs_version"; exit ;;
15045 --debug | --debu | --deb | --de | --d | -d )
15046 debug=: ;;
15047 --file | --fil | --fi | --f )
15048 $ac_shift
15049 case $ac_optarg in
15050 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15051 esac
15052 as_fn_append CONFIG_FILES " '$ac_optarg'"
15053 ac_need_defaults=false;;
15054 --header | --heade | --head | --hea )
15055 $ac_shift
15056 case $ac_optarg in
15057 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15058 esac
15059 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15060 ac_need_defaults=false;;
15061 --he | --h)
15062 # Conflict between --help and --header
15063 as_fn_error "ambiguous option: \`$1'
15064Try \`$0 --help' for more information.";;
15065 --help | --hel | -h )
15066 $as_echo "$ac_cs_usage"; exit ;;
15067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15068 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15069 ac_cs_silent=: ;;
15070
15071 # This is an error.
15072 -*) as_fn_error "unrecognized option: \`$1'
15073Try \`$0 --help' for more information." ;;
15074
15075 *) as_fn_append ac_config_targets " $1"
15076 ac_need_defaults=false ;;
15077
15078 esac
15079 shift
15080done
15081
15082ac_configure_extra_args=
15083
15084if $ac_cs_silent; then
15085 exec 6>/dev/null
15086 ac_configure_extra_args="$ac_configure_extra_args --silent"
15087fi
15088
15089_ACEOF
15090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15091if \$ac_cs_recheck; then
15092 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15093 shift
15094 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15095 CONFIG_SHELL='$SHELL'
15096 export CONFIG_SHELL
15097 exec "\$@"
15098fi
15099
15100_ACEOF
15101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15102exec 5>>config.log
15103{
15104 echo
15105 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15106## Running $as_me. ##
15107_ASBOX
15108 $as_echo "$ac_log"
15109} >&5
15110
15111_ACEOF
15112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15113#
15114# INIT-COMMANDS
15115#
15116AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15117
15118
15119# The HP-UX ksh and POSIX shell print the target directory to stdout
15120# if CDPATH is set.
15121(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15122
15123sed_quote_subst='$sed_quote_subst'
15124double_quote_subst='$double_quote_subst'
15125delay_variable_subst='$delay_variable_subst'
15126macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15127macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15128enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15129enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15130pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15131enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15132SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15133ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15134host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15135host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15136host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15137build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15138build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15139build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15140SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15141Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15142GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15143EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15144FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15145LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15146NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15147LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15148max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15149ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15150exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15151lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15152lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15153lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15154reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15155reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15156OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15157deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15158file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15159AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15160AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15161STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15162RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15163old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15164old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15165old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15166lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15167CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15168CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15169compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15170GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15171lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15172lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15173lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15174lt_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"`'
15175objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15176MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15177lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15178lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15179lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15180lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15181lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15182need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15183DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15184NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15185LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15186OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15187OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15188libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15189shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15190extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15191archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15192enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15193export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15194whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15195compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15196old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15197old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15198archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15199archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15200module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15201module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15202with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15203allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15204no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15205hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15206hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15207hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15208hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15209hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15210hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15211hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15212hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15213inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15214link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15215fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15216always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15217export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15218exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15219include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15220prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15221file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15222variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15223need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15224need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15225version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15226runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15227shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15228shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15229libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15230library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15231soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15232install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15233postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15234postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15235finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15236finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15237hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15238sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15239sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15240hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15241enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15242enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15243enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15244old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15245striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15246compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15247predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15248postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15249predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15250postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15251compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15252LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15253reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15254reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15255old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15256compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15257GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15258lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15259lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15260lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15261lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15262lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15263archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15264enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15265export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15266whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15267compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15268old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15269old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15270archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15271archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15272module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15273module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15274with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15275allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15276no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15277hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15278hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15279hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15280hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15281hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15282hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15283hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15284hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15285inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15286link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15287fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15288always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15289export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15290exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15291include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15292prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15293file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15294hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15295compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15296predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15297postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15298predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15299postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15300compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15301
15302LTCC='$LTCC'
15303LTCFLAGS='$LTCFLAGS'
15304compiler='$compiler_DEFAULT'
15305
15306# A function that is used when there is no print builtin or printf.
15307func_fallback_echo ()
15308{
15309 eval 'cat <<_LTECHO_EOF
15310\$1
15311_LTECHO_EOF'
15312}
15313
15314# Quote evaled strings.
15315for var in SHELL \
15316ECHO \
15317SED \
15318GREP \
15319EGREP \
15320FGREP \
15321LD \
15322NM \
15323LN_S \
15324lt_SP2NL \
15325lt_NL2SP \
15326reload_flag \
15327OBJDUMP \
15328deplibs_check_method \
15329file_magic_cmd \
15330AR \
15331AR_FLAGS \
15332STRIP \
15333RANLIB \
15334CC \
15335CFLAGS \
15336compiler \
15337lt_cv_sys_global_symbol_pipe \
15338lt_cv_sys_global_symbol_to_cdecl \
15339lt_cv_sys_global_symbol_to_c_name_address \
15340lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15341lt_prog_compiler_no_builtin_flag \
15342lt_prog_compiler_wl \
15343lt_prog_compiler_pic \
15344lt_prog_compiler_static \
15345lt_cv_prog_compiler_c_o \
15346need_locks \
15347DSYMUTIL \
15348NMEDIT \
15349LIPO \
15350OTOOL \
15351OTOOL64 \
15352shrext_cmds \
15353export_dynamic_flag_spec \
15354whole_archive_flag_spec \
15355compiler_needs_object \
15356with_gnu_ld \
15357allow_undefined_flag \
15358no_undefined_flag \
15359hardcode_libdir_flag_spec \
15360hardcode_libdir_flag_spec_ld \
15361hardcode_libdir_separator \
15362fix_srcfile_path \
15363exclude_expsyms \
15364include_expsyms \
15365file_list_spec \
15366variables_saved_for_relink \
15367libname_spec \
15368library_names_spec \
15369soname_spec \
15370install_override_mode \
15371finish_eval \
15372old_striplib \
15373striplib \
15374compiler_lib_search_dirs \
15375predep_objects \
15376postdep_objects \
15377predeps \
15378postdeps \
15379compiler_lib_search_path \
15380LD_CXX \
15381reload_flag_CXX \
15382compiler_CXX \
15383lt_prog_compiler_no_builtin_flag_CXX \
15384lt_prog_compiler_wl_CXX \
15385lt_prog_compiler_pic_CXX \
15386lt_prog_compiler_static_CXX \
15387lt_cv_prog_compiler_c_o_CXX \
15388export_dynamic_flag_spec_CXX \
15389whole_archive_flag_spec_CXX \
15390compiler_needs_object_CXX \
15391with_gnu_ld_CXX \
15392allow_undefined_flag_CXX \
15393no_undefined_flag_CXX \
15394hardcode_libdir_flag_spec_CXX \
15395hardcode_libdir_flag_spec_ld_CXX \
15396hardcode_libdir_separator_CXX \
15397fix_srcfile_path_CXX \
15398exclude_expsyms_CXX \
15399include_expsyms_CXX \
15400file_list_spec_CXX \
15401compiler_lib_search_dirs_CXX \
15402predep_objects_CXX \
15403postdep_objects_CXX \
15404predeps_CXX \
15405postdeps_CXX \
15406compiler_lib_search_path_CXX; do
15407 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15408 *[\\\\\\\`\\"\\\$]*)
15409 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15410 ;;
15411 *)
15412 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15413 ;;
15414 esac
15415done
15416
15417# Double-quote double-evaled strings.
15418for var in reload_cmds \
15419old_postinstall_cmds \
15420old_postuninstall_cmds \
15421old_archive_cmds \
15422extract_expsyms_cmds \
15423old_archive_from_new_cmds \
15424old_archive_from_expsyms_cmds \
15425archive_cmds \
15426archive_expsym_cmds \
15427module_cmds \
15428module_expsym_cmds \
15429export_symbols_cmds \
15430prelink_cmds \
15431postinstall_cmds \
15432postuninstall_cmds \
15433finish_cmds \
15434sys_lib_search_path_spec \
15435sys_lib_dlsearch_path_spec \
15436reload_cmds_CXX \
15437old_archive_cmds_CXX \
15438old_archive_from_new_cmds_CXX \
15439old_archive_from_expsyms_cmds_CXX \
15440archive_cmds_CXX \
15441archive_expsym_cmds_CXX \
15442module_cmds_CXX \
15443module_expsym_cmds_CXX \
15444export_symbols_cmds_CXX \
15445prelink_cmds_CXX; do
15446 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15447 *[\\\\\\\`\\"\\\$]*)
15448 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15449 ;;
15450 *)
15451 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15452 ;;
15453 esac
15454done
15455
15456ac_aux_dir='$ac_aux_dir'
15457xsi_shell='$xsi_shell'
15458lt_shell_append='$lt_shell_append'
15459
15460# See if we are running on zsh, and set the options which allow our
15461# commands through without removal of \ escapes INIT.
15462if test -n "\${ZSH_VERSION+set}" ; then
15463 setopt NO_GLOB_SUBST
15464fi
15465
15466
15467 PACKAGE='$PACKAGE'
15468 VERSION='$VERSION'
15469 TIMESTAMP='$TIMESTAMP'
15470 RM='$RM'
15471 ofile='$ofile'
15472
15473
15474
15475
15476
15477
15478_ACEOF
15479
15480cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15481
15482# Handling of arguments.
15483for ac_config_target in $ac_config_targets
15484do
15485 case $ac_config_target in
15486 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15487 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15488 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15489 "target-config.h") CONFIG_HEADERS="$CONFIG_HEADERS target-config.h" ;;
15490
15491 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15492 esac
15493done
15494
15495
15496# If the user did not use the arguments to specify the items to instantiate,
15497# then the envvar interface is used. Set only those that are not.
15498# We use the long form for the default assignment because of an extremely
15499# bizarre bug on SunOS 4.1.3.
15500if $ac_need_defaults; then
15501 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15502 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15503 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15504fi
15505
15506# Have a temporary directory for convenience. Make it in the build tree
15507# simply because there is no reason against having it here, and in addition,
15508# creating and moving files from /tmp can sometimes cause problems.
15509# Hook for its removal unless debugging.
15510# Note that there is a small window in which the directory will not be cleaned:
15511# after its creation but before its name has been assigned to `$tmp'.
15512$debug ||
15513{
15514 tmp=
15515 trap 'exit_status=$?
15516 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15517' 0
15518 trap 'as_fn_exit 1' 1 2 13 15
15519}
15520# Create a (secure) tmp directory for tmp files.
15521
15522{
15523 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15524 test -n "$tmp" && test -d "$tmp"
15525} ||
15526{
15527 tmp=./conf$$-$RANDOM
15528 (umask 077 && mkdir "$tmp")
15529} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15530
15531# Set up the scripts for CONFIG_FILES section.
15532# No need to generate them if there are no CONFIG_FILES.
15533# This happens for instance with `./config.status config.h'.
15534if test -n "$CONFIG_FILES"; then
15535
15536
15537ac_cr=`echo X | tr X '\015'`
15538# On cygwin, bash can eat \r inside `` if the user requested igncr.
15539# But we know of no other shell where ac_cr would be empty at this
15540# point, so we can use a bashism as a fallback.
15541if test "x$ac_cr" = x; then
15542 eval ac_cr=\$\'\\r\'
15543fi
15544ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15545if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15546 ac_cs_awk_cr='\r'
15547else
15548 ac_cs_awk_cr=$ac_cr
15549fi
15550
15551echo 'BEGIN {' >"$tmp/subs1.awk" &&
15552_ACEOF
15553
15554
15555{
15556 echo "cat >conf$$subs.awk <<_ACEOF" &&
15557 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15558 echo "_ACEOF"
15559} >conf$$subs.sh ||
15560 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15561ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15562ac_delim='%!_!# '
15563for ac_last_try in false false false false false :; do
15564 . ./conf$$subs.sh ||
15565 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15566
15567 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15568 if test $ac_delim_n = $ac_delim_num; then
15569 break
15570 elif $ac_last_try; then
15571 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15572 else
15573 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15574 fi
15575done
15576rm -f conf$$subs.sh
15577
15578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15579cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15580_ACEOF
15581sed -n '
15582h
15583s/^/S["/; s/!.*/"]=/
15584p
15585g
15586s/^[^!]*!//
15587:repl
15588t repl
15589s/'"$ac_delim"'$//
15590t delim
15591:nl
15592h
15593s/\(.\{148\}\).*/\1/
15594t more1
15595s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15596p
15597n
15598b repl
15599:more1
15600s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15601p
15602g
15603s/.\{148\}//
15604t nl
15605:delim
15606h
15607s/\(.\{148\}\).*/\1/
15608t more2
15609s/["\\]/\\&/g; s/^/"/; s/$/"/
15610p
15611b
15612:more2
15613s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15614p
15615g
15616s/.\{148\}//
15617t delim
15618' <conf$$subs.awk | sed '
15619/^[^""]/{
15620 N
15621 s/\n//
15622}
15623' >>$CONFIG_STATUS || ac_write_fail=1
15624rm -f conf$$subs.awk
15625cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15626_ACAWK
15627cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15628 for (key in S) S_is_set[key] = 1
15629 FS = "\a"
15630
15631}
15632{
15633 line = $ 0
15634 nfields = split(line, field, "@")
15635 substed = 0
15636 len = length(field[1])
15637 for (i = 2; i < nfields; i++) {
15638 key = field[i]
15639 keylen = length(key)
15640 if (S_is_set[key]) {
15641 value = S[key]
15642 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15643 len += length(value) + length(field[++i])
15644 substed = 1
15645 } else
15646 len += 1 + keylen
15647 }
15648
15649 print line
15650}
15651
15652_ACAWK
15653_ACEOF
15654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15655if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15656 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15657else
15658 cat
15659fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15660 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15661_ACEOF
15662
15663# VPATH may cause trouble with some makes, so we remove $(srcdir),
15664# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15665# trailing colons and then remove the whole line if VPATH becomes empty
15666# (actually we leave an empty line to preserve line numbers).
15667if test "x$srcdir" = x.; then
15668 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15669s/:*\$(srcdir):*/:/
15670s/:*\${srcdir}:*/:/
15671s/:*@srcdir@:*/:/
15672s/^\([^=]*=[ ]*\):*/\1/
15673s/:*$//
15674s/^[^=]*=[ ]*$//
15675}'
15676fi
15677
15678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15679fi # test -n "$CONFIG_FILES"
15680
15681# Set up the scripts for CONFIG_HEADERS section.
15682# No need to generate them if there are no CONFIG_HEADERS.
15683# This happens for instance with `./config.status Makefile'.
15684if test -n "$CONFIG_HEADERS"; then
15685cat >"$tmp/defines.awk" <<\_ACAWK ||
15686BEGIN {
15687_ACEOF
15688
15689# Transform confdefs.h into an awk script `defines.awk', embedded as
15690# here-document in config.status, that substitutes the proper values into
15691# config.h.in to produce config.h.
15692
15693# Create a delimiter string that does not exist in confdefs.h, to ease
15694# handling of long lines.
15695ac_delim='%!_!# '
15696for ac_last_try in false false :; do
15697 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15698 if test -z "$ac_t"; then
15699 break
15700 elif $ac_last_try; then
15701 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15702 else
15703 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15704 fi
15705done
15706
15707# For the awk script, D is an array of macro values keyed by name,
15708# likewise P contains macro parameters if any. Preserve backslash
15709# newline sequences.
15710
15711ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15712sed -n '
15713s/.\{148\}/&'"$ac_delim"'/g
15714t rset
15715:rset
15716s/^[ ]*#[ ]*define[ ][ ]*/ /
15717t def
15718d
15719:def
15720s/\\$//
15721t bsnl
15722s/["\\]/\\&/g
15723s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15724D["\1"]=" \3"/p
15725s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15726d
15727:bsnl
15728s/["\\]/\\&/g
15729s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15730D["\1"]=" \3\\\\\\n"\\/p
15731t cont
15732s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15733t cont
15734d
15735:cont
15736n
15737s/.\{148\}/&'"$ac_delim"'/g
15738t clear
15739:clear
15740s/\\$//
15741t bsnlc
15742s/["\\]/\\&/g; s/^/"/; s/$/"/p
15743d
15744:bsnlc
15745s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15746b cont
15747' <confdefs.h | sed '
15748s/'"$ac_delim"'/"\\\
15749"/g' >>$CONFIG_STATUS || ac_write_fail=1
15750
15751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15752 for (key in D) D_is_set[key] = 1
15753 FS = "\a"
15754}
15755/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15756 line = \$ 0
15757 split(line, arg, " ")
15758 if (arg[1] == "#") {
15759 defundef = arg[2]
15760 mac1 = arg[3]
15761 } else {
15762 defundef = substr(arg[1], 2)
15763 mac1 = arg[2]
15764 }
15765 split(mac1, mac2, "(") #)
15766 macro = mac2[1]
15767 prefix = substr(line, 1, index(line, defundef) - 1)
15768 if (D_is_set[macro]) {
15769 # Preserve the white space surrounding the "#".
15770 print prefix "define", macro P[macro] D[macro]
15771 next
15772 } else {
15773 # Replace #undef with comments. This is necessary, for example,
15774 # in the case of _POSIX_SOURCE, which is predefined and required
15775 # on some systems where configure will not decide to define it.
15776 if (defundef == "undef") {
15777 print "/*", prefix defundef, macro, "*/"
15778 next
15779 }
15780 }
15781}
15782{ print }
15783_ACAWK
15784_ACEOF
15785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15786 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15787fi # test -n "$CONFIG_HEADERS"
15788
15789
15790eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15791shift
15792for ac_tag
15793do
15794 case $ac_tag in
15795 :[FHLC]) ac_mode=$ac_tag; continue;;
15796 esac
15797 case $ac_mode$ac_tag in
15798 :[FHL]*:*);;
15799 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15800 :[FH]-) ac_tag=-:-;;
15801 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15802 esac
15803 ac_save_IFS=$IFS
15804 IFS=:
15805 set x $ac_tag
15806 IFS=$ac_save_IFS
15807 shift
15808 ac_file=$1
15809 shift
15810
15811 case $ac_mode in
15812 :L) ac_source=$1;;
15813 :[FH])
15814 ac_file_inputs=
15815 for ac_f
15816 do
15817 case $ac_f in
15818 -) ac_f="$tmp/stdin";;
15819 *) # Look for the file first in the build tree, then in the source tree
15820 # (if the path is not absolute). The absolute path cannot be DOS-style,
15821 # because $ac_f cannot contain `:'.
15822 test -f "$ac_f" ||
15823 case $ac_f in
15824 [\\/$]*) false;;
15825 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15826 esac ||
15827 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15828 esac
15829 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15830 as_fn_append ac_file_inputs " '$ac_f'"
15831 done
15832
15833 # Let's still pretend it is `configure' which instantiates (i.e., don't
15834 # use $as_me), people would be surprised to read:
15835 # /* config.h. Generated by config.status. */
15836 configure_input='Generated from '`
15837 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15838 `' by configure.'
15839 if test x"$ac_file" != x-; then
15840 configure_input="$ac_file. $configure_input"
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15842$as_echo "$as_me: creating $ac_file" >&6;}
15843 fi
15844 # Neutralize special characters interpreted by sed in replacement strings.
15845 case $configure_input in #(
15846 *\&* | *\|* | *\\* )
15847 ac_sed_conf_input=`$as_echo "$configure_input" |
15848 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15849 *) ac_sed_conf_input=$configure_input;;
15850 esac
15851
15852 case $ac_tag in
15853 *:-:* | *:-) cat >"$tmp/stdin" \
15854 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15855 esac
15856 ;;
15857 esac
15858
15859 ac_dir=`$as_dirname -- "$ac_file" ||
15860$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15861 X"$ac_file" : 'X\(//\)[^/]' \| \
15862 X"$ac_file" : 'X\(//\)$' \| \
15863 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15864$as_echo X"$ac_file" |
15865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15866 s//\1/
15867 q
15868 }
15869 /^X\(\/\/\)[^/].*/{
15870 s//\1/
15871 q
15872 }
15873 /^X\(\/\/\)$/{
15874 s//\1/
15875 q
15876 }
15877 /^X\(\/\).*/{
15878 s//\1/
15879 q
15880 }
15881 s/.*/./; q'`
15882 as_dir="$ac_dir"; as_fn_mkdir_p
15883 ac_builddir=.
15884
15885case "$ac_dir" in
15886.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15887*)
15888 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15889 # A ".." for each directory in $ac_dir_suffix.
15890 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15891 case $ac_top_builddir_sub in
15892 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15893 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15894 esac ;;
15895esac
15896ac_abs_top_builddir=$ac_pwd
15897ac_abs_builddir=$ac_pwd$ac_dir_suffix
15898# for backward compatibility:
15899ac_top_builddir=$ac_top_build_prefix
15900
15901case $srcdir in
15902 .) # We are building in place.
15903 ac_srcdir=.
15904 ac_top_srcdir=$ac_top_builddir_sub
15905 ac_abs_top_srcdir=$ac_pwd ;;
15906 [\\/]* | ?:[\\/]* ) # Absolute name.
15907 ac_srcdir=$srcdir$ac_dir_suffix;
15908 ac_top_srcdir=$srcdir
15909 ac_abs_top_srcdir=$srcdir ;;
15910 *) # Relative name.
15911 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15912 ac_top_srcdir=$ac_top_build_prefix$srcdir
15913 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15914esac
15915ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15916
15917
15918 case $ac_mode in
15919 :F)
15920 #
15921 # CONFIG_FILE
15922 #
15923
15924 case $INSTALL in
15925 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15926 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15927 esac
15928 ac_MKDIR_P=$MKDIR_P
15929 case $MKDIR_P in
15930 [\\/$]* | ?:[\\/]* ) ;;
15931 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15932 esac
15933_ACEOF
15934
15935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15936# If the template does not know about datarootdir, expand it.
15937# FIXME: This hack should be removed a few years after 2.60.
15938ac_datarootdir_hack=; ac_datarootdir_seen=
15939ac_sed_dataroot='
15940/datarootdir/ {
15941 p
15942 q
15943}
15944/@datadir@/p
15945/@docdir@/p
15946/@infodir@/p
15947/@localedir@/p
15948/@mandir@/p'
15949case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15950*datarootdir*) ac_datarootdir_seen=yes;;
15951*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15953$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15954_ACEOF
15955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15956 ac_datarootdir_hack='
15957 s&@datadir@&$datadir&g
15958 s&@docdir@&$docdir&g
15959 s&@infodir@&$infodir&g
15960 s&@localedir@&$localedir&g
15961 s&@mandir@&$mandir&g
15962 s&\\\${datarootdir}&$datarootdir&g' ;;
15963esac
15964_ACEOF
15965
15966# Neutralize VPATH when `$srcdir' = `.'.
15967# Shell code in configure.ac might set extrasub.
15968# FIXME: do we really want to maintain this feature?
15969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15970ac_sed_extra="$ac_vpsub
15971$extrasub
15972_ACEOF
15973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15974:t
15975/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15976s|@configure_input@|$ac_sed_conf_input|;t t
15977s&@top_builddir@&$ac_top_builddir_sub&;t t
15978s&@top_build_prefix@&$ac_top_build_prefix&;t t
15979s&@srcdir@&$ac_srcdir&;t t
15980s&@abs_srcdir@&$ac_abs_srcdir&;t t
15981s&@top_srcdir@&$ac_top_srcdir&;t t
15982s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15983s&@builddir@&$ac_builddir&;t t
15984s&@abs_builddir@&$ac_abs_builddir&;t t
15985s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15986s&@INSTALL@&$ac_INSTALL&;t t
15987s&@MKDIR_P@&$ac_MKDIR_P&;t t
15988$ac_datarootdir_hack
15989"
15990eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15991 || as_fn_error "could not create $ac_file" "$LINENO" 5
15992
15993test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15994 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15995 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15997which seems to be undefined. Please make sure it is defined." >&5
15998$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15999which seems to be undefined. Please make sure it is defined." >&2;}
16000
16001 rm -f "$tmp/stdin"
16002 case $ac_file in
16003 -) cat "$tmp/out" && rm -f "$tmp/out";;
16004 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16005 esac \
16006 || as_fn_error "could not create $ac_file" "$LINENO" 5
16007 ;;
16008 :H)
16009 #
16010 # CONFIG_HEADER
16011 #
16012 if test x"$ac_file" != x-; then
16013 {
16014 $as_echo "/* $configure_input */" \
16015 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16016 } >"$tmp/config.h" \
16017 || as_fn_error "could not create $ac_file" "$LINENO" 5
16018 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16020$as_echo "$as_me: $ac_file is unchanged" >&6;}
16021 else
16022 rm -f "$ac_file"
16023 mv "$tmp/config.h" "$ac_file" \
16024 || as_fn_error "could not create $ac_file" "$LINENO" 5
16025 fi
16026 else
16027 $as_echo "/* $configure_input */" \
16028 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16029 || as_fn_error "could not create -" "$LINENO" 5
16030 fi
16031# Compute "$ac_file"'s index in $config_headers.
16032_am_arg="$ac_file"
16033_am_stamp_count=1
16034for _am_header in $config_headers :; do
16035 case $_am_header in
16036 $_am_arg | $_am_arg:* )
16037 break ;;
16038 * )
16039 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16040 esac
16041done
16042echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16043$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16044 X"$_am_arg" : 'X\(//\)[^/]' \| \
16045 X"$_am_arg" : 'X\(//\)$' \| \
16046 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16047$as_echo X"$_am_arg" |
16048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16049 s//\1/
16050 q
16051 }
16052 /^X\(\/\/\)[^/].*/{
16053 s//\1/
16054 q
16055 }
16056 /^X\(\/\/\)$/{
16057 s//\1/
16058 q
16059 }
16060 /^X\(\/\).*/{
16061 s//\1/
16062 q
16063 }
16064 s/.*/./; q'`/stamp-h$_am_stamp_count
16065 ;;
16066
16067 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16068$as_echo "$as_me: executing $ac_file commands" >&6;}
16069 ;;
16070 esac
16071
16072
16073 case $ac_file$ac_mode in
16074 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16075 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16076 # are listed without --file. Let's play safe and only enable the eval
16077 # if we detect the quoting.
16078 case $CONFIG_FILES in
16079 *\'*) eval set x "$CONFIG_FILES" ;;
16080 *) set x $CONFIG_FILES ;;
16081 esac
16082 shift
16083 for mf
16084 do
16085 # Strip MF so we end up with the name of the file.
16086 mf=`echo "$mf" | sed -e 's/:.*$//'`
16087 # Check whether this is an Automake generated Makefile or not.
16088 # We used to match only the files named `Makefile.in', but
16089 # some people rename them; so instead we look at the file content.
16090 # Grep'ing the first line is not enough: some people post-process
16091 # each Makefile.in and add a new line on top of each file to say so.
16092 # Grep'ing the whole file is not good either: AIX grep has a line
16093 # limit of 2048, but all sed's we know have understand at least 4000.
16094 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16095 dirpart=`$as_dirname -- "$mf" ||
16096$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16097 X"$mf" : 'X\(//\)[^/]' \| \
16098 X"$mf" : 'X\(//\)$' \| \
16099 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16100$as_echo X"$mf" |
16101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16102 s//\1/
16103 q
16104 }
16105 /^X\(\/\/\)[^/].*/{
16106 s//\1/
16107 q
16108 }
16109 /^X\(\/\/\)$/{
16110 s//\1/
16111 q
16112 }
16113 /^X\(\/\).*/{
16114 s//\1/
16115 q
16116 }
16117 s/.*/./; q'`
16118 else
16119 continue
16120 fi
16121 # Extract the definition of DEPDIR, am__include, and am__quote
16122 # from the Makefile without running `make'.
16123 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16124 test -z "$DEPDIR" && continue
16125 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16126 test -z "am__include" && continue
16127 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16128 # When using ansi2knr, U may be empty or an underscore; expand it
16129 U=`sed -n 's/^U = //p' < "$mf"`
16130 # Find all dependency output files, they are included files with
16131 # $(DEPDIR) in their names. We invoke sed twice because it is the
16132 # simplest approach to changing $(DEPDIR) to its actual value in the
16133 # expansion.
16134 for file in `sed -n "
16135 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16136 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16137 # Make sure the directory exists.
16138 test -f "$dirpart/$file" && continue
16139 fdir=`$as_dirname -- "$file" ||
16140$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16141 X"$file" : 'X\(//\)[^/]' \| \
16142 X"$file" : 'X\(//\)$' \| \
16143 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16144$as_echo X"$file" |
16145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16146 s//\1/
16147 q
16148 }
16149 /^X\(\/\/\)[^/].*/{
16150 s//\1/
16151 q
16152 }
16153 /^X\(\/\/\)$/{
16154 s//\1/
16155 q
16156 }
16157 /^X\(\/\).*/{
16158 s//\1/
16159 q
16160 }
16161 s/.*/./; q'`
16162 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16163 # echo "creating $dirpart/$file"
16164 echo '# dummy' > "$dirpart/$file"
16165 done
16166 done
16167}
16168 ;;
16169 "libtool":C)
16170
16171 # See if we are running on zsh, and set the options which allow our
16172 # commands through without removal of \ escapes.
16173 if test -n "${ZSH_VERSION+set}" ; then
16174 setopt NO_GLOB_SUBST
16175 fi
16176
16177 cfgfile="${ofile}T"
16178 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16179 $RM "$cfgfile"
16180
16181 cat <<_LT_EOF >> "$cfgfile"
16182#! $SHELL
16183
16184# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16185# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16186# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16187# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16188#
16189# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16190# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16191# Written by Gordon Matzigkeit, 1996
16192#
16193# This file is part of GNU Libtool.
16194#
16195# GNU Libtool is free software; you can redistribute it and/or
16196# modify it under the terms of the GNU General Public License as
16197# published by the Free Software Foundation; either version 2 of
16198# the License, or (at your option) any later version.
16199#
16200# As a special exception to the GNU General Public License,
16201# if you distribute this file as part of a program or library that
16202# is built using GNU Libtool, you may include this file under the
16203# same distribution terms that you use for the rest of that program.
16204#
16205# GNU Libtool is distributed in the hope that it will be useful,
16206# but WITHOUT ANY WARRANTY; without even the implied warranty of
16207# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16208# GNU General Public License for more details.
16209#
16210# You should have received a copy of the GNU General Public License
16211# along with GNU Libtool; see the file COPYING. If not, a copy
16212# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16213# obtained by writing to the Free Software Foundation, Inc.,
16214# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16215
16216
16217# The names of the tagged configurations supported by this script.
16218available_tags="CXX "
16219
16220# ### BEGIN LIBTOOL CONFIG
16221
16222# Which release of libtool.m4 was used?
16223macro_version=$macro_version
16224macro_revision=$macro_revision
16225
16226# Whether or not to build shared libraries.
16227build_libtool_libs=$enable_shared
16228
16229# Whether or not to build static libraries.
16230build_old_libs=$enable_static
16231
16232# What type of objects to build.
16233pic_mode=$pic_mode
16234
16235# Whether or not to optimize for fast installation.
16236fast_install=$enable_fast_install
16237
16238# Shell to use when invoking shell scripts.
16239SHELL=$lt_SHELL
16240
16241# An echo program that protects backslashes.
16242ECHO=$lt_ECHO
16243
16244# The host system.
16245host_alias=$host_alias
16246host=$host
16247host_os=$host_os
16248
16249# The build system.
16250build_alias=$build_alias
16251build=$build
16252build_os=$build_os
16253
16254# A sed program that does not truncate output.
16255SED=$lt_SED
16256
16257# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16258Xsed="\$SED -e 1s/^X//"
16259
16260# A grep program that handles long lines.
16261GREP=$lt_GREP
16262
16263# An ERE matcher.
16264EGREP=$lt_EGREP
16265
16266# A literal string matcher.
16267FGREP=$lt_FGREP
16268
16269# A BSD- or MS-compatible name lister.
16270NM=$lt_NM
16271
16272# Whether we need soft or hard links.
16273LN_S=$lt_LN_S
16274
16275# What is the maximum length of a command?
16276max_cmd_len=$max_cmd_len
16277
16278# Object file suffix (normally "o").
16279objext=$ac_objext
16280
16281# Executable file suffix (normally "").
16282exeext=$exeext
16283
16284# whether the shell understands "unset".
16285lt_unset=$lt_unset
16286
16287# turn spaces into newlines.
16288SP2NL=$lt_lt_SP2NL
16289
16290# turn newlines into spaces.
16291NL2SP=$lt_lt_NL2SP
16292
16293# An object symbol dumper.
16294OBJDUMP=$lt_OBJDUMP
16295
16296# Method to check whether dependent libraries are shared objects.
16297deplibs_check_method=$lt_deplibs_check_method
16298
16299# Command to use when deplibs_check_method == "file_magic".
16300file_magic_cmd=$lt_file_magic_cmd
16301
16302# The archiver.
16303AR=$lt_AR
16304AR_FLAGS=$lt_AR_FLAGS
16305
16306# A symbol stripping program.
16307STRIP=$lt_STRIP
16308
16309# Commands used to install an old-style archive.
16310RANLIB=$lt_RANLIB
16311old_postinstall_cmds=$lt_old_postinstall_cmds
16312old_postuninstall_cmds=$lt_old_postuninstall_cmds
16313
16314# Whether to use a lock for old archive extraction.
16315lock_old_archive_extraction=$lock_old_archive_extraction
16316
16317# A C compiler.
16318LTCC=$lt_CC
16319
16320# LTCC compiler flags.
16321LTCFLAGS=$lt_CFLAGS
16322
16323# Take the output of nm and produce a listing of raw symbols and C names.
16324global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16325
16326# Transform the output of nm in a proper C declaration.
16327global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16328
16329# Transform the output of nm in a C name address pair.
16330global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16331
16332# Transform the output of nm in a C name address pair when lib prefix is needed.
16333global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16334
16335# The name of the directory that contains temporary libtool files.
16336objdir=$objdir
16337
16338# Used to examine libraries when file_magic_cmd begins with "file".
16339MAGIC_CMD=$MAGIC_CMD
16340
16341# Must we lock files when doing compilation?
16342need_locks=$lt_need_locks
16343
16344# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16345DSYMUTIL=$lt_DSYMUTIL
16346
16347# Tool to change global to local symbols on Mac OS X.
16348NMEDIT=$lt_NMEDIT
16349
16350# Tool to manipulate fat objects and archives on Mac OS X.
16351LIPO=$lt_LIPO
16352
16353# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16354OTOOL=$lt_OTOOL
16355
16356# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16357OTOOL64=$lt_OTOOL64
16358
16359# Old archive suffix (normally "a").
16360libext=$libext
16361
16362# Shared library suffix (normally ".so").
16363shrext_cmds=$lt_shrext_cmds
16364
16365# The commands to extract the exported symbol list from a shared archive.
16366extract_expsyms_cmds=$lt_extract_expsyms_cmds
16367
16368# Variables whose values should be saved in libtool wrapper scripts and
16369# restored at link time.
16370variables_saved_for_relink=$lt_variables_saved_for_relink
16371
16372# Do we need the "lib" prefix for modules?
16373need_lib_prefix=$need_lib_prefix
16374
16375# Do we need a version for libraries?
16376need_version=$need_version
16377
16378# Library versioning type.
16379version_type=$version_type
16380
16381# Shared library runtime path variable.
16382runpath_var=$runpath_var
16383
16384# Shared library path variable.
16385shlibpath_var=$shlibpath_var
16386
16387# Is shlibpath searched before the hard-coded library search path?
16388shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16389
16390# Format of library name prefix.
16391libname_spec=$lt_libname_spec
16392
16393# List of archive names. First name is the real one, the rest are links.
16394# The last name is the one that the linker finds with -lNAME
16395library_names_spec=$lt_library_names_spec
16396
16397# The coded name of the library, if different from the real name.
16398soname_spec=$lt_soname_spec
16399
16400# Permission mode override for installation of shared libraries.
16401install_override_mode=$lt_install_override_mode
16402
16403# Command to use after installation of a shared archive.
16404postinstall_cmds=$lt_postinstall_cmds
16405
16406# Command to use after uninstallation of a shared archive.
16407postuninstall_cmds=$lt_postuninstall_cmds
16408
16409# Commands used to finish a libtool library installation in a directory.
16410finish_cmds=$lt_finish_cmds
16411
16412# As "finish_cmds", except a single script fragment to be evaled but
16413# not shown.
16414finish_eval=$lt_finish_eval
16415
16416# Whether we should hardcode library paths into libraries.
16417hardcode_into_libs=$hardcode_into_libs
16418
16419# Compile-time system search path for libraries.
16420sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16421
16422# Run-time system search path for libraries.
16423sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16424
16425# Whether dlopen is supported.
16426dlopen_support=$enable_dlopen
16427
16428# Whether dlopen of programs is supported.
16429dlopen_self=$enable_dlopen_self
16430
16431# Whether dlopen of statically linked programs is supported.
16432dlopen_self_static=$enable_dlopen_self_static
16433
16434# Commands to strip libraries.
16435old_striplib=$lt_old_striplib
16436striplib=$lt_striplib
16437
16438
16439# The linker used to build libraries.
16440LD=$lt_LD
16441
16442# How to create reloadable object files.
16443reload_flag=$lt_reload_flag
16444reload_cmds=$lt_reload_cmds
16445
16446# Commands used to build an old-style archive.
16447old_archive_cmds=$lt_old_archive_cmds
16448
16449# A language specific compiler.
16450CC=$lt_compiler
16451
16452# Is the compiler the GNU compiler?
16453with_gcc=$GCC
16454
16455# Compiler flag to turn off builtin functions.
16456no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16457
16458# How to pass a linker flag through the compiler.
16459wl=$lt_lt_prog_compiler_wl
16460
16461# Additional compiler flags for building library objects.
16462pic_flag=$lt_lt_prog_compiler_pic
16463
16464# Compiler flag to prevent dynamic linking.
16465link_static_flag=$lt_lt_prog_compiler_static
16466
16467# Does compiler simultaneously support -c and -o options?
16468compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16469
16470# Whether or not to add -lc for building shared libraries.
16471build_libtool_need_lc=$archive_cmds_need_lc
16472
16473# Whether or not to disallow shared libs when runtime libs are static.
16474allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16475
16476# Compiler flag to allow reflexive dlopens.
16477export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16478
16479# Compiler flag to generate shared objects directly from archives.
16480whole_archive_flag_spec=$lt_whole_archive_flag_spec
16481
16482# Whether the compiler copes with passing no objects directly.
16483compiler_needs_object=$lt_compiler_needs_object
16484
16485# Create an old-style archive from a shared archive.
16486old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16487
16488# Create a temporary old-style archive to link instead of a shared archive.
16489old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16490
16491# Commands used to build a shared archive.
16492archive_cmds=$lt_archive_cmds
16493archive_expsym_cmds=$lt_archive_expsym_cmds
16494
16495# Commands used to build a loadable module if different from building
16496# a shared archive.
16497module_cmds=$lt_module_cmds
16498module_expsym_cmds=$lt_module_expsym_cmds
16499
16500# Whether we are building with GNU ld or not.
16501with_gnu_ld=$lt_with_gnu_ld
16502
16503# Flag that allows shared libraries with undefined symbols to be built.
16504allow_undefined_flag=$lt_allow_undefined_flag
16505
16506# Flag that enforces no undefined symbols.
16507no_undefined_flag=$lt_no_undefined_flag
16508
16509# Flag to hardcode \$libdir into a binary during linking.
16510# This must work even if \$libdir does not exist
16511hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16512
16513# If ld is used when linking, flag to hardcode \$libdir into a binary
16514# during linking. This must work even if \$libdir does not exist.
16515hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16516
16517# Whether we need a single "-rpath" flag with a separated argument.
16518hardcode_libdir_separator=$lt_hardcode_libdir_separator
16519
16520# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16521# DIR into the resulting binary.
16522hardcode_direct=$hardcode_direct
16523
16524# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16525# DIR into the resulting binary and the resulting library dependency is
16526# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16527# library is relocated.
16528hardcode_direct_absolute=$hardcode_direct_absolute
16529
16530# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16531# into the resulting binary.
16532hardcode_minus_L=$hardcode_minus_L
16533
16534# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16535# into the resulting binary.
16536hardcode_shlibpath_var=$hardcode_shlibpath_var
16537
16538# Set to "yes" if building a shared library automatically hardcodes DIR
16539# into the library and all subsequent libraries and executables linked
16540# against it.
16541hardcode_automatic=$hardcode_automatic
16542
16543# Set to yes if linker adds runtime paths of dependent libraries
16544# to runtime path list.
16545inherit_rpath=$inherit_rpath
16546
16547# Whether libtool must link a program against all its dependency libraries.
16548link_all_deplibs=$link_all_deplibs
16549
16550# Fix the shell variable \$srcfile for the compiler.
16551fix_srcfile_path=$lt_fix_srcfile_path
16552
16553# Set to "yes" if exported symbols are required.
16554always_export_symbols=$always_export_symbols
16555
16556# The commands to list exported symbols.
16557export_symbols_cmds=$lt_export_symbols_cmds
16558
16559# Symbols that should not be listed in the preloaded symbols.
16560exclude_expsyms=$lt_exclude_expsyms
16561
16562# Symbols that must always be exported.
16563include_expsyms=$lt_include_expsyms
16564
16565# Commands necessary for linking programs (against libraries) with templates.
16566prelink_cmds=$lt_prelink_cmds
16567
16568# Specify filename containing input files.
16569file_list_spec=$lt_file_list_spec
16570
16571# How to hardcode a shared library path into an executable.
16572hardcode_action=$hardcode_action
16573
16574# The directories searched by this compiler when creating a shared library.
16575compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16576
16577# Dependencies to place before and after the objects being linked to
16578# create a shared library.
16579predep_objects=$lt_predep_objects
16580postdep_objects=$lt_postdep_objects
16581predeps=$lt_predeps
16582postdeps=$lt_postdeps
16583
16584# The library search path used internally by the compiler when linking
16585# a shared library.
16586compiler_lib_search_path=$lt_compiler_lib_search_path
16587
16588# ### END LIBTOOL CONFIG
16589
16590_LT_EOF
16591
16592 case $host_os in
16593 aix3*)
16594 cat <<\_LT_EOF >> "$cfgfile"
16595# AIX sometimes has problems with the GCC collect2 program. For some
16596# reason, if we set the COLLECT_NAMES environment variable, the problems
16597# vanish in a puff of smoke.
16598if test "X${COLLECT_NAMES+set}" != Xset; then
16599 COLLECT_NAMES=
16600 export COLLECT_NAMES
16601fi
16602_LT_EOF
16603 ;;
16604 esac
16605
16606
16607ltmain="$ac_aux_dir/ltmain.sh"
16608
16609
16610 # We use sed instead of cat because bash on DJGPP gets confused if
16611 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16612 # text mode, it properly converts lines to CR/LF. This bash problem
16613 # is reportedly fixed, but why not run on old versions too?
16614 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16615 || (rm -f "$cfgfile"; exit 1)
16616
16617 case $xsi_shell in
16618 yes)
16619 cat << \_LT_EOF >> "$cfgfile"
16620
16621# func_dirname file append nondir_replacement
16622# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16623# otherwise set result to NONDIR_REPLACEMENT.
16624func_dirname ()
16625{
16626 case ${1} in
16627 */*) func_dirname_result="${1%/*}${2}" ;;
16628 * ) func_dirname_result="${3}" ;;
16629 esac
16630}
16631
16632# func_basename file
16633func_basename ()
16634{
16635 func_basename_result="${1##*/}"
16636}
16637
16638# func_dirname_and_basename file append nondir_replacement
16639# perform func_basename and func_dirname in a single function
16640# call:
16641# dirname: Compute the dirname of FILE. If nonempty,
16642# add APPEND to the result, otherwise set result
16643# to NONDIR_REPLACEMENT.
16644# value returned in "$func_dirname_result"
16645# basename: Compute filename of FILE.
16646# value retuned in "$func_basename_result"
16647# Implementation must be kept synchronized with func_dirname
16648# and func_basename. For efficiency, we do not delegate to
16649# those functions but instead duplicate the functionality here.
16650func_dirname_and_basename ()
16651{
16652 case ${1} in
16653 */*) func_dirname_result="${1%/*}${2}" ;;
16654 * ) func_dirname_result="${3}" ;;
16655 esac
16656 func_basename_result="${1##*/}"
16657}
16658
16659# func_stripname prefix suffix name
16660# strip PREFIX and SUFFIX off of NAME.
16661# PREFIX and SUFFIX must not contain globbing or regex special
16662# characters, hashes, percent signs, but SUFFIX may contain a leading
16663# dot (in which case that matches only a dot).
16664func_stripname ()
16665{
16666 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16667 # positional parameters, so assign one to ordinary parameter first.
16668 func_stripname_result=${3}
16669 func_stripname_result=${func_stripname_result#"${1}"}
16670 func_stripname_result=${func_stripname_result%"${2}"}
16671}
16672
16673# func_opt_split
16674func_opt_split ()
16675{
16676 func_opt_split_opt=${1%%=*}
16677 func_opt_split_arg=${1#*=}
16678}
16679
16680# func_lo2o object
16681func_lo2o ()
16682{
16683 case ${1} in
16684 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16685 *) func_lo2o_result=${1} ;;
16686 esac
16687}
16688
16689# func_xform libobj-or-source
16690func_xform ()
16691{
16692 func_xform_result=${1%.*}.lo
16693}
16694
16695# func_arith arithmetic-term...
16696func_arith ()
16697{
16698 func_arith_result=$(( $* ))
16699}
16700
16701# func_len string
16702# STRING may not start with a hyphen.
16703func_len ()
16704{
16705 func_len_result=${#1}
16706}
16707
16708_LT_EOF
16709 ;;
16710 *) # Bourne compatible functions.
16711 cat << \_LT_EOF >> "$cfgfile"
16712
16713# func_dirname file append nondir_replacement
16714# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16715# otherwise set result to NONDIR_REPLACEMENT.
16716func_dirname ()
16717{
16718 # Extract subdirectory from the argument.
16719 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16720 if test "X$func_dirname_result" = "X${1}"; then
16721 func_dirname_result="${3}"
16722 else
16723 func_dirname_result="$func_dirname_result${2}"
16724 fi
16725}
16726
16727# func_basename file
16728func_basename ()
16729{
16730 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16731}
16732
16733
16734# func_stripname prefix suffix name
16735# strip PREFIX and SUFFIX off of NAME.
16736# PREFIX and SUFFIX must not contain globbing or regex special
16737# characters, hashes, percent signs, but SUFFIX may contain a leading
16738# dot (in which case that matches only a dot).
16739# func_strip_suffix prefix name
16740func_stripname ()
16741{
16742 case ${2} in
16743 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16744 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16745 esac
16746}
16747
16748# sed scripts:
16749my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16750my_sed_long_arg='1s/^-[^=]*=//'
16751
16752# func_opt_split
16753func_opt_split ()
16754{
16755 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16756 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16757}
16758
16759# func_lo2o object
16760func_lo2o ()
16761{
16762 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16763}
16764
16765# func_xform libobj-or-source
16766func_xform ()
16767{
16768 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16769}
16770
16771# func_arith arithmetic-term...
16772func_arith ()
16773{
16774 func_arith_result=`expr "$@"`
16775}
16776
16777# func_len string
16778# STRING may not start with a hyphen.
16779func_len ()
16780{
16781 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16782}
16783
16784_LT_EOF
16785esac
16786
16787case $lt_shell_append in
16788 yes)
16789 cat << \_LT_EOF >> "$cfgfile"
16790
16791# func_append var value
16792# Append VALUE to the end of shell variable VAR.
16793func_append ()
16794{
16795 eval "$1+=\$2"
16796}
16797_LT_EOF
16798 ;;
16799 *)
16800 cat << \_LT_EOF >> "$cfgfile"
16801
16802# func_append var value
16803# Append VALUE to the end of shell variable VAR.
16804func_append ()
16805{
16806 eval "$1=\$$1\$2"
16807}
16808
16809_LT_EOF
16810 ;;
16811 esac
16812
16813
16814 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16815 || (rm -f "$cfgfile"; exit 1)
16816
16817 mv -f "$cfgfile" "$ofile" ||
16818 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16819 chmod +x "$ofile"
16820
16821
16822 cat <<_LT_EOF >> "$ofile"
16823
16824# ### BEGIN LIBTOOL TAG CONFIG: CXX
16825
16826# The linker used to build libraries.
16827LD=$lt_LD_CXX
16828
16829# How to create reloadable object files.
16830reload_flag=$lt_reload_flag_CXX
16831reload_cmds=$lt_reload_cmds_CXX
16832
16833# Commands used to build an old-style archive.
16834old_archive_cmds=$lt_old_archive_cmds_CXX
16835
16836# A language specific compiler.
16837CC=$lt_compiler_CXX
16838
16839# Is the compiler the GNU compiler?
16840with_gcc=$GCC_CXX
16841
16842# Compiler flag to turn off builtin functions.
16843no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16844
16845# How to pass a linker flag through the compiler.
16846wl=$lt_lt_prog_compiler_wl_CXX
16847
16848# Additional compiler flags for building library objects.
16849pic_flag=$lt_lt_prog_compiler_pic_CXX
16850
16851# Compiler flag to prevent dynamic linking.
16852link_static_flag=$lt_lt_prog_compiler_static_CXX
16853
16854# Does compiler simultaneously support -c and -o options?
16855compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16856
16857# Whether or not to add -lc for building shared libraries.
16858build_libtool_need_lc=$archive_cmds_need_lc_CXX
16859
16860# Whether or not to disallow shared libs when runtime libs are static.
16861allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16862
16863# Compiler flag to allow reflexive dlopens.
16864export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16865
16866# Compiler flag to generate shared objects directly from archives.
16867whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16868
16869# Whether the compiler copes with passing no objects directly.
16870compiler_needs_object=$lt_compiler_needs_object_CXX
16871
16872# Create an old-style archive from a shared archive.
16873old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16874
16875# Create a temporary old-style archive to link instead of a shared archive.
16876old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16877
16878# Commands used to build a shared archive.
16879archive_cmds=$lt_archive_cmds_CXX
16880archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16881
16882# Commands used to build a loadable module if different from building
16883# a shared archive.
16884module_cmds=$lt_module_cmds_CXX
16885module_expsym_cmds=$lt_module_expsym_cmds_CXX
16886
16887# Whether we are building with GNU ld or not.
16888with_gnu_ld=$lt_with_gnu_ld_CXX
16889
16890# Flag that allows shared libraries with undefined symbols to be built.
16891allow_undefined_flag=$lt_allow_undefined_flag_CXX
16892
16893# Flag that enforces no undefined symbols.
16894no_undefined_flag=$lt_no_undefined_flag_CXX
16895
16896# Flag to hardcode \$libdir into a binary during linking.
16897# This must work even if \$libdir does not exist
16898hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16899
16900# If ld is used when linking, flag to hardcode \$libdir into a binary
16901# during linking. This must work even if \$libdir does not exist.
16902hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16903
16904# Whether we need a single "-rpath" flag with a separated argument.
16905hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16906
16907# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16908# DIR into the resulting binary.
16909hardcode_direct=$hardcode_direct_CXX
16910
16911# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16912# DIR into the resulting binary and the resulting library dependency is
16913# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16914# library is relocated.
16915hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16916
16917# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16918# into the resulting binary.
16919hardcode_minus_L=$hardcode_minus_L_CXX
16920
16921# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16922# into the resulting binary.
16923hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16924
16925# Set to "yes" if building a shared library automatically hardcodes DIR
16926# into the library and all subsequent libraries and executables linked
16927# against it.
16928hardcode_automatic=$hardcode_automatic_CXX
16929
16930# Set to yes if linker adds runtime paths of dependent libraries
16931# to runtime path list.
16932inherit_rpath=$inherit_rpath_CXX
16933
16934# Whether libtool must link a program against all its dependency libraries.
16935link_all_deplibs=$link_all_deplibs_CXX
16936
16937# Fix the shell variable \$srcfile for the compiler.
16938fix_srcfile_path=$lt_fix_srcfile_path_CXX
16939
16940# Set to "yes" if exported symbols are required.
16941always_export_symbols=$always_export_symbols_CXX
16942
16943# The commands to list exported symbols.
16944export_symbols_cmds=$lt_export_symbols_cmds_CXX
16945
16946# Symbols that should not be listed in the preloaded symbols.
16947exclude_expsyms=$lt_exclude_expsyms_CXX
16948
16949# Symbols that must always be exported.
16950include_expsyms=$lt_include_expsyms_CXX
16951
16952# Commands necessary for linking programs (against libraries) with templates.
16953prelink_cmds=$lt_prelink_cmds_CXX
16954
16955# Specify filename containing input files.
16956file_list_spec=$lt_file_list_spec_CXX
16957
16958# How to hardcode a shared library path into an executable.
16959hardcode_action=$hardcode_action_CXX
16960
16961# The directories searched by this compiler when creating a shared library.
16962compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16963
16964# Dependencies to place before and after the objects being linked to
16965# create a shared library.
16966predep_objects=$lt_predep_objects_CXX
16967postdep_objects=$lt_postdep_objects_CXX
16968predeps=$lt_predeps_CXX
16969postdeps=$lt_postdeps_CXX
16970
16971# The library search path used internally by the compiler when linking
16972# a shared library.
16973compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16974
16975# ### END LIBTOOL TAG CONFIG: CXX
16976_LT_EOF
16977
16978 ;;
16979
16980 esac
16981done # for ac_tag
16982
16983
16984as_fn_exit 0
16985_ACEOF
16986ac_clean_files=$ac_clean_files_save
16987
16988test $ac_write_fail = 0 ||
16989 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16990
16991
16992# configure is writing to config.log, and then calls config.status.
16993# config.status does its own redirection, appending to config.log.
16994# Unfortunately, on DOS this fails, as config.log is still kept open
16995# by configure, so config.status won't be able to write to it; its
16996# output is simply discarded. So we exec the FD to /dev/null,
16997# effectively closing config.log, so it can be properly (re)opened and
16998# appended to by config.status. When coming back to configure, we
16999# need to make the FD available again.
17000if test "$no_create" != yes; then
17001 ac_cs_success=:
17002 ac_config_status_args=
17003 test "$silent" = yes &&
17004 ac_config_status_args="$ac_config_status_args --quiet"
17005 exec 5>/dev/null
17006 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17007 exec 5>>config.log
17008 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17009 # would make configure fail if this is the last instruction.
17010 $ac_cs_success || as_fn_exit $?
17011fi
17012if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17014$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17015fi
17016