]> git.ipfire.org Git - thirdparty/gcc.git/blob - libvtv/configure
libtool.m4 (_LT_ENABLE_LOCK <ld -m flags>): Remove non-canonical ppc host match.
[thirdparty/gcc.git] / libvtv / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Vtable Verification Runtime Library 1.0.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='GNU Vtable Verification Runtime Library'
558 PACKAGE_TARNAME='libvtv'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU Vtable Verification Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libvtv/'
563
564 ac_unique_file="vtv_rts.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 XCFLAGS
606 libtool_VERSION
607 enable_static
608 enable_shared
609 CXXCPP
610 OTOOL64
611 OTOOL
612 LIPO
613 NMEDIT
614 DSYMUTIL
615 OBJDUMP
616 LN_S
617 NM
618 ac_ct_DUMPBIN
619 DUMPBIN
620 LD
621 FGREP
622 SED
623 LIBTOOL
624 RANLIB
625 AR
626 AS
627 CCASFLAGS
628 CCAS
629 am__fastdepCXX_FALSE
630 am__fastdepCXX_TRUE
631 CXXDEPMODE
632 ac_ct_CXX
633 CXXFLAGS
634 CXX
635 EGREP
636 GREP
637 CPP
638 am__fastdepCC_FALSE
639 am__fastdepCC_TRUE
640 CCDEPMODE
641 AMDEPBACKSLASH
642 AMDEP_FALSE
643 AMDEP_TRUE
644 am__quote
645 am__include
646 DEPDIR
647 OBJEXT
648 EXEEXT
649 ac_ct_CC
650 CPPFLAGS
651 LDFLAGS
652 CFLAGS
653 CC
654 toolexeclibdir
655 toolexecdir
656 toplevel_srcdir
657 toplevel_builddir
658 libvtv_srcdir
659 libvtv_builddir
660 MAINT
661 MAINTAINER_MODE_FALSE
662 MAINTAINER_MODE_TRUE
663 multi_basedir
664 am__untar
665 am__tar
666 AMTAR
667 am__leading_dot
668 SET_MAKE
669 AWK
670 mkdir_p
671 MKDIR_P
672 INSTALL_STRIP_PROGRAM
673 STRIP
674 install_sh
675 MAKEINFO
676 AUTOHEADER
677 AUTOMAKE
678 AUTOCONF
679 ACLOCAL
680 VERSION
681 PACKAGE
682 CYGPATH_W
683 am__isrc
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 LIBSTDCXX_RAW_CXX_LDFLAGS
688 LIBSTDCXX_RAW_CXX_CXXFLAGS
689 target_noncanonical
690 target_os
691 target_vendor
692 target_cpu
693 target
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 target_alias
703 host_alias
704 build_alias
705 LIBS
706 ECHO_T
707 ECHO_N
708 ECHO_C
709 DEFS
710 mandir
711 localedir
712 libdir
713 psdir
714 pdfdir
715 dvidir
716 htmldir
717 infodir
718 docdir
719 oldincludedir
720 includedir
721 localstatedir
722 sharedstatedir
723 sysconfdir
724 datadir
725 datarootdir
726 libexecdir
727 sbindir
728 bindir
729 program_transform_name
730 prefix
731 exec_prefix
732 PACKAGE_URL
733 PACKAGE_BUGREPORT
734 PACKAGE_STRING
735 PACKAGE_VERSION
736 PACKAGE_TARNAME
737 PACKAGE_NAME
738 PATH_SEPARATOR
739 SHELL'
740 ac_subst_files=''
741 ac_user_opts='
742 enable_option_checking
743 enable_version_specific_runtime_libs
744 enable_multilib
745 enable_maintainer_mode
746 enable_dependency_tracking
747 enable_shared
748 enable_static
749 with_pic
750 enable_fast_install
751 with_gnu_ld
752 enable_libtool_lock
753 '
754 ac_precious_vars='build_alias
755 host_alias
756 target_alias
757 CC
758 CFLAGS
759 LDFLAGS
760 LIBS
761 CPPFLAGS
762 CPP
763 CXXCPP'
764
765
766 # Initialize some variables set by options.
767 ac_init_help=
768 ac_init_version=false
769 ac_unrecognized_opts=
770 ac_unrecognized_sep=
771 # The variables have the same names as the options, with
772 # dashes changed to underlines.
773 cache_file=/dev/null
774 exec_prefix=NONE
775 no_create=
776 no_recursion=
777 prefix=NONE
778 program_prefix=NONE
779 program_suffix=NONE
780 program_transform_name=s,x,x,
781 silent=
782 site=
783 srcdir=
784 verbose=
785 x_includes=NONE
786 x_libraries=NONE
787
788 # Installation directory options.
789 # These are left unexpanded so users can "make install exec_prefix=/foo"
790 # and all the variables that are supposed to be based on exec_prefix
791 # by default will actually change.
792 # Use braces instead of parens because sh, perl, etc. also accept them.
793 # (The list follows the same order as the GNU Coding Standards.)
794 bindir='${exec_prefix}/bin'
795 sbindir='${exec_prefix}/sbin'
796 libexecdir='${exec_prefix}/libexec'
797 datarootdir='${prefix}/share'
798 datadir='${datarootdir}'
799 sysconfdir='${prefix}/etc'
800 sharedstatedir='${prefix}/com'
801 localstatedir='${prefix}/var'
802 includedir='${prefix}/include'
803 oldincludedir='/usr/include'
804 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
805 infodir='${datarootdir}/info'
806 htmldir='${docdir}'
807 dvidir='${docdir}'
808 pdfdir='${docdir}'
809 psdir='${docdir}'
810 libdir='${exec_prefix}/lib'
811 localedir='${datarootdir}/locale'
812 mandir='${datarootdir}/man'
813
814 ac_prev=
815 ac_dashdash=
816 for ac_option
817 do
818 # If the previous option needs an argument, assign it.
819 if test -n "$ac_prev"; then
820 eval $ac_prev=\$ac_option
821 ac_prev=
822 continue
823 fi
824
825 case $ac_option in
826 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
827 *) ac_optarg=yes ;;
828 esac
829
830 # Accept the important Cygnus configure options, so we can diagnose typos.
831
832 case $ac_dashdash$ac_option in
833 --)
834 ac_dashdash=yes ;;
835
836 -bindir | --bindir | --bindi | --bind | --bin | --bi)
837 ac_prev=bindir ;;
838 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
839 bindir=$ac_optarg ;;
840
841 -build | --build | --buil | --bui | --bu)
842 ac_prev=build_alias ;;
843 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
844 build_alias=$ac_optarg ;;
845
846 -cache-file | --cache-file | --cache-fil | --cache-fi \
847 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
848 ac_prev=cache_file ;;
849 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
850 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
851 cache_file=$ac_optarg ;;
852
853 --config-cache | -C)
854 cache_file=config.cache ;;
855
856 -datadir | --datadir | --datadi | --datad)
857 ac_prev=datadir ;;
858 -datadir=* | --datadir=* | --datadi=* | --datad=*)
859 datadir=$ac_optarg ;;
860
861 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
862 | --dataroo | --dataro | --datar)
863 ac_prev=datarootdir ;;
864 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
865 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
866 datarootdir=$ac_optarg ;;
867
868 -disable-* | --disable-*)
869 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 as_fn_error "invalid feature name: $ac_useropt"
873 ac_useropt_orig=$ac_useropt
874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
876 *"
877 "enable_$ac_useropt"
878 "*) ;;
879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
880 ac_unrecognized_sep=', ';;
881 esac
882 eval enable_$ac_useropt=no ;;
883
884 -docdir | --docdir | --docdi | --doc | --do)
885 ac_prev=docdir ;;
886 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
887 docdir=$ac_optarg ;;
888
889 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
890 ac_prev=dvidir ;;
891 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
892 dvidir=$ac_optarg ;;
893
894 -enable-* | --enable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error "invalid feature name: $ac_useropt"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
902 *"
903 "enable_$ac_useropt"
904 "*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=\$ac_optarg ;;
909
910 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
911 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
912 | --exec | --exe | --ex)
913 ac_prev=exec_prefix ;;
914 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
915 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
916 | --exec=* | --exe=* | --ex=*)
917 exec_prefix=$ac_optarg ;;
918
919 -gas | --gas | --ga | --g)
920 # Obsolete; use --with-gas.
921 with_gas=yes ;;
922
923 -help | --help | --hel | --he | -h)
924 ac_init_help=long ;;
925 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
926 ac_init_help=recursive ;;
927 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
928 ac_init_help=short ;;
929
930 -host | --host | --hos | --ho)
931 ac_prev=host_alias ;;
932 -host=* | --host=* | --hos=* | --ho=*)
933 host_alias=$ac_optarg ;;
934
935 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
936 ac_prev=htmldir ;;
937 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
938 | --ht=*)
939 htmldir=$ac_optarg ;;
940
941 -includedir | --includedir | --includedi | --included | --include \
942 | --includ | --inclu | --incl | --inc)
943 ac_prev=includedir ;;
944 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
945 | --includ=* | --inclu=* | --incl=* | --inc=*)
946 includedir=$ac_optarg ;;
947
948 -infodir | --infodir | --infodi | --infod | --info | --inf)
949 ac_prev=infodir ;;
950 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
951 infodir=$ac_optarg ;;
952
953 -libdir | --libdir | --libdi | --libd)
954 ac_prev=libdir ;;
955 -libdir=* | --libdir=* | --libdi=* | --libd=*)
956 libdir=$ac_optarg ;;
957
958 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
959 | --libexe | --libex | --libe)
960 ac_prev=libexecdir ;;
961 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
962 | --libexe=* | --libex=* | --libe=*)
963 libexecdir=$ac_optarg ;;
964
965 -localedir | --localedir | --localedi | --localed | --locale)
966 ac_prev=localedir ;;
967 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
968 localedir=$ac_optarg ;;
969
970 -localstatedir | --localstatedir | --localstatedi | --localstated \
971 | --localstate | --localstat | --localsta | --localst | --locals)
972 ac_prev=localstatedir ;;
973 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
974 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
975 localstatedir=$ac_optarg ;;
976
977 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
978 ac_prev=mandir ;;
979 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
980 mandir=$ac_optarg ;;
981
982 -nfp | --nfp | --nf)
983 # Obsolete; use --without-fp.
984 with_fp=no ;;
985
986 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
987 | --no-cr | --no-c | -n)
988 no_create=yes ;;
989
990 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
991 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992 no_recursion=yes ;;
993
994 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
995 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
996 | --oldin | --oldi | --old | --ol | --o)
997 ac_prev=oldincludedir ;;
998 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
999 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1000 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1001 oldincludedir=$ac_optarg ;;
1002
1003 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1004 ac_prev=prefix ;;
1005 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1006 prefix=$ac_optarg ;;
1007
1008 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1009 | --program-pre | --program-pr | --program-p)
1010 ac_prev=program_prefix ;;
1011 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1012 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1013 program_prefix=$ac_optarg ;;
1014
1015 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1016 | --program-suf | --program-su | --program-s)
1017 ac_prev=program_suffix ;;
1018 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1019 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1020 program_suffix=$ac_optarg ;;
1021
1022 -program-transform-name | --program-transform-name \
1023 | --program-transform-nam | --program-transform-na \
1024 | --program-transform-n | --program-transform- \
1025 | --program-transform | --program-transfor \
1026 | --program-transfo | --program-transf \
1027 | --program-trans | --program-tran \
1028 | --progr-tra | --program-tr | --program-t)
1029 ac_prev=program_transform_name ;;
1030 -program-transform-name=* | --program-transform-name=* \
1031 | --program-transform-nam=* | --program-transform-na=* \
1032 | --program-transform-n=* | --program-transform-=* \
1033 | --program-transform=* | --program-transfor=* \
1034 | --program-transfo=* | --program-transf=* \
1035 | --program-trans=* | --program-tran=* \
1036 | --progr-tra=* | --program-tr=* | --program-t=*)
1037 program_transform_name=$ac_optarg ;;
1038
1039 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1040 ac_prev=pdfdir ;;
1041 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1042 pdfdir=$ac_optarg ;;
1043
1044 -psdir | --psdir | --psdi | --psd | --ps)
1045 ac_prev=psdir ;;
1046 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1047 psdir=$ac_optarg ;;
1048
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1051 silent=yes ;;
1052
1053 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1054 ac_prev=sbindir ;;
1055 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1056 | --sbi=* | --sb=*)
1057 sbindir=$ac_optarg ;;
1058
1059 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1060 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1061 | --sharedst | --shareds | --shared | --share | --shar \
1062 | --sha | --sh)
1063 ac_prev=sharedstatedir ;;
1064 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1065 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1066 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1067 | --sha=* | --sh=*)
1068 sharedstatedir=$ac_optarg ;;
1069
1070 -site | --site | --sit)
1071 ac_prev=site ;;
1072 -site=* | --site=* | --sit=*)
1073 site=$ac_optarg ;;
1074
1075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1076 ac_prev=srcdir ;;
1077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1078 srcdir=$ac_optarg ;;
1079
1080 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1081 | --syscon | --sysco | --sysc | --sys | --sy)
1082 ac_prev=sysconfdir ;;
1083 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1084 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1085 sysconfdir=$ac_optarg ;;
1086
1087 -target | --target | --targe | --targ | --tar | --ta | --t)
1088 ac_prev=target_alias ;;
1089 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1090 target_alias=$ac_optarg ;;
1091
1092 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1093 verbose=yes ;;
1094
1095 -version | --version | --versio | --versi | --vers | -V)
1096 ac_init_version=: ;;
1097
1098 -with-* | --with-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error "invalid package name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1106 *"
1107 "with_$ac_useropt"
1108 "*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval with_$ac_useropt=\$ac_optarg ;;
1113
1114 -without-* | --without-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1122 *"
1123 "with_$ac_useropt"
1124 "*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval with_$ac_useropt=no ;;
1129
1130 --x)
1131 # Obsolete; use --with-x.
1132 with_x=yes ;;
1133
1134 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1135 | --x-incl | --x-inc | --x-in | --x-i)
1136 ac_prev=x_includes ;;
1137 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1138 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1139 x_includes=$ac_optarg ;;
1140
1141 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1142 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1143 ac_prev=x_libraries ;;
1144 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1145 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1146 x_libraries=$ac_optarg ;;
1147
1148 -*) as_fn_error "unrecognized option: \`$ac_option'
1149 Try \`$0 --help' for more information."
1150 ;;
1151
1152 *=*)
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 case $ac_envvar in #(
1156 '' | [0-9]* | *[!_$as_cr_alnum]* )
1157 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1158 esac
1159 eval $ac_envvar=\$ac_optarg
1160 export $ac_envvar ;;
1161
1162 *)
1163 # FIXME: should be removed in autoconf 3.0.
1164 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1165 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1167 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1168 ;;
1169
1170 esac
1171 done
1172
1173 if test -n "$ac_prev"; then
1174 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1175 as_fn_error "missing argument to $ac_option"
1176 fi
1177
1178 if test -n "$ac_unrecognized_opts"; then
1179 case $enable_option_checking in
1180 no) ;;
1181 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1182 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1183 esac
1184 fi
1185
1186 # Check all directory arguments for consistency.
1187 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1188 datadir sysconfdir sharedstatedir localstatedir includedir \
1189 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1190 libdir localedir mandir
1191 do
1192 eval ac_val=\$$ac_var
1193 # Remove trailing slashes.
1194 case $ac_val in
1195 */ )
1196 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1197 eval $ac_var=\$ac_val;;
1198 esac
1199 # Be sure to have absolute directory names.
1200 case $ac_val in
1201 [\\/$]* | ?:[\\/]* ) continue;;
1202 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1203 esac
1204 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1205 done
1206
1207 # There might be people who depend on the old broken behavior: `$host'
1208 # used to hold the argument of --host etc.
1209 # FIXME: To remove some day.
1210 build=$build_alias
1211 host=$host_alias
1212 target=$target_alias
1213
1214 # FIXME: To remove some day.
1215 if test "x$host_alias" != x; then
1216 if test "x$build_alias" = x; then
1217 cross_compiling=maybe
1218 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1219 If a cross compiler is detected then cross compile mode will be used." >&2
1220 elif test "x$build_alias" != "x$host_alias"; then
1221 cross_compiling=yes
1222 fi
1223 fi
1224
1225 ac_tool_prefix=
1226 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1227
1228 test "$silent" = yes && exec 6>/dev/null
1229
1230
1231 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1232 ac_ls_di=`ls -di .` &&
1233 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1234 as_fn_error "working directory cannot be determined"
1235 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1236 as_fn_error "pwd does not report name of working directory"
1237
1238
1239 # Find the source files, if location was not specified.
1240 if test -z "$srcdir"; then
1241 ac_srcdir_defaulted=yes
1242 # Try the directory containing this script, then the parent directory.
1243 ac_confdir=`$as_dirname -- "$as_myself" ||
1244 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1245 X"$as_myself" : 'X\(//\)[^/]' \| \
1246 X"$as_myself" : 'X\(//\)$' \| \
1247 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1248 $as_echo X"$as_myself" |
1249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250 s//\1/
1251 q
1252 }
1253 /^X\(\/\/\)[^/].*/{
1254 s//\1/
1255 q
1256 }
1257 /^X\(\/\/\)$/{
1258 s//\1/
1259 q
1260 }
1261 /^X\(\/\).*/{
1262 s//\1/
1263 q
1264 }
1265 s/.*/./; q'`
1266 srcdir=$ac_confdir
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1268 srcdir=..
1269 fi
1270 else
1271 ac_srcdir_defaulted=no
1272 fi
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1274 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1275 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1276 fi
1277 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 ac_abs_confdir=`(
1279 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1280 pwd)`
1281 # When building in place, set srcdir=.
1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
1283 srcdir=.
1284 fi
1285 # Remove unnecessary trailing slashes from srcdir.
1286 # Double slashes in file names in object file debugging info
1287 # mess up M-x gdb in Emacs.
1288 case $srcdir in
1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 esac
1291 for ac_var in $ac_precious_vars; do
1292 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_env_${ac_var}_value=\$${ac_var}
1294 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296 done
1297
1298 #
1299 # Report the --help message.
1300 #
1301 if test "$ac_init_help" = "long"; then
1302 # Omit some internal or obsolete options to make the list less imposing.
1303 # This message is too long to be a string in the A/UX 3.1 sh.
1304 cat <<_ACEOF
1305 \`configure' configures GNU Vtable Verification Runtime Library 1.0 to adapt to many kinds of systems.
1306
1307 Usage: $0 [OPTION]... [VAR=VALUE]...
1308
1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310 VAR=VALUE. See below for descriptions of some of the useful variables.
1311
1312 Defaults for the options are specified in brackets.
1313
1314 Configuration:
1315 -h, --help display this help and exit
1316 --help=short display options specific to this package
1317 --help=recursive display the short help of all the included packages
1318 -V, --version display version information and exit
1319 -q, --quiet, --silent do not print \`checking...' messages
1320 --cache-file=FILE cache test results in FILE [disabled]
1321 -C, --config-cache alias for \`--cache-file=config.cache'
1322 -n, --no-create do not create output files
1323 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324
1325 Installation directories:
1326 --prefix=PREFIX install architecture-independent files in PREFIX
1327 [$ac_default_prefix]
1328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1329 [PREFIX]
1330
1331 By default, \`make install' will install all the files in
1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334 for instance \`--prefix=\$HOME'.
1335
1336 For better control, use the options below.
1337
1338 Fine tuning of the installation directories:
1339 --bindir=DIR user executables [EPREFIX/bin]
1340 --sbindir=DIR system admin executables [EPREFIX/sbin]
1341 --libexecdir=DIR program executables [EPREFIX/libexec]
1342 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1343 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1344 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1345 --libdir=DIR object code libraries [EPREFIX/lib]
1346 --includedir=DIR C header files [PREFIX/include]
1347 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1350 --infodir=DIR info documentation [DATAROOTDIR/info]
1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1352 --mandir=DIR man documentation [DATAROOTDIR/man]
1353 --docdir=DIR documentation root [DATAROOTDIR/doc/libvtv]
1354 --htmldir=DIR html documentation [DOCDIR]
1355 --dvidir=DIR dvi documentation [DOCDIR]
1356 --pdfdir=DIR pdf documentation [DOCDIR]
1357 --psdir=DIR ps documentation [DOCDIR]
1358 _ACEOF
1359
1360 cat <<\_ACEOF
1361
1362 Program names:
1363 --program-prefix=PREFIX prepend PREFIX to installed program names
1364 --program-suffix=SUFFIX append SUFFIX to installed program names
1365 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1366
1367 System types:
1368 --build=BUILD configure for building on BUILD [guessed]
1369 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1370 --target=TARGET configure for building compilers for TARGET [HOST]
1371 _ACEOF
1372 fi
1373
1374 if test -n "$ac_init_help"; then
1375 case $ac_init_help in
1376 short | recursive ) echo "Configuration of GNU Vtable Verification Runtime Library 1.0:";;
1377 esac
1378 cat <<\_ACEOF
1379
1380 Optional Features:
1381 --disable-option-checking ignore unrecognized --enable/--with options
1382 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1383 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1384 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1385 --enable-multilib build many library versions (default)
1386 --enable-maintainer-mode enable make rules and dependencies not useful
1387 (and sometimes confusing) to the casual installer
1388 --disable-dependency-tracking speeds up one-time build
1389 --enable-dependency-tracking do not reject slow dependency extractors
1390 --enable-shared[=PKGS] build shared libraries [default=yes]
1391 --enable-static[=PKGS] build static libraries [default=yes]
1392 --enable-fast-install[=PKGS]
1393 optimize for fast installation [default=yes]
1394 --disable-libtool-lock avoid locking (might break parallel builds)
1395
1396 Optional Packages:
1397 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1398 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1399 --with-pic try to use only PIC/non-PIC objects [default=use
1400 both]
1401 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1402
1403 Some influential environment variables:
1404 CC C compiler command
1405 CFLAGS C compiler flags
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1407 nonstandard directory <lib dir>
1408 LIBS libraries to pass to the linker, e.g. -l<library>
1409 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1410 you have headers in a nonstandard directory <include dir>
1411 CPP C preprocessor
1412 CXX C++ compiler command
1413 CXXFLAGS C++ compiler flags
1414 CXXCPP C++ preprocessor
1415
1416 Use these variables to override the choices made by `configure' or to help
1417 it to find libraries and programs with nonstandard names/locations.
1418
1419 Report bugs to the package provider.
1420 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
1421 General help using GNU software: <http://www.gnu.org/gethelp/>.
1422 _ACEOF
1423 ac_status=$?
1424 fi
1425
1426 if test "$ac_init_help" = "recursive"; then
1427 # If there are subdirs, report their specific --help.
1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429 test -d "$ac_dir" ||
1430 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1431 continue
1432 ac_builddir=.
1433
1434 case "$ac_dir" in
1435 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *)
1437 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1438 # A ".." for each directory in $ac_dir_suffix.
1439 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1440 case $ac_top_builddir_sub in
1441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1443 esac ;;
1444 esac
1445 ac_abs_top_builddir=$ac_pwd
1446 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447 # for backward compatibility:
1448 ac_top_builddir=$ac_top_build_prefix
1449
1450 case $srcdir in
1451 .) # We are building in place.
1452 ac_srcdir=.
1453 ac_top_srcdir=$ac_top_builddir_sub
1454 ac_abs_top_srcdir=$ac_pwd ;;
1455 [\\/]* | ?:[\\/]* ) # Absolute name.
1456 ac_srcdir=$srcdir$ac_dir_suffix;
1457 ac_top_srcdir=$srcdir
1458 ac_abs_top_srcdir=$srcdir ;;
1459 *) # Relative name.
1460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461 ac_top_srcdir=$ac_top_build_prefix$srcdir
1462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1463 esac
1464 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1465
1466 cd "$ac_dir" || { ac_status=$?; continue; }
1467 # Check for guested configure.
1468 if test -f "$ac_srcdir/configure.gnu"; then
1469 echo &&
1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471 elif test -f "$ac_srcdir/configure"; then
1472 echo &&
1473 $SHELL "$ac_srcdir/configure" --help=recursive
1474 else
1475 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1476 fi || ac_status=$?
1477 cd "$ac_pwd" || { ac_status=$?; break; }
1478 done
1479 fi
1480
1481 test -n "$ac_init_help" && exit $ac_status
1482 if $ac_init_version; then
1483 cat <<\_ACEOF
1484 GNU Vtable Verification Runtime Library configure 1.0
1485 generated by GNU Autoconf 2.64
1486
1487 Copyright (C) 2009 Free Software Foundation, Inc.
1488 This configure script is free software; the Free Software Foundation
1489 gives unlimited permission to copy, distribute and modify it.
1490 _ACEOF
1491 exit
1492 fi
1493
1494 ## ------------------------ ##
1495 ## Autoconf initialization. ##
1496 ## ------------------------ ##
1497
1498 # ac_fn_c_try_compile LINENO
1499 # --------------------------
1500 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1501 ac_fn_c_try_compile ()
1502 {
1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504 rm -f conftest.$ac_objext
1505 if { { ac_try="$ac_compile"
1506 case "(($ac_try" in
1507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508 *) ac_try_echo=$ac_try;;
1509 esac
1510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511 $as_echo "$ac_try_echo"; } >&5
1512 (eval "$ac_compile") 2>conftest.err
1513 ac_status=$?
1514 if test -s conftest.err; then
1515 grep -v '^ *+' conftest.err >conftest.er1
1516 cat conftest.er1 >&5
1517 mv -f conftest.er1 conftest.err
1518 fi
1519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520 test $ac_status = 0; } && {
1521 test -z "$ac_c_werror_flag" ||
1522 test ! -s conftest.err
1523 } && test -s conftest.$ac_objext; then :
1524 ac_retval=0
1525 else
1526 $as_echo "$as_me: failed program was:" >&5
1527 sed 's/^/| /' conftest.$ac_ext >&5
1528
1529 ac_retval=1
1530 fi
1531 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1532 return $ac_retval
1533
1534 } # ac_fn_c_try_compile
1535
1536 # ac_fn_c_try_cpp LINENO
1537 # ----------------------
1538 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1539 ac_fn_c_try_cpp ()
1540 {
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 if { { ac_try="$ac_cpp conftest.$ac_ext"
1543 case "(($ac_try" in
1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1546 esac
1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548 $as_echo "$ac_try_echo"; } >&5
1549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1550 ac_status=$?
1551 if test -s conftest.err; then
1552 grep -v '^ *+' conftest.err >conftest.er1
1553 cat conftest.er1 >&5
1554 mv -f conftest.er1 conftest.err
1555 fi
1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } >/dev/null && {
1558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1559 test ! -s conftest.err
1560 }; then :
1561 ac_retval=0
1562 else
1563 $as_echo "$as_me: failed program was:" >&5
1564 sed 's/^/| /' conftest.$ac_ext >&5
1565
1566 ac_retval=1
1567 fi
1568 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1569 return $ac_retval
1570
1571 } # ac_fn_c_try_cpp
1572
1573 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1574 # -------------------------------------------------------
1575 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1576 # the include files in INCLUDES and setting the cache variable VAR
1577 # accordingly.
1578 ac_fn_c_check_header_mongrel ()
1579 {
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1583 $as_echo_n "checking for $2... " >&6; }
1584 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1585 $as_echo_n "(cached) " >&6
1586 fi
1587 eval ac_res=\$$3
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1589 $as_echo "$ac_res" >&6; }
1590 else
1591 # Is the header compilable?
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1593 $as_echo_n "checking $2 usability... " >&6; }
1594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1595 /* end confdefs.h. */
1596 $4
1597 #include <$2>
1598 _ACEOF
1599 if ac_fn_c_try_compile "$LINENO"; then :
1600 ac_header_compiler=yes
1601 else
1602 ac_header_compiler=no
1603 fi
1604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1606 $as_echo "$ac_header_compiler" >&6; }
1607
1608 # Is the header present?
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1610 $as_echo_n "checking $2 presence... " >&6; }
1611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612 /* end confdefs.h. */
1613 #include <$2>
1614 _ACEOF
1615 if ac_fn_c_try_cpp "$LINENO"; then :
1616 ac_header_preproc=yes
1617 else
1618 ac_header_preproc=no
1619 fi
1620 rm -f conftest.err conftest.$ac_ext
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1622 $as_echo "$ac_header_preproc" >&6; }
1623
1624 # So? What about this header?
1625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1626 yes:no: )
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1628 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1630 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1631 ;;
1632 no:yes:* )
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1634 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1636 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1638 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1640 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1642 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1643 ;;
1644 esac
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646 $as_echo_n "checking for $2... " >&6; }
1647 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1648 $as_echo_n "(cached) " >&6
1649 else
1650 eval "$3=\$ac_header_compiler"
1651 fi
1652 eval ac_res=\$$3
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654 $as_echo "$ac_res" >&6; }
1655 fi
1656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1657
1658 } # ac_fn_c_check_header_mongrel
1659
1660 # ac_fn_c_try_run LINENO
1661 # ----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1663 # that executables *can* be run.
1664 ac_fn_c_try_run ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 if { { ac_try="$ac_link"
1668 case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>&5
1675 ac_status=$?
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1678 { { case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_try") 2>&5
1685 ac_status=$?
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; }; }; then :
1688 ac_retval=0
1689 else
1690 $as_echo "$as_me: program exited with status $ac_status" >&5
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=$ac_status
1695 fi
1696 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698 return $ac_retval
1699
1700 } # ac_fn_c_try_run
1701
1702 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1703 # -------------------------------------------------------
1704 # Tests whether HEADER exists and can be compiled using the include files in
1705 # INCLUDES, setting the cache variable VAR accordingly.
1706 ac_fn_c_check_header_compile ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 $as_echo_n "checking for $2... " >&6; }
1711 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1712 $as_echo_n "(cached) " >&6
1713 else
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715 /* end confdefs.h. */
1716 $4
1717 #include <$2>
1718 _ACEOF
1719 if ac_fn_c_try_compile "$LINENO"; then :
1720 eval "$3=yes"
1721 else
1722 eval "$3=no"
1723 fi
1724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725 fi
1726 eval ac_res=\$$3
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730
1731 } # ac_fn_c_check_header_compile
1732
1733 # ac_fn_c_try_link LINENO
1734 # -----------------------
1735 # Try to link conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_link ()
1737 {
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 rm -f conftest.$ac_objext conftest$ac_exeext
1740 if { { ac_try="$ac_link"
1741 case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_link") 2>conftest.err
1748 ac_status=$?
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1753 fi
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && {
1756 test -z "$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 } && test -s conftest$ac_exeext && {
1759 test "$cross_compiling" = yes ||
1760 $as_test_x conftest$ac_exeext
1761 }; then :
1762 ac_retval=0
1763 else
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1766
1767 ac_retval=1
1768 fi
1769 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1770 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1771 # interfere with the next link command; also delete a directory that is
1772 # left behind by Apple's compiler. We do this before executing the actions.
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 return $ac_retval
1776
1777 } # ac_fn_c_try_link
1778
1779 # ac_fn_c_check_func LINENO FUNC VAR
1780 # ----------------------------------
1781 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1782 ac_fn_c_check_func ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1788 $as_echo_n "(cached) " >&6
1789 else
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1794 #define $2 innocuous_$2
1795
1796 /* System header to define __stub macros and hopefully few prototypes,
1797 which can conflict with char $2 (); below.
1798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1799 <limits.h> exists even on freestanding compilers. */
1800
1801 #ifdef __STDC__
1802 # include <limits.h>
1803 #else
1804 # include <assert.h>
1805 #endif
1806
1807 #undef $2
1808
1809 /* Override any GCC internal prototype to avoid an error.
1810 Use char because int might match the return type of a GCC
1811 builtin and then its argument prototype would still apply. */
1812 #ifdef __cplusplus
1813 extern "C"
1814 #endif
1815 char $2 ();
1816 /* The GNU C library defines this for functions which it implements
1817 to always fail with ENOSYS. Some functions are actually named
1818 something starting with __ and the normal name is an alias. */
1819 #if defined __stub_$2 || defined __stub___$2
1820 choke me
1821 #endif
1822
1823 int
1824 main ()
1825 {
1826 return $2 ();
1827 ;
1828 return 0;
1829 }
1830 _ACEOF
1831 if ac_fn_c_try_link "$LINENO"; then :
1832 eval "$3=yes"
1833 else
1834 eval "$3=no"
1835 fi
1836 rm -f core conftest.err conftest.$ac_objext \
1837 conftest$ac_exeext conftest.$ac_ext
1838 fi
1839 eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1843
1844 } # ac_fn_c_check_func
1845
1846 # ac_fn_cxx_try_compile LINENO
1847 # ----------------------------
1848 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_cxx_try_compile ()
1850 {
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext
1853 if { { ac_try="$ac_compile"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_compile") 2>conftest.err
1861 ac_status=$?
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1866 fi
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_cxx_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest.$ac_objext; then :
1872 ac_retval=0
1873 else
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1876
1877 ac_retval=1
1878 fi
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 return $ac_retval
1881
1882 } # ac_fn_cxx_try_compile
1883
1884 # ac_fn_cxx_try_cpp LINENO
1885 # ------------------------
1886 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1887 ac_fn_cxx_try_cpp ()
1888 {
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if { { ac_try="$ac_cpp conftest.$ac_ext"
1891 case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1898 ac_status=$?
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1903 fi
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } >/dev/null && {
1906 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1907 test ! -s conftest.err
1908 }; then :
1909 ac_retval=0
1910 else
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1913
1914 ac_retval=1
1915 fi
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 return $ac_retval
1918
1919 } # ac_fn_cxx_try_cpp
1920
1921 # ac_fn_cxx_try_link LINENO
1922 # -------------------------
1923 # Try to link conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_cxx_try_link ()
1925 {
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext conftest$ac_exeext
1928 if { { ac_try="$ac_link"
1929 case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_link") 2>conftest.err
1936 ac_status=$?
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1941 fi
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_cxx_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest$ac_exeext && {
1947 test "$cross_compiling" = yes ||
1948 $as_test_x conftest$ac_exeext
1949 }; then :
1950 ac_retval=0
1951 else
1952 $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1954
1955 ac_retval=1
1956 fi
1957 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1958 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1959 # interfere with the next link command; also delete a directory that is
1960 # left behind by Apple's compiler. We do this before executing the actions.
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963 return $ac_retval
1964
1965 } # ac_fn_cxx_try_link
1966 cat >config.log <<_ACEOF
1967 This file contains any messages produced by compilers while
1968 running configure, to aid debugging if configure makes a mistake.
1969
1970 It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was
1971 generated by GNU Autoconf 2.64. Invocation command line was
1972
1973 $ $0 $@
1974
1975 _ACEOF
1976 exec 5>>config.log
1977 {
1978 cat <<_ASUNAME
1979 ## --------- ##
1980 ## Platform. ##
1981 ## --------- ##
1982
1983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1988
1989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1990 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1991
1992 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1993 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1995 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1996 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1997 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1998 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1999
2000 _ASUNAME
2001
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2004 do
2005 IFS=$as_save_IFS
2006 test -z "$as_dir" && as_dir=.
2007 $as_echo "PATH: $as_dir"
2008 done
2009 IFS=$as_save_IFS
2010
2011 } >&5
2012
2013 cat >&5 <<_ACEOF
2014
2015
2016 ## ----------- ##
2017 ## Core tests. ##
2018 ## ----------- ##
2019
2020 _ACEOF
2021
2022
2023 # Keep a trace of the command line.
2024 # Strip out --no-create and --no-recursion so they do not pile up.
2025 # Strip out --silent because we don't want to record it for future runs.
2026 # Also quote any args containing shell meta-characters.
2027 # Make two passes to allow for proper duplicate-argument suppression.
2028 ac_configure_args=
2029 ac_configure_args0=
2030 ac_configure_args1=
2031 ac_must_keep_next=false
2032 for ac_pass in 1 2
2033 do
2034 for ac_arg
2035 do
2036 case $ac_arg in
2037 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2039 | -silent | --silent | --silen | --sile | --sil)
2040 continue ;;
2041 *\'*)
2042 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2043 esac
2044 case $ac_pass in
2045 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2046 2)
2047 as_fn_append ac_configure_args1 " '$ac_arg'"
2048 if test $ac_must_keep_next = true; then
2049 ac_must_keep_next=false # Got value, back to normal.
2050 else
2051 case $ac_arg in
2052 *=* | --config-cache | -C | -disable-* | --disable-* \
2053 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2054 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2055 | -with-* | --with-* | -without-* | --without-* | --x)
2056 case "$ac_configure_args0 " in
2057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2058 esac
2059 ;;
2060 -* ) ac_must_keep_next=true ;;
2061 esac
2062 fi
2063 as_fn_append ac_configure_args " '$ac_arg'"
2064 ;;
2065 esac
2066 done
2067 done
2068 { ac_configure_args0=; unset ac_configure_args0;}
2069 { ac_configure_args1=; unset ac_configure_args1;}
2070
2071 # When interrupted or exit'd, cleanup temporary files, and complete
2072 # config.log. We remove comments because anyway the quotes in there
2073 # would cause problems or look ugly.
2074 # WARNING: Use '\'' to represent an apostrophe within the trap.
2075 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2076 trap 'exit_status=$?
2077 # Save into config.log some information that might help in debugging.
2078 {
2079 echo
2080
2081 cat <<\_ASBOX
2082 ## ---------------- ##
2083 ## Cache variables. ##
2084 ## ---------------- ##
2085 _ASBOX
2086 echo
2087 # The following way of writing the cache mishandles newlines in values,
2088 (
2089 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2090 eval ac_val=\$$ac_var
2091 case $ac_val in #(
2092 *${as_nl}*)
2093 case $ac_var in #(
2094 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2095 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2096 esac
2097 case $ac_var in #(
2098 _ | IFS | as_nl) ;; #(
2099 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2100 *) { eval $ac_var=; unset $ac_var;} ;;
2101 esac ;;
2102 esac
2103 done
2104 (set) 2>&1 |
2105 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2106 *${as_nl}ac_space=\ *)
2107 sed -n \
2108 "s/'\''/'\''\\\\'\'''\''/g;
2109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2110 ;; #(
2111 *)
2112 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2113 ;;
2114 esac |
2115 sort
2116 )
2117 echo
2118
2119 cat <<\_ASBOX
2120 ## ----------------- ##
2121 ## Output variables. ##
2122 ## ----------------- ##
2123 _ASBOX
2124 echo
2125 for ac_var in $ac_subst_vars
2126 do
2127 eval ac_val=\$$ac_var
2128 case $ac_val in
2129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130 esac
2131 $as_echo "$ac_var='\''$ac_val'\''"
2132 done | sort
2133 echo
2134
2135 if test -n "$ac_subst_files"; then
2136 cat <<\_ASBOX
2137 ## ------------------- ##
2138 ## File substitutions. ##
2139 ## ------------------- ##
2140 _ASBOX
2141 echo
2142 for ac_var in $ac_subst_files
2143 do
2144 eval ac_val=\$$ac_var
2145 case $ac_val in
2146 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2147 esac
2148 $as_echo "$ac_var='\''$ac_val'\''"
2149 done | sort
2150 echo
2151 fi
2152
2153 if test -s confdefs.h; then
2154 cat <<\_ASBOX
2155 ## ----------- ##
2156 ## confdefs.h. ##
2157 ## ----------- ##
2158 _ASBOX
2159 echo
2160 cat confdefs.h
2161 echo
2162 fi
2163 test "$ac_signal" != 0 &&
2164 $as_echo "$as_me: caught signal $ac_signal"
2165 $as_echo "$as_me: exit $exit_status"
2166 } >&5
2167 rm -f core *.core core.conftest.* &&
2168 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2169 exit $exit_status
2170 ' 0
2171 for ac_signal in 1 2 13 15; do
2172 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2173 done
2174 ac_signal=0
2175
2176 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2177 rm -f -r conftest* confdefs.h
2178
2179 $as_echo "/* confdefs.h */" > confdefs.h
2180
2181 # Predefined preprocessor variables.
2182
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_NAME "$PACKAGE_NAME"
2185 _ACEOF
2186
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2189 _ACEOF
2190
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2193 _ACEOF
2194
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_STRING "$PACKAGE_STRING"
2197 _ACEOF
2198
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2201 _ACEOF
2202
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_URL "$PACKAGE_URL"
2205 _ACEOF
2206
2207
2208 # Let the site file select an alternate cache file if it wants to.
2209 # Prefer an explicitly selected file to automatically selected ones.
2210 ac_site_file1=NONE
2211 ac_site_file2=NONE
2212 if test -n "$CONFIG_SITE"; then
2213 ac_site_file1=$CONFIG_SITE
2214 elif test "x$prefix" != xNONE; then
2215 ac_site_file1=$prefix/share/config.site
2216 ac_site_file2=$prefix/etc/config.site
2217 else
2218 ac_site_file1=$ac_default_prefix/share/config.site
2219 ac_site_file2=$ac_default_prefix/etc/config.site
2220 fi
2221 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2222 do
2223 test "x$ac_site_file" = xNONE && continue
2224 if test -r "$ac_site_file"; then
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2226 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2227 sed 's/^/| /' "$ac_site_file" >&5
2228 . "$ac_site_file"
2229 fi
2230 done
2231
2232 if test -r "$cache_file"; then
2233 # Some versions of bash will fail to source /dev/null (special
2234 # files actually), so we avoid doing that.
2235 if test -f "$cache_file"; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2237 $as_echo "$as_me: loading cache $cache_file" >&6;}
2238 case $cache_file in
2239 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2240 *) . "./$cache_file";;
2241 esac
2242 fi
2243 else
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2245 $as_echo "$as_me: creating cache $cache_file" >&6;}
2246 >$cache_file
2247 fi
2248
2249 # Check that the precious variables saved in the cache have kept the same
2250 # value.
2251 ac_cache_corrupted=false
2252 for ac_var in $ac_precious_vars; do
2253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2254 eval ac_new_set=\$ac_env_${ac_var}_set
2255 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2256 eval ac_new_val=\$ac_env_${ac_var}_value
2257 case $ac_old_set,$ac_new_set in
2258 set,)
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2260 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2261 ac_cache_corrupted=: ;;
2262 ,set)
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2264 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2265 ac_cache_corrupted=: ;;
2266 ,);;
2267 *)
2268 if test "x$ac_old_val" != "x$ac_new_val"; then
2269 # differences in whitespace do not lead to failure.
2270 ac_old_val_w=`echo x $ac_old_val`
2271 ac_new_val_w=`echo x $ac_new_val`
2272 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2274 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2275 ac_cache_corrupted=:
2276 else
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2278 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2279 eval $ac_var=\$ac_old_val
2280 fi
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2282 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2284 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2285 fi;;
2286 esac
2287 # Pass precious variables to config.status.
2288 if test "$ac_new_set" = set; then
2289 case $ac_new_val in
2290 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2291 *) ac_arg=$ac_var=$ac_new_val ;;
2292 esac
2293 case " $ac_configure_args " in
2294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2295 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2296 esac
2297 fi
2298 done
2299 if $ac_cache_corrupted; then
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2303 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2304 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2305 fi
2306 ## -------------------- ##
2307 ## Main body of script. ##
2308 ## -------------------- ##
2309
2310 ac_ext=c
2311 ac_cpp='$CPP $CPPFLAGS'
2312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315
2316
2317
2318
2319
2320 #AC_INIT(package-unused, version-unused, libvtv)
2321
2322
2323 # -------
2324 # Options
2325 # -------
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2327 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2328 # Check whether --enable-version-specific-runtime-libs was given.
2329 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2330 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2331 yes) version_specific_libs=yes ;;
2332 no) version_specific_libs=no ;;
2333 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2334 esac
2335 else
2336 version_specific_libs=no
2337 fi
2338
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2340 $as_echo "$version_specific_libs" >&6; }
2341
2342 # Do not delete or change the following two lines. For why, see
2343 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2344 ac_aux_dir=
2345 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2346 for ac_t in install-sh install.sh shtool; do
2347 if test -f "$ac_dir/$ac_t"; then
2348 ac_aux_dir=$ac_dir
2349 ac_install_sh="$ac_aux_dir/$ac_t -c"
2350 break 2
2351 fi
2352 done
2353 done
2354 if test -z "$ac_aux_dir"; then
2355 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2356 fi
2357
2358 # These three variables are undocumented and unsupported,
2359 # and are intended to be withdrawn in a future Autoconf release.
2360 # They can cause serious problems if a builder's source tree is in a directory
2361 # whose full name contains unusual characters.
2362 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2363 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2364 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2365
2366
2367 # Make sure we can run config.sub.
2368 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2369 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2370
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2372 $as_echo_n "checking build system type... " >&6; }
2373 if test "${ac_cv_build+set}" = set; then :
2374 $as_echo_n "(cached) " >&6
2375 else
2376 ac_build_alias=$build_alias
2377 test "x$ac_build_alias" = x &&
2378 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2379 test "x$ac_build_alias" = x &&
2380 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2381 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2382 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2383
2384 fi
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2386 $as_echo "$ac_cv_build" >&6; }
2387 case $ac_cv_build in
2388 *-*-*) ;;
2389 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2390 esac
2391 build=$ac_cv_build
2392 ac_save_IFS=$IFS; IFS='-'
2393 set x $ac_cv_build
2394 shift
2395 build_cpu=$1
2396 build_vendor=$2
2397 shift; shift
2398 # Remember, the first character of IFS is used to create $*,
2399 # except with old shells:
2400 build_os=$*
2401 IFS=$ac_save_IFS
2402 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2403
2404
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2406 $as_echo_n "checking host system type... " >&6; }
2407 if test "${ac_cv_host+set}" = set; then :
2408 $as_echo_n "(cached) " >&6
2409 else
2410 if test "x$host_alias" = x; then
2411 ac_cv_host=$ac_cv_build
2412 else
2413 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2414 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2415 fi
2416
2417 fi
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2419 $as_echo "$ac_cv_host" >&6; }
2420 case $ac_cv_host in
2421 *-*-*) ;;
2422 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2423 esac
2424 host=$ac_cv_host
2425 ac_save_IFS=$IFS; IFS='-'
2426 set x $ac_cv_host
2427 shift
2428 host_cpu=$1
2429 host_vendor=$2
2430 shift; shift
2431 # Remember, the first character of IFS is used to create $*,
2432 # except with old shells:
2433 host_os=$*
2434 IFS=$ac_save_IFS
2435 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2436
2437
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2439 $as_echo_n "checking target system type... " >&6; }
2440 if test "${ac_cv_target+set}" = set; then :
2441 $as_echo_n "(cached) " >&6
2442 else
2443 if test "x$target_alias" = x; then
2444 ac_cv_target=$ac_cv_host
2445 else
2446 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2447 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2448 fi
2449
2450 fi
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2452 $as_echo "$ac_cv_target" >&6; }
2453 case $ac_cv_target in
2454 *-*-*) ;;
2455 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2456 esac
2457 target=$ac_cv_target
2458 ac_save_IFS=$IFS; IFS='-'
2459 set x $ac_cv_target
2460 shift
2461 target_cpu=$1
2462 target_vendor=$2
2463 shift; shift
2464 # Remember, the first character of IFS is used to create $*,
2465 # except with old shells:
2466 target_os=$*
2467 IFS=$ac_save_IFS
2468 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2469
2470
2471 # The aliases save the names the user supplied, while $host etc.
2472 # will get canonicalized.
2473 test -n "$target_alias" &&
2474 test "$program_prefix$program_suffix$program_transform_name" = \
2475 NONENONEs,x,x, &&
2476 program_prefix=${target_alias}-
2477
2478 target_alias=${target_alias-$host_alias}
2479
2480 case ${build_alias} in
2481 "") build_noncanonical=${build} ;;
2482 *) build_noncanonical=${build_alias} ;;
2483 esac
2484
2485 case ${host_alias} in
2486 "") host_noncanonical=${build_noncanonical} ;;
2487 *) host_noncanonical=${host_alias} ;;
2488 esac
2489
2490 case ${target_alias} in
2491 "") target_noncanonical=${host_noncanonical} ;;
2492 *) target_noncanonical=${target_alias} ;;
2493 esac
2494
2495
2496
2497
2498
2499 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2500 -I\$(top_builddir)/../libstdc++-v3/include \
2501 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2502 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2503 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2504 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2505
2506
2507
2508
2509 # See if supported.
2510 unset VTV_SUPPORTED
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for vtable verification" >&5
2512 $as_echo_n "checking for host support for vtable verification... " >&6; }
2513 . ${srcdir}/configure.tgt
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTV_SUPPORTED" >&5
2515 $as_echo "$VTV_SUPPORTED" >&6; }
2516
2517 # Decide if it's usable.
2518 use_vtable_verify=no
2519 if test "x$VTV_SUPPORTED" = "xyes"; then
2520 use_vtable_verify=yes
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: using vtable verification" >&5
2522 $as_echo "$as_me: using vtable verification" >&6;}
2523 fi
2524
2525 am__api_version='1.11'
2526
2527 # Find a good install program. We prefer a C program (faster),
2528 # so one script is as good as another. But avoid the broken or
2529 # incompatible versions:
2530 # SysV /etc/install, /usr/sbin/install
2531 # SunOS /usr/etc/install
2532 # IRIX /sbin/install
2533 # AIX /bin/install
2534 # AmigaOS /C/install, which installs bootblocks on floppy discs
2535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2538 # OS/2's system install, which has a completely different semantic
2539 # ./install, which can be erroneously created by make from ./install.sh.
2540 # Reject install programs that cannot install multiple files.
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2542 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2543 if test -z "$INSTALL"; then
2544 if test "${ac_cv_path_install+set}" = set; then :
2545 $as_echo_n "(cached) " >&6
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 # Account for people who put trailing slashes in PATH elements.
2553 case $as_dir/ in #((
2554 ./ | .// | /[cC]/* | \
2555 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2556 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2557 /usr/ucb/* ) ;;
2558 *)
2559 # OSF1 and SCO ODT 3.0 have their own names for install.
2560 # Don't use installbsd from OSF since it installs stuff as root
2561 # by default.
2562 for ac_prog in ginstall scoinst install; do
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2565 if test $ac_prog = install &&
2566 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2567 # AIX install. It has an incompatible calling convention.
2568 :
2569 elif test $ac_prog = install &&
2570 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2571 # program-specific install script used by HP pwplus--don't use.
2572 :
2573 else
2574 rm -rf conftest.one conftest.two conftest.dir
2575 echo one > conftest.one
2576 echo two > conftest.two
2577 mkdir conftest.dir
2578 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2579 test -s conftest.one && test -s conftest.two &&
2580 test -s conftest.dir/conftest.one &&
2581 test -s conftest.dir/conftest.two
2582 then
2583 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2584 break 3
2585 fi
2586 fi
2587 fi
2588 done
2589 done
2590 ;;
2591 esac
2592
2593 done
2594 IFS=$as_save_IFS
2595
2596 rm -rf conftest.one conftest.two conftest.dir
2597
2598 fi
2599 if test "${ac_cv_path_install+set}" = set; then
2600 INSTALL=$ac_cv_path_install
2601 else
2602 # As a last resort, use the slow shell script. Don't cache a
2603 # value for INSTALL within a source directory, because that will
2604 # break other packages using the cache if that directory is
2605 # removed, or if the value is a relative name.
2606 INSTALL=$ac_install_sh
2607 fi
2608 fi
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2610 $as_echo "$INSTALL" >&6; }
2611
2612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2613 # It thinks the first close brace ends the variable substitution.
2614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2615
2616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2617
2618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2619
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2621 $as_echo_n "checking whether build environment is sane... " >&6; }
2622 # Just in case
2623 sleep 1
2624 echo timestamp > conftest.file
2625 # Reject unsafe characters in $srcdir or the absolute working directory
2626 # name. Accept space and tab only in the latter.
2627 am_lf='
2628 '
2629 case `pwd` in
2630 *[\\\"\#\$\&\'\`$am_lf]*)
2631 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2632 esac
2633 case $srcdir in
2634 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2635 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2636 esac
2637
2638 # Do `set' in a subshell so we don't clobber the current shell's
2639 # arguments. Must try -L first in case configure is actually a
2640 # symlink; some systems play weird games with the mod time of symlinks
2641 # (eg FreeBSD returns the mod time of the symlink's containing
2642 # directory).
2643 if (
2644 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2645 if test "$*" = "X"; then
2646 # -L didn't work.
2647 set X `ls -t "$srcdir/configure" conftest.file`
2648 fi
2649 rm -f conftest.file
2650 if test "$*" != "X $srcdir/configure conftest.file" \
2651 && test "$*" != "X conftest.file $srcdir/configure"; then
2652
2653 # If neither matched, then we have a broken ls. This can happen
2654 # if, for instance, CONFIG_SHELL is bash and it inherits a
2655 # broken ls alias from the environment. This has actually
2656 # happened. Such a system could not be considered "sane".
2657 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2658 alias in your environment" "$LINENO" 5
2659 fi
2660
2661 test "$2" = conftest.file
2662 )
2663 then
2664 # Ok.
2665 :
2666 else
2667 as_fn_error "newly created file is older than distributed files!
2668 Check your system clock" "$LINENO" 5
2669 fi
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2671 $as_echo "yes" >&6; }
2672 test "$program_prefix" != NONE &&
2673 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2674 # Use a double $ so make ignores it.
2675 test "$program_suffix" != NONE &&
2676 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2677 # Double any \ or $.
2678 # By default was `s,x,x', remove it if useless.
2679 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2680 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2681
2682 # expand $ac_aux_dir to an absolute path
2683 am_aux_dir=`cd $ac_aux_dir && pwd`
2684
2685 if test x"${MISSING+set}" != xset; then
2686 case $am_aux_dir in
2687 *\ * | *\ *)
2688 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2689 *)
2690 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2691 esac
2692 fi
2693 # Use eval to expand $SHELL
2694 if eval "$MISSING --run true"; then
2695 am_missing_run="$MISSING --run "
2696 else
2697 am_missing_run=
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2699 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2700 fi
2701
2702 if test x"${install_sh}" != xset; then
2703 case $am_aux_dir in
2704 *\ * | *\ *)
2705 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2706 *)
2707 install_sh="\${SHELL} $am_aux_dir/install-sh"
2708 esac
2709 fi
2710
2711 # Installed binaries are usually stripped using `strip' when the user
2712 # run `make install-strip'. However `strip' might not be the right
2713 # tool to use in cross-compilation environments, therefore Automake
2714 # will honor the `STRIP' environment variable to overrule this program.
2715 if test "$cross_compiling" != no; then
2716 if test -n "$ac_tool_prefix"; then
2717 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2718 set dummy ${ac_tool_prefix}strip; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if test "${ac_cv_prog_STRIP+set}" = set; then :
2722 $as_echo_n "(cached) " >&6
2723 else
2724 if test -n "$STRIP"; then
2725 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 break 2
2737 fi
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 STRIP=$ac_cv_prog_STRIP
2745 if test -n "$STRIP"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2747 $as_echo "$STRIP" >&6; }
2748 else
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2751 fi
2752
2753
2754 fi
2755 if test -z "$ac_cv_prog_STRIP"; then
2756 ac_ct_STRIP=$STRIP
2757 # Extract the first word of "strip", so it can be a program name with args.
2758 set dummy strip; ac_word=$2
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760 $as_echo_n "checking for $ac_word... " >&6; }
2761 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2762 $as_echo_n "(cached) " >&6
2763 else
2764 if test -n "$ac_ct_STRIP"; then
2765 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2766 else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774 ac_cv_prog_ac_ct_STRIP="strip"
2775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 break 2
2777 fi
2778 done
2779 done
2780 IFS=$as_save_IFS
2781
2782 fi
2783 fi
2784 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2785 if test -n "$ac_ct_STRIP"; then
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2787 $as_echo "$ac_ct_STRIP" >&6; }
2788 else
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790 $as_echo "no" >&6; }
2791 fi
2792
2793 if test "x$ac_ct_STRIP" = x; then
2794 STRIP=":"
2795 else
2796 case $cross_compiling:$ac_tool_warned in
2797 yes:)
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2800 ac_tool_warned=yes ;;
2801 esac
2802 STRIP=$ac_ct_STRIP
2803 fi
2804 else
2805 STRIP="$ac_cv_prog_STRIP"
2806 fi
2807
2808 fi
2809 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2810
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2812 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2813 if test -z "$MKDIR_P"; then
2814 if test "${ac_cv_path_mkdir+set}" = set; then :
2815 $as_echo_n "(cached) " >&6
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2819 do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_prog in mkdir gmkdir; do
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2825 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2826 'mkdir (GNU coreutils) '* | \
2827 'mkdir (coreutils) '* | \
2828 'mkdir (fileutils) '4.1*)
2829 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2830 break 3;;
2831 esac
2832 done
2833 done
2834 done
2835 IFS=$as_save_IFS
2836
2837 fi
2838
2839 if test "${ac_cv_path_mkdir+set}" = set; then
2840 MKDIR_P="$ac_cv_path_mkdir -p"
2841 else
2842 # As a last resort, use the slow shell script. Don't cache a
2843 # value for MKDIR_P within a source directory, because that will
2844 # break other packages using the cache if that directory is
2845 # removed, or if the value is a relative name.
2846 test -d ./--version && rmdir ./--version
2847 MKDIR_P="$ac_install_sh -d"
2848 fi
2849 fi
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2851 $as_echo "$MKDIR_P" >&6; }
2852
2853 mkdir_p="$MKDIR_P"
2854 case $mkdir_p in
2855 [\\/$]* | ?:[\\/]*) ;;
2856 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2857 esac
2858
2859 for ac_prog in gawk mawk nawk awk
2860 do
2861 # Extract the first word of "$ac_prog", so it can be a program name with args.
2862 set dummy $ac_prog; ac_word=$2
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if test "${ac_cv_prog_AWK+set}" = set; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 if test -n "$AWK"; then
2869 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2873 do
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 ac_cv_prog_AWK="$ac_prog"
2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 break 2
2881 fi
2882 done
2883 done
2884 IFS=$as_save_IFS
2885
2886 fi
2887 fi
2888 AWK=$ac_cv_prog_AWK
2889 if test -n "$AWK"; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2891 $as_echo "$AWK" >&6; }
2892 else
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2895 fi
2896
2897
2898 test -n "$AWK" && break
2899 done
2900
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2902 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2903 set x ${MAKE-make}
2904 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2905 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2906 $as_echo_n "(cached) " >&6
2907 else
2908 cat >conftest.make <<\_ACEOF
2909 SHELL = /bin/sh
2910 all:
2911 @echo '@@@%%%=$(MAKE)=@@@%%%'
2912 _ACEOF
2913 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2914 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2915 *@@@%%%=?*=@@@%%%*)
2916 eval ac_cv_prog_make_${ac_make}_set=yes;;
2917 *)
2918 eval ac_cv_prog_make_${ac_make}_set=no;;
2919 esac
2920 rm -f conftest.make
2921 fi
2922 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2924 $as_echo "yes" >&6; }
2925 SET_MAKE=
2926 else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2929 SET_MAKE="MAKE=${MAKE-make}"
2930 fi
2931
2932 rm -rf .tst 2>/dev/null
2933 mkdir .tst 2>/dev/null
2934 if test -d .tst; then
2935 am__leading_dot=.
2936 else
2937 am__leading_dot=_
2938 fi
2939 rmdir .tst 2>/dev/null
2940
2941 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2942 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2943 # is not polluted with repeated "-I."
2944 am__isrc=' -I$(srcdir)'
2945 # test to see if srcdir already configured
2946 if test -f $srcdir/config.status; then
2947 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2948 fi
2949 fi
2950
2951 # test whether we have cygpath
2952 if test -z "$CYGPATH_W"; then
2953 if (cygpath --version) >/dev/null 2>/dev/null; then
2954 CYGPATH_W='cygpath -w'
2955 else
2956 CYGPATH_W=echo
2957 fi
2958 fi
2959
2960
2961 # Define the identity of the package.
2962 PACKAGE='libvtv'
2963 VERSION='1.0'
2964
2965
2966 cat >>confdefs.h <<_ACEOF
2967 #define PACKAGE "$PACKAGE"
2968 _ACEOF
2969
2970
2971 cat >>confdefs.h <<_ACEOF
2972 #define VERSION "$VERSION"
2973 _ACEOF
2974
2975 # Some tools Automake needs.
2976
2977 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2978
2979
2980 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2981
2982
2983 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2984
2985
2986 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2987
2988
2989 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2990
2991 # We need awk for the "check" target. The system "awk" is bad on
2992 # some platforms.
2993 # Always define AMTAR for backward compatibility.
2994
2995 AMTAR=${AMTAR-"${am_missing_run}tar"}
2996
2997 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2998
2999
3000
3001
3002
3003 # Default to --enable-multilib
3004 # Check whether --enable-multilib was given.
3005 if test "${enable_multilib+set}" = set; then :
3006 enableval=$enable_multilib; case "$enableval" in
3007 yes) multilib=yes ;;
3008 no) multilib=no ;;
3009 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3010 esac
3011 else
3012 multilib=yes
3013 fi
3014
3015
3016 # We may get other options which we leave undocumented:
3017 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3018 # See config-ml.in if you want the gory details.
3019
3020 if test "$srcdir" = "."; then
3021 if test "$with_target_subdir" != "."; then
3022 multi_basedir="$srcdir/$with_multisrctop../.."
3023 else
3024 multi_basedir="$srcdir/$with_multisrctop.."
3025 fi
3026 else
3027 multi_basedir="$srcdir/.."
3028 fi
3029
3030
3031 # Even if the default multilib is not a cross compilation,
3032 # it may be that some of the other multilibs are.
3033 if test $cross_compiling = no && test $multilib = yes \
3034 && test "x${with_multisubdir}" != x ; then
3035 cross_compiling=maybe
3036 fi
3037
3038 ac_config_commands="$ac_config_commands default-1"
3039
3040
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3042 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3043 # Check whether --enable-maintainer-mode was given.
3044 if test "${enable_maintainer_mode+set}" = set; then :
3045 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3046 else
3047 USE_MAINTAINER_MODE=no
3048 fi
3049
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3051 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3052 if test $USE_MAINTAINER_MODE = yes; then
3053 MAINTAINER_MODE_TRUE=
3054 MAINTAINER_MODE_FALSE='#'
3055 else
3056 MAINTAINER_MODE_TRUE='#'
3057 MAINTAINER_MODE_FALSE=
3058 fi
3059
3060 MAINT=$MAINTAINER_MODE_TRUE
3061
3062
3063
3064
3065
3066 # These need to be absolute paths, yet at the same time need to
3067 # canonicalize only relative paths, because then amd will not unmount
3068 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
3069 libvtv_builddir=`${PWDCMD-pwd}`
3070 case $srcdir in
3071 \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;;
3072 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
3073 esac
3074 toplevel_builddir=${libvtv_builddir}/..
3075 toplevel_srcdir=${libvtv_srcdir}/..
3076
3077
3078
3079
3080
3081
3082 # Calculate toolexeclibdir
3083 # Also toolexecdir, though it's only used in toolexeclibdir
3084 case ${version_specific_libs} in
3085 yes)
3086 # Need the gcc compiler version to know where to install libraries
3087 # and header files if --enable-version-specific-runtime-libs option
3088 # is selected.
3089 toolexecdir='$(libdir)/gcc/$(target_alias)'
3090 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3091 ;;
3092 no)
3093 if test -n "$with_cross_host" &&
3094 test x"$with_cross_host" != x"no"; then
3095 # Install a library built with a cross compiler in tooldir, not libdir.
3096 toolexecdir='$(exec_prefix)/$(target_alias)'
3097 toolexeclibdir='$(toolexecdir)/lib'
3098 else
3099 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3100 toolexeclibdir='$(libdir)'
3101 fi
3102 multi_os_directory=`$CC -print-multi-os-directory`
3103 case $multi_os_directory in
3104 .) ;; # Avoid trailing /.
3105 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3106 esac
3107 ;;
3108 esac
3109
3110
3111
3112 DEPDIR="${am__leading_dot}deps"
3113
3114 ac_config_commands="$ac_config_commands depfiles"
3115
3116
3117 am_make=${MAKE-make}
3118 cat > confinc << 'END'
3119 am__doit:
3120 @echo this is the am__doit target
3121 .PHONY: am__doit
3122 END
3123 # If we don't find an include directive, just comment out the code.
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3125 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3126 am__include="#"
3127 am__quote=
3128 _am_result=none
3129 # First try GNU make style include.
3130 echo "include confinc" > confmf
3131 # Ignore all kinds of additional output from `make'.
3132 case `$am_make -s -f confmf 2> /dev/null` in #(
3133 *the\ am__doit\ target*)
3134 am__include=include
3135 am__quote=
3136 _am_result=GNU
3137 ;;
3138 esac
3139 # Now try BSD make style include.
3140 if test "$am__include" = "#"; then
3141 echo '.include "confinc"' > confmf
3142 case `$am_make -s -f confmf 2> /dev/null` in #(
3143 *the\ am__doit\ target*)
3144 am__include=.include
3145 am__quote="\""
3146 _am_result=BSD
3147 ;;
3148 esac
3149 fi
3150
3151
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3153 $as_echo "$_am_result" >&6; }
3154 rm -f confinc confmf
3155
3156 # Check whether --enable-dependency-tracking was given.
3157 if test "${enable_dependency_tracking+set}" = set; then :
3158 enableval=$enable_dependency_tracking;
3159 fi
3160
3161 if test "x$enable_dependency_tracking" != xno; then
3162 am_depcomp="$ac_aux_dir/depcomp"
3163 AMDEPBACKSLASH='\'
3164 fi
3165 if test "x$enable_dependency_tracking" != xno; then
3166 AMDEP_TRUE=
3167 AMDEP_FALSE='#'
3168 else
3169 AMDEP_TRUE='#'
3170 AMDEP_FALSE=
3171 fi
3172
3173
3174 ac_ext=c
3175 ac_cpp='$CPP $CPPFLAGS'
3176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179 if test -n "$ac_tool_prefix"; then
3180 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3181 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if test "${ac_cv_prog_CC+set}" = set; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 if test -n "$CC"; then
3188 ac_cv_prog_CC="$CC" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201 done
3202 done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 CC=$ac_cv_prog_CC
3208 if test -n "$CC"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210 $as_echo "$CC" >&6; }
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 fi
3215
3216
3217 fi
3218 if test -z "$ac_cv_prog_CC"; then
3219 ac_ct_CC=$CC
3220 # Extract the first word of "gcc", so it can be a program name with args.
3221 set dummy gcc; ac_word=$2
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223 $as_echo_n "checking for $ac_word... " >&6; }
3224 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3225 $as_echo_n "(cached) " >&6
3226 else
3227 if test -n "$ac_ct_CC"; then
3228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3229 else
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3237 ac_cv_prog_ac_ct_CC="gcc"
3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 break 2
3240 fi
3241 done
3242 done
3243 IFS=$as_save_IFS
3244
3245 fi
3246 fi
3247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3248 if test -n "$ac_ct_CC"; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3250 $as_echo "$ac_ct_CC" >&6; }
3251 else
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 fi
3255
3256 if test "x$ac_ct_CC" = x; then
3257 CC=""
3258 else
3259 case $cross_compiling:$ac_tool_warned in
3260 yes:)
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3263 ac_tool_warned=yes ;;
3264 esac
3265 CC=$ac_ct_CC
3266 fi
3267 else
3268 CC="$ac_cv_prog_CC"
3269 fi
3270
3271 if test -z "$CC"; then
3272 if test -n "$ac_tool_prefix"; then
3273 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3274 set dummy ${ac_tool_prefix}cc; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if test "${ac_cv_prog_CC+set}" = set; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_prog_CC="${ac_tool_prefix}cc"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 $as_echo "$CC" >&6; }
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 fi
3308
3309
3310 fi
3311 fi
3312 if test -z "$CC"; then
3313 # Extract the first word of "cc", so it can be a program name with args.
3314 set dummy cc; ac_word=$2
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 $as_echo_n "checking for $ac_word... " >&6; }
3317 if test "${ac_cv_prog_CC+set}" = set; then :
3318 $as_echo_n "(cached) " >&6
3319 else
3320 if test -n "$CC"; then
3321 ac_cv_prog_CC="$CC" # Let the user override the test.
3322 else
3323 ac_prog_rejected=no
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3326 do
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3332 ac_prog_rejected=yes
3333 continue
3334 fi
3335 ac_cv_prog_CC="cc"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 break 2
3338 fi
3339 done
3340 done
3341 IFS=$as_save_IFS
3342
3343 if test $ac_prog_rejected = yes; then
3344 # We found a bogon in the path, so make sure we never use it.
3345 set dummy $ac_cv_prog_CC
3346 shift
3347 if test $# != 0; then
3348 # We chose a different compiler from the bogus one.
3349 # However, it has the same basename, so the bogon will be chosen
3350 # first if we set CC to just the basename; use the full file name.
3351 shift
3352 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3353 fi
3354 fi
3355 fi
3356 fi
3357 CC=$ac_cv_prog_CC
3358 if test -n "$CC"; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 $as_echo "$CC" >&6; }
3361 else
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3364 fi
3365
3366
3367 fi
3368 if test -z "$CC"; then
3369 if test -n "$ac_tool_prefix"; then
3370 for ac_prog in cl.exe
3371 do
3372 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3373 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375 $as_echo_n "checking for $ac_word... " >&6; }
3376 if test "${ac_cv_prog_CC+set}" = set; then :
3377 $as_echo_n "(cached) " >&6
3378 else
3379 if test -n "$CC"; then
3380 ac_cv_prog_CC="$CC" # Let the user override the test.
3381 else
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 for as_dir in $PATH
3384 do
3385 IFS=$as_save_IFS
3386 test -z "$as_dir" && as_dir=.
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3389 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 break 2
3392 fi
3393 done
3394 done
3395 IFS=$as_save_IFS
3396
3397 fi
3398 fi
3399 CC=$ac_cv_prog_CC
3400 if test -n "$CC"; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3402 $as_echo "$CC" >&6; }
3403 else
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406 fi
3407
3408
3409 test -n "$CC" && break
3410 done
3411 fi
3412 if test -z "$CC"; then
3413 ac_ct_CC=$CC
3414 for ac_prog in cl.exe
3415 do
3416 # Extract the first word of "$ac_prog", so it can be a program name with args.
3417 set dummy $ac_prog; ac_word=$2
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419 $as_echo_n "checking for $ac_word... " >&6; }
3420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3421 $as_echo_n "(cached) " >&6
3422 else
3423 if test -n "$ac_ct_CC"; then
3424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3433 ac_cv_prog_ac_ct_CC="$ac_prog"
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 break 2
3436 fi
3437 done
3438 done
3439 IFS=$as_save_IFS
3440
3441 fi
3442 fi
3443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3444 if test -n "$ac_ct_CC"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3446 $as_echo "$ac_ct_CC" >&6; }
3447 else
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3450 fi
3451
3452
3453 test -n "$ac_ct_CC" && break
3454 done
3455
3456 if test "x$ac_ct_CC" = x; then
3457 CC=""
3458 else
3459 case $cross_compiling:$ac_tool_warned in
3460 yes:)
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463 ac_tool_warned=yes ;;
3464 esac
3465 CC=$ac_ct_CC
3466 fi
3467 fi
3468
3469 fi
3470
3471
3472 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 as_fn_error "no acceptable C compiler found in \$PATH
3475 See \`config.log' for more details." "$LINENO" 5; }
3476
3477 # Provide some information about the compiler.
3478 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3479 set X $ac_compile
3480 ac_compiler=$2
3481 for ac_option in --version -v -V -qversion; do
3482 { { ac_try="$ac_compiler $ac_option >&5"
3483 case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486 esac
3487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488 $as_echo "$ac_try_echo"; } >&5
3489 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3490 ac_status=$?
3491 if test -s conftest.err; then
3492 sed '10a\
3493 ... rest of stderr output deleted ...
3494 10q' conftest.err >conftest.er1
3495 cat conftest.er1 >&5
3496 rm -f conftest.er1 conftest.err
3497 fi
3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499 test $ac_status = 0; }
3500 done
3501
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504
3505 int
3506 main ()
3507 {
3508
3509 ;
3510 return 0;
3511 }
3512 _ACEOF
3513 ac_clean_files_save=$ac_clean_files
3514 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3515 # Try to create an executable without -o first, disregard a.out.
3516 # It will help us diagnose broken compilers, and finding out an intuition
3517 # of exeext.
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3519 $as_echo_n "checking for C compiler default output file name... " >&6; }
3520 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3521
3522 # The possible output files:
3523 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3524
3525 ac_rmfiles=
3526 for ac_file in $ac_files
3527 do
3528 case $ac_file in
3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3530 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3531 esac
3532 done
3533 rm -f $ac_rmfiles
3534
3535 if { { ac_try="$ac_link_default"
3536 case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539 esac
3540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541 $as_echo "$ac_try_echo"; } >&5
3542 (eval "$ac_link_default") 2>&5
3543 ac_status=$?
3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545 test $ac_status = 0; }; then :
3546 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3547 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3548 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3549 # so that the user can short-circuit this test for compilers unknown to
3550 # Autoconf.
3551 for ac_file in $ac_files ''
3552 do
3553 test -f "$ac_file" || continue
3554 case $ac_file in
3555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3556 ;;
3557 [ab].out )
3558 # We found the default executable, but exeext='' is most
3559 # certainly right.
3560 break;;
3561 *.* )
3562 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3563 then :; else
3564 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3565 fi
3566 # We set ac_cv_exeext here because the later test for it is not
3567 # safe: cross compilers may not add the suffix if given an `-o'
3568 # argument, so we may need to know it at that point already.
3569 # Even if this section looks crufty: it has the advantage of
3570 # actually working.
3571 break;;
3572 * )
3573 break;;
3574 esac
3575 done
3576 test "$ac_cv_exeext" = no && ac_cv_exeext=
3577
3578 else
3579 ac_file=''
3580 fi
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3582 $as_echo "$ac_file" >&6; }
3583 if test -z "$ac_file"; then :
3584 $as_echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 { as_fn_set_status 77
3590 as_fn_error "C compiler cannot create executables
3591 See \`config.log' for more details." "$LINENO" 5; }; }
3592 fi
3593 ac_exeext=$ac_cv_exeext
3594
3595 # Check that the compiler produces executables we can run. If not, either
3596 # the compiler is broken, or we cross compile.
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3598 $as_echo_n "checking whether the C compiler works... " >&6; }
3599 # If not cross compiling, check that we can run a simple program.
3600 if test "$cross_compiling" != yes; then
3601 if { ac_try='./$ac_file'
3602 { { case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605 esac
3606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607 $as_echo "$ac_try_echo"; } >&5
3608 (eval "$ac_try") 2>&5
3609 ac_status=$?
3610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611 test $ac_status = 0; }; }; then
3612 cross_compiling=no
3613 else
3614 if test "$cross_compiling" = maybe; then
3615 cross_compiling=yes
3616 else
3617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 as_fn_error "cannot run C compiled programs.
3620 If you meant to cross compile, use \`--host'.
3621 See \`config.log' for more details." "$LINENO" 5; }
3622 fi
3623 fi
3624 fi
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3626 $as_echo "yes" >&6; }
3627
3628 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3629 ac_clean_files=$ac_clean_files_save
3630 # Check that the compiler produces executables we can run. If not, either
3631 # the compiler is broken, or we cross compile.
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3633 $as_echo_n "checking whether we are cross compiling... " >&6; }
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3635 $as_echo "$cross_compiling" >&6; }
3636
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3638 $as_echo_n "checking for suffix of executables... " >&6; }
3639 if { { ac_try="$ac_link"
3640 case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645 $as_echo "$ac_try_echo"; } >&5
3646 (eval "$ac_link") 2>&5
3647 ac_status=$?
3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649 test $ac_status = 0; }; then :
3650 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3651 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3652 # work properly (i.e., refer to `conftest.exe'), while it won't with
3653 # `rm'.
3654 for ac_file in conftest.exe conftest conftest.*; do
3655 test -f "$ac_file" || continue
3656 case $ac_file in
3657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3658 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3659 break;;
3660 * ) break;;
3661 esac
3662 done
3663 else
3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666 as_fn_error "cannot compute suffix of executables: cannot compile and link
3667 See \`config.log' for more details." "$LINENO" 5; }
3668 fi
3669 rm -f conftest$ac_cv_exeext
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3671 $as_echo "$ac_cv_exeext" >&6; }
3672
3673 rm -f conftest.$ac_ext
3674 EXEEXT=$ac_cv_exeext
3675 ac_exeext=$EXEEXT
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3677 $as_echo_n "checking for suffix of object files... " >&6; }
3678 if test "${ac_cv_objext+set}" = set; then :
3679 $as_echo_n "(cached) " >&6
3680 else
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3683
3684 int
3685 main ()
3686 {
3687
3688 ;
3689 return 0;
3690 }
3691 _ACEOF
3692 rm -f conftest.o conftest.obj
3693 if { { ac_try="$ac_compile"
3694 case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699 $as_echo "$ac_try_echo"; } >&5
3700 (eval "$ac_compile") 2>&5
3701 ac_status=$?
3702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703 test $ac_status = 0; }; then :
3704 for ac_file in conftest.o conftest.obj conftest.*; do
3705 test -f "$ac_file" || continue;
3706 case $ac_file in
3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3708 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3709 break;;
3710 esac
3711 done
3712 else
3713 $as_echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3718 as_fn_error "cannot compute suffix of object files: cannot compile
3719 See \`config.log' for more details." "$LINENO" 5; }
3720 fi
3721 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3722 fi
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3724 $as_echo "$ac_cv_objext" >&6; }
3725 OBJEXT=$ac_cv_objext
3726 ac_objext=$OBJEXT
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3728 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3729 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3730 $as_echo_n "(cached) " >&6
3731 else
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3734
3735 int
3736 main ()
3737 {
3738 #ifndef __GNUC__
3739 choke me
3740 #endif
3741
3742 ;
3743 return 0;
3744 }
3745 _ACEOF
3746 if ac_fn_c_try_compile "$LINENO"; then :
3747 ac_compiler_gnu=yes
3748 else
3749 ac_compiler_gnu=no
3750 fi
3751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3753
3754 fi
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3756 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3757 if test $ac_compiler_gnu = yes; then
3758 GCC=yes
3759 else
3760 GCC=
3761 fi
3762 ac_test_CFLAGS=${CFLAGS+set}
3763 ac_save_CFLAGS=$CFLAGS
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3765 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3766 if test "${ac_cv_prog_cc_g+set}" = set; then :
3767 $as_echo_n "(cached) " >&6
3768 else
3769 ac_save_c_werror_flag=$ac_c_werror_flag
3770 ac_c_werror_flag=yes
3771 ac_cv_prog_cc_g=no
3772 CFLAGS="-g"
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3775
3776 int
3777 main ()
3778 {
3779
3780 ;
3781 return 0;
3782 }
3783 _ACEOF
3784 if ac_fn_c_try_compile "$LINENO"; then :
3785 ac_cv_prog_cc_g=yes
3786 else
3787 CFLAGS=""
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3790
3791 int
3792 main ()
3793 {
3794
3795 ;
3796 return 0;
3797 }
3798 _ACEOF
3799 if ac_fn_c_try_compile "$LINENO"; then :
3800
3801 else
3802 ac_c_werror_flag=$ac_save_c_werror_flag
3803 CFLAGS="-g"
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3806
3807 int
3808 main ()
3809 {
3810
3811 ;
3812 return 0;
3813 }
3814 _ACEOF
3815 if ac_fn_c_try_compile "$LINENO"; then :
3816 ac_cv_prog_cc_g=yes
3817 fi
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 fi
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821 fi
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 ac_c_werror_flag=$ac_save_c_werror_flag
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3826 $as_echo "$ac_cv_prog_cc_g" >&6; }
3827 if test "$ac_test_CFLAGS" = set; then
3828 CFLAGS=$ac_save_CFLAGS
3829 elif test $ac_cv_prog_cc_g = yes; then
3830 if test "$GCC" = yes; then
3831 CFLAGS="-g -O2"
3832 else
3833 CFLAGS="-g"
3834 fi
3835 else
3836 if test "$GCC" = yes; then
3837 CFLAGS="-O2"
3838 else
3839 CFLAGS=
3840 fi
3841 fi
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3843 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3844 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 ac_cv_prog_cc_c89=no
3848 ac_save_CC=$CC
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3851 #include <stdarg.h>
3852 #include <stdio.h>
3853 #include <sys/types.h>
3854 #include <sys/stat.h>
3855 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3856 struct buf { int x; };
3857 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3858 static char *e (p, i)
3859 char **p;
3860 int i;
3861 {
3862 return p[i];
3863 }
3864 static char *f (char * (*g) (char **, int), char **p, ...)
3865 {
3866 char *s;
3867 va_list v;
3868 va_start (v,p);
3869 s = g (p, va_arg (v,int));
3870 va_end (v);
3871 return s;
3872 }
3873
3874 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3875 function prototypes and stuff, but not '\xHH' hex character constants.
3876 These don't provoke an error unfortunately, instead are silently treated
3877 as 'x'. The following induces an error, until -std is added to get
3878 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3879 array size at least. It's necessary to write '\x00'==0 to get something
3880 that's true only with -std. */
3881 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3882
3883 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3884 inside strings and character constants. */
3885 #define FOO(x) 'x'
3886 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3887
3888 int test (int i, double x);
3889 struct s1 {int (*f) (int a);};
3890 struct s2 {int (*f) (double a);};
3891 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3892 int argc;
3893 char **argv;
3894 int
3895 main ()
3896 {
3897 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3898 ;
3899 return 0;
3900 }
3901 _ACEOF
3902 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3903 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3904 do
3905 CC="$ac_save_CC $ac_arg"
3906 if ac_fn_c_try_compile "$LINENO"; then :
3907 ac_cv_prog_cc_c89=$ac_arg
3908 fi
3909 rm -f core conftest.err conftest.$ac_objext
3910 test "x$ac_cv_prog_cc_c89" != "xno" && break
3911 done
3912 rm -f conftest.$ac_ext
3913 CC=$ac_save_CC
3914
3915 fi
3916 # AC_CACHE_VAL
3917 case "x$ac_cv_prog_cc_c89" in
3918 x)
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3920 $as_echo "none needed" >&6; } ;;
3921 xno)
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3923 $as_echo "unsupported" >&6; } ;;
3924 *)
3925 CC="$CC $ac_cv_prog_cc_c89"
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3927 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3928 esac
3929 if test "x$ac_cv_prog_cc_c89" != xno; then :
3930
3931 fi
3932
3933 ac_ext=c
3934 ac_cpp='$CPP $CPPFLAGS'
3935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3938
3939 depcc="$CC" am_compiler_list=
3940
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3942 $as_echo_n "checking dependency style of $depcc... " >&6; }
3943 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3944 $as_echo_n "(cached) " >&6
3945 else
3946 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3947 # We make a subdir and do the tests there. Otherwise we can end up
3948 # making bogus files that we don't know about and never remove. For
3949 # instance it was reported that on HP-UX the gcc test will end up
3950 # making a dummy file named `D' -- because `-MD' means `put the output
3951 # in D'.
3952 mkdir conftest.dir
3953 # Copy depcomp to subdir because otherwise we won't find it if we're
3954 # using a relative directory.
3955 cp "$am_depcomp" conftest.dir
3956 cd conftest.dir
3957 # We will build objects and dependencies in a subdirectory because
3958 # it helps to detect inapplicable dependency modes. For instance
3959 # both Tru64's cc and ICC support -MD to output dependencies as a
3960 # side effect of compilation, but ICC will put the dependencies in
3961 # the current directory while Tru64 will put them in the object
3962 # directory.
3963 mkdir sub
3964
3965 am_cv_CC_dependencies_compiler_type=none
3966 if test "$am_compiler_list" = ""; then
3967 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3968 fi
3969 am__universal=false
3970 case " $depcc " in #(
3971 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3972 esac
3973
3974 for depmode in $am_compiler_list; do
3975 # Setup a source with many dependencies, because some compilers
3976 # like to wrap large dependency lists on column 80 (with \), and
3977 # we should not choose a depcomp mode which is confused by this.
3978 #
3979 # We need to recreate these files for each test, as the compiler may
3980 # overwrite some of them when testing with obscure command lines.
3981 # This happens at least with the AIX C compiler.
3982 : > sub/conftest.c
3983 for i in 1 2 3 4 5 6; do
3984 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3985 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3986 # Solaris 8's {/usr,}/bin/sh.
3987 touch sub/conftst$i.h
3988 done
3989 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3990
3991 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3992 # mode. It turns out that the SunPro C++ compiler does not properly
3993 # handle `-M -o', and we need to detect this. Also, some Intel
3994 # versions had trouble with output in subdirs
3995 am__obj=sub/conftest.${OBJEXT-o}
3996 am__minus_obj="-o $am__obj"
3997 case $depmode in
3998 gcc)
3999 # This depmode causes a compiler race in universal mode.
4000 test "$am__universal" = false || continue
4001 ;;
4002 nosideeffect)
4003 # after this tag, mechanisms are not by side-effect, so they'll
4004 # only be used when explicitly requested
4005 if test "x$enable_dependency_tracking" = xyes; then
4006 continue
4007 else
4008 break
4009 fi
4010 ;;
4011 msvisualcpp | msvcmsys)
4012 # This compiler won't grok `-c -o', but also, the minuso test has
4013 # not run yet. These depmodes are late enough in the game, and
4014 # so weak that their functioning should not be impacted.
4015 am__obj=conftest.${OBJEXT-o}
4016 am__minus_obj=
4017 ;;
4018 none) break ;;
4019 esac
4020 if depmode=$depmode \
4021 source=sub/conftest.c object=$am__obj \
4022 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4023 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4024 >/dev/null 2>conftest.err &&
4025 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4026 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4027 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4028 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4029 # icc doesn't choke on unknown options, it will just issue warnings
4030 # or remarks (even with -Werror). So we grep stderr for any message
4031 # that says an option was ignored or not supported.
4032 # When given -MP, icc 7.0 and 7.1 complain thusly:
4033 # icc: Command line warning: ignoring option '-M'; no argument required
4034 # The diagnosis changed in icc 8.0:
4035 # icc: Command line remark: option '-MP' not supported
4036 if (grep 'ignoring option' conftest.err ||
4037 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4038 am_cv_CC_dependencies_compiler_type=$depmode
4039 break
4040 fi
4041 fi
4042 done
4043
4044 cd ..
4045 rm -rf conftest.dir
4046 else
4047 am_cv_CC_dependencies_compiler_type=none
4048 fi
4049
4050 fi
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4052 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4053 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4054
4055 if
4056 test "x$enable_dependency_tracking" != xno \
4057 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4058 am__fastdepCC_TRUE=
4059 am__fastdepCC_FALSE='#'
4060 else
4061 am__fastdepCC_TRUE='#'
4062 am__fastdepCC_FALSE=
4063 fi
4064
4065
4066
4067 ac_ext=c
4068 ac_cpp='$CPP $CPPFLAGS'
4069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4073 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4074 # On Suns, sometimes $CPP names a directory.
4075 if test -n "$CPP" && test -d "$CPP"; then
4076 CPP=
4077 fi
4078 if test -z "$CPP"; then
4079 if test "${ac_cv_prog_CPP+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 # Double quotes because CPP needs to be expanded
4083 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4084 do
4085 ac_preproc_ok=false
4086 for ac_c_preproc_warn_flag in '' yes
4087 do
4088 # Use a header file that comes with gcc, so configuring glibc
4089 # with a fresh cross-compiler works.
4090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4091 # <limits.h> exists even on freestanding compilers.
4092 # On the NeXT, cc -E runs the code through the compiler's parser,
4093 # not just through cpp. "Syntax error" is here to catch this case.
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4096 #ifdef __STDC__
4097 # include <limits.h>
4098 #else
4099 # include <assert.h>
4100 #endif
4101 Syntax error
4102 _ACEOF
4103 if ac_fn_c_try_cpp "$LINENO"; then :
4104
4105 else
4106 # Broken: fails on valid input.
4107 continue
4108 fi
4109 rm -f conftest.err conftest.$ac_ext
4110
4111 # OK, works on sane cases. Now check whether nonexistent headers
4112 # can be detected and how.
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115 #include <ac_nonexistent.h>
4116 _ACEOF
4117 if ac_fn_c_try_cpp "$LINENO"; then :
4118 # Broken: success on invalid input.
4119 continue
4120 else
4121 # Passes both tests.
4122 ac_preproc_ok=:
4123 break
4124 fi
4125 rm -f conftest.err conftest.$ac_ext
4126
4127 done
4128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4129 rm -f conftest.err conftest.$ac_ext
4130 if $ac_preproc_ok; then :
4131 break
4132 fi
4133
4134 done
4135 ac_cv_prog_CPP=$CPP
4136
4137 fi
4138 CPP=$ac_cv_prog_CPP
4139 else
4140 ac_cv_prog_CPP=$CPP
4141 fi
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4143 $as_echo "$CPP" >&6; }
4144 ac_preproc_ok=false
4145 for ac_c_preproc_warn_flag in '' yes
4146 do
4147 # Use a header file that comes with gcc, so configuring glibc
4148 # with a fresh cross-compiler works.
4149 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4150 # <limits.h> exists even on freestanding compilers.
4151 # On the NeXT, cc -E runs the code through the compiler's parser,
4152 # not just through cpp. "Syntax error" is here to catch this case.
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155 #ifdef __STDC__
4156 # include <limits.h>
4157 #else
4158 # include <assert.h>
4159 #endif
4160 Syntax error
4161 _ACEOF
4162 if ac_fn_c_try_cpp "$LINENO"; then :
4163
4164 else
4165 # Broken: fails on valid input.
4166 continue
4167 fi
4168 rm -f conftest.err conftest.$ac_ext
4169
4170 # OK, works on sane cases. Now check whether nonexistent headers
4171 # can be detected and how.
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4174 #include <ac_nonexistent.h>
4175 _ACEOF
4176 if ac_fn_c_try_cpp "$LINENO"; then :
4177 # Broken: success on invalid input.
4178 continue
4179 else
4180 # Passes both tests.
4181 ac_preproc_ok=:
4182 break
4183 fi
4184 rm -f conftest.err conftest.$ac_ext
4185
4186 done
4187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4188 rm -f conftest.err conftest.$ac_ext
4189 if $ac_preproc_ok; then :
4190
4191 else
4192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4195 See \`config.log' for more details." "$LINENO" 5; }
4196 fi
4197
4198 ac_ext=c
4199 ac_cpp='$CPP $CPPFLAGS'
4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203
4204
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4206 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4207 if test "${ac_cv_path_GREP+set}" = set; then :
4208 $as_echo_n "(cached) " >&6
4209 else
4210 if test -z "$GREP"; then
4211 ac_path_GREP_found=false
4212 # Loop through the user's path and test for each of PROGNAME-LIST
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4215 do
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_prog in grep ggrep; do
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4221 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4222 # Check for GNU ac_path_GREP and select it if it is found.
4223 # Check for GNU $ac_path_GREP
4224 case `"$ac_path_GREP" --version 2>&1` in
4225 *GNU*)
4226 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4227 *)
4228 ac_count=0
4229 $as_echo_n 0123456789 >"conftest.in"
4230 while :
4231 do
4232 cat "conftest.in" "conftest.in" >"conftest.tmp"
4233 mv "conftest.tmp" "conftest.in"
4234 cp "conftest.in" "conftest.nl"
4235 $as_echo 'GREP' >> "conftest.nl"
4236 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4238 as_fn_arith $ac_count + 1 && ac_count=$as_val
4239 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4240 # Best one so far, save it but keep looking for a better one
4241 ac_cv_path_GREP="$ac_path_GREP"
4242 ac_path_GREP_max=$ac_count
4243 fi
4244 # 10*(2^10) chars as input seems more than enough
4245 test $ac_count -gt 10 && break
4246 done
4247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4248 esac
4249
4250 $ac_path_GREP_found && break 3
4251 done
4252 done
4253 done
4254 IFS=$as_save_IFS
4255 if test -z "$ac_cv_path_GREP"; then
4256 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4257 fi
4258 else
4259 ac_cv_path_GREP=$GREP
4260 fi
4261
4262 fi
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4264 $as_echo "$ac_cv_path_GREP" >&6; }
4265 GREP="$ac_cv_path_GREP"
4266
4267
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4269 $as_echo_n "checking for egrep... " >&6; }
4270 if test "${ac_cv_path_EGREP+set}" = set; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4274 then ac_cv_path_EGREP="$GREP -E"
4275 else
4276 if test -z "$EGREP"; then
4277 ac_path_EGREP_found=false
4278 # Loop through the user's path and test for each of PROGNAME-LIST
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4281 do
4282 IFS=$as_save_IFS
4283 test -z "$as_dir" && as_dir=.
4284 for ac_prog in egrep; do
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4287 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4288 # Check for GNU ac_path_EGREP and select it if it is found.
4289 # Check for GNU $ac_path_EGREP
4290 case `"$ac_path_EGREP" --version 2>&1` in
4291 *GNU*)
4292 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4293 *)
4294 ac_count=0
4295 $as_echo_n 0123456789 >"conftest.in"
4296 while :
4297 do
4298 cat "conftest.in" "conftest.in" >"conftest.tmp"
4299 mv "conftest.tmp" "conftest.in"
4300 cp "conftest.in" "conftest.nl"
4301 $as_echo 'EGREP' >> "conftest.nl"
4302 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4303 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4304 as_fn_arith $ac_count + 1 && ac_count=$as_val
4305 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4306 # Best one so far, save it but keep looking for a better one
4307 ac_cv_path_EGREP="$ac_path_EGREP"
4308 ac_path_EGREP_max=$ac_count
4309 fi
4310 # 10*(2^10) chars as input seems more than enough
4311 test $ac_count -gt 10 && break
4312 done
4313 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4314 esac
4315
4316 $ac_path_EGREP_found && break 3
4317 done
4318 done
4319 done
4320 IFS=$as_save_IFS
4321 if test -z "$ac_cv_path_EGREP"; then
4322 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4323 fi
4324 else
4325 ac_cv_path_EGREP=$EGREP
4326 fi
4327
4328 fi
4329 fi
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4331 $as_echo "$ac_cv_path_EGREP" >&6; }
4332 EGREP="$ac_cv_path_EGREP"
4333
4334
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4336 $as_echo_n "checking for ANSI C header files... " >&6; }
4337 if test "${ac_cv_header_stdc+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342 #include <stdlib.h>
4343 #include <stdarg.h>
4344 #include <string.h>
4345 #include <float.h>
4346
4347 int
4348 main ()
4349 {
4350
4351 ;
4352 return 0;
4353 }
4354 _ACEOF
4355 if ac_fn_c_try_compile "$LINENO"; then :
4356 ac_cv_header_stdc=yes
4357 else
4358 ac_cv_header_stdc=no
4359 fi
4360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361
4362 if test $ac_cv_header_stdc = yes; then
4363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4366 #include <string.h>
4367
4368 _ACEOF
4369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4370 $EGREP "memchr" >/dev/null 2>&1; then :
4371
4372 else
4373 ac_cv_header_stdc=no
4374 fi
4375 rm -f conftest*
4376
4377 fi
4378
4379 if test $ac_cv_header_stdc = yes; then
4380 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4383 #include <stdlib.h>
4384
4385 _ACEOF
4386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4387 $EGREP "free" >/dev/null 2>&1; then :
4388
4389 else
4390 ac_cv_header_stdc=no
4391 fi
4392 rm -f conftest*
4393
4394 fi
4395
4396 if test $ac_cv_header_stdc = yes; then
4397 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4398 if test "$cross_compiling" = yes; then :
4399 :
4400 else
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h. */
4403 #include <ctype.h>
4404 #include <stdlib.h>
4405 #if ((' ' & 0x0FF) == 0x020)
4406 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4407 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4408 #else
4409 # define ISLOWER(c) \
4410 (('a' <= (c) && (c) <= 'i') \
4411 || ('j' <= (c) && (c) <= 'r') \
4412 || ('s' <= (c) && (c) <= 'z'))
4413 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4414 #endif
4415
4416 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4417 int
4418 main ()
4419 {
4420 int i;
4421 for (i = 0; i < 256; i++)
4422 if (XOR (islower (i), ISLOWER (i))
4423 || toupper (i) != TOUPPER (i))
4424 return 2;
4425 return 0;
4426 }
4427 _ACEOF
4428 if ac_fn_c_try_run "$LINENO"; then :
4429
4430 else
4431 ac_cv_header_stdc=no
4432 fi
4433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4434 conftest.$ac_objext conftest.beam conftest.$ac_ext
4435 fi
4436
4437 fi
4438 fi
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4440 $as_echo "$ac_cv_header_stdc" >&6; }
4441 if test $ac_cv_header_stdc = yes; then
4442
4443 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4444
4445 fi
4446
4447 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4448 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4449 inttypes.h stdint.h unistd.h
4450 do :
4451 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4452 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4453 "
4454 eval as_val=\$$as_ac_Header
4455 if test "x$as_val" = x""yes; then :
4456 cat >>confdefs.h <<_ACEOF
4457 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4458 _ACEOF
4459
4460 fi
4461
4462 done
4463
4464
4465
4466 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4467 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4468 MINIX=yes
4469 else
4470 MINIX=
4471 fi
4472
4473
4474 if test "$MINIX" = yes; then
4475
4476 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4477
4478
4479 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4480
4481
4482 $as_echo "#define _MINIX 1" >>confdefs.h
4483
4484 fi
4485
4486
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4488 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4489 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4490 $as_echo_n "(cached) " >&6
4491 else
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4494
4495 # define __EXTENSIONS__ 1
4496 $ac_includes_default
4497 int
4498 main ()
4499 {
4500
4501 ;
4502 return 0;
4503 }
4504 _ACEOF
4505 if ac_fn_c_try_compile "$LINENO"; then :
4506 ac_cv_safe_to_define___extensions__=yes
4507 else
4508 ac_cv_safe_to_define___extensions__=no
4509 fi
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 fi
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4513 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4514 test $ac_cv_safe_to_define___extensions__ = yes &&
4515 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4516
4517 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4518
4519 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4520
4521 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4522
4523 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4524
4525
4526
4527 for ac_func in __secure_getenv
4528 do :
4529 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
4530 if test "x$ac_cv_func___secure_getenv" = x""yes; then :
4531 cat >>confdefs.h <<_ACEOF
4532 #define HAVE___SECURE_GETENV 1
4533 _ACEOF
4534
4535 fi
4536 done
4537
4538
4539
4540 for ac_func in secure_getenv
4541 do :
4542 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
4543 if test "x$ac_cv_func_secure_getenv" = x""yes; then :
4544 cat >>confdefs.h <<_ACEOF
4545 #define HAVE_SECURE_GETENV 1
4546 _ACEOF
4547
4548 fi
4549 done
4550
4551
4552 # Check for programs.
4553
4554
4555 ac_ext=c
4556 ac_cpp='$CPP $CPPFLAGS'
4557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560 if test -n "$ac_tool_prefix"; then
4561 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4562 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4564 $as_echo_n "checking for $ac_word... " >&6; }
4565 if test "${ac_cv_prog_CC+set}" = set; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 if test -n "$CC"; then
4569 ac_cv_prog_CC="$CC" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4573 do
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 break 2
4581 fi
4582 done
4583 done
4584 IFS=$as_save_IFS
4585
4586 fi
4587 fi
4588 CC=$ac_cv_prog_CC
4589 if test -n "$CC"; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4591 $as_echo "$CC" >&6; }
4592 else
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594 $as_echo "no" >&6; }
4595 fi
4596
4597
4598 fi
4599 if test -z "$ac_cv_prog_CC"; then
4600 ac_ct_CC=$CC
4601 # Extract the first word of "gcc", so it can be a program name with args.
4602 set dummy gcc; ac_word=$2
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4606 $as_echo_n "(cached) " >&6
4607 else
4608 if test -n "$ac_ct_CC"; then
4609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4613 do
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_ac_ct_CC="gcc"
4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 break 2
4621 fi
4622 done
4623 done
4624 IFS=$as_save_IFS
4625
4626 fi
4627 fi
4628 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4629 if test -n "$ac_ct_CC"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4631 $as_echo "$ac_ct_CC" >&6; }
4632 else
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4635 fi
4636
4637 if test "x$ac_ct_CC" = x; then
4638 CC=""
4639 else
4640 case $cross_compiling:$ac_tool_warned in
4641 yes:)
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4644 ac_tool_warned=yes ;;
4645 esac
4646 CC=$ac_ct_CC
4647 fi
4648 else
4649 CC="$ac_cv_prog_CC"
4650 fi
4651
4652 if test -z "$CC"; then
4653 if test -n "$ac_tool_prefix"; then
4654 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4655 set dummy ${ac_tool_prefix}cc; ac_word=$2
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4657 $as_echo_n "checking for $ac_word... " >&6; }
4658 if test "${ac_cv_prog_CC+set}" = set; then :
4659 $as_echo_n "(cached) " >&6
4660 else
4661 if test -n "$CC"; then
4662 ac_cv_prog_CC="$CC" # Let the user override the test.
4663 else
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH
4666 do
4667 IFS=$as_save_IFS
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671 ac_cv_prog_CC="${ac_tool_prefix}cc"
4672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 break 2
4674 fi
4675 done
4676 done
4677 IFS=$as_save_IFS
4678
4679 fi
4680 fi
4681 CC=$ac_cv_prog_CC
4682 if test -n "$CC"; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4684 $as_echo "$CC" >&6; }
4685 else
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687 $as_echo "no" >&6; }
4688 fi
4689
4690
4691 fi
4692 fi
4693 if test -z "$CC"; then
4694 # Extract the first word of "cc", so it can be a program name with args.
4695 set dummy cc; ac_word=$2
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697 $as_echo_n "checking for $ac_word... " >&6; }
4698 if test "${ac_cv_prog_CC+set}" = set; then :
4699 $as_echo_n "(cached) " >&6
4700 else
4701 if test -n "$CC"; then
4702 ac_cv_prog_CC="$CC" # Let the user override the test.
4703 else
4704 ac_prog_rejected=no
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4713 ac_prog_rejected=yes
4714 continue
4715 fi
4716 ac_cv_prog_CC="cc"
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4719 fi
4720 done
4721 done
4722 IFS=$as_save_IFS
4723
4724 if test $ac_prog_rejected = yes; then
4725 # We found a bogon in the path, so make sure we never use it.
4726 set dummy $ac_cv_prog_CC
4727 shift
4728 if test $# != 0; then
4729 # We chose a different compiler from the bogus one.
4730 # However, it has the same basename, so the bogon will be chosen
4731 # first if we set CC to just the basename; use the full file name.
4732 shift
4733 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4734 fi
4735 fi
4736 fi
4737 fi
4738 CC=$ac_cv_prog_CC
4739 if test -n "$CC"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4741 $as_echo "$CC" >&6; }
4742 else
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4745 fi
4746
4747
4748 fi
4749 if test -z "$CC"; then
4750 if test -n "$ac_tool_prefix"; then
4751 for ac_prog in cl.exe
4752 do
4753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if test "${ac_cv_prog_CC+set}" = set; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 if test -n "$CC"; then
4761 ac_cv_prog_CC="$CC" # Let the user override the test.
4762 else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4765 do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4773 fi
4774 done
4775 done
4776 IFS=$as_save_IFS
4777
4778 fi
4779 fi
4780 CC=$ac_cv_prog_CC
4781 if test -n "$CC"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4783 $as_echo "$CC" >&6; }
4784 else
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4787 fi
4788
4789
4790 test -n "$CC" && break
4791 done
4792 fi
4793 if test -z "$CC"; then
4794 ac_ct_CC=$CC
4795 for ac_prog in cl.exe
4796 do
4797 # Extract the first word of "$ac_prog", so it can be a program name with args.
4798 set dummy $ac_prog; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 if test -n "$ac_ct_CC"; then
4805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4806 else
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH
4809 do
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4814 ac_cv_prog_ac_ct_CC="$ac_prog"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4817 fi
4818 done
4819 done
4820 IFS=$as_save_IFS
4821
4822 fi
4823 fi
4824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4825 if test -n "$ac_ct_CC"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4827 $as_echo "$ac_ct_CC" >&6; }
4828 else
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4831 fi
4832
4833
4834 test -n "$ac_ct_CC" && break
4835 done
4836
4837 if test "x$ac_ct_CC" = x; then
4838 CC=""
4839 else
4840 case $cross_compiling:$ac_tool_warned in
4841 yes:)
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4844 ac_tool_warned=yes ;;
4845 esac
4846 CC=$ac_ct_CC
4847 fi
4848 fi
4849
4850 fi
4851
4852
4853 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4855 as_fn_error "no acceptable C compiler found in \$PATH
4856 See \`config.log' for more details." "$LINENO" 5; }
4857
4858 # Provide some information about the compiler.
4859 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4860 set X $ac_compile
4861 ac_compiler=$2
4862 for ac_option in --version -v -V -qversion; do
4863 { { ac_try="$ac_compiler $ac_option >&5"
4864 case "(($ac_try" in
4865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866 *) ac_try_echo=$ac_try;;
4867 esac
4868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4869 $as_echo "$ac_try_echo"; } >&5
4870 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4871 ac_status=$?
4872 if test -s conftest.err; then
4873 sed '10a\
4874 ... rest of stderr output deleted ...
4875 10q' conftest.err >conftest.er1
4876 cat conftest.er1 >&5
4877 rm -f conftest.er1 conftest.err
4878 fi
4879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4880 test $ac_status = 0; }
4881 done
4882
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4884 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4885 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
4887 else
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4890
4891 int
4892 main ()
4893 {
4894 #ifndef __GNUC__
4895 choke me
4896 #endif
4897
4898 ;
4899 return 0;
4900 }
4901 _ACEOF
4902 if ac_fn_c_try_compile "$LINENO"; then :
4903 ac_compiler_gnu=yes
4904 else
4905 ac_compiler_gnu=no
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4909
4910 fi
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4912 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4913 if test $ac_compiler_gnu = yes; then
4914 GCC=yes
4915 else
4916 GCC=
4917 fi
4918 ac_test_CFLAGS=${CFLAGS+set}
4919 ac_save_CFLAGS=$CFLAGS
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4921 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4922 if test "${ac_cv_prog_cc_g+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 ac_save_c_werror_flag=$ac_c_werror_flag
4926 ac_c_werror_flag=yes
4927 ac_cv_prog_cc_g=no
4928 CFLAGS="-g"
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4931
4932 int
4933 main ()
4934 {
4935
4936 ;
4937 return 0;
4938 }
4939 _ACEOF
4940 if ac_fn_c_try_compile "$LINENO"; then :
4941 ac_cv_prog_cc_g=yes
4942 else
4943 CFLAGS=""
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946
4947 int
4948 main ()
4949 {
4950
4951 ;
4952 return 0;
4953 }
4954 _ACEOF
4955 if ac_fn_c_try_compile "$LINENO"; then :
4956
4957 else
4958 ac_c_werror_flag=$ac_save_c_werror_flag
4959 CFLAGS="-g"
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4962
4963 int
4964 main ()
4965 {
4966
4967 ;
4968 return 0;
4969 }
4970 _ACEOF
4971 if ac_fn_c_try_compile "$LINENO"; then :
4972 ac_cv_prog_cc_g=yes
4973 fi
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 fi
4976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4977 fi
4978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979 ac_c_werror_flag=$ac_save_c_werror_flag
4980 fi
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4982 $as_echo "$ac_cv_prog_cc_g" >&6; }
4983 if test "$ac_test_CFLAGS" = set; then
4984 CFLAGS=$ac_save_CFLAGS
4985 elif test $ac_cv_prog_cc_g = yes; then
4986 if test "$GCC" = yes; then
4987 CFLAGS="-g -O2"
4988 else
4989 CFLAGS="-g"
4990 fi
4991 else
4992 if test "$GCC" = yes; then
4993 CFLAGS="-O2"
4994 else
4995 CFLAGS=
4996 fi
4997 fi
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4999 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5000 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 ac_cv_prog_cc_c89=no
5004 ac_save_CC=$CC
5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h. */
5007 #include <stdarg.h>
5008 #include <stdio.h>
5009 #include <sys/types.h>
5010 #include <sys/stat.h>
5011 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5012 struct buf { int x; };
5013 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5014 static char *e (p, i)
5015 char **p;
5016 int i;
5017 {
5018 return p[i];
5019 }
5020 static char *f (char * (*g) (char **, int), char **p, ...)
5021 {
5022 char *s;
5023 va_list v;
5024 va_start (v,p);
5025 s = g (p, va_arg (v,int));
5026 va_end (v);
5027 return s;
5028 }
5029
5030 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5031 function prototypes and stuff, but not '\xHH' hex character constants.
5032 These don't provoke an error unfortunately, instead are silently treated
5033 as 'x'. The following induces an error, until -std is added to get
5034 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5035 array size at least. It's necessary to write '\x00'==0 to get something
5036 that's true only with -std. */
5037 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5038
5039 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5040 inside strings and character constants. */
5041 #define FOO(x) 'x'
5042 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5043
5044 int test (int i, double x);
5045 struct s1 {int (*f) (int a);};
5046 struct s2 {int (*f) (double a);};
5047 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5048 int argc;
5049 char **argv;
5050 int
5051 main ()
5052 {
5053 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5054 ;
5055 return 0;
5056 }
5057 _ACEOF
5058 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5059 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5060 do
5061 CC="$ac_save_CC $ac_arg"
5062 if ac_fn_c_try_compile "$LINENO"; then :
5063 ac_cv_prog_cc_c89=$ac_arg
5064 fi
5065 rm -f core conftest.err conftest.$ac_objext
5066 test "x$ac_cv_prog_cc_c89" != "xno" && break
5067 done
5068 rm -f conftest.$ac_ext
5069 CC=$ac_save_CC
5070
5071 fi
5072 # AC_CACHE_VAL
5073 case "x$ac_cv_prog_cc_c89" in
5074 x)
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5076 $as_echo "none needed" >&6; } ;;
5077 xno)
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5079 $as_echo "unsupported" >&6; } ;;
5080 *)
5081 CC="$CC $ac_cv_prog_cc_c89"
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5083 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5084 esac
5085 if test "x$ac_cv_prog_cc_c89" != xno; then :
5086
5087 fi
5088
5089 ac_ext=c
5090 ac_cpp='$CPP $CPPFLAGS'
5091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5094
5095 depcc="$CC" am_compiler_list=
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5098 $as_echo_n "checking dependency style of $depcc... " >&6; }
5099 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5103 # We make a subdir and do the tests there. Otherwise we can end up
5104 # making bogus files that we don't know about and never remove. For
5105 # instance it was reported that on HP-UX the gcc test will end up
5106 # making a dummy file named `D' -- because `-MD' means `put the output
5107 # in D'.
5108 mkdir conftest.dir
5109 # Copy depcomp to subdir because otherwise we won't find it if we're
5110 # using a relative directory.
5111 cp "$am_depcomp" conftest.dir
5112 cd conftest.dir
5113 # We will build objects and dependencies in a subdirectory because
5114 # it helps to detect inapplicable dependency modes. For instance
5115 # both Tru64's cc and ICC support -MD to output dependencies as a
5116 # side effect of compilation, but ICC will put the dependencies in
5117 # the current directory while Tru64 will put them in the object
5118 # directory.
5119 mkdir sub
5120
5121 am_cv_CC_dependencies_compiler_type=none
5122 if test "$am_compiler_list" = ""; then
5123 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5124 fi
5125 am__universal=false
5126 case " $depcc " in #(
5127 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5128 esac
5129
5130 for depmode in $am_compiler_list; do
5131 # Setup a source with many dependencies, because some compilers
5132 # like to wrap large dependency lists on column 80 (with \), and
5133 # we should not choose a depcomp mode which is confused by this.
5134 #
5135 # We need to recreate these files for each test, as the compiler may
5136 # overwrite some of them when testing with obscure command lines.
5137 # This happens at least with the AIX C compiler.
5138 : > sub/conftest.c
5139 for i in 1 2 3 4 5 6; do
5140 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5141 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5142 # Solaris 8's {/usr,}/bin/sh.
5143 touch sub/conftst$i.h
5144 done
5145 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5146
5147 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5148 # mode. It turns out that the SunPro C++ compiler does not properly
5149 # handle `-M -o', and we need to detect this. Also, some Intel
5150 # versions had trouble with output in subdirs
5151 am__obj=sub/conftest.${OBJEXT-o}
5152 am__minus_obj="-o $am__obj"
5153 case $depmode in
5154 gcc)
5155 # This depmode causes a compiler race in universal mode.
5156 test "$am__universal" = false || continue
5157 ;;
5158 nosideeffect)
5159 # after this tag, mechanisms are not by side-effect, so they'll
5160 # only be used when explicitly requested
5161 if test "x$enable_dependency_tracking" = xyes; then
5162 continue
5163 else
5164 break
5165 fi
5166 ;;
5167 msvisualcpp | msvcmsys)
5168 # This compiler won't grok `-c -o', but also, the minuso test has
5169 # not run yet. These depmodes are late enough in the game, and
5170 # so weak that their functioning should not be impacted.
5171 am__obj=conftest.${OBJEXT-o}
5172 am__minus_obj=
5173 ;;
5174 none) break ;;
5175 esac
5176 if depmode=$depmode \
5177 source=sub/conftest.c object=$am__obj \
5178 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5179 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5180 >/dev/null 2>conftest.err &&
5181 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5182 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5183 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5184 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5185 # icc doesn't choke on unknown options, it will just issue warnings
5186 # or remarks (even with -Werror). So we grep stderr for any message
5187 # that says an option was ignored or not supported.
5188 # When given -MP, icc 7.0 and 7.1 complain thusly:
5189 # icc: Command line warning: ignoring option '-M'; no argument required
5190 # The diagnosis changed in icc 8.0:
5191 # icc: Command line remark: option '-MP' not supported
5192 if (grep 'ignoring option' conftest.err ||
5193 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5194 am_cv_CC_dependencies_compiler_type=$depmode
5195 break
5196 fi
5197 fi
5198 done
5199
5200 cd ..
5201 rm -rf conftest.dir
5202 else
5203 am_cv_CC_dependencies_compiler_type=none
5204 fi
5205
5206 fi
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5208 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5209 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5210
5211 if
5212 test "x$enable_dependency_tracking" != xno \
5213 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5214 am__fastdepCC_TRUE=
5215 am__fastdepCC_FALSE='#'
5216 else
5217 am__fastdepCC_TRUE='#'
5218 am__fastdepCC_FALSE=
5219 fi
5220
5221
5222 ac_ext=cpp
5223 ac_cpp='$CXXCPP $CPPFLAGS'
5224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5227 if test -z "$CXX"; then
5228 if test -n "$CCC"; then
5229 CXX=$CCC
5230 else
5231 if test -n "$ac_tool_prefix"; then
5232 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5233 do
5234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if test "${ac_cv_prog_CXX+set}" = set; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 if test -n "$CXX"; then
5242 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5243 else
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5251 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255 done
5256 done
5257 IFS=$as_save_IFS
5258
5259 fi
5260 fi
5261 CXX=$ac_cv_prog_CXX
5262 if test -n "$CXX"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5264 $as_echo "$CXX" >&6; }
5265 else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5268 fi
5269
5270
5271 test -n "$CXX" && break
5272 done
5273 fi
5274 if test -z "$CXX"; then
5275 ac_ct_CXX=$CXX
5276 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5277 do
5278 # Extract the first word of "$ac_prog", so it can be a program name with args.
5279 set dummy $ac_prog; ac_word=$2
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 $as_echo_n "checking for $ac_word... " >&6; }
5282 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 if test -n "$ac_ct_CXX"; then
5286 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5290 do
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5295 ac_cv_prog_ac_ct_CXX="$ac_prog"
5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5298 fi
5299 done
5300 done
5301 IFS=$as_save_IFS
5302
5303 fi
5304 fi
5305 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5306 if test -n "$ac_ct_CXX"; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5308 $as_echo "$ac_ct_CXX" >&6; }
5309 else
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5312 fi
5313
5314
5315 test -n "$ac_ct_CXX" && break
5316 done
5317
5318 if test "x$ac_ct_CXX" = x; then
5319 CXX="g++"
5320 else
5321 case $cross_compiling:$ac_tool_warned in
5322 yes:)
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5325 ac_tool_warned=yes ;;
5326 esac
5327 CXX=$ac_ct_CXX
5328 fi
5329 fi
5330
5331 fi
5332 fi
5333 # Provide some information about the compiler.
5334 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5335 set X $ac_compile
5336 ac_compiler=$2
5337 for ac_option in --version -v -V -qversion; do
5338 { { ac_try="$ac_compiler $ac_option >&5"
5339 case "(($ac_try" in
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5342 esac
5343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5344 $as_echo "$ac_try_echo"; } >&5
5345 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5346 ac_status=$?
5347 if test -s conftest.err; then
5348 sed '10a\
5349 ... rest of stderr output deleted ...
5350 10q' conftest.err >conftest.er1
5351 cat conftest.er1 >&5
5352 rm -f conftest.er1 conftest.err
5353 fi
5354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5355 test $ac_status = 0; }
5356 done
5357
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5359 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5360 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h. */
5365
5366 int
5367 main ()
5368 {
5369 #ifndef __GNUC__
5370 choke me
5371 #endif
5372
5373 ;
5374 return 0;
5375 }
5376 _ACEOF
5377 if ac_fn_cxx_try_compile "$LINENO"; then :
5378 ac_compiler_gnu=yes
5379 else
5380 ac_compiler_gnu=no
5381 fi
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5384
5385 fi
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5387 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5388 if test $ac_compiler_gnu = yes; then
5389 GXX=yes
5390 else
5391 GXX=
5392 fi
5393 ac_test_CXXFLAGS=${CXXFLAGS+set}
5394 ac_save_CXXFLAGS=$CXXFLAGS
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5396 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5397 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5401 ac_cxx_werror_flag=yes
5402 ac_cv_prog_cxx_g=no
5403 CXXFLAGS="-g"
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5406
5407 int
5408 main ()
5409 {
5410
5411 ;
5412 return 0;
5413 }
5414 _ACEOF
5415 if ac_fn_cxx_try_compile "$LINENO"; then :
5416 ac_cv_prog_cxx_g=yes
5417 else
5418 CXXFLAGS=""
5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5421
5422 int
5423 main ()
5424 {
5425
5426 ;
5427 return 0;
5428 }
5429 _ACEOF
5430 if ac_fn_cxx_try_compile "$LINENO"; then :
5431
5432 else
5433 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5434 CXXFLAGS="-g"
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5437
5438 int
5439 main ()
5440 {
5441
5442 ;
5443 return 0;
5444 }
5445 _ACEOF
5446 if ac_fn_cxx_try_compile "$LINENO"; then :
5447 ac_cv_prog_cxx_g=yes
5448 fi
5449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 fi
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 fi
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5455 fi
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5457 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5458 if test "$ac_test_CXXFLAGS" = set; then
5459 CXXFLAGS=$ac_save_CXXFLAGS
5460 elif test $ac_cv_prog_cxx_g = yes; then
5461 if test "$GXX" = yes; then
5462 CXXFLAGS="-g -O2"
5463 else
5464 CXXFLAGS="-g"
5465 fi
5466 else
5467 if test "$GXX" = yes; then
5468 CXXFLAGS="-O2"
5469 else
5470 CXXFLAGS=
5471 fi
5472 fi
5473 ac_ext=c
5474 ac_cpp='$CPP $CPPFLAGS'
5475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478
5479 depcc="$CXX" am_compiler_list=
5480
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5482 $as_echo_n "checking dependency style of $depcc... " >&6; }
5483 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5487 # We make a subdir and do the tests there. Otherwise we can end up
5488 # making bogus files that we don't know about and never remove. For
5489 # instance it was reported that on HP-UX the gcc test will end up
5490 # making a dummy file named `D' -- because `-MD' means `put the output
5491 # in D'.
5492 mkdir conftest.dir
5493 # Copy depcomp to subdir because otherwise we won't find it if we're
5494 # using a relative directory.
5495 cp "$am_depcomp" conftest.dir
5496 cd conftest.dir
5497 # We will build objects and dependencies in a subdirectory because
5498 # it helps to detect inapplicable dependency modes. For instance
5499 # both Tru64's cc and ICC support -MD to output dependencies as a
5500 # side effect of compilation, but ICC will put the dependencies in
5501 # the current directory while Tru64 will put them in the object
5502 # directory.
5503 mkdir sub
5504
5505 am_cv_CXX_dependencies_compiler_type=none
5506 if test "$am_compiler_list" = ""; then
5507 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5508 fi
5509 am__universal=false
5510 case " $depcc " in #(
5511 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5512 esac
5513
5514 for depmode in $am_compiler_list; do
5515 # Setup a source with many dependencies, because some compilers
5516 # like to wrap large dependency lists on column 80 (with \), and
5517 # we should not choose a depcomp mode which is confused by this.
5518 #
5519 # We need to recreate these files for each test, as the compiler may
5520 # overwrite some of them when testing with obscure command lines.
5521 # This happens at least with the AIX C compiler.
5522 : > sub/conftest.c
5523 for i in 1 2 3 4 5 6; do
5524 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5525 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5526 # Solaris 8's {/usr,}/bin/sh.
5527 touch sub/conftst$i.h
5528 done
5529 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5530
5531 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5532 # mode. It turns out that the SunPro C++ compiler does not properly
5533 # handle `-M -o', and we need to detect this. Also, some Intel
5534 # versions had trouble with output in subdirs
5535 am__obj=sub/conftest.${OBJEXT-o}
5536 am__minus_obj="-o $am__obj"
5537 case $depmode in
5538 gcc)
5539 # This depmode causes a compiler race in universal mode.
5540 test "$am__universal" = false || continue
5541 ;;
5542 nosideeffect)
5543 # after this tag, mechanisms are not by side-effect, so they'll
5544 # only be used when explicitly requested
5545 if test "x$enable_dependency_tracking" = xyes; then
5546 continue
5547 else
5548 break
5549 fi
5550 ;;
5551 msvisualcpp | msvcmsys)
5552 # This compiler won't grok `-c -o', but also, the minuso test has
5553 # not run yet. These depmodes are late enough in the game, and
5554 # so weak that their functioning should not be impacted.
5555 am__obj=conftest.${OBJEXT-o}
5556 am__minus_obj=
5557 ;;
5558 none) break ;;
5559 esac
5560 if depmode=$depmode \
5561 source=sub/conftest.c object=$am__obj \
5562 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5563 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5564 >/dev/null 2>conftest.err &&
5565 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5566 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5567 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5568 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5569 # icc doesn't choke on unknown options, it will just issue warnings
5570 # or remarks (even with -Werror). So we grep stderr for any message
5571 # that says an option was ignored or not supported.
5572 # When given -MP, icc 7.0 and 7.1 complain thusly:
5573 # icc: Command line warning: ignoring option '-M'; no argument required
5574 # The diagnosis changed in icc 8.0:
5575 # icc: Command line remark: option '-MP' not supported
5576 if (grep 'ignoring option' conftest.err ||
5577 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5578 am_cv_CXX_dependencies_compiler_type=$depmode
5579 break
5580 fi
5581 fi
5582 done
5583
5584 cd ..
5585 rm -rf conftest.dir
5586 else
5587 am_cv_CXX_dependencies_compiler_type=none
5588 fi
5589
5590 fi
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5592 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5593 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5594
5595 if
5596 test "x$enable_dependency_tracking" != xno \
5597 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5598 am__fastdepCXX_TRUE=
5599 am__fastdepCXX_FALSE='#'
5600 else
5601 am__fastdepCXX_TRUE='#'
5602 am__fastdepCXX_FALSE=
5603 fi
5604
5605
5606
5607
5608 if test "x$CC" != xcc; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5610 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5611 else
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5613 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5614 fi
5615 set dummy $CC; ac_cc=`$as_echo "$2" |
5616 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5617 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5622
5623 int
5624 main ()
5625 {
5626
5627 ;
5628 return 0;
5629 }
5630 _ACEOF
5631 # Make sure it works both with $CC and with simple cc.
5632 # We do the test twice because some compilers refuse to overwrite an
5633 # existing .o file with -o, though they will create one.
5634 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5635 rm -f conftest2.*
5636 if { { case "(($ac_try" in
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5639 esac
5640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5641 $as_echo "$ac_try_echo"; } >&5
5642 (eval "$ac_try") 2>&5
5643 ac_status=$?
5644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5645 test $ac_status = 0; } &&
5646 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649 esac
5650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5651 $as_echo "$ac_try_echo"; } >&5
5652 (eval "$ac_try") 2>&5
5653 ac_status=$?
5654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5655 test $ac_status = 0; };
5656 then
5657 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5658 if test "x$CC" != xcc; then
5659 # Test first that cc exists at all.
5660 if { ac_try='cc -c conftest.$ac_ext >&5'
5661 { { case "(($ac_try" in
5662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663 *) ac_try_echo=$ac_try;;
5664 esac
5665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5666 $as_echo "$ac_try_echo"; } >&5
5667 (eval "$ac_try") 2>&5
5668 ac_status=$?
5669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5670 test $ac_status = 0; }; }; then
5671 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5672 rm -f conftest2.*
5673 if { { case "(($ac_try" in
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5676 esac
5677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5678 $as_echo "$ac_try_echo"; } >&5
5679 (eval "$ac_try") 2>&5
5680 ac_status=$?
5681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5682 test $ac_status = 0; } &&
5683 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686 esac
5687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5688 $as_echo "$ac_try_echo"; } >&5
5689 (eval "$ac_try") 2>&5
5690 ac_status=$?
5691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5692 test $ac_status = 0; };
5693 then
5694 # cc works too.
5695 :
5696 else
5697 # cc exists but doesn't like -o.
5698 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5699 fi
5700 fi
5701 fi
5702 else
5703 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5704 fi
5705 rm -f core conftest*
5706
5707 fi
5708 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5710 $as_echo "yes" >&6; }
5711 else
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713 $as_echo "no" >&6; }
5714
5715 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5716
5717 fi
5718
5719 # FIXME: we rely on the cache variable name because
5720 # there is no other way.
5721 set dummy $CC
5722 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5723 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5724 if test "$am_t" != yes; then
5725 # Losing compiler, so override with the script.
5726 # FIXME: It is wrong to rewrite CC.
5727 # But if we don't then we get into trouble of one sort or another.
5728 # A longer-term fix would be to have automake use am__CC in this case,
5729 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5730 CC="$am_aux_dir/compile $CC"
5731 fi
5732
5733
5734
5735
5736
5737
5738 # Newer automakes demand CCAS and CCASFLAGS.
5739 : ${CCAS='$(CC)'}
5740 : ${CCASFLAGS='$(CFLAGS)'}
5741
5742
5743
5744 if test -n "$ac_tool_prefix"; then
5745 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5746 set dummy ${ac_tool_prefix}as; ac_word=$2
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748 $as_echo_n "checking for $ac_word... " >&6; }
5749 if test "${ac_cv_prog_AS+set}" = set; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 if test -n "$AS"; then
5753 ac_cv_prog_AS="$AS" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758 IFS=$as_save_IFS
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5762 ac_cv_prog_AS="${ac_tool_prefix}as"
5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 break 2
5765 fi
5766 done
5767 done
5768 IFS=$as_save_IFS
5769
5770 fi
5771 fi
5772 AS=$ac_cv_prog_AS
5773 if test -n "$AS"; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5775 $as_echo "$AS" >&6; }
5776 else
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 $as_echo "no" >&6; }
5779 fi
5780
5781
5782 fi
5783 if test -z "$ac_cv_prog_AS"; then
5784 ac_ct_AS=$AS
5785 # Extract the first word of "as", so it can be a program name with args.
5786 set dummy as; ac_word=$2
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788 $as_echo_n "checking for $ac_word... " >&6; }
5789 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5790 $as_echo_n "(cached) " >&6
5791 else
5792 if test -n "$ac_ct_AS"; then
5793 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5794 else
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 for as_dir in $PATH
5797 do
5798 IFS=$as_save_IFS
5799 test -z "$as_dir" && as_dir=.
5800 for ac_exec_ext in '' $ac_executable_extensions; do
5801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5802 ac_cv_prog_ac_ct_AS="as"
5803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804 break 2
5805 fi
5806 done
5807 done
5808 IFS=$as_save_IFS
5809
5810 fi
5811 fi
5812 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5813 if test -n "$ac_ct_AS"; then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5815 $as_echo "$ac_ct_AS" >&6; }
5816 else
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5819 fi
5820
5821 if test "x$ac_ct_AS" = x; then
5822 AS=""
5823 else
5824 case $cross_compiling:$ac_tool_warned in
5825 yes:)
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5828 ac_tool_warned=yes ;;
5829 esac
5830 AS=$ac_ct_AS
5831 fi
5832 else
5833 AS="$ac_cv_prog_AS"
5834 fi
5835
5836 if test -n "$ac_tool_prefix"; then
5837 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5838 set dummy ${ac_tool_prefix}ar; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if test "${ac_cv_prog_AR+set}" = set; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 if test -n "$AR"; then
5845 ac_cv_prog_AR="$AR" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854 ac_cv_prog_AR="${ac_tool_prefix}ar"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858 done
5859 done
5860 IFS=$as_save_IFS
5861
5862 fi
5863 fi
5864 AR=$ac_cv_prog_AR
5865 if test -n "$AR"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5867 $as_echo "$AR" >&6; }
5868 else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 fi
5872
5873
5874 fi
5875 if test -z "$ac_cv_prog_AR"; then
5876 ac_ct_AR=$AR
5877 # Extract the first word of "ar", so it can be a program name with args.
5878 set dummy ar; ac_word=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 if test -n "$ac_ct_AR"; then
5885 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5894 ac_cv_prog_ac_ct_AR="ar"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898 done
5899 done
5900 IFS=$as_save_IFS
5901
5902 fi
5903 fi
5904 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5905 if test -n "$ac_ct_AR"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5907 $as_echo "$ac_ct_AR" >&6; }
5908 else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5911 fi
5912
5913 if test "x$ac_ct_AR" = x; then
5914 AR=""
5915 else
5916 case $cross_compiling:$ac_tool_warned in
5917 yes:)
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920 ac_tool_warned=yes ;;
5921 esac
5922 AR=$ac_ct_AR
5923 fi
5924 else
5925 AR="$ac_cv_prog_AR"
5926 fi
5927
5928 if test -n "$ac_tool_prefix"; then
5929 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5930 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932 $as_echo_n "checking for $ac_word... " >&6; }
5933 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5935 else
5936 if test -n "$RANLIB"; then
5937 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5938 else
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH
5941 do
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5946 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 break 2
5949 fi
5950 done
5951 done
5952 IFS=$as_save_IFS
5953
5954 fi
5955 fi
5956 RANLIB=$ac_cv_prog_RANLIB
5957 if test -n "$RANLIB"; then
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5959 $as_echo "$RANLIB" >&6; }
5960 else
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962 $as_echo "no" >&6; }
5963 fi
5964
5965
5966 fi
5967 if test -z "$ac_cv_prog_RANLIB"; then
5968 ac_ct_RANLIB=$RANLIB
5969 # Extract the first word of "ranlib", so it can be a program name with args.
5970 set dummy ranlib; ac_word=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 if test -n "$ac_ct_RANLIB"; then
5977 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5978 else
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 for as_dir in $PATH
5981 do
5982 IFS=$as_save_IFS
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5986 ac_cv_prog_ac_ct_RANLIB="ranlib"
5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 break 2
5989 fi
5990 done
5991 done
5992 IFS=$as_save_IFS
5993
5994 fi
5995 fi
5996 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5997 if test -n "$ac_ct_RANLIB"; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5999 $as_echo "$ac_ct_RANLIB" >&6; }
6000 else
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002 $as_echo "no" >&6; }
6003 fi
6004
6005 if test "x$ac_ct_RANLIB" = x; then
6006 RANLIB=":"
6007 else
6008 case $cross_compiling:$ac_tool_warned in
6009 yes:)
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6012 ac_tool_warned=yes ;;
6013 esac
6014 RANLIB=$ac_ct_RANLIB
6015 fi
6016 else
6017 RANLIB="$ac_cv_prog_RANLIB"
6018 fi
6019
6020
6021 # Configure libtool
6022 enable_dlopen=yes
6023
6024
6025
6026 case `pwd` in
6027 *\ * | *\ *)
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6029 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6030 esac
6031
6032
6033
6034 macro_version='2.2.7a'
6035 macro_revision='1.3134'
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049 ltmain="$ac_aux_dir/ltmain.sh"
6050
6051 # Backslashify metacharacters that are still active within
6052 # double-quoted strings.
6053 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6054
6055 # Same as above, but do not quote variable references.
6056 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6057
6058 # Sed substitution to delay expansion of an escaped shell variable in a
6059 # double_quote_subst'ed string.
6060 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6061
6062 # Sed substitution to delay expansion of an escaped single quote.
6063 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6064
6065 # Sed substitution to avoid accidental globbing in evaled expressions
6066 no_glob_subst='s/\*/\\\*/g'
6067
6068 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6069 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6070 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6071
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6073 $as_echo_n "checking how to print strings... " >&6; }
6074 # Test print first, because it will be a builtin if present.
6075 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6076 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6077 ECHO='print -r --'
6078 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6079 ECHO='printf %s\n'
6080 else
6081 # Use this function as a fallback that always works.
6082 func_fallback_echo ()
6083 {
6084 eval 'cat <<_LTECHO_EOF
6085 $1
6086 _LTECHO_EOF'
6087 }
6088 ECHO='func_fallback_echo'
6089 fi
6090
6091 # func_echo_all arg...
6092 # Invoke $ECHO with all args, space-separated.
6093 func_echo_all ()
6094 {
6095 $ECHO ""
6096 }
6097
6098 case "$ECHO" in
6099 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6100 $as_echo "printf" >&6; } ;;
6101 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6102 $as_echo "print -r" >&6; } ;;
6103 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6104 $as_echo "cat" >&6; } ;;
6105 esac
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6121 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6122 if test "${ac_cv_path_SED+set}" = set; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6126 for ac_i in 1 2 3 4 5 6 7; do
6127 ac_script="$ac_script$as_nl$ac_script"
6128 done
6129 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6130 { ac_script=; unset ac_script;}
6131 if test -z "$SED"; then
6132 ac_path_SED_found=false
6133 # Loop through the user's path and test for each of PROGNAME-LIST
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6136 do
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_prog in sed gsed; do
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6142 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6143 # Check for GNU ac_path_SED and select it if it is found.
6144 # Check for GNU $ac_path_SED
6145 case `"$ac_path_SED" --version 2>&1` in
6146 *GNU*)
6147 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6148 *)
6149 ac_count=0
6150 $as_echo_n 0123456789 >"conftest.in"
6151 while :
6152 do
6153 cat "conftest.in" "conftest.in" >"conftest.tmp"
6154 mv "conftest.tmp" "conftest.in"
6155 cp "conftest.in" "conftest.nl"
6156 $as_echo '' >> "conftest.nl"
6157 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6158 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6159 as_fn_arith $ac_count + 1 && ac_count=$as_val
6160 if test $ac_count -gt ${ac_path_SED_max-0}; then
6161 # Best one so far, save it but keep looking for a better one
6162 ac_cv_path_SED="$ac_path_SED"
6163 ac_path_SED_max=$ac_count
6164 fi
6165 # 10*(2^10) chars as input seems more than enough
6166 test $ac_count -gt 10 && break
6167 done
6168 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6169 esac
6170
6171 $ac_path_SED_found && break 3
6172 done
6173 done
6174 done
6175 IFS=$as_save_IFS
6176 if test -z "$ac_cv_path_SED"; then
6177 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6178 fi
6179 else
6180 ac_cv_path_SED=$SED
6181 fi
6182
6183 fi
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6185 $as_echo "$ac_cv_path_SED" >&6; }
6186 SED="$ac_cv_path_SED"
6187 rm -f conftest.sed
6188
6189 test -z "$SED" && SED=sed
6190 Xsed="$SED -e 1s/^X//"
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6203 $as_echo_n "checking for fgrep... " >&6; }
6204 if test "${ac_cv_path_FGREP+set}" = set; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6208 then ac_cv_path_FGREP="$GREP -F"
6209 else
6210 if test -z "$FGREP"; then
6211 ac_path_FGREP_found=false
6212 # Loop through the user's path and test for each of PROGNAME-LIST
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6215 do
6216 IFS=$as_save_IFS
6217 test -z "$as_dir" && as_dir=.
6218 for ac_prog in fgrep; do
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6221 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6222 # Check for GNU ac_path_FGREP and select it if it is found.
6223 # Check for GNU $ac_path_FGREP
6224 case `"$ac_path_FGREP" --version 2>&1` in
6225 *GNU*)
6226 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6227 *)
6228 ac_count=0
6229 $as_echo_n 0123456789 >"conftest.in"
6230 while :
6231 do
6232 cat "conftest.in" "conftest.in" >"conftest.tmp"
6233 mv "conftest.tmp" "conftest.in"
6234 cp "conftest.in" "conftest.nl"
6235 $as_echo 'FGREP' >> "conftest.nl"
6236 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6238 as_fn_arith $ac_count + 1 && ac_count=$as_val
6239 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6240 # Best one so far, save it but keep looking for a better one
6241 ac_cv_path_FGREP="$ac_path_FGREP"
6242 ac_path_FGREP_max=$ac_count
6243 fi
6244 # 10*(2^10) chars as input seems more than enough
6245 test $ac_count -gt 10 && break
6246 done
6247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6248 esac
6249
6250 $ac_path_FGREP_found && break 3
6251 done
6252 done
6253 done
6254 IFS=$as_save_IFS
6255 if test -z "$ac_cv_path_FGREP"; then
6256 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6257 fi
6258 else
6259 ac_cv_path_FGREP=$FGREP
6260 fi
6261
6262 fi
6263 fi
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6265 $as_echo "$ac_cv_path_FGREP" >&6; }
6266 FGREP="$ac_cv_path_FGREP"
6267
6268
6269 test -z "$GREP" && GREP=grep
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289 # Check whether --with-gnu-ld was given.
6290 if test "${with_gnu_ld+set}" = set; then :
6291 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6292 else
6293 with_gnu_ld=no
6294 fi
6295
6296 ac_prog=ld
6297 if test "$GCC" = yes; then
6298 # Check if gcc -print-prog-name=ld gives a path.
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6300 $as_echo_n "checking for ld used by $CC... " >&6; }
6301 case $host in
6302 *-*-mingw*)
6303 # gcc leaves a trailing carriage return which upsets mingw
6304 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6305 *)
6306 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6307 esac
6308 case $ac_prog in
6309 # Accept absolute paths.
6310 [\\/]* | ?:[\\/]*)
6311 re_direlt='/[^/][^/]*/\.\./'
6312 # Canonicalize the pathname of ld
6313 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6314 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6315 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6316 done
6317 test -z "$LD" && LD="$ac_prog"
6318 ;;
6319 "")
6320 # If it fails, then pretend we aren't using GCC.
6321 ac_prog=ld
6322 ;;
6323 *)
6324 # If it is relative, then search for the first ld in PATH.
6325 with_gnu_ld=unknown
6326 ;;
6327 esac
6328 elif test "$with_gnu_ld" = yes; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6330 $as_echo_n "checking for GNU ld... " >&6; }
6331 else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6333 $as_echo_n "checking for non-GNU ld... " >&6; }
6334 fi
6335 if test "${lt_cv_path_LD+set}" = set; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 if test -z "$LD"; then
6339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6340 for ac_dir in $PATH; do
6341 IFS="$lt_save_ifs"
6342 test -z "$ac_dir" && ac_dir=.
6343 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6344 lt_cv_path_LD="$ac_dir/$ac_prog"
6345 # Check to see if the program is GNU ld. I'd rather use --version,
6346 # but apparently some variants of GNU ld only accept -v.
6347 # Break only if it was the GNU/non-GNU ld that we prefer.
6348 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6349 *GNU* | *'with BFD'*)
6350 test "$with_gnu_ld" != no && break
6351 ;;
6352 *)
6353 test "$with_gnu_ld" != yes && break
6354 ;;
6355 esac
6356 fi
6357 done
6358 IFS="$lt_save_ifs"
6359 else
6360 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6361 fi
6362 fi
6363
6364 LD="$lt_cv_path_LD"
6365 if test -n "$LD"; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6367 $as_echo "$LD" >&6; }
6368 else
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6371 fi
6372 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6374 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6375 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6379 case `$LD -v 2>&1 </dev/null` in
6380 *GNU* | *'with BFD'*)
6381 lt_cv_prog_gnu_ld=yes
6382 ;;
6383 *)
6384 lt_cv_prog_gnu_ld=no
6385 ;;
6386 esac
6387 fi
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6389 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6390 with_gnu_ld=$lt_cv_prog_gnu_ld
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6401 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6402 if test "${lt_cv_path_NM+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
6404 else
6405 if test -n "$NM"; then
6406 # Let the user override the test.
6407 lt_cv_path_NM="$NM"
6408 else
6409 lt_nm_to_check="${ac_tool_prefix}nm"
6410 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6411 lt_nm_to_check="$lt_nm_to_check nm"
6412 fi
6413 for lt_tmp_nm in $lt_nm_to_check; do
6414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6415 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6416 IFS="$lt_save_ifs"
6417 test -z "$ac_dir" && ac_dir=.
6418 tmp_nm="$ac_dir/$lt_tmp_nm"
6419 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6420 # Check to see if the nm accepts a BSD-compat flag.
6421 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6422 # nm: unknown option "B" ignored
6423 # Tru64's nm complains that /dev/null is an invalid object file
6424 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6425 */dev/null* | *'Invalid file or object type'*)
6426 lt_cv_path_NM="$tmp_nm -B"
6427 break
6428 ;;
6429 *)
6430 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6431 */dev/null*)
6432 lt_cv_path_NM="$tmp_nm -p"
6433 break
6434 ;;
6435 *)
6436 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6437 continue # so that we can try to find one that supports BSD flags
6438 ;;
6439 esac
6440 ;;
6441 esac
6442 fi
6443 done
6444 IFS="$lt_save_ifs"
6445 done
6446 : ${lt_cv_path_NM=no}
6447 fi
6448 fi
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6450 $as_echo "$lt_cv_path_NM" >&6; }
6451 if test "$lt_cv_path_NM" != "no"; then
6452 NM="$lt_cv_path_NM"
6453 else
6454 # Didn't find any BSD compatible name lister, look for dumpbin.
6455 if test -n "$DUMPBIN"; then :
6456 # Let the user override the test.
6457 else
6458 if test -n "$ac_tool_prefix"; then
6459 for ac_prog in dumpbin "link -dump"
6460 do
6461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464 $as_echo_n "checking for $ac_word... " >&6; }
6465 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6466 $as_echo_n "(cached) " >&6
6467 else
6468 if test -n "$DUMPBIN"; then
6469 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6470 else
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 for as_dir in $PATH
6473 do
6474 IFS=$as_save_IFS
6475 test -z "$as_dir" && as_dir=.
6476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6478 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 break 2
6481 fi
6482 done
6483 done
6484 IFS=$as_save_IFS
6485
6486 fi
6487 fi
6488 DUMPBIN=$ac_cv_prog_DUMPBIN
6489 if test -n "$DUMPBIN"; then
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6491 $as_echo "$DUMPBIN" >&6; }
6492 else
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494 $as_echo "no" >&6; }
6495 fi
6496
6497
6498 test -n "$DUMPBIN" && break
6499 done
6500 fi
6501 if test -z "$DUMPBIN"; then
6502 ac_ct_DUMPBIN=$DUMPBIN
6503 for ac_prog in dumpbin "link -dump"
6504 do
6505 # Extract the first word of "$ac_prog", so it can be a program name with args.
6506 set dummy $ac_prog; ac_word=$2
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 if test -n "$ac_ct_DUMPBIN"; then
6513 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6514 else
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6517 do
6518 IFS=$as_save_IFS
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6522 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 break 2
6525 fi
6526 done
6527 done
6528 IFS=$as_save_IFS
6529
6530 fi
6531 fi
6532 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6533 if test -n "$ac_ct_DUMPBIN"; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6535 $as_echo "$ac_ct_DUMPBIN" >&6; }
6536 else
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6539 fi
6540
6541
6542 test -n "$ac_ct_DUMPBIN" && break
6543 done
6544
6545 if test "x$ac_ct_DUMPBIN" = x; then
6546 DUMPBIN=":"
6547 else
6548 case $cross_compiling:$ac_tool_warned in
6549 yes:)
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6552 ac_tool_warned=yes ;;
6553 esac
6554 DUMPBIN=$ac_ct_DUMPBIN
6555 fi
6556 fi
6557
6558 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6559 *COFF*)
6560 DUMPBIN="$DUMPBIN -symbols"
6561 ;;
6562 *)
6563 DUMPBIN=:
6564 ;;
6565 esac
6566 fi
6567
6568 if test "$DUMPBIN" != ":"; then
6569 NM="$DUMPBIN"
6570 fi
6571 fi
6572 test -z "$NM" && NM=nm
6573
6574
6575
6576
6577
6578
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6580 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6581 if test "${lt_cv_nm_interface+set}" = set; then :
6582 $as_echo_n "(cached) " >&6
6583 else
6584 lt_cv_nm_interface="BSD nm"
6585 echo "int some_variable = 0;" > conftest.$ac_ext
6586 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6587 (eval "$ac_compile" 2>conftest.err)
6588 cat conftest.err >&5
6589 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6590 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6591 cat conftest.err >&5
6592 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6593 cat conftest.out >&5
6594 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6595 lt_cv_nm_interface="MS dumpbin"
6596 fi
6597 rm -f conftest*
6598 fi
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6600 $as_echo "$lt_cv_nm_interface" >&6; }
6601
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6603 $as_echo_n "checking whether ln -s works... " >&6; }
6604 LN_S=$as_ln_s
6605 if test "$LN_S" = "ln -s"; then
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6607 $as_echo "yes" >&6; }
6608 else
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6610 $as_echo "no, using $LN_S" >&6; }
6611 fi
6612
6613 # find the maximum length of command line arguments
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6615 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6616 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 i=0
6620 teststring="ABCD"
6621
6622 case $build_os in
6623 msdosdjgpp*)
6624 # On DJGPP, this test can blow up pretty badly due to problems in libc
6625 # (any single argument exceeding 2000 bytes causes a buffer overrun
6626 # during glob expansion). Even if it were fixed, the result of this
6627 # check would be larger than it should be.
6628 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6629 ;;
6630
6631 gnu*)
6632 # Under GNU Hurd, this test is not required because there is
6633 # no limit to the length of command line arguments.
6634 # Libtool will interpret -1 as no limit whatsoever
6635 lt_cv_sys_max_cmd_len=-1;
6636 ;;
6637
6638 cygwin* | mingw* | cegcc*)
6639 # On Win9x/ME, this test blows up -- it succeeds, but takes
6640 # about 5 minutes as the teststring grows exponentially.
6641 # Worse, since 9x/ME are not pre-emptively multitasking,
6642 # you end up with a "frozen" computer, even though with patience
6643 # the test eventually succeeds (with a max line length of 256k).
6644 # Instead, let's just punt: use the minimum linelength reported by
6645 # all of the supported platforms: 8192 (on NT/2K/XP).
6646 lt_cv_sys_max_cmd_len=8192;
6647 ;;
6648
6649 mint*)
6650 # On MiNT this can take a long time and run out of memory.
6651 lt_cv_sys_max_cmd_len=8192;
6652 ;;
6653
6654 amigaos*)
6655 # On AmigaOS with pdksh, this test takes hours, literally.
6656 # So we just punt and use a minimum line length of 8192.
6657 lt_cv_sys_max_cmd_len=8192;
6658 ;;
6659
6660 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6661 # This has been around since 386BSD, at least. Likely further.
6662 if test -x /sbin/sysctl; then
6663 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6664 elif test -x /usr/sbin/sysctl; then
6665 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6666 else
6667 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6668 fi
6669 # And add a safety zone
6670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6672 ;;
6673
6674 interix*)
6675 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6676 lt_cv_sys_max_cmd_len=196608
6677 ;;
6678
6679 osf*)
6680 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6681 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6682 # nice to cause kernel panics so lets avoid the loop below.
6683 # First set a reasonable default.
6684 lt_cv_sys_max_cmd_len=16384
6685 #
6686 if test -x /sbin/sysconfig; then
6687 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6688 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6689 esac
6690 fi
6691 ;;
6692 sco3.2v5*)
6693 lt_cv_sys_max_cmd_len=102400
6694 ;;
6695 sysv5* | sco5v6* | sysv4.2uw2*)
6696 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6697 if test -n "$kargmax"; then
6698 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6699 else
6700 lt_cv_sys_max_cmd_len=32768
6701 fi
6702 ;;
6703 *)
6704 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6705 if test -n "$lt_cv_sys_max_cmd_len"; then
6706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6707 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6708 else
6709 # Make teststring a little bigger before we do anything with it.
6710 # a 1K string should be a reasonable start.
6711 for i in 1 2 3 4 5 6 7 8 ; do
6712 teststring=$teststring$teststring
6713 done
6714 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6715 # If test is not a shell built-in, we'll probably end up computing a
6716 # maximum length that is only half of the actual maximum length, but
6717 # we can't tell.
6718 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6719 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6720 test $i != 17 # 1/2 MB should be enough
6721 do
6722 i=`expr $i + 1`
6723 teststring=$teststring$teststring
6724 done
6725 # Only check the string length outside the loop.
6726 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6727 teststring=
6728 # Add a significant safety factor because C++ compilers can tack on
6729 # massive amounts of additional arguments before passing them to the
6730 # linker. It appears as though 1/2 is a usable value.
6731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6732 fi
6733 ;;
6734 esac
6735
6736 fi
6737
6738 if test -n $lt_cv_sys_max_cmd_len ; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6740 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6741 else
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6743 $as_echo "none" >&6; }
6744 fi
6745 max_cmd_len=$lt_cv_sys_max_cmd_len
6746
6747
6748
6749
6750
6751
6752 : ${CP="cp -f"}
6753 : ${MV="mv -f"}
6754 : ${RM="rm -f"}
6755
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6757 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6758 # Try some XSI features
6759 xsi_shell=no
6760 ( _lt_dummy="a/b/c"
6761 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6762 = c,a/b,, \
6763 && eval 'test $(( 1 + 1 )) -eq 2 \
6764 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6765 && xsi_shell=yes
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6767 $as_echo "$xsi_shell" >&6; }
6768
6769
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6771 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6772 lt_shell_append=no
6773 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6774 >/dev/null 2>&1 \
6775 && lt_shell_append=yes
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6777 $as_echo "$lt_shell_append" >&6; }
6778
6779
6780 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6781 lt_unset=unset
6782 else
6783 lt_unset=false
6784 fi
6785
6786
6787
6788
6789
6790 # test EBCDIC or ASCII
6791 case `echo X|tr X '\101'` in
6792 A) # ASCII based system
6793 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6794 lt_SP2NL='tr \040 \012'
6795 lt_NL2SP='tr \015\012 \040\040'
6796 ;;
6797 *) # EBCDIC based system
6798 lt_SP2NL='tr \100 \n'
6799 lt_NL2SP='tr \r\n \100\100'
6800 ;;
6801 esac
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6812 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6813 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 lt_cv_ld_reload_flag='-r'
6817 fi
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6819 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6820 reload_flag=$lt_cv_ld_reload_flag
6821 case $reload_flag in
6822 "" | " "*) ;;
6823 *) reload_flag=" $reload_flag" ;;
6824 esac
6825 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6826 case $host_os in
6827 darwin*)
6828 if test "$GCC" = yes; then
6829 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6830 else
6831 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6832 fi
6833 ;;
6834 esac
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844 if test -n "$ac_tool_prefix"; then
6845 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6846 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848 $as_echo_n "checking for $ac_word... " >&6; }
6849 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 if test -n "$OBJDUMP"; then
6853 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6854 else
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 for as_dir in $PATH
6857 do
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6862 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 break 2
6865 fi
6866 done
6867 done
6868 IFS=$as_save_IFS
6869
6870 fi
6871 fi
6872 OBJDUMP=$ac_cv_prog_OBJDUMP
6873 if test -n "$OBJDUMP"; then
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6875 $as_echo "$OBJDUMP" >&6; }
6876 else
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878 $as_echo "no" >&6; }
6879 fi
6880
6881
6882 fi
6883 if test -z "$ac_cv_prog_OBJDUMP"; then
6884 ac_ct_OBJDUMP=$OBJDUMP
6885 # Extract the first word of "objdump", so it can be a program name with args.
6886 set dummy objdump; ac_word=$2
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 if test -n "$ac_ct_OBJDUMP"; then
6893 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6894 else
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 for as_dir in $PATH
6897 do
6898 IFS=$as_save_IFS
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6902 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 break 2
6905 fi
6906 done
6907 done
6908 IFS=$as_save_IFS
6909
6910 fi
6911 fi
6912 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6913 if test -n "$ac_ct_OBJDUMP"; then
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6915 $as_echo "$ac_ct_OBJDUMP" >&6; }
6916 else
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 $as_echo "no" >&6; }
6919 fi
6920
6921 if test "x$ac_ct_OBJDUMP" = x; then
6922 OBJDUMP="false"
6923 else
6924 case $cross_compiling:$ac_tool_warned in
6925 yes:)
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6928 ac_tool_warned=yes ;;
6929 esac
6930 OBJDUMP=$ac_ct_OBJDUMP
6931 fi
6932 else
6933 OBJDUMP="$ac_cv_prog_OBJDUMP"
6934 fi
6935
6936 test -z "$OBJDUMP" && OBJDUMP=objdump
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6947 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6948 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6949 $as_echo_n "(cached) " >&6
6950 else
6951 lt_cv_file_magic_cmd='$MAGIC_CMD'
6952 lt_cv_file_magic_test_file=
6953 lt_cv_deplibs_check_method='unknown'
6954 # Need to set the preceding variable on all platforms that support
6955 # interlibrary dependencies.
6956 # 'none' -- dependencies not supported.
6957 # `unknown' -- same as none, but documents that we really don't know.
6958 # 'pass_all' -- all dependencies passed with no checks.
6959 # 'test_compile' -- check by making test program.
6960 # 'file_magic [[regex]]' -- check by looking for files in library path
6961 # which responds to the $file_magic_cmd with a given extended regex.
6962 # If you have `file' or equivalent on your system and you're not sure
6963 # whether `pass_all' will *always* work, you probably want this one.
6964
6965 case $host_os in
6966 aix[4-9]*)
6967 lt_cv_deplibs_check_method=pass_all
6968 ;;
6969
6970 beos*)
6971 lt_cv_deplibs_check_method=pass_all
6972 ;;
6973
6974 bsdi[45]*)
6975 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6976 lt_cv_file_magic_cmd='/usr/bin/file -L'
6977 lt_cv_file_magic_test_file=/shlib/libc.so
6978 ;;
6979
6980 cygwin*)
6981 # func_win32_libid is a shell function defined in ltmain.sh
6982 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6983 lt_cv_file_magic_cmd='func_win32_libid'
6984 ;;
6985
6986 mingw* | pw32*)
6987 # Base MSYS/MinGW do not provide the 'file' command needed by
6988 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6989 # unless we find 'file', for example because we are cross-compiling.
6990 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6991 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6992 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6993 lt_cv_file_magic_cmd='func_win32_libid'
6994 else
6995 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6996 lt_cv_file_magic_cmd='$OBJDUMP -f'
6997 fi
6998 ;;
6999
7000 cegcc*)
7001 # use the weaker test based on 'objdump'. See mingw*.
7002 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7003 lt_cv_file_magic_cmd='$OBJDUMP -f'
7004 ;;
7005
7006 darwin* | rhapsody*)
7007 lt_cv_deplibs_check_method=pass_all
7008 ;;
7009
7010 freebsd* | dragonfly*)
7011 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7012 case $host_cpu in
7013 i*86 )
7014 # Not sure whether the presence of OpenBSD here was a mistake.
7015 # Let's accept both of them until this is cleared up.
7016 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7017 lt_cv_file_magic_cmd=/usr/bin/file
7018 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7019 ;;
7020 esac
7021 else
7022 lt_cv_deplibs_check_method=pass_all
7023 fi
7024 ;;
7025
7026 gnu*)
7027 lt_cv_deplibs_check_method=pass_all
7028 ;;
7029
7030 haiku*)
7031 lt_cv_deplibs_check_method=pass_all
7032 ;;
7033
7034 hpux10.20* | hpux11*)
7035 lt_cv_file_magic_cmd=/usr/bin/file
7036 case $host_cpu in
7037 ia64*)
7038 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7039 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7040 ;;
7041 hppa*64*)
7042 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]'
7043 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7044 ;;
7045 *)
7046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7047 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7048 ;;
7049 esac
7050 ;;
7051
7052 interix[3-9]*)
7053 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7055 ;;
7056
7057 irix5* | irix6* | nonstopux*)
7058 case $LD in
7059 *-32|*"-32 ") libmagic=32-bit;;
7060 *-n32|*"-n32 ") libmagic=N32;;
7061 *-64|*"-64 ") libmagic=64-bit;;
7062 *) libmagic=never-match;;
7063 esac
7064 lt_cv_deplibs_check_method=pass_all
7065 ;;
7066
7067 # This must be Linux ELF.
7068 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7069 lt_cv_deplibs_check_method=pass_all
7070 ;;
7071
7072 netbsd*)
7073 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7075 else
7076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7077 fi
7078 ;;
7079
7080 newos6*)
7081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7082 lt_cv_file_magic_cmd=/usr/bin/file
7083 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7084 ;;
7085
7086 *nto* | *qnx*)
7087 lt_cv_deplibs_check_method=pass_all
7088 ;;
7089
7090 openbsd*)
7091 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7093 else
7094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7095 fi
7096 ;;
7097
7098 osf3* | osf4* | osf5*)
7099 lt_cv_deplibs_check_method=pass_all
7100 ;;
7101
7102 rdos*)
7103 lt_cv_deplibs_check_method=pass_all
7104 ;;
7105
7106 solaris*)
7107 lt_cv_deplibs_check_method=pass_all
7108 ;;
7109
7110 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7111 lt_cv_deplibs_check_method=pass_all
7112 ;;
7113
7114 sysv4 | sysv4.3*)
7115 case $host_vendor in
7116 motorola)
7117 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]'
7118 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7119 ;;
7120 ncr)
7121 lt_cv_deplibs_check_method=pass_all
7122 ;;
7123 sequent)
7124 lt_cv_file_magic_cmd='/bin/file'
7125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7126 ;;
7127 sni)
7128 lt_cv_file_magic_cmd='/bin/file'
7129 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7130 lt_cv_file_magic_test_file=/lib/libc.so
7131 ;;
7132 siemens)
7133 lt_cv_deplibs_check_method=pass_all
7134 ;;
7135 pc)
7136 lt_cv_deplibs_check_method=pass_all
7137 ;;
7138 esac
7139 ;;
7140
7141 tpf*)
7142 lt_cv_deplibs_check_method=pass_all
7143 ;;
7144 esac
7145
7146 fi
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7148 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7149 file_magic_cmd=$lt_cv_file_magic_cmd
7150 deplibs_check_method=$lt_cv_deplibs_check_method
7151 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164 if test -n "$ac_tool_prefix"; then
7165 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7166 set dummy ${ac_tool_prefix}ar; ac_word=$2
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7168 $as_echo_n "checking for $ac_word... " >&6; }
7169 if test "${ac_cv_prog_AR+set}" = set; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 if test -n "$AR"; then
7173 ac_cv_prog_AR="$AR" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178 IFS=$as_save_IFS
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7182 ac_cv_prog_AR="${ac_tool_prefix}ar"
7183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 break 2
7185 fi
7186 done
7187 done
7188 IFS=$as_save_IFS
7189
7190 fi
7191 fi
7192 AR=$ac_cv_prog_AR
7193 if test -n "$AR"; then
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7195 $as_echo "$AR" >&6; }
7196 else
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 $as_echo "no" >&6; }
7199 fi
7200
7201
7202 fi
7203 if test -z "$ac_cv_prog_AR"; then
7204 ac_ct_AR=$AR
7205 # Extract the first word of "ar", so it can be a program name with args.
7206 set dummy ar; ac_word=$2
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7208 $as_echo_n "checking for $ac_word... " >&6; }
7209 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7210 $as_echo_n "(cached) " >&6
7211 else
7212 if test -n "$ac_ct_AR"; then
7213 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7214 else
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7217 do
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7222 ac_cv_prog_ac_ct_AR="ar"
7223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 break 2
7225 fi
7226 done
7227 done
7228 IFS=$as_save_IFS
7229
7230 fi
7231 fi
7232 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7233 if test -n "$ac_ct_AR"; then
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7235 $as_echo "$ac_ct_AR" >&6; }
7236 else
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238 $as_echo "no" >&6; }
7239 fi
7240
7241 if test "x$ac_ct_AR" = x; then
7242 AR="false"
7243 else
7244 case $cross_compiling:$ac_tool_warned in
7245 yes:)
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7248 ac_tool_warned=yes ;;
7249 esac
7250 AR=$ac_ct_AR
7251 fi
7252 else
7253 AR="$ac_cv_prog_AR"
7254 fi
7255
7256 test -z "$AR" && AR=ar
7257 test -z "$AR_FLAGS" && AR_FLAGS=cru
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269 if test -n "$ac_tool_prefix"; then
7270 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7271 set dummy ${ac_tool_prefix}strip; ac_word=$2
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7273 $as_echo_n "checking for $ac_word... " >&6; }
7274 if test "${ac_cv_prog_STRIP+set}" = set; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277 if test -n "$STRIP"; then
7278 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7279 else
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7282 do
7283 IFS=$as_save_IFS
7284 test -z "$as_dir" && as_dir=.
7285 for ac_exec_ext in '' $ac_executable_extensions; do
7286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7287 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 break 2
7290 fi
7291 done
7292 done
7293 IFS=$as_save_IFS
7294
7295 fi
7296 fi
7297 STRIP=$ac_cv_prog_STRIP
7298 if test -n "$STRIP"; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7300 $as_echo "$STRIP" >&6; }
7301 else
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7304 fi
7305
7306
7307 fi
7308 if test -z "$ac_cv_prog_STRIP"; then
7309 ac_ct_STRIP=$STRIP
7310 # Extract the first word of "strip", so it can be a program name with args.
7311 set dummy strip; ac_word=$2
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7313 $as_echo_n "checking for $ac_word... " >&6; }
7314 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7315 $as_echo_n "(cached) " >&6
7316 else
7317 if test -n "$ac_ct_STRIP"; then
7318 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7319 else
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 for as_dir in $PATH
7322 do
7323 IFS=$as_save_IFS
7324 test -z "$as_dir" && as_dir=.
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7327 ac_cv_prog_ac_ct_STRIP="strip"
7328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 break 2
7330 fi
7331 done
7332 done
7333 IFS=$as_save_IFS
7334
7335 fi
7336 fi
7337 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7338 if test -n "$ac_ct_STRIP"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7340 $as_echo "$ac_ct_STRIP" >&6; }
7341 else
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7344 fi
7345
7346 if test "x$ac_ct_STRIP" = x; then
7347 STRIP=":"
7348 else
7349 case $cross_compiling:$ac_tool_warned in
7350 yes:)
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7353 ac_tool_warned=yes ;;
7354 esac
7355 STRIP=$ac_ct_STRIP
7356 fi
7357 else
7358 STRIP="$ac_cv_prog_STRIP"
7359 fi
7360
7361 test -z "$STRIP" && STRIP=:
7362
7363
7364
7365
7366
7367
7368 if test -n "$ac_tool_prefix"; then
7369 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7370 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372 $as_echo_n "checking for $ac_word... " >&6; }
7373 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7374 $as_echo_n "(cached) " >&6
7375 else
7376 if test -n "$RANLIB"; then
7377 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7378 else
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH
7381 do
7382 IFS=$as_save_IFS
7383 test -z "$as_dir" && as_dir=.
7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7386 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 break 2
7389 fi
7390 done
7391 done
7392 IFS=$as_save_IFS
7393
7394 fi
7395 fi
7396 RANLIB=$ac_cv_prog_RANLIB
7397 if test -n "$RANLIB"; then
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7399 $as_echo "$RANLIB" >&6; }
7400 else
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402 $as_echo "no" >&6; }
7403 fi
7404
7405
7406 fi
7407 if test -z "$ac_cv_prog_RANLIB"; then
7408 ac_ct_RANLIB=$RANLIB
7409 # Extract the first word of "ranlib", so it can be a program name with args.
7410 set dummy ranlib; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7414 $as_echo_n "(cached) " >&6
7415 else
7416 if test -n "$ac_ct_RANLIB"; then
7417 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7418 else
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 for as_dir in $PATH
7421 do
7422 IFS=$as_save_IFS
7423 test -z "$as_dir" && as_dir=.
7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7426 ac_cv_prog_ac_ct_RANLIB="ranlib"
7427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 break 2
7429 fi
7430 done
7431 done
7432 IFS=$as_save_IFS
7433
7434 fi
7435 fi
7436 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7437 if test -n "$ac_ct_RANLIB"; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7439 $as_echo "$ac_ct_RANLIB" >&6; }
7440 else
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7443 fi
7444
7445 if test "x$ac_ct_RANLIB" = x; then
7446 RANLIB=":"
7447 else
7448 case $cross_compiling:$ac_tool_warned in
7449 yes:)
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7452 ac_tool_warned=yes ;;
7453 esac
7454 RANLIB=$ac_ct_RANLIB
7455 fi
7456 else
7457 RANLIB="$ac_cv_prog_RANLIB"
7458 fi
7459
7460 test -z "$RANLIB" && RANLIB=:
7461
7462
7463
7464
7465
7466
7467 # Determine commands to create old-style static archives.
7468 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7469 old_postinstall_cmds='chmod 644 $oldlib'
7470 old_postuninstall_cmds=
7471
7472 if test -n "$RANLIB"; then
7473 case $host_os in
7474 openbsd*)
7475 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7476 ;;
7477 *)
7478 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7479 ;;
7480 esac
7481 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7482 fi
7483
7484 case $host_os in
7485 darwin*)
7486 lock_old_archive_extraction=yes ;;
7487 *)
7488 lock_old_archive_extraction=no ;;
7489 esac
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529 # If no C compiler was specified, use CC.
7530 LTCC=${LTCC-"$CC"}
7531
7532 # If no C compiler flags were specified, use CFLAGS.
7533 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7534
7535 # Allow CC to be a program name with arguments.
7536 compiler=$CC
7537
7538
7539 # Check for command to grab the raw symbol name followed by C symbol from nm.
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7541 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7542 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7543 $as_echo_n "(cached) " >&6
7544 else
7545
7546 # These are sane defaults that work on at least a few old systems.
7547 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7548
7549 # Character class describing NM global symbol codes.
7550 symcode='[BCDEGRST]'
7551
7552 # Regexp to match symbols that can be accessed directly from C.
7553 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7554
7555 # Define system-specific variables.
7556 case $host_os in
7557 aix*)
7558 symcode='[BCDT]'
7559 ;;
7560 cygwin* | mingw* | pw32* | cegcc*)
7561 symcode='[ABCDGISTW]'
7562 ;;
7563 hpux*)
7564 if test "$host_cpu" = ia64; then
7565 symcode='[ABCDEGRST]'
7566 fi
7567 ;;
7568 irix* | nonstopux*)
7569 symcode='[BCDEGRST]'
7570 ;;
7571 osf*)
7572 symcode='[BCDEGQRST]'
7573 ;;
7574 solaris*)
7575 symcode='[BDRT]'
7576 ;;
7577 sco3.2v5*)
7578 symcode='[DT]'
7579 ;;
7580 sysv4.2uw2*)
7581 symcode='[DT]'
7582 ;;
7583 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7584 symcode='[ABDT]'
7585 ;;
7586 sysv4)
7587 symcode='[DFNSTU]'
7588 ;;
7589 esac
7590
7591 # If we're using GNU nm, then use its standard symbol codes.
7592 case `$NM -V 2>&1` in
7593 *GNU* | *'with BFD'*)
7594 symcode='[ABCDGIRSTW]' ;;
7595 esac
7596
7597 # Transform an extracted symbol line into a proper C declaration.
7598 # Some systems (esp. on ia64) link data and code symbols differently,
7599 # so use this general approach.
7600 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7601
7602 # Transform an extracted symbol line into symbol name and symbol address
7603 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7604 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7605
7606 # Handle CRLF in mingw tool chain
7607 opt_cr=
7608 case $build_os in
7609 mingw*)
7610 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7611 ;;
7612 esac
7613
7614 # Try without a prefix underscore, then with it.
7615 for ac_symprfx in "" "_"; do
7616
7617 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7618 symxfrm="\\1 $ac_symprfx\\2 \\2"
7619
7620 # Write the raw and C identifiers.
7621 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7622 # Fake it for dumpbin and say T for any non-static function
7623 # and D for any global variable.
7624 # Also find C++ and __fastcall symbols from MSVC++,
7625 # which start with @ or ?.
7626 lt_cv_sys_global_symbol_pipe="$AWK '"\
7627 " {last_section=section; section=\$ 3};"\
7628 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7629 " \$ 0!~/External *\|/{next};"\
7630 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7631 " {if(hide[section]) next};"\
7632 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7633 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7634 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7635 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7636 " ' prfx=^$ac_symprfx"
7637 else
7638 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7639 fi
7640
7641 # Check to see that the pipe works correctly.
7642 pipe_works=no
7643
7644 rm -f conftest*
7645 cat > conftest.$ac_ext <<_LT_EOF
7646 #ifdef __cplusplus
7647 extern "C" {
7648 #endif
7649 char nm_test_var;
7650 void nm_test_func(void);
7651 void nm_test_func(void){}
7652 #ifdef __cplusplus
7653 }
7654 #endif
7655 int main(){nm_test_var='a';nm_test_func();return(0);}
7656 _LT_EOF
7657
7658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7659 (eval $ac_compile) 2>&5
7660 ac_status=$?
7661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7662 test $ac_status = 0; }; then
7663 # Now try to grab the symbols.
7664 nlist=conftest.nm
7665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7666 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7667 ac_status=$?
7668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7669 test $ac_status = 0; } && test -s "$nlist"; then
7670 # Try sorting and uniquifying the output.
7671 if sort "$nlist" | uniq > "$nlist"T; then
7672 mv -f "$nlist"T "$nlist"
7673 else
7674 rm -f "$nlist"T
7675 fi
7676
7677 # Make sure that we snagged all the symbols we need.
7678 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7679 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7680 cat <<_LT_EOF > conftest.$ac_ext
7681 #ifdef __cplusplus
7682 extern "C" {
7683 #endif
7684
7685 _LT_EOF
7686 # Now generate the symbol file.
7687 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7688
7689 cat <<_LT_EOF >> conftest.$ac_ext
7690
7691 /* The mapping between symbol names and symbols. */
7692 const struct {
7693 const char *name;
7694 void *address;
7695 }
7696 lt__PROGRAM__LTX_preloaded_symbols[] =
7697 {
7698 { "@PROGRAM@", (void *) 0 },
7699 _LT_EOF
7700 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7701 cat <<\_LT_EOF >> conftest.$ac_ext
7702 {0, (void *) 0}
7703 };
7704
7705 /* This works around a problem in FreeBSD linker */
7706 #ifdef FREEBSD_WORKAROUND
7707 static const void *lt_preloaded_setup() {
7708 return lt__PROGRAM__LTX_preloaded_symbols;
7709 }
7710 #endif
7711
7712 #ifdef __cplusplus
7713 }
7714 #endif
7715 _LT_EOF
7716 # Now try linking the two files.
7717 mv conftest.$ac_objext conftstm.$ac_objext
7718 lt_save_LIBS="$LIBS"
7719 lt_save_CFLAGS="$CFLAGS"
7720 LIBS="conftstm.$ac_objext"
7721 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7723 (eval $ac_link) 2>&5
7724 ac_status=$?
7725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7726 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7727 pipe_works=yes
7728 fi
7729 LIBS="$lt_save_LIBS"
7730 CFLAGS="$lt_save_CFLAGS"
7731 else
7732 echo "cannot find nm_test_func in $nlist" >&5
7733 fi
7734 else
7735 echo "cannot find nm_test_var in $nlist" >&5
7736 fi
7737 else
7738 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7739 fi
7740 else
7741 echo "$progname: failed program was:" >&5
7742 cat conftest.$ac_ext >&5
7743 fi
7744 rm -rf conftest* conftst*
7745
7746 # Do not use the global_symbol_pipe unless it works.
7747 if test "$pipe_works" = yes; then
7748 break
7749 else
7750 lt_cv_sys_global_symbol_pipe=
7751 fi
7752 done
7753
7754 fi
7755
7756 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7757 lt_cv_sys_global_symbol_to_cdecl=
7758 fi
7759 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7761 $as_echo "failed" >&6; }
7762 else
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7764 $as_echo "ok" >&6; }
7765 fi
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788 # Check whether --enable-libtool-lock was given.
7789 if test "${enable_libtool_lock+set}" = set; then :
7790 enableval=$enable_libtool_lock;
7791 fi
7792
7793 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7794
7795 # Some flags need to be propagated to the compiler or linker for good
7796 # libtool support.
7797 case $host in
7798 ia64-*-hpux*)
7799 # Find out which ABI we are using.
7800 echo 'int i;' > conftest.$ac_ext
7801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7802 (eval $ac_compile) 2>&5
7803 ac_status=$?
7804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7805 test $ac_status = 0; }; then
7806 case `/usr/bin/file conftest.$ac_objext` in
7807 *ELF-32*)
7808 HPUX_IA64_MODE="32"
7809 ;;
7810 *ELF-64*)
7811 HPUX_IA64_MODE="64"
7812 ;;
7813 esac
7814 fi
7815 rm -rf conftest*
7816 ;;
7817 *-*-irix6*)
7818 # Find out which ABI we are using.
7819 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7821 (eval $ac_compile) 2>&5
7822 ac_status=$?
7823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7824 test $ac_status = 0; }; then
7825 if test "$lt_cv_prog_gnu_ld" = yes; then
7826 case `/usr/bin/file conftest.$ac_objext` in
7827 *32-bit*)
7828 LD="${LD-ld} -melf32bsmip"
7829 ;;
7830 *N32*)
7831 LD="${LD-ld} -melf32bmipn32"
7832 ;;
7833 *64-bit*)
7834 LD="${LD-ld} -melf64bmip"
7835 ;;
7836 esac
7837 else
7838 case `/usr/bin/file conftest.$ac_objext` in
7839 *32-bit*)
7840 LD="${LD-ld} -32"
7841 ;;
7842 *N32*)
7843 LD="${LD-ld} -n32"
7844 ;;
7845 *64-bit*)
7846 LD="${LD-ld} -64"
7847 ;;
7848 esac
7849 fi
7850 fi
7851 rm -rf conftest*
7852 ;;
7853
7854 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7855 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7856 # Find out which ABI we are using.
7857 echo 'int i;' > conftest.$ac_ext
7858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7859 (eval $ac_compile) 2>&5
7860 ac_status=$?
7861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7862 test $ac_status = 0; }; then
7863 case `/usr/bin/file conftest.o` in
7864 *32-bit*)
7865 case $host in
7866 x86_64-*kfreebsd*-gnu)
7867 LD="${LD-ld} -m elf_i386_fbsd"
7868 ;;
7869 x86_64-*linux*)
7870 case `/usr/bin/file conftest.o` in
7871 *x86-64*)
7872 LD="${LD-ld} -m elf32_x86_64"
7873 ;;
7874 *)
7875 LD="${LD-ld} -m elf_i386"
7876 ;;
7877 esac
7878 ;;
7879 powerpc64le-*linux*)
7880 LD="${LD-ld} -m elf32lppclinux"
7881 ;;
7882 powerpc64-*linux*)
7883 LD="${LD-ld} -m elf32ppclinux"
7884 ;;
7885 s390x-*linux*)
7886 LD="${LD-ld} -m elf_s390"
7887 ;;
7888 sparc64-*linux*)
7889 LD="${LD-ld} -m elf32_sparc"
7890 ;;
7891 esac
7892 ;;
7893 *64-bit*)
7894 case $host in
7895 x86_64-*kfreebsd*-gnu)
7896 LD="${LD-ld} -m elf_x86_64_fbsd"
7897 ;;
7898 x86_64-*linux*)
7899 LD="${LD-ld} -m elf_x86_64"
7900 ;;
7901 powerpcle-*linux*)
7902 LD="${LD-ld} -m elf64lppc"
7903 ;;
7904 powerpc-*linux*)
7905 LD="${LD-ld} -m elf64ppc"
7906 ;;
7907 s390*-*linux*|s390*-*tpf*)
7908 LD="${LD-ld} -m elf64_s390"
7909 ;;
7910 sparc*-*linux*)
7911 LD="${LD-ld} -m elf64_sparc"
7912 ;;
7913 esac
7914 ;;
7915 esac
7916 fi
7917 rm -rf conftest*
7918 ;;
7919
7920 *-*-sco3.2v5*)
7921 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7922 SAVE_CFLAGS="$CFLAGS"
7923 CFLAGS="$CFLAGS -belf"
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7925 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7926 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 ac_ext=c
7930 ac_cpp='$CPP $CPPFLAGS'
7931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7937
7938 int
7939 main ()
7940 {
7941
7942 ;
7943 return 0;
7944 }
7945 _ACEOF
7946 if ac_fn_c_try_link "$LINENO"; then :
7947 lt_cv_cc_needs_belf=yes
7948 else
7949 lt_cv_cc_needs_belf=no
7950 fi
7951 rm -f core conftest.err conftest.$ac_objext \
7952 conftest$ac_exeext conftest.$ac_ext
7953 ac_ext=c
7954 ac_cpp='$CPP $CPPFLAGS'
7955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7958
7959 fi
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7961 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7962 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7963 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7964 CFLAGS="$SAVE_CFLAGS"
7965 fi
7966 ;;
7967 sparc*-*solaris*)
7968 # Find out which ABI we are using.
7969 echo 'int i;' > conftest.$ac_ext
7970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7971 (eval $ac_compile) 2>&5
7972 ac_status=$?
7973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7974 test $ac_status = 0; }; then
7975 case `/usr/bin/file conftest.o` in
7976 *64-bit*)
7977 case $lt_cv_prog_gnu_ld in
7978 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7979 *)
7980 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7981 LD="${LD-ld} -64"
7982 fi
7983 ;;
7984 esac
7985 ;;
7986 esac
7987 fi
7988 rm -rf conftest*
7989 ;;
7990 esac
7991
7992 need_locks="$enable_libtool_lock"
7993
7994
7995 case $host_os in
7996 rhapsody* | darwin*)
7997 if test -n "$ac_tool_prefix"; then
7998 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7999 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8003 $as_echo_n "(cached) " >&6
8004 else
8005 if test -n "$DSYMUTIL"; then
8006 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8007 else
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 for as_dir in $PATH
8010 do
8011 IFS=$as_save_IFS
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8015 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017 break 2
8018 fi
8019 done
8020 done
8021 IFS=$as_save_IFS
8022
8023 fi
8024 fi
8025 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8026 if test -n "$DSYMUTIL"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8028 $as_echo "$DSYMUTIL" >&6; }
8029 else
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8032 fi
8033
8034
8035 fi
8036 if test -z "$ac_cv_prog_DSYMUTIL"; then
8037 ac_ct_DSYMUTIL=$DSYMUTIL
8038 # Extract the first word of "dsymutil", so it can be a program name with args.
8039 set dummy dsymutil; ac_word=$2
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 $as_echo_n "checking for $ac_word... " >&6; }
8042 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8043 $as_echo_n "(cached) " >&6
8044 else
8045 if test -n "$ac_ct_DSYMUTIL"; then
8046 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8047 else
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 for as_dir in $PATH
8050 do
8051 IFS=$as_save_IFS
8052 test -z "$as_dir" && as_dir=.
8053 for ac_exec_ext in '' $ac_executable_extensions; do
8054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8055 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8057 break 2
8058 fi
8059 done
8060 done
8061 IFS=$as_save_IFS
8062
8063 fi
8064 fi
8065 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8066 if test -n "$ac_ct_DSYMUTIL"; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8068 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8069 else
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8072 fi
8073
8074 if test "x$ac_ct_DSYMUTIL" = x; then
8075 DSYMUTIL=":"
8076 else
8077 case $cross_compiling:$ac_tool_warned in
8078 yes:)
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8081 ac_tool_warned=yes ;;
8082 esac
8083 DSYMUTIL=$ac_ct_DSYMUTIL
8084 fi
8085 else
8086 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8087 fi
8088
8089 if test -n "$ac_tool_prefix"; then
8090 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8091 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093 $as_echo_n "checking for $ac_word... " >&6; }
8094 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8095 $as_echo_n "(cached) " >&6
8096 else
8097 if test -n "$NMEDIT"; then
8098 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8099 else
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8102 do
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8107 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 break 2
8110 fi
8111 done
8112 done
8113 IFS=$as_save_IFS
8114
8115 fi
8116 fi
8117 NMEDIT=$ac_cv_prog_NMEDIT
8118 if test -n "$NMEDIT"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8120 $as_echo "$NMEDIT" >&6; }
8121 else
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 $as_echo "no" >&6; }
8124 fi
8125
8126
8127 fi
8128 if test -z "$ac_cv_prog_NMEDIT"; then
8129 ac_ct_NMEDIT=$NMEDIT
8130 # Extract the first word of "nmedit", so it can be a program name with args.
8131 set dummy nmedit; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 if test -n "$ac_ct_NMEDIT"; then
8138 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8139 else
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8142 do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8150 fi
8151 done
8152 done
8153 IFS=$as_save_IFS
8154
8155 fi
8156 fi
8157 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8158 if test -n "$ac_ct_NMEDIT"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8160 $as_echo "$ac_ct_NMEDIT" >&6; }
8161 else
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8164 fi
8165
8166 if test "x$ac_ct_NMEDIT" = x; then
8167 NMEDIT=":"
8168 else
8169 case $cross_compiling:$ac_tool_warned in
8170 yes:)
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8173 ac_tool_warned=yes ;;
8174 esac
8175 NMEDIT=$ac_ct_NMEDIT
8176 fi
8177 else
8178 NMEDIT="$ac_cv_prog_NMEDIT"
8179 fi
8180
8181 if test -n "$ac_tool_prefix"; then
8182 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8183 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185 $as_echo_n "checking for $ac_word... " >&6; }
8186 if test "${ac_cv_prog_LIPO+set}" = set; then :
8187 $as_echo_n "(cached) " >&6
8188 else
8189 if test -n "$LIPO"; then
8190 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8191 else
8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 for as_dir in $PATH
8194 do
8195 IFS=$as_save_IFS
8196 test -z "$as_dir" && as_dir=.
8197 for ac_exec_ext in '' $ac_executable_extensions; do
8198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8199 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8201 break 2
8202 fi
8203 done
8204 done
8205 IFS=$as_save_IFS
8206
8207 fi
8208 fi
8209 LIPO=$ac_cv_prog_LIPO
8210 if test -n "$LIPO"; then
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8212 $as_echo "$LIPO" >&6; }
8213 else
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 $as_echo "no" >&6; }
8216 fi
8217
8218
8219 fi
8220 if test -z "$ac_cv_prog_LIPO"; then
8221 ac_ct_LIPO=$LIPO
8222 # Extract the first word of "lipo", so it can be a program name with args.
8223 set dummy lipo; ac_word=$2
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 $as_echo_n "checking for $ac_word... " >&6; }
8226 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8229 if test -n "$ac_ct_LIPO"; then
8230 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8231 else
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 for as_dir in $PATH
8234 do
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8239 ac_cv_prog_ac_ct_LIPO="lipo"
8240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 break 2
8242 fi
8243 done
8244 done
8245 IFS=$as_save_IFS
8246
8247 fi
8248 fi
8249 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8250 if test -n "$ac_ct_LIPO"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8252 $as_echo "$ac_ct_LIPO" >&6; }
8253 else
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 $as_echo "no" >&6; }
8256 fi
8257
8258 if test "x$ac_ct_LIPO" = x; then
8259 LIPO=":"
8260 else
8261 case $cross_compiling:$ac_tool_warned in
8262 yes:)
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8265 ac_tool_warned=yes ;;
8266 esac
8267 LIPO=$ac_ct_LIPO
8268 fi
8269 else
8270 LIPO="$ac_cv_prog_LIPO"
8271 fi
8272
8273 if test -n "$ac_tool_prefix"; then
8274 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8275 set dummy ${ac_tool_prefix}otool; ac_word=$2
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277 $as_echo_n "checking for $ac_word... " >&6; }
8278 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 if test -n "$OTOOL"; then
8282 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8283 else
8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 for as_dir in $PATH
8286 do
8287 IFS=$as_save_IFS
8288 test -z "$as_dir" && as_dir=.
8289 for ac_exec_ext in '' $ac_executable_extensions; do
8290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8291 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8293 break 2
8294 fi
8295 done
8296 done
8297 IFS=$as_save_IFS
8298
8299 fi
8300 fi
8301 OTOOL=$ac_cv_prog_OTOOL
8302 if test -n "$OTOOL"; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8304 $as_echo "$OTOOL" >&6; }
8305 else
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307 $as_echo "no" >&6; }
8308 fi
8309
8310
8311 fi
8312 if test -z "$ac_cv_prog_OTOOL"; then
8313 ac_ct_OTOOL=$OTOOL
8314 # Extract the first word of "otool", so it can be a program name with args.
8315 set dummy otool; ac_word=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 if test -n "$ac_ct_OTOOL"; then
8322 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8323 else
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8326 do
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8331 ac_cv_prog_ac_ct_OTOOL="otool"
8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 break 2
8334 fi
8335 done
8336 done
8337 IFS=$as_save_IFS
8338
8339 fi
8340 fi
8341 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8342 if test -n "$ac_ct_OTOOL"; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8344 $as_echo "$ac_ct_OTOOL" >&6; }
8345 else
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347 $as_echo "no" >&6; }
8348 fi
8349
8350 if test "x$ac_ct_OTOOL" = x; then
8351 OTOOL=":"
8352 else
8353 case $cross_compiling:$ac_tool_warned in
8354 yes:)
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8357 ac_tool_warned=yes ;;
8358 esac
8359 OTOOL=$ac_ct_OTOOL
8360 fi
8361 else
8362 OTOOL="$ac_cv_prog_OTOOL"
8363 fi
8364
8365 if test -n "$ac_tool_prefix"; then
8366 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8367 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369 $as_echo_n "checking for $ac_word... " >&6; }
8370 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8371 $as_echo_n "(cached) " >&6
8372 else
8373 if test -n "$OTOOL64"; then
8374 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8375 else
8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377 for as_dir in $PATH
8378 do
8379 IFS=$as_save_IFS
8380 test -z "$as_dir" && as_dir=.
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8383 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385 break 2
8386 fi
8387 done
8388 done
8389 IFS=$as_save_IFS
8390
8391 fi
8392 fi
8393 OTOOL64=$ac_cv_prog_OTOOL64
8394 if test -n "$OTOOL64"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8396 $as_echo "$OTOOL64" >&6; }
8397 else
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8400 fi
8401
8402
8403 fi
8404 if test -z "$ac_cv_prog_OTOOL64"; then
8405 ac_ct_OTOOL64=$OTOOL64
8406 # Extract the first word of "otool64", so it can be a program name with args.
8407 set dummy otool64; ac_word=$2
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8409 $as_echo_n "checking for $ac_word... " >&6; }
8410 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8411 $as_echo_n "(cached) " >&6
8412 else
8413 if test -n "$ac_ct_OTOOL64"; then
8414 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8415 else
8416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417 for as_dir in $PATH
8418 do
8419 IFS=$as_save_IFS
8420 test -z "$as_dir" && as_dir=.
8421 for ac_exec_ext in '' $ac_executable_extensions; do
8422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8423 ac_cv_prog_ac_ct_OTOOL64="otool64"
8424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 break 2
8426 fi
8427 done
8428 done
8429 IFS=$as_save_IFS
8430
8431 fi
8432 fi
8433 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8434 if test -n "$ac_ct_OTOOL64"; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8436 $as_echo "$ac_ct_OTOOL64" >&6; }
8437 else
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439 $as_echo "no" >&6; }
8440 fi
8441
8442 if test "x$ac_ct_OTOOL64" = x; then
8443 OTOOL64=":"
8444 else
8445 case $cross_compiling:$ac_tool_warned in
8446 yes:)
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8449 ac_tool_warned=yes ;;
8450 esac
8451 OTOOL64=$ac_ct_OTOOL64
8452 fi
8453 else
8454 OTOOL64="$ac_cv_prog_OTOOL64"
8455 fi
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8484 $as_echo_n "checking for -single_module linker flag... " >&6; }
8485 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8486 $as_echo_n "(cached) " >&6
8487 else
8488 lt_cv_apple_cc_single_mod=no
8489 if test -z "${LT_MULTI_MODULE}"; then
8490 # By default we will add the -single_module flag. You can override
8491 # by either setting the environment variable LT_MULTI_MODULE
8492 # non-empty at configure time, or by adding -multi_module to the
8493 # link flags.
8494 rm -rf libconftest.dylib*
8495 echo "int foo(void){return 1;}" > conftest.c
8496 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8497 -dynamiclib -Wl,-single_module conftest.c" >&5
8498 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8499 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8500 _lt_result=$?
8501 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8502 lt_cv_apple_cc_single_mod=yes
8503 else
8504 cat conftest.err >&5
8505 fi
8506 rm -rf libconftest.dylib*
8507 rm -f conftest.*
8508 fi
8509 fi
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8511 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8513 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8514 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 lt_cv_ld_exported_symbols_list=no
8518 save_LDFLAGS=$LDFLAGS
8519 echo "_main" > conftest.sym
8520 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8523
8524 int
8525 main ()
8526 {
8527
8528 ;
8529 return 0;
8530 }
8531 _ACEOF
8532 if ac_fn_c_try_link "$LINENO"; then :
8533 lt_cv_ld_exported_symbols_list=yes
8534 else
8535 lt_cv_ld_exported_symbols_list=no
8536 fi
8537 rm -f core conftest.err conftest.$ac_objext \
8538 conftest$ac_exeext conftest.$ac_ext
8539 LDFLAGS="$save_LDFLAGS"
8540
8541 fi
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8543 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8545 $as_echo_n "checking for -force_load linker flag... " >&6; }
8546 if test "${lt_cv_ld_force_load+set}" = set; then :
8547 $as_echo_n "(cached) " >&6
8548 else
8549 lt_cv_ld_force_load=no
8550 cat > conftest.c << _LT_EOF
8551 int forced_loaded() { return 2;}
8552 _LT_EOF
8553 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8554 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8555 echo "$AR cru libconftest.a conftest.o" >&5
8556 $AR cru libconftest.a conftest.o 2>&5
8557 cat > conftest.c << _LT_EOF
8558 int main() { return 0;}
8559 _LT_EOF
8560 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8561 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8562 _lt_result=$?
8563 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8564 lt_cv_ld_force_load=yes
8565 else
8566 cat conftest.err >&5
8567 fi
8568 rm -f conftest.err libconftest.a conftest conftest.c
8569 rm -rf conftest.dSYM
8570
8571 fi
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8573 $as_echo "$lt_cv_ld_force_load" >&6; }
8574 case $host_os in
8575 rhapsody* | darwin1.[012])
8576 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8577 darwin1.*)
8578 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8579 darwin*) # darwin 5.x on
8580 # if running on 10.5 or later, the deployment target defaults
8581 # to the OS version, if on x86, and 10.4, the deployment
8582 # target defaults to 10.4. Don't you love it?
8583 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8584 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8585 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8586 10.[012]*)
8587 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8588 10.*)
8589 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8590 esac
8591 ;;
8592 esac
8593 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8594 _lt_dar_single_mod='$single_module'
8595 fi
8596 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8597 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8598 else
8599 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8600 fi
8601 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8602 _lt_dsymutil='~$DSYMUTIL $lib || :'
8603 else
8604 _lt_dsymutil=
8605 fi
8606 ;;
8607 esac
8608
8609 for ac_header in dlfcn.h
8610 do :
8611 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8612 "
8613 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8614 cat >>confdefs.h <<_ACEOF
8615 #define HAVE_DLFCN_H 1
8616 _ACEOF
8617
8618 fi
8619
8620 done
8621
8622
8623
8624
8625
8626
8627 # Set options
8628
8629
8630
8631
8632 enable_win32_dll=no
8633
8634
8635 # Check whether --enable-shared was given.
8636 if test "${enable_shared+set}" = set; then :
8637 enableval=$enable_shared; p=${PACKAGE-default}
8638 case $enableval in
8639 yes) enable_shared=yes ;;
8640 no) enable_shared=no ;;
8641 *)
8642 enable_shared=no
8643 # Look at the argument we got. We use all the common list separators.
8644 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8645 for pkg in $enableval; do
8646 IFS="$lt_save_ifs"
8647 if test "X$pkg" = "X$p"; then
8648 enable_shared=yes
8649 fi
8650 done
8651 IFS="$lt_save_ifs"
8652 ;;
8653 esac
8654 else
8655 enable_shared=yes
8656 fi
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666 # Check whether --enable-static was given.
8667 if test "${enable_static+set}" = set; then :
8668 enableval=$enable_static; p=${PACKAGE-default}
8669 case $enableval in
8670 yes) enable_static=yes ;;
8671 no) enable_static=no ;;
8672 *)
8673 enable_static=no
8674 # Look at the argument we got. We use all the common list separators.
8675 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8676 for pkg in $enableval; do
8677 IFS="$lt_save_ifs"
8678 if test "X$pkg" = "X$p"; then
8679 enable_static=yes
8680 fi
8681 done
8682 IFS="$lt_save_ifs"
8683 ;;
8684 esac
8685 else
8686 enable_static=yes
8687 fi
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698 # Check whether --with-pic was given.
8699 if test "${with_pic+set}" = set; then :
8700 withval=$with_pic; pic_mode="$withval"
8701 else
8702 pic_mode=default
8703 fi
8704
8705
8706 test -z "$pic_mode" && pic_mode=default
8707
8708
8709
8710
8711
8712
8713
8714 # Check whether --enable-fast-install was given.
8715 if test "${enable_fast_install+set}" = set; then :
8716 enableval=$enable_fast_install; p=${PACKAGE-default}
8717 case $enableval in
8718 yes) enable_fast_install=yes ;;
8719 no) enable_fast_install=no ;;
8720 *)
8721 enable_fast_install=no
8722 # Look at the argument we got. We use all the common list separators.
8723 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8724 for pkg in $enableval; do
8725 IFS="$lt_save_ifs"
8726 if test "X$pkg" = "X$p"; then
8727 enable_fast_install=yes
8728 fi
8729 done
8730 IFS="$lt_save_ifs"
8731 ;;
8732 esac
8733 else
8734 enable_fast_install=yes
8735 fi
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747 # This can be used to rebuild libtool when needed
8748 LIBTOOL_DEPS="$ltmain"
8749
8750 # Always use our own libtool.
8751 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778 test -z "$LN_S" && LN_S="ln -s"
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793 if test -n "${ZSH_VERSION+set}" ; then
8794 setopt NO_GLOB_SUBST
8795 fi
8796
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8798 $as_echo_n "checking for objdir... " >&6; }
8799 if test "${lt_cv_objdir+set}" = set; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 rm -f .libs 2>/dev/null
8803 mkdir .libs 2>/dev/null
8804 if test -d .libs; then
8805 lt_cv_objdir=.libs
8806 else
8807 # MS-DOS does not allow filenames that begin with a dot.
8808 lt_cv_objdir=_libs
8809 fi
8810 rmdir .libs 2>/dev/null
8811 fi
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8813 $as_echo "$lt_cv_objdir" >&6; }
8814 objdir=$lt_cv_objdir
8815
8816
8817
8818
8819
8820 cat >>confdefs.h <<_ACEOF
8821 #define LT_OBJDIR "$lt_cv_objdir/"
8822 _ACEOF
8823
8824
8825
8826
8827 case $host_os in
8828 aix3*)
8829 # AIX sometimes has problems with the GCC collect2 program. For some
8830 # reason, if we set the COLLECT_NAMES environment variable, the problems
8831 # vanish in a puff of smoke.
8832 if test "X${COLLECT_NAMES+set}" != Xset; then
8833 COLLECT_NAMES=
8834 export COLLECT_NAMES
8835 fi
8836 ;;
8837 esac
8838
8839 # Global variables:
8840 ofile=libtool
8841 can_build_shared=yes
8842
8843 # All known linkers require a `.a' archive for static linking (except MSVC,
8844 # which needs '.lib').
8845 libext=a
8846
8847 with_gnu_ld="$lt_cv_prog_gnu_ld"
8848
8849 old_CC="$CC"
8850 old_CFLAGS="$CFLAGS"
8851
8852 # Set sane defaults for various variables
8853 test -z "$CC" && CC=cc
8854 test -z "$LTCC" && LTCC=$CC
8855 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8856 test -z "$LD" && LD=ld
8857 test -z "$ac_objext" && ac_objext=o
8858
8859 for cc_temp in $compiler""; do
8860 case $cc_temp in
8861 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8862 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8863 \-*) ;;
8864 *) break;;
8865 esac
8866 done
8867 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8868
8869
8870 # Only perform the check for file, if the check method requires it
8871 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8872 case $deplibs_check_method in
8873 file_magic*)
8874 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8876 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8877 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8878 $as_echo_n "(cached) " >&6
8879 else
8880 case $MAGIC_CMD in
8881 [\\/*] | ?:[\\/]*)
8882 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8883 ;;
8884 *)
8885 lt_save_MAGIC_CMD="$MAGIC_CMD"
8886 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8887 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8888 for ac_dir in $ac_dummy; do
8889 IFS="$lt_save_ifs"
8890 test -z "$ac_dir" && ac_dir=.
8891 if test -f $ac_dir/${ac_tool_prefix}file; then
8892 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8893 if test -n "$file_magic_test_file"; then
8894 case $deplibs_check_method in
8895 "file_magic "*)
8896 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8897 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8898 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8899 $EGREP "$file_magic_regex" > /dev/null; then
8900 :
8901 else
8902 cat <<_LT_EOF 1>&2
8903
8904 *** Warning: the command libtool uses to detect shared libraries,
8905 *** $file_magic_cmd, produces output that libtool cannot recognize.
8906 *** The result is that libtool may fail to recognize shared libraries
8907 *** as such. This will affect the creation of libtool libraries that
8908 *** depend on shared libraries, but programs linked with such libtool
8909 *** libraries will work regardless of this problem. Nevertheless, you
8910 *** may want to report the problem to your system manager and/or to
8911 *** bug-libtool@gnu.org
8912
8913 _LT_EOF
8914 fi ;;
8915 esac
8916 fi
8917 break
8918 fi
8919 done
8920 IFS="$lt_save_ifs"
8921 MAGIC_CMD="$lt_save_MAGIC_CMD"
8922 ;;
8923 esac
8924 fi
8925
8926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8927 if test -n "$MAGIC_CMD"; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8929 $as_echo "$MAGIC_CMD" >&6; }
8930 else
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932 $as_echo "no" >&6; }
8933 fi
8934
8935
8936
8937
8938
8939 if test -z "$lt_cv_path_MAGIC_CMD"; then
8940 if test -n "$ac_tool_prefix"; then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8942 $as_echo_n "checking for file... " >&6; }
8943 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8944 $as_echo_n "(cached) " >&6
8945 else
8946 case $MAGIC_CMD in
8947 [\\/*] | ?:[\\/]*)
8948 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8949 ;;
8950 *)
8951 lt_save_MAGIC_CMD="$MAGIC_CMD"
8952 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8953 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8954 for ac_dir in $ac_dummy; do
8955 IFS="$lt_save_ifs"
8956 test -z "$ac_dir" && ac_dir=.
8957 if test -f $ac_dir/file; then
8958 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8959 if test -n "$file_magic_test_file"; then
8960 case $deplibs_check_method in
8961 "file_magic "*)
8962 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8964 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8965 $EGREP "$file_magic_regex" > /dev/null; then
8966 :
8967 else
8968 cat <<_LT_EOF 1>&2
8969
8970 *** Warning: the command libtool uses to detect shared libraries,
8971 *** $file_magic_cmd, produces output that libtool cannot recognize.
8972 *** The result is that libtool may fail to recognize shared libraries
8973 *** as such. This will affect the creation of libtool libraries that
8974 *** depend on shared libraries, but programs linked with such libtool
8975 *** libraries will work regardless of this problem. Nevertheless, you
8976 *** may want to report the problem to your system manager and/or to
8977 *** bug-libtool@gnu.org
8978
8979 _LT_EOF
8980 fi ;;
8981 esac
8982 fi
8983 break
8984 fi
8985 done
8986 IFS="$lt_save_ifs"
8987 MAGIC_CMD="$lt_save_MAGIC_CMD"
8988 ;;
8989 esac
8990 fi
8991
8992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8993 if test -n "$MAGIC_CMD"; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8995 $as_echo "$MAGIC_CMD" >&6; }
8996 else
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8998 $as_echo "no" >&6; }
8999 fi
9000
9001
9002 else
9003 MAGIC_CMD=:
9004 fi
9005 fi
9006
9007 fi
9008 ;;
9009 esac
9010
9011 # Use C for the default configuration in the libtool script
9012
9013 lt_save_CC="$CC"
9014 ac_ext=c
9015 ac_cpp='$CPP $CPPFLAGS'
9016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9019
9020
9021 # Source file extension for C test sources.
9022 ac_ext=c
9023
9024 # Object file extension for compiled C test sources.
9025 objext=o
9026 objext=$objext
9027
9028 # Code to be used in simple compile tests
9029 lt_simple_compile_test_code="int some_variable = 0;"
9030
9031 # Code to be used in simple link tests
9032 lt_simple_link_test_code='int main(){return(0);}'
9033
9034
9035
9036
9037
9038
9039
9040 # If no C compiler was specified, use CC.
9041 LTCC=${LTCC-"$CC"}
9042
9043 # If no C compiler flags were specified, use CFLAGS.
9044 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9045
9046 # Allow CC to be a program name with arguments.
9047 compiler=$CC
9048
9049 # Save the default compiler, since it gets overwritten when the other
9050 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9051 compiler_DEFAULT=$CC
9052
9053 # save warnings/boilerplate of simple test code
9054 ac_outfile=conftest.$ac_objext
9055 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9056 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9057 _lt_compiler_boilerplate=`cat conftest.err`
9058 $RM conftest*
9059
9060 ac_outfile=conftest.$ac_objext
9061 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9062 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9063 _lt_linker_boilerplate=`cat conftest.err`
9064 $RM -r conftest*
9065
9066
9067 ## CAVEAT EMPTOR:
9068 ## There is no encapsulation within the following macros, do not change
9069 ## the running order or otherwise move them around unless you know exactly
9070 ## what you are doing...
9071 if test -n "$compiler"; then
9072
9073 lt_prog_compiler_no_builtin_flag=
9074
9075 if test "$GCC" = yes; then
9076 case $cc_basename in
9077 nvcc*)
9078 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9079 *)
9080 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9081 esac
9082
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9084 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9085 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9086 $as_echo_n "(cached) " >&6
9087 else
9088 lt_cv_prog_compiler_rtti_exceptions=no
9089 ac_outfile=conftest.$ac_objext
9090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9091 lt_compiler_flag="-fno-rtti -fno-exceptions"
9092 # Insert the option either (1) after the last *FLAGS variable, or
9093 # (2) before a word containing "conftest.", or (3) at the end.
9094 # Note that $ac_compile itself does not contain backslashes and begins
9095 # with a dollar sign (not a hyphen), so the echo should work correctly.
9096 # The option is referenced via a variable to avoid confusing sed.
9097 lt_compile=`echo "$ac_compile" | $SED \
9098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9100 -e 's:$: $lt_compiler_flag:'`
9101 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9102 (eval "$lt_compile" 2>conftest.err)
9103 ac_status=$?
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 if (exit $ac_status) && test -s "$ac_outfile"; then
9107 # The compiler can only warn and ignore the option if not recognized
9108 # So say no if there are warnings other than the usual output.
9109 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9111 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9112 lt_cv_prog_compiler_rtti_exceptions=yes
9113 fi
9114 fi
9115 $RM conftest*
9116
9117 fi
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9119 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9120
9121 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9122 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9123 else
9124 :
9125 fi
9126
9127 fi
9128
9129
9130
9131
9132
9133
9134 lt_prog_compiler_wl=
9135 lt_prog_compiler_pic=
9136 lt_prog_compiler_static=
9137
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9139 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9140
9141 if test "$GCC" = yes; then
9142 lt_prog_compiler_wl='-Wl,'
9143 lt_prog_compiler_static='-static'
9144
9145 case $host_os in
9146 aix*)
9147 # All AIX code is PIC.
9148 if test "$host_cpu" = ia64; then
9149 # AIX 5 now supports IA64 processor
9150 lt_prog_compiler_static='-Bstatic'
9151 fi
9152 lt_prog_compiler_pic='-fPIC'
9153 ;;
9154
9155 amigaos*)
9156 case $host_cpu in
9157 powerpc)
9158 # see comment about AmigaOS4 .so support
9159 lt_prog_compiler_pic='-fPIC'
9160 ;;
9161 m68k)
9162 # FIXME: we need at least 68020 code to build shared libraries, but
9163 # adding the `-m68020' flag to GCC prevents building anything better,
9164 # like `-m68040'.
9165 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9166 ;;
9167 esac
9168 ;;
9169
9170 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9171 # PIC is the default for these OSes.
9172 ;;
9173
9174 mingw* | cygwin* | pw32* | os2* | cegcc*)
9175 # This hack is so that the source file can tell whether it is being
9176 # built for inclusion in a dll (and should export symbols for example).
9177 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9178 # (--disable-auto-import) libraries
9179 lt_prog_compiler_pic='-DDLL_EXPORT'
9180 ;;
9181
9182 darwin* | rhapsody*)
9183 # PIC is the default on this platform
9184 # Common symbols not allowed in MH_DYLIB files
9185 lt_prog_compiler_pic='-fno-common'
9186 ;;
9187
9188 haiku*)
9189 # PIC is the default for Haiku.
9190 # The "-static" flag exists, but is broken.
9191 lt_prog_compiler_static=
9192 ;;
9193
9194 hpux*)
9195 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9196 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9197 # sets the default TLS model and affects inlining.
9198 case $host_cpu in
9199 hppa*64*)
9200 # +Z the default
9201 ;;
9202 *)
9203 lt_prog_compiler_pic='-fPIC'
9204 ;;
9205 esac
9206 ;;
9207
9208 interix[3-9]*)
9209 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9210 # Instead, we relocate shared libraries at runtime.
9211 ;;
9212
9213 msdosdjgpp*)
9214 # Just because we use GCC doesn't mean we suddenly get shared libraries
9215 # on systems that don't support them.
9216 lt_prog_compiler_can_build_shared=no
9217 enable_shared=no
9218 ;;
9219
9220 *nto* | *qnx*)
9221 # QNX uses GNU C++, but need to define -shared option too, otherwise
9222 # it will coredump.
9223 lt_prog_compiler_pic='-fPIC -shared'
9224 ;;
9225
9226 sysv4*MP*)
9227 if test -d /usr/nec; then
9228 lt_prog_compiler_pic=-Kconform_pic
9229 fi
9230 ;;
9231
9232 *)
9233 lt_prog_compiler_pic='-fPIC'
9234 ;;
9235 esac
9236
9237 case $cc_basename in
9238 nvcc*) # Cuda Compiler Driver 2.2
9239 lt_prog_compiler_wl='-Xlinker '
9240 lt_prog_compiler_pic='-Xcompiler -fPIC'
9241 ;;
9242 esac
9243 else
9244 # PORTME Check for flag to pass linker flags through the system compiler.
9245 case $host_os in
9246 aix*)
9247 lt_prog_compiler_wl='-Wl,'
9248 if test "$host_cpu" = ia64; then
9249 # AIX 5 now supports IA64 processor
9250 lt_prog_compiler_static='-Bstatic'
9251 else
9252 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9253 fi
9254 ;;
9255
9256 mingw* | cygwin* | pw32* | os2* | cegcc*)
9257 # This hack is so that the source file can tell whether it is being
9258 # built for inclusion in a dll (and should export symbols for example).
9259 lt_prog_compiler_pic='-DDLL_EXPORT'
9260 ;;
9261
9262 hpux9* | hpux10* | hpux11*)
9263 lt_prog_compiler_wl='-Wl,'
9264 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9265 # not for PA HP-UX.
9266 case $host_cpu in
9267 hppa*64*|ia64*)
9268 # +Z the default
9269 ;;
9270 *)
9271 lt_prog_compiler_pic='+Z'
9272 ;;
9273 esac
9274 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9275 lt_prog_compiler_static='${wl}-a ${wl}archive'
9276 ;;
9277
9278 irix5* | irix6* | nonstopux*)
9279 lt_prog_compiler_wl='-Wl,'
9280 # PIC (with -KPIC) is the default.
9281 lt_prog_compiler_static='-non_shared'
9282 ;;
9283
9284 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9285 case $cc_basename in
9286 # old Intel for x86_64 which still supported -KPIC.
9287 ecc*)
9288 lt_prog_compiler_wl='-Wl,'
9289 lt_prog_compiler_pic='-KPIC'
9290 lt_prog_compiler_static='-static'
9291 ;;
9292 # icc used to be incompatible with GCC.
9293 # ICC 10 doesn't accept -KPIC any more.
9294 icc* | ifort*)
9295 lt_prog_compiler_wl='-Wl,'
9296 lt_prog_compiler_pic='-fPIC'
9297 lt_prog_compiler_static='-static'
9298 ;;
9299 # Lahey Fortran 8.1.
9300 lf95*)
9301 lt_prog_compiler_wl='-Wl,'
9302 lt_prog_compiler_pic='--shared'
9303 lt_prog_compiler_static='--static'
9304 ;;
9305 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9306 # Portland Group compilers (*not* the Pentium gcc compiler,
9307 # which looks to be a dead project)
9308 lt_prog_compiler_wl='-Wl,'
9309 lt_prog_compiler_pic='-fpic'
9310 lt_prog_compiler_static='-Bstatic'
9311 ;;
9312 ccc*)
9313 lt_prog_compiler_wl='-Wl,'
9314 # All Alpha code is PIC.
9315 lt_prog_compiler_static='-non_shared'
9316 ;;
9317 xl* | bgxl* | bgf* | mpixl*)
9318 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9319 lt_prog_compiler_wl='-Wl,'
9320 lt_prog_compiler_pic='-qpic'
9321 lt_prog_compiler_static='-qstaticlink'
9322 ;;
9323 *)
9324 case `$CC -V 2>&1 | sed 5q` in
9325 *Sun\ F* | *Sun*Fortran*)
9326 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9327 lt_prog_compiler_pic='-KPIC'
9328 lt_prog_compiler_static='-Bstatic'
9329 lt_prog_compiler_wl=''
9330 ;;
9331 *Sun\ C*)
9332 # Sun C 5.9
9333 lt_prog_compiler_pic='-KPIC'
9334 lt_prog_compiler_static='-Bstatic'
9335 lt_prog_compiler_wl='-Wl,'
9336 ;;
9337 esac
9338 ;;
9339 esac
9340 ;;
9341
9342 newsos6)
9343 lt_prog_compiler_pic='-KPIC'
9344 lt_prog_compiler_static='-Bstatic'
9345 ;;
9346
9347 *nto* | *qnx*)
9348 # QNX uses GNU C++, but need to define -shared option too, otherwise
9349 # it will coredump.
9350 lt_prog_compiler_pic='-fPIC -shared'
9351 ;;
9352
9353 osf3* | osf4* | osf5*)
9354 lt_prog_compiler_wl='-Wl,'
9355 # All OSF/1 code is PIC.
9356 lt_prog_compiler_static='-non_shared'
9357 ;;
9358
9359 rdos*)
9360 lt_prog_compiler_static='-non_shared'
9361 ;;
9362
9363 solaris*)
9364 lt_prog_compiler_pic='-KPIC'
9365 lt_prog_compiler_static='-Bstatic'
9366 case $cc_basename in
9367 f77* | f90* | f95*)
9368 lt_prog_compiler_wl='-Qoption ld ';;
9369 *)
9370 lt_prog_compiler_wl='-Wl,';;
9371 esac
9372 ;;
9373
9374 sunos4*)
9375 lt_prog_compiler_wl='-Qoption ld '
9376 lt_prog_compiler_pic='-PIC'
9377 lt_prog_compiler_static='-Bstatic'
9378 ;;
9379
9380 sysv4 | sysv4.2uw2* | sysv4.3*)
9381 lt_prog_compiler_wl='-Wl,'
9382 lt_prog_compiler_pic='-KPIC'
9383 lt_prog_compiler_static='-Bstatic'
9384 ;;
9385
9386 sysv4*MP*)
9387 if test -d /usr/nec ;then
9388 lt_prog_compiler_pic='-Kconform_pic'
9389 lt_prog_compiler_static='-Bstatic'
9390 fi
9391 ;;
9392
9393 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9394 lt_prog_compiler_wl='-Wl,'
9395 lt_prog_compiler_pic='-KPIC'
9396 lt_prog_compiler_static='-Bstatic'
9397 ;;
9398
9399 unicos*)
9400 lt_prog_compiler_wl='-Wl,'
9401 lt_prog_compiler_can_build_shared=no
9402 ;;
9403
9404 uts4*)
9405 lt_prog_compiler_pic='-pic'
9406 lt_prog_compiler_static='-Bstatic'
9407 ;;
9408
9409 *)
9410 lt_prog_compiler_can_build_shared=no
9411 ;;
9412 esac
9413 fi
9414
9415 case $host_os in
9416 # For platforms which do not support PIC, -DPIC is meaningless:
9417 *djgpp*)
9418 lt_prog_compiler_pic=
9419 ;;
9420 *)
9421 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9422 ;;
9423 esac
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9425 $as_echo "$lt_prog_compiler_pic" >&6; }
9426
9427
9428
9429
9430
9431
9432 #
9433 # Check to make sure the PIC flag actually works.
9434 #
9435 if test -n "$lt_prog_compiler_pic"; then
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9437 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9438 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 lt_cv_prog_compiler_pic_works=no
9442 ac_outfile=conftest.$ac_objext
9443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9444 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9445 # Insert the option either (1) after the last *FLAGS variable, or
9446 # (2) before a word containing "conftest.", or (3) at the end.
9447 # Note that $ac_compile itself does not contain backslashes and begins
9448 # with a dollar sign (not a hyphen), so the echo should work correctly.
9449 # The option is referenced via a variable to avoid confusing sed.
9450 lt_compile=`echo "$ac_compile" | $SED \
9451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9453 -e 's:$: $lt_compiler_flag:'`
9454 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9455 (eval "$lt_compile" 2>conftest.err)
9456 ac_status=$?
9457 cat conftest.err >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 if (exit $ac_status) && test -s "$ac_outfile"; then
9460 # The compiler can only warn and ignore the option if not recognized
9461 # So say no if there are warnings other than the usual output.
9462 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9464 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9465 lt_cv_prog_compiler_pic_works=yes
9466 fi
9467 fi
9468 $RM conftest*
9469
9470 fi
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9472 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9473
9474 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9475 case $lt_prog_compiler_pic in
9476 "" | " "*) ;;
9477 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9478 esac
9479 else
9480 lt_prog_compiler_pic=
9481 lt_prog_compiler_can_build_shared=no
9482 fi
9483
9484 fi
9485
9486
9487
9488
9489
9490
9491 #
9492 # Check to make sure the static flag actually works.
9493 #
9494 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9496 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9497 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9498 $as_echo_n "(cached) " >&6
9499 else
9500 lt_cv_prog_compiler_static_works=no
9501 save_LDFLAGS="$LDFLAGS"
9502 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9503 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9504 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9505 # The linker can only warn and ignore the option if not recognized
9506 # So say no if there are warnings
9507 if test -s conftest.err; then
9508 # Append any errors to the config.log.
9509 cat conftest.err 1>&5
9510 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9512 if diff conftest.exp conftest.er2 >/dev/null; then
9513 lt_cv_prog_compiler_static_works=yes
9514 fi
9515 else
9516 lt_cv_prog_compiler_static_works=yes
9517 fi
9518 fi
9519 $RM -r conftest*
9520 LDFLAGS="$save_LDFLAGS"
9521
9522 fi
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9524 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9525
9526 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9527 :
9528 else
9529 lt_prog_compiler_static=
9530 fi
9531
9532
9533
9534
9535
9536
9537
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9539 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9540 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9541 $as_echo_n "(cached) " >&6
9542 else
9543 lt_cv_prog_compiler_c_o=no
9544 $RM -r conftest 2>/dev/null
9545 mkdir conftest
9546 cd conftest
9547 mkdir out
9548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9549
9550 lt_compiler_flag="-o out/conftest2.$ac_objext"
9551 # Insert the option either (1) after the last *FLAGS variable, or
9552 # (2) before a word containing "conftest.", or (3) at the end.
9553 # Note that $ac_compile itself does not contain backslashes and begins
9554 # with a dollar sign (not a hyphen), so the echo should work correctly.
9555 lt_compile=`echo "$ac_compile" | $SED \
9556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9558 -e 's:$: $lt_compiler_flag:'`
9559 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9560 (eval "$lt_compile" 2>out/conftest.err)
9561 ac_status=$?
9562 cat out/conftest.err >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9565 then
9566 # The compiler can only warn and ignore the option if not recognized
9567 # So say no if there are warnings
9568 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9569 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9570 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9571 lt_cv_prog_compiler_c_o=yes
9572 fi
9573 fi
9574 chmod u+w . 2>&5
9575 $RM conftest*
9576 # SGI C++ compiler will create directory out/ii_files/ for
9577 # template instantiation
9578 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9579 $RM out/* && rmdir out
9580 cd ..
9581 $RM -r conftest
9582 $RM conftest*
9583
9584 fi
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9586 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9587
9588
9589
9590
9591
9592
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9594 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9595 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9596 $as_echo_n "(cached) " >&6
9597 else
9598 lt_cv_prog_compiler_c_o=no
9599 $RM -r conftest 2>/dev/null
9600 mkdir conftest
9601 cd conftest
9602 mkdir out
9603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9604
9605 lt_compiler_flag="-o out/conftest2.$ac_objext"
9606 # Insert the option either (1) after the last *FLAGS variable, or
9607 # (2) before a word containing "conftest.", or (3) at the end.
9608 # Note that $ac_compile itself does not contain backslashes and begins
9609 # with a dollar sign (not a hyphen), so the echo should work correctly.
9610 lt_compile=`echo "$ac_compile" | $SED \
9611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9613 -e 's:$: $lt_compiler_flag:'`
9614 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9615 (eval "$lt_compile" 2>out/conftest.err)
9616 ac_status=$?
9617 cat out/conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9620 then
9621 # The compiler can only warn and ignore the option if not recognized
9622 # So say no if there are warnings
9623 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9624 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9625 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9626 lt_cv_prog_compiler_c_o=yes
9627 fi
9628 fi
9629 chmod u+w . 2>&5
9630 $RM conftest*
9631 # SGI C++ compiler will create directory out/ii_files/ for
9632 # template instantiation
9633 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9634 $RM out/* && rmdir out
9635 cd ..
9636 $RM -r conftest
9637 $RM conftest*
9638
9639 fi
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9641 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9642
9643
9644
9645
9646 hard_links="nottested"
9647 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9648 # do not overwrite the value of need_locks provided by the user
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9650 $as_echo_n "checking if we can lock with hard links... " >&6; }
9651 hard_links=yes
9652 $RM conftest*
9653 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9654 touch conftest.a
9655 ln conftest.a conftest.b 2>&5 || hard_links=no
9656 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9658 $as_echo "$hard_links" >&6; }
9659 if test "$hard_links" = no; then
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9661 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9662 need_locks=warn
9663 fi
9664 else
9665 need_locks=no
9666 fi
9667
9668
9669
9670
9671
9672
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9674 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9675
9676 runpath_var=
9677 allow_undefined_flag=
9678 always_export_symbols=no
9679 archive_cmds=
9680 archive_expsym_cmds=
9681 compiler_needs_object=no
9682 enable_shared_with_static_runtimes=no
9683 export_dynamic_flag_spec=
9684 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9685 hardcode_automatic=no
9686 hardcode_direct=no
9687 hardcode_direct_absolute=no
9688 hardcode_libdir_flag_spec=
9689 hardcode_libdir_flag_spec_ld=
9690 hardcode_libdir_separator=
9691 hardcode_minus_L=no
9692 hardcode_shlibpath_var=unsupported
9693 inherit_rpath=no
9694 link_all_deplibs=unknown
9695 module_cmds=
9696 module_expsym_cmds=
9697 old_archive_from_new_cmds=
9698 old_archive_from_expsyms_cmds=
9699 thread_safe_flag_spec=
9700 whole_archive_flag_spec=
9701 # include_expsyms should be a list of space-separated symbols to be *always*
9702 # included in the symbol list
9703 include_expsyms=
9704 # exclude_expsyms can be an extended regexp of symbols to exclude
9705 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9706 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9707 # as well as any symbol that contains `d'.
9708 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9709 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9710 # platforms (ab)use it in PIC code, but their linkers get confused if
9711 # the symbol is explicitly referenced. Since portable code cannot
9712 # rely on this symbol name, it's probably fine to never include it in
9713 # preloaded symbol tables.
9714 # Exclude shared library initialization/finalization symbols.
9715 extract_expsyms_cmds=
9716
9717 case $host_os in
9718 cygwin* | mingw* | pw32* | cegcc*)
9719 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9720 # When not using gcc, we currently assume that we are using
9721 # Microsoft Visual C++.
9722 if test "$GCC" != yes; then
9723 with_gnu_ld=no
9724 fi
9725 ;;
9726 interix*)
9727 # we just hope/assume this is gcc and not c89 (= MSVC++)
9728 with_gnu_ld=yes
9729 ;;
9730 openbsd*)
9731 with_gnu_ld=no
9732 ;;
9733 esac
9734
9735 ld_shlibs=yes
9736
9737 # On some targets, GNU ld is compatible enough with the native linker
9738 # that we're better off using the native interface for both.
9739 lt_use_gnu_ld_interface=no
9740 if test "$with_gnu_ld" = yes; then
9741 case $host_os in
9742 aix*)
9743 # The AIX port of GNU ld has always aspired to compatibility
9744 # with the native linker. However, as the warning in the GNU ld
9745 # block says, versions before 2.19.5* couldn't really create working
9746 # shared libraries, regardless of the interface used.
9747 case `$LD -v 2>&1` in
9748 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9749 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9750 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9751 *)
9752 lt_use_gnu_ld_interface=yes
9753 ;;
9754 esac
9755 ;;
9756 *)
9757 lt_use_gnu_ld_interface=yes
9758 ;;
9759 esac
9760 fi
9761
9762 if test "$lt_use_gnu_ld_interface" = yes; then
9763 # If archive_cmds runs LD, not CC, wlarc should be empty
9764 wlarc='${wl}'
9765
9766 # Set some defaults for GNU ld with shared library support. These
9767 # are reset later if shared libraries are not supported. Putting them
9768 # here allows them to be overridden if necessary.
9769 runpath_var=LD_RUN_PATH
9770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9771 export_dynamic_flag_spec='${wl}--export-dynamic'
9772 # ancient GNU ld didn't support --whole-archive et. al.
9773 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9774 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9775 else
9776 whole_archive_flag_spec=
9777 fi
9778 supports_anon_versioning=no
9779 case `$LD -v 2>&1` in
9780 *GNU\ gold*) supports_anon_versioning=yes ;;
9781 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9782 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9783 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9784 *\ 2.11.*) ;; # other 2.11 versions
9785 *) supports_anon_versioning=yes ;;
9786 esac
9787
9788 # See if GNU ld supports shared libraries.
9789 case $host_os in
9790 aix[3-9]*)
9791 # On AIX/PPC, the GNU linker is very broken
9792 if test "$host_cpu" != ia64; then
9793 ld_shlibs=no
9794 cat <<_LT_EOF 1>&2
9795
9796 *** Warning: the GNU linker, at least up to release 2.19, is reported
9797 *** to be unable to reliably create shared libraries on AIX.
9798 *** Therefore, libtool is disabling shared libraries support. If you
9799 *** really care for shared libraries, you may want to install binutils
9800 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9801 *** You will then need to restart the configuration process.
9802
9803 _LT_EOF
9804 fi
9805 ;;
9806
9807 amigaos*)
9808 case $host_cpu in
9809 powerpc)
9810 # see comment about AmigaOS4 .so support
9811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9812 archive_expsym_cmds=''
9813 ;;
9814 m68k)
9815 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)'
9816 hardcode_libdir_flag_spec='-L$libdir'
9817 hardcode_minus_L=yes
9818 ;;
9819 esac
9820 ;;
9821
9822 beos*)
9823 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9824 allow_undefined_flag=unsupported
9825 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9826 # support --undefined. This deserves some investigation. FIXME
9827 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9828 else
9829 ld_shlibs=no
9830 fi
9831 ;;
9832
9833 cygwin* | mingw* | pw32* | cegcc*)
9834 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9835 # as there is no search path for DLLs.
9836 hardcode_libdir_flag_spec='-L$libdir'
9837 export_dynamic_flag_spec='${wl}--export-all-symbols'
9838 allow_undefined_flag=unsupported
9839 always_export_symbols=no
9840 enable_shared_with_static_runtimes=yes
9841 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9842
9843 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9845 # If the export-symbols file already is a .def file (1st line
9846 # is EXPORTS), use it as is; otherwise, prepend...
9847 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9848 cp $export_symbols $output_objdir/$soname.def;
9849 else
9850 echo EXPORTS > $output_objdir/$soname.def;
9851 cat $export_symbols >> $output_objdir/$soname.def;
9852 fi~
9853 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9854 else
9855 ld_shlibs=no
9856 fi
9857 ;;
9858
9859 haiku*)
9860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9861 link_all_deplibs=yes
9862 ;;
9863
9864 interix[3-9]*)
9865 hardcode_direct=no
9866 hardcode_shlibpath_var=no
9867 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9868 export_dynamic_flag_spec='${wl}-E'
9869 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9870 # Instead, shared libraries are loaded at an image base (0x10000000 by
9871 # default) and relocated if they conflict, which is a slow very memory
9872 # consuming and fragmenting process. To avoid this, we pick a random,
9873 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9874 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9875 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9876 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'
9877 ;;
9878
9879 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9880 tmp_diet=no
9881 if test "$host_os" = linux-dietlibc; then
9882 case $cc_basename in
9883 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9884 esac
9885 fi
9886 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9887 && test "$tmp_diet" = no
9888 then
9889 tmp_addflag=
9890 tmp_sharedflag='-shared'
9891 case $cc_basename,$host_cpu in
9892 pgcc*) # Portland Group C compiler
9893 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'
9894 tmp_addflag=' $pic_flag'
9895 ;;
9896 pgf77* | pgf90* | pgf95* | pgfortran*)
9897 # Portland Group f77 and f90 compilers
9898 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'
9899 tmp_addflag=' $pic_flag -Mnomain' ;;
9900 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9901 tmp_addflag=' -i_dynamic' ;;
9902 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9903 tmp_addflag=' -i_dynamic -nofor_main' ;;
9904 ifc* | ifort*) # Intel Fortran compiler
9905 tmp_addflag=' -nofor_main' ;;
9906 lf95*) # Lahey Fortran 8.1
9907 whole_archive_flag_spec=
9908 tmp_sharedflag='--shared' ;;
9909 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9910 tmp_sharedflag='-qmkshrobj'
9911 tmp_addflag= ;;
9912 nvcc*) # Cuda Compiler Driver 2.2
9913 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'
9914 compiler_needs_object=yes
9915 ;;
9916 esac
9917 case `$CC -V 2>&1 | sed 5q` in
9918 *Sun\ C*) # Sun C 5.9
9919 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'
9920 compiler_needs_object=yes
9921 tmp_sharedflag='-G' ;;
9922 *Sun\ F*) # Sun Fortran 8.3
9923 tmp_sharedflag='-G' ;;
9924 esac
9925 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9926
9927 if test "x$supports_anon_versioning" = xyes; then
9928 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9929 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9930 echo "local: *; };" >> $output_objdir/$libname.ver~
9931 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9932 fi
9933
9934 case $cc_basename in
9935 xlf* | bgf* | bgxlf* | mpixlf*)
9936 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9937 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9938 hardcode_libdir_flag_spec=
9939 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9940 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9941 if test "x$supports_anon_versioning" = xyes; then
9942 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9943 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9944 echo "local: *; };" >> $output_objdir/$libname.ver~
9945 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9946 fi
9947 ;;
9948 esac
9949 else
9950 ld_shlibs=no
9951 fi
9952 ;;
9953
9954 netbsd*)
9955 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9956 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9957 wlarc=
9958 else
9959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9960 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9961 fi
9962 ;;
9963
9964 solaris*)
9965 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9966 ld_shlibs=no
9967 cat <<_LT_EOF 1>&2
9968
9969 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9970 *** create shared libraries on Solaris systems. Therefore, libtool
9971 *** is disabling shared libraries support. We urge you to upgrade GNU
9972 *** binutils to release 2.9.1 or newer. Another option is to modify
9973 *** your PATH or compiler configuration so that the native linker is
9974 *** used, and then restart.
9975
9976 _LT_EOF
9977 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9979 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9980 else
9981 ld_shlibs=no
9982 fi
9983 ;;
9984
9985 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9986 case `$LD -v 2>&1` in
9987 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9988 ld_shlibs=no
9989 cat <<_LT_EOF 1>&2
9990
9991 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9992 *** reliably create shared libraries on SCO systems. Therefore, libtool
9993 *** is disabling shared libraries support. We urge you to upgrade GNU
9994 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9995 *** your PATH or compiler configuration so that the native linker is
9996 *** used, and then restart.
9997
9998 _LT_EOF
9999 ;;
10000 *)
10001 # For security reasons, it is highly recommended that you always
10002 # use absolute paths for naming shared libraries, and exclude the
10003 # DT_RUNPATH tag from executables and libraries. But doing so
10004 # requires that you compile everything twice, which is a pain.
10005 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10006 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10008 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10009 else
10010 ld_shlibs=no
10011 fi
10012 ;;
10013 esac
10014 ;;
10015
10016 sunos4*)
10017 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10018 wlarc=
10019 hardcode_direct=yes
10020 hardcode_shlibpath_var=no
10021 ;;
10022
10023 *)
10024 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10026 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10027 else
10028 ld_shlibs=no
10029 fi
10030 ;;
10031 esac
10032
10033 if test "$ld_shlibs" = no; then
10034 runpath_var=
10035 hardcode_libdir_flag_spec=
10036 export_dynamic_flag_spec=
10037 whole_archive_flag_spec=
10038 fi
10039 else
10040 # PORTME fill in a description of your system's linker (not GNU ld)
10041 case $host_os in
10042 aix3*)
10043 allow_undefined_flag=unsupported
10044 always_export_symbols=yes
10045 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'
10046 # Note: this linker hardcodes the directories in LIBPATH if there
10047 # are no directories specified by -L.
10048 hardcode_minus_L=yes
10049 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10050 # Neither direct hardcoding nor static linking is supported with a
10051 # broken collect2.
10052 hardcode_direct=unsupported
10053 fi
10054 ;;
10055
10056 aix[4-9]*)
10057 if test "$host_cpu" = ia64; then
10058 # On IA64, the linker does run time linking by default, so we don't
10059 # have to do anything special.
10060 aix_use_runtimelinking=no
10061 exp_sym_flag='-Bexport'
10062 no_entry_flag=""
10063 else
10064 # If we're using GNU nm, then we don't want the "-C" option.
10065 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10066 # Also, AIX nm treats weak defined symbols like other global
10067 # defined symbols, whereas GNU nm marks them as "W".
10068 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10069 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'
10070 else
10071 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10072 fi
10073 aix_use_runtimelinking=no
10074
10075 # Test if we are trying to use run time linking or normal
10076 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10077 # need to do runtime linking.
10078 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10079 for ld_flag in $LDFLAGS; do
10080 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10081 aix_use_runtimelinking=yes
10082 break
10083 fi
10084 done
10085 ;;
10086 esac
10087
10088 exp_sym_flag='-bexport'
10089 no_entry_flag='-bnoentry'
10090 fi
10091
10092 # When large executables or shared objects are built, AIX ld can
10093 # have problems creating the table of contents. If linking a library
10094 # or program results in "error TOC overflow" add -mminimal-toc to
10095 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10096 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10097
10098 archive_cmds=''
10099 hardcode_direct=yes
10100 hardcode_direct_absolute=yes
10101 hardcode_libdir_separator=':'
10102 link_all_deplibs=yes
10103 file_list_spec='${wl}-f,'
10104
10105 if test "$GCC" = yes; then
10106 case $host_os in aix4.[012]|aix4.[012].*)
10107 # We only want to do this on AIX 4.2 and lower, the check
10108 # below for broken collect2 doesn't work under 4.3+
10109 collect2name=`${CC} -print-prog-name=collect2`
10110 if test -f "$collect2name" &&
10111 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10112 then
10113 # We have reworked collect2
10114 :
10115 else
10116 # We have old collect2
10117 hardcode_direct=unsupported
10118 # It fails to find uninstalled libraries when the uninstalled
10119 # path is not listed in the libpath. Setting hardcode_minus_L
10120 # to unsupported forces relinking
10121 hardcode_minus_L=yes
10122 hardcode_libdir_flag_spec='-L$libdir'
10123 hardcode_libdir_separator=
10124 fi
10125 ;;
10126 esac
10127 shared_flag='-shared'
10128 if test "$aix_use_runtimelinking" = yes; then
10129 shared_flag="$shared_flag "'${wl}-G'
10130 fi
10131 else
10132 # not using gcc
10133 if test "$host_cpu" = ia64; then
10134 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10135 # chokes on -Wl,-G. The following line is correct:
10136 shared_flag='-G'
10137 else
10138 if test "$aix_use_runtimelinking" = yes; then
10139 shared_flag='${wl}-G'
10140 else
10141 shared_flag='${wl}-bM:SRE'
10142 fi
10143 fi
10144 fi
10145
10146 export_dynamic_flag_spec='${wl}-bexpall'
10147 # It seems that -bexpall does not export symbols beginning with
10148 # underscore (_), so it is better to generate a list of symbols to export.
10149 always_export_symbols=yes
10150 if test "$aix_use_runtimelinking" = yes; then
10151 # Warning - without using the other runtime loading flags (-brtl),
10152 # -berok will link without error, but may produce a broken library.
10153 allow_undefined_flag='-berok'
10154 # Determine the default libpath from the value encoded in an
10155 # empty executable.
10156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h. */
10158
10159 int
10160 main ()
10161 {
10162
10163 ;
10164 return 0;
10165 }
10166 _ACEOF
10167 if ac_fn_c_try_link "$LINENO"; then :
10168
10169 lt_aix_libpath_sed='
10170 /Import File Strings/,/^$/ {
10171 /^0/ {
10172 s/^0 *\(.*\)$/\1/
10173 p
10174 }
10175 }'
10176 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10177 # Check for a 64-bit object if we didn't find anything.
10178 if test -z "$aix_libpath"; then
10179 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10180 fi
10181 fi
10182 rm -f core conftest.err conftest.$ac_objext \
10183 conftest$ac_exeext conftest.$ac_ext
10184 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10185
10186 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10187 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"
10188 else
10189 if test "$host_cpu" = ia64; then
10190 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10191 allow_undefined_flag="-z nodefs"
10192 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"
10193 else
10194 # Determine the default libpath from the value encoded in an
10195 # empty executable.
10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10198
10199 int
10200 main ()
10201 {
10202
10203 ;
10204 return 0;
10205 }
10206 _ACEOF
10207 if ac_fn_c_try_link "$LINENO"; then :
10208
10209 lt_aix_libpath_sed='
10210 /Import File Strings/,/^$/ {
10211 /^0/ {
10212 s/^0 *\(.*\)$/\1/
10213 p
10214 }
10215 }'
10216 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10217 # Check for a 64-bit object if we didn't find anything.
10218 if test -z "$aix_libpath"; then
10219 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10220 fi
10221 fi
10222 rm -f core conftest.err conftest.$ac_objext \
10223 conftest$ac_exeext conftest.$ac_ext
10224 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10225
10226 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10227 # Warning - without using the other run time loading flags,
10228 # -berok will link without error, but may produce a broken library.
10229 no_undefined_flag=' ${wl}-bernotok'
10230 allow_undefined_flag=' ${wl}-berok'
10231 if test "$with_gnu_ld" = yes; then
10232 # We only use this code for GNU lds that support --whole-archive.
10233 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10234 else
10235 # Exported symbols can be pulled into shared objects from archives
10236 whole_archive_flag_spec='$convenience'
10237 fi
10238 archive_cmds_need_lc=yes
10239 # This is similar to how AIX traditionally builds its shared libraries.
10240 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'
10241 fi
10242 fi
10243 ;;
10244
10245 amigaos*)
10246 case $host_cpu in
10247 powerpc)
10248 # see comment about AmigaOS4 .so support
10249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10250 archive_expsym_cmds=''
10251 ;;
10252 m68k)
10253 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)'
10254 hardcode_libdir_flag_spec='-L$libdir'
10255 hardcode_minus_L=yes
10256 ;;
10257 esac
10258 ;;
10259
10260 bsdi[45]*)
10261 export_dynamic_flag_spec=-rdynamic
10262 ;;
10263
10264 cygwin* | mingw* | pw32* | cegcc*)
10265 # When not using gcc, we currently assume that we are using
10266 # Microsoft Visual C++.
10267 # hardcode_libdir_flag_spec is actually meaningless, as there is
10268 # no search path for DLLs.
10269 hardcode_libdir_flag_spec=' '
10270 allow_undefined_flag=unsupported
10271 # Tell ltmain to make .lib files, not .a files.
10272 libext=lib
10273 # Tell ltmain to make .dll files, not .so files.
10274 shrext_cmds=".dll"
10275 # FIXME: Setting linknames here is a bad hack.
10276 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10277 # The linker will automatically build a .lib file if we build a DLL.
10278 old_archive_from_new_cmds='true'
10279 # FIXME: Should let the user specify the lib program.
10280 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10281 fix_srcfile_path='`cygpath -w "$srcfile"`'
10282 enable_shared_with_static_runtimes=yes
10283 ;;
10284
10285 darwin* | rhapsody*)
10286
10287
10288 archive_cmds_need_lc=no
10289 hardcode_direct=no
10290 hardcode_automatic=yes
10291 hardcode_shlibpath_var=unsupported
10292 if test "$lt_cv_ld_force_load" = "yes"; then
10293 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\"`'
10294 else
10295 whole_archive_flag_spec=''
10296 fi
10297 link_all_deplibs=yes
10298 allow_undefined_flag="$_lt_dar_allow_undefined"
10299 case $cc_basename in
10300 ifort*) _lt_dar_can_shared=yes ;;
10301 *) _lt_dar_can_shared=$GCC ;;
10302 esac
10303 if test "$_lt_dar_can_shared" = "yes"; then
10304 output_verbose_link_cmd=func_echo_all
10305 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10306 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10307 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}"
10308 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}"
10309
10310 else
10311 ld_shlibs=no
10312 fi
10313
10314 ;;
10315
10316 dgux*)
10317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10318 hardcode_libdir_flag_spec='-L$libdir'
10319 hardcode_shlibpath_var=no
10320 ;;
10321
10322 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10323 # support. Future versions do this automatically, but an explicit c++rt0.o
10324 # does not break anything, and helps significantly (at the cost of a little
10325 # extra space).
10326 freebsd2.2*)
10327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10328 hardcode_libdir_flag_spec='-R$libdir'
10329 hardcode_direct=yes
10330 hardcode_shlibpath_var=no
10331 ;;
10332
10333 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10334 freebsd2.*)
10335 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10336 hardcode_direct=yes
10337 hardcode_minus_L=yes
10338 hardcode_shlibpath_var=no
10339 ;;
10340
10341 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10342 freebsd* | dragonfly*)
10343 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10344 hardcode_libdir_flag_spec='-R$libdir'
10345 hardcode_direct=yes
10346 hardcode_shlibpath_var=no
10347 ;;
10348
10349 hpux9*)
10350 if test "$GCC" = yes; then
10351 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'
10352 else
10353 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'
10354 fi
10355 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10356 hardcode_libdir_separator=:
10357 hardcode_direct=yes
10358
10359 # hardcode_minus_L: Not really in the search PATH,
10360 # but as the default location of the library.
10361 hardcode_minus_L=yes
10362 export_dynamic_flag_spec='${wl}-E'
10363 ;;
10364
10365 hpux10*)
10366 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10367 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10368 else
10369 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10370 fi
10371 if test "$with_gnu_ld" = no; then
10372 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10373 hardcode_libdir_flag_spec_ld='+b $libdir'
10374 hardcode_libdir_separator=:
10375 hardcode_direct=yes
10376 hardcode_direct_absolute=yes
10377 export_dynamic_flag_spec='${wl}-E'
10378 # hardcode_minus_L: Not really in the search PATH,
10379 # but as the default location of the library.
10380 hardcode_minus_L=yes
10381 fi
10382 ;;
10383
10384 hpux11*)
10385 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10386 case $host_cpu in
10387 hppa*64*)
10388 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10389 ;;
10390 ia64*)
10391 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10392 ;;
10393 *)
10394 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10395 ;;
10396 esac
10397 else
10398 case $host_cpu in
10399 hppa*64*)
10400 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10401 ;;
10402 ia64*)
10403 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10404 ;;
10405 *)
10406
10407 # Older versions of the 11.00 compiler do not understand -b yet
10408 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10410 $as_echo_n "checking if $CC understands -b... " >&6; }
10411 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10412 $as_echo_n "(cached) " >&6
10413 else
10414 lt_cv_prog_compiler__b=no
10415 save_LDFLAGS="$LDFLAGS"
10416 LDFLAGS="$LDFLAGS -b"
10417 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10418 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10419 # The linker can only warn and ignore the option if not recognized
10420 # So say no if there are warnings
10421 if test -s conftest.err; then
10422 # Append any errors to the config.log.
10423 cat conftest.err 1>&5
10424 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10426 if diff conftest.exp conftest.er2 >/dev/null; then
10427 lt_cv_prog_compiler__b=yes
10428 fi
10429 else
10430 lt_cv_prog_compiler__b=yes
10431 fi
10432 fi
10433 $RM -r conftest*
10434 LDFLAGS="$save_LDFLAGS"
10435
10436 fi
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10438 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10439
10440 if test x"$lt_cv_prog_compiler__b" = xyes; then
10441 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10442 else
10443 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10444 fi
10445
10446 ;;
10447 esac
10448 fi
10449 if test "$with_gnu_ld" = no; then
10450 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10451 hardcode_libdir_separator=:
10452
10453 case $host_cpu in
10454 hppa*64*|ia64*)
10455 hardcode_direct=no
10456 hardcode_shlibpath_var=no
10457 ;;
10458 *)
10459 hardcode_direct=yes
10460 hardcode_direct_absolute=yes
10461 export_dynamic_flag_spec='${wl}-E'
10462
10463 # hardcode_minus_L: Not really in the search PATH,
10464 # but as the default location of the library.
10465 hardcode_minus_L=yes
10466 ;;
10467 esac
10468 fi
10469 ;;
10470
10471 irix5* | irix6* | nonstopux*)
10472 if test "$GCC" = yes; then
10473 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'
10474 # Try to use the -exported_symbol ld option, if it does not
10475 # work, assume that -exports_file does not work either and
10476 # implicitly export all symbols.
10477 save_LDFLAGS="$LDFLAGS"
10478 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480 /* end confdefs.h. */
10481 int foo(void) {}
10482 _ACEOF
10483 if ac_fn_c_try_link "$LINENO"; then :
10484 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'
10485
10486 fi
10487 rm -f core conftest.err conftest.$ac_objext \
10488 conftest$ac_exeext conftest.$ac_ext
10489 LDFLAGS="$save_LDFLAGS"
10490 else
10491 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'
10492 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'
10493 fi
10494 archive_cmds_need_lc='no'
10495 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10496 hardcode_libdir_separator=:
10497 inherit_rpath=yes
10498 link_all_deplibs=yes
10499 ;;
10500
10501 netbsd*)
10502 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10503 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10504 else
10505 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10506 fi
10507 hardcode_libdir_flag_spec='-R$libdir'
10508 hardcode_direct=yes
10509 hardcode_shlibpath_var=no
10510 ;;
10511
10512 newsos6)
10513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10514 hardcode_direct=yes
10515 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10516 hardcode_libdir_separator=:
10517 hardcode_shlibpath_var=no
10518 ;;
10519
10520 *nto* | *qnx*)
10521 ;;
10522
10523 openbsd*)
10524 if test -f /usr/libexec/ld.so; then
10525 hardcode_direct=yes
10526 hardcode_shlibpath_var=no
10527 hardcode_direct_absolute=yes
10528 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10529 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10530 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10531 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10532 export_dynamic_flag_spec='${wl}-E'
10533 else
10534 case $host_os in
10535 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10536 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10537 hardcode_libdir_flag_spec='-R$libdir'
10538 ;;
10539 *)
10540 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10541 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10542 ;;
10543 esac
10544 fi
10545 else
10546 ld_shlibs=no
10547 fi
10548 ;;
10549
10550 os2*)
10551 hardcode_libdir_flag_spec='-L$libdir'
10552 hardcode_minus_L=yes
10553 allow_undefined_flag=unsupported
10554 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'
10555 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10556 ;;
10557
10558 osf3*)
10559 if test "$GCC" = yes; then
10560 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10561 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'
10562 else
10563 allow_undefined_flag=' -expect_unresolved \*'
10564 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'
10565 fi
10566 archive_cmds_need_lc='no'
10567 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10568 hardcode_libdir_separator=:
10569 ;;
10570
10571 osf4* | osf5*) # as osf3* with the addition of -msym flag
10572 if test "$GCC" = yes; then
10573 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10574 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'
10575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10576 else
10577 allow_undefined_flag=' -expect_unresolved \*'
10578 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'
10579 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~
10580 $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'
10581
10582 # Both c and cxx compiler support -rpath directly
10583 hardcode_libdir_flag_spec='-rpath $libdir'
10584 fi
10585 archive_cmds_need_lc='no'
10586 hardcode_libdir_separator=:
10587 ;;
10588
10589 solaris*)
10590 no_undefined_flag=' -z defs'
10591 if test "$GCC" = yes; then
10592 wlarc='${wl}'
10593 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10594 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10595 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10596 else
10597 case `$CC -V 2>&1` in
10598 *"Compilers 5.0"*)
10599 wlarc=''
10600 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10601 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10602 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10603 ;;
10604 *)
10605 wlarc='${wl}'
10606 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10607 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10608 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10609 ;;
10610 esac
10611 fi
10612 hardcode_libdir_flag_spec='-R$libdir'
10613 hardcode_shlibpath_var=no
10614 case $host_os in
10615 solaris2.[0-5] | solaris2.[0-5].*) ;;
10616 *)
10617 # The compiler driver will combine and reorder linker options,
10618 # but understands `-z linker_flag'. GCC discards it without `$wl',
10619 # but is careful enough not to reorder.
10620 # Supported since Solaris 2.6 (maybe 2.5.1?)
10621 if test "$GCC" = yes; then
10622 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10623 else
10624 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10625 fi
10626 ;;
10627 esac
10628 link_all_deplibs=yes
10629 ;;
10630
10631 sunos4*)
10632 if test "x$host_vendor" = xsequent; then
10633 # Use $CC to link under sequent, because it throws in some extra .o
10634 # files that make .init and .fini sections work.
10635 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10636 else
10637 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10638 fi
10639 hardcode_libdir_flag_spec='-L$libdir'
10640 hardcode_direct=yes
10641 hardcode_minus_L=yes
10642 hardcode_shlibpath_var=no
10643 ;;
10644
10645 sysv4)
10646 case $host_vendor in
10647 sni)
10648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10649 hardcode_direct=yes # is this really true???
10650 ;;
10651 siemens)
10652 ## LD is ld it makes a PLAMLIB
10653 ## CC just makes a GrossModule.
10654 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10655 reload_cmds='$CC -r -o $output$reload_objs'
10656 hardcode_direct=no
10657 ;;
10658 motorola)
10659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10660 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10661 ;;
10662 esac
10663 runpath_var='LD_RUN_PATH'
10664 hardcode_shlibpath_var=no
10665 ;;
10666
10667 sysv4.3*)
10668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10669 hardcode_shlibpath_var=no
10670 export_dynamic_flag_spec='-Bexport'
10671 ;;
10672
10673 sysv4*MP*)
10674 if test -d /usr/nec; then
10675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10676 hardcode_shlibpath_var=no
10677 runpath_var=LD_RUN_PATH
10678 hardcode_runpath_var=yes
10679 ld_shlibs=yes
10680 fi
10681 ;;
10682
10683 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10684 no_undefined_flag='${wl}-z,text'
10685 archive_cmds_need_lc=no
10686 hardcode_shlibpath_var=no
10687 runpath_var='LD_RUN_PATH'
10688
10689 if test "$GCC" = yes; then
10690 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10691 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10692 else
10693 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10694 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10695 fi
10696 ;;
10697
10698 sysv5* | sco3.2v5* | sco5v6*)
10699 # Note: We can NOT use -z defs as we might desire, because we do not
10700 # link with -lc, and that would cause any symbols used from libc to
10701 # always be unresolved, which means just about no library would
10702 # ever link correctly. If we're not using GNU ld we use -z text
10703 # though, which does catch some bad symbols but isn't as heavy-handed
10704 # as -z defs.
10705 no_undefined_flag='${wl}-z,text'
10706 allow_undefined_flag='${wl}-z,nodefs'
10707 archive_cmds_need_lc=no
10708 hardcode_shlibpath_var=no
10709 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10710 hardcode_libdir_separator=':'
10711 link_all_deplibs=yes
10712 export_dynamic_flag_spec='${wl}-Bexport'
10713 runpath_var='LD_RUN_PATH'
10714
10715 if test "$GCC" = yes; then
10716 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10717 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10718 else
10719 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10720 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10721 fi
10722 ;;
10723
10724 uts4*)
10725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10726 hardcode_libdir_flag_spec='-L$libdir'
10727 hardcode_shlibpath_var=no
10728 ;;
10729
10730 *)
10731 ld_shlibs=no
10732 ;;
10733 esac
10734
10735 if test x$host_vendor = xsni; then
10736 case $host in
10737 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10738 export_dynamic_flag_spec='${wl}-Blargedynsym'
10739 ;;
10740 esac
10741 fi
10742 fi
10743
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10745 $as_echo "$ld_shlibs" >&6; }
10746 test "$ld_shlibs" = no && can_build_shared=no
10747
10748 with_gnu_ld=$with_gnu_ld
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764 #
10765 # Do we need to explicitly link libc?
10766 #
10767 case "x$archive_cmds_need_lc" in
10768 x|xyes)
10769 # Assume -lc should be added
10770 archive_cmds_need_lc=yes
10771
10772 if test "$enable_shared" = yes && test "$GCC" = yes; then
10773 case $archive_cmds in
10774 *'~'*)
10775 # FIXME: we may have to deal with multi-command sequences.
10776 ;;
10777 '$CC '*)
10778 # Test whether the compiler implicitly links with -lc since on some
10779 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10780 # to ld, don't add -lc before -lgcc.
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10782 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10783 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10784 $as_echo_n "(cached) " >&6
10785 else
10786 $RM conftest*
10787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10788
10789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10790 (eval $ac_compile) 2>&5
10791 ac_status=$?
10792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10793 test $ac_status = 0; } 2>conftest.err; then
10794 soname=conftest
10795 lib=conftest
10796 libobjs=conftest.$ac_objext
10797 deplibs=
10798 wl=$lt_prog_compiler_wl
10799 pic_flag=$lt_prog_compiler_pic
10800 compiler_flags=-v
10801 linker_flags=-v
10802 verstring=
10803 output_objdir=.
10804 libname=conftest
10805 lt_save_allow_undefined_flag=$allow_undefined_flag
10806 allow_undefined_flag=
10807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10808 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10809 ac_status=$?
10810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10811 test $ac_status = 0; }
10812 then
10813 lt_cv_archive_cmds_need_lc=no
10814 else
10815 lt_cv_archive_cmds_need_lc=yes
10816 fi
10817 allow_undefined_flag=$lt_save_allow_undefined_flag
10818 else
10819 cat conftest.err 1>&5
10820 fi
10821 $RM conftest*
10822
10823 fi
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10825 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10826 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10827 ;;
10828 esac
10829 fi
10830 ;;
10831 esac
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10990 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10991
10992 if test "$GCC" = yes; then
10993 case $host_os in
10994 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10995 *) lt_awk_arg="/^libraries:/" ;;
10996 esac
10997 case $host_os in
10998 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10999 *) lt_sed_strip_eq="s,=/,/,g" ;;
11000 esac
11001 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11002 case $lt_search_path_spec in
11003 *\;*)
11004 # if the path contains ";" then we assume it to be the separator
11005 # otherwise default to the standard path separator (i.e. ":") - it is
11006 # assumed that no part of a normal pathname contains ";" but that should
11007 # okay in the real world where ";" in dirpaths is itself problematic.
11008 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11009 ;;
11010 *)
11011 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11012 ;;
11013 esac
11014 # Ok, now we have the path, separated by spaces, we can step through it
11015 # and add multilib dir if necessary.
11016 lt_tmp_lt_search_path_spec=
11017 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11018 for lt_sys_path in $lt_search_path_spec; do
11019 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11020 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11021 else
11022 test -d "$lt_sys_path" && \
11023 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11024 fi
11025 done
11026 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11027 BEGIN {RS=" "; FS="/|\n";} {
11028 lt_foo="";
11029 lt_count=0;
11030 for (lt_i = NF; lt_i > 0; lt_i--) {
11031 if ($lt_i != "" && $lt_i != ".") {
11032 if ($lt_i == "..") {
11033 lt_count++;
11034 } else {
11035 if (lt_count == 0) {
11036 lt_foo="/" $lt_i lt_foo;
11037 } else {
11038 lt_count--;
11039 }
11040 }
11041 }
11042 }
11043 if (lt_foo != "") { lt_freq[lt_foo]++; }
11044 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11045 }'`
11046 # AWK program above erroneously prepends '/' to C:/dos/paths
11047 # for these hosts.
11048 case $host_os in
11049 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11050 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11051 esac
11052 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11053 else
11054 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11055 fi
11056 library_names_spec=
11057 libname_spec='lib$name'
11058 soname_spec=
11059 shrext_cmds=".so"
11060 postinstall_cmds=
11061 postuninstall_cmds=
11062 finish_cmds=
11063 finish_eval=
11064 shlibpath_var=
11065 shlibpath_overrides_runpath=unknown
11066 version_type=none
11067 dynamic_linker="$host_os ld.so"
11068 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11069 need_lib_prefix=unknown
11070 hardcode_into_libs=no
11071
11072 # when you set need_version to no, make sure it does not cause -set_version
11073 # flags to be left without arguments
11074 need_version=unknown
11075
11076 case $host_os in
11077 aix3*)
11078 version_type=linux
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11080 shlibpath_var=LIBPATH
11081
11082 # AIX 3 has no versioning support, so we append a major version to the name.
11083 soname_spec='${libname}${release}${shared_ext}$major'
11084 ;;
11085
11086 aix[4-9]*)
11087 version_type=linux
11088 need_lib_prefix=no
11089 need_version=no
11090 hardcode_into_libs=yes
11091 if test "$host_cpu" = ia64; then
11092 # AIX 5 supports IA64
11093 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11094 shlibpath_var=LD_LIBRARY_PATH
11095 else
11096 # With GCC up to 2.95.x, collect2 would create an import file
11097 # for dependence libraries. The import file would start with
11098 # the line `#! .'. This would cause the generated library to
11099 # depend on `.', always an invalid library. This was fixed in
11100 # development snapshots of GCC prior to 3.0.
11101 case $host_os in
11102 aix4 | aix4.[01] | aix4.[01].*)
11103 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11104 echo ' yes '
11105 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11106 :
11107 else
11108 can_build_shared=no
11109 fi
11110 ;;
11111 esac
11112 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11113 # soname into executable. Probably we can add versioning support to
11114 # collect2, so additional links can be useful in future.
11115 if test "$aix_use_runtimelinking" = yes; then
11116 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11117 # instead of lib<name>.a to let people know that these are not
11118 # typical AIX shared libraries.
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11120 else
11121 # We preserve .a as extension for shared libraries through AIX4.2
11122 # and later when we are not doing run time linking.
11123 library_names_spec='${libname}${release}.a $libname.a'
11124 soname_spec='${libname}${release}${shared_ext}$major'
11125 fi
11126 shlibpath_var=LIBPATH
11127 fi
11128 ;;
11129
11130 amigaos*)
11131 case $host_cpu in
11132 powerpc)
11133 # Since July 2007 AmigaOS4 officially supports .so libraries.
11134 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11136 ;;
11137 m68k)
11138 library_names_spec='$libname.ixlibrary $libname.a'
11139 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11140 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'
11141 ;;
11142 esac
11143 ;;
11144
11145 beos*)
11146 library_names_spec='${libname}${shared_ext}'
11147 dynamic_linker="$host_os ld.so"
11148 shlibpath_var=LIBRARY_PATH
11149 ;;
11150
11151 bsdi[45]*)
11152 version_type=linux
11153 need_version=no
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 soname_spec='${libname}${release}${shared_ext}$major'
11156 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11157 shlibpath_var=LD_LIBRARY_PATH
11158 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11159 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11160 # the default ld.so.conf also contains /usr/contrib/lib and
11161 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11162 # libtool to hard-code these into programs
11163 ;;
11164
11165 cygwin* | mingw* | pw32* | cegcc*)
11166 version_type=windows
11167 shrext_cmds=".dll"
11168 need_version=no
11169 need_lib_prefix=no
11170
11171 case $GCC,$host_os in
11172 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11173 library_names_spec='$libname.dll.a'
11174 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11175 postinstall_cmds='base_file=`basename \${file}`~
11176 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11177 dldir=$destdir/`dirname \$dlpath`~
11178 test -d \$dldir || mkdir -p \$dldir~
11179 $install_prog $dir/$dlname \$dldir/$dlname~
11180 chmod a+x \$dldir/$dlname~
11181 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11182 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11183 fi'
11184 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11185 dlpath=$dir/\$dldll~
11186 $RM \$dlpath'
11187 shlibpath_overrides_runpath=yes
11188
11189 case $host_os in
11190 cygwin*)
11191 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11192 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11193
11194 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11195 ;;
11196 mingw* | cegcc*)
11197 # MinGW DLLs use traditional 'lib' prefix
11198 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11199 ;;
11200 pw32*)
11201 # pw32 DLLs use 'pw' prefix rather than 'lib'
11202 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11203 ;;
11204 esac
11205 ;;
11206
11207 *)
11208 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11209 ;;
11210 esac
11211 dynamic_linker='Win32 ld.exe'
11212 # FIXME: first we should search . and the directory the executable is in
11213 shlibpath_var=PATH
11214 ;;
11215
11216 darwin* | rhapsody*)
11217 dynamic_linker="$host_os dyld"
11218 version_type=darwin
11219 need_lib_prefix=no
11220 need_version=no
11221 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11222 soname_spec='${libname}${release}${major}$shared_ext'
11223 shlibpath_overrides_runpath=yes
11224 shlibpath_var=DYLD_LIBRARY_PATH
11225 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11226
11227 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11228 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11229 ;;
11230
11231 dgux*)
11232 version_type=linux
11233 need_lib_prefix=no
11234 need_version=no
11235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11236 soname_spec='${libname}${release}${shared_ext}$major'
11237 shlibpath_var=LD_LIBRARY_PATH
11238 ;;
11239
11240 freebsd* | dragonfly*)
11241 # DragonFly does not have aout. When/if they implement a new
11242 # versioning mechanism, adjust this.
11243 if test -x /usr/bin/objformat; then
11244 objformat=`/usr/bin/objformat`
11245 else
11246 case $host_os in
11247 freebsd[23].*) objformat=aout ;;
11248 *) objformat=elf ;;
11249 esac
11250 fi
11251 version_type=freebsd-$objformat
11252 case $version_type in
11253 freebsd-elf*)
11254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11255 need_version=no
11256 need_lib_prefix=no
11257 ;;
11258 freebsd-*)
11259 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11260 need_version=yes
11261 ;;
11262 esac
11263 shlibpath_var=LD_LIBRARY_PATH
11264 case $host_os in
11265 freebsd2.*)
11266 shlibpath_overrides_runpath=yes
11267 ;;
11268 freebsd3.[01]* | freebsdelf3.[01]*)
11269 shlibpath_overrides_runpath=yes
11270 hardcode_into_libs=yes
11271 ;;
11272 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11273 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11274 shlibpath_overrides_runpath=no
11275 hardcode_into_libs=yes
11276 ;;
11277 *) # from 4.6 on, and DragonFly
11278 shlibpath_overrides_runpath=yes
11279 hardcode_into_libs=yes
11280 ;;
11281 esac
11282 ;;
11283
11284 gnu*)
11285 version_type=linux
11286 need_lib_prefix=no
11287 need_version=no
11288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11289 soname_spec='${libname}${release}${shared_ext}$major'
11290 shlibpath_var=LD_LIBRARY_PATH
11291 hardcode_into_libs=yes
11292 ;;
11293
11294 haiku*)
11295 version_type=linux
11296 need_lib_prefix=no
11297 need_version=no
11298 dynamic_linker="$host_os runtime_loader"
11299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11300 soname_spec='${libname}${release}${shared_ext}$major'
11301 shlibpath_var=LIBRARY_PATH
11302 shlibpath_overrides_runpath=yes
11303 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11304 hardcode_into_libs=yes
11305 ;;
11306
11307 hpux9* | hpux10* | hpux11*)
11308 # Give a soname corresponding to the major version so that dld.sl refuses to
11309 # link against other versions.
11310 version_type=sunos
11311 need_lib_prefix=no
11312 need_version=no
11313 case $host_cpu in
11314 ia64*)
11315 shrext_cmds='.so'
11316 hardcode_into_libs=yes
11317 dynamic_linker="$host_os dld.so"
11318 shlibpath_var=LD_LIBRARY_PATH
11319 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11321 soname_spec='${libname}${release}${shared_ext}$major'
11322 if test "X$HPUX_IA64_MODE" = X32; then
11323 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11324 else
11325 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11326 fi
11327 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11328 ;;
11329 hppa*64*)
11330 shrext_cmds='.sl'
11331 hardcode_into_libs=yes
11332 dynamic_linker="$host_os dld.sl"
11333 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11336 soname_spec='${libname}${release}${shared_ext}$major'
11337 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11339 ;;
11340 *)
11341 shrext_cmds='.sl'
11342 dynamic_linker="$host_os dld.sl"
11343 shlibpath_var=SHLIB_PATH
11344 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346 soname_spec='${libname}${release}${shared_ext}$major'
11347 ;;
11348 esac
11349 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11350 postinstall_cmds='chmod 555 $lib'
11351 # or fails outright, so override atomically:
11352 install_override_mode=555
11353 ;;
11354
11355 interix[3-9]*)
11356 version_type=linux
11357 need_lib_prefix=no
11358 need_version=no
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11362 shlibpath_var=LD_LIBRARY_PATH
11363 shlibpath_overrides_runpath=no
11364 hardcode_into_libs=yes
11365 ;;
11366
11367 irix5* | irix6* | nonstopux*)
11368 case $host_os in
11369 nonstopux*) version_type=nonstopux ;;
11370 *)
11371 if test "$lt_cv_prog_gnu_ld" = yes; then
11372 version_type=linux
11373 else
11374 version_type=irix
11375 fi ;;
11376 esac
11377 need_lib_prefix=no
11378 need_version=no
11379 soname_spec='${libname}${release}${shared_ext}$major'
11380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11381 case $host_os in
11382 irix5* | nonstopux*)
11383 libsuff= shlibsuff=
11384 ;;
11385 *)
11386 case $LD in # libtool.m4 will add one of these switches to LD
11387 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11388 libsuff= shlibsuff= libmagic=32-bit;;
11389 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11390 libsuff=32 shlibsuff=N32 libmagic=N32;;
11391 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11392 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11393 *) libsuff= shlibsuff= libmagic=never-match;;
11394 esac
11395 ;;
11396 esac
11397 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11398 shlibpath_overrides_runpath=no
11399 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11400 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11401 hardcode_into_libs=yes
11402 ;;
11403
11404 # No shared lib support for Linux oldld, aout, or coff.
11405 linux*oldld* | linux*aout* | linux*coff*)
11406 dynamic_linker=no
11407 ;;
11408
11409 # This must be Linux ELF.
11410 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11411 version_type=linux
11412 need_lib_prefix=no
11413 need_version=no
11414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11415 soname_spec='${libname}${release}${shared_ext}$major'
11416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11417 shlibpath_var=LD_LIBRARY_PATH
11418 shlibpath_overrides_runpath=no
11419
11420 # Some binutils ld are patched to set DT_RUNPATH
11421 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11422 $as_echo_n "(cached) " >&6
11423 else
11424 lt_cv_shlibpath_overrides_runpath=no
11425 save_LDFLAGS=$LDFLAGS
11426 save_libdir=$libdir
11427 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11428 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h. */
11431
11432 int
11433 main ()
11434 {
11435
11436 ;
11437 return 0;
11438 }
11439 _ACEOF
11440 if ac_fn_c_try_link "$LINENO"; then :
11441 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11442 lt_cv_shlibpath_overrides_runpath=yes
11443 fi
11444 fi
11445 rm -f core conftest.err conftest.$ac_objext \
11446 conftest$ac_exeext conftest.$ac_ext
11447 LDFLAGS=$save_LDFLAGS
11448 libdir=$save_libdir
11449
11450 fi
11451
11452 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11453
11454 # This implies no fast_install, which is unacceptable.
11455 # Some rework will be needed to allow for fast_install
11456 # before this can be enabled.
11457 hardcode_into_libs=yes
11458
11459 # Append ld.so.conf contents to the search path
11460 if test -f /etc/ld.so.conf; then
11461 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' ' '`
11462 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11463 fi
11464
11465 # We used to test for /lib/ld.so.1 and disable shared libraries on
11466 # powerpc, because MkLinux only supported shared libraries with the
11467 # GNU dynamic linker. Since this was broken with cross compilers,
11468 # most powerpc-linux boxes support dynamic linking these days and
11469 # people can always --disable-shared, the test was removed, and we
11470 # assume the GNU/Linux dynamic linker is in use.
11471 dynamic_linker='GNU/Linux ld.so'
11472 ;;
11473
11474 netbsd*)
11475 version_type=sunos
11476 need_lib_prefix=no
11477 need_version=no
11478 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11481 dynamic_linker='NetBSD (a.out) ld.so'
11482 else
11483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11484 soname_spec='${libname}${release}${shared_ext}$major'
11485 dynamic_linker='NetBSD ld.elf_so'
11486 fi
11487 shlibpath_var=LD_LIBRARY_PATH
11488 shlibpath_overrides_runpath=yes
11489 hardcode_into_libs=yes
11490 ;;
11491
11492 newsos6)
11493 version_type=linux
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11495 shlibpath_var=LD_LIBRARY_PATH
11496 shlibpath_overrides_runpath=yes
11497 ;;
11498
11499 *nto* | *qnx*)
11500 version_type=qnx
11501 need_lib_prefix=no
11502 need_version=no
11503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11504 soname_spec='${libname}${release}${shared_ext}$major'
11505 shlibpath_var=LD_LIBRARY_PATH
11506 shlibpath_overrides_runpath=no
11507 hardcode_into_libs=yes
11508 dynamic_linker='ldqnx.so'
11509 ;;
11510
11511 openbsd*)
11512 version_type=sunos
11513 sys_lib_dlsearch_path_spec="/usr/lib"
11514 need_lib_prefix=no
11515 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11516 case $host_os in
11517 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11518 *) need_version=no ;;
11519 esac
11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11524 case $host_os in
11525 openbsd2.[89] | openbsd2.[89].*)
11526 shlibpath_overrides_runpath=no
11527 ;;
11528 *)
11529 shlibpath_overrides_runpath=yes
11530 ;;
11531 esac
11532 else
11533 shlibpath_overrides_runpath=yes
11534 fi
11535 ;;
11536
11537 os2*)
11538 libname_spec='$name'
11539 shrext_cmds=".dll"
11540 need_lib_prefix=no
11541 library_names_spec='$libname${shared_ext} $libname.a'
11542 dynamic_linker='OS/2 ld.exe'
11543 shlibpath_var=LIBPATH
11544 ;;
11545
11546 osf3* | osf4* | osf5*)
11547 version_type=osf
11548 need_lib_prefix=no
11549 need_version=no
11550 soname_spec='${libname}${release}${shared_ext}$major'
11551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11552 shlibpath_var=LD_LIBRARY_PATH
11553 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11554 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11555 ;;
11556
11557 rdos*)
11558 dynamic_linker=no
11559 ;;
11560
11561 solaris*)
11562 version_type=linux
11563 need_lib_prefix=no
11564 need_version=no
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11566 soname_spec='${libname}${release}${shared_ext}$major'
11567 shlibpath_var=LD_LIBRARY_PATH
11568 shlibpath_overrides_runpath=yes
11569 hardcode_into_libs=yes
11570 # ldd complains unless libraries are executable
11571 postinstall_cmds='chmod +x $lib'
11572 ;;
11573
11574 sunos4*)
11575 version_type=sunos
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11577 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11578 shlibpath_var=LD_LIBRARY_PATH
11579 shlibpath_overrides_runpath=yes
11580 if test "$with_gnu_ld" = yes; then
11581 need_lib_prefix=no
11582 fi
11583 need_version=yes
11584 ;;
11585
11586 sysv4 | sysv4.3*)
11587 version_type=linux
11588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11589 soname_spec='${libname}${release}${shared_ext}$major'
11590 shlibpath_var=LD_LIBRARY_PATH
11591 case $host_vendor in
11592 sni)
11593 shlibpath_overrides_runpath=no
11594 need_lib_prefix=no
11595 runpath_var=LD_RUN_PATH
11596 ;;
11597 siemens)
11598 need_lib_prefix=no
11599 ;;
11600 motorola)
11601 need_lib_prefix=no
11602 need_version=no
11603 shlibpath_overrides_runpath=no
11604 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11605 ;;
11606 esac
11607 ;;
11608
11609 sysv4*MP*)
11610 if test -d /usr/nec ;then
11611 version_type=linux
11612 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11613 soname_spec='$libname${shared_ext}.$major'
11614 shlibpath_var=LD_LIBRARY_PATH
11615 fi
11616 ;;
11617
11618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11619 version_type=freebsd-elf
11620 need_lib_prefix=no
11621 need_version=no
11622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11623 soname_spec='${libname}${release}${shared_ext}$major'
11624 shlibpath_var=LD_LIBRARY_PATH
11625 shlibpath_overrides_runpath=yes
11626 hardcode_into_libs=yes
11627 if test "$with_gnu_ld" = yes; then
11628 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11629 else
11630 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11631 case $host_os in
11632 sco3.2v5*)
11633 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11634 ;;
11635 esac
11636 fi
11637 sys_lib_dlsearch_path_spec='/usr/lib'
11638 ;;
11639
11640 tpf*)
11641 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11642 version_type=linux
11643 need_lib_prefix=no
11644 need_version=no
11645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11646 shlibpath_var=LD_LIBRARY_PATH
11647 shlibpath_overrides_runpath=no
11648 hardcode_into_libs=yes
11649 ;;
11650
11651 uts4*)
11652 version_type=linux
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11654 soname_spec='${libname}${release}${shared_ext}$major'
11655 shlibpath_var=LD_LIBRARY_PATH
11656 ;;
11657
11658 *)
11659 dynamic_linker=no
11660 ;;
11661 esac
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11663 $as_echo "$dynamic_linker" >&6; }
11664 test "$dynamic_linker" = no && can_build_shared=no
11665
11666 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11667 if test "$GCC" = yes; then
11668 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11669 fi
11670
11671 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11672 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11673 fi
11674 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11675 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11676 fi
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11770 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11771 hardcode_action=
11772 if test -n "$hardcode_libdir_flag_spec" ||
11773 test -n "$runpath_var" ||
11774 test "X$hardcode_automatic" = "Xyes" ; then
11775
11776 # We can hardcode non-existent directories.
11777 if test "$hardcode_direct" != no &&
11778 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11779 # have to relink, otherwise we might link with an installed library
11780 # when we should be linking with a yet-to-be-installed one
11781 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11782 test "$hardcode_minus_L" != no; then
11783 # Linking always hardcodes the temporary library directory.
11784 hardcode_action=relink
11785 else
11786 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11787 hardcode_action=immediate
11788 fi
11789 else
11790 # We cannot hardcode anything, or else we can only hardcode existing
11791 # directories.
11792 hardcode_action=unsupported
11793 fi
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11795 $as_echo "$hardcode_action" >&6; }
11796
11797 if test "$hardcode_action" = relink ||
11798 test "$inherit_rpath" = yes; then
11799 # Fast installation is not supported
11800 enable_fast_install=no
11801 elif test "$shlibpath_overrides_runpath" = yes ||
11802 test "$enable_shared" = no; then
11803 # Fast installation is not necessary
11804 enable_fast_install=needless
11805 fi
11806
11807
11808
11809
11810
11811
11812 if test "x$enable_dlopen" != xyes; then
11813 enable_dlopen=unknown
11814 enable_dlopen_self=unknown
11815 enable_dlopen_self_static=unknown
11816 else
11817 lt_cv_dlopen=no
11818 lt_cv_dlopen_libs=
11819
11820 case $host_os in
11821 beos*)
11822 lt_cv_dlopen="load_add_on"
11823 lt_cv_dlopen_libs=
11824 lt_cv_dlopen_self=yes
11825 ;;
11826
11827 mingw* | pw32* | cegcc*)
11828 lt_cv_dlopen="LoadLibrary"
11829 lt_cv_dlopen_libs=
11830 ;;
11831
11832 cygwin*)
11833 lt_cv_dlopen="dlopen"
11834 lt_cv_dlopen_libs=
11835 ;;
11836
11837 darwin*)
11838 # if libdl is installed we need to link against it
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11840 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11841 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11842 $as_echo_n "(cached) " >&6
11843 else
11844 ac_check_lib_save_LIBS=$LIBS
11845 LIBS="-ldl $LIBS"
11846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847 /* end confdefs.h. */
11848
11849 /* Override any GCC internal prototype to avoid an error.
11850 Use char because int might match the return type of a GCC
11851 builtin and then its argument prototype would still apply. */
11852 #ifdef __cplusplus
11853 extern "C"
11854 #endif
11855 char dlopen ();
11856 int
11857 main ()
11858 {
11859 return dlopen ();
11860 ;
11861 return 0;
11862 }
11863 _ACEOF
11864 if ac_fn_c_try_link "$LINENO"; then :
11865 ac_cv_lib_dl_dlopen=yes
11866 else
11867 ac_cv_lib_dl_dlopen=no
11868 fi
11869 rm -f core conftest.err conftest.$ac_objext \
11870 conftest$ac_exeext conftest.$ac_ext
11871 LIBS=$ac_check_lib_save_LIBS
11872 fi
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11874 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11875 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11876 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11877 else
11878
11879 lt_cv_dlopen="dyld"
11880 lt_cv_dlopen_libs=
11881 lt_cv_dlopen_self=yes
11882
11883 fi
11884
11885 ;;
11886
11887 *)
11888 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11889 if test "x$ac_cv_func_shl_load" = x""yes; then :
11890 lt_cv_dlopen="shl_load"
11891 else
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11893 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11894 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11895 $as_echo_n "(cached) " >&6
11896 else
11897 ac_check_lib_save_LIBS=$LIBS
11898 LIBS="-ldld $LIBS"
11899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11900 /* end confdefs.h. */
11901
11902 /* Override any GCC internal prototype to avoid an error.
11903 Use char because int might match the return type of a GCC
11904 builtin and then its argument prototype would still apply. */
11905 #ifdef __cplusplus
11906 extern "C"
11907 #endif
11908 char shl_load ();
11909 int
11910 main ()
11911 {
11912 return shl_load ();
11913 ;
11914 return 0;
11915 }
11916 _ACEOF
11917 if ac_fn_c_try_link "$LINENO"; then :
11918 ac_cv_lib_dld_shl_load=yes
11919 else
11920 ac_cv_lib_dld_shl_load=no
11921 fi
11922 rm -f core conftest.err conftest.$ac_objext \
11923 conftest$ac_exeext conftest.$ac_ext
11924 LIBS=$ac_check_lib_save_LIBS
11925 fi
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11927 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11928 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11929 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11930 else
11931 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11932 if test "x$ac_cv_func_dlopen" = x""yes; then :
11933 lt_cv_dlopen="dlopen"
11934 else
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11936 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11937 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11938 $as_echo_n "(cached) " >&6
11939 else
11940 ac_check_lib_save_LIBS=$LIBS
11941 LIBS="-ldl $LIBS"
11942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11943 /* end confdefs.h. */
11944
11945 /* Override any GCC internal prototype to avoid an error.
11946 Use char because int might match the return type of a GCC
11947 builtin and then its argument prototype would still apply. */
11948 #ifdef __cplusplus
11949 extern "C"
11950 #endif
11951 char dlopen ();
11952 int
11953 main ()
11954 {
11955 return dlopen ();
11956 ;
11957 return 0;
11958 }
11959 _ACEOF
11960 if ac_fn_c_try_link "$LINENO"; then :
11961 ac_cv_lib_dl_dlopen=yes
11962 else
11963 ac_cv_lib_dl_dlopen=no
11964 fi
11965 rm -f core conftest.err conftest.$ac_objext \
11966 conftest$ac_exeext conftest.$ac_ext
11967 LIBS=$ac_check_lib_save_LIBS
11968 fi
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11970 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11971 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11972 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11973 else
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11975 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11976 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11977 $as_echo_n "(cached) " >&6
11978 else
11979 ac_check_lib_save_LIBS=$LIBS
11980 LIBS="-lsvld $LIBS"
11981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11983
11984 /* Override any GCC internal prototype to avoid an error.
11985 Use char because int might match the return type of a GCC
11986 builtin and then its argument prototype would still apply. */
11987 #ifdef __cplusplus
11988 extern "C"
11989 #endif
11990 char dlopen ();
11991 int
11992 main ()
11993 {
11994 return dlopen ();
11995 ;
11996 return 0;
11997 }
11998 _ACEOF
11999 if ac_fn_c_try_link "$LINENO"; then :
12000 ac_cv_lib_svld_dlopen=yes
12001 else
12002 ac_cv_lib_svld_dlopen=no
12003 fi
12004 rm -f core conftest.err conftest.$ac_objext \
12005 conftest$ac_exeext conftest.$ac_ext
12006 LIBS=$ac_check_lib_save_LIBS
12007 fi
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12009 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12010 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12011 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12012 else
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12014 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12015 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12016 $as_echo_n "(cached) " >&6
12017 else
12018 ac_check_lib_save_LIBS=$LIBS
12019 LIBS="-ldld $LIBS"
12020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021 /* end confdefs.h. */
12022
12023 /* Override any GCC internal prototype to avoid an error.
12024 Use char because int might match the return type of a GCC
12025 builtin and then its argument prototype would still apply. */
12026 #ifdef __cplusplus
12027 extern "C"
12028 #endif
12029 char dld_link ();
12030 int
12031 main ()
12032 {
12033 return dld_link ();
12034 ;
12035 return 0;
12036 }
12037 _ACEOF
12038 if ac_fn_c_try_link "$LINENO"; then :
12039 ac_cv_lib_dld_dld_link=yes
12040 else
12041 ac_cv_lib_dld_dld_link=no
12042 fi
12043 rm -f core conftest.err conftest.$ac_objext \
12044 conftest$ac_exeext conftest.$ac_ext
12045 LIBS=$ac_check_lib_save_LIBS
12046 fi
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12048 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12049 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12050 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12051 fi
12052
12053
12054 fi
12055
12056
12057 fi
12058
12059
12060 fi
12061
12062
12063 fi
12064
12065
12066 fi
12067
12068 ;;
12069 esac
12070
12071 if test "x$lt_cv_dlopen" != xno; then
12072 enable_dlopen=yes
12073 else
12074 enable_dlopen=no
12075 fi
12076
12077 case $lt_cv_dlopen in
12078 dlopen)
12079 save_CPPFLAGS="$CPPFLAGS"
12080 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12081
12082 save_LDFLAGS="$LDFLAGS"
12083 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12084
12085 save_LIBS="$LIBS"
12086 LIBS="$lt_cv_dlopen_libs $LIBS"
12087
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12089 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12090 if test "${lt_cv_dlopen_self+set}" = set; then :
12091 $as_echo_n "(cached) " >&6
12092 else
12093 if test "$cross_compiling" = yes; then :
12094 lt_cv_dlopen_self=cross
12095 else
12096 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12097 lt_status=$lt_dlunknown
12098 cat > conftest.$ac_ext <<_LT_EOF
12099 #line 12099 "configure"
12100 #include "confdefs.h"
12101
12102 #if HAVE_DLFCN_H
12103 #include <dlfcn.h>
12104 #endif
12105
12106 #include <stdio.h>
12107
12108 #ifdef RTLD_GLOBAL
12109 # define LT_DLGLOBAL RTLD_GLOBAL
12110 #else
12111 # ifdef DL_GLOBAL
12112 # define LT_DLGLOBAL DL_GLOBAL
12113 # else
12114 # define LT_DLGLOBAL 0
12115 # endif
12116 #endif
12117
12118 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12119 find out it does not work in some platform. */
12120 #ifndef LT_DLLAZY_OR_NOW
12121 # ifdef RTLD_LAZY
12122 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12123 # else
12124 # ifdef DL_LAZY
12125 # define LT_DLLAZY_OR_NOW DL_LAZY
12126 # else
12127 # ifdef RTLD_NOW
12128 # define LT_DLLAZY_OR_NOW RTLD_NOW
12129 # else
12130 # ifdef DL_NOW
12131 # define LT_DLLAZY_OR_NOW DL_NOW
12132 # else
12133 # define LT_DLLAZY_OR_NOW 0
12134 # endif
12135 # endif
12136 # endif
12137 # endif
12138 #endif
12139
12140 /* When -fvisbility=hidden is used, assume the code has been annotated
12141 correspondingly for the symbols needed. */
12142 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12143 void fnord () __attribute__((visibility("default")));
12144 #endif
12145
12146 void fnord () { int i=42; }
12147 int main ()
12148 {
12149 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12150 int status = $lt_dlunknown;
12151
12152 if (self)
12153 {
12154 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12155 else
12156 {
12157 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12158 else puts (dlerror ());
12159 }
12160 /* dlclose (self); */
12161 }
12162 else
12163 puts (dlerror ());
12164
12165 return status;
12166 }
12167 _LT_EOF
12168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12169 (eval $ac_link) 2>&5
12170 ac_status=$?
12171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12172 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12173 (./conftest; exit; ) >&5 2>/dev/null
12174 lt_status=$?
12175 case x$lt_status in
12176 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12177 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12178 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12179 esac
12180 else :
12181 # compilation failed
12182 lt_cv_dlopen_self=no
12183 fi
12184 fi
12185 rm -fr conftest*
12186
12187
12188 fi
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12190 $as_echo "$lt_cv_dlopen_self" >&6; }
12191
12192 if test "x$lt_cv_dlopen_self" = xyes; then
12193 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12195 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12196 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12197 $as_echo_n "(cached) " >&6
12198 else
12199 if test "$cross_compiling" = yes; then :
12200 lt_cv_dlopen_self_static=cross
12201 else
12202 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12203 lt_status=$lt_dlunknown
12204 cat > conftest.$ac_ext <<_LT_EOF
12205 #line 12205 "configure"
12206 #include "confdefs.h"
12207
12208 #if HAVE_DLFCN_H
12209 #include <dlfcn.h>
12210 #endif
12211
12212 #include <stdio.h>
12213
12214 #ifdef RTLD_GLOBAL
12215 # define LT_DLGLOBAL RTLD_GLOBAL
12216 #else
12217 # ifdef DL_GLOBAL
12218 # define LT_DLGLOBAL DL_GLOBAL
12219 # else
12220 # define LT_DLGLOBAL 0
12221 # endif
12222 #endif
12223
12224 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12225 find out it does not work in some platform. */
12226 #ifndef LT_DLLAZY_OR_NOW
12227 # ifdef RTLD_LAZY
12228 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12229 # else
12230 # ifdef DL_LAZY
12231 # define LT_DLLAZY_OR_NOW DL_LAZY
12232 # else
12233 # ifdef RTLD_NOW
12234 # define LT_DLLAZY_OR_NOW RTLD_NOW
12235 # else
12236 # ifdef DL_NOW
12237 # define LT_DLLAZY_OR_NOW DL_NOW
12238 # else
12239 # define LT_DLLAZY_OR_NOW 0
12240 # endif
12241 # endif
12242 # endif
12243 # endif
12244 #endif
12245
12246 /* When -fvisbility=hidden is used, assume the code has been annotated
12247 correspondingly for the symbols needed. */
12248 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12249 void fnord () __attribute__((visibility("default")));
12250 #endif
12251
12252 void fnord () { int i=42; }
12253 int main ()
12254 {
12255 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12256 int status = $lt_dlunknown;
12257
12258 if (self)
12259 {
12260 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12261 else
12262 {
12263 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12264 else puts (dlerror ());
12265 }
12266 /* dlclose (self); */
12267 }
12268 else
12269 puts (dlerror ());
12270
12271 return status;
12272 }
12273 _LT_EOF
12274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12275 (eval $ac_link) 2>&5
12276 ac_status=$?
12277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12278 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12279 (./conftest; exit; ) >&5 2>/dev/null
12280 lt_status=$?
12281 case x$lt_status in
12282 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12283 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12284 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12285 esac
12286 else :
12287 # compilation failed
12288 lt_cv_dlopen_self_static=no
12289 fi
12290 fi
12291 rm -fr conftest*
12292
12293
12294 fi
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12296 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12297 fi
12298
12299 CPPFLAGS="$save_CPPFLAGS"
12300 LDFLAGS="$save_LDFLAGS"
12301 LIBS="$save_LIBS"
12302 ;;
12303 esac
12304
12305 case $lt_cv_dlopen_self in
12306 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12307 *) enable_dlopen_self=unknown ;;
12308 esac
12309
12310 case $lt_cv_dlopen_self_static in
12311 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12312 *) enable_dlopen_self_static=unknown ;;
12313 esac
12314 fi
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332 striplib=
12333 old_striplib=
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12335 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12336 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12337 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12338 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12340 $as_echo "yes" >&6; }
12341 else
12342 # FIXME - insert some real tests, host_os isn't really good enough
12343 case $host_os in
12344 darwin*)
12345 if test -n "$STRIP" ; then
12346 striplib="$STRIP -x"
12347 old_striplib="$STRIP -S"
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12349 $as_echo "yes" >&6; }
12350 else
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352 $as_echo "no" >&6; }
12353 fi
12354 ;;
12355 *)
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357 $as_echo "no" >&6; }
12358 ;;
12359 esac
12360 fi
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373 # Report which library types will actually be built
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12375 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12377 $as_echo "$can_build_shared" >&6; }
12378
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12380 $as_echo_n "checking whether to build shared libraries... " >&6; }
12381 test "$can_build_shared" = "no" && enable_shared=no
12382
12383 # On AIX, shared libraries and static libraries use the same namespace, and
12384 # are all built from PIC.
12385 case $host_os in
12386 aix3*)
12387 test "$enable_shared" = yes && enable_static=no
12388 if test -n "$RANLIB"; then
12389 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12390 postinstall_cmds='$RANLIB $lib'
12391 fi
12392 ;;
12393
12394 aix[4-9]*)
12395 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12396 test "$enable_shared" = yes && enable_static=no
12397 fi
12398 ;;
12399 esac
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12401 $as_echo "$enable_shared" >&6; }
12402
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12404 $as_echo_n "checking whether to build static libraries... " >&6; }
12405 # Make sure either enable_shared or enable_static is yes.
12406 test "$enable_shared" = yes || enable_static=yes
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12408 $as_echo "$enable_static" >&6; }
12409
12410
12411
12412
12413 fi
12414 ac_ext=c
12415 ac_cpp='$CPP $CPPFLAGS'
12416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12419
12420 CC="$lt_save_CC"
12421
12422 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12423 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12424 (test "X$CXX" != "Xg++"))) ; then
12425 ac_ext=cpp
12426 ac_cpp='$CXXCPP $CPPFLAGS'
12427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12431 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12432 if test -z "$CXXCPP"; then
12433 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12434 $as_echo_n "(cached) " >&6
12435 else
12436 # Double quotes because CXXCPP needs to be expanded
12437 for CXXCPP in "$CXX -E" "/lib/cpp"
12438 do
12439 ac_preproc_ok=false
12440 for ac_cxx_preproc_warn_flag in '' yes
12441 do
12442 # Use a header file that comes with gcc, so configuring glibc
12443 # with a fresh cross-compiler works.
12444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12445 # <limits.h> exists even on freestanding compilers.
12446 # On the NeXT, cc -E runs the code through the compiler's parser,
12447 # not just through cpp. "Syntax error" is here to catch this case.
12448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449 /* end confdefs.h. */
12450 #ifdef __STDC__
12451 # include <limits.h>
12452 #else
12453 # include <assert.h>
12454 #endif
12455 Syntax error
12456 _ACEOF
12457 if ac_fn_cxx_try_cpp "$LINENO"; then :
12458
12459 else
12460 # Broken: fails on valid input.
12461 continue
12462 fi
12463 rm -f conftest.err conftest.$ac_ext
12464
12465 # OK, works on sane cases. Now check whether nonexistent headers
12466 # can be detected and how.
12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468 /* end confdefs.h. */
12469 #include <ac_nonexistent.h>
12470 _ACEOF
12471 if ac_fn_cxx_try_cpp "$LINENO"; then :
12472 # Broken: success on invalid input.
12473 continue
12474 else
12475 # Passes both tests.
12476 ac_preproc_ok=:
12477 break
12478 fi
12479 rm -f conftest.err conftest.$ac_ext
12480
12481 done
12482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12483 rm -f conftest.err conftest.$ac_ext
12484 if $ac_preproc_ok; then :
12485 break
12486 fi
12487
12488 done
12489 ac_cv_prog_CXXCPP=$CXXCPP
12490
12491 fi
12492 CXXCPP=$ac_cv_prog_CXXCPP
12493 else
12494 ac_cv_prog_CXXCPP=$CXXCPP
12495 fi
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12497 $as_echo "$CXXCPP" >&6; }
12498 ac_preproc_ok=false
12499 for ac_cxx_preproc_warn_flag in '' yes
12500 do
12501 # Use a header file that comes with gcc, so configuring glibc
12502 # with a fresh cross-compiler works.
12503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12504 # <limits.h> exists even on freestanding compilers.
12505 # On the NeXT, cc -E runs the code through the compiler's parser,
12506 # not just through cpp. "Syntax error" is here to catch this case.
12507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12508 /* end confdefs.h. */
12509 #ifdef __STDC__
12510 # include <limits.h>
12511 #else
12512 # include <assert.h>
12513 #endif
12514 Syntax error
12515 _ACEOF
12516 if ac_fn_cxx_try_cpp "$LINENO"; then :
12517
12518 else
12519 # Broken: fails on valid input.
12520 continue
12521 fi
12522 rm -f conftest.err conftest.$ac_ext
12523
12524 # OK, works on sane cases. Now check whether nonexistent headers
12525 # can be detected and how.
12526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12528 #include <ac_nonexistent.h>
12529 _ACEOF
12530 if ac_fn_cxx_try_cpp "$LINENO"; then :
12531 # Broken: success on invalid input.
12532 continue
12533 else
12534 # Passes both tests.
12535 ac_preproc_ok=:
12536 break
12537 fi
12538 rm -f conftest.err conftest.$ac_ext
12539
12540 done
12541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12542 rm -f conftest.err conftest.$ac_ext
12543 if $ac_preproc_ok; then :
12544
12545 else
12546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12548 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12549 See \`config.log' for more details." "$LINENO" 5; }
12550 fi
12551
12552 ac_ext=c
12553 ac_cpp='$CPP $CPPFLAGS'
12554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12557
12558 else
12559 _lt_caught_CXX_error=yes
12560 fi
12561
12562 ac_ext=cpp
12563 ac_cpp='$CXXCPP $CPPFLAGS'
12564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12567
12568 archive_cmds_need_lc_CXX=no
12569 allow_undefined_flag_CXX=
12570 always_export_symbols_CXX=no
12571 archive_expsym_cmds_CXX=
12572 compiler_needs_object_CXX=no
12573 export_dynamic_flag_spec_CXX=
12574 hardcode_direct_CXX=no
12575 hardcode_direct_absolute_CXX=no
12576 hardcode_libdir_flag_spec_CXX=
12577 hardcode_libdir_flag_spec_ld_CXX=
12578 hardcode_libdir_separator_CXX=
12579 hardcode_minus_L_CXX=no
12580 hardcode_shlibpath_var_CXX=unsupported
12581 hardcode_automatic_CXX=no
12582 inherit_rpath_CXX=no
12583 module_cmds_CXX=
12584 module_expsym_cmds_CXX=
12585 link_all_deplibs_CXX=unknown
12586 old_archive_cmds_CXX=$old_archive_cmds
12587 reload_flag_CXX=$reload_flag
12588 reload_cmds_CXX=$reload_cmds
12589 no_undefined_flag_CXX=
12590 whole_archive_flag_spec_CXX=
12591 enable_shared_with_static_runtimes_CXX=no
12592
12593 # Source file extension for C++ test sources.
12594 ac_ext=cpp
12595
12596 # Object file extension for compiled C++ test sources.
12597 objext=o
12598 objext_CXX=$objext
12599
12600 # No sense in running all these tests if we already determined that
12601 # the CXX compiler isn't working. Some variables (like enable_shared)
12602 # are currently assumed to apply to all compilers on this platform,
12603 # and will be corrupted by setting them based on a non-working compiler.
12604 if test "$_lt_caught_CXX_error" != yes; then
12605 # Code to be used in simple compile tests
12606 lt_simple_compile_test_code="int some_variable = 0;"
12607
12608 # Code to be used in simple link tests
12609 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12610
12611 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12612
12613
12614
12615
12616
12617
12618 # If no C compiler was specified, use CC.
12619 LTCC=${LTCC-"$CC"}
12620
12621 # If no C compiler flags were specified, use CFLAGS.
12622 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12623
12624 # Allow CC to be a program name with arguments.
12625 compiler=$CC
12626
12627
12628 # save warnings/boilerplate of simple test code
12629 ac_outfile=conftest.$ac_objext
12630 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12631 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12632 _lt_compiler_boilerplate=`cat conftest.err`
12633 $RM conftest*
12634
12635 ac_outfile=conftest.$ac_objext
12636 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12637 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12638 _lt_linker_boilerplate=`cat conftest.err`
12639 $RM -r conftest*
12640
12641
12642 # Allow CC to be a program name with arguments.
12643 lt_save_CC=$CC
12644 lt_save_LD=$LD
12645 lt_save_GCC=$GCC
12646 GCC=$GXX
12647 lt_save_with_gnu_ld=$with_gnu_ld
12648 lt_save_path_LD=$lt_cv_path_LD
12649 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12650 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12651 else
12652 $as_unset lt_cv_prog_gnu_ld
12653 fi
12654 if test -n "${lt_cv_path_LDCXX+set}"; then
12655 lt_cv_path_LD=$lt_cv_path_LDCXX
12656 else
12657 $as_unset lt_cv_path_LD
12658 fi
12659 test -z "${LDCXX+set}" || LD=$LDCXX
12660 CC=${CXX-"c++"}
12661 compiler=$CC
12662 compiler_CXX=$CC
12663 for cc_temp in $compiler""; do
12664 case $cc_temp in
12665 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12666 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12667 \-*) ;;
12668 *) break;;
12669 esac
12670 done
12671 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12672
12673
12674 if test -n "$compiler"; then
12675 # We don't want -fno-exception when compiling C++ code, so set the
12676 # no_builtin_flag separately
12677 if test "$GXX" = yes; then
12678 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12679 else
12680 lt_prog_compiler_no_builtin_flag_CXX=
12681 fi
12682
12683 if test "$GXX" = yes; then
12684 # Set up default GNU C++ configuration
12685
12686
12687
12688 # Check whether --with-gnu-ld was given.
12689 if test "${with_gnu_ld+set}" = set; then :
12690 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12691 else
12692 with_gnu_ld=no
12693 fi
12694
12695 ac_prog=ld
12696 if test "$GCC" = yes; then
12697 # Check if gcc -print-prog-name=ld gives a path.
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12699 $as_echo_n "checking for ld used by $CC... " >&6; }
12700 case $host in
12701 *-*-mingw*)
12702 # gcc leaves a trailing carriage return which upsets mingw
12703 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12704 *)
12705 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12706 esac
12707 case $ac_prog in
12708 # Accept absolute paths.
12709 [\\/]* | ?:[\\/]*)
12710 re_direlt='/[^/][^/]*/\.\./'
12711 # Canonicalize the pathname of ld
12712 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12713 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12714 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12715 done
12716 test -z "$LD" && LD="$ac_prog"
12717 ;;
12718 "")
12719 # If it fails, then pretend we aren't using GCC.
12720 ac_prog=ld
12721 ;;
12722 *)
12723 # If it is relative, then search for the first ld in PATH.
12724 with_gnu_ld=unknown
12725 ;;
12726 esac
12727 elif test "$with_gnu_ld" = yes; then
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12729 $as_echo_n "checking for GNU ld... " >&6; }
12730 else
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12732 $as_echo_n "checking for non-GNU ld... " >&6; }
12733 fi
12734 if test "${lt_cv_path_LD+set}" = set; then :
12735 $as_echo_n "(cached) " >&6
12736 else
12737 if test -z "$LD"; then
12738 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12739 for ac_dir in $PATH; do
12740 IFS="$lt_save_ifs"
12741 test -z "$ac_dir" && ac_dir=.
12742 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12743 lt_cv_path_LD="$ac_dir/$ac_prog"
12744 # Check to see if the program is GNU ld. I'd rather use --version,
12745 # but apparently some variants of GNU ld only accept -v.
12746 # Break only if it was the GNU/non-GNU ld that we prefer.
12747 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12748 *GNU* | *'with BFD'*)
12749 test "$with_gnu_ld" != no && break
12750 ;;
12751 *)
12752 test "$with_gnu_ld" != yes && break
12753 ;;
12754 esac
12755 fi
12756 done
12757 IFS="$lt_save_ifs"
12758 else
12759 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12760 fi
12761 fi
12762
12763 LD="$lt_cv_path_LD"
12764 if test -n "$LD"; then
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12766 $as_echo "$LD" >&6; }
12767 else
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769 $as_echo "no" >&6; }
12770 fi
12771 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12773 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12774 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12775 $as_echo_n "(cached) " >&6
12776 else
12777 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12778 case `$LD -v 2>&1 </dev/null` in
12779 *GNU* | *'with BFD'*)
12780 lt_cv_prog_gnu_ld=yes
12781 ;;
12782 *)
12783 lt_cv_prog_gnu_ld=no
12784 ;;
12785 esac
12786 fi
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12788 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12789 with_gnu_ld=$lt_cv_prog_gnu_ld
12790
12791
12792
12793
12794
12795
12796
12797 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12798 # archiving commands below assume that GNU ld is being used.
12799 if test "$with_gnu_ld" = yes; then
12800 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12801 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12802
12803 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12804 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12805
12806 # If archive_cmds runs LD, not CC, wlarc should be empty
12807 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12808 # investigate it a little bit more. (MM)
12809 wlarc='${wl}'
12810
12811 # ancient GNU ld didn't support --whole-archive et. al.
12812 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12813 $GREP 'no-whole-archive' > /dev/null; then
12814 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12815 else
12816 whole_archive_flag_spec_CXX=
12817 fi
12818 else
12819 with_gnu_ld=no
12820 wlarc=
12821
12822 # A generic and very simple default shared library creation
12823 # command for GNU C++ for the case where it uses the native
12824 # linker, instead of GNU ld. If possible, this setting should
12825 # overridden to take advantage of the native linker features on
12826 # the platform it is being used on.
12827 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12828 fi
12829
12830 # Commands to make compiler produce verbose output that lists
12831 # what "hidden" libraries, object files and flags are used when
12832 # linking a shared library.
12833 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12834
12835 else
12836 GXX=no
12837 with_gnu_ld=no
12838 wlarc=
12839 fi
12840
12841 # PORTME: fill in a description of your system's C++ link characteristics
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12843 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12844 ld_shlibs_CXX=yes
12845 case $host_os in
12846 aix3*)
12847 # FIXME: insert proper C++ library support
12848 ld_shlibs_CXX=no
12849 ;;
12850 aix[4-9]*)
12851 if test "$host_cpu" = ia64; then
12852 # On IA64, the linker does run time linking by default, so we don't
12853 # have to do anything special.
12854 aix_use_runtimelinking=no
12855 exp_sym_flag='-Bexport'
12856 no_entry_flag=""
12857 else
12858 aix_use_runtimelinking=no
12859
12860 # Test if we are trying to use run time linking or normal
12861 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12862 # need to do runtime linking.
12863 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12864 for ld_flag in $LDFLAGS; do
12865 case $ld_flag in
12866 *-brtl*)
12867 aix_use_runtimelinking=yes
12868 break
12869 ;;
12870 esac
12871 done
12872 ;;
12873 esac
12874
12875 exp_sym_flag='-bexport'
12876 no_entry_flag='-bnoentry'
12877 fi
12878
12879 # When large executables or shared objects are built, AIX ld can
12880 # have problems creating the table of contents. If linking a library
12881 # or program results in "error TOC overflow" add -mminimal-toc to
12882 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12883 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12884
12885 archive_cmds_CXX=''
12886 hardcode_direct_CXX=yes
12887 hardcode_direct_absolute_CXX=yes
12888 hardcode_libdir_separator_CXX=':'
12889 link_all_deplibs_CXX=yes
12890 file_list_spec_CXX='${wl}-f,'
12891
12892 if test "$GXX" = yes; then
12893 case $host_os in aix4.[012]|aix4.[012].*)
12894 # We only want to do this on AIX 4.2 and lower, the check
12895 # below for broken collect2 doesn't work under 4.3+
12896 collect2name=`${CC} -print-prog-name=collect2`
12897 if test -f "$collect2name" &&
12898 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12899 then
12900 # We have reworked collect2
12901 :
12902 else
12903 # We have old collect2
12904 hardcode_direct_CXX=unsupported
12905 # It fails to find uninstalled libraries when the uninstalled
12906 # path is not listed in the libpath. Setting hardcode_minus_L
12907 # to unsupported forces relinking
12908 hardcode_minus_L_CXX=yes
12909 hardcode_libdir_flag_spec_CXX='-L$libdir'
12910 hardcode_libdir_separator_CXX=
12911 fi
12912 esac
12913 shared_flag='-shared'
12914 if test "$aix_use_runtimelinking" = yes; then
12915 shared_flag="$shared_flag "'${wl}-G'
12916 fi
12917 else
12918 # not using gcc
12919 if test "$host_cpu" = ia64; then
12920 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12921 # chokes on -Wl,-G. The following line is correct:
12922 shared_flag='-G'
12923 else
12924 if test "$aix_use_runtimelinking" = yes; then
12925 shared_flag='${wl}-G'
12926 else
12927 shared_flag='${wl}-bM:SRE'
12928 fi
12929 fi
12930 fi
12931
12932 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12933 # It seems that -bexpall does not export symbols beginning with
12934 # underscore (_), so it is better to generate a list of symbols to
12935 # export.
12936 always_export_symbols_CXX=yes
12937 if test "$aix_use_runtimelinking" = yes; then
12938 # Warning - without using the other runtime loading flags (-brtl),
12939 # -berok will link without error, but may produce a broken library.
12940 allow_undefined_flag_CXX='-berok'
12941 # Determine the default libpath from the value encoded in an empty
12942 # executable.
12943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944 /* end confdefs.h. */
12945
12946 int
12947 main ()
12948 {
12949
12950 ;
12951 return 0;
12952 }
12953 _ACEOF
12954 if ac_fn_cxx_try_link "$LINENO"; then :
12955
12956 lt_aix_libpath_sed='
12957 /Import File Strings/,/^$/ {
12958 /^0/ {
12959 s/^0 *\(.*\)$/\1/
12960 p
12961 }
12962 }'
12963 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12964 # Check for a 64-bit object if we didn't find anything.
12965 if test -z "$aix_libpath"; then
12966 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12967 fi
12968 fi
12969 rm -f core conftest.err conftest.$ac_objext \
12970 conftest$ac_exeext conftest.$ac_ext
12971 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12972
12973 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12974
12975 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"
12976 else
12977 if test "$host_cpu" = ia64; then
12978 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12979 allow_undefined_flag_CXX="-z nodefs"
12980 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"
12981 else
12982 # Determine the default libpath from the value encoded in an
12983 # empty executable.
12984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12985 /* end confdefs.h. */
12986
12987 int
12988 main ()
12989 {
12990
12991 ;
12992 return 0;
12993 }
12994 _ACEOF
12995 if ac_fn_cxx_try_link "$LINENO"; then :
12996
12997 lt_aix_libpath_sed='
12998 /Import File Strings/,/^$/ {
12999 /^0/ {
13000 s/^0 *\(.*\)$/\1/
13001 p
13002 }
13003 }'
13004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13005 # Check for a 64-bit object if we didn't find anything.
13006 if test -z "$aix_libpath"; then
13007 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13008 fi
13009 fi
13010 rm -f core conftest.err conftest.$ac_objext \
13011 conftest$ac_exeext conftest.$ac_ext
13012 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13013
13014 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13015 # Warning - without using the other run time loading flags,
13016 # -berok will link without error, but may produce a broken library.
13017 no_undefined_flag_CXX=' ${wl}-bernotok'
13018 allow_undefined_flag_CXX=' ${wl}-berok'
13019 if test "$with_gnu_ld" = yes; then
13020 # We only use this code for GNU lds that support --whole-archive.
13021 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13022 else
13023 # Exported symbols can be pulled into shared objects from archives
13024 whole_archive_flag_spec_CXX='$convenience'
13025 fi
13026 archive_cmds_need_lc_CXX=yes
13027 # This is similar to how AIX traditionally builds its shared
13028 # libraries.
13029 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'
13030 fi
13031 fi
13032 ;;
13033
13034 beos*)
13035 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13036 allow_undefined_flag_CXX=unsupported
13037 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13038 # support --undefined. This deserves some investigation. FIXME
13039 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13040 else
13041 ld_shlibs_CXX=no
13042 fi
13043 ;;
13044
13045 chorus*)
13046 case $cc_basename in
13047 *)
13048 # FIXME: insert proper C++ library support
13049 ld_shlibs_CXX=no
13050 ;;
13051 esac
13052 ;;
13053
13054 cygwin* | mingw* | pw32* | cegcc*)
13055 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13056 # as there is no search path for DLLs.
13057 hardcode_libdir_flag_spec_CXX='-L$libdir'
13058 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13059 allow_undefined_flag_CXX=unsupported
13060 always_export_symbols_CXX=no
13061 enable_shared_with_static_runtimes_CXX=yes
13062
13063 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13064 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'
13065 # If the export-symbols file already is a .def file (1st line
13066 # is EXPORTS), use it as is; otherwise, prepend...
13067 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13068 cp $export_symbols $output_objdir/$soname.def;
13069 else
13070 echo EXPORTS > $output_objdir/$soname.def;
13071 cat $export_symbols >> $output_objdir/$soname.def;
13072 fi~
13073 $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'
13074 else
13075 ld_shlibs_CXX=no
13076 fi
13077 ;;
13078 darwin* | rhapsody*)
13079
13080
13081 archive_cmds_need_lc_CXX=no
13082 hardcode_direct_CXX=no
13083 hardcode_automatic_CXX=yes
13084 hardcode_shlibpath_var_CXX=unsupported
13085 if test "$lt_cv_ld_force_load" = "yes"; then
13086 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\"`'
13087 else
13088 whole_archive_flag_spec_CXX=''
13089 fi
13090 link_all_deplibs_CXX=yes
13091 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13092 case $cc_basename in
13093 ifort*) _lt_dar_can_shared=yes ;;
13094 *) _lt_dar_can_shared=$GCC ;;
13095 esac
13096 if test "$_lt_dar_can_shared" = "yes"; then
13097 output_verbose_link_cmd=func_echo_all
13098 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}"
13099 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13100 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}"
13101 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}"
13102 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13103 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}"
13104 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}"
13105 fi
13106
13107 else
13108 ld_shlibs_CXX=no
13109 fi
13110
13111 ;;
13112
13113 dgux*)
13114 case $cc_basename in
13115 ec++*)
13116 # FIXME: insert proper C++ library support
13117 ld_shlibs_CXX=no
13118 ;;
13119 ghcx*)
13120 # Green Hills C++ Compiler
13121 # FIXME: insert proper C++ library support
13122 ld_shlibs_CXX=no
13123 ;;
13124 *)
13125 # FIXME: insert proper C++ library support
13126 ld_shlibs_CXX=no
13127 ;;
13128 esac
13129 ;;
13130
13131 freebsd2.*)
13132 # C++ shared libraries reported to be fairly broken before
13133 # switch to ELF
13134 ld_shlibs_CXX=no
13135 ;;
13136
13137 freebsd-elf*)
13138 archive_cmds_need_lc_CXX=no
13139 ;;
13140
13141 freebsd* | dragonfly*)
13142 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13143 # conventions
13144 ld_shlibs_CXX=yes
13145 ;;
13146
13147 gnu*)
13148 ;;
13149
13150 haiku*)
13151 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13152 link_all_deplibs_CXX=yes
13153 ;;
13154
13155 hpux9*)
13156 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13157 hardcode_libdir_separator_CXX=:
13158 export_dynamic_flag_spec_CXX='${wl}-E'
13159 hardcode_direct_CXX=yes
13160 hardcode_minus_L_CXX=yes # Not in the search PATH,
13161 # but as the default
13162 # location of the library.
13163
13164 case $cc_basename in
13165 CC*)
13166 # FIXME: insert proper C++ library support
13167 ld_shlibs_CXX=no
13168 ;;
13169 aCC*)
13170 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'
13171 # Commands to make compiler produce verbose output that lists
13172 # what "hidden" libraries, object files and flags are used when
13173 # linking a shared library.
13174 #
13175 # There doesn't appear to be a way to prevent this compiler from
13176 # explicitly linking system object files so we need to strip them
13177 # from the output so that they don't get included in the library
13178 # dependencies.
13179 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"'
13180 ;;
13181 *)
13182 if test "$GXX" = yes; then
13183 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'
13184 else
13185 # FIXME: insert proper C++ library support
13186 ld_shlibs_CXX=no
13187 fi
13188 ;;
13189 esac
13190 ;;
13191
13192 hpux10*|hpux11*)
13193 if test $with_gnu_ld = no; then
13194 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13195 hardcode_libdir_separator_CXX=:
13196
13197 case $host_cpu in
13198 hppa*64*|ia64*)
13199 ;;
13200 *)
13201 export_dynamic_flag_spec_CXX='${wl}-E'
13202 ;;
13203 esac
13204 fi
13205 case $host_cpu in
13206 hppa*64*|ia64*)
13207 hardcode_direct_CXX=no
13208 hardcode_shlibpath_var_CXX=no
13209 ;;
13210 *)
13211 hardcode_direct_CXX=yes
13212 hardcode_direct_absolute_CXX=yes
13213 hardcode_minus_L_CXX=yes # Not in the search PATH,
13214 # but as the default
13215 # location of the library.
13216 ;;
13217 esac
13218
13219 case $cc_basename in
13220 CC*)
13221 # FIXME: insert proper C++ library support
13222 ld_shlibs_CXX=no
13223 ;;
13224 aCC*)
13225 case $host_cpu in
13226 hppa*64*)
13227 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13228 ;;
13229 ia64*)
13230 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13231 ;;
13232 *)
13233 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13234 ;;
13235 esac
13236 # Commands to make compiler produce verbose output that lists
13237 # what "hidden" libraries, object files and flags are used when
13238 # linking a shared library.
13239 #
13240 # There doesn't appear to be a way to prevent this compiler from
13241 # explicitly linking system object files so we need to strip them
13242 # from the output so that they don't get included in the library
13243 # dependencies.
13244 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"'
13245 ;;
13246 *)
13247 if test "$GXX" = yes; then
13248 if test $with_gnu_ld = no; then
13249 case $host_cpu in
13250 hppa*64*)
13251 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13252 ;;
13253 ia64*)
13254 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13255 ;;
13256 *)
13257 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'
13258 ;;
13259 esac
13260 fi
13261 else
13262 # FIXME: insert proper C++ library support
13263 ld_shlibs_CXX=no
13264 fi
13265 ;;
13266 esac
13267 ;;
13268
13269 interix[3-9]*)
13270 hardcode_direct_CXX=no
13271 hardcode_shlibpath_var_CXX=no
13272 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13273 export_dynamic_flag_spec_CXX='${wl}-E'
13274 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13275 # Instead, shared libraries are loaded at an image base (0x10000000 by
13276 # default) and relocated if they conflict, which is a slow very memory
13277 # consuming and fragmenting process. To avoid this, we pick a random,
13278 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13279 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13280 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'
13281 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'
13282 ;;
13283 irix5* | irix6*)
13284 case $cc_basename in
13285 CC*)
13286 # SGI C++
13287 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'
13288
13289 # Archives containing C++ object files must be created using
13290 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13291 # necessary to make sure instantiated templates are included
13292 # in the archive.
13293 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13294 ;;
13295 *)
13296 if test "$GXX" = yes; then
13297 if test "$with_gnu_ld" = no; then
13298 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'
13299 else
13300 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'
13301 fi
13302 fi
13303 link_all_deplibs_CXX=yes
13304 ;;
13305 esac
13306 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13307 hardcode_libdir_separator_CXX=:
13308 inherit_rpath_CXX=yes
13309 ;;
13310
13311 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13312 case $cc_basename in
13313 KCC*)
13314 # Kuck and Associates, Inc. (KAI) C++ Compiler
13315
13316 # KCC will only create a shared library if the output file
13317 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13318 # to its proper name (with version) after linking.
13319 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'
13320 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'
13321 # Commands to make compiler produce verbose output that lists
13322 # what "hidden" libraries, object files and flags are used when
13323 # linking a shared library.
13324 #
13325 # There doesn't appear to be a way to prevent this compiler from
13326 # explicitly linking system object files so we need to strip them
13327 # from the output so that they don't get included in the library
13328 # dependencies.
13329 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"'
13330
13331 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13332 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13333
13334 # Archives containing C++ object files must be created using
13335 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13336 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13337 ;;
13338 icpc* | ecpc* )
13339 # Intel C++
13340 with_gnu_ld=yes
13341 # version 8.0 and above of icpc choke on multiply defined symbols
13342 # if we add $predep_objects and $postdep_objects, however 7.1 and
13343 # earlier do not add the objects themselves.
13344 case `$CC -V 2>&1` in
13345 *"Version 7."*)
13346 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13347 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'
13348 ;;
13349 *) # Version 8.0 or newer
13350 tmp_idyn=
13351 case $host_cpu in
13352 ia64*) tmp_idyn=' -i_dynamic';;
13353 esac
13354 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13355 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'
13356 ;;
13357 esac
13358 archive_cmds_need_lc_CXX=no
13359 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13360 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13361 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13362 ;;
13363 pgCC* | pgcpp*)
13364 # Portland Group C++ compiler
13365 case `$CC -V` in
13366 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13367 prelink_cmds_CXX='tpldir=Template.dir~
13368 rm -rf $tpldir~
13369 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13370 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13371 old_archive_cmds_CXX='tpldir=Template.dir~
13372 rm -rf $tpldir~
13373 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13374 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13375 $RANLIB $oldlib'
13376 archive_cmds_CXX='tpldir=Template.dir~
13377 rm -rf $tpldir~
13378 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13379 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13380 archive_expsym_cmds_CXX='tpldir=Template.dir~
13381 rm -rf $tpldir~
13382 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13383 $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'
13384 ;;
13385 *) # Version 6 and above use weak symbols
13386 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13387 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'
13388 ;;
13389 esac
13390
13391 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13392 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13393 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'
13394 ;;
13395 cxx*)
13396 # Compaq C++
13397 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13398 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'
13399
13400 runpath_var=LD_RUN_PATH
13401 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13402 hardcode_libdir_separator_CXX=:
13403
13404 # Commands to make compiler produce verbose output that lists
13405 # what "hidden" libraries, object files and flags are used when
13406 # linking a shared library.
13407 #
13408 # There doesn't appear to be a way to prevent this compiler from
13409 # explicitly linking system object files so we need to strip them
13410 # from the output so that they don't get included in the library
13411 # dependencies.
13412 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'
13413 ;;
13414 xl* | mpixl* | bgxl*)
13415 # IBM XL 8.0 on PPC, with GNU ld
13416 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13417 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13418 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13419 if test "x$supports_anon_versioning" = xyes; then
13420 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13421 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13422 echo "local: *; };" >> $output_objdir/$libname.ver~
13423 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13424 fi
13425 ;;
13426 *)
13427 case `$CC -V 2>&1 | sed 5q` in
13428 *Sun\ C*)
13429 # Sun C++ 5.9
13430 no_undefined_flag_CXX=' -zdefs'
13431 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13432 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'
13433 hardcode_libdir_flag_spec_CXX='-R$libdir'
13434 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'
13435 compiler_needs_object_CXX=yes
13436
13437 # Not sure whether something based on
13438 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13439 # would be better.
13440 output_verbose_link_cmd='func_echo_all'
13441
13442 # Archives containing C++ object files must be created using
13443 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13444 # necessary to make sure instantiated templates are included
13445 # in the archive.
13446 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13447 ;;
13448 esac
13449 ;;
13450 esac
13451 ;;
13452
13453 lynxos*)
13454 # FIXME: insert proper C++ library support
13455 ld_shlibs_CXX=no
13456 ;;
13457
13458 m88k*)
13459 # FIXME: insert proper C++ library support
13460 ld_shlibs_CXX=no
13461 ;;
13462
13463 mvs*)
13464 case $cc_basename in
13465 cxx*)
13466 # FIXME: insert proper C++ library support
13467 ld_shlibs_CXX=no
13468 ;;
13469 *)
13470 # FIXME: insert proper C++ library support
13471 ld_shlibs_CXX=no
13472 ;;
13473 esac
13474 ;;
13475
13476 netbsd*)
13477 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13478 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13479 wlarc=
13480 hardcode_libdir_flag_spec_CXX='-R$libdir'
13481 hardcode_direct_CXX=yes
13482 hardcode_shlibpath_var_CXX=no
13483 fi
13484 # Workaround some broken pre-1.5 toolchains
13485 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13486 ;;
13487
13488 *nto* | *qnx*)
13489 ld_shlibs_CXX=yes
13490 ;;
13491
13492 openbsd2*)
13493 # C++ shared libraries are fairly broken
13494 ld_shlibs_CXX=no
13495 ;;
13496
13497 openbsd*)
13498 if test -f /usr/libexec/ld.so; then
13499 hardcode_direct_CXX=yes
13500 hardcode_shlibpath_var_CXX=no
13501 hardcode_direct_absolute_CXX=yes
13502 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13503 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13504 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13505 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13506 export_dynamic_flag_spec_CXX='${wl}-E'
13507 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13508 fi
13509 output_verbose_link_cmd=func_echo_all
13510 else
13511 ld_shlibs_CXX=no
13512 fi
13513 ;;
13514
13515 osf3* | osf4* | osf5*)
13516 case $cc_basename in
13517 KCC*)
13518 # Kuck and Associates, Inc. (KAI) C++ Compiler
13519
13520 # KCC will only create a shared library if the output file
13521 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13522 # to its proper name (with version) after linking.
13523 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'
13524
13525 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13526 hardcode_libdir_separator_CXX=:
13527
13528 # Archives containing C++ object files must be created using
13529 # the KAI C++ compiler.
13530 case $host in
13531 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13532 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13533 esac
13534 ;;
13535 RCC*)
13536 # Rational C++ 2.4.1
13537 # FIXME: insert proper C++ library support
13538 ld_shlibs_CXX=no
13539 ;;
13540 cxx*)
13541 case $host in
13542 osf3*)
13543 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13544 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'
13545 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13546 ;;
13547 *)
13548 allow_undefined_flag_CXX=' -expect_unresolved \*'
13549 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'
13550 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13551 echo "-hidden">> $lib.exp~
13552 $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~
13553 $RM $lib.exp'
13554 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13555 ;;
13556 esac
13557
13558 hardcode_libdir_separator_CXX=:
13559
13560 # Commands to make compiler produce verbose output that lists
13561 # what "hidden" libraries, object files and flags are used when
13562 # linking a shared library.
13563 #
13564 # There doesn't appear to be a way to prevent this compiler from
13565 # explicitly linking system object files so we need to strip them
13566 # from the output so that they don't get included in the library
13567 # dependencies.
13568 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $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"'
13569 ;;
13570 *)
13571 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13572 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13573 case $host in
13574 osf3*)
13575 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'
13576 ;;
13577 *)
13578 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'
13579 ;;
13580 esac
13581
13582 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13583 hardcode_libdir_separator_CXX=:
13584
13585 # Commands to make compiler produce verbose output that lists
13586 # what "hidden" libraries, object files and flags are used when
13587 # linking a shared library.
13588 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13589
13590 else
13591 # FIXME: insert proper C++ library support
13592 ld_shlibs_CXX=no
13593 fi
13594 ;;
13595 esac
13596 ;;
13597
13598 psos*)
13599 # FIXME: insert proper C++ library support
13600 ld_shlibs_CXX=no
13601 ;;
13602
13603 sunos4*)
13604 case $cc_basename in
13605 CC*)
13606 # Sun C++ 4.x
13607 # FIXME: insert proper C++ library support
13608 ld_shlibs_CXX=no
13609 ;;
13610 lcc*)
13611 # Lucid
13612 # FIXME: insert proper C++ library support
13613 ld_shlibs_CXX=no
13614 ;;
13615 *)
13616 # FIXME: insert proper C++ library support
13617 ld_shlibs_CXX=no
13618 ;;
13619 esac
13620 ;;
13621
13622 solaris*)
13623 case $cc_basename in
13624 CC*)
13625 # Sun C++ 4.2, 5.x and Centerline C++
13626 archive_cmds_need_lc_CXX=yes
13627 no_undefined_flag_CXX=' -zdefs'
13628 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13629 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13630 $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'
13631
13632 hardcode_libdir_flag_spec_CXX='-R$libdir'
13633 hardcode_shlibpath_var_CXX=no
13634 case $host_os in
13635 solaris2.[0-5] | solaris2.[0-5].*) ;;
13636 *)
13637 # The compiler driver will combine and reorder linker options,
13638 # but understands `-z linker_flag'.
13639 # Supported since Solaris 2.6 (maybe 2.5.1?)
13640 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13641 ;;
13642 esac
13643 link_all_deplibs_CXX=yes
13644
13645 output_verbose_link_cmd='func_echo_all'
13646
13647 # Archives containing C++ object files must be created using
13648 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13649 # necessary to make sure instantiated templates are included
13650 # in the archive.
13651 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13652 ;;
13653 gcx*)
13654 # Green Hills C++ Compiler
13655 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13656
13657 # The C++ compiler must be used to create the archive.
13658 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13659 ;;
13660 *)
13661 # GNU C++ compiler with Solaris linker
13662 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13663 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13664 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13665 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13666 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13667 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13668
13669 # Commands to make compiler produce verbose output that lists
13670 # what "hidden" libraries, object files and flags are used when
13671 # linking a shared library.
13672 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13673 else
13674 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13675 # platform.
13676 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13677 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13678 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13679
13680 # Commands to make compiler produce verbose output that lists
13681 # what "hidden" libraries, object files and flags are used when
13682 # linking a shared library.
13683 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13684 fi
13685
13686 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13687 case $host_os in
13688 solaris2.[0-5] | solaris2.[0-5].*) ;;
13689 *)
13690 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13691 ;;
13692 esac
13693 fi
13694 ;;
13695 esac
13696 ;;
13697
13698 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13699 no_undefined_flag_CXX='${wl}-z,text'
13700 archive_cmds_need_lc_CXX=no
13701 hardcode_shlibpath_var_CXX=no
13702 runpath_var='LD_RUN_PATH'
13703
13704 case $cc_basename in
13705 CC*)
13706 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13707 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13708 ;;
13709 *)
13710 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13711 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13712 ;;
13713 esac
13714 ;;
13715
13716 sysv5* | sco3.2v5* | sco5v6*)
13717 # Note: We can NOT use -z defs as we might desire, because we do not
13718 # link with -lc, and that would cause any symbols used from libc to
13719 # always be unresolved, which means just about no library would
13720 # ever link correctly. If we're not using GNU ld we use -z text
13721 # though, which does catch some bad symbols but isn't as heavy-handed
13722 # as -z defs.
13723 no_undefined_flag_CXX='${wl}-z,text'
13724 allow_undefined_flag_CXX='${wl}-z,nodefs'
13725 archive_cmds_need_lc_CXX=no
13726 hardcode_shlibpath_var_CXX=no
13727 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13728 hardcode_libdir_separator_CXX=':'
13729 link_all_deplibs_CXX=yes
13730 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13731 runpath_var='LD_RUN_PATH'
13732
13733 case $cc_basename in
13734 CC*)
13735 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13736 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13737 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13738 '"$old_archive_cmds_CXX"
13739 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13740 '"$reload_cmds_CXX"
13741 ;;
13742 *)
13743 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13744 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13745 ;;
13746 esac
13747 ;;
13748
13749 tandem*)
13750 case $cc_basename in
13751 NCC*)
13752 # NonStop-UX NCC 3.20
13753 # FIXME: insert proper C++ library support
13754 ld_shlibs_CXX=no
13755 ;;
13756 *)
13757 # FIXME: insert proper C++ library support
13758 ld_shlibs_CXX=no
13759 ;;
13760 esac
13761 ;;
13762
13763 vxworks*)
13764 # FIXME: insert proper C++ library support
13765 ld_shlibs_CXX=no
13766 ;;
13767
13768 *)
13769 # FIXME: insert proper C++ library support
13770 ld_shlibs_CXX=no
13771 ;;
13772 esac
13773
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13775 $as_echo "$ld_shlibs_CXX" >&6; }
13776 test "$ld_shlibs_CXX" = no && can_build_shared=no
13777
13778 GCC_CXX="$GXX"
13779 LD_CXX="$LD"
13780
13781 ## CAVEAT EMPTOR:
13782 ## There is no encapsulation within the following macros, do not change
13783 ## the running order or otherwise move them around unless you know exactly
13784 ## what you are doing...
13785 # Dependencies to place before and after the object being linked:
13786 predep_objects_CXX=
13787 postdep_objects_CXX=
13788 predeps_CXX=
13789 postdeps_CXX=
13790 compiler_lib_search_path_CXX=
13791
13792 cat > conftest.$ac_ext <<_LT_EOF
13793 class Foo
13794 {
13795 public:
13796 Foo (void) { a = 0; }
13797 private:
13798 int a;
13799 };
13800 _LT_EOF
13801
13802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13803 (eval $ac_compile) 2>&5
13804 ac_status=$?
13805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13806 test $ac_status = 0; }; then
13807 # Parse the compiler output and extract the necessary
13808 # objects, libraries and library flags.
13809
13810 # Sentinel used to keep track of whether or not we are before
13811 # the conftest object file.
13812 pre_test_object_deps_done=no
13813
13814 for p in `eval "$output_verbose_link_cmd"`; do
13815 case $p in
13816
13817 -L* | -R* | -l*)
13818 # Some compilers place space between "-{L,R}" and the path.
13819 # Remove the space.
13820 if test $p = "-L" ||
13821 test $p = "-R"; then
13822 prev=$p
13823 continue
13824 else
13825 prev=
13826 fi
13827
13828 if test "$pre_test_object_deps_done" = no; then
13829 case $p in
13830 -L* | -R*)
13831 # Internal compiler library paths should come after those
13832 # provided the user. The postdeps already come after the
13833 # user supplied libs so there is no need to process them.
13834 if test -z "$compiler_lib_search_path_CXX"; then
13835 compiler_lib_search_path_CXX="${prev}${p}"
13836 else
13837 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13838 fi
13839 ;;
13840 # The "-l" case would never come before the object being
13841 # linked, so don't bother handling this case.
13842 esac
13843 else
13844 if test -z "$postdeps_CXX"; then
13845 postdeps_CXX="${prev}${p}"
13846 else
13847 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13848 fi
13849 fi
13850 ;;
13851
13852 *.$objext)
13853 # This assumes that the test object file only shows up
13854 # once in the compiler output.
13855 if test "$p" = "conftest.$objext"; then
13856 pre_test_object_deps_done=yes
13857 continue
13858 fi
13859
13860 if test "$pre_test_object_deps_done" = no; then
13861 if test -z "$predep_objects_CXX"; then
13862 predep_objects_CXX="$p"
13863 else
13864 predep_objects_CXX="$predep_objects_CXX $p"
13865 fi
13866 else
13867 if test -z "$postdep_objects_CXX"; then
13868 postdep_objects_CXX="$p"
13869 else
13870 postdep_objects_CXX="$postdep_objects_CXX $p"
13871 fi
13872 fi
13873 ;;
13874
13875 *) ;; # Ignore the rest.
13876
13877 esac
13878 done
13879
13880 # Clean up.
13881 rm -f a.out a.exe
13882 else
13883 echo "libtool.m4: error: problem compiling CXX test program"
13884 fi
13885
13886 $RM -f confest.$objext
13887
13888 # PORTME: override above test on systems where it is broken
13889 case $host_os in
13890 interix[3-9]*)
13891 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13892 # hack all around it, let's just trust "g++" to DTRT.
13893 predep_objects_CXX=
13894 postdep_objects_CXX=
13895 postdeps_CXX=
13896 ;;
13897
13898 linux*)
13899 case `$CC -V 2>&1 | sed 5q` in
13900 *Sun\ C*)
13901 # Sun C++ 5.9
13902
13903 # The more standards-conforming stlport4 library is
13904 # incompatible with the Cstd library. Avoid specifying
13905 # it if it's in CXXFLAGS. Ignore libCrun as
13906 # -library=stlport4 depends on it.
13907 case " $CXX $CXXFLAGS " in
13908 *" -library=stlport4 "*)
13909 solaris_use_stlport4=yes
13910 ;;
13911 esac
13912
13913 if test "$solaris_use_stlport4" != yes; then
13914 postdeps_CXX='-library=Cstd -library=Crun'
13915 fi
13916 ;;
13917 esac
13918 ;;
13919
13920 solaris*)
13921 case $cc_basename in
13922 CC*)
13923 # The more standards-conforming stlport4 library is
13924 # incompatible with the Cstd library. Avoid specifying
13925 # it if it's in CXXFLAGS. Ignore libCrun as
13926 # -library=stlport4 depends on it.
13927 case " $CXX $CXXFLAGS " in
13928 *" -library=stlport4 "*)
13929 solaris_use_stlport4=yes
13930 ;;
13931 esac
13932
13933 # Adding this requires a known-good setup of shared libraries for
13934 # Sun compiler versions before 5.6, else PIC objects from an old
13935 # archive will be linked into the output, leading to subtle bugs.
13936 if test "$solaris_use_stlport4" != yes; then
13937 postdeps_CXX='-library=Cstd -library=Crun'
13938 fi
13939 ;;
13940 esac
13941 ;;
13942 esac
13943
13944
13945 case " $postdeps_CXX " in
13946 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13947 esac
13948 compiler_lib_search_dirs_CXX=
13949 if test -n "${compiler_lib_search_path_CXX}"; then
13950 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13951 fi
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983 lt_prog_compiler_wl_CXX=
13984 lt_prog_compiler_pic_CXX=
13985 lt_prog_compiler_static_CXX=
13986
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13988 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13989
13990 # C++ specific cases for pic, static, wl, etc.
13991 if test "$GXX" = yes; then
13992 lt_prog_compiler_wl_CXX='-Wl,'
13993 lt_prog_compiler_static_CXX='-static'
13994
13995 case $host_os in
13996 aix*)
13997 # All AIX code is PIC.
13998 if test "$host_cpu" = ia64; then
13999 # AIX 5 now supports IA64 processor
14000 lt_prog_compiler_static_CXX='-Bstatic'
14001 fi
14002 lt_prog_compiler_pic_CXX='-fPIC'
14003 ;;
14004
14005 amigaos*)
14006 case $host_cpu in
14007 powerpc)
14008 # see comment about AmigaOS4 .so support
14009 lt_prog_compiler_pic_CXX='-fPIC'
14010 ;;
14011 m68k)
14012 # FIXME: we need at least 68020 code to build shared libraries, but
14013 # adding the `-m68020' flag to GCC prevents building anything better,
14014 # like `-m68040'.
14015 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14016 ;;
14017 esac
14018 ;;
14019
14020 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14021 # PIC is the default for these OSes.
14022 ;;
14023 mingw* | cygwin* | os2* | pw32* | cegcc*)
14024 # This hack is so that the source file can tell whether it is being
14025 # built for inclusion in a dll (and should export symbols for example).
14026 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14027 # (--disable-auto-import) libraries
14028 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14029 ;;
14030 darwin* | rhapsody*)
14031 # PIC is the default on this platform
14032 # Common symbols not allowed in MH_DYLIB files
14033 lt_prog_compiler_pic_CXX='-fno-common'
14034 ;;
14035 *djgpp*)
14036 # DJGPP does not support shared libraries at all
14037 lt_prog_compiler_pic_CXX=
14038 ;;
14039 haiku*)
14040 # PIC is the default for Haiku.
14041 # The "-static" flag exists, but is broken.
14042 lt_prog_compiler_static_CXX=
14043 ;;
14044 interix[3-9]*)
14045 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14046 # Instead, we relocate shared libraries at runtime.
14047 ;;
14048 sysv4*MP*)
14049 if test -d /usr/nec; then
14050 lt_prog_compiler_pic_CXX=-Kconform_pic
14051 fi
14052 ;;
14053 hpux*)
14054 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14055 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14056 # sets the default TLS model and affects inlining.
14057 case $host_cpu in
14058 hppa*64*)
14059 ;;
14060 *)
14061 lt_prog_compiler_pic_CXX='-fPIC'
14062 ;;
14063 esac
14064 ;;
14065 *qnx* | *nto*)
14066 # QNX uses GNU C++, but need to define -shared option too, otherwise
14067 # it will coredump.
14068 lt_prog_compiler_pic_CXX='-fPIC -shared'
14069 ;;
14070 *)
14071 lt_prog_compiler_pic_CXX='-fPIC'
14072 ;;
14073 esac
14074 else
14075 case $host_os in
14076 aix[4-9]*)
14077 # All AIX code is PIC.
14078 if test "$host_cpu" = ia64; then
14079 # AIX 5 now supports IA64 processor
14080 lt_prog_compiler_static_CXX='-Bstatic'
14081 else
14082 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14083 fi
14084 ;;
14085 chorus*)
14086 case $cc_basename in
14087 cxch68*)
14088 # Green Hills C++ Compiler
14089 # _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"
14090 ;;
14091 esac
14092 ;;
14093 dgux*)
14094 case $cc_basename in
14095 ec++*)
14096 lt_prog_compiler_pic_CXX='-KPIC'
14097 ;;
14098 ghcx*)
14099 # Green Hills C++ Compiler
14100 lt_prog_compiler_pic_CXX='-pic'
14101 ;;
14102 *)
14103 ;;
14104 esac
14105 ;;
14106 freebsd* | dragonfly*)
14107 # FreeBSD uses GNU C++
14108 ;;
14109 hpux9* | hpux10* | hpux11*)
14110 case $cc_basename in
14111 CC*)
14112 lt_prog_compiler_wl_CXX='-Wl,'
14113 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14114 if test "$host_cpu" != ia64; then
14115 lt_prog_compiler_pic_CXX='+Z'
14116 fi
14117 ;;
14118 aCC*)
14119 lt_prog_compiler_wl_CXX='-Wl,'
14120 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14121 case $host_cpu in
14122 hppa*64*|ia64*)
14123 # +Z the default
14124 ;;
14125 *)
14126 lt_prog_compiler_pic_CXX='+Z'
14127 ;;
14128 esac
14129 ;;
14130 *)
14131 ;;
14132 esac
14133 ;;
14134 interix*)
14135 # This is c89, which is MS Visual C++ (no shared libs)
14136 # Anyone wants to do a port?
14137 ;;
14138 irix5* | irix6* | nonstopux*)
14139 case $cc_basename in
14140 CC*)
14141 lt_prog_compiler_wl_CXX='-Wl,'
14142 lt_prog_compiler_static_CXX='-non_shared'
14143 # CC pic flag -KPIC is the default.
14144 ;;
14145 *)
14146 ;;
14147 esac
14148 ;;
14149 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14150 case $cc_basename in
14151 KCC*)
14152 # KAI C++ Compiler
14153 lt_prog_compiler_wl_CXX='--backend -Wl,'
14154 lt_prog_compiler_pic_CXX='-fPIC'
14155 ;;
14156 ecpc* )
14157 # old Intel C++ for x86_64 which still supported -KPIC.
14158 lt_prog_compiler_wl_CXX='-Wl,'
14159 lt_prog_compiler_pic_CXX='-KPIC'
14160 lt_prog_compiler_static_CXX='-static'
14161 ;;
14162 icpc* )
14163 # Intel C++, used to be incompatible with GCC.
14164 # ICC 10 doesn't accept -KPIC any more.
14165 lt_prog_compiler_wl_CXX='-Wl,'
14166 lt_prog_compiler_pic_CXX='-fPIC'
14167 lt_prog_compiler_static_CXX='-static'
14168 ;;
14169 pgCC* | pgcpp*)
14170 # Portland Group C++ compiler
14171 lt_prog_compiler_wl_CXX='-Wl,'
14172 lt_prog_compiler_pic_CXX='-fpic'
14173 lt_prog_compiler_static_CXX='-Bstatic'
14174 ;;
14175 cxx*)
14176 # Compaq C++
14177 # Make sure the PIC flag is empty. It appears that all Alpha
14178 # Linux and Compaq Tru64 Unix objects are PIC.
14179 lt_prog_compiler_pic_CXX=
14180 lt_prog_compiler_static_CXX='-non_shared'
14181 ;;
14182 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14183 # IBM XL 8.0, 9.0 on PPC and BlueGene
14184 lt_prog_compiler_wl_CXX='-Wl,'
14185 lt_prog_compiler_pic_CXX='-qpic'
14186 lt_prog_compiler_static_CXX='-qstaticlink'
14187 ;;
14188 *)
14189 case `$CC -V 2>&1 | sed 5q` in
14190 *Sun\ C*)
14191 # Sun C++ 5.9
14192 lt_prog_compiler_pic_CXX='-KPIC'
14193 lt_prog_compiler_static_CXX='-Bstatic'
14194 lt_prog_compiler_wl_CXX='-Qoption ld '
14195 ;;
14196 esac
14197 ;;
14198 esac
14199 ;;
14200 lynxos*)
14201 ;;
14202 m88k*)
14203 ;;
14204 mvs*)
14205 case $cc_basename in
14206 cxx*)
14207 lt_prog_compiler_pic_CXX='-W c,exportall'
14208 ;;
14209 *)
14210 ;;
14211 esac
14212 ;;
14213 netbsd*)
14214 ;;
14215 *qnx* | *nto*)
14216 # QNX uses GNU C++, but need to define -shared option too, otherwise
14217 # it will coredump.
14218 lt_prog_compiler_pic_CXX='-fPIC -shared'
14219 ;;
14220 osf3* | osf4* | osf5*)
14221 case $cc_basename in
14222 KCC*)
14223 lt_prog_compiler_wl_CXX='--backend -Wl,'
14224 ;;
14225 RCC*)
14226 # Rational C++ 2.4.1
14227 lt_prog_compiler_pic_CXX='-pic'
14228 ;;
14229 cxx*)
14230 # Digital/Compaq C++
14231 lt_prog_compiler_wl_CXX='-Wl,'
14232 # Make sure the PIC flag is empty. It appears that all Alpha
14233 # Linux and Compaq Tru64 Unix objects are PIC.
14234 lt_prog_compiler_pic_CXX=
14235 lt_prog_compiler_static_CXX='-non_shared'
14236 ;;
14237 *)
14238 ;;
14239 esac
14240 ;;
14241 psos*)
14242 ;;
14243 solaris*)
14244 case $cc_basename in
14245 CC*)
14246 # Sun C++ 4.2, 5.x and Centerline C++
14247 lt_prog_compiler_pic_CXX='-KPIC'
14248 lt_prog_compiler_static_CXX='-Bstatic'
14249 lt_prog_compiler_wl_CXX='-Qoption ld '
14250 ;;
14251 gcx*)
14252 # Green Hills C++ Compiler
14253 lt_prog_compiler_pic_CXX='-PIC'
14254 ;;
14255 *)
14256 ;;
14257 esac
14258 ;;
14259 sunos4*)
14260 case $cc_basename in
14261 CC*)
14262 # Sun C++ 4.x
14263 lt_prog_compiler_pic_CXX='-pic'
14264 lt_prog_compiler_static_CXX='-Bstatic'
14265 ;;
14266 lcc*)
14267 # Lucid
14268 lt_prog_compiler_pic_CXX='-pic'
14269 ;;
14270 *)
14271 ;;
14272 esac
14273 ;;
14274 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14275 case $cc_basename in
14276 CC*)
14277 lt_prog_compiler_wl_CXX='-Wl,'
14278 lt_prog_compiler_pic_CXX='-KPIC'
14279 lt_prog_compiler_static_CXX='-Bstatic'
14280 ;;
14281 esac
14282 ;;
14283 tandem*)
14284 case $cc_basename in
14285 NCC*)
14286 # NonStop-UX NCC 3.20
14287 lt_prog_compiler_pic_CXX='-KPIC'
14288 ;;
14289 *)
14290 ;;
14291 esac
14292 ;;
14293 vxworks*)
14294 ;;
14295 *)
14296 lt_prog_compiler_can_build_shared_CXX=no
14297 ;;
14298 esac
14299 fi
14300
14301 case $host_os in
14302 # For platforms which do not support PIC, -DPIC is meaningless:
14303 *djgpp*)
14304 lt_prog_compiler_pic_CXX=
14305 ;;
14306 *)
14307 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14308 ;;
14309 esac
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14311 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14312
14313
14314
14315 #
14316 # Check to make sure the PIC flag actually works.
14317 #
14318 if test -n "$lt_prog_compiler_pic_CXX"; then
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14320 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14321 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14322 $as_echo_n "(cached) " >&6
14323 else
14324 lt_cv_prog_compiler_pic_works_CXX=no
14325 ac_outfile=conftest.$ac_objext
14326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14327 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14328 # Insert the option either (1) after the last *FLAGS variable, or
14329 # (2) before a word containing "conftest.", or (3) at the end.
14330 # Note that $ac_compile itself does not contain backslashes and begins
14331 # with a dollar sign (not a hyphen), so the echo should work correctly.
14332 # The option is referenced via a variable to avoid confusing sed.
14333 lt_compile=`echo "$ac_compile" | $SED \
14334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14336 -e 's:$: $lt_compiler_flag:'`
14337 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14338 (eval "$lt_compile" 2>conftest.err)
14339 ac_status=$?
14340 cat conftest.err >&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 if (exit $ac_status) && test -s "$ac_outfile"; then
14343 # The compiler can only warn and ignore the option if not recognized
14344 # So say no if there are warnings other than the usual output.
14345 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14346 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14347 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14348 lt_cv_prog_compiler_pic_works_CXX=yes
14349 fi
14350 fi
14351 $RM conftest*
14352
14353 fi
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14355 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14356
14357 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14358 case $lt_prog_compiler_pic_CXX in
14359 "" | " "*) ;;
14360 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14361 esac
14362 else
14363 lt_prog_compiler_pic_CXX=
14364 lt_prog_compiler_can_build_shared_CXX=no
14365 fi
14366
14367 fi
14368
14369
14370
14371 #
14372 # Check to make sure the static flag actually works.
14373 #
14374 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14376 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14377 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14378 $as_echo_n "(cached) " >&6
14379 else
14380 lt_cv_prog_compiler_static_works_CXX=no
14381 save_LDFLAGS="$LDFLAGS"
14382 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14383 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14384 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14385 # The linker can only warn and ignore the option if not recognized
14386 # So say no if there are warnings
14387 if test -s conftest.err; then
14388 # Append any errors to the config.log.
14389 cat conftest.err 1>&5
14390 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14392 if diff conftest.exp conftest.er2 >/dev/null; then
14393 lt_cv_prog_compiler_static_works_CXX=yes
14394 fi
14395 else
14396 lt_cv_prog_compiler_static_works_CXX=yes
14397 fi
14398 fi
14399 $RM -r conftest*
14400 LDFLAGS="$save_LDFLAGS"
14401
14402 fi
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14404 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14405
14406 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14407 :
14408 else
14409 lt_prog_compiler_static_CXX=
14410 fi
14411
14412
14413
14414
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14416 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14417 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14418 $as_echo_n "(cached) " >&6
14419 else
14420 lt_cv_prog_compiler_c_o_CXX=no
14421 $RM -r conftest 2>/dev/null
14422 mkdir conftest
14423 cd conftest
14424 mkdir out
14425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14426
14427 lt_compiler_flag="-o out/conftest2.$ac_objext"
14428 # Insert the option either (1) after the last *FLAGS variable, or
14429 # (2) before a word containing "conftest.", or (3) at the end.
14430 # Note that $ac_compile itself does not contain backslashes and begins
14431 # with a dollar sign (not a hyphen), so the echo should work correctly.
14432 lt_compile=`echo "$ac_compile" | $SED \
14433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14435 -e 's:$: $lt_compiler_flag:'`
14436 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14437 (eval "$lt_compile" 2>out/conftest.err)
14438 ac_status=$?
14439 cat out/conftest.err >&5
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14442 then
14443 # The compiler can only warn and ignore the option if not recognized
14444 # So say no if there are warnings
14445 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14446 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14447 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14448 lt_cv_prog_compiler_c_o_CXX=yes
14449 fi
14450 fi
14451 chmod u+w . 2>&5
14452 $RM conftest*
14453 # SGI C++ compiler will create directory out/ii_files/ for
14454 # template instantiation
14455 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14456 $RM out/* && rmdir out
14457 cd ..
14458 $RM -r conftest
14459 $RM conftest*
14460
14461 fi
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14463 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14464
14465
14466
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14468 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14469 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14470 $as_echo_n "(cached) " >&6
14471 else
14472 lt_cv_prog_compiler_c_o_CXX=no
14473 $RM -r conftest 2>/dev/null
14474 mkdir conftest
14475 cd conftest
14476 mkdir out
14477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14478
14479 lt_compiler_flag="-o out/conftest2.$ac_objext"
14480 # Insert the option either (1) after the last *FLAGS variable, or
14481 # (2) before a word containing "conftest.", or (3) at the end.
14482 # Note that $ac_compile itself does not contain backslashes and begins
14483 # with a dollar sign (not a hyphen), so the echo should work correctly.
14484 lt_compile=`echo "$ac_compile" | $SED \
14485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14487 -e 's:$: $lt_compiler_flag:'`
14488 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14489 (eval "$lt_compile" 2>out/conftest.err)
14490 ac_status=$?
14491 cat out/conftest.err >&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14494 then
14495 # The compiler can only warn and ignore the option if not recognized
14496 # So say no if there are warnings
14497 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14498 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14499 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14500 lt_cv_prog_compiler_c_o_CXX=yes
14501 fi
14502 fi
14503 chmod u+w . 2>&5
14504 $RM conftest*
14505 # SGI C++ compiler will create directory out/ii_files/ for
14506 # template instantiation
14507 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14508 $RM out/* && rmdir out
14509 cd ..
14510 $RM -r conftest
14511 $RM conftest*
14512
14513 fi
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14515 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14516
14517
14518
14519
14520 hard_links="nottested"
14521 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14522 # do not overwrite the value of need_locks provided by the user
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14524 $as_echo_n "checking if we can lock with hard links... " >&6; }
14525 hard_links=yes
14526 $RM conftest*
14527 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14528 touch conftest.a
14529 ln conftest.a conftest.b 2>&5 || hard_links=no
14530 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14532 $as_echo "$hard_links" >&6; }
14533 if test "$hard_links" = no; then
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14535 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14536 need_locks=warn
14537 fi
14538 else
14539 need_locks=no
14540 fi
14541
14542
14543
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14545 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14546
14547 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14548 case $host_os in
14549 aix[4-9]*)
14550 # If we're using GNU nm, then we don't want the "-C" option.
14551 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14552 # Also, AIX nm treats weak defined symbols like other global defined
14553 # symbols, whereas GNU nm marks them as "W".
14554 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14555 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'
14556 else
14557 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14558 fi
14559 ;;
14560 pw32*)
14561 export_symbols_cmds_CXX="$ltdll_cmds"
14562 ;;
14563 cygwin* | mingw* | cegcc*)
14564 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'
14565 ;;
14566 *)
14567 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14568 ;;
14569 esac
14570 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14571
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14573 $as_echo "$ld_shlibs_CXX" >&6; }
14574 test "$ld_shlibs_CXX" = no && can_build_shared=no
14575
14576 with_gnu_ld_CXX=$with_gnu_ld
14577
14578
14579
14580
14581
14582
14583 #
14584 # Do we need to explicitly link libc?
14585 #
14586 case "x$archive_cmds_need_lc_CXX" in
14587 x|xyes)
14588 # Assume -lc should be added
14589 archive_cmds_need_lc_CXX=yes
14590
14591 if test "$enable_shared" = yes && test "$GCC" = yes; then
14592 case $archive_cmds_CXX in
14593 *'~'*)
14594 # FIXME: we may have to deal with multi-command sequences.
14595 ;;
14596 '$CC '*)
14597 # Test whether the compiler implicitly links with -lc since on some
14598 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14599 # to ld, don't add -lc before -lgcc.
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14601 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14602 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14603 $as_echo_n "(cached) " >&6
14604 else
14605 $RM conftest*
14606 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14607
14608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14609 (eval $ac_compile) 2>&5
14610 ac_status=$?
14611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14612 test $ac_status = 0; } 2>conftest.err; then
14613 soname=conftest
14614 lib=conftest
14615 libobjs=conftest.$ac_objext
14616 deplibs=
14617 wl=$lt_prog_compiler_wl_CXX
14618 pic_flag=$lt_prog_compiler_pic_CXX
14619 compiler_flags=-v
14620 linker_flags=-v
14621 verstring=
14622 output_objdir=.
14623 libname=conftest
14624 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14625 allow_undefined_flag_CXX=
14626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14627 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14628 ac_status=$?
14629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14630 test $ac_status = 0; }
14631 then
14632 lt_cv_archive_cmds_need_lc_CXX=no
14633 else
14634 lt_cv_archive_cmds_need_lc_CXX=yes
14635 fi
14636 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14637 else
14638 cat conftest.err 1>&5
14639 fi
14640 $RM conftest*
14641
14642 fi
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14644 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14645 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14646 ;;
14647 esac
14648 fi
14649 ;;
14650 esac
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14716 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14717
14718 library_names_spec=
14719 libname_spec='lib$name'
14720 soname_spec=
14721 shrext_cmds=".so"
14722 postinstall_cmds=
14723 postuninstall_cmds=
14724 finish_cmds=
14725 finish_eval=
14726 shlibpath_var=
14727 shlibpath_overrides_runpath=unknown
14728 version_type=none
14729 dynamic_linker="$host_os ld.so"
14730 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14731 need_lib_prefix=unknown
14732 hardcode_into_libs=no
14733
14734 # when you set need_version to no, make sure it does not cause -set_version
14735 # flags to be left without arguments
14736 need_version=unknown
14737
14738 case $host_os in
14739 aix3*)
14740 version_type=linux
14741 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14742 shlibpath_var=LIBPATH
14743
14744 # AIX 3 has no versioning support, so we append a major version to the name.
14745 soname_spec='${libname}${release}${shared_ext}$major'
14746 ;;
14747
14748 aix[4-9]*)
14749 version_type=linux
14750 need_lib_prefix=no
14751 need_version=no
14752 hardcode_into_libs=yes
14753 if test "$host_cpu" = ia64; then
14754 # AIX 5 supports IA64
14755 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14756 shlibpath_var=LD_LIBRARY_PATH
14757 else
14758 # With GCC up to 2.95.x, collect2 would create an import file
14759 # for dependence libraries. The import file would start with
14760 # the line `#! .'. This would cause the generated library to
14761 # depend on `.', always an invalid library. This was fixed in
14762 # development snapshots of GCC prior to 3.0.
14763 case $host_os in
14764 aix4 | aix4.[01] | aix4.[01].*)
14765 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14766 echo ' yes '
14767 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14768 :
14769 else
14770 can_build_shared=no
14771 fi
14772 ;;
14773 esac
14774 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14775 # soname into executable. Probably we can add versioning support to
14776 # collect2, so additional links can be useful in future.
14777 if test "$aix_use_runtimelinking" = yes; then
14778 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14779 # instead of lib<name>.a to let people know that these are not
14780 # typical AIX shared libraries.
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782 else
14783 # We preserve .a as extension for shared libraries through AIX4.2
14784 # and later when we are not doing run time linking.
14785 library_names_spec='${libname}${release}.a $libname.a'
14786 soname_spec='${libname}${release}${shared_ext}$major'
14787 fi
14788 shlibpath_var=LIBPATH
14789 fi
14790 ;;
14791
14792 amigaos*)
14793 case $host_cpu in
14794 powerpc)
14795 # Since July 2007 AmigaOS4 officially supports .so libraries.
14796 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14798 ;;
14799 m68k)
14800 library_names_spec='$libname.ixlibrary $libname.a'
14801 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14802 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'
14803 ;;
14804 esac
14805 ;;
14806
14807 beos*)
14808 library_names_spec='${libname}${shared_ext}'
14809 dynamic_linker="$host_os ld.so"
14810 shlibpath_var=LIBRARY_PATH
14811 ;;
14812
14813 bsdi[45]*)
14814 version_type=linux
14815 need_version=no
14816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14817 soname_spec='${libname}${release}${shared_ext}$major'
14818 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14819 shlibpath_var=LD_LIBRARY_PATH
14820 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14821 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14822 # the default ld.so.conf also contains /usr/contrib/lib and
14823 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14824 # libtool to hard-code these into programs
14825 ;;
14826
14827 cygwin* | mingw* | pw32* | cegcc*)
14828 version_type=windows
14829 shrext_cmds=".dll"
14830 need_version=no
14831 need_lib_prefix=no
14832
14833 case $GCC,$host_os in
14834 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14835 library_names_spec='$libname.dll.a'
14836 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14837 postinstall_cmds='base_file=`basename \${file}`~
14838 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14839 dldir=$destdir/`dirname \$dlpath`~
14840 test -d \$dldir || mkdir -p \$dldir~
14841 $install_prog $dir/$dlname \$dldir/$dlname~
14842 chmod a+x \$dldir/$dlname~
14843 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14844 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14845 fi'
14846 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14847 dlpath=$dir/\$dldll~
14848 $RM \$dlpath'
14849 shlibpath_overrides_runpath=yes
14850
14851 case $host_os in
14852 cygwin*)
14853 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14854 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14855
14856 ;;
14857 mingw* | cegcc*)
14858 # MinGW DLLs use traditional 'lib' prefix
14859 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14860 ;;
14861 pw32*)
14862 # pw32 DLLs use 'pw' prefix rather than 'lib'
14863 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14864 ;;
14865 esac
14866 ;;
14867
14868 *)
14869 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14870 ;;
14871 esac
14872 dynamic_linker='Win32 ld.exe'
14873 # FIXME: first we should search . and the directory the executable is in
14874 shlibpath_var=PATH
14875 ;;
14876
14877 darwin* | rhapsody*)
14878 dynamic_linker="$host_os dyld"
14879 version_type=darwin
14880 need_lib_prefix=no
14881 need_version=no
14882 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14883 soname_spec='${libname}${release}${major}$shared_ext'
14884 shlibpath_overrides_runpath=yes
14885 shlibpath_var=DYLD_LIBRARY_PATH
14886 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14887
14888 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14889 ;;
14890
14891 dgux*)
14892 version_type=linux
14893 need_lib_prefix=no
14894 need_version=no
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14896 soname_spec='${libname}${release}${shared_ext}$major'
14897 shlibpath_var=LD_LIBRARY_PATH
14898 ;;
14899
14900 freebsd* | dragonfly*)
14901 # DragonFly does not have aout. When/if they implement a new
14902 # versioning mechanism, adjust this.
14903 if test -x /usr/bin/objformat; then
14904 objformat=`/usr/bin/objformat`
14905 else
14906 case $host_os in
14907 freebsd[23].*) objformat=aout ;;
14908 *) objformat=elf ;;
14909 esac
14910 fi
14911 version_type=freebsd-$objformat
14912 case $version_type in
14913 freebsd-elf*)
14914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14915 need_version=no
14916 need_lib_prefix=no
14917 ;;
14918 freebsd-*)
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14920 need_version=yes
14921 ;;
14922 esac
14923 shlibpath_var=LD_LIBRARY_PATH
14924 case $host_os in
14925 freebsd2.*)
14926 shlibpath_overrides_runpath=yes
14927 ;;
14928 freebsd3.[01]* | freebsdelf3.[01]*)
14929 shlibpath_overrides_runpath=yes
14930 hardcode_into_libs=yes
14931 ;;
14932 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14933 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14934 shlibpath_overrides_runpath=no
14935 hardcode_into_libs=yes
14936 ;;
14937 *) # from 4.6 on, and DragonFly
14938 shlibpath_overrides_runpath=yes
14939 hardcode_into_libs=yes
14940 ;;
14941 esac
14942 ;;
14943
14944 gnu*)
14945 version_type=linux
14946 need_lib_prefix=no
14947 need_version=no
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14949 soname_spec='${libname}${release}${shared_ext}$major'
14950 shlibpath_var=LD_LIBRARY_PATH
14951 hardcode_into_libs=yes
14952 ;;
14953
14954 haiku*)
14955 version_type=linux
14956 need_lib_prefix=no
14957 need_version=no
14958 dynamic_linker="$host_os runtime_loader"
14959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14960 soname_spec='${libname}${release}${shared_ext}$major'
14961 shlibpath_var=LIBRARY_PATH
14962 shlibpath_overrides_runpath=yes
14963 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14964 hardcode_into_libs=yes
14965 ;;
14966
14967 hpux9* | hpux10* | hpux11*)
14968 # Give a soname corresponding to the major version so that dld.sl refuses to
14969 # link against other versions.
14970 version_type=sunos
14971 need_lib_prefix=no
14972 need_version=no
14973 case $host_cpu in
14974 ia64*)
14975 shrext_cmds='.so'
14976 hardcode_into_libs=yes
14977 dynamic_linker="$host_os dld.so"
14978 shlibpath_var=LD_LIBRARY_PATH
14979 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14981 soname_spec='${libname}${release}${shared_ext}$major'
14982 if test "X$HPUX_IA64_MODE" = X32; then
14983 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14984 else
14985 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14986 fi
14987 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14988 ;;
14989 hppa*64*)
14990 shrext_cmds='.sl'
14991 hardcode_into_libs=yes
14992 dynamic_linker="$host_os dld.sl"
14993 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14996 soname_spec='${libname}${release}${shared_ext}$major'
14997 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14998 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14999 ;;
15000 *)
15001 shrext_cmds='.sl'
15002 dynamic_linker="$host_os dld.sl"
15003 shlibpath_var=SHLIB_PATH
15004 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15006 soname_spec='${libname}${release}${shared_ext}$major'
15007 ;;
15008 esac
15009 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15010 postinstall_cmds='chmod 555 $lib'
15011 # or fails outright, so override atomically:
15012 install_override_mode=555
15013 ;;
15014
15015 interix[3-9]*)
15016 version_type=linux
15017 need_lib_prefix=no
15018 need_version=no
15019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15020 soname_spec='${libname}${release}${shared_ext}$major'
15021 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15022 shlibpath_var=LD_LIBRARY_PATH
15023 shlibpath_overrides_runpath=no
15024 hardcode_into_libs=yes
15025 ;;
15026
15027 irix5* | irix6* | nonstopux*)
15028 case $host_os in
15029 nonstopux*) version_type=nonstopux ;;
15030 *)
15031 if test "$lt_cv_prog_gnu_ld" = yes; then
15032 version_type=linux
15033 else
15034 version_type=irix
15035 fi ;;
15036 esac
15037 need_lib_prefix=no
15038 need_version=no
15039 soname_spec='${libname}${release}${shared_ext}$major'
15040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15041 case $host_os in
15042 irix5* | nonstopux*)
15043 libsuff= shlibsuff=
15044 ;;
15045 *)
15046 case $LD in # libtool.m4 will add one of these switches to LD
15047 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15048 libsuff= shlibsuff= libmagic=32-bit;;
15049 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15050 libsuff=32 shlibsuff=N32 libmagic=N32;;
15051 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15052 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15053 *) libsuff= shlibsuff= libmagic=never-match;;
15054 esac
15055 ;;
15056 esac
15057 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15058 shlibpath_overrides_runpath=no
15059 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15060 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15061 hardcode_into_libs=yes
15062 ;;
15063
15064 # No shared lib support for Linux oldld, aout, or coff.
15065 linux*oldld* | linux*aout* | linux*coff*)
15066 dynamic_linker=no
15067 ;;
15068
15069 # This must be Linux ELF.
15070 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15071 version_type=linux
15072 need_lib_prefix=no
15073 need_version=no
15074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15075 soname_spec='${libname}${release}${shared_ext}$major'
15076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15077 shlibpath_var=LD_LIBRARY_PATH
15078 shlibpath_overrides_runpath=no
15079
15080 # Some binutils ld are patched to set DT_RUNPATH
15081 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15082 $as_echo_n "(cached) " >&6
15083 else
15084 lt_cv_shlibpath_overrides_runpath=no
15085 save_LDFLAGS=$LDFLAGS
15086 save_libdir=$libdir
15087 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15088 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090 /* end confdefs.h. */
15091
15092 int
15093 main ()
15094 {
15095
15096 ;
15097 return 0;
15098 }
15099 _ACEOF
15100 if ac_fn_cxx_try_link "$LINENO"; then :
15101 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15102 lt_cv_shlibpath_overrides_runpath=yes
15103 fi
15104 fi
15105 rm -f core conftest.err conftest.$ac_objext \
15106 conftest$ac_exeext conftest.$ac_ext
15107 LDFLAGS=$save_LDFLAGS
15108 libdir=$save_libdir
15109
15110 fi
15111
15112 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15113
15114 # This implies no fast_install, which is unacceptable.
15115 # Some rework will be needed to allow for fast_install
15116 # before this can be enabled.
15117 hardcode_into_libs=yes
15118
15119 # Append ld.so.conf contents to the search path
15120 if test -f /etc/ld.so.conf; then
15121 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' ' '`
15122 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15123 fi
15124
15125 # We used to test for /lib/ld.so.1 and disable shared libraries on
15126 # powerpc, because MkLinux only supported shared libraries with the
15127 # GNU dynamic linker. Since this was broken with cross compilers,
15128 # most powerpc-linux boxes support dynamic linking these days and
15129 # people can always --disable-shared, the test was removed, and we
15130 # assume the GNU/Linux dynamic linker is in use.
15131 dynamic_linker='GNU/Linux ld.so'
15132 ;;
15133
15134 netbsd*)
15135 version_type=sunos
15136 need_lib_prefix=no
15137 need_version=no
15138 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15141 dynamic_linker='NetBSD (a.out) ld.so'
15142 else
15143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15144 soname_spec='${libname}${release}${shared_ext}$major'
15145 dynamic_linker='NetBSD ld.elf_so'
15146 fi
15147 shlibpath_var=LD_LIBRARY_PATH
15148 shlibpath_overrides_runpath=yes
15149 hardcode_into_libs=yes
15150 ;;
15151
15152 newsos6)
15153 version_type=linux
15154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15155 shlibpath_var=LD_LIBRARY_PATH
15156 shlibpath_overrides_runpath=yes
15157 ;;
15158
15159 *nto* | *qnx*)
15160 version_type=qnx
15161 need_lib_prefix=no
15162 need_version=no
15163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15164 soname_spec='${libname}${release}${shared_ext}$major'
15165 shlibpath_var=LD_LIBRARY_PATH
15166 shlibpath_overrides_runpath=no
15167 hardcode_into_libs=yes
15168 dynamic_linker='ldqnx.so'
15169 ;;
15170
15171 openbsd*)
15172 version_type=sunos
15173 sys_lib_dlsearch_path_spec="/usr/lib"
15174 need_lib_prefix=no
15175 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15176 case $host_os in
15177 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15178 *) need_version=no ;;
15179 esac
15180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15182 shlibpath_var=LD_LIBRARY_PATH
15183 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15184 case $host_os in
15185 openbsd2.[89] | openbsd2.[89].*)
15186 shlibpath_overrides_runpath=no
15187 ;;
15188 *)
15189 shlibpath_overrides_runpath=yes
15190 ;;
15191 esac
15192 else
15193 shlibpath_overrides_runpath=yes
15194 fi
15195 ;;
15196
15197 os2*)
15198 libname_spec='$name'
15199 shrext_cmds=".dll"
15200 need_lib_prefix=no
15201 library_names_spec='$libname${shared_ext} $libname.a'
15202 dynamic_linker='OS/2 ld.exe'
15203 shlibpath_var=LIBPATH
15204 ;;
15205
15206 osf3* | osf4* | osf5*)
15207 version_type=osf
15208 need_lib_prefix=no
15209 need_version=no
15210 soname_spec='${libname}${release}${shared_ext}$major'
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15212 shlibpath_var=LD_LIBRARY_PATH
15213 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15214 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15215 ;;
15216
15217 rdos*)
15218 dynamic_linker=no
15219 ;;
15220
15221 solaris*)
15222 version_type=linux
15223 need_lib_prefix=no
15224 need_version=no
15225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15226 soname_spec='${libname}${release}${shared_ext}$major'
15227 shlibpath_var=LD_LIBRARY_PATH
15228 shlibpath_overrides_runpath=yes
15229 hardcode_into_libs=yes
15230 # ldd complains unless libraries are executable
15231 postinstall_cmds='chmod +x $lib'
15232 ;;
15233
15234 sunos4*)
15235 version_type=sunos
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15237 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15238 shlibpath_var=LD_LIBRARY_PATH
15239 shlibpath_overrides_runpath=yes
15240 if test "$with_gnu_ld" = yes; then
15241 need_lib_prefix=no
15242 fi
15243 need_version=yes
15244 ;;
15245
15246 sysv4 | sysv4.3*)
15247 version_type=linux
15248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15249 soname_spec='${libname}${release}${shared_ext}$major'
15250 shlibpath_var=LD_LIBRARY_PATH
15251 case $host_vendor in
15252 sni)
15253 shlibpath_overrides_runpath=no
15254 need_lib_prefix=no
15255 runpath_var=LD_RUN_PATH
15256 ;;
15257 siemens)
15258 need_lib_prefix=no
15259 ;;
15260 motorola)
15261 need_lib_prefix=no
15262 need_version=no
15263 shlibpath_overrides_runpath=no
15264 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15265 ;;
15266 esac
15267 ;;
15268
15269 sysv4*MP*)
15270 if test -d /usr/nec ;then
15271 version_type=linux
15272 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15273 soname_spec='$libname${shared_ext}.$major'
15274 shlibpath_var=LD_LIBRARY_PATH
15275 fi
15276 ;;
15277
15278 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15279 version_type=freebsd-elf
15280 need_lib_prefix=no
15281 need_version=no
15282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15283 soname_spec='${libname}${release}${shared_ext}$major'
15284 shlibpath_var=LD_LIBRARY_PATH
15285 shlibpath_overrides_runpath=yes
15286 hardcode_into_libs=yes
15287 if test "$with_gnu_ld" = yes; then
15288 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15289 else
15290 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15291 case $host_os in
15292 sco3.2v5*)
15293 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15294 ;;
15295 esac
15296 fi
15297 sys_lib_dlsearch_path_spec='/usr/lib'
15298 ;;
15299
15300 tpf*)
15301 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15302 version_type=linux
15303 need_lib_prefix=no
15304 need_version=no
15305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15306 shlibpath_var=LD_LIBRARY_PATH
15307 shlibpath_overrides_runpath=no
15308 hardcode_into_libs=yes
15309 ;;
15310
15311 uts4*)
15312 version_type=linux
15313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15314 soname_spec='${libname}${release}${shared_ext}$major'
15315 shlibpath_var=LD_LIBRARY_PATH
15316 ;;
15317
15318 *)
15319 dynamic_linker=no
15320 ;;
15321 esac
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15323 $as_echo "$dynamic_linker" >&6; }
15324 test "$dynamic_linker" = no && can_build_shared=no
15325
15326 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15327 if test "$GCC" = yes; then
15328 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15329 fi
15330
15331 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15332 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15333 fi
15334 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15335 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15336 fi
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15376 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15377 hardcode_action_CXX=
15378 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15379 test -n "$runpath_var_CXX" ||
15380 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15381
15382 # We can hardcode non-existent directories.
15383 if test "$hardcode_direct_CXX" != no &&
15384 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15385 # have to relink, otherwise we might link with an installed library
15386 # when we should be linking with a yet-to-be-installed one
15387 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15388 test "$hardcode_minus_L_CXX" != no; then
15389 # Linking always hardcodes the temporary library directory.
15390 hardcode_action_CXX=relink
15391 else
15392 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15393 hardcode_action_CXX=immediate
15394 fi
15395 else
15396 # We cannot hardcode anything, or else we can only hardcode existing
15397 # directories.
15398 hardcode_action_CXX=unsupported
15399 fi
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15401 $as_echo "$hardcode_action_CXX" >&6; }
15402
15403 if test "$hardcode_action_CXX" = relink ||
15404 test "$inherit_rpath_CXX" = yes; then
15405 # Fast installation is not supported
15406 enable_fast_install=no
15407 elif test "$shlibpath_overrides_runpath" = yes ||
15408 test "$enable_shared" = no; then
15409 # Fast installation is not necessary
15410 enable_fast_install=needless
15411 fi
15412
15413
15414
15415
15416
15417
15418
15419 fi # test -n "$compiler"
15420
15421 CC=$lt_save_CC
15422 LDCXX=$LD
15423 LD=$lt_save_LD
15424 GCC=$lt_save_GCC
15425 with_gnu_ld=$lt_save_with_gnu_ld
15426 lt_cv_path_LDCXX=$lt_cv_path_LD
15427 lt_cv_path_LD=$lt_save_path_LD
15428 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15429 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15430 fi # test "$_lt_caught_CXX_error" != yes
15431
15432 ac_ext=c
15433 ac_cpp='$CPP $CPPFLAGS'
15434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450 ac_config_commands="$ac_config_commands libtool"
15451
15452
15453
15454
15455 # Only expand once:
15456
15457
15458
15459
15460
15461 # For libtool versioning info, format is CURRENT:REVISION:AGE
15462 libtool_VERSION=1:0:0
15463
15464
15465 XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions"
15466
15467
15468 if test "${multilib}" = "yes"; then
15469 multilib_arg="--enable-multilib"
15470 else
15471 multilib_arg=
15472 fi
15473
15474 ac_config_files="$ac_config_files Makefile"
15475
15476
15477 if test "x$VTV_SUPPORTED" = "xyes"; then
15478 ac_config_files="$ac_config_files ./Makefile testsuite/Makefile"
15479
15480 fi
15481
15482 cat >confcache <<\_ACEOF
15483 # This file is a shell script that caches the results of configure
15484 # tests run on this system so they can be shared between configure
15485 # scripts and configure runs, see configure's option --config-cache.
15486 # It is not useful on other systems. If it contains results you don't
15487 # want to keep, you may remove or edit it.
15488 #
15489 # config.status only pays attention to the cache file if you give it
15490 # the --recheck option to rerun configure.
15491 #
15492 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15493 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15494 # following values.
15495
15496 _ACEOF
15497
15498 # The following way of writing the cache mishandles newlines in values,
15499 # but we know of no workaround that is simple, portable, and efficient.
15500 # So, we kill variables containing newlines.
15501 # Ultrix sh set writes to stderr and can't be redirected directly,
15502 # and sets the high bit in the cache file unless we assign to the vars.
15503 (
15504 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15505 eval ac_val=\$$ac_var
15506 case $ac_val in #(
15507 *${as_nl}*)
15508 case $ac_var in #(
15509 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15510 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15511 esac
15512 case $ac_var in #(
15513 _ | IFS | as_nl) ;; #(
15514 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15515 *) { eval $ac_var=; unset $ac_var;} ;;
15516 esac ;;
15517 esac
15518 done
15519
15520 (set) 2>&1 |
15521 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15522 *${as_nl}ac_space=\ *)
15523 # `set' does not quote correctly, so add quotes: double-quote
15524 # substitution turns \\\\ into \\, and sed turns \\ into \.
15525 sed -n \
15526 "s/'/'\\\\''/g;
15527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15528 ;; #(
15529 *)
15530 # `set' quotes correctly as required by POSIX, so do not add quotes.
15531 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15532 ;;
15533 esac |
15534 sort
15535 ) |
15536 sed '
15537 /^ac_cv_env_/b end
15538 t clear
15539 :clear
15540 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15541 t end
15542 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15543 :end' >>confcache
15544 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15545 if test -w "$cache_file"; then
15546 test "x$cache_file" != "x/dev/null" &&
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15548 $as_echo "$as_me: updating cache $cache_file" >&6;}
15549 cat confcache >$cache_file
15550 else
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15552 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15553 fi
15554 fi
15555 rm -f confcache
15556
15557 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15558 # Let make expand exec_prefix.
15559 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15560
15561 # Transform confdefs.h into DEFS.
15562 # Protect against shell expansion while executing Makefile rules.
15563 # Protect against Makefile macro expansion.
15564 #
15565 # If the first sed substitution is executed (which looks for macros that
15566 # take arguments), then branch to the quote section. Otherwise,
15567 # look for a macro that doesn't take arguments.
15568 ac_script='
15569 :mline
15570 /\\$/{
15571 N
15572 s,\\\n,,
15573 b mline
15574 }
15575 t clear
15576 :clear
15577 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15578 t quote
15579 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15580 t quote
15581 b any
15582 :quote
15583 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15584 s/\[/\\&/g
15585 s/\]/\\&/g
15586 s/\$/$$/g
15587 H
15588 :any
15589 ${
15590 g
15591 s/^\n//
15592 s/\n/ /g
15593 p
15594 }
15595 '
15596 DEFS=`sed -n "$ac_script" confdefs.h`
15597
15598
15599 ac_libobjs=
15600 ac_ltlibobjs=
15601 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15602 # 1. Remove the extension, and $U if already installed.
15603 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15604 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15605 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15606 # will be set to the directory where LIBOBJS objects are built.
15607 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15608 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15609 done
15610 LIBOBJS=$ac_libobjs
15611
15612 LTLIBOBJS=$ac_ltlibobjs
15613
15614
15615 if test -n "$EXEEXT"; then
15616 am__EXEEXT_TRUE=
15617 am__EXEEXT_FALSE='#'
15618 else
15619 am__EXEEXT_TRUE='#'
15620 am__EXEEXT_FALSE=
15621 fi
15622
15623 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15624 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15626 fi
15627 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15628 as_fn_error "conditional \"AMDEP\" was never defined.
15629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15630 fi
15631 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15632 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15634 fi
15635 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15636 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15638 fi
15639 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15640 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15642 fi
15643
15644 : ${CONFIG_STATUS=./config.status}
15645 ac_write_fail=0
15646 ac_clean_files_save=$ac_clean_files
15647 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15649 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15650 as_write_fail=0
15651 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15652 #! $SHELL
15653 # Generated by $as_me.
15654 # Run this file to recreate the current configuration.
15655 # Compiler output produced by configure, useful for debugging
15656 # configure, is in config.log if it exists.
15657
15658 debug=false
15659 ac_cs_recheck=false
15660 ac_cs_silent=false
15661
15662 SHELL=\${CONFIG_SHELL-$SHELL}
15663 export SHELL
15664 _ASEOF
15665 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15666 ## -------------------- ##
15667 ## M4sh Initialization. ##
15668 ## -------------------- ##
15669
15670 # Be more Bourne compatible
15671 DUALCASE=1; export DUALCASE # for MKS sh
15672 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15673 emulate sh
15674 NULLCMD=:
15675 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15676 # is contrary to our usage. Disable this feature.
15677 alias -g '${1+"$@"}'='"$@"'
15678 setopt NO_GLOB_SUBST
15679 else
15680 case `(set -o) 2>/dev/null` in #(
15681 *posix*) :
15682 set -o posix ;; #(
15683 *) :
15684 ;;
15685 esac
15686 fi
15687
15688
15689 as_nl='
15690 '
15691 export as_nl
15692 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15693 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15694 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15695 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15696 # Prefer a ksh shell builtin over an external printf program on Solaris,
15697 # but without wasting forks for bash or zsh.
15698 if test -z "$BASH_VERSION$ZSH_VERSION" \
15699 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15700 as_echo='print -r --'
15701 as_echo_n='print -rn --'
15702 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15703 as_echo='printf %s\n'
15704 as_echo_n='printf %s'
15705 else
15706 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15707 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15708 as_echo_n='/usr/ucb/echo -n'
15709 else
15710 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15711 as_echo_n_body='eval
15712 arg=$1;
15713 case $arg in #(
15714 *"$as_nl"*)
15715 expr "X$arg" : "X\\(.*\\)$as_nl";
15716 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15717 esac;
15718 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15719 '
15720 export as_echo_n_body
15721 as_echo_n='sh -c $as_echo_n_body as_echo'
15722 fi
15723 export as_echo_body
15724 as_echo='sh -c $as_echo_body as_echo'
15725 fi
15726
15727 # The user is always right.
15728 if test "${PATH_SEPARATOR+set}" != set; then
15729 PATH_SEPARATOR=:
15730 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15731 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15732 PATH_SEPARATOR=';'
15733 }
15734 fi
15735
15736
15737 # IFS
15738 # We need space, tab and new line, in precisely that order. Quoting is
15739 # there to prevent editors from complaining about space-tab.
15740 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15741 # splitting by setting IFS to empty value.)
15742 IFS=" "" $as_nl"
15743
15744 # Find who we are. Look in the path if we contain no directory separator.
15745 case $0 in #((
15746 *[\\/]* ) as_myself=$0 ;;
15747 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15748 for as_dir in $PATH
15749 do
15750 IFS=$as_save_IFS
15751 test -z "$as_dir" && as_dir=.
15752 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15753 done
15754 IFS=$as_save_IFS
15755
15756 ;;
15757 esac
15758 # We did not find ourselves, most probably we were run as `sh COMMAND'
15759 # in which case we are not to be found in the path.
15760 if test "x$as_myself" = x; then
15761 as_myself=$0
15762 fi
15763 if test ! -f "$as_myself"; then
15764 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15765 exit 1
15766 fi
15767
15768 # Unset variables that we do not need and which cause bugs (e.g. in
15769 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15770 # suppresses any "Segmentation fault" message there. '((' could
15771 # trigger a bug in pdksh 5.2.14.
15772 for as_var in BASH_ENV ENV MAIL MAILPATH
15773 do eval test x\${$as_var+set} = xset \
15774 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15775 done
15776 PS1='$ '
15777 PS2='> '
15778 PS4='+ '
15779
15780 # NLS nuisances.
15781 LC_ALL=C
15782 export LC_ALL
15783 LANGUAGE=C
15784 export LANGUAGE
15785
15786 # CDPATH.
15787 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15788
15789
15790 # as_fn_error ERROR [LINENO LOG_FD]
15791 # ---------------------------------
15792 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15793 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15794 # script with status $?, using 1 if that was 0.
15795 as_fn_error ()
15796 {
15797 as_status=$?; test $as_status -eq 0 && as_status=1
15798 if test "$3"; then
15799 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15800 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15801 fi
15802 $as_echo "$as_me: error: $1" >&2
15803 as_fn_exit $as_status
15804 } # as_fn_error
15805
15806
15807 # as_fn_set_status STATUS
15808 # -----------------------
15809 # Set $? to STATUS, without forking.
15810 as_fn_set_status ()
15811 {
15812 return $1
15813 } # as_fn_set_status
15814
15815 # as_fn_exit STATUS
15816 # -----------------
15817 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15818 as_fn_exit ()
15819 {
15820 set +e
15821 as_fn_set_status $1
15822 exit $1
15823 } # as_fn_exit
15824
15825 # as_fn_unset VAR
15826 # ---------------
15827 # Portably unset VAR.
15828 as_fn_unset ()
15829 {
15830 { eval $1=; unset $1;}
15831 }
15832 as_unset=as_fn_unset
15833 # as_fn_append VAR VALUE
15834 # ----------------------
15835 # Append the text in VALUE to the end of the definition contained in VAR. Take
15836 # advantage of any shell optimizations that allow amortized linear growth over
15837 # repeated appends, instead of the typical quadratic growth present in naive
15838 # implementations.
15839 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15840 eval 'as_fn_append ()
15841 {
15842 eval $1+=\$2
15843 }'
15844 else
15845 as_fn_append ()
15846 {
15847 eval $1=\$$1\$2
15848 }
15849 fi # as_fn_append
15850
15851 # as_fn_arith ARG...
15852 # ------------------
15853 # Perform arithmetic evaluation on the ARGs, and store the result in the
15854 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15855 # must be portable across $(()) and expr.
15856 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15857 eval 'as_fn_arith ()
15858 {
15859 as_val=$(( $* ))
15860 }'
15861 else
15862 as_fn_arith ()
15863 {
15864 as_val=`expr "$@" || test $? -eq 1`
15865 }
15866 fi # as_fn_arith
15867
15868
15869 if expr a : '\(a\)' >/dev/null 2>&1 &&
15870 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15871 as_expr=expr
15872 else
15873 as_expr=false
15874 fi
15875
15876 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15877 as_basename=basename
15878 else
15879 as_basename=false
15880 fi
15881
15882 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15883 as_dirname=dirname
15884 else
15885 as_dirname=false
15886 fi
15887
15888 as_me=`$as_basename -- "$0" ||
15889 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15890 X"$0" : 'X\(//\)$' \| \
15891 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15892 $as_echo X/"$0" |
15893 sed '/^.*\/\([^/][^/]*\)\/*$/{
15894 s//\1/
15895 q
15896 }
15897 /^X\/\(\/\/\)$/{
15898 s//\1/
15899 q
15900 }
15901 /^X\/\(\/\).*/{
15902 s//\1/
15903 q
15904 }
15905 s/.*/./; q'`
15906
15907 # Avoid depending upon Character Ranges.
15908 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15909 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15910 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15911 as_cr_digits='0123456789'
15912 as_cr_alnum=$as_cr_Letters$as_cr_digits
15913
15914 ECHO_C= ECHO_N= ECHO_T=
15915 case `echo -n x` in #(((((
15916 -n*)
15917 case `echo 'xy\c'` in
15918 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15919 xy) ECHO_C='\c';;
15920 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15921 ECHO_T=' ';;
15922 esac;;
15923 *)
15924 ECHO_N='-n';;
15925 esac
15926
15927 rm -f conf$$ conf$$.exe conf$$.file
15928 if test -d conf$$.dir; then
15929 rm -f conf$$.dir/conf$$.file
15930 else
15931 rm -f conf$$.dir
15932 mkdir conf$$.dir 2>/dev/null
15933 fi
15934 if (echo >conf$$.file) 2>/dev/null; then
15935 if ln -s conf$$.file conf$$ 2>/dev/null; then
15936 as_ln_s='ln -s'
15937 # ... but there are two gotchas:
15938 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15939 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15940 # In both cases, we have to default to `cp -p'.
15941 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15942 as_ln_s='cp -p'
15943 elif ln conf$$.file conf$$ 2>/dev/null; then
15944 as_ln_s=ln
15945 else
15946 as_ln_s='cp -p'
15947 fi
15948 else
15949 as_ln_s='cp -p'
15950 fi
15951 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15952 rmdir conf$$.dir 2>/dev/null
15953
15954
15955 # as_fn_mkdir_p
15956 # -------------
15957 # Create "$as_dir" as a directory, including parents if necessary.
15958 as_fn_mkdir_p ()
15959 {
15960
15961 case $as_dir in #(
15962 -*) as_dir=./$as_dir;;
15963 esac
15964 test -d "$as_dir" || eval $as_mkdir_p || {
15965 as_dirs=
15966 while :; do
15967 case $as_dir in #(
15968 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15969 *) as_qdir=$as_dir;;
15970 esac
15971 as_dirs="'$as_qdir' $as_dirs"
15972 as_dir=`$as_dirname -- "$as_dir" ||
15973 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15974 X"$as_dir" : 'X\(//\)[^/]' \| \
15975 X"$as_dir" : 'X\(//\)$' \| \
15976 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15977 $as_echo X"$as_dir" |
15978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15979 s//\1/
15980 q
15981 }
15982 /^X\(\/\/\)[^/].*/{
15983 s//\1/
15984 q
15985 }
15986 /^X\(\/\/\)$/{
15987 s//\1/
15988 q
15989 }
15990 /^X\(\/\).*/{
15991 s//\1/
15992 q
15993 }
15994 s/.*/./; q'`
15995 test -d "$as_dir" && break
15996 done
15997 test -z "$as_dirs" || eval "mkdir $as_dirs"
15998 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15999
16000
16001 } # as_fn_mkdir_p
16002 if mkdir -p . 2>/dev/null; then
16003 as_mkdir_p='mkdir -p "$as_dir"'
16004 else
16005 test -d ./-p && rmdir ./-p
16006 as_mkdir_p=false
16007 fi
16008
16009 if test -x / >/dev/null 2>&1; then
16010 as_test_x='test -x'
16011 else
16012 if ls -dL / >/dev/null 2>&1; then
16013 as_ls_L_option=L
16014 else
16015 as_ls_L_option=
16016 fi
16017 as_test_x='
16018 eval sh -c '\''
16019 if test -d "$1"; then
16020 test -d "$1/.";
16021 else
16022 case $1 in #(
16023 -*)set "./$1";;
16024 esac;
16025 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16026 ???[sx]*):;;*)false;;esac;fi
16027 '\'' sh
16028 '
16029 fi
16030 as_executable_p=$as_test_x
16031
16032 # Sed expression to map a string onto a valid CPP name.
16033 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16034
16035 # Sed expression to map a string onto a valid variable name.
16036 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16037
16038
16039 exec 6>&1
16040 ## ----------------------------------- ##
16041 ## Main body of $CONFIG_STATUS script. ##
16042 ## ----------------------------------- ##
16043 _ASEOF
16044 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16045
16046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16047 # Save the log message, to keep $0 and so on meaningful, and to
16048 # report actual input values of CONFIG_FILES etc. instead of their
16049 # values after options handling.
16050 ac_log="
16051 This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was
16052 generated by GNU Autoconf 2.64. Invocation command line was
16053
16054 CONFIG_FILES = $CONFIG_FILES
16055 CONFIG_HEADERS = $CONFIG_HEADERS
16056 CONFIG_LINKS = $CONFIG_LINKS
16057 CONFIG_COMMANDS = $CONFIG_COMMANDS
16058 $ $0 $@
16059
16060 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16061 "
16062
16063 _ACEOF
16064
16065 case $ac_config_files in *"
16066 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16067 esac
16068
16069
16070
16071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16072 # Files that config.status was made for.
16073 config_files="$ac_config_files"
16074 config_commands="$ac_config_commands"
16075
16076 _ACEOF
16077
16078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16079 ac_cs_usage="\
16080 \`$as_me' instantiates files and other configuration actions
16081 from templates according to the current configuration. Unless the files
16082 and actions are specified as TAGs, all are instantiated by default.
16083
16084 Usage: $0 [OPTION]... [TAG]...
16085
16086 -h, --help print this help, then exit
16087 -V, --version print version number and configuration settings, then exit
16088 -q, --quiet, --silent
16089 do not print progress messages
16090 -d, --debug don't remove temporary files
16091 --recheck update $as_me by reconfiguring in the same conditions
16092 --file=FILE[:TEMPLATE]
16093 instantiate the configuration file FILE
16094
16095 Configuration files:
16096 $config_files
16097
16098 Configuration commands:
16099 $config_commands
16100
16101 Report bugs to the package provider.
16102 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
16103 General help using GNU software: <http://www.gnu.org/gethelp/>."
16104
16105 _ACEOF
16106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16107 ac_cs_version="\\
16108 GNU Vtable Verification Runtime Library config.status 1.0
16109 configured by $0, generated by GNU Autoconf 2.64,
16110 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16111
16112 Copyright (C) 2009 Free Software Foundation, Inc.
16113 This config.status script is free software; the Free Software Foundation
16114 gives unlimited permission to copy, distribute and modify it."
16115
16116 ac_pwd='$ac_pwd'
16117 srcdir='$srcdir'
16118 INSTALL='$INSTALL'
16119 MKDIR_P='$MKDIR_P'
16120 AWK='$AWK'
16121 test -n "\$AWK" || AWK=awk
16122 _ACEOF
16123
16124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16125 # The default lists apply if the user does not specify any file.
16126 ac_need_defaults=:
16127 while test $# != 0
16128 do
16129 case $1 in
16130 --*=*)
16131 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16132 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16133 ac_shift=:
16134 ;;
16135 *)
16136 ac_option=$1
16137 ac_optarg=$2
16138 ac_shift=shift
16139 ;;
16140 esac
16141
16142 case $ac_option in
16143 # Handling of the options.
16144 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16145 ac_cs_recheck=: ;;
16146 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16147 $as_echo "$ac_cs_version"; exit ;;
16148 --debug | --debu | --deb | --de | --d | -d )
16149 debug=: ;;
16150 --file | --fil | --fi | --f )
16151 $ac_shift
16152 case $ac_optarg in
16153 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16154 esac
16155 as_fn_append CONFIG_FILES " '$ac_optarg'"
16156 ac_need_defaults=false;;
16157 --he | --h | --help | --hel | -h )
16158 $as_echo "$ac_cs_usage"; exit ;;
16159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16160 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16161 ac_cs_silent=: ;;
16162
16163 # This is an error.
16164 -*) as_fn_error "unrecognized option: \`$1'
16165 Try \`$0 --help' for more information." ;;
16166
16167 *) as_fn_append ac_config_targets " $1"
16168 ac_need_defaults=false ;;
16169
16170 esac
16171 shift
16172 done
16173
16174 ac_configure_extra_args=
16175
16176 if $ac_cs_silent; then
16177 exec 6>/dev/null
16178 ac_configure_extra_args="$ac_configure_extra_args --silent"
16179 fi
16180
16181 _ACEOF
16182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16183 if \$ac_cs_recheck; then
16184 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16185 shift
16186 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16187 CONFIG_SHELL='$SHELL'
16188 export CONFIG_SHELL
16189 exec "\$@"
16190 fi
16191
16192 _ACEOF
16193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16194 exec 5>>config.log
16195 {
16196 echo
16197 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16198 ## Running $as_me. ##
16199 _ASBOX
16200 $as_echo "$ac_log"
16201 } >&5
16202
16203 _ACEOF
16204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16205 #
16206 # INIT-COMMANDS
16207 #
16208
16209 srcdir="$srcdir"
16210 host="$host"
16211 target="$target"
16212 with_multisubdir="$with_multisubdir"
16213 with_multisrctop="$with_multisrctop"
16214 with_target_subdir="$with_target_subdir"
16215 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16216 multi_basedir="$multi_basedir"
16217 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16218 CC="$CC"
16219 CXX="$CXX"
16220 GFORTRAN="$GFORTRAN"
16221 GCJ="$GCJ"
16222 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16223
16224
16225 # The HP-UX ksh and POSIX shell print the target directory to stdout
16226 # if CDPATH is set.
16227 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16228
16229 sed_quote_subst='$sed_quote_subst'
16230 double_quote_subst='$double_quote_subst'
16231 delay_variable_subst='$delay_variable_subst'
16232 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16233 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16234 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16235 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16236 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16237 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16238 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16239 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16240 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16241 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16242 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16243 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16244 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16245 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16246 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16247 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16248 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16249 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16250 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16251 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16252 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16253 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16254 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16255 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16256 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16257 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16258 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16259 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16260 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16261 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16262 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16263 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16264 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16265 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16266 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16267 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16268 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16269 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16270 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16271 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16272 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16273 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16274 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16275 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16276 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16277 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16278 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16279 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16280 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16281 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16282 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16283 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16284 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16285 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16286 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16287 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16288 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16289 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16290 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16291 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16292 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16293 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16294 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16295 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16296 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16297 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16298 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16299 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16300 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16301 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16302 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16303 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16304 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16305 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16306 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16307 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16308 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16309 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16310 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16311 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16312 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16313 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16314 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16315 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16316 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16317 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16318 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16319 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16320 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16321 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16322 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16323 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16324 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16325 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16326 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16327 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16328 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16329 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16330 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16331 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16332 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16333 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16334 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16335 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16336 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16337 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16338 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16339 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16340 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16341 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16342 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16343 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16344 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16345 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16346 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16347 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16348 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16349 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16350 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16351 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16352 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16353 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16354 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16355 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16356 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16357 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16358 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16359 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16360 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16361 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16362 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16363 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16364 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16365 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16366 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16367 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16368 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16369 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16370 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16371 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16372 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16373 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16374 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16375 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16376 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16377 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16378 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16379 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16380 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16381 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16382 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16383 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16384 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16385 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16386 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16387 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16388 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16389 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16390 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16391 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16392 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16393 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16394 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16395 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16396 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16397 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16398 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16399 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16400 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16401 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16402 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16403 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16404 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16405 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16406 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16407
16408 LTCC='$LTCC'
16409 LTCFLAGS='$LTCFLAGS'
16410 compiler='$compiler_DEFAULT'
16411
16412 # A function that is used when there is no print builtin or printf.
16413 func_fallback_echo ()
16414 {
16415 eval 'cat <<_LTECHO_EOF
16416 \$1
16417 _LTECHO_EOF'
16418 }
16419
16420 # Quote evaled strings.
16421 for var in SHELL \
16422 ECHO \
16423 SED \
16424 GREP \
16425 EGREP \
16426 FGREP \
16427 LD \
16428 NM \
16429 LN_S \
16430 lt_SP2NL \
16431 lt_NL2SP \
16432 reload_flag \
16433 OBJDUMP \
16434 deplibs_check_method \
16435 file_magic_cmd \
16436 AR \
16437 AR_FLAGS \
16438 STRIP \
16439 RANLIB \
16440 CC \
16441 CFLAGS \
16442 compiler \
16443 lt_cv_sys_global_symbol_pipe \
16444 lt_cv_sys_global_symbol_to_cdecl \
16445 lt_cv_sys_global_symbol_to_c_name_address \
16446 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16447 lt_prog_compiler_no_builtin_flag \
16448 lt_prog_compiler_wl \
16449 lt_prog_compiler_pic \
16450 lt_prog_compiler_static \
16451 lt_cv_prog_compiler_c_o \
16452 need_locks \
16453 DSYMUTIL \
16454 NMEDIT \
16455 LIPO \
16456 OTOOL \
16457 OTOOL64 \
16458 shrext_cmds \
16459 export_dynamic_flag_spec \
16460 whole_archive_flag_spec \
16461 compiler_needs_object \
16462 with_gnu_ld \
16463 allow_undefined_flag \
16464 no_undefined_flag \
16465 hardcode_libdir_flag_spec \
16466 hardcode_libdir_flag_spec_ld \
16467 hardcode_libdir_separator \
16468 fix_srcfile_path \
16469 exclude_expsyms \
16470 include_expsyms \
16471 file_list_spec \
16472 variables_saved_for_relink \
16473 libname_spec \
16474 library_names_spec \
16475 soname_spec \
16476 install_override_mode \
16477 finish_eval \
16478 old_striplib \
16479 striplib \
16480 compiler_lib_search_dirs \
16481 predep_objects \
16482 postdep_objects \
16483 predeps \
16484 postdeps \
16485 compiler_lib_search_path \
16486 LD_CXX \
16487 reload_flag_CXX \
16488 compiler_CXX \
16489 lt_prog_compiler_no_builtin_flag_CXX \
16490 lt_prog_compiler_wl_CXX \
16491 lt_prog_compiler_pic_CXX \
16492 lt_prog_compiler_static_CXX \
16493 lt_cv_prog_compiler_c_o_CXX \
16494 export_dynamic_flag_spec_CXX \
16495 whole_archive_flag_spec_CXX \
16496 compiler_needs_object_CXX \
16497 with_gnu_ld_CXX \
16498 allow_undefined_flag_CXX \
16499 no_undefined_flag_CXX \
16500 hardcode_libdir_flag_spec_CXX \
16501 hardcode_libdir_flag_spec_ld_CXX \
16502 hardcode_libdir_separator_CXX \
16503 fix_srcfile_path_CXX \
16504 exclude_expsyms_CXX \
16505 include_expsyms_CXX \
16506 file_list_spec_CXX \
16507 compiler_lib_search_dirs_CXX \
16508 predep_objects_CXX \
16509 postdep_objects_CXX \
16510 predeps_CXX \
16511 postdeps_CXX \
16512 compiler_lib_search_path_CXX; do
16513 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16514 *[\\\\\\\`\\"\\\$]*)
16515 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16516 ;;
16517 *)
16518 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16519 ;;
16520 esac
16521 done
16522
16523 # Double-quote double-evaled strings.
16524 for var in reload_cmds \
16525 old_postinstall_cmds \
16526 old_postuninstall_cmds \
16527 old_archive_cmds \
16528 extract_expsyms_cmds \
16529 old_archive_from_new_cmds \
16530 old_archive_from_expsyms_cmds \
16531 archive_cmds \
16532 archive_expsym_cmds \
16533 module_cmds \
16534 module_expsym_cmds \
16535 export_symbols_cmds \
16536 prelink_cmds \
16537 postinstall_cmds \
16538 postuninstall_cmds \
16539 finish_cmds \
16540 sys_lib_search_path_spec \
16541 sys_lib_dlsearch_path_spec \
16542 reload_cmds_CXX \
16543 old_archive_cmds_CXX \
16544 old_archive_from_new_cmds_CXX \
16545 old_archive_from_expsyms_cmds_CXX \
16546 archive_cmds_CXX \
16547 archive_expsym_cmds_CXX \
16548 module_cmds_CXX \
16549 module_expsym_cmds_CXX \
16550 export_symbols_cmds_CXX \
16551 prelink_cmds_CXX; do
16552 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16553 *[\\\\\\\`\\"\\\$]*)
16554 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16555 ;;
16556 *)
16557 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16558 ;;
16559 esac
16560 done
16561
16562 ac_aux_dir='$ac_aux_dir'
16563 xsi_shell='$xsi_shell'
16564 lt_shell_append='$lt_shell_append'
16565
16566 # See if we are running on zsh, and set the options which allow our
16567 # commands through without removal of \ escapes INIT.
16568 if test -n "\${ZSH_VERSION+set}" ; then
16569 setopt NO_GLOB_SUBST
16570 fi
16571
16572
16573 PACKAGE='$PACKAGE'
16574 VERSION='$VERSION'
16575 TIMESTAMP='$TIMESTAMP'
16576 RM='$RM'
16577 ofile='$ofile'
16578
16579
16580
16581
16582
16583
16584 _ACEOF
16585
16586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16587
16588 # Handling of arguments.
16589 for ac_config_target in $ac_config_targets
16590 do
16591 case $ac_config_target in
16592 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16593 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16594 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16595 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16596 "./Makefile") CONFIG_FILES="$CONFIG_FILES ./Makefile" ;;
16597 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16598
16599 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16600 esac
16601 done
16602
16603
16604 # If the user did not use the arguments to specify the items to instantiate,
16605 # then the envvar interface is used. Set only those that are not.
16606 # We use the long form for the default assignment because of an extremely
16607 # bizarre bug on SunOS 4.1.3.
16608 if $ac_need_defaults; then
16609 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16610 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16611 fi
16612
16613 # Have a temporary directory for convenience. Make it in the build tree
16614 # simply because there is no reason against having it here, and in addition,
16615 # creating and moving files from /tmp can sometimes cause problems.
16616 # Hook for its removal unless debugging.
16617 # Note that there is a small window in which the directory will not be cleaned:
16618 # after its creation but before its name has been assigned to `$tmp'.
16619 $debug ||
16620 {
16621 tmp=
16622 trap 'exit_status=$?
16623 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16624 ' 0
16625 trap 'as_fn_exit 1' 1 2 13 15
16626 }
16627 # Create a (secure) tmp directory for tmp files.
16628
16629 {
16630 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16631 test -n "$tmp" && test -d "$tmp"
16632 } ||
16633 {
16634 tmp=./conf$$-$RANDOM
16635 (umask 077 && mkdir "$tmp")
16636 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16637
16638 # Set up the scripts for CONFIG_FILES section.
16639 # No need to generate them if there are no CONFIG_FILES.
16640 # This happens for instance with `./config.status config.h'.
16641 if test -n "$CONFIG_FILES"; then
16642
16643
16644 ac_cr=`echo X | tr X '\015'`
16645 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16646 # But we know of no other shell where ac_cr would be empty at this
16647 # point, so we can use a bashism as a fallback.
16648 if test "x$ac_cr" = x; then
16649 eval ac_cr=\$\'\\r\'
16650 fi
16651 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16652 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16653 ac_cs_awk_cr='\r'
16654 else
16655 ac_cs_awk_cr=$ac_cr
16656 fi
16657
16658 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16659 _ACEOF
16660
16661
16662 {
16663 echo "cat >conf$$subs.awk <<_ACEOF" &&
16664 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16665 echo "_ACEOF"
16666 } >conf$$subs.sh ||
16667 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16668 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16669 ac_delim='%!_!# '
16670 for ac_last_try in false false false false false :; do
16671 . ./conf$$subs.sh ||
16672 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16673
16674 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16675 if test $ac_delim_n = $ac_delim_num; then
16676 break
16677 elif $ac_last_try; then
16678 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16679 else
16680 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16681 fi
16682 done
16683 rm -f conf$$subs.sh
16684
16685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16686 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16687 _ACEOF
16688 sed -n '
16689 h
16690 s/^/S["/; s/!.*/"]=/
16691 p
16692 g
16693 s/^[^!]*!//
16694 :repl
16695 t repl
16696 s/'"$ac_delim"'$//
16697 t delim
16698 :nl
16699 h
16700 s/\(.\{148\}\).*/\1/
16701 t more1
16702 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16703 p
16704 n
16705 b repl
16706 :more1
16707 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16708 p
16709 g
16710 s/.\{148\}//
16711 t nl
16712 :delim
16713 h
16714 s/\(.\{148\}\).*/\1/
16715 t more2
16716 s/["\\]/\\&/g; s/^/"/; s/$/"/
16717 p
16718 b
16719 :more2
16720 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16721 p
16722 g
16723 s/.\{148\}//
16724 t delim
16725 ' <conf$$subs.awk | sed '
16726 /^[^""]/{
16727 N
16728 s/\n//
16729 }
16730 ' >>$CONFIG_STATUS || ac_write_fail=1
16731 rm -f conf$$subs.awk
16732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16733 _ACAWK
16734 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16735 for (key in S) S_is_set[key] = 1
16736 FS = "\a"
16737
16738 }
16739 {
16740 line = $ 0
16741 nfields = split(line, field, "@")
16742 substed = 0
16743 len = length(field[1])
16744 for (i = 2; i < nfields; i++) {
16745 key = field[i]
16746 keylen = length(key)
16747 if (S_is_set[key]) {
16748 value = S[key]
16749 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16750 len += length(value) + length(field[++i])
16751 substed = 1
16752 } else
16753 len += 1 + keylen
16754 }
16755
16756 print line
16757 }
16758
16759 _ACAWK
16760 _ACEOF
16761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16762 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16763 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16764 else
16765 cat
16766 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16767 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16768 _ACEOF
16769
16770 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16771 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16772 # trailing colons and then remove the whole line if VPATH becomes empty
16773 # (actually we leave an empty line to preserve line numbers).
16774 if test "x$srcdir" = x.; then
16775 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16776 s/:*\$(srcdir):*/:/
16777 s/:*\${srcdir}:*/:/
16778 s/:*@srcdir@:*/:/
16779 s/^\([^=]*=[ ]*\):*/\1/
16780 s/:*$//
16781 s/^[^=]*=[ ]*$//
16782 }'
16783 fi
16784
16785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16786 fi # test -n "$CONFIG_FILES"
16787
16788
16789 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16790 shift
16791 for ac_tag
16792 do
16793 case $ac_tag in
16794 :[FHLC]) ac_mode=$ac_tag; continue;;
16795 esac
16796 case $ac_mode$ac_tag in
16797 :[FHL]*:*);;
16798 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16799 :[FH]-) ac_tag=-:-;;
16800 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16801 esac
16802 ac_save_IFS=$IFS
16803 IFS=:
16804 set x $ac_tag
16805 IFS=$ac_save_IFS
16806 shift
16807 ac_file=$1
16808 shift
16809
16810 case $ac_mode in
16811 :L) ac_source=$1;;
16812 :[FH])
16813 ac_file_inputs=
16814 for ac_f
16815 do
16816 case $ac_f in
16817 -) ac_f="$tmp/stdin";;
16818 *) # Look for the file first in the build tree, then in the source tree
16819 # (if the path is not absolute). The absolute path cannot be DOS-style,
16820 # because $ac_f cannot contain `:'.
16821 test -f "$ac_f" ||
16822 case $ac_f in
16823 [\\/$]*) false;;
16824 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16825 esac ||
16826 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16827 esac
16828 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16829 as_fn_append ac_file_inputs " '$ac_f'"
16830 done
16831
16832 # Let's still pretend it is `configure' which instantiates (i.e., don't
16833 # use $as_me), people would be surprised to read:
16834 # /* config.h. Generated by config.status. */
16835 configure_input='Generated from '`
16836 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16837 `' by configure.'
16838 if test x"$ac_file" != x-; then
16839 configure_input="$ac_file. $configure_input"
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16841 $as_echo "$as_me: creating $ac_file" >&6;}
16842 fi
16843 # Neutralize special characters interpreted by sed in replacement strings.
16844 case $configure_input in #(
16845 *\&* | *\|* | *\\* )
16846 ac_sed_conf_input=`$as_echo "$configure_input" |
16847 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16848 *) ac_sed_conf_input=$configure_input;;
16849 esac
16850
16851 case $ac_tag in
16852 *:-:* | *:-) cat >"$tmp/stdin" \
16853 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16854 esac
16855 ;;
16856 esac
16857
16858 ac_dir=`$as_dirname -- "$ac_file" ||
16859 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16860 X"$ac_file" : 'X\(//\)[^/]' \| \
16861 X"$ac_file" : 'X\(//\)$' \| \
16862 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16863 $as_echo X"$ac_file" |
16864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16865 s//\1/
16866 q
16867 }
16868 /^X\(\/\/\)[^/].*/{
16869 s//\1/
16870 q
16871 }
16872 /^X\(\/\/\)$/{
16873 s//\1/
16874 q
16875 }
16876 /^X\(\/\).*/{
16877 s//\1/
16878 q
16879 }
16880 s/.*/./; q'`
16881 as_dir="$ac_dir"; as_fn_mkdir_p
16882 ac_builddir=.
16883
16884 case "$ac_dir" in
16885 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16886 *)
16887 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16888 # A ".." for each directory in $ac_dir_suffix.
16889 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16890 case $ac_top_builddir_sub in
16891 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16892 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16893 esac ;;
16894 esac
16895 ac_abs_top_builddir=$ac_pwd
16896 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16897 # for backward compatibility:
16898 ac_top_builddir=$ac_top_build_prefix
16899
16900 case $srcdir in
16901 .) # We are building in place.
16902 ac_srcdir=.
16903 ac_top_srcdir=$ac_top_builddir_sub
16904 ac_abs_top_srcdir=$ac_pwd ;;
16905 [\\/]* | ?:[\\/]* ) # Absolute name.
16906 ac_srcdir=$srcdir$ac_dir_suffix;
16907 ac_top_srcdir=$srcdir
16908 ac_abs_top_srcdir=$srcdir ;;
16909 *) # Relative name.
16910 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16911 ac_top_srcdir=$ac_top_build_prefix$srcdir
16912 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16913 esac
16914 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16915
16916
16917 case $ac_mode in
16918 :F)
16919 #
16920 # CONFIG_FILE
16921 #
16922
16923 case $INSTALL in
16924 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16925 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16926 esac
16927 ac_MKDIR_P=$MKDIR_P
16928 case $MKDIR_P in
16929 [\\/$]* | ?:[\\/]* ) ;;
16930 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16931 esac
16932 _ACEOF
16933
16934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16935 # If the template does not know about datarootdir, expand it.
16936 # FIXME: This hack should be removed a few years after 2.60.
16937 ac_datarootdir_hack=; ac_datarootdir_seen=
16938 ac_sed_dataroot='
16939 /datarootdir/ {
16940 p
16941 q
16942 }
16943 /@datadir@/p
16944 /@docdir@/p
16945 /@infodir@/p
16946 /@localedir@/p
16947 /@mandir@/p'
16948 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16949 *datarootdir*) ac_datarootdir_seen=yes;;
16950 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16952 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16953 _ACEOF
16954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16955 ac_datarootdir_hack='
16956 s&@datadir@&$datadir&g
16957 s&@docdir@&$docdir&g
16958 s&@infodir@&$infodir&g
16959 s&@localedir@&$localedir&g
16960 s&@mandir@&$mandir&g
16961 s&\\\${datarootdir}&$datarootdir&g' ;;
16962 esac
16963 _ACEOF
16964
16965 # Neutralize VPATH when `$srcdir' = `.'.
16966 # Shell code in configure.ac might set extrasub.
16967 # FIXME: do we really want to maintain this feature?
16968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16969 ac_sed_extra="$ac_vpsub
16970 $extrasub
16971 _ACEOF
16972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16973 :t
16974 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16975 s|@configure_input@|$ac_sed_conf_input|;t t
16976 s&@top_builddir@&$ac_top_builddir_sub&;t t
16977 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16978 s&@srcdir@&$ac_srcdir&;t t
16979 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16980 s&@top_srcdir@&$ac_top_srcdir&;t t
16981 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16982 s&@builddir@&$ac_builddir&;t t
16983 s&@abs_builddir@&$ac_abs_builddir&;t t
16984 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16985 s&@INSTALL@&$ac_INSTALL&;t t
16986 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16987 $ac_datarootdir_hack
16988 "
16989 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16990 || as_fn_error "could not create $ac_file" "$LINENO" 5
16991
16992 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16993 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16994 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16996 which seems to be undefined. Please make sure it is defined." >&5
16997 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16998 which seems to be undefined. Please make sure it is defined." >&2;}
16999
17000 rm -f "$tmp/stdin"
17001 case $ac_file in
17002 -) cat "$tmp/out" && rm -f "$tmp/out";;
17003 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17004 esac \
17005 || as_fn_error "could not create $ac_file" "$LINENO" 5
17006 ;;
17007
17008
17009 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17010 $as_echo "$as_me: executing $ac_file commands" >&6;}
17011 ;;
17012 esac
17013
17014
17015 case $ac_file$ac_mode in
17016 "default-1":C)
17017 # Only add multilib support code if we just rebuilt the top-level
17018 # Makefile.
17019 case " $CONFIG_FILES " in
17020 *" Makefile "*)
17021 ac_file=Makefile . ${multi_basedir}/config-ml.in
17022 ;;
17023 esac ;;
17024 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17025 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17026 # are listed without --file. Let's play safe and only enable the eval
17027 # if we detect the quoting.
17028 case $CONFIG_FILES in
17029 *\'*) eval set x "$CONFIG_FILES" ;;
17030 *) set x $CONFIG_FILES ;;
17031 esac
17032 shift
17033 for mf
17034 do
17035 # Strip MF so we end up with the name of the file.
17036 mf=`echo "$mf" | sed -e 's/:.*$//'`
17037 # Check whether this is an Automake generated Makefile or not.
17038 # We used to match only the files named `Makefile.in', but
17039 # some people rename them; so instead we look at the file content.
17040 # Grep'ing the first line is not enough: some people post-process
17041 # each Makefile.in and add a new line on top of each file to say so.
17042 # Grep'ing the whole file is not good either: AIX grep has a line
17043 # limit of 2048, but all sed's we know have understand at least 4000.
17044 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17045 dirpart=`$as_dirname -- "$mf" ||
17046 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17047 X"$mf" : 'X\(//\)[^/]' \| \
17048 X"$mf" : 'X\(//\)$' \| \
17049 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17050 $as_echo X"$mf" |
17051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17052 s//\1/
17053 q
17054 }
17055 /^X\(\/\/\)[^/].*/{
17056 s//\1/
17057 q
17058 }
17059 /^X\(\/\/\)$/{
17060 s//\1/
17061 q
17062 }
17063 /^X\(\/\).*/{
17064 s//\1/
17065 q
17066 }
17067 s/.*/./; q'`
17068 else
17069 continue
17070 fi
17071 # Extract the definition of DEPDIR, am__include, and am__quote
17072 # from the Makefile without running `make'.
17073 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17074 test -z "$DEPDIR" && continue
17075 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17076 test -z "am__include" && continue
17077 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17078 # When using ansi2knr, U may be empty or an underscore; expand it
17079 U=`sed -n 's/^U = //p' < "$mf"`
17080 # Find all dependency output files, they are included files with
17081 # $(DEPDIR) in their names. We invoke sed twice because it is the
17082 # simplest approach to changing $(DEPDIR) to its actual value in the
17083 # expansion.
17084 for file in `sed -n "
17085 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17086 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17087 # Make sure the directory exists.
17088 test -f "$dirpart/$file" && continue
17089 fdir=`$as_dirname -- "$file" ||
17090 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17091 X"$file" : 'X\(//\)[^/]' \| \
17092 X"$file" : 'X\(//\)$' \| \
17093 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17094 $as_echo X"$file" |
17095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17096 s//\1/
17097 q
17098 }
17099 /^X\(\/\/\)[^/].*/{
17100 s//\1/
17101 q
17102 }
17103 /^X\(\/\/\)$/{
17104 s//\1/
17105 q
17106 }
17107 /^X\(\/\).*/{
17108 s//\1/
17109 q
17110 }
17111 s/.*/./; q'`
17112 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17113 # echo "creating $dirpart/$file"
17114 echo '# dummy' > "$dirpart/$file"
17115 done
17116 done
17117 }
17118 ;;
17119 "libtool":C)
17120
17121 # See if we are running on zsh, and set the options which allow our
17122 # commands through without removal of \ escapes.
17123 if test -n "${ZSH_VERSION+set}" ; then
17124 setopt NO_GLOB_SUBST
17125 fi
17126
17127 cfgfile="${ofile}T"
17128 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17129 $RM "$cfgfile"
17130
17131 cat <<_LT_EOF >> "$cfgfile"
17132 #! $SHELL
17133
17134 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17135 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17136 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17137 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17138 #
17139 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17140 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17141 # Written by Gordon Matzigkeit, 1996
17142 #
17143 # This file is part of GNU Libtool.
17144 #
17145 # GNU Libtool is free software; you can redistribute it and/or
17146 # modify it under the terms of the GNU General Public License as
17147 # published by the Free Software Foundation; either version 2 of
17148 # the License, or (at your option) any later version.
17149 #
17150 # As a special exception to the GNU General Public License,
17151 # if you distribute this file as part of a program or library that
17152 # is built using GNU Libtool, you may include this file under the
17153 # same distribution terms that you use for the rest of that program.
17154 #
17155 # GNU Libtool is distributed in the hope that it will be useful,
17156 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17157 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17158 # GNU General Public License for more details.
17159 #
17160 # You should have received a copy of the GNU General Public License
17161 # along with GNU Libtool; see the file COPYING. If not, a copy
17162 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17163 # obtained by writing to the Free Software Foundation, Inc.,
17164 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17165
17166
17167 # The names of the tagged configurations supported by this script.
17168 available_tags="CXX "
17169
17170 # ### BEGIN LIBTOOL CONFIG
17171
17172 # Which release of libtool.m4 was used?
17173 macro_version=$macro_version
17174 macro_revision=$macro_revision
17175
17176 # Whether or not to build shared libraries.
17177 build_libtool_libs=$enable_shared
17178
17179 # Whether or not to build static libraries.
17180 build_old_libs=$enable_static
17181
17182 # What type of objects to build.
17183 pic_mode=$pic_mode
17184
17185 # Whether or not to optimize for fast installation.
17186 fast_install=$enable_fast_install
17187
17188 # Shell to use when invoking shell scripts.
17189 SHELL=$lt_SHELL
17190
17191 # An echo program that protects backslashes.
17192 ECHO=$lt_ECHO
17193
17194 # The host system.
17195 host_alias=$host_alias
17196 host=$host
17197 host_os=$host_os
17198
17199 # The build system.
17200 build_alias=$build_alias
17201 build=$build
17202 build_os=$build_os
17203
17204 # A sed program that does not truncate output.
17205 SED=$lt_SED
17206
17207 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17208 Xsed="\$SED -e 1s/^X//"
17209
17210 # A grep program that handles long lines.
17211 GREP=$lt_GREP
17212
17213 # An ERE matcher.
17214 EGREP=$lt_EGREP
17215
17216 # A literal string matcher.
17217 FGREP=$lt_FGREP
17218
17219 # A BSD- or MS-compatible name lister.
17220 NM=$lt_NM
17221
17222 # Whether we need soft or hard links.
17223 LN_S=$lt_LN_S
17224
17225 # What is the maximum length of a command?
17226 max_cmd_len=$max_cmd_len
17227
17228 # Object file suffix (normally "o").
17229 objext=$ac_objext
17230
17231 # Executable file suffix (normally "").
17232 exeext=$exeext
17233
17234 # whether the shell understands "unset".
17235 lt_unset=$lt_unset
17236
17237 # turn spaces into newlines.
17238 SP2NL=$lt_lt_SP2NL
17239
17240 # turn newlines into spaces.
17241 NL2SP=$lt_lt_NL2SP
17242
17243 # An object symbol dumper.
17244 OBJDUMP=$lt_OBJDUMP
17245
17246 # Method to check whether dependent libraries are shared objects.
17247 deplibs_check_method=$lt_deplibs_check_method
17248
17249 # Command to use when deplibs_check_method == "file_magic".
17250 file_magic_cmd=$lt_file_magic_cmd
17251
17252 # The archiver.
17253 AR=$lt_AR
17254 AR_FLAGS=$lt_AR_FLAGS
17255
17256 # A symbol stripping program.
17257 STRIP=$lt_STRIP
17258
17259 # Commands used to install an old-style archive.
17260 RANLIB=$lt_RANLIB
17261 old_postinstall_cmds=$lt_old_postinstall_cmds
17262 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17263
17264 # Whether to use a lock for old archive extraction.
17265 lock_old_archive_extraction=$lock_old_archive_extraction
17266
17267 # A C compiler.
17268 LTCC=$lt_CC
17269
17270 # LTCC compiler flags.
17271 LTCFLAGS=$lt_CFLAGS
17272
17273 # Take the output of nm and produce a listing of raw symbols and C names.
17274 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17275
17276 # Transform the output of nm in a proper C declaration.
17277 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17278
17279 # Transform the output of nm in a C name address pair.
17280 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17281
17282 # Transform the output of nm in a C name address pair when lib prefix is needed.
17283 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17284
17285 # The name of the directory that contains temporary libtool files.
17286 objdir=$objdir
17287
17288 # Used to examine libraries when file_magic_cmd begins with "file".
17289 MAGIC_CMD=$MAGIC_CMD
17290
17291 # Must we lock files when doing compilation?
17292 need_locks=$lt_need_locks
17293
17294 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17295 DSYMUTIL=$lt_DSYMUTIL
17296
17297 # Tool to change global to local symbols on Mac OS X.
17298 NMEDIT=$lt_NMEDIT
17299
17300 # Tool to manipulate fat objects and archives on Mac OS X.
17301 LIPO=$lt_LIPO
17302
17303 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17304 OTOOL=$lt_OTOOL
17305
17306 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17307 OTOOL64=$lt_OTOOL64
17308
17309 # Old archive suffix (normally "a").
17310 libext=$libext
17311
17312 # Shared library suffix (normally ".so").
17313 shrext_cmds=$lt_shrext_cmds
17314
17315 # The commands to extract the exported symbol list from a shared archive.
17316 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17317
17318 # Variables whose values should be saved in libtool wrapper scripts and
17319 # restored at link time.
17320 variables_saved_for_relink=$lt_variables_saved_for_relink
17321
17322 # Do we need the "lib" prefix for modules?
17323 need_lib_prefix=$need_lib_prefix
17324
17325 # Do we need a version for libraries?
17326 need_version=$need_version
17327
17328 # Library versioning type.
17329 version_type=$version_type
17330
17331 # Shared library runtime path variable.
17332 runpath_var=$runpath_var
17333
17334 # Shared library path variable.
17335 shlibpath_var=$shlibpath_var
17336
17337 # Is shlibpath searched before the hard-coded library search path?
17338 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17339
17340 # Format of library name prefix.
17341 libname_spec=$lt_libname_spec
17342
17343 # List of archive names. First name is the real one, the rest are links.
17344 # The last name is the one that the linker finds with -lNAME
17345 library_names_spec=$lt_library_names_spec
17346
17347 # The coded name of the library, if different from the real name.
17348 soname_spec=$lt_soname_spec
17349
17350 # Permission mode override for installation of shared libraries.
17351 install_override_mode=$lt_install_override_mode
17352
17353 # Command to use after installation of a shared archive.
17354 postinstall_cmds=$lt_postinstall_cmds
17355
17356 # Command to use after uninstallation of a shared archive.
17357 postuninstall_cmds=$lt_postuninstall_cmds
17358
17359 # Commands used to finish a libtool library installation in a directory.
17360 finish_cmds=$lt_finish_cmds
17361
17362 # As "finish_cmds", except a single script fragment to be evaled but
17363 # not shown.
17364 finish_eval=$lt_finish_eval
17365
17366 # Whether we should hardcode library paths into libraries.
17367 hardcode_into_libs=$hardcode_into_libs
17368
17369 # Compile-time system search path for libraries.
17370 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17371
17372 # Run-time system search path for libraries.
17373 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17374
17375 # Whether dlopen is supported.
17376 dlopen_support=$enable_dlopen
17377
17378 # Whether dlopen of programs is supported.
17379 dlopen_self=$enable_dlopen_self
17380
17381 # Whether dlopen of statically linked programs is supported.
17382 dlopen_self_static=$enable_dlopen_self_static
17383
17384 # Commands to strip libraries.
17385 old_striplib=$lt_old_striplib
17386 striplib=$lt_striplib
17387
17388
17389 # The linker used to build libraries.
17390 LD=$lt_LD
17391
17392 # How to create reloadable object files.
17393 reload_flag=$lt_reload_flag
17394 reload_cmds=$lt_reload_cmds
17395
17396 # Commands used to build an old-style archive.
17397 old_archive_cmds=$lt_old_archive_cmds
17398
17399 # A language specific compiler.
17400 CC=$lt_compiler
17401
17402 # Is the compiler the GNU compiler?
17403 with_gcc=$GCC
17404
17405 # Compiler flag to turn off builtin functions.
17406 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17407
17408 # How to pass a linker flag through the compiler.
17409 wl=$lt_lt_prog_compiler_wl
17410
17411 # Additional compiler flags for building library objects.
17412 pic_flag=$lt_lt_prog_compiler_pic
17413
17414 # Compiler flag to prevent dynamic linking.
17415 link_static_flag=$lt_lt_prog_compiler_static
17416
17417 # Does compiler simultaneously support -c and -o options?
17418 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17419
17420 # Whether or not to add -lc for building shared libraries.
17421 build_libtool_need_lc=$archive_cmds_need_lc
17422
17423 # Whether or not to disallow shared libs when runtime libs are static.
17424 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17425
17426 # Compiler flag to allow reflexive dlopens.
17427 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17428
17429 # Compiler flag to generate shared objects directly from archives.
17430 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17431
17432 # Whether the compiler copes with passing no objects directly.
17433 compiler_needs_object=$lt_compiler_needs_object
17434
17435 # Create an old-style archive from a shared archive.
17436 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17437
17438 # Create a temporary old-style archive to link instead of a shared archive.
17439 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17440
17441 # Commands used to build a shared archive.
17442 archive_cmds=$lt_archive_cmds
17443 archive_expsym_cmds=$lt_archive_expsym_cmds
17444
17445 # Commands used to build a loadable module if different from building
17446 # a shared archive.
17447 module_cmds=$lt_module_cmds
17448 module_expsym_cmds=$lt_module_expsym_cmds
17449
17450 # Whether we are building with GNU ld or not.
17451 with_gnu_ld=$lt_with_gnu_ld
17452
17453 # Flag that allows shared libraries with undefined symbols to be built.
17454 allow_undefined_flag=$lt_allow_undefined_flag
17455
17456 # Flag that enforces no undefined symbols.
17457 no_undefined_flag=$lt_no_undefined_flag
17458
17459 # Flag to hardcode \$libdir into a binary during linking.
17460 # This must work even if \$libdir does not exist
17461 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17462
17463 # If ld is used when linking, flag to hardcode \$libdir into a binary
17464 # during linking. This must work even if \$libdir does not exist.
17465 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17466
17467 # Whether we need a single "-rpath" flag with a separated argument.
17468 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17469
17470 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17471 # DIR into the resulting binary.
17472 hardcode_direct=$hardcode_direct
17473
17474 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17475 # DIR into the resulting binary and the resulting library dependency is
17476 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17477 # library is relocated.
17478 hardcode_direct_absolute=$hardcode_direct_absolute
17479
17480 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17481 # into the resulting binary.
17482 hardcode_minus_L=$hardcode_minus_L
17483
17484 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17485 # into the resulting binary.
17486 hardcode_shlibpath_var=$hardcode_shlibpath_var
17487
17488 # Set to "yes" if building a shared library automatically hardcodes DIR
17489 # into the library and all subsequent libraries and executables linked
17490 # against it.
17491 hardcode_automatic=$hardcode_automatic
17492
17493 # Set to yes if linker adds runtime paths of dependent libraries
17494 # to runtime path list.
17495 inherit_rpath=$inherit_rpath
17496
17497 # Whether libtool must link a program against all its dependency libraries.
17498 link_all_deplibs=$link_all_deplibs
17499
17500 # Fix the shell variable \$srcfile for the compiler.
17501 fix_srcfile_path=$lt_fix_srcfile_path
17502
17503 # Set to "yes" if exported symbols are required.
17504 always_export_symbols=$always_export_symbols
17505
17506 # The commands to list exported symbols.
17507 export_symbols_cmds=$lt_export_symbols_cmds
17508
17509 # Symbols that should not be listed in the preloaded symbols.
17510 exclude_expsyms=$lt_exclude_expsyms
17511
17512 # Symbols that must always be exported.
17513 include_expsyms=$lt_include_expsyms
17514
17515 # Commands necessary for linking programs (against libraries) with templates.
17516 prelink_cmds=$lt_prelink_cmds
17517
17518 # Specify filename containing input files.
17519 file_list_spec=$lt_file_list_spec
17520
17521 # How to hardcode a shared library path into an executable.
17522 hardcode_action=$hardcode_action
17523
17524 # The directories searched by this compiler when creating a shared library.
17525 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17526
17527 # Dependencies to place before and after the objects being linked to
17528 # create a shared library.
17529 predep_objects=$lt_predep_objects
17530 postdep_objects=$lt_postdep_objects
17531 predeps=$lt_predeps
17532 postdeps=$lt_postdeps
17533
17534 # The library search path used internally by the compiler when linking
17535 # a shared library.
17536 compiler_lib_search_path=$lt_compiler_lib_search_path
17537
17538 # ### END LIBTOOL CONFIG
17539
17540 _LT_EOF
17541
17542 case $host_os in
17543 aix3*)
17544 cat <<\_LT_EOF >> "$cfgfile"
17545 # AIX sometimes has problems with the GCC collect2 program. For some
17546 # reason, if we set the COLLECT_NAMES environment variable, the problems
17547 # vanish in a puff of smoke.
17548 if test "X${COLLECT_NAMES+set}" != Xset; then
17549 COLLECT_NAMES=
17550 export COLLECT_NAMES
17551 fi
17552 _LT_EOF
17553 ;;
17554 esac
17555
17556
17557 ltmain="$ac_aux_dir/ltmain.sh"
17558
17559
17560 # We use sed instead of cat because bash on DJGPP gets confused if
17561 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17562 # text mode, it properly converts lines to CR/LF. This bash problem
17563 # is reportedly fixed, but why not run on old versions too?
17564 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17565 || (rm -f "$cfgfile"; exit 1)
17566
17567 case $xsi_shell in
17568 yes)
17569 cat << \_LT_EOF >> "$cfgfile"
17570
17571 # func_dirname file append nondir_replacement
17572 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17573 # otherwise set result to NONDIR_REPLACEMENT.
17574 func_dirname ()
17575 {
17576 case ${1} in
17577 */*) func_dirname_result="${1%/*}${2}" ;;
17578 * ) func_dirname_result="${3}" ;;
17579 esac
17580 }
17581
17582 # func_basename file
17583 func_basename ()
17584 {
17585 func_basename_result="${1##*/}"
17586 }
17587
17588 # func_dirname_and_basename file append nondir_replacement
17589 # perform func_basename and func_dirname in a single function
17590 # call:
17591 # dirname: Compute the dirname of FILE. If nonempty,
17592 # add APPEND to the result, otherwise set result
17593 # to NONDIR_REPLACEMENT.
17594 # value returned in "$func_dirname_result"
17595 # basename: Compute filename of FILE.
17596 # value retuned in "$func_basename_result"
17597 # Implementation must be kept synchronized with func_dirname
17598 # and func_basename. For efficiency, we do not delegate to
17599 # those functions but instead duplicate the functionality here.
17600 func_dirname_and_basename ()
17601 {
17602 case ${1} in
17603 */*) func_dirname_result="${1%/*}${2}" ;;
17604 * ) func_dirname_result="${3}" ;;
17605 esac
17606 func_basename_result="${1##*/}"
17607 }
17608
17609 # func_stripname prefix suffix name
17610 # strip PREFIX and SUFFIX off of NAME.
17611 # PREFIX and SUFFIX must not contain globbing or regex special
17612 # characters, hashes, percent signs, but SUFFIX may contain a leading
17613 # dot (in which case that matches only a dot).
17614 func_stripname ()
17615 {
17616 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17617 # positional parameters, so assign one to ordinary parameter first.
17618 func_stripname_result=${3}
17619 func_stripname_result=${func_stripname_result#"${1}"}
17620 func_stripname_result=${func_stripname_result%"${2}"}
17621 }
17622
17623 # func_opt_split
17624 func_opt_split ()
17625 {
17626 func_opt_split_opt=${1%%=*}
17627 func_opt_split_arg=${1#*=}
17628 }
17629
17630 # func_lo2o object
17631 func_lo2o ()
17632 {
17633 case ${1} in
17634 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17635 *) func_lo2o_result=${1} ;;
17636 esac
17637 }
17638
17639 # func_xform libobj-or-source
17640 func_xform ()
17641 {
17642 func_xform_result=${1%.*}.lo
17643 }
17644
17645 # func_arith arithmetic-term...
17646 func_arith ()
17647 {
17648 func_arith_result=$(( $* ))
17649 }
17650
17651 # func_len string
17652 # STRING may not start with a hyphen.
17653 func_len ()
17654 {
17655 func_len_result=${#1}
17656 }
17657
17658 _LT_EOF
17659 ;;
17660 *) # Bourne compatible functions.
17661 cat << \_LT_EOF >> "$cfgfile"
17662
17663 # func_dirname file append nondir_replacement
17664 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17665 # otherwise set result to NONDIR_REPLACEMENT.
17666 func_dirname ()
17667 {
17668 # Extract subdirectory from the argument.
17669 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17670 if test "X$func_dirname_result" = "X${1}"; then
17671 func_dirname_result="${3}"
17672 else
17673 func_dirname_result="$func_dirname_result${2}"
17674 fi
17675 }
17676
17677 # func_basename file
17678 func_basename ()
17679 {
17680 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17681 }
17682
17683
17684 # func_stripname prefix suffix name
17685 # strip PREFIX and SUFFIX off of NAME.
17686 # PREFIX and SUFFIX must not contain globbing or regex special
17687 # characters, hashes, percent signs, but SUFFIX may contain a leading
17688 # dot (in which case that matches only a dot).
17689 # func_strip_suffix prefix name
17690 func_stripname ()
17691 {
17692 case ${2} in
17693 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17694 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17695 esac
17696 }
17697
17698 # sed scripts:
17699 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17700 my_sed_long_arg='1s/^-[^=]*=//'
17701
17702 # func_opt_split
17703 func_opt_split ()
17704 {
17705 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17706 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17707 }
17708
17709 # func_lo2o object
17710 func_lo2o ()
17711 {
17712 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17713 }
17714
17715 # func_xform libobj-or-source
17716 func_xform ()
17717 {
17718 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17719 }
17720
17721 # func_arith arithmetic-term...
17722 func_arith ()
17723 {
17724 func_arith_result=`expr "$@"`
17725 }
17726
17727 # func_len string
17728 # STRING may not start with a hyphen.
17729 func_len ()
17730 {
17731 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17732 }
17733
17734 _LT_EOF
17735 esac
17736
17737 case $lt_shell_append in
17738 yes)
17739 cat << \_LT_EOF >> "$cfgfile"
17740
17741 # func_append var value
17742 # Append VALUE to the end of shell variable VAR.
17743 func_append ()
17744 {
17745 eval "$1+=\$2"
17746 }
17747 _LT_EOF
17748 ;;
17749 *)
17750 cat << \_LT_EOF >> "$cfgfile"
17751
17752 # func_append var value
17753 # Append VALUE to the end of shell variable VAR.
17754 func_append ()
17755 {
17756 eval "$1=\$$1\$2"
17757 }
17758
17759 _LT_EOF
17760 ;;
17761 esac
17762
17763
17764 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17765 || (rm -f "$cfgfile"; exit 1)
17766
17767 mv -f "$cfgfile" "$ofile" ||
17768 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17769 chmod +x "$ofile"
17770
17771
17772 cat <<_LT_EOF >> "$ofile"
17773
17774 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17775
17776 # The linker used to build libraries.
17777 LD=$lt_LD_CXX
17778
17779 # How to create reloadable object files.
17780 reload_flag=$lt_reload_flag_CXX
17781 reload_cmds=$lt_reload_cmds_CXX
17782
17783 # Commands used to build an old-style archive.
17784 old_archive_cmds=$lt_old_archive_cmds_CXX
17785
17786 # A language specific compiler.
17787 CC=$lt_compiler_CXX
17788
17789 # Is the compiler the GNU compiler?
17790 with_gcc=$GCC_CXX
17791
17792 # Compiler flag to turn off builtin functions.
17793 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17794
17795 # How to pass a linker flag through the compiler.
17796 wl=$lt_lt_prog_compiler_wl_CXX
17797
17798 # Additional compiler flags for building library objects.
17799 pic_flag=$lt_lt_prog_compiler_pic_CXX
17800
17801 # Compiler flag to prevent dynamic linking.
17802 link_static_flag=$lt_lt_prog_compiler_static_CXX
17803
17804 # Does compiler simultaneously support -c and -o options?
17805 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17806
17807 # Whether or not to add -lc for building shared libraries.
17808 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17809
17810 # Whether or not to disallow shared libs when runtime libs are static.
17811 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17812
17813 # Compiler flag to allow reflexive dlopens.
17814 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17815
17816 # Compiler flag to generate shared objects directly from archives.
17817 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17818
17819 # Whether the compiler copes with passing no objects directly.
17820 compiler_needs_object=$lt_compiler_needs_object_CXX
17821
17822 # Create an old-style archive from a shared archive.
17823 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17824
17825 # Create a temporary old-style archive to link instead of a shared archive.
17826 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17827
17828 # Commands used to build a shared archive.
17829 archive_cmds=$lt_archive_cmds_CXX
17830 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17831
17832 # Commands used to build a loadable module if different from building
17833 # a shared archive.
17834 module_cmds=$lt_module_cmds_CXX
17835 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17836
17837 # Whether we are building with GNU ld or not.
17838 with_gnu_ld=$lt_with_gnu_ld_CXX
17839
17840 # Flag that allows shared libraries with undefined symbols to be built.
17841 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17842
17843 # Flag that enforces no undefined symbols.
17844 no_undefined_flag=$lt_no_undefined_flag_CXX
17845
17846 # Flag to hardcode \$libdir into a binary during linking.
17847 # This must work even if \$libdir does not exist
17848 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17849
17850 # If ld is used when linking, flag to hardcode \$libdir into a binary
17851 # during linking. This must work even if \$libdir does not exist.
17852 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17853
17854 # Whether we need a single "-rpath" flag with a separated argument.
17855 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17856
17857 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17858 # DIR into the resulting binary.
17859 hardcode_direct=$hardcode_direct_CXX
17860
17861 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17862 # DIR into the resulting binary and the resulting library dependency is
17863 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17864 # library is relocated.
17865 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17866
17867 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17868 # into the resulting binary.
17869 hardcode_minus_L=$hardcode_minus_L_CXX
17870
17871 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17872 # into the resulting binary.
17873 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17874
17875 # Set to "yes" if building a shared library automatically hardcodes DIR
17876 # into the library and all subsequent libraries and executables linked
17877 # against it.
17878 hardcode_automatic=$hardcode_automatic_CXX
17879
17880 # Set to yes if linker adds runtime paths of dependent libraries
17881 # to runtime path list.
17882 inherit_rpath=$inherit_rpath_CXX
17883
17884 # Whether libtool must link a program against all its dependency libraries.
17885 link_all_deplibs=$link_all_deplibs_CXX
17886
17887 # Fix the shell variable \$srcfile for the compiler.
17888 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17889
17890 # Set to "yes" if exported symbols are required.
17891 always_export_symbols=$always_export_symbols_CXX
17892
17893 # The commands to list exported symbols.
17894 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17895
17896 # Symbols that should not be listed in the preloaded symbols.
17897 exclude_expsyms=$lt_exclude_expsyms_CXX
17898
17899 # Symbols that must always be exported.
17900 include_expsyms=$lt_include_expsyms_CXX
17901
17902 # Commands necessary for linking programs (against libraries) with templates.
17903 prelink_cmds=$lt_prelink_cmds_CXX
17904
17905 # Specify filename containing input files.
17906 file_list_spec=$lt_file_list_spec_CXX
17907
17908 # How to hardcode a shared library path into an executable.
17909 hardcode_action=$hardcode_action_CXX
17910
17911 # The directories searched by this compiler when creating a shared library.
17912 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17913
17914 # Dependencies to place before and after the objects being linked to
17915 # create a shared library.
17916 predep_objects=$lt_predep_objects_CXX
17917 postdep_objects=$lt_postdep_objects_CXX
17918 predeps=$lt_predeps_CXX
17919 postdeps=$lt_postdeps_CXX
17920
17921 # The library search path used internally by the compiler when linking
17922 # a shared library.
17923 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17924
17925 # ### END LIBTOOL TAG CONFIG: CXX
17926 _LT_EOF
17927
17928 ;;
17929 "./Makefile":F) cat > vpsed$$ << \_EOF
17930 s!`test -f '$<' || echo '$(srcdir)/'`!!
17931 _EOF
17932 sed -f vpsed$$ $ac_file > tmp$$
17933 mv tmp$$ $ac_file
17934 rm vpsed$$
17935 echo 'MULTISUBDIR =' >> $ac_file
17936 ml_norecursion=yes
17937 . ${multi_basedir}/config-ml.in
17938 { ml_norecursion=; unset ml_norecursion;}
17939 ;;
17940 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17941 s!`test -f '$<' || echo '$(srcdir)/'`!!
17942 _EOF
17943 sed -f vpsed$$ $ac_file > tmp$$
17944 mv tmp$$ $ac_file
17945 rm vpsed$$
17946 echo 'MULTISUBDIR =' >> $ac_file
17947 ml_norecursion=yes
17948 . ${multi_basedir}/config-ml.in
17949 { ml_norecursion=; unset ml_norecursion;}
17950 ;;
17951
17952 esac
17953 done # for ac_tag
17954
17955
17956 as_fn_exit 0
17957 _ACEOF
17958 ac_clean_files=$ac_clean_files_save
17959
17960 test $ac_write_fail = 0 ||
17961 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17962
17963
17964 # configure is writing to config.log, and then calls config.status.
17965 # config.status does its own redirection, appending to config.log.
17966 # Unfortunately, on DOS this fails, as config.log is still kept open
17967 # by configure, so config.status won't be able to write to it; its
17968 # output is simply discarded. So we exec the FD to /dev/null,
17969 # effectively closing config.log, so it can be properly (re)opened and
17970 # appended to by config.status. When coming back to configure, we
17971 # need to make the FD available again.
17972 if test "$no_create" != yes; then
17973 ac_cs_success=:
17974 ac_config_status_args=
17975 test "$silent" = yes &&
17976 ac_config_status_args="$ac_config_status_args --quiet"
17977 exec 5>/dev/null
17978 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17979 exec 5>>config.log
17980 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17981 # would make configure fail if this is the last instruction.
17982 $ac_cs_success || as_fn_exit $?
17983 fi
17984 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17986 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17987 fi
17988