]> git.ipfire.org Git - thirdparty/gcc.git/blob - libcc1/configure
Let GDB reuse GCC's parser.
[thirdparty/gcc.git] / libcc1 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libcc1 version-unused.
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='libcc1'
558 PACKAGE_TARNAME='libcc1'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='libcc1 version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="libcc1.cc"
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 ENABLE_PLUGIN_FALSE
606 ENABLE_PLUGIN_TRUE
607 libsuffix
608 WARN_FLAGS
609 gcc_version
610 visibility
611 CXXCPP
612 am__fastdepCXX_FALSE
613 am__fastdepCXX_TRUE
614 CXXDEPMODE
615 ac_ct_CXX
616 CXXFLAGS
617 CXX
618 OTOOL64
619 OTOOL
620 LIPO
621 NMEDIT
622 DSYMUTIL
623 RANLIB
624 AR
625 OBJDUMP
626 LN_S
627 NM
628 ac_ct_DUMPBIN
629 DUMPBIN
630 LD
631 FGREP
632 SED
633 LIBTOOL
634 MAINT
635 MAINTAINER_MODE_FALSE
636 MAINTAINER_MODE_TRUE
637 am__fastdepCC_FALSE
638 am__fastdepCC_TRUE
639 CCDEPMODE
640 AMDEPBACKSLASH
641 AMDEP_FALSE
642 AMDEP_TRUE
643 am__quote
644 am__include
645 DEPDIR
646 am__untar
647 am__tar
648 AMTAR
649 am__leading_dot
650 SET_MAKE
651 AWK
652 mkdir_p
653 MKDIR_P
654 INSTALL_STRIP_PROGRAM
655 STRIP
656 install_sh
657 MAKEINFO
658 AUTOHEADER
659 AUTOMAKE
660 AUTOCONF
661 ACLOCAL
662 VERSION
663 PACKAGE
664 CYGPATH_W
665 am__isrc
666 INSTALL_DATA
667 INSTALL_SCRIPT
668 INSTALL_PROGRAM
669 target_subdir
670 host_subdir
671 build_subdir
672 build_libsubdir
673 target_noncanonical
674 EGREP
675 GREP
676 CPP
677 OBJEXT
678 EXEEXT
679 ac_ct_CC
680 CPPFLAGS
681 LDFLAGS
682 CFLAGS
683 CC
684 target_os
685 target_vendor
686 target_cpu
687 target
688 host_os
689 host_vendor
690 host_cpu
691 host
692 build_os
693 build_vendor
694 build_cpu
695 build
696 target_alias
697 host_alias
698 build_alias
699 LIBS
700 ECHO_T
701 ECHO_N
702 ECHO_C
703 DEFS
704 mandir
705 localedir
706 libdir
707 psdir
708 pdfdir
709 dvidir
710 htmldir
711 infodir
712 docdir
713 oldincludedir
714 includedir
715 localstatedir
716 sharedstatedir
717 sysconfdir
718 datadir
719 datarootdir
720 libexecdir
721 sbindir
722 bindir
723 program_transform_name
724 prefix
725 exec_prefix
726 PACKAGE_URL
727 PACKAGE_BUGREPORT
728 PACKAGE_STRING
729 PACKAGE_VERSION
730 PACKAGE_TARNAME
731 PACKAGE_NAME
732 PATH_SEPARATOR
733 SHELL'
734 ac_subst_files=''
735 ac_user_opts='
736 enable_option_checking
737 with_build_libsubdir
738 enable_dependency_tracking
739 enable_maintainer_mode
740 enable_static
741 enable_shared
742 with_pic
743 enable_fast_install
744 with_gnu_ld
745 enable_libtool_lock
746 enable_plugin
747 '
748 ac_precious_vars='build_alias
749 host_alias
750 target_alias
751 CC
752 CFLAGS
753 LDFLAGS
754 LIBS
755 CPPFLAGS
756 CPP
757 CXX
758 CXXFLAGS
759 CCC
760 CXXCPP'
761
762
763 # Initialize some variables set by options.
764 ac_init_help=
765 ac_init_version=false
766 ac_unrecognized_opts=
767 ac_unrecognized_sep=
768 # The variables have the same names as the options, with
769 # dashes changed to underlines.
770 cache_file=/dev/null
771 exec_prefix=NONE
772 no_create=
773 no_recursion=
774 prefix=NONE
775 program_prefix=NONE
776 program_suffix=NONE
777 program_transform_name=s,x,x,
778 silent=
779 site=
780 srcdir=
781 verbose=
782 x_includes=NONE
783 x_libraries=NONE
784
785 # Installation directory options.
786 # These are left unexpanded so users can "make install exec_prefix=/foo"
787 # and all the variables that are supposed to be based on exec_prefix
788 # by default will actually change.
789 # Use braces instead of parens because sh, perl, etc. also accept them.
790 # (The list follows the same order as the GNU Coding Standards.)
791 bindir='${exec_prefix}/bin'
792 sbindir='${exec_prefix}/sbin'
793 libexecdir='${exec_prefix}/libexec'
794 datarootdir='${prefix}/share'
795 datadir='${datarootdir}'
796 sysconfdir='${prefix}/etc'
797 sharedstatedir='${prefix}/com'
798 localstatedir='${prefix}/var'
799 includedir='${prefix}/include'
800 oldincludedir='/usr/include'
801 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
802 infodir='${datarootdir}/info'
803 htmldir='${docdir}'
804 dvidir='${docdir}'
805 pdfdir='${docdir}'
806 psdir='${docdir}'
807 libdir='${exec_prefix}/lib'
808 localedir='${datarootdir}/locale'
809 mandir='${datarootdir}/man'
810
811 ac_prev=
812 ac_dashdash=
813 for ac_option
814 do
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\$ac_option
818 ac_prev=
819 continue
820 fi
821
822 case $ac_option in
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 *) ac_optarg=yes ;;
825 esac
826
827 # Accept the important Cygnus configure options, so we can diagnose typos.
828
829 case $ac_dashdash$ac_option in
830 --)
831 ac_dashdash=yes ;;
832
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 ac_prev=bindir ;;
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 bindir=$ac_optarg ;;
837
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
842
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
849
850 --config-cache | -C)
851 cache_file=config.cache ;;
852
853 -datadir | --datadir | --datadi | --datad)
854 ac_prev=datadir ;;
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
857
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
864
865 -disable-* | --disable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
873 *"
874 "enable_$ac_useropt"
875 "*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=no ;;
880
881 -docdir | --docdir | --docdi | --doc | --do)
882 ac_prev=docdir ;;
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 docdir=$ac_optarg ;;
885
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 ac_prev=dvidir ;;
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 dvidir=$ac_optarg ;;
890
891 -enable-* | --enable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900 "enable_$ac_useropt"
901 "*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=\$ac_optarg ;;
906
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
914 exec_prefix=$ac_optarg ;;
915
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
918 with_gas=yes ;;
919
920 -help | --help | --hel | --he | -h)
921 ac_init_help=long ;;
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
926
927 -host | --host | --hos | --ho)
928 ac_prev=host_alias ;;
929 -host=* | --host=* | --hos=* | --ho=*)
930 host_alias=$ac_optarg ;;
931
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 ac_prev=htmldir ;;
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 | --ht=*)
936 htmldir=$ac_optarg ;;
937
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
943 includedir=$ac_optarg ;;
944
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 ac_prev=infodir ;;
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948 infodir=$ac_optarg ;;
949
950 -libdir | --libdir | --libdi | --libd)
951 ac_prev=libdir ;;
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
953 libdir=$ac_optarg ;;
954
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
960 libexecdir=$ac_optarg ;;
961
962 -localedir | --localedir | --localedi | --localed | --locale)
963 ac_prev=localedir ;;
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
966
967 -localstatedir | --localstatedir | --localstatedi | --localstated \
968 | --localstate | --localstat | --localsta | --localst | --locals)
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972 localstatedir=$ac_optarg ;;
973
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 ac_prev=mandir ;;
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977 mandir=$ac_optarg ;;
978
979 -nfp | --nfp | --nf)
980 # Obsolete; use --without-fp.
981 with_fp=no ;;
982
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c | -n)
985 no_create=yes ;;
986
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 no_recursion=yes ;;
990
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998 oldincludedir=$ac_optarg ;;
999
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 ac_prev=prefix ;;
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003 prefix=$ac_optarg ;;
1004
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010 program_prefix=$ac_optarg ;;
1011
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017 program_suffix=$ac_optarg ;;
1018
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
1034 program_transform_name=$ac_optarg ;;
1035
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 ac_prev=pdfdir ;;
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1040
1041 -psdir | --psdir | --psdi | --psd | --ps)
1042 ac_prev=psdir ;;
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 psdir=$ac_optarg ;;
1045
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 silent=yes ;;
1049
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 ac_prev=sbindir ;;
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 | --sbi=* | --sb=*)
1054 sbindir=$ac_optarg ;;
1055
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1059 | --sha | --sh)
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 | --sha=* | --sh=*)
1065 sharedstatedir=$ac_optarg ;;
1066
1067 -site | --site | --sit)
1068 ac_prev=site ;;
1069 -site=* | --site=* | --sit=*)
1070 site=$ac_optarg ;;
1071
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 ac_prev=srcdir ;;
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075 srcdir=$ac_optarg ;;
1076
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082 sysconfdir=$ac_optarg ;;
1083
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1085 ac_prev=target_alias ;;
1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087 target_alias=$ac_optarg ;;
1088
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 verbose=yes ;;
1091
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1094
1095 -with-* | --with-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1103 *"
1104 "with_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval with_$ac_useropt=\$ac_optarg ;;
1110
1111 -without-* | --without-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120 "with_$ac_useropt"
1121 "*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=no ;;
1126
1127 --x)
1128 # Obsolete; use --with-x.
1129 with_x=yes ;;
1130
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136 x_includes=$ac_optarg ;;
1137
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143 x_libraries=$ac_optarg ;;
1144
1145 -*) as_fn_error "unrecognized option: \`$ac_option'
1146 Try \`$0 --help' for more information."
1147 ;;
1148
1149 *=*)
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 case $ac_envvar in #(
1153 '' | [0-9]* | *[!_$as_cr_alnum]* )
1154 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1155 esac
1156 eval $ac_envvar=\$ac_optarg
1157 export $ac_envvar ;;
1158
1159 *)
1160 # FIXME: should be removed in autoconf 3.0.
1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1165 ;;
1166
1167 esac
1168 done
1169
1170 if test -n "$ac_prev"; then
1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172 as_fn_error "missing argument to $ac_option"
1173 fi
1174
1175 if test -n "$ac_unrecognized_opts"; then
1176 case $enable_option_checking in
1177 no) ;;
1178 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1180 esac
1181 fi
1182
1183 # Check all directory arguments for consistency.
1184 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
1188 do
1189 eval ac_val=\$$ac_var
1190 # Remove trailing slashes.
1191 case $ac_val in
1192 */ )
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
1195 esac
1196 # Be sure to have absolute directory names.
1197 case $ac_val in
1198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200 esac
1201 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1202 done
1203
1204 # There might be people who depend on the old broken behavior: `$host'
1205 # used to hold the argument of --host etc.
1206 # FIXME: To remove some day.
1207 build=$build_alias
1208 host=$host_alias
1209 target=$target_alias
1210
1211 # FIXME: To remove some day.
1212 if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
1215 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1216 If a cross compiler is detected then cross compile mode will be used." >&2
1217 elif test "x$build_alias" != "x$host_alias"; then
1218 cross_compiling=yes
1219 fi
1220 fi
1221
1222 ac_tool_prefix=
1223 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224
1225 test "$silent" = yes && exec 6>/dev/null
1226
1227
1228 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229 ac_ls_di=`ls -di .` &&
1230 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231 as_fn_error "working directory cannot be determined"
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 as_fn_error "pwd does not report name of working directory"
1234
1235
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$as_myself" ||
1241 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$as_myself" : 'X\(//\)[^/]' \| \
1243 X"$as_myself" : 'X\(//\)$' \| \
1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245 $as_echo X"$as_myself" |
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 s//\1/
1248 q
1249 }
1250 /^X\(\/\/\)[^/].*/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\).*/{
1259 s//\1/
1260 q
1261 }
1262 s/.*/./; q'`
1263 srcdir=$ac_confdir
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 srcdir=..
1266 fi
1267 else
1268 ac_srcdir_defaulted=no
1269 fi
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1273 fi
1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275 ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1277 pwd)`
1278 # When building in place, set srcdir=.
1279 if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 srcdir=.
1281 fi
1282 # Remove unnecessary trailing slashes from srcdir.
1283 # Double slashes in file names in object file debugging info
1284 # mess up M-x gdb in Emacs.
1285 case $srcdir in
1286 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287 esac
1288 for ac_var in $ac_precious_vars; do
1289 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_${ac_var}_value=\$${ac_var}
1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293 done
1294
1295 #
1296 # Report the --help message.
1297 #
1298 if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
1301 cat <<_ACEOF
1302 \`configure' configures libcc1 version-unused to adapt to many kinds of systems.
1303
1304 Usage: $0 [OPTION]... [VAR=VALUE]...
1305
1306 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307 VAR=VALUE. See below for descriptions of some of the useful variables.
1308
1309 Defaults for the options are specified in brackets.
1310
1311 Configuration:
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321
1322 Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
1324 [$ac_default_prefix]
1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1326 [PREFIX]
1327
1328 By default, \`make install' will install all the files in
1329 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331 for instance \`--prefix=\$HOME'.
1332
1333 For better control, use the options below.
1334
1335 Fine tuning of the installation directories:
1336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
1350 --docdir=DIR documentation root [DATAROOTDIR/doc/libcc1]
1351 --htmldir=DIR html documentation [DOCDIR]
1352 --dvidir=DIR dvi documentation [DOCDIR]
1353 --pdfdir=DIR pdf documentation [DOCDIR]
1354 --psdir=DIR ps documentation [DOCDIR]
1355 _ACEOF
1356
1357 cat <<\_ACEOF
1358
1359 Program names:
1360 --program-prefix=PREFIX prepend PREFIX to installed program names
1361 --program-suffix=SUFFIX append SUFFIX to installed program names
1362 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1363
1364 System types:
1365 --build=BUILD configure for building on BUILD [guessed]
1366 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 --target=TARGET configure for building compilers for TARGET [HOST]
1368 _ACEOF
1369 fi
1370
1371 if test -n "$ac_init_help"; then
1372 case $ac_init_help in
1373 short | recursive ) echo "Configuration of libcc1 version-unused:";;
1374 esac
1375 cat <<\_ACEOF
1376
1377 Optional Features:
1378 --disable-option-checking ignore unrecognized --enable/--with options
1379 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1380 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1381 --disable-dependency-tracking speeds up one-time build
1382 --enable-dependency-tracking do not reject slow dependency extractors
1383 --enable-maintainer-mode enable make rules and dependencies not useful
1384 (and sometimes confusing) to the casual installer
1385 --enable-static[=PKGS] build static libraries [default=no]
1386 --enable-shared[=PKGS] build shared libraries [default=yes]
1387 --enable-fast-install[=PKGS]
1388 optimize for fast installation [default=yes]
1389 --disable-libtool-lock avoid locking (might break parallel builds)
1390 --enable-plugin enable plugin support
1391
1392 Optional Packages:
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --with-build-libsubdir=DIR Directory where to find libraries for build system
1396 --with-pic try to use only PIC/non-PIC objects [default=use
1397 both]
1398 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1399
1400 Some influential environment variables:
1401 CC C compiler command
1402 CFLAGS C compiler flags
1403 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1404 nonstandard directory <lib dir>
1405 LIBS libraries to pass to the linker, e.g. -l<library>
1406 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1407 you have headers in a nonstandard directory <include dir>
1408 CPP C preprocessor
1409 CXX C++ compiler command
1410 CXXFLAGS C++ compiler flags
1411 CXXCPP C++ preprocessor
1412
1413 Use these variables to override the choices made by `configure' or to help
1414 it to find libraries and programs with nonstandard names/locations.
1415
1416 Report bugs to the package provider.
1417 _ACEOF
1418 ac_status=$?
1419 fi
1420
1421 if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
1423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1424 test -d "$ac_dir" ||
1425 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426 continue
1427 ac_builddir=.
1428
1429 case "$ac_dir" in
1430 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 *)
1432 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1433 # A ".." for each directory in $ac_dir_suffix.
1434 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1435 case $ac_top_builddir_sub in
1436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1438 esac ;;
1439 esac
1440 ac_abs_top_builddir=$ac_pwd
1441 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1442 # for backward compatibility:
1443 ac_top_builddir=$ac_top_build_prefix
1444
1445 case $srcdir in
1446 .) # We are building in place.
1447 ac_srcdir=.
1448 ac_top_srcdir=$ac_top_builddir_sub
1449 ac_abs_top_srcdir=$ac_pwd ;;
1450 [\\/]* | ?:[\\/]* ) # Absolute name.
1451 ac_srcdir=$srcdir$ac_dir_suffix;
1452 ac_top_srcdir=$srcdir
1453 ac_abs_top_srcdir=$srcdir ;;
1454 *) # Relative name.
1455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1456 ac_top_srcdir=$ac_top_build_prefix$srcdir
1457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1458 esac
1459 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460
1461 cd "$ac_dir" || { ac_status=$?; continue; }
1462 # Check for guested configure.
1463 if test -f "$ac_srcdir/configure.gnu"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1466 elif test -f "$ac_srcdir/configure"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure" --help=recursive
1469 else
1470 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1471 fi || ac_status=$?
1472 cd "$ac_pwd" || { ac_status=$?; break; }
1473 done
1474 fi
1475
1476 test -n "$ac_init_help" && exit $ac_status
1477 if $ac_init_version; then
1478 cat <<\_ACEOF
1479 libcc1 configure version-unused
1480 generated by GNU Autoconf 2.64
1481
1482 Copyright (C) 2009 Free Software Foundation, Inc.
1483 This configure script is free software; the Free Software Foundation
1484 gives unlimited permission to copy, distribute and modify it.
1485 _ACEOF
1486 exit
1487 fi
1488
1489 ## ------------------------ ##
1490 ## Autoconf initialization. ##
1491 ## ------------------------ ##
1492
1493 # ac_fn_c_try_compile LINENO
1494 # --------------------------
1495 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1496 ac_fn_c_try_compile ()
1497 {
1498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1499 rm -f conftest.$ac_objext
1500 if { { ac_try="$ac_compile"
1501 case "(($ac_try" in
1502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503 *) ac_try_echo=$ac_try;;
1504 esac
1505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506 $as_echo "$ac_try_echo"; } >&5
1507 (eval "$ac_compile") 2>conftest.err
1508 ac_status=$?
1509 if test -s conftest.err; then
1510 grep -v '^ *+' conftest.err >conftest.er1
1511 cat conftest.er1 >&5
1512 mv -f conftest.er1 conftest.err
1513 fi
1514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515 test $ac_status = 0; } && {
1516 test -z "$ac_c_werror_flag" ||
1517 test ! -s conftest.err
1518 } && test -s conftest.$ac_objext; then :
1519 ac_retval=0
1520 else
1521 $as_echo "$as_me: failed program was:" >&5
1522 sed 's/^/| /' conftest.$ac_ext >&5
1523
1524 ac_retval=1
1525 fi
1526 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1527 return $ac_retval
1528
1529 } # ac_fn_c_try_compile
1530
1531 # ac_fn_c_try_cpp LINENO
1532 # ----------------------
1533 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_cpp ()
1535 {
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 if { { ac_try="$ac_cpp conftest.$ac_ext"
1538 case "(($ac_try" in
1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540 *) ac_try_echo=$ac_try;;
1541 esac
1542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 $as_echo "$ac_try_echo"; } >&5
1544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1545 ac_status=$?
1546 if test -s conftest.err; then
1547 grep -v '^ *+' conftest.err >conftest.er1
1548 cat conftest.er1 >&5
1549 mv -f conftest.er1 conftest.err
1550 fi
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; } >/dev/null && {
1553 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1554 test ! -s conftest.err
1555 }; then :
1556 ac_retval=0
1557 else
1558 $as_echo "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.$ac_ext >&5
1560
1561 ac_retval=1
1562 fi
1563 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1564 return $ac_retval
1565
1566 } # ac_fn_c_try_cpp
1567
1568 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1569 # -------------------------------------------------------
1570 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1571 # the include files in INCLUDES and setting the cache variable VAR
1572 # accordingly.
1573 ac_fn_c_check_header_mongrel ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1578 $as_echo_n "checking for $2... " >&6; }
1579 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1580 $as_echo_n "(cached) " >&6
1581 fi
1582 eval ac_res=\$$3
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1584 $as_echo "$ac_res" >&6; }
1585 else
1586 # Is the header compilable?
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1588 $as_echo_n "checking $2 usability... " >&6; }
1589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1590 /* end confdefs.h. */
1591 $4
1592 #include <$2>
1593 _ACEOF
1594 if ac_fn_c_try_compile "$LINENO"; then :
1595 ac_header_compiler=yes
1596 else
1597 ac_header_compiler=no
1598 fi
1599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1601 $as_echo "$ac_header_compiler" >&6; }
1602
1603 # Is the header present?
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1605 $as_echo_n "checking $2 presence... " >&6; }
1606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607 /* end confdefs.h. */
1608 #include <$2>
1609 _ACEOF
1610 if ac_fn_c_try_cpp "$LINENO"; then :
1611 ac_header_preproc=yes
1612 else
1613 ac_header_preproc=no
1614 fi
1615 rm -f conftest.err conftest.$ac_ext
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1617 $as_echo "$ac_header_preproc" >&6; }
1618
1619 # So? What about this header?
1620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1621 yes:no: )
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1623 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1625 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1626 ;;
1627 no:yes:* )
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1629 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1631 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1633 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1635 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1637 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1638 ;;
1639 esac
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641 $as_echo_n "checking for $2... " >&6; }
1642 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1643 $as_echo_n "(cached) " >&6
1644 else
1645 eval "$3=\$ac_header_compiler"
1646 fi
1647 eval ac_res=\$$3
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 $as_echo "$ac_res" >&6; }
1650 fi
1651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1652
1653 } # ac_fn_c_check_header_mongrel
1654
1655 # ac_fn_c_try_run LINENO
1656 # ----------------------
1657 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1658 # that executables *can* be run.
1659 ac_fn_c_try_run ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 if { { ac_try="$ac_link"
1663 case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_link") 2>&5
1670 ac_status=$?
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1673 { { case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_try") 2>&5
1680 ac_status=$?
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; }; }; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: program exited with status $ac_status" >&5
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689 ac_retval=$ac_status
1690 fi
1691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1692 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1693 return $ac_retval
1694
1695 } # ac_fn_c_try_run
1696
1697 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1698 # -------------------------------------------------------
1699 # Tests whether HEADER exists and can be compiled using the include files in
1700 # INCLUDES, setting the cache variable VAR accordingly.
1701 ac_fn_c_check_header_compile ()
1702 {
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1707 $as_echo_n "(cached) " >&6
1708 else
1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h. */
1711 $4
1712 #include <$2>
1713 _ACEOF
1714 if ac_fn_c_try_compile "$LINENO"; then :
1715 eval "$3=yes"
1716 else
1717 eval "$3=no"
1718 fi
1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720 fi
1721 eval ac_res=\$$3
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1724 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725
1726 } # ac_fn_c_check_header_compile
1727
1728 # ac_fn_c_try_link LINENO
1729 # -----------------------
1730 # Try to link conftest.$ac_ext, and return whether this succeeded.
1731 ac_fn_c_try_link ()
1732 {
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 rm -f conftest.$ac_objext conftest$ac_exeext
1735 if { { ac_try="$ac_link"
1736 case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_link") 2>conftest.err
1743 ac_status=$?
1744 if test -s conftest.err; then
1745 grep -v '^ *+' conftest.err >conftest.er1
1746 cat conftest.er1 >&5
1747 mv -f conftest.er1 conftest.err
1748 fi
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } && {
1751 test -z "$ac_c_werror_flag" ||
1752 test ! -s conftest.err
1753 } && test -s conftest$ac_exeext && {
1754 test "$cross_compiling" = yes ||
1755 $as_test_x conftest$ac_exeext
1756 }; then :
1757 ac_retval=0
1758 else
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1761
1762 ac_retval=1
1763 fi
1764 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1765 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1766 # interfere with the next link command; also delete a directory that is
1767 # left behind by Apple's compiler. We do this before executing the actions.
1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770 return $ac_retval
1771
1772 } # ac_fn_c_try_link
1773
1774 # ac_fn_c_check_func LINENO FUNC VAR
1775 # ----------------------------------
1776 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1777 ac_fn_c_check_func ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1783 $as_echo_n "(cached) " >&6
1784 else
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1789 #define $2 innocuous_$2
1790
1791 /* System header to define __stub macros and hopefully few prototypes,
1792 which can conflict with char $2 (); below.
1793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1794 <limits.h> exists even on freestanding compilers. */
1795
1796 #ifdef __STDC__
1797 # include <limits.h>
1798 #else
1799 # include <assert.h>
1800 #endif
1801
1802 #undef $2
1803
1804 /* Override any GCC internal prototype to avoid an error.
1805 Use char because int might match the return type of a GCC
1806 builtin and then its argument prototype would still apply. */
1807 #ifdef __cplusplus
1808 extern "C"
1809 #endif
1810 char $2 ();
1811 /* The GNU C library defines this for functions which it implements
1812 to always fail with ENOSYS. Some functions are actually named
1813 something starting with __ and the normal name is an alias. */
1814 #if defined __stub_$2 || defined __stub___$2
1815 choke me
1816 #endif
1817
1818 int
1819 main ()
1820 {
1821 return $2 ();
1822 ;
1823 return 0;
1824 }
1825 _ACEOF
1826 if ac_fn_c_try_link "$LINENO"; then :
1827 eval "$3=yes"
1828 else
1829 eval "$3=no"
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext \
1832 conftest$ac_exeext conftest.$ac_ext
1833 fi
1834 eval ac_res=\$$3
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838
1839 } # ac_fn_c_check_func
1840
1841 # ac_fn_cxx_try_compile LINENO
1842 # ----------------------------
1843 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_cxx_try_compile ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext
1848 if { { ac_try="$ac_compile"
1849 case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_compile") 2>conftest.err
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1861 fi
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_cxx_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest.$ac_objext; then :
1867 ac_retval=0
1868 else
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 ac_retval=1
1873 fi
1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875 return $ac_retval
1876
1877 } # ac_fn_cxx_try_compile
1878
1879 # ac_fn_cxx_try_cpp LINENO
1880 # ------------------------
1881 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1882 ac_fn_cxx_try_cpp ()
1883 {
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 if { { ac_try="$ac_cpp conftest.$ac_ext"
1886 case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1893 ac_status=$?
1894 if test -s conftest.err; then
1895 grep -v '^ *+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1898 fi
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } >/dev/null && {
1901 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1902 test ! -s conftest.err
1903 }; then :
1904 ac_retval=0
1905 else
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909 ac_retval=1
1910 fi
1911 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1912 return $ac_retval
1913
1914 } # ac_fn_cxx_try_cpp
1915
1916 # ac_fn_cxx_try_link LINENO
1917 # -------------------------
1918 # Try to link conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_cxx_try_link ()
1920 {
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 rm -f conftest.$ac_objext conftest$ac_exeext
1923 if { { ac_try="$ac_link"
1924 case "(($ac_try" in
1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926 *) ac_try_echo=$ac_try;;
1927 esac
1928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929 $as_echo "$ac_try_echo"; } >&5
1930 (eval "$ac_link") 2>conftest.err
1931 ac_status=$?
1932 if test -s conftest.err; then
1933 grep -v '^ *+' conftest.err >conftest.er1
1934 cat conftest.er1 >&5
1935 mv -f conftest.er1 conftest.err
1936 fi
1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; } && {
1939 test -z "$ac_cxx_werror_flag" ||
1940 test ! -s conftest.err
1941 } && test -s conftest$ac_exeext && {
1942 test "$cross_compiling" = yes ||
1943 $as_test_x conftest$ac_exeext
1944 }; then :
1945 ac_retval=0
1946 else
1947 $as_echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1949
1950 ac_retval=1
1951 fi
1952 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1953 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1954 # interfere with the next link command; also delete a directory that is
1955 # left behind by Apple's compiler. We do this before executing the actions.
1956 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958 return $ac_retval
1959
1960 } # ac_fn_cxx_try_link
1961
1962 # ac_fn_c_check_decl LINENO SYMBOL VAR
1963 # ------------------------------------
1964 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1965 ac_fn_c_check_decl ()
1966 {
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 as_decl_name=`echo $2|sed 's/ *(.*//'`
1969 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1971 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1972 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1973 $as_echo_n "(cached) " >&6
1974 else
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1977 $4
1978 int
1979 main ()
1980 {
1981 #ifndef $as_decl_name
1982 #ifdef __cplusplus
1983 (void) $as_decl_use;
1984 #else
1985 (void) $as_decl_name;
1986 #endif
1987 #endif
1988
1989 ;
1990 return 0;
1991 }
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 eval "$3=yes"
1995 else
1996 eval "$3=no"
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 fi
2000 eval ac_res=\$$3
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004
2005 } # ac_fn_c_check_decl
2006 cat >config.log <<_ACEOF
2007 This file contains any messages produced by compilers while
2008 running configure, to aid debugging if configure makes a mistake.
2009
2010 It was created by libcc1 $as_me version-unused, which was
2011 generated by GNU Autoconf 2.64. Invocation command line was
2012
2013 $ $0 $@
2014
2015 _ACEOF
2016 exec 5>>config.log
2017 {
2018 cat <<_ASUNAME
2019 ## --------- ##
2020 ## Platform. ##
2021 ## --------- ##
2022
2023 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2024 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2025 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2026 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2027 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2028
2029 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2030 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2031
2032 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2033 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2034 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2035 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2036 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2037 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2038 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2039
2040 _ASUNAME
2041
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2044 do
2045 IFS=$as_save_IFS
2046 test -z "$as_dir" && as_dir=.
2047 $as_echo "PATH: $as_dir"
2048 done
2049 IFS=$as_save_IFS
2050
2051 } >&5
2052
2053 cat >&5 <<_ACEOF
2054
2055
2056 ## ----------- ##
2057 ## Core tests. ##
2058 ## ----------- ##
2059
2060 _ACEOF
2061
2062
2063 # Keep a trace of the command line.
2064 # Strip out --no-create and --no-recursion so they do not pile up.
2065 # Strip out --silent because we don't want to record it for future runs.
2066 # Also quote any args containing shell meta-characters.
2067 # Make two passes to allow for proper duplicate-argument suppression.
2068 ac_configure_args=
2069 ac_configure_args0=
2070 ac_configure_args1=
2071 ac_must_keep_next=false
2072 for ac_pass in 1 2
2073 do
2074 for ac_arg
2075 do
2076 case $ac_arg in
2077 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2079 | -silent | --silent | --silen | --sile | --sil)
2080 continue ;;
2081 *\'*)
2082 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2083 esac
2084 case $ac_pass in
2085 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2086 2)
2087 as_fn_append ac_configure_args1 " '$ac_arg'"
2088 if test $ac_must_keep_next = true; then
2089 ac_must_keep_next=false # Got value, back to normal.
2090 else
2091 case $ac_arg in
2092 *=* | --config-cache | -C | -disable-* | --disable-* \
2093 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2094 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2095 | -with-* | --with-* | -without-* | --without-* | --x)
2096 case "$ac_configure_args0 " in
2097 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2098 esac
2099 ;;
2100 -* ) ac_must_keep_next=true ;;
2101 esac
2102 fi
2103 as_fn_append ac_configure_args " '$ac_arg'"
2104 ;;
2105 esac
2106 done
2107 done
2108 { ac_configure_args0=; unset ac_configure_args0;}
2109 { ac_configure_args1=; unset ac_configure_args1;}
2110
2111 # When interrupted or exit'd, cleanup temporary files, and complete
2112 # config.log. We remove comments because anyway the quotes in there
2113 # would cause problems or look ugly.
2114 # WARNING: Use '\'' to represent an apostrophe within the trap.
2115 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2116 trap 'exit_status=$?
2117 # Save into config.log some information that might help in debugging.
2118 {
2119 echo
2120
2121 cat <<\_ASBOX
2122 ## ---------------- ##
2123 ## Cache variables. ##
2124 ## ---------------- ##
2125 _ASBOX
2126 echo
2127 # The following way of writing the cache mishandles newlines in values,
2128 (
2129 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2130 eval ac_val=\$$ac_var
2131 case $ac_val in #(
2132 *${as_nl}*)
2133 case $ac_var in #(
2134 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2135 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2136 esac
2137 case $ac_var in #(
2138 _ | IFS | as_nl) ;; #(
2139 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2140 *) { eval $ac_var=; unset $ac_var;} ;;
2141 esac ;;
2142 esac
2143 done
2144 (set) 2>&1 |
2145 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2146 *${as_nl}ac_space=\ *)
2147 sed -n \
2148 "s/'\''/'\''\\\\'\'''\''/g;
2149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2150 ;; #(
2151 *)
2152 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2153 ;;
2154 esac |
2155 sort
2156 )
2157 echo
2158
2159 cat <<\_ASBOX
2160 ## ----------------- ##
2161 ## Output variables. ##
2162 ## ----------------- ##
2163 _ASBOX
2164 echo
2165 for ac_var in $ac_subst_vars
2166 do
2167 eval ac_val=\$$ac_var
2168 case $ac_val in
2169 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2170 esac
2171 $as_echo "$ac_var='\''$ac_val'\''"
2172 done | sort
2173 echo
2174
2175 if test -n "$ac_subst_files"; then
2176 cat <<\_ASBOX
2177 ## ------------------- ##
2178 ## File substitutions. ##
2179 ## ------------------- ##
2180 _ASBOX
2181 echo
2182 for ac_var in $ac_subst_files
2183 do
2184 eval ac_val=\$$ac_var
2185 case $ac_val in
2186 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2187 esac
2188 $as_echo "$ac_var='\''$ac_val'\''"
2189 done | sort
2190 echo
2191 fi
2192
2193 if test -s confdefs.h; then
2194 cat <<\_ASBOX
2195 ## ----------- ##
2196 ## confdefs.h. ##
2197 ## ----------- ##
2198 _ASBOX
2199 echo
2200 cat confdefs.h
2201 echo
2202 fi
2203 test "$ac_signal" != 0 &&
2204 $as_echo "$as_me: caught signal $ac_signal"
2205 $as_echo "$as_me: exit $exit_status"
2206 } >&5
2207 rm -f core *.core core.conftest.* &&
2208 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2209 exit $exit_status
2210 ' 0
2211 for ac_signal in 1 2 13 15; do
2212 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2213 done
2214 ac_signal=0
2215
2216 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2217 rm -f -r conftest* confdefs.h
2218
2219 $as_echo "/* confdefs.h */" > confdefs.h
2220
2221 # Predefined preprocessor variables.
2222
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_NAME "$PACKAGE_NAME"
2225 _ACEOF
2226
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2229 _ACEOF
2230
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2233 _ACEOF
2234
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_STRING "$PACKAGE_STRING"
2237 _ACEOF
2238
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2241 _ACEOF
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_URL "$PACKAGE_URL"
2245 _ACEOF
2246
2247
2248 # Let the site file select an alternate cache file if it wants to.
2249 # Prefer an explicitly selected file to automatically selected ones.
2250 ac_site_file1=NONE
2251 ac_site_file2=NONE
2252 if test -n "$CONFIG_SITE"; then
2253 ac_site_file1=$CONFIG_SITE
2254 elif test "x$prefix" != xNONE; then
2255 ac_site_file1=$prefix/share/config.site
2256 ac_site_file2=$prefix/etc/config.site
2257 else
2258 ac_site_file1=$ac_default_prefix/share/config.site
2259 ac_site_file2=$ac_default_prefix/etc/config.site
2260 fi
2261 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2262 do
2263 test "x$ac_site_file" = xNONE && continue
2264 if test -r "$ac_site_file"; then
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2266 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2267 sed 's/^/| /' "$ac_site_file" >&5
2268 . "$ac_site_file"
2269 fi
2270 done
2271
2272 if test -r "$cache_file"; then
2273 # Some versions of bash will fail to source /dev/null (special
2274 # files actually), so we avoid doing that.
2275 if test -f "$cache_file"; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2277 $as_echo "$as_me: loading cache $cache_file" >&6;}
2278 case $cache_file in
2279 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2280 *) . "./$cache_file";;
2281 esac
2282 fi
2283 else
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2285 $as_echo "$as_me: creating cache $cache_file" >&6;}
2286 >$cache_file
2287 fi
2288
2289 # Check that the precious variables saved in the cache have kept the same
2290 # value.
2291 ac_cache_corrupted=false
2292 for ac_var in $ac_precious_vars; do
2293 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2294 eval ac_new_set=\$ac_env_${ac_var}_set
2295 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2296 eval ac_new_val=\$ac_env_${ac_var}_value
2297 case $ac_old_set,$ac_new_set in
2298 set,)
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2300 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2301 ac_cache_corrupted=: ;;
2302 ,set)
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2304 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2305 ac_cache_corrupted=: ;;
2306 ,);;
2307 *)
2308 if test "x$ac_old_val" != "x$ac_new_val"; then
2309 # differences in whitespace do not lead to failure.
2310 ac_old_val_w=`echo x $ac_old_val`
2311 ac_new_val_w=`echo x $ac_new_val`
2312 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2314 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2315 ac_cache_corrupted=:
2316 else
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2318 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2319 eval $ac_var=\$ac_old_val
2320 fi
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2322 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2324 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2325 fi;;
2326 esac
2327 # Pass precious variables to config.status.
2328 if test "$ac_new_set" = set; then
2329 case $ac_new_val in
2330 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2331 *) ac_arg=$ac_var=$ac_new_val ;;
2332 esac
2333 case " $ac_configure_args " in
2334 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2335 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2336 esac
2337 fi
2338 done
2339 if $ac_cache_corrupted; then
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2343 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2344 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2345 fi
2346 ## -------------------- ##
2347 ## Main body of script. ##
2348 ## -------------------- ##
2349
2350 ac_ext=c
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355
2356
2357
2358
2359
2360
2361 ac_config_headers="$ac_config_headers cc1plugin-config.h"
2362
2363
2364 ac_aux_dir=
2365 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2366 for ac_t in install-sh install.sh shtool; do
2367 if test -f "$ac_dir/$ac_t"; then
2368 ac_aux_dir=$ac_dir
2369 ac_install_sh="$ac_aux_dir/$ac_t -c"
2370 break 2
2371 fi
2372 done
2373 done
2374 if test -z "$ac_aux_dir"; then
2375 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2376 fi
2377
2378 # These three variables are undocumented and unsupported,
2379 # and are intended to be withdrawn in a future Autoconf release.
2380 # They can cause serious problems if a builder's source tree is in a directory
2381 # whose full name contains unusual characters.
2382 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2383 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2384 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2385
2386
2387 # Make sure we can run config.sub.
2388 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2389 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2390
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2392 $as_echo_n "checking build system type... " >&6; }
2393 if test "${ac_cv_build+set}" = set; then :
2394 $as_echo_n "(cached) " >&6
2395 else
2396 ac_build_alias=$build_alias
2397 test "x$ac_build_alias" = x &&
2398 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2399 test "x$ac_build_alias" = x &&
2400 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2401 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2402 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2403
2404 fi
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2406 $as_echo "$ac_cv_build" >&6; }
2407 case $ac_cv_build in
2408 *-*-*) ;;
2409 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2410 esac
2411 build=$ac_cv_build
2412 ac_save_IFS=$IFS; IFS='-'
2413 set x $ac_cv_build
2414 shift
2415 build_cpu=$1
2416 build_vendor=$2
2417 shift; shift
2418 # Remember, the first character of IFS is used to create $*,
2419 # except with old shells:
2420 build_os=$*
2421 IFS=$ac_save_IFS
2422 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2423
2424
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2426 $as_echo_n "checking host system type... " >&6; }
2427 if test "${ac_cv_host+set}" = set; then :
2428 $as_echo_n "(cached) " >&6
2429 else
2430 if test "x$host_alias" = x; then
2431 ac_cv_host=$ac_cv_build
2432 else
2433 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2434 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2435 fi
2436
2437 fi
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2439 $as_echo "$ac_cv_host" >&6; }
2440 case $ac_cv_host in
2441 *-*-*) ;;
2442 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2443 esac
2444 host=$ac_cv_host
2445 ac_save_IFS=$IFS; IFS='-'
2446 set x $ac_cv_host
2447 shift
2448 host_cpu=$1
2449 host_vendor=$2
2450 shift; shift
2451 # Remember, the first character of IFS is used to create $*,
2452 # except with old shells:
2453 host_os=$*
2454 IFS=$ac_save_IFS
2455 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2456
2457
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2459 $as_echo_n "checking target system type... " >&6; }
2460 if test "${ac_cv_target+set}" = set; then :
2461 $as_echo_n "(cached) " >&6
2462 else
2463 if test "x$target_alias" = x; then
2464 ac_cv_target=$ac_cv_host
2465 else
2466 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2467 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2468 fi
2469
2470 fi
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2472 $as_echo "$ac_cv_target" >&6; }
2473 case $ac_cv_target in
2474 *-*-*) ;;
2475 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2476 esac
2477 target=$ac_cv_target
2478 ac_save_IFS=$IFS; IFS='-'
2479 set x $ac_cv_target
2480 shift
2481 target_cpu=$1
2482 target_vendor=$2
2483 shift; shift
2484 # Remember, the first character of IFS is used to create $*,
2485 # except with old shells:
2486 target_os=$*
2487 IFS=$ac_save_IFS
2488 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2489
2490
2491 # The aliases save the names the user supplied, while $host etc.
2492 # will get canonicalized.
2493 test -n "$target_alias" &&
2494 test "$program_prefix$program_suffix$program_transform_name" = \
2495 NONENONEs,x,x, &&
2496 program_prefix=${target_alias}-
2497
2498 ac_ext=c
2499 ac_cpp='$CPP $CPPFLAGS'
2500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2503 if test -n "$ac_tool_prefix"; then
2504 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2505 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2507 $as_echo_n "checking for $ac_word... " >&6; }
2508 if test "${ac_cv_prog_CC+set}" = set; then :
2509 $as_echo_n "(cached) " >&6
2510 else
2511 if test -n "$CC"; then
2512 ac_cv_prog_CC="$CC" # Let the user override the test.
2513 else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2516 do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2521 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 break 2
2524 fi
2525 done
2526 done
2527 IFS=$as_save_IFS
2528
2529 fi
2530 fi
2531 CC=$ac_cv_prog_CC
2532 if test -n "$CC"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2534 $as_echo "$CC" >&6; }
2535 else
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537 $as_echo "no" >&6; }
2538 fi
2539
2540
2541 fi
2542 if test -z "$ac_cv_prog_CC"; then
2543 ac_ct_CC=$CC
2544 # Extract the first word of "gcc", so it can be a program name with args.
2545 set dummy gcc; ac_word=$2
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547 $as_echo_n "checking for $ac_word... " >&6; }
2548 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2549 $as_echo_n "(cached) " >&6
2550 else
2551 if test -n "$ac_ct_CC"; then
2552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2553 else
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 for as_dir in $PATH
2556 do
2557 IFS=$as_save_IFS
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2561 ac_cv_prog_ac_ct_CC="gcc"
2562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 break 2
2564 fi
2565 done
2566 done
2567 IFS=$as_save_IFS
2568
2569 fi
2570 fi
2571 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2572 if test -n "$ac_ct_CC"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2574 $as_echo "$ac_ct_CC" >&6; }
2575 else
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2577 $as_echo "no" >&6; }
2578 fi
2579
2580 if test "x$ac_ct_CC" = x; then
2581 CC=""
2582 else
2583 case $cross_compiling:$ac_tool_warned in
2584 yes:)
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2587 ac_tool_warned=yes ;;
2588 esac
2589 CC=$ac_ct_CC
2590 fi
2591 else
2592 CC="$ac_cv_prog_CC"
2593 fi
2594
2595 if test -z "$CC"; then
2596 if test -n "$ac_tool_prefix"; then
2597 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2598 set dummy ${ac_tool_prefix}cc; ac_word=$2
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600 $as_echo_n "checking for $ac_word... " >&6; }
2601 if test "${ac_cv_prog_CC+set}" = set; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 if test -n "$CC"; then
2605 ac_cv_prog_CC="$CC" # Let the user override the test.
2606 else
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2609 do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614 ac_cv_prog_CC="${ac_tool_prefix}cc"
2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 break 2
2617 fi
2618 done
2619 done
2620 IFS=$as_save_IFS
2621
2622 fi
2623 fi
2624 CC=$ac_cv_prog_CC
2625 if test -n "$CC"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2627 $as_echo "$CC" >&6; }
2628 else
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630 $as_echo "no" >&6; }
2631 fi
2632
2633
2634 fi
2635 fi
2636 if test -z "$CC"; then
2637 # Extract the first word of "cc", so it can be a program name with args.
2638 set dummy cc; ac_word=$2
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2640 $as_echo_n "checking for $ac_word... " >&6; }
2641 if test "${ac_cv_prog_CC+set}" = set; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 if test -n "$CC"; then
2645 ac_cv_prog_CC="$CC" # Let the user override the test.
2646 else
2647 ac_prog_rejected=no
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2656 ac_prog_rejected=yes
2657 continue
2658 fi
2659 ac_cv_prog_CC="cc"
2660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 break 2
2662 fi
2663 done
2664 done
2665 IFS=$as_save_IFS
2666
2667 if test $ac_prog_rejected = yes; then
2668 # We found a bogon in the path, so make sure we never use it.
2669 set dummy $ac_cv_prog_CC
2670 shift
2671 if test $# != 0; then
2672 # We chose a different compiler from the bogus one.
2673 # However, it has the same basename, so the bogon will be chosen
2674 # first if we set CC to just the basename; use the full file name.
2675 shift
2676 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2677 fi
2678 fi
2679 fi
2680 fi
2681 CC=$ac_cv_prog_CC
2682 if test -n "$CC"; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2684 $as_echo "$CC" >&6; }
2685 else
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687 $as_echo "no" >&6; }
2688 fi
2689
2690
2691 fi
2692 if test -z "$CC"; then
2693 if test -n "$ac_tool_prefix"; then
2694 for ac_prog in cl.exe
2695 do
2696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2697 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if test "${ac_cv_prog_CC+set}" = set; then :
2701 $as_echo_n "(cached) " >&6
2702 else
2703 if test -n "$CC"; then
2704 ac_cv_prog_CC="$CC" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 break 2
2716 fi
2717 done
2718 done
2719 IFS=$as_save_IFS
2720
2721 fi
2722 fi
2723 CC=$ac_cv_prog_CC
2724 if test -n "$CC"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2726 $as_echo "$CC" >&6; }
2727 else
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2730 fi
2731
2732
2733 test -n "$CC" && break
2734 done
2735 fi
2736 if test -z "$CC"; then
2737 ac_ct_CC=$CC
2738 for ac_prog in cl.exe
2739 do
2740 # Extract the first word of "$ac_prog", so it can be a program name with args.
2741 set dummy $ac_prog; ac_word=$2
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 if test -n "$ac_ct_CC"; then
2748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753 IFS=$as_save_IFS
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757 ac_cv_prog_ac_ct_CC="$ac_prog"
2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 break 2
2760 fi
2761 done
2762 done
2763 IFS=$as_save_IFS
2764
2765 fi
2766 fi
2767 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2768 if test -n "$ac_ct_CC"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2770 $as_echo "$ac_ct_CC" >&6; }
2771 else
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773 $as_echo "no" >&6; }
2774 fi
2775
2776
2777 test -n "$ac_ct_CC" && break
2778 done
2779
2780 if test "x$ac_ct_CC" = x; then
2781 CC=""
2782 else
2783 case $cross_compiling:$ac_tool_warned in
2784 yes:)
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2787 ac_tool_warned=yes ;;
2788 esac
2789 CC=$ac_ct_CC
2790 fi
2791 fi
2792
2793 fi
2794
2795
2796 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2798 as_fn_error "no acceptable C compiler found in \$PATH
2799 See \`config.log' for more details." "$LINENO" 5; }
2800
2801 # Provide some information about the compiler.
2802 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2803 set X $ac_compile
2804 ac_compiler=$2
2805 for ac_option in --version -v -V -qversion; do
2806 { { ac_try="$ac_compiler $ac_option >&5"
2807 case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2810 esac
2811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2812 $as_echo "$ac_try_echo"; } >&5
2813 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2814 ac_status=$?
2815 if test -s conftest.err; then
2816 sed '10a\
2817 ... rest of stderr output deleted ...
2818 10q' conftest.err >conftest.er1
2819 cat conftest.er1 >&5
2820 rm -f conftest.er1 conftest.err
2821 fi
2822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2823 test $ac_status = 0; }
2824 done
2825
2826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2827 /* end confdefs.h. */
2828
2829 int
2830 main ()
2831 {
2832
2833 ;
2834 return 0;
2835 }
2836 _ACEOF
2837 ac_clean_files_save=$ac_clean_files
2838 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2839 # Try to create an executable without -o first, disregard a.out.
2840 # It will help us diagnose broken compilers, and finding out an intuition
2841 # of exeext.
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2843 $as_echo_n "checking for C compiler default output file name... " >&6; }
2844 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2845
2846 # The possible output files:
2847 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2848
2849 ac_rmfiles=
2850 for ac_file in $ac_files
2851 do
2852 case $ac_file in
2853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2854 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2855 esac
2856 done
2857 rm -f $ac_rmfiles
2858
2859 if { { ac_try="$ac_link_default"
2860 case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863 esac
2864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2865 $as_echo "$ac_try_echo"; } >&5
2866 (eval "$ac_link_default") 2>&5
2867 ac_status=$?
2868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2869 test $ac_status = 0; }; then :
2870 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2871 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2872 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2873 # so that the user can short-circuit this test for compilers unknown to
2874 # Autoconf.
2875 for ac_file in $ac_files ''
2876 do
2877 test -f "$ac_file" || continue
2878 case $ac_file in
2879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2880 ;;
2881 [ab].out )
2882 # We found the default executable, but exeext='' is most
2883 # certainly right.
2884 break;;
2885 *.* )
2886 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2887 then :; else
2888 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2889 fi
2890 # We set ac_cv_exeext here because the later test for it is not
2891 # safe: cross compilers may not add the suffix if given an `-o'
2892 # argument, so we may need to know it at that point already.
2893 # Even if this section looks crufty: it has the advantage of
2894 # actually working.
2895 break;;
2896 * )
2897 break;;
2898 esac
2899 done
2900 test "$ac_cv_exeext" = no && ac_cv_exeext=
2901
2902 else
2903 ac_file=''
2904 fi
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2906 $as_echo "$ac_file" >&6; }
2907 if test -z "$ac_file"; then :
2908 $as_echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2910
2911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2913 { as_fn_set_status 77
2914 as_fn_error "C compiler cannot create executables
2915 See \`config.log' for more details." "$LINENO" 5; }; }
2916 fi
2917 ac_exeext=$ac_cv_exeext
2918
2919 # Check that the compiler produces executables we can run. If not, either
2920 # the compiler is broken, or we cross compile.
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2922 $as_echo_n "checking whether the C compiler works... " >&6; }
2923 # If not cross compiling, check that we can run a simple program.
2924 if test "$cross_compiling" != yes; then
2925 if { ac_try='./$ac_file'
2926 { { case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929 esac
2930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2931 $as_echo "$ac_try_echo"; } >&5
2932 (eval "$ac_try") 2>&5
2933 ac_status=$?
2934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; }; }; then
2936 cross_compiling=no
2937 else
2938 if test "$cross_compiling" = maybe; then
2939 cross_compiling=yes
2940 else
2941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2943 as_fn_error "cannot run C compiled programs.
2944 If you meant to cross compile, use \`--host'.
2945 See \`config.log' for more details." "$LINENO" 5; }
2946 fi
2947 fi
2948 fi
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2950 $as_echo "yes" >&6; }
2951
2952 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2953 ac_clean_files=$ac_clean_files_save
2954 # Check that the compiler produces executables we can run. If not, either
2955 # the compiler is broken, or we cross compile.
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2957 $as_echo_n "checking whether we are cross compiling... " >&6; }
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2959 $as_echo "$cross_compiling" >&6; }
2960
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2962 $as_echo_n "checking for suffix of executables... " >&6; }
2963 if { { ac_try="$ac_link"
2964 case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967 esac
2968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2969 $as_echo "$ac_try_echo"; } >&5
2970 (eval "$ac_link") 2>&5
2971 ac_status=$?
2972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973 test $ac_status = 0; }; then :
2974 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2975 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2976 # work properly (i.e., refer to `conftest.exe'), while it won't with
2977 # `rm'.
2978 for ac_file in conftest.exe conftest conftest.*; do
2979 test -f "$ac_file" || continue
2980 case $ac_file in
2981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2982 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2983 break;;
2984 * ) break;;
2985 esac
2986 done
2987 else
2988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 as_fn_error "cannot compute suffix of executables: cannot compile and link
2991 See \`config.log' for more details." "$LINENO" 5; }
2992 fi
2993 rm -f conftest$ac_cv_exeext
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2995 $as_echo "$ac_cv_exeext" >&6; }
2996
2997 rm -f conftest.$ac_ext
2998 EXEEXT=$ac_cv_exeext
2999 ac_exeext=$EXEEXT
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3001 $as_echo_n "checking for suffix of object files... " >&6; }
3002 if test "${ac_cv_objext+set}" = set; then :
3003 $as_echo_n "(cached) " >&6
3004 else
3005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3006 /* end confdefs.h. */
3007
3008 int
3009 main ()
3010 {
3011
3012 ;
3013 return 0;
3014 }
3015 _ACEOF
3016 rm -f conftest.o conftest.obj
3017 if { { ac_try="$ac_compile"
3018 case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021 esac
3022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_compile") 2>&5
3025 ac_status=$?
3026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027 test $ac_status = 0; }; then :
3028 for ac_file in conftest.o conftest.obj conftest.*; do
3029 test -f "$ac_file" || continue;
3030 case $ac_file in
3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3032 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3033 break;;
3034 esac
3035 done
3036 else
3037 $as_echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042 as_fn_error "cannot compute suffix of object files: cannot compile
3043 See \`config.log' for more details." "$LINENO" 5; }
3044 fi
3045 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3046 fi
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3048 $as_echo "$ac_cv_objext" >&6; }
3049 OBJEXT=$ac_cv_objext
3050 ac_objext=$OBJEXT
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3052 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3053 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057 /* end confdefs.h. */
3058
3059 int
3060 main ()
3061 {
3062 #ifndef __GNUC__
3063 choke me
3064 #endif
3065
3066 ;
3067 return 0;
3068 }
3069 _ACEOF
3070 if ac_fn_c_try_compile "$LINENO"; then :
3071 ac_compiler_gnu=yes
3072 else
3073 ac_compiler_gnu=no
3074 fi
3075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3076 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3077
3078 fi
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3080 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3081 if test $ac_compiler_gnu = yes; then
3082 GCC=yes
3083 else
3084 GCC=
3085 fi
3086 ac_test_CFLAGS=${CFLAGS+set}
3087 ac_save_CFLAGS=$CFLAGS
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3089 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3090 if test "${ac_cv_prog_cc_g+set}" = set; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 ac_save_c_werror_flag=$ac_c_werror_flag
3094 ac_c_werror_flag=yes
3095 ac_cv_prog_cc_g=no
3096 CFLAGS="-g"
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h. */
3099
3100 int
3101 main ()
3102 {
3103
3104 ;
3105 return 0;
3106 }
3107 _ACEOF
3108 if ac_fn_c_try_compile "$LINENO"; then :
3109 ac_cv_prog_cc_g=yes
3110 else
3111 CFLAGS=""
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h. */
3114
3115 int
3116 main ()
3117 {
3118
3119 ;
3120 return 0;
3121 }
3122 _ACEOF
3123 if ac_fn_c_try_compile "$LINENO"; then :
3124
3125 else
3126 ac_c_werror_flag=$ac_save_c_werror_flag
3127 CFLAGS="-g"
3128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129 /* end confdefs.h. */
3130
3131 int
3132 main ()
3133 {
3134
3135 ;
3136 return 0;
3137 }
3138 _ACEOF
3139 if ac_fn_c_try_compile "$LINENO"; then :
3140 ac_cv_prog_cc_g=yes
3141 fi
3142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143 fi
3144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3145 fi
3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147 ac_c_werror_flag=$ac_save_c_werror_flag
3148 fi
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3150 $as_echo "$ac_cv_prog_cc_g" >&6; }
3151 if test "$ac_test_CFLAGS" = set; then
3152 CFLAGS=$ac_save_CFLAGS
3153 elif test $ac_cv_prog_cc_g = yes; then
3154 if test "$GCC" = yes; then
3155 CFLAGS="-g -O2"
3156 else
3157 CFLAGS="-g"
3158 fi
3159 else
3160 if test "$GCC" = yes; then
3161 CFLAGS="-O2"
3162 else
3163 CFLAGS=
3164 fi
3165 fi
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3167 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3168 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 ac_cv_prog_cc_c89=no
3172 ac_save_CC=$CC
3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h. */
3175 #include <stdarg.h>
3176 #include <stdio.h>
3177 #include <sys/types.h>
3178 #include <sys/stat.h>
3179 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3180 struct buf { int x; };
3181 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3182 static char *e (p, i)
3183 char **p;
3184 int i;
3185 {
3186 return p[i];
3187 }
3188 static char *f (char * (*g) (char **, int), char **p, ...)
3189 {
3190 char *s;
3191 va_list v;
3192 va_start (v,p);
3193 s = g (p, va_arg (v,int));
3194 va_end (v);
3195 return s;
3196 }
3197
3198 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3199 function prototypes and stuff, but not '\xHH' hex character constants.
3200 These don't provoke an error unfortunately, instead are silently treated
3201 as 'x'. The following induces an error, until -std is added to get
3202 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3203 array size at least. It's necessary to write '\x00'==0 to get something
3204 that's true only with -std. */
3205 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3206
3207 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3208 inside strings and character constants. */
3209 #define FOO(x) 'x'
3210 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3211
3212 int test (int i, double x);
3213 struct s1 {int (*f) (int a);};
3214 struct s2 {int (*f) (double a);};
3215 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3216 int argc;
3217 char **argv;
3218 int
3219 main ()
3220 {
3221 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3222 ;
3223 return 0;
3224 }
3225 _ACEOF
3226 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3227 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3228 do
3229 CC="$ac_save_CC $ac_arg"
3230 if ac_fn_c_try_compile "$LINENO"; then :
3231 ac_cv_prog_cc_c89=$ac_arg
3232 fi
3233 rm -f core conftest.err conftest.$ac_objext
3234 test "x$ac_cv_prog_cc_c89" != "xno" && break
3235 done
3236 rm -f conftest.$ac_ext
3237 CC=$ac_save_CC
3238
3239 fi
3240 # AC_CACHE_VAL
3241 case "x$ac_cv_prog_cc_c89" in
3242 x)
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3244 $as_echo "none needed" >&6; } ;;
3245 xno)
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3247 $as_echo "unsupported" >&6; } ;;
3248 *)
3249 CC="$CC $ac_cv_prog_cc_c89"
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3251 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3252 esac
3253 if test "x$ac_cv_prog_cc_c89" != xno; then :
3254
3255 fi
3256
3257 ac_ext=c
3258 ac_cpp='$CPP $CPPFLAGS'
3259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262
3263
3264 ac_ext=c
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3270 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3271 # On Suns, sometimes $CPP names a directory.
3272 if test -n "$CPP" && test -d "$CPP"; then
3273 CPP=
3274 fi
3275 if test -z "$CPP"; then
3276 if test "${ac_cv_prog_CPP+set}" = set; then :
3277 $as_echo_n "(cached) " >&6
3278 else
3279 # Double quotes because CPP needs to be expanded
3280 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3281 do
3282 ac_preproc_ok=false
3283 for ac_c_preproc_warn_flag in '' yes
3284 do
3285 # Use a header file that comes with gcc, so configuring glibc
3286 # with a fresh cross-compiler works.
3287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3288 # <limits.h> exists even on freestanding compilers.
3289 # On the NeXT, cc -E runs the code through the compiler's parser,
3290 # not just through cpp. "Syntax error" is here to catch this case.
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3293 #ifdef __STDC__
3294 # include <limits.h>
3295 #else
3296 # include <assert.h>
3297 #endif
3298 Syntax error
3299 _ACEOF
3300 if ac_fn_c_try_cpp "$LINENO"; then :
3301
3302 else
3303 # Broken: fails on valid input.
3304 continue
3305 fi
3306 rm -f conftest.err conftest.$ac_ext
3307
3308 # OK, works on sane cases. Now check whether nonexistent headers
3309 # can be detected and how.
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3312 #include <ac_nonexistent.h>
3313 _ACEOF
3314 if ac_fn_c_try_cpp "$LINENO"; then :
3315 # Broken: success on invalid input.
3316 continue
3317 else
3318 # Passes both tests.
3319 ac_preproc_ok=:
3320 break
3321 fi
3322 rm -f conftest.err conftest.$ac_ext
3323
3324 done
3325 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3326 rm -f conftest.err conftest.$ac_ext
3327 if $ac_preproc_ok; then :
3328 break
3329 fi
3330
3331 done
3332 ac_cv_prog_CPP=$CPP
3333
3334 fi
3335 CPP=$ac_cv_prog_CPP
3336 else
3337 ac_cv_prog_CPP=$CPP
3338 fi
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3340 $as_echo "$CPP" >&6; }
3341 ac_preproc_ok=false
3342 for ac_c_preproc_warn_flag in '' yes
3343 do
3344 # Use a header file that comes with gcc, so configuring glibc
3345 # with a fresh cross-compiler works.
3346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3347 # <limits.h> exists even on freestanding compilers.
3348 # On the NeXT, cc -E runs the code through the compiler's parser,
3349 # not just through cpp. "Syntax error" is here to catch this case.
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h. */
3352 #ifdef __STDC__
3353 # include <limits.h>
3354 #else
3355 # include <assert.h>
3356 #endif
3357 Syntax error
3358 _ACEOF
3359 if ac_fn_c_try_cpp "$LINENO"; then :
3360
3361 else
3362 # Broken: fails on valid input.
3363 continue
3364 fi
3365 rm -f conftest.err conftest.$ac_ext
3366
3367 # OK, works on sane cases. Now check whether nonexistent headers
3368 # can be detected and how.
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3371 #include <ac_nonexistent.h>
3372 _ACEOF
3373 if ac_fn_c_try_cpp "$LINENO"; then :
3374 # Broken: success on invalid input.
3375 continue
3376 else
3377 # Passes both tests.
3378 ac_preproc_ok=:
3379 break
3380 fi
3381 rm -f conftest.err conftest.$ac_ext
3382
3383 done
3384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3385 rm -f conftest.err conftest.$ac_ext
3386 if $ac_preproc_ok; then :
3387
3388 else
3389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3392 See \`config.log' for more details." "$LINENO" 5; }
3393 fi
3394
3395 ac_ext=c
3396 ac_cpp='$CPP $CPPFLAGS'
3397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400
3401
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3403 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3404 if test "${ac_cv_path_GREP+set}" = set; then :
3405 $as_echo_n "(cached) " >&6
3406 else
3407 if test -z "$GREP"; then
3408 ac_path_GREP_found=false
3409 # Loop through the user's path and test for each of PROGNAME-LIST
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3412 do
3413 IFS=$as_save_IFS
3414 test -z "$as_dir" && as_dir=.
3415 for ac_prog in grep ggrep; do
3416 for ac_exec_ext in '' $ac_executable_extensions; do
3417 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3418 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3419 # Check for GNU ac_path_GREP and select it if it is found.
3420 # Check for GNU $ac_path_GREP
3421 case `"$ac_path_GREP" --version 2>&1` in
3422 *GNU*)
3423 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3424 *)
3425 ac_count=0
3426 $as_echo_n 0123456789 >"conftest.in"
3427 while :
3428 do
3429 cat "conftest.in" "conftest.in" >"conftest.tmp"
3430 mv "conftest.tmp" "conftest.in"
3431 cp "conftest.in" "conftest.nl"
3432 $as_echo 'GREP' >> "conftest.nl"
3433 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3434 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3435 as_fn_arith $ac_count + 1 && ac_count=$as_val
3436 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3437 # Best one so far, save it but keep looking for a better one
3438 ac_cv_path_GREP="$ac_path_GREP"
3439 ac_path_GREP_max=$ac_count
3440 fi
3441 # 10*(2^10) chars as input seems more than enough
3442 test $ac_count -gt 10 && break
3443 done
3444 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3445 esac
3446
3447 $ac_path_GREP_found && break 3
3448 done
3449 done
3450 done
3451 IFS=$as_save_IFS
3452 if test -z "$ac_cv_path_GREP"; then
3453 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3454 fi
3455 else
3456 ac_cv_path_GREP=$GREP
3457 fi
3458
3459 fi
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3461 $as_echo "$ac_cv_path_GREP" >&6; }
3462 GREP="$ac_cv_path_GREP"
3463
3464
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3466 $as_echo_n "checking for egrep... " >&6; }
3467 if test "${ac_cv_path_EGREP+set}" = set; then :
3468 $as_echo_n "(cached) " >&6
3469 else
3470 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3471 then ac_cv_path_EGREP="$GREP -E"
3472 else
3473 if test -z "$EGREP"; then
3474 ac_path_EGREP_found=false
3475 # Loop through the user's path and test for each of PROGNAME-LIST
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3478 do
3479 IFS=$as_save_IFS
3480 test -z "$as_dir" && as_dir=.
3481 for ac_prog in egrep; do
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3484 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3485 # Check for GNU ac_path_EGREP and select it if it is found.
3486 # Check for GNU $ac_path_EGREP
3487 case `"$ac_path_EGREP" --version 2>&1` in
3488 *GNU*)
3489 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3490 *)
3491 ac_count=0
3492 $as_echo_n 0123456789 >"conftest.in"
3493 while :
3494 do
3495 cat "conftest.in" "conftest.in" >"conftest.tmp"
3496 mv "conftest.tmp" "conftest.in"
3497 cp "conftest.in" "conftest.nl"
3498 $as_echo 'EGREP' >> "conftest.nl"
3499 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3500 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3501 as_fn_arith $ac_count + 1 && ac_count=$as_val
3502 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3503 # Best one so far, save it but keep looking for a better one
3504 ac_cv_path_EGREP="$ac_path_EGREP"
3505 ac_path_EGREP_max=$ac_count
3506 fi
3507 # 10*(2^10) chars as input seems more than enough
3508 test $ac_count -gt 10 && break
3509 done
3510 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3511 esac
3512
3513 $ac_path_EGREP_found && break 3
3514 done
3515 done
3516 done
3517 IFS=$as_save_IFS
3518 if test -z "$ac_cv_path_EGREP"; then
3519 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3520 fi
3521 else
3522 ac_cv_path_EGREP=$EGREP
3523 fi
3524
3525 fi
3526 fi
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3528 $as_echo "$ac_cv_path_EGREP" >&6; }
3529 EGREP="$ac_cv_path_EGREP"
3530
3531
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3533 $as_echo_n "checking for ANSI C header files... " >&6; }
3534 if test "${ac_cv_header_stdc+set}" = set; then :
3535 $as_echo_n "(cached) " >&6
3536 else
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3539 #include <stdlib.h>
3540 #include <stdarg.h>
3541 #include <string.h>
3542 #include <float.h>
3543
3544 int
3545 main ()
3546 {
3547
3548 ;
3549 return 0;
3550 }
3551 _ACEOF
3552 if ac_fn_c_try_compile "$LINENO"; then :
3553 ac_cv_header_stdc=yes
3554 else
3555 ac_cv_header_stdc=no
3556 fi
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558
3559 if test $ac_cv_header_stdc = yes; then
3560 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3563 #include <string.h>
3564
3565 _ACEOF
3566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3567 $EGREP "memchr" >/dev/null 2>&1; then :
3568
3569 else
3570 ac_cv_header_stdc=no
3571 fi
3572 rm -f conftest*
3573
3574 fi
3575
3576 if test $ac_cv_header_stdc = yes; then
3577 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580 #include <stdlib.h>
3581
3582 _ACEOF
3583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3584 $EGREP "free" >/dev/null 2>&1; then :
3585
3586 else
3587 ac_cv_header_stdc=no
3588 fi
3589 rm -f conftest*
3590
3591 fi
3592
3593 if test $ac_cv_header_stdc = yes; then
3594 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3595 if test "$cross_compiling" = yes; then :
3596 :
3597 else
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3600 #include <ctype.h>
3601 #include <stdlib.h>
3602 #if ((' ' & 0x0FF) == 0x020)
3603 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3604 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3605 #else
3606 # define ISLOWER(c) \
3607 (('a' <= (c) && (c) <= 'i') \
3608 || ('j' <= (c) && (c) <= 'r') \
3609 || ('s' <= (c) && (c) <= 'z'))
3610 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3611 #endif
3612
3613 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3614 int
3615 main ()
3616 {
3617 int i;
3618 for (i = 0; i < 256; i++)
3619 if (XOR (islower (i), ISLOWER (i))
3620 || toupper (i) != TOUPPER (i))
3621 return 2;
3622 return 0;
3623 }
3624 _ACEOF
3625 if ac_fn_c_try_run "$LINENO"; then :
3626
3627 else
3628 ac_cv_header_stdc=no
3629 fi
3630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3631 conftest.$ac_objext conftest.beam conftest.$ac_ext
3632 fi
3633
3634 fi
3635 fi
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3637 $as_echo "$ac_cv_header_stdc" >&6; }
3638 if test $ac_cv_header_stdc = yes; then
3639
3640 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3641
3642 fi
3643
3644 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3645 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3646 inttypes.h stdint.h unistd.h
3647 do :
3648 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3649 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3650 "
3651 eval as_val=\$$as_ac_Header
3652 if test "x$as_val" = x""yes; then :
3653 cat >>confdefs.h <<_ACEOF
3654 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3655 _ACEOF
3656
3657 fi
3658
3659 done
3660
3661
3662
3663 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3664 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3665 MINIX=yes
3666 else
3667 MINIX=
3668 fi
3669
3670
3671 if test "$MINIX" = yes; then
3672
3673 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3674
3675
3676 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3677
3678
3679 $as_echo "#define _MINIX 1" >>confdefs.h
3680
3681 fi
3682
3683
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3685 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3686 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3687 $as_echo_n "(cached) " >&6
3688 else
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3691
3692 # define __EXTENSIONS__ 1
3693 $ac_includes_default
3694 int
3695 main ()
3696 {
3697
3698 ;
3699 return 0;
3700 }
3701 _ACEOF
3702 if ac_fn_c_try_compile "$LINENO"; then :
3703 ac_cv_safe_to_define___extensions__=yes
3704 else
3705 ac_cv_safe_to_define___extensions__=no
3706 fi
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708 fi
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3710 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3711 test $ac_cv_safe_to_define___extensions__ = yes &&
3712 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3713
3714 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3715
3716 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3717
3718 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3719
3720 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3721
3722
3723 # Determine the noncanonical target name, for directory use.
3724 case ${build_alias} in
3725 "") build_noncanonical=${build} ;;
3726 *) build_noncanonical=${build_alias} ;;
3727 esac
3728
3729 case ${host_alias} in
3730 "") host_noncanonical=${build_noncanonical} ;;
3731 *) host_noncanonical=${host_alias} ;;
3732 esac
3733
3734 case ${target_alias} in
3735 "") target_noncanonical=${host_noncanonical} ;;
3736 *) target_noncanonical=${target_alias} ;;
3737 esac
3738
3739
3740
3741
3742 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3743 # have matching libraries, they should use host libraries: Makefile.tpl
3744 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3745 # However, they still use the build modules, because the corresponding
3746 # host modules (e.g. bison) are only built for the host when bootstrap
3747 # finishes. So:
3748 # - build_subdir is where we find build modules, and never changes.
3749 # - build_libsubdir is where we find build libraries, and can be overridden.
3750
3751 # Prefix 'build-' so this never conflicts with target_subdir.
3752 build_subdir="build-${build_noncanonical}"
3753
3754 # Check whether --with-build-libsubdir was given.
3755 if test "${with_build_libsubdir+set}" = set; then :
3756 withval=$with_build_libsubdir; build_libsubdir="$withval"
3757 else
3758 build_libsubdir="$build_subdir"
3759 fi
3760
3761 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3762 if ( test $srcdir = . && test -d gcc ) \
3763 || test -d $srcdir/../host-${host_noncanonical}; then
3764 host_subdir="host-${host_noncanonical}"
3765 else
3766 host_subdir=.
3767 fi
3768 # No prefix.
3769 target_subdir=${target_noncanonical}
3770
3771
3772 # 1.11.1: Require that version of automake.
3773 # foreign: Don't require README, INSTALL, NEWS, etc.
3774 # no-define: Don't define PACKAGE and VERSION.
3775 # -Wall: Issue all automake warnings.
3776 # -Wno-portability: Don't warn about constructs supported by GNU make.
3777 # (because GCC requires GNU make anyhow).
3778 am__api_version='1.11'
3779
3780 # Find a good install program. We prefer a C program (faster),
3781 # so one script is as good as another. But avoid the broken or
3782 # incompatible versions:
3783 # SysV /etc/install, /usr/sbin/install
3784 # SunOS /usr/etc/install
3785 # IRIX /sbin/install
3786 # AIX /bin/install
3787 # AmigaOS /C/install, which installs bootblocks on floppy discs
3788 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3789 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3790 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3791 # OS/2's system install, which has a completely different semantic
3792 # ./install, which can be erroneously created by make from ./install.sh.
3793 # Reject install programs that cannot install multiple files.
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3795 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3796 if test -z "$INSTALL"; then
3797 if test "${ac_cv_path_install+set}" = set; then :
3798 $as_echo_n "(cached) " >&6
3799 else
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH
3802 do
3803 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=.
3805 # Account for people who put trailing slashes in PATH elements.
3806 case $as_dir/ in #((
3807 ./ | .// | /[cC]/* | \
3808 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3809 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3810 /usr/ucb/* ) ;;
3811 *)
3812 # OSF1 and SCO ODT 3.0 have their own names for install.
3813 # Don't use installbsd from OSF since it installs stuff as root
3814 # by default.
3815 for ac_prog in ginstall scoinst install; do
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3818 if test $ac_prog = install &&
3819 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3820 # AIX install. It has an incompatible calling convention.
3821 :
3822 elif test $ac_prog = install &&
3823 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3824 # program-specific install script used by HP pwplus--don't use.
3825 :
3826 else
3827 rm -rf conftest.one conftest.two conftest.dir
3828 echo one > conftest.one
3829 echo two > conftest.two
3830 mkdir conftest.dir
3831 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3832 test -s conftest.one && test -s conftest.two &&
3833 test -s conftest.dir/conftest.one &&
3834 test -s conftest.dir/conftest.two
3835 then
3836 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3837 break 3
3838 fi
3839 fi
3840 fi
3841 done
3842 done
3843 ;;
3844 esac
3845
3846 done
3847 IFS=$as_save_IFS
3848
3849 rm -rf conftest.one conftest.two conftest.dir
3850
3851 fi
3852 if test "${ac_cv_path_install+set}" = set; then
3853 INSTALL=$ac_cv_path_install
3854 else
3855 # As a last resort, use the slow shell script. Don't cache a
3856 # value for INSTALL within a source directory, because that will
3857 # break other packages using the cache if that directory is
3858 # removed, or if the value is a relative name.
3859 INSTALL=$ac_install_sh
3860 fi
3861 fi
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3863 $as_echo "$INSTALL" >&6; }
3864
3865 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3866 # It thinks the first close brace ends the variable substitution.
3867 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3868
3869 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3870
3871 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3872
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3874 $as_echo_n "checking whether build environment is sane... " >&6; }
3875 # Just in case
3876 sleep 1
3877 echo timestamp > conftest.file
3878 # Reject unsafe characters in $srcdir or the absolute working directory
3879 # name. Accept space and tab only in the latter.
3880 am_lf='
3881 '
3882 case `pwd` in
3883 *[\\\"\#\$\&\'\`$am_lf]*)
3884 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3885 esac
3886 case $srcdir in
3887 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3888 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3889 esac
3890
3891 # Do `set' in a subshell so we don't clobber the current shell's
3892 # arguments. Must try -L first in case configure is actually a
3893 # symlink; some systems play weird games with the mod time of symlinks
3894 # (eg FreeBSD returns the mod time of the symlink's containing
3895 # directory).
3896 if (
3897 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3898 if test "$*" = "X"; then
3899 # -L didn't work.
3900 set X `ls -t "$srcdir/configure" conftest.file`
3901 fi
3902 rm -f conftest.file
3903 if test "$*" != "X $srcdir/configure conftest.file" \
3904 && test "$*" != "X conftest.file $srcdir/configure"; then
3905
3906 # If neither matched, then we have a broken ls. This can happen
3907 # if, for instance, CONFIG_SHELL is bash and it inherits a
3908 # broken ls alias from the environment. This has actually
3909 # happened. Such a system could not be considered "sane".
3910 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3911 alias in your environment" "$LINENO" 5
3912 fi
3913
3914 test "$2" = conftest.file
3915 )
3916 then
3917 # Ok.
3918 :
3919 else
3920 as_fn_error "newly created file is older than distributed files!
3921 Check your system clock" "$LINENO" 5
3922 fi
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3924 $as_echo "yes" >&6; }
3925 test "$program_prefix" != NONE &&
3926 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3927 # Use a double $ so make ignores it.
3928 test "$program_suffix" != NONE &&
3929 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3930 # Double any \ or $.
3931 # By default was `s,x,x', remove it if useless.
3932 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3933 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3934
3935 # expand $ac_aux_dir to an absolute path
3936 am_aux_dir=`cd $ac_aux_dir && pwd`
3937
3938 if test x"${MISSING+set}" != xset; then
3939 case $am_aux_dir in
3940 *\ * | *\ *)
3941 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3942 *)
3943 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3944 esac
3945 fi
3946 # Use eval to expand $SHELL
3947 if eval "$MISSING --run true"; then
3948 am_missing_run="$MISSING --run "
3949 else
3950 am_missing_run=
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3952 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3953 fi
3954
3955 if test x"${install_sh}" != xset; then
3956 case $am_aux_dir in
3957 *\ * | *\ *)
3958 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3959 *)
3960 install_sh="\${SHELL} $am_aux_dir/install-sh"
3961 esac
3962 fi
3963
3964 # Installed binaries are usually stripped using `strip' when the user
3965 # run `make install-strip'. However `strip' might not be the right
3966 # tool to use in cross-compilation environments, therefore Automake
3967 # will honor the `STRIP' environment variable to overrule this program.
3968 if test "$cross_compiling" != no; then
3969 if test -n "$ac_tool_prefix"; then
3970 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3971 set dummy ${ac_tool_prefix}strip; ac_word=$2
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973 $as_echo_n "checking for $ac_word... " >&6; }
3974 if test "${ac_cv_prog_STRIP+set}" = set; then :
3975 $as_echo_n "(cached) " >&6
3976 else
3977 if test -n "$STRIP"; then
3978 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3979 else
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH
3982 do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3987 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3989 break 2
3990 fi
3991 done
3992 done
3993 IFS=$as_save_IFS
3994
3995 fi
3996 fi
3997 STRIP=$ac_cv_prog_STRIP
3998 if test -n "$STRIP"; then
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4000 $as_echo "$STRIP" >&6; }
4001 else
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003 $as_echo "no" >&6; }
4004 fi
4005
4006
4007 fi
4008 if test -z "$ac_cv_prog_STRIP"; then
4009 ac_ct_STRIP=$STRIP
4010 # Extract the first word of "strip", so it can be a program name with args.
4011 set dummy strip; ac_word=$2
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4013 $as_echo_n "checking for $ac_word... " >&6; }
4014 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 if test -n "$ac_ct_STRIP"; then
4018 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4019 else
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 for as_dir in $PATH
4022 do
4023 IFS=$as_save_IFS
4024 test -z "$as_dir" && as_dir=.
4025 for ac_exec_ext in '' $ac_executable_extensions; do
4026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4027 ac_cv_prog_ac_ct_STRIP="strip"
4028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4029 break 2
4030 fi
4031 done
4032 done
4033 IFS=$as_save_IFS
4034
4035 fi
4036 fi
4037 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4038 if test -n "$ac_ct_STRIP"; then
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4040 $as_echo "$ac_ct_STRIP" >&6; }
4041 else
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4043 $as_echo "no" >&6; }
4044 fi
4045
4046 if test "x$ac_ct_STRIP" = x; then
4047 STRIP=":"
4048 else
4049 case $cross_compiling:$ac_tool_warned in
4050 yes:)
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4053 ac_tool_warned=yes ;;
4054 esac
4055 STRIP=$ac_ct_STRIP
4056 fi
4057 else
4058 STRIP="$ac_cv_prog_STRIP"
4059 fi
4060
4061 fi
4062 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4063
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4065 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4066 if test -z "$MKDIR_P"; then
4067 if test "${ac_cv_path_mkdir+set}" = set; then :
4068 $as_echo_n "(cached) " >&6
4069 else
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4072 do
4073 IFS=$as_save_IFS
4074 test -z "$as_dir" && as_dir=.
4075 for ac_prog in mkdir gmkdir; do
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4078 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4079 'mkdir (GNU coreutils) '* | \
4080 'mkdir (coreutils) '* | \
4081 'mkdir (fileutils) '4.1*)
4082 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4083 break 3;;
4084 esac
4085 done
4086 done
4087 done
4088 IFS=$as_save_IFS
4089
4090 fi
4091
4092 if test "${ac_cv_path_mkdir+set}" = set; then
4093 MKDIR_P="$ac_cv_path_mkdir -p"
4094 else
4095 # As a last resort, use the slow shell script. Don't cache a
4096 # value for MKDIR_P within a source directory, because that will
4097 # break other packages using the cache if that directory is
4098 # removed, or if the value is a relative name.
4099 test -d ./--version && rmdir ./--version
4100 MKDIR_P="$ac_install_sh -d"
4101 fi
4102 fi
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4104 $as_echo "$MKDIR_P" >&6; }
4105
4106 mkdir_p="$MKDIR_P"
4107 case $mkdir_p in
4108 [\\/$]* | ?:[\\/]*) ;;
4109 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4110 esac
4111
4112 for ac_prog in gawk mawk nawk awk
4113 do
4114 # Extract the first word of "$ac_prog", so it can be a program name with args.
4115 set dummy $ac_prog; ac_word=$2
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117 $as_echo_n "checking for $ac_word... " >&6; }
4118 if test "${ac_cv_prog_AWK+set}" = set; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 if test -n "$AWK"; then
4122 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4123 else
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4126 do
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4131 ac_cv_prog_AWK="$ac_prog"
4132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 break 2
4134 fi
4135 done
4136 done
4137 IFS=$as_save_IFS
4138
4139 fi
4140 fi
4141 AWK=$ac_cv_prog_AWK
4142 if test -n "$AWK"; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4144 $as_echo "$AWK" >&6; }
4145 else
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4148 fi
4149
4150
4151 test -n "$AWK" && break
4152 done
4153
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4155 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4156 set x ${MAKE-make}
4157 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4158 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 cat >conftest.make <<\_ACEOF
4162 SHELL = /bin/sh
4163 all:
4164 @echo '@@@%%%=$(MAKE)=@@@%%%'
4165 _ACEOF
4166 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4167 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4168 *@@@%%%=?*=@@@%%%*)
4169 eval ac_cv_prog_make_${ac_make}_set=yes;;
4170 *)
4171 eval ac_cv_prog_make_${ac_make}_set=no;;
4172 esac
4173 rm -f conftest.make
4174 fi
4175 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4177 $as_echo "yes" >&6; }
4178 SET_MAKE=
4179 else
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181 $as_echo "no" >&6; }
4182 SET_MAKE="MAKE=${MAKE-make}"
4183 fi
4184
4185 rm -rf .tst 2>/dev/null
4186 mkdir .tst 2>/dev/null
4187 if test -d .tst; then
4188 am__leading_dot=.
4189 else
4190 am__leading_dot=_
4191 fi
4192 rmdir .tst 2>/dev/null
4193
4194 DEPDIR="${am__leading_dot}deps"
4195
4196 ac_config_commands="$ac_config_commands depfiles"
4197
4198
4199 am_make=${MAKE-make}
4200 cat > confinc << 'END'
4201 am__doit:
4202 @echo this is the am__doit target
4203 .PHONY: am__doit
4204 END
4205 # If we don't find an include directive, just comment out the code.
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4207 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4208 am__include="#"
4209 am__quote=
4210 _am_result=none
4211 # First try GNU make style include.
4212 echo "include confinc" > confmf
4213 # Ignore all kinds of additional output from `make'.
4214 case `$am_make -s -f confmf 2> /dev/null` in #(
4215 *the\ am__doit\ target*)
4216 am__include=include
4217 am__quote=
4218 _am_result=GNU
4219 ;;
4220 esac
4221 # Now try BSD make style include.
4222 if test "$am__include" = "#"; then
4223 echo '.include "confinc"' > confmf
4224 case `$am_make -s -f confmf 2> /dev/null` in #(
4225 *the\ am__doit\ target*)
4226 am__include=.include
4227 am__quote="\""
4228 _am_result=BSD
4229 ;;
4230 esac
4231 fi
4232
4233
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4235 $as_echo "$_am_result" >&6; }
4236 rm -f confinc confmf
4237
4238 # Check whether --enable-dependency-tracking was given.
4239 if test "${enable_dependency_tracking+set}" = set; then :
4240 enableval=$enable_dependency_tracking;
4241 fi
4242
4243 if test "x$enable_dependency_tracking" != xno; then
4244 am_depcomp="$ac_aux_dir/depcomp"
4245 AMDEPBACKSLASH='\'
4246 fi
4247 if test "x$enable_dependency_tracking" != xno; then
4248 AMDEP_TRUE=
4249 AMDEP_FALSE='#'
4250 else
4251 AMDEP_TRUE='#'
4252 AMDEP_FALSE=
4253 fi
4254
4255
4256 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4257 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4258 # is not polluted with repeated "-I."
4259 am__isrc=' -I$(srcdir)'
4260 # test to see if srcdir already configured
4261 if test -f $srcdir/config.status; then
4262 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4263 fi
4264 fi
4265
4266 # test whether we have cygpath
4267 if test -z "$CYGPATH_W"; then
4268 if (cygpath --version) >/dev/null 2>/dev/null; then
4269 CYGPATH_W='cygpath -w'
4270 else
4271 CYGPATH_W=echo
4272 fi
4273 fi
4274
4275
4276 # Define the identity of the package.
4277 PACKAGE='libcc1'
4278 VERSION='version-unused'
4279
4280
4281 # Some tools Automake needs.
4282
4283 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4284
4285
4286 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4287
4288
4289 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4290
4291
4292 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4293
4294
4295 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4296
4297 # We need awk for the "check" target. The system "awk" is bad on
4298 # some platforms.
4299 # Always define AMTAR for backward compatibility.
4300
4301 AMTAR=${AMTAR-"${am_missing_run}tar"}
4302
4303 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4304
4305
4306
4307
4308 depcc="$CC" am_compiler_list=
4309
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4311 $as_echo_n "checking dependency style of $depcc... " >&6; }
4312 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4316 # We make a subdir and do the tests there. Otherwise we can end up
4317 # making bogus files that we don't know about and never remove. For
4318 # instance it was reported that on HP-UX the gcc test will end up
4319 # making a dummy file named `D' -- because `-MD' means `put the output
4320 # in D'.
4321 mkdir conftest.dir
4322 # Copy depcomp to subdir because otherwise we won't find it if we're
4323 # using a relative directory.
4324 cp "$am_depcomp" conftest.dir
4325 cd conftest.dir
4326 # We will build objects and dependencies in a subdirectory because
4327 # it helps to detect inapplicable dependency modes. For instance
4328 # both Tru64's cc and ICC support -MD to output dependencies as a
4329 # side effect of compilation, but ICC will put the dependencies in
4330 # the current directory while Tru64 will put them in the object
4331 # directory.
4332 mkdir sub
4333
4334 am_cv_CC_dependencies_compiler_type=none
4335 if test "$am_compiler_list" = ""; then
4336 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4337 fi
4338 am__universal=false
4339 case " $depcc " in #(
4340 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4341 esac
4342
4343 for depmode in $am_compiler_list; do
4344 # Setup a source with many dependencies, because some compilers
4345 # like to wrap large dependency lists on column 80 (with \), and
4346 # we should not choose a depcomp mode which is confused by this.
4347 #
4348 # We need to recreate these files for each test, as the compiler may
4349 # overwrite some of them when testing with obscure command lines.
4350 # This happens at least with the AIX C compiler.
4351 : > sub/conftest.c
4352 for i in 1 2 3 4 5 6; do
4353 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4354 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4355 # Solaris 8's {/usr,}/bin/sh.
4356 touch sub/conftst$i.h
4357 done
4358 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4359
4360 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4361 # mode. It turns out that the SunPro C++ compiler does not properly
4362 # handle `-M -o', and we need to detect this. Also, some Intel
4363 # versions had trouble with output in subdirs
4364 am__obj=sub/conftest.${OBJEXT-o}
4365 am__minus_obj="-o $am__obj"
4366 case $depmode in
4367 gcc)
4368 # This depmode causes a compiler race in universal mode.
4369 test "$am__universal" = false || continue
4370 ;;
4371 nosideeffect)
4372 # after this tag, mechanisms are not by side-effect, so they'll
4373 # only be used when explicitly requested
4374 if test "x$enable_dependency_tracking" = xyes; then
4375 continue
4376 else
4377 break
4378 fi
4379 ;;
4380 msvisualcpp | msvcmsys)
4381 # This compiler won't grok `-c -o', but also, the minuso test has
4382 # not run yet. These depmodes are late enough in the game, and
4383 # so weak that their functioning should not be impacted.
4384 am__obj=conftest.${OBJEXT-o}
4385 am__minus_obj=
4386 ;;
4387 none) break ;;
4388 esac
4389 if depmode=$depmode \
4390 source=sub/conftest.c object=$am__obj \
4391 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4392 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4393 >/dev/null 2>conftest.err &&
4394 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4395 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4396 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4397 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4398 # icc doesn't choke on unknown options, it will just issue warnings
4399 # or remarks (even with -Werror). So we grep stderr for any message
4400 # that says an option was ignored or not supported.
4401 # When given -MP, icc 7.0 and 7.1 complain thusly:
4402 # icc: Command line warning: ignoring option '-M'; no argument required
4403 # The diagnosis changed in icc 8.0:
4404 # icc: Command line remark: option '-MP' not supported
4405 if (grep 'ignoring option' conftest.err ||
4406 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4407 am_cv_CC_dependencies_compiler_type=$depmode
4408 break
4409 fi
4410 fi
4411 done
4412
4413 cd ..
4414 rm -rf conftest.dir
4415 else
4416 am_cv_CC_dependencies_compiler_type=none
4417 fi
4418
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4421 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4422 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4423
4424 if
4425 test "x$enable_dependency_tracking" != xno \
4426 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4427 am__fastdepCC_TRUE=
4428 am__fastdepCC_FALSE='#'
4429 else
4430 am__fastdepCC_TRUE='#'
4431 am__fastdepCC_FALSE=
4432 fi
4433
4434
4435
4436
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4438 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4439 # Check whether --enable-maintainer-mode was given.
4440 if test "${enable_maintainer_mode+set}" = set; then :
4441 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4442 else
4443 USE_MAINTAINER_MODE=no
4444 fi
4445
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4447 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4448 if test $USE_MAINTAINER_MODE = yes; then
4449 MAINTAINER_MODE_TRUE=
4450 MAINTAINER_MODE_FALSE='#'
4451 else
4452 MAINTAINER_MODE_TRUE='#'
4453 MAINTAINER_MODE_FALSE=
4454 fi
4455
4456 MAINT=$MAINTAINER_MODE_TRUE
4457
4458
4459
4460 case `pwd` in
4461 *\ * | *\ *)
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4463 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4464 esac
4465
4466
4467
4468 macro_version='2.2.7a'
4469 macro_revision='1.3134'
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483 ltmain="$ac_aux_dir/ltmain.sh"
4484
4485 # Backslashify metacharacters that are still active within
4486 # double-quoted strings.
4487 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4488
4489 # Same as above, but do not quote variable references.
4490 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4491
4492 # Sed substitution to delay expansion of an escaped shell variable in a
4493 # double_quote_subst'ed string.
4494 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4495
4496 # Sed substitution to delay expansion of an escaped single quote.
4497 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4498
4499 # Sed substitution to avoid accidental globbing in evaled expressions
4500 no_glob_subst='s/\*/\\\*/g'
4501
4502 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4503 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4504 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4505
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4507 $as_echo_n "checking how to print strings... " >&6; }
4508 # Test print first, because it will be a builtin if present.
4509 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4510 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4511 ECHO='print -r --'
4512 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4513 ECHO='printf %s\n'
4514 else
4515 # Use this function as a fallback that always works.
4516 func_fallback_echo ()
4517 {
4518 eval 'cat <<_LTECHO_EOF
4519 $1
4520 _LTECHO_EOF'
4521 }
4522 ECHO='func_fallback_echo'
4523 fi
4524
4525 # func_echo_all arg...
4526 # Invoke $ECHO with all args, space-separated.
4527 func_echo_all ()
4528 {
4529 $ECHO ""
4530 }
4531
4532 case "$ECHO" in
4533 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4534 $as_echo "printf" >&6; } ;;
4535 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4536 $as_echo "print -r" >&6; } ;;
4537 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4538 $as_echo "cat" >&6; } ;;
4539 esac
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4555 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4556 if test "${ac_cv_path_SED+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4560 for ac_i in 1 2 3 4 5 6 7; do
4561 ac_script="$ac_script$as_nl$ac_script"
4562 done
4563 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4564 { ac_script=; unset ac_script;}
4565 if test -z "$SED"; then
4566 ac_path_SED_found=false
4567 # Loop through the user's path and test for each of PROGNAME-LIST
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4570 do
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_prog in sed gsed; do
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4576 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4577 # Check for GNU ac_path_SED and select it if it is found.
4578 # Check for GNU $ac_path_SED
4579 case `"$ac_path_SED" --version 2>&1` in
4580 *GNU*)
4581 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4582 *)
4583 ac_count=0
4584 $as_echo_n 0123456789 >"conftest.in"
4585 while :
4586 do
4587 cat "conftest.in" "conftest.in" >"conftest.tmp"
4588 mv "conftest.tmp" "conftest.in"
4589 cp "conftest.in" "conftest.nl"
4590 $as_echo '' >> "conftest.nl"
4591 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4592 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4593 as_fn_arith $ac_count + 1 && ac_count=$as_val
4594 if test $ac_count -gt ${ac_path_SED_max-0}; then
4595 # Best one so far, save it but keep looking for a better one
4596 ac_cv_path_SED="$ac_path_SED"
4597 ac_path_SED_max=$ac_count
4598 fi
4599 # 10*(2^10) chars as input seems more than enough
4600 test $ac_count -gt 10 && break
4601 done
4602 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4603 esac
4604
4605 $ac_path_SED_found && break 3
4606 done
4607 done
4608 done
4609 IFS=$as_save_IFS
4610 if test -z "$ac_cv_path_SED"; then
4611 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4612 fi
4613 else
4614 ac_cv_path_SED=$SED
4615 fi
4616
4617 fi
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4619 $as_echo "$ac_cv_path_SED" >&6; }
4620 SED="$ac_cv_path_SED"
4621 rm -f conftest.sed
4622
4623 test -z "$SED" && SED=sed
4624 Xsed="$SED -e 1s/^X//"
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4637 $as_echo_n "checking for fgrep... " >&6; }
4638 if test "${ac_cv_path_FGREP+set}" = set; then :
4639 $as_echo_n "(cached) " >&6
4640 else
4641 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4642 then ac_cv_path_FGREP="$GREP -F"
4643 else
4644 if test -z "$FGREP"; then
4645 ac_path_FGREP_found=false
4646 # Loop through the user's path and test for each of PROGNAME-LIST
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4649 do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_prog in fgrep; do
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4655 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4656 # Check for GNU ac_path_FGREP and select it if it is found.
4657 # Check for GNU $ac_path_FGREP
4658 case `"$ac_path_FGREP" --version 2>&1` in
4659 *GNU*)
4660 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4661 *)
4662 ac_count=0
4663 $as_echo_n 0123456789 >"conftest.in"
4664 while :
4665 do
4666 cat "conftest.in" "conftest.in" >"conftest.tmp"
4667 mv "conftest.tmp" "conftest.in"
4668 cp "conftest.in" "conftest.nl"
4669 $as_echo 'FGREP' >> "conftest.nl"
4670 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4672 as_fn_arith $ac_count + 1 && ac_count=$as_val
4673 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4674 # Best one so far, save it but keep looking for a better one
4675 ac_cv_path_FGREP="$ac_path_FGREP"
4676 ac_path_FGREP_max=$ac_count
4677 fi
4678 # 10*(2^10) chars as input seems more than enough
4679 test $ac_count -gt 10 && break
4680 done
4681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4682 esac
4683
4684 $ac_path_FGREP_found && break 3
4685 done
4686 done
4687 done
4688 IFS=$as_save_IFS
4689 if test -z "$ac_cv_path_FGREP"; then
4690 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4691 fi
4692 else
4693 ac_cv_path_FGREP=$FGREP
4694 fi
4695
4696 fi
4697 fi
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4699 $as_echo "$ac_cv_path_FGREP" >&6; }
4700 FGREP="$ac_cv_path_FGREP"
4701
4702
4703 test -z "$GREP" && GREP=grep
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723 # Check whether --with-gnu-ld was given.
4724 if test "${with_gnu_ld+set}" = set; then :
4725 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4726 else
4727 with_gnu_ld=no
4728 fi
4729
4730 ac_prog=ld
4731 if test "$GCC" = yes; then
4732 # Check if gcc -print-prog-name=ld gives a path.
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4734 $as_echo_n "checking for ld used by $CC... " >&6; }
4735 case $host in
4736 *-*-mingw*)
4737 # gcc leaves a trailing carriage return which upsets mingw
4738 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4739 *)
4740 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4741 esac
4742 case $ac_prog in
4743 # Accept absolute paths.
4744 [\\/]* | ?:[\\/]*)
4745 re_direlt='/[^/][^/]*/\.\./'
4746 # Canonicalize the pathname of ld
4747 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4748 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4749 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4750 done
4751 test -z "$LD" && LD="$ac_prog"
4752 ;;
4753 "")
4754 # If it fails, then pretend we aren't using GCC.
4755 ac_prog=ld
4756 ;;
4757 *)
4758 # If it is relative, then search for the first ld in PATH.
4759 with_gnu_ld=unknown
4760 ;;
4761 esac
4762 elif test "$with_gnu_ld" = yes; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4764 $as_echo_n "checking for GNU ld... " >&6; }
4765 else
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4767 $as_echo_n "checking for non-GNU ld... " >&6; }
4768 fi
4769 if test "${lt_cv_path_LD+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4771 else
4772 if test -z "$LD"; then
4773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4774 for ac_dir in $PATH; do
4775 IFS="$lt_save_ifs"
4776 test -z "$ac_dir" && ac_dir=.
4777 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4778 lt_cv_path_LD="$ac_dir/$ac_prog"
4779 # Check to see if the program is GNU ld. I'd rather use --version,
4780 # but apparently some variants of GNU ld only accept -v.
4781 # Break only if it was the GNU/non-GNU ld that we prefer.
4782 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4783 *GNU* | *'with BFD'*)
4784 test "$with_gnu_ld" != no && break
4785 ;;
4786 *)
4787 test "$with_gnu_ld" != yes && break
4788 ;;
4789 esac
4790 fi
4791 done
4792 IFS="$lt_save_ifs"
4793 else
4794 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4795 fi
4796 fi
4797
4798 LD="$lt_cv_path_LD"
4799 if test -n "$LD"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4801 $as_echo "$LD" >&6; }
4802 else
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4805 fi
4806 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4808 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4809 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4810 $as_echo_n "(cached) " >&6
4811 else
4812 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4813 case `$LD -v 2>&1 </dev/null` in
4814 *GNU* | *'with BFD'*)
4815 lt_cv_prog_gnu_ld=yes
4816 ;;
4817 *)
4818 lt_cv_prog_gnu_ld=no
4819 ;;
4820 esac
4821 fi
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4823 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4824 with_gnu_ld=$lt_cv_prog_gnu_ld
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4835 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4836 if test "${lt_cv_path_NM+set}" = set; then :
4837 $as_echo_n "(cached) " >&6
4838 else
4839 if test -n "$NM"; then
4840 # Let the user override the test.
4841 lt_cv_path_NM="$NM"
4842 else
4843 lt_nm_to_check="${ac_tool_prefix}nm"
4844 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4845 lt_nm_to_check="$lt_nm_to_check nm"
4846 fi
4847 for lt_tmp_nm in $lt_nm_to_check; do
4848 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4849 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4850 IFS="$lt_save_ifs"
4851 test -z "$ac_dir" && ac_dir=.
4852 tmp_nm="$ac_dir/$lt_tmp_nm"
4853 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4854 # Check to see if the nm accepts a BSD-compat flag.
4855 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4856 # nm: unknown option "B" ignored
4857 # Tru64's nm complains that /dev/null is an invalid object file
4858 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4859 */dev/null* | *'Invalid file or object type'*)
4860 lt_cv_path_NM="$tmp_nm -B"
4861 break
4862 ;;
4863 *)
4864 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4865 */dev/null*)
4866 lt_cv_path_NM="$tmp_nm -p"
4867 break
4868 ;;
4869 *)
4870 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4871 continue # so that we can try to find one that supports BSD flags
4872 ;;
4873 esac
4874 ;;
4875 esac
4876 fi
4877 done
4878 IFS="$lt_save_ifs"
4879 done
4880 : ${lt_cv_path_NM=no}
4881 fi
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4884 $as_echo "$lt_cv_path_NM" >&6; }
4885 if test "$lt_cv_path_NM" != "no"; then
4886 NM="$lt_cv_path_NM"
4887 else
4888 # Didn't find any BSD compatible name lister, look for dumpbin.
4889 if test -n "$DUMPBIN"; then :
4890 # Let the user override the test.
4891 else
4892 if test -n "$ac_tool_prefix"; then
4893 for ac_prog in dumpbin "link -dump"
4894 do
4895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -n "$DUMPBIN"; then
4903 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4915 fi
4916 done
4917 done
4918 IFS=$as_save_IFS
4919
4920 fi
4921 fi
4922 DUMPBIN=$ac_cv_prog_DUMPBIN
4923 if test -n "$DUMPBIN"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4925 $as_echo "$DUMPBIN" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4929 fi
4930
4931
4932 test -n "$DUMPBIN" && break
4933 done
4934 fi
4935 if test -z "$DUMPBIN"; then
4936 ac_ct_DUMPBIN=$DUMPBIN
4937 for ac_prog in dumpbin "link -dump"
4938 do
4939 # Extract the first word of "$ac_prog", so it can be a program name with args.
4940 set dummy $ac_prog; ac_word=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4944 $as_echo_n "(cached) " >&6
4945 else
4946 if test -n "$ac_ct_DUMPBIN"; then
4947 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4948 else
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4951 do
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 break 2
4959 fi
4960 done
4961 done
4962 IFS=$as_save_IFS
4963
4964 fi
4965 fi
4966 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4967 if test -n "$ac_ct_DUMPBIN"; then
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4969 $as_echo "$ac_ct_DUMPBIN" >&6; }
4970 else
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4972 $as_echo "no" >&6; }
4973 fi
4974
4975
4976 test -n "$ac_ct_DUMPBIN" && break
4977 done
4978
4979 if test "x$ac_ct_DUMPBIN" = x; then
4980 DUMPBIN=":"
4981 else
4982 case $cross_compiling:$ac_tool_warned in
4983 yes:)
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4986 ac_tool_warned=yes ;;
4987 esac
4988 DUMPBIN=$ac_ct_DUMPBIN
4989 fi
4990 fi
4991
4992 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4993 *COFF*)
4994 DUMPBIN="$DUMPBIN -symbols"
4995 ;;
4996 *)
4997 DUMPBIN=:
4998 ;;
4999 esac
5000 fi
5001
5002 if test "$DUMPBIN" != ":"; then
5003 NM="$DUMPBIN"
5004 fi
5005 fi
5006 test -z "$NM" && NM=nm
5007
5008
5009
5010
5011
5012
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5014 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5015 if test "${lt_cv_nm_interface+set}" = set; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 lt_cv_nm_interface="BSD nm"
5019 echo "int some_variable = 0;" > conftest.$ac_ext
5020 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5021 (eval "$ac_compile" 2>conftest.err)
5022 cat conftest.err >&5
5023 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5024 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5025 cat conftest.err >&5
5026 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5027 cat conftest.out >&5
5028 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5029 lt_cv_nm_interface="MS dumpbin"
5030 fi
5031 rm -f conftest*
5032 fi
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5034 $as_echo "$lt_cv_nm_interface" >&6; }
5035
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5037 $as_echo_n "checking whether ln -s works... " >&6; }
5038 LN_S=$as_ln_s
5039 if test "$LN_S" = "ln -s"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5041 $as_echo "yes" >&6; }
5042 else
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5044 $as_echo "no, using $LN_S" >&6; }
5045 fi
5046
5047 # find the maximum length of command line arguments
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5049 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5050 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 i=0
5054 teststring="ABCD"
5055
5056 case $build_os in
5057 msdosdjgpp*)
5058 # On DJGPP, this test can blow up pretty badly due to problems in libc
5059 # (any single argument exceeding 2000 bytes causes a buffer overrun
5060 # during glob expansion). Even if it were fixed, the result of this
5061 # check would be larger than it should be.
5062 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5063 ;;
5064
5065 gnu*)
5066 # Under GNU Hurd, this test is not required because there is
5067 # no limit to the length of command line arguments.
5068 # Libtool will interpret -1 as no limit whatsoever
5069 lt_cv_sys_max_cmd_len=-1;
5070 ;;
5071
5072 cygwin* | mingw* | cegcc*)
5073 # On Win9x/ME, this test blows up -- it succeeds, but takes
5074 # about 5 minutes as the teststring grows exponentially.
5075 # Worse, since 9x/ME are not pre-emptively multitasking,
5076 # you end up with a "frozen" computer, even though with patience
5077 # the test eventually succeeds (with a max line length of 256k).
5078 # Instead, let's just punt: use the minimum linelength reported by
5079 # all of the supported platforms: 8192 (on NT/2K/XP).
5080 lt_cv_sys_max_cmd_len=8192;
5081 ;;
5082
5083 mint*)
5084 # On MiNT this can take a long time and run out of memory.
5085 lt_cv_sys_max_cmd_len=8192;
5086 ;;
5087
5088 amigaos*)
5089 # On AmigaOS with pdksh, this test takes hours, literally.
5090 # So we just punt and use a minimum line length of 8192.
5091 lt_cv_sys_max_cmd_len=8192;
5092 ;;
5093
5094 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5095 # This has been around since 386BSD, at least. Likely further.
5096 if test -x /sbin/sysctl; then
5097 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5098 elif test -x /usr/sbin/sysctl; then
5099 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5100 else
5101 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5102 fi
5103 # And add a safety zone
5104 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5105 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5106 ;;
5107
5108 interix*)
5109 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5110 lt_cv_sys_max_cmd_len=196608
5111 ;;
5112
5113 osf*)
5114 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5115 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5116 # nice to cause kernel panics so lets avoid the loop below.
5117 # First set a reasonable default.
5118 lt_cv_sys_max_cmd_len=16384
5119 #
5120 if test -x /sbin/sysconfig; then
5121 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5122 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5123 esac
5124 fi
5125 ;;
5126 sco3.2v5*)
5127 lt_cv_sys_max_cmd_len=102400
5128 ;;
5129 sysv5* | sco5v6* | sysv4.2uw2*)
5130 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5131 if test -n "$kargmax"; then
5132 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5133 else
5134 lt_cv_sys_max_cmd_len=32768
5135 fi
5136 ;;
5137 *)
5138 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5139 if test -n "$lt_cv_sys_max_cmd_len"; then
5140 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5141 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5142 else
5143 # Make teststring a little bigger before we do anything with it.
5144 # a 1K string should be a reasonable start.
5145 for i in 1 2 3 4 5 6 7 8 ; do
5146 teststring=$teststring$teststring
5147 done
5148 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5149 # If test is not a shell built-in, we'll probably end up computing a
5150 # maximum length that is only half of the actual maximum length, but
5151 # we can't tell.
5152 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5153 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5154 test $i != 17 # 1/2 MB should be enough
5155 do
5156 i=`expr $i + 1`
5157 teststring=$teststring$teststring
5158 done
5159 # Only check the string length outside the loop.
5160 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5161 teststring=
5162 # Add a significant safety factor because C++ compilers can tack on
5163 # massive amounts of additional arguments before passing them to the
5164 # linker. It appears as though 1/2 is a usable value.
5165 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5166 fi
5167 ;;
5168 esac
5169
5170 fi
5171
5172 if test -n $lt_cv_sys_max_cmd_len ; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5174 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5175 else
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5177 $as_echo "none" >&6; }
5178 fi
5179 max_cmd_len=$lt_cv_sys_max_cmd_len
5180
5181
5182
5183
5184
5185
5186 : ${CP="cp -f"}
5187 : ${MV="mv -f"}
5188 : ${RM="rm -f"}
5189
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5191 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5192 # Try some XSI features
5193 xsi_shell=no
5194 ( _lt_dummy="a/b/c"
5195 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5196 = c,a/b,, \
5197 && eval 'test $(( 1 + 1 )) -eq 2 \
5198 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5199 && xsi_shell=yes
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5201 $as_echo "$xsi_shell" >&6; }
5202
5203
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5205 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5206 lt_shell_append=no
5207 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5208 >/dev/null 2>&1 \
5209 && lt_shell_append=yes
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5211 $as_echo "$lt_shell_append" >&6; }
5212
5213
5214 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5215 lt_unset=unset
5216 else
5217 lt_unset=false
5218 fi
5219
5220
5221
5222
5223
5224 # test EBCDIC or ASCII
5225 case `echo X|tr X '\101'` in
5226 A) # ASCII based system
5227 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5228 lt_SP2NL='tr \040 \012'
5229 lt_NL2SP='tr \015\012 \040\040'
5230 ;;
5231 *) # EBCDIC based system
5232 lt_SP2NL='tr \100 \n'
5233 lt_NL2SP='tr \r\n \100\100'
5234 ;;
5235 esac
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5246 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5247 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 lt_cv_ld_reload_flag='-r'
5251 fi
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5253 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5254 reload_flag=$lt_cv_ld_reload_flag
5255 case $reload_flag in
5256 "" | " "*) ;;
5257 *) reload_flag=" $reload_flag" ;;
5258 esac
5259 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5260 case $host_os in
5261 darwin*)
5262 if test "$GCC" = yes; then
5263 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5264 else
5265 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5266 fi
5267 ;;
5268 esac
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278 if test -n "$ac_tool_prefix"; then
5279 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5280 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5282 $as_echo_n "checking for $ac_word... " >&6; }
5283 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5284 $as_echo_n "(cached) " >&6
5285 else
5286 if test -n "$OBJDUMP"; then
5287 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5288 else
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in $PATH
5291 do
5292 IFS=$as_save_IFS
5293 test -z "$as_dir" && as_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5296 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 break 2
5299 fi
5300 done
5301 done
5302 IFS=$as_save_IFS
5303
5304 fi
5305 fi
5306 OBJDUMP=$ac_cv_prog_OBJDUMP
5307 if test -n "$OBJDUMP"; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5309 $as_echo "$OBJDUMP" >&6; }
5310 else
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5313 fi
5314
5315
5316 fi
5317 if test -z "$ac_cv_prog_OBJDUMP"; then
5318 ac_ct_OBJDUMP=$OBJDUMP
5319 # Extract the first word of "objdump", so it can be a program name with args.
5320 set dummy objdump; ac_word=$2
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322 $as_echo_n "checking for $ac_word... " >&6; }
5323 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 if test -n "$ac_ct_OBJDUMP"; then
5327 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5328 else
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5331 do
5332 IFS=$as_save_IFS
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5336 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 break 2
5339 fi
5340 done
5341 done
5342 IFS=$as_save_IFS
5343
5344 fi
5345 fi
5346 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5347 if test -n "$ac_ct_OBJDUMP"; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5349 $as_echo "$ac_ct_OBJDUMP" >&6; }
5350 else
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5353 fi
5354
5355 if test "x$ac_ct_OBJDUMP" = x; then
5356 OBJDUMP="false"
5357 else
5358 case $cross_compiling:$ac_tool_warned in
5359 yes:)
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5362 ac_tool_warned=yes ;;
5363 esac
5364 OBJDUMP=$ac_ct_OBJDUMP
5365 fi
5366 else
5367 OBJDUMP="$ac_cv_prog_OBJDUMP"
5368 fi
5369
5370 test -z "$OBJDUMP" && OBJDUMP=objdump
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5381 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5382 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5383 $as_echo_n "(cached) " >&6
5384 else
5385 lt_cv_file_magic_cmd='$MAGIC_CMD'
5386 lt_cv_file_magic_test_file=
5387 lt_cv_deplibs_check_method='unknown'
5388 # Need to set the preceding variable on all platforms that support
5389 # interlibrary dependencies.
5390 # 'none' -- dependencies not supported.
5391 # `unknown' -- same as none, but documents that we really don't know.
5392 # 'pass_all' -- all dependencies passed with no checks.
5393 # 'test_compile' -- check by making test program.
5394 # 'file_magic [[regex]]' -- check by looking for files in library path
5395 # which responds to the $file_magic_cmd with a given extended regex.
5396 # If you have `file' or equivalent on your system and you're not sure
5397 # whether `pass_all' will *always* work, you probably want this one.
5398
5399 case $host_os in
5400 aix[4-9]*)
5401 lt_cv_deplibs_check_method=pass_all
5402 ;;
5403
5404 beos*)
5405 lt_cv_deplibs_check_method=pass_all
5406 ;;
5407
5408 bsdi[45]*)
5409 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5410 lt_cv_file_magic_cmd='/usr/bin/file -L'
5411 lt_cv_file_magic_test_file=/shlib/libc.so
5412 ;;
5413
5414 cygwin*)
5415 # func_win32_libid is a shell function defined in ltmain.sh
5416 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5417 lt_cv_file_magic_cmd='func_win32_libid'
5418 ;;
5419
5420 mingw* | pw32*)
5421 # Base MSYS/MinGW do not provide the 'file' command needed by
5422 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5423 # unless we find 'file', for example because we are cross-compiling.
5424 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5425 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5426 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5427 lt_cv_file_magic_cmd='func_win32_libid'
5428 else
5429 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5430 lt_cv_file_magic_cmd='$OBJDUMP -f'
5431 fi
5432 ;;
5433
5434 cegcc*)
5435 # use the weaker test based on 'objdump'. See mingw*.
5436 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5437 lt_cv_file_magic_cmd='$OBJDUMP -f'
5438 ;;
5439
5440 darwin* | rhapsody*)
5441 lt_cv_deplibs_check_method=pass_all
5442 ;;
5443
5444 freebsd* | dragonfly*)
5445 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5446 case $host_cpu in
5447 i*86 )
5448 # Not sure whether the presence of OpenBSD here was a mistake.
5449 # Let's accept both of them until this is cleared up.
5450 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5451 lt_cv_file_magic_cmd=/usr/bin/file
5452 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5453 ;;
5454 esac
5455 else
5456 lt_cv_deplibs_check_method=pass_all
5457 fi
5458 ;;
5459
5460 gnu*)
5461 lt_cv_deplibs_check_method=pass_all
5462 ;;
5463
5464 haiku*)
5465 lt_cv_deplibs_check_method=pass_all
5466 ;;
5467
5468 hpux10.20* | hpux11*)
5469 lt_cv_file_magic_cmd=/usr/bin/file
5470 case $host_cpu in
5471 ia64*)
5472 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5473 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5474 ;;
5475 hppa*64*)
5476 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]'
5477 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5478 ;;
5479 *)
5480 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5481 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5482 ;;
5483 esac
5484 ;;
5485
5486 interix[3-9]*)
5487 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5488 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5489 ;;
5490
5491 irix5* | irix6* | nonstopux*)
5492 case $LD in
5493 *-32|*"-32 ") libmagic=32-bit;;
5494 *-n32|*"-n32 ") libmagic=N32;;
5495 *-64|*"-64 ") libmagic=64-bit;;
5496 *) libmagic=never-match;;
5497 esac
5498 lt_cv_deplibs_check_method=pass_all
5499 ;;
5500
5501 # This must be Linux ELF.
5502 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5503 lt_cv_deplibs_check_method=pass_all
5504 ;;
5505
5506 netbsd*)
5507 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5509 else
5510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5511 fi
5512 ;;
5513
5514 newos6*)
5515 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5516 lt_cv_file_magic_cmd=/usr/bin/file
5517 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5518 ;;
5519
5520 *nto* | *qnx*)
5521 lt_cv_deplibs_check_method=pass_all
5522 ;;
5523
5524 openbsd*)
5525 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5526 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5527 else
5528 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5529 fi
5530 ;;
5531
5532 osf3* | osf4* | osf5*)
5533 lt_cv_deplibs_check_method=pass_all
5534 ;;
5535
5536 rdos*)
5537 lt_cv_deplibs_check_method=pass_all
5538 ;;
5539
5540 solaris*)
5541 lt_cv_deplibs_check_method=pass_all
5542 ;;
5543
5544 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5545 lt_cv_deplibs_check_method=pass_all
5546 ;;
5547
5548 sysv4 | sysv4.3*)
5549 case $host_vendor in
5550 motorola)
5551 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]'
5552 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5553 ;;
5554 ncr)
5555 lt_cv_deplibs_check_method=pass_all
5556 ;;
5557 sequent)
5558 lt_cv_file_magic_cmd='/bin/file'
5559 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5560 ;;
5561 sni)
5562 lt_cv_file_magic_cmd='/bin/file'
5563 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5564 lt_cv_file_magic_test_file=/lib/libc.so
5565 ;;
5566 siemens)
5567 lt_cv_deplibs_check_method=pass_all
5568 ;;
5569 pc)
5570 lt_cv_deplibs_check_method=pass_all
5571 ;;
5572 esac
5573 ;;
5574
5575 tpf*)
5576 lt_cv_deplibs_check_method=pass_all
5577 ;;
5578 esac
5579
5580 fi
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5582 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5583 file_magic_cmd=$lt_cv_file_magic_cmd
5584 deplibs_check_method=$lt_cv_deplibs_check_method
5585 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598 if test -n "$ac_tool_prefix"; then
5599 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5600 set dummy ${ac_tool_prefix}ar; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if test "${ac_cv_prog_AR+set}" = set; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 if test -n "$AR"; then
5607 ac_cv_prog_AR="$AR" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616 ac_cv_prog_AR="${ac_tool_prefix}ar"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5619 fi
5620 done
5621 done
5622 IFS=$as_save_IFS
5623
5624 fi
5625 fi
5626 AR=$ac_cv_prog_AR
5627 if test -n "$AR"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5629 $as_echo "$AR" >&6; }
5630 else
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5633 fi
5634
5635
5636 fi
5637 if test -z "$ac_cv_prog_AR"; then
5638 ac_ct_AR=$AR
5639 # Extract the first word of "ar", so it can be a program name with args.
5640 set dummy ar; ac_word=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 if test -n "$ac_ct_AR"; then
5647 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5648 else
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 for as_dir in $PATH
5651 do
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5656 ac_cv_prog_ac_ct_AR="ar"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 break 2
5659 fi
5660 done
5661 done
5662 IFS=$as_save_IFS
5663
5664 fi
5665 fi
5666 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5667 if test -n "$ac_ct_AR"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5669 $as_echo "$ac_ct_AR" >&6; }
5670 else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5673 fi
5674
5675 if test "x$ac_ct_AR" = x; then
5676 AR="false"
5677 else
5678 case $cross_compiling:$ac_tool_warned in
5679 yes:)
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5682 ac_tool_warned=yes ;;
5683 esac
5684 AR=$ac_ct_AR
5685 fi
5686 else
5687 AR="$ac_cv_prog_AR"
5688 fi
5689
5690 test -z "$AR" && AR=ar
5691 test -z "$AR_FLAGS" && AR_FLAGS=cru
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703 if test -n "$ac_tool_prefix"; then
5704 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5705 set dummy ${ac_tool_prefix}strip; ac_word=$2
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707 $as_echo_n "checking for $ac_word... " >&6; }
5708 if test "${ac_cv_prog_STRIP+set}" = set; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 if test -n "$STRIP"; then
5712 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5713 else
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5716 do
5717 IFS=$as_save_IFS
5718 test -z "$as_dir" && as_dir=.
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5721 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 break 2
5724 fi
5725 done
5726 done
5727 IFS=$as_save_IFS
5728
5729 fi
5730 fi
5731 STRIP=$ac_cv_prog_STRIP
5732 if test -n "$STRIP"; then
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5734 $as_echo "$STRIP" >&6; }
5735 else
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737 $as_echo "no" >&6; }
5738 fi
5739
5740
5741 fi
5742 if test -z "$ac_cv_prog_STRIP"; then
5743 ac_ct_STRIP=$STRIP
5744 # Extract the first word of "strip", so it can be a program name with args.
5745 set dummy strip; ac_word=$2
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5747 $as_echo_n "checking for $ac_word... " >&6; }
5748 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5749 $as_echo_n "(cached) " >&6
5750 else
5751 if test -n "$ac_ct_STRIP"; then
5752 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5753 else
5754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 for as_dir in $PATH
5756 do
5757 IFS=$as_save_IFS
5758 test -z "$as_dir" && as_dir=.
5759 for ac_exec_ext in '' $ac_executable_extensions; do
5760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5761 ac_cv_prog_ac_ct_STRIP="strip"
5762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5763 break 2
5764 fi
5765 done
5766 done
5767 IFS=$as_save_IFS
5768
5769 fi
5770 fi
5771 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5772 if test -n "$ac_ct_STRIP"; then
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5774 $as_echo "$ac_ct_STRIP" >&6; }
5775 else
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5777 $as_echo "no" >&6; }
5778 fi
5779
5780 if test "x$ac_ct_STRIP" = x; then
5781 STRIP=":"
5782 else
5783 case $cross_compiling:$ac_tool_warned in
5784 yes:)
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5787 ac_tool_warned=yes ;;
5788 esac
5789 STRIP=$ac_ct_STRIP
5790 fi
5791 else
5792 STRIP="$ac_cv_prog_STRIP"
5793 fi
5794
5795 test -z "$STRIP" && STRIP=:
5796
5797
5798
5799
5800
5801
5802 if test -n "$ac_tool_prefix"; then
5803 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5804 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 $as_echo_n "checking for $ac_word... " >&6; }
5807 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810 if test -n "$RANLIB"; then
5811 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5812 else
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5815 do
5816 IFS=$as_save_IFS
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5820 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 break 2
5823 fi
5824 done
5825 done
5826 IFS=$as_save_IFS
5827
5828 fi
5829 fi
5830 RANLIB=$ac_cv_prog_RANLIB
5831 if test -n "$RANLIB"; then
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5833 $as_echo "$RANLIB" >&6; }
5834 else
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5837 fi
5838
5839
5840 fi
5841 if test -z "$ac_cv_prog_RANLIB"; then
5842 ac_ct_RANLIB=$RANLIB
5843 # Extract the first word of "ranlib", so it can be a program name with args.
5844 set dummy ranlib; ac_word=$2
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 if test -n "$ac_ct_RANLIB"; then
5851 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5852 else
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856 IFS=$as_save_IFS
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860 ac_cv_prog_ac_ct_RANLIB="ranlib"
5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5862 break 2
5863 fi
5864 done
5865 done
5866 IFS=$as_save_IFS
5867
5868 fi
5869 fi
5870 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5871 if test -n "$ac_ct_RANLIB"; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5873 $as_echo "$ac_ct_RANLIB" >&6; }
5874 else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5877 fi
5878
5879 if test "x$ac_ct_RANLIB" = x; then
5880 RANLIB=":"
5881 else
5882 case $cross_compiling:$ac_tool_warned in
5883 yes:)
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5886 ac_tool_warned=yes ;;
5887 esac
5888 RANLIB=$ac_ct_RANLIB
5889 fi
5890 else
5891 RANLIB="$ac_cv_prog_RANLIB"
5892 fi
5893
5894 test -z "$RANLIB" && RANLIB=:
5895
5896
5897
5898
5899
5900
5901 # Determine commands to create old-style static archives.
5902 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5903 old_postinstall_cmds='chmod 644 $oldlib'
5904 old_postuninstall_cmds=
5905
5906 if test -n "$RANLIB"; then
5907 case $host_os in
5908 openbsd*)
5909 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5910 ;;
5911 *)
5912 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5913 ;;
5914 esac
5915 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5916 fi
5917
5918 case $host_os in
5919 darwin*)
5920 lock_old_archive_extraction=yes ;;
5921 *)
5922 lock_old_archive_extraction=no ;;
5923 esac
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963 # If no C compiler was specified, use CC.
5964 LTCC=${LTCC-"$CC"}
5965
5966 # If no C compiler flags were specified, use CFLAGS.
5967 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5968
5969 # Allow CC to be a program name with arguments.
5970 compiler=$CC
5971
5972
5973 # Check for command to grab the raw symbol name followed by C symbol from nm.
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5975 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5976 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979
5980 # These are sane defaults that work on at least a few old systems.
5981 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5982
5983 # Character class describing NM global symbol codes.
5984 symcode='[BCDEGRST]'
5985
5986 # Regexp to match symbols that can be accessed directly from C.
5987 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5988
5989 # Define system-specific variables.
5990 case $host_os in
5991 aix*)
5992 symcode='[BCDT]'
5993 ;;
5994 cygwin* | mingw* | pw32* | cegcc*)
5995 symcode='[ABCDGISTW]'
5996 ;;
5997 hpux*)
5998 if test "$host_cpu" = ia64; then
5999 symcode='[ABCDEGRST]'
6000 fi
6001 ;;
6002 irix* | nonstopux*)
6003 symcode='[BCDEGRST]'
6004 ;;
6005 osf*)
6006 symcode='[BCDEGQRST]'
6007 ;;
6008 solaris*)
6009 symcode='[BDRT]'
6010 ;;
6011 sco3.2v5*)
6012 symcode='[DT]'
6013 ;;
6014 sysv4.2uw2*)
6015 symcode='[DT]'
6016 ;;
6017 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6018 symcode='[ABDT]'
6019 ;;
6020 sysv4)
6021 symcode='[DFNSTU]'
6022 ;;
6023 esac
6024
6025 # If we're using GNU nm, then use its standard symbol codes.
6026 case `$NM -V 2>&1` in
6027 *GNU* | *'with BFD'*)
6028 symcode='[ABCDGIRSTW]' ;;
6029 esac
6030
6031 # Transform an extracted symbol line into a proper C declaration.
6032 # Some systems (esp. on ia64) link data and code symbols differently,
6033 # so use this general approach.
6034 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6035
6036 # Transform an extracted symbol line into symbol name and symbol address
6037 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6038 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'"
6039
6040 # Handle CRLF in mingw tool chain
6041 opt_cr=
6042 case $build_os in
6043 mingw*)
6044 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6045 ;;
6046 esac
6047
6048 # Try without a prefix underscore, then with it.
6049 for ac_symprfx in "" "_"; do
6050
6051 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6052 symxfrm="\\1 $ac_symprfx\\2 \\2"
6053
6054 # Write the raw and C identifiers.
6055 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6056 # Fake it for dumpbin and say T for any non-static function
6057 # and D for any global variable.
6058 # Also find C++ and __fastcall symbols from MSVC++,
6059 # which start with @ or ?.
6060 lt_cv_sys_global_symbol_pipe="$AWK '"\
6061 " {last_section=section; section=\$ 3};"\
6062 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6063 " \$ 0!~/External *\|/{next};"\
6064 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6065 " {if(hide[section]) next};"\
6066 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6067 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6068 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6069 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6070 " ' prfx=^$ac_symprfx"
6071 else
6072 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6073 fi
6074
6075 # Check to see that the pipe works correctly.
6076 pipe_works=no
6077
6078 rm -f conftest*
6079 cat > conftest.$ac_ext <<_LT_EOF
6080 #ifdef __cplusplus
6081 extern "C" {
6082 #endif
6083 char nm_test_var;
6084 void nm_test_func(void);
6085 void nm_test_func(void){}
6086 #ifdef __cplusplus
6087 }
6088 #endif
6089 int main(){nm_test_var='a';nm_test_func();return(0);}
6090 _LT_EOF
6091
6092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6093 (eval $ac_compile) 2>&5
6094 ac_status=$?
6095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6096 test $ac_status = 0; }; then
6097 # Now try to grab the symbols.
6098 nlist=conftest.nm
6099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6100 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6101 ac_status=$?
6102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6103 test $ac_status = 0; } && test -s "$nlist"; then
6104 # Try sorting and uniquifying the output.
6105 if sort "$nlist" | uniq > "$nlist"T; then
6106 mv -f "$nlist"T "$nlist"
6107 else
6108 rm -f "$nlist"T
6109 fi
6110
6111 # Make sure that we snagged all the symbols we need.
6112 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6113 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6114 cat <<_LT_EOF > conftest.$ac_ext
6115 #ifdef __cplusplus
6116 extern "C" {
6117 #endif
6118
6119 _LT_EOF
6120 # Now generate the symbol file.
6121 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6122
6123 cat <<_LT_EOF >> conftest.$ac_ext
6124
6125 /* The mapping between symbol names and symbols. */
6126 const struct {
6127 const char *name;
6128 void *address;
6129 }
6130 lt__PROGRAM__LTX_preloaded_symbols[] =
6131 {
6132 { "@PROGRAM@", (void *) 0 },
6133 _LT_EOF
6134 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6135 cat <<\_LT_EOF >> conftest.$ac_ext
6136 {0, (void *) 0}
6137 };
6138
6139 /* This works around a problem in FreeBSD linker */
6140 #ifdef FREEBSD_WORKAROUND
6141 static const void *lt_preloaded_setup() {
6142 return lt__PROGRAM__LTX_preloaded_symbols;
6143 }
6144 #endif
6145
6146 #ifdef __cplusplus
6147 }
6148 #endif
6149 _LT_EOF
6150 # Now try linking the two files.
6151 mv conftest.$ac_objext conftstm.$ac_objext
6152 lt_save_LIBS="$LIBS"
6153 lt_save_CFLAGS="$CFLAGS"
6154 LIBS="conftstm.$ac_objext"
6155 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6157 (eval $ac_link) 2>&5
6158 ac_status=$?
6159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6160 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6161 pipe_works=yes
6162 fi
6163 LIBS="$lt_save_LIBS"
6164 CFLAGS="$lt_save_CFLAGS"
6165 else
6166 echo "cannot find nm_test_func in $nlist" >&5
6167 fi
6168 else
6169 echo "cannot find nm_test_var in $nlist" >&5
6170 fi
6171 else
6172 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6173 fi
6174 else
6175 echo "$progname: failed program was:" >&5
6176 cat conftest.$ac_ext >&5
6177 fi
6178 rm -rf conftest* conftst*
6179
6180 # Do not use the global_symbol_pipe unless it works.
6181 if test "$pipe_works" = yes; then
6182 break
6183 else
6184 lt_cv_sys_global_symbol_pipe=
6185 fi
6186 done
6187
6188 fi
6189
6190 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6191 lt_cv_sys_global_symbol_to_cdecl=
6192 fi
6193 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6195 $as_echo "failed" >&6; }
6196 else
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6198 $as_echo "ok" >&6; }
6199 fi
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222 # Check whether --enable-libtool-lock was given.
6223 if test "${enable_libtool_lock+set}" = set; then :
6224 enableval=$enable_libtool_lock;
6225 fi
6226
6227 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6228
6229 # Some flags need to be propagated to the compiler or linker for good
6230 # libtool support.
6231 case $host in
6232 ia64-*-hpux*)
6233 # Find out which ABI we are using.
6234 echo 'int i;' > conftest.$ac_ext
6235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6236 (eval $ac_compile) 2>&5
6237 ac_status=$?
6238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6239 test $ac_status = 0; }; then
6240 case `/usr/bin/file conftest.$ac_objext` in
6241 *ELF-32*)
6242 HPUX_IA64_MODE="32"
6243 ;;
6244 *ELF-64*)
6245 HPUX_IA64_MODE="64"
6246 ;;
6247 esac
6248 fi
6249 rm -rf conftest*
6250 ;;
6251 *-*-irix6*)
6252 # Find out which ABI we are using.
6253 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6255 (eval $ac_compile) 2>&5
6256 ac_status=$?
6257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6258 test $ac_status = 0; }; then
6259 if test "$lt_cv_prog_gnu_ld" = yes; then
6260 case `/usr/bin/file conftest.$ac_objext` in
6261 *32-bit*)
6262 LD="${LD-ld} -melf32bsmip"
6263 ;;
6264 *N32*)
6265 LD="${LD-ld} -melf32bmipn32"
6266 ;;
6267 *64-bit*)
6268 LD="${LD-ld} -melf64bmip"
6269 ;;
6270 esac
6271 else
6272 case `/usr/bin/file conftest.$ac_objext` in
6273 *32-bit*)
6274 LD="${LD-ld} -32"
6275 ;;
6276 *N32*)
6277 LD="${LD-ld} -n32"
6278 ;;
6279 *64-bit*)
6280 LD="${LD-ld} -64"
6281 ;;
6282 esac
6283 fi
6284 fi
6285 rm -rf conftest*
6286 ;;
6287
6288 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6289 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6290 # Find out which ABI we are using.
6291 echo 'int i;' > conftest.$ac_ext
6292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6293 (eval $ac_compile) 2>&5
6294 ac_status=$?
6295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6296 test $ac_status = 0; }; then
6297 case `/usr/bin/file conftest.o` in
6298 *32-bit*)
6299 case $host in
6300 x86_64-*kfreebsd*-gnu)
6301 LD="${LD-ld} -m elf_i386_fbsd"
6302 ;;
6303 x86_64-*linux*)
6304 case `/usr/bin/file conftest.o` in
6305 *x86-64*)
6306 LD="${LD-ld} -m elf32_x86_64"
6307 ;;
6308 *)
6309 LD="${LD-ld} -m elf_i386"
6310 ;;
6311 esac
6312 ;;
6313 powerpc64le-*linux*)
6314 LD="${LD-ld} -m elf32lppclinux"
6315 ;;
6316 powerpc64-*linux*)
6317 LD="${LD-ld} -m elf32ppclinux"
6318 ;;
6319 s390x-*linux*)
6320 LD="${LD-ld} -m elf_s390"
6321 ;;
6322 sparc64-*linux*)
6323 LD="${LD-ld} -m elf32_sparc"
6324 ;;
6325 esac
6326 ;;
6327 *64-bit*)
6328 case $host in
6329 x86_64-*kfreebsd*-gnu)
6330 LD="${LD-ld} -m elf_x86_64_fbsd"
6331 ;;
6332 x86_64-*linux*)
6333 LD="${LD-ld} -m elf_x86_64"
6334 ;;
6335 powerpcle-*linux*)
6336 LD="${LD-ld} -m elf64lppc"
6337 ;;
6338 powerpc-*linux*)
6339 LD="${LD-ld} -m elf64ppc"
6340 ;;
6341 s390*-*linux*|s390*-*tpf*)
6342 LD="${LD-ld} -m elf64_s390"
6343 ;;
6344 sparc*-*linux*)
6345 LD="${LD-ld} -m elf64_sparc"
6346 ;;
6347 esac
6348 ;;
6349 esac
6350 fi
6351 rm -rf conftest*
6352 ;;
6353
6354 *-*-sco3.2v5*)
6355 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6356 SAVE_CFLAGS="$CFLAGS"
6357 CFLAGS="$CFLAGS -belf"
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6359 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6360 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6361 $as_echo_n "(cached) " >&6
6362 else
6363 ac_ext=c
6364 ac_cpp='$CPP $CPPFLAGS'
6365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6368
6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h. */
6371
6372 int
6373 main ()
6374 {
6375
6376 ;
6377 return 0;
6378 }
6379 _ACEOF
6380 if ac_fn_c_try_link "$LINENO"; then :
6381 lt_cv_cc_needs_belf=yes
6382 else
6383 lt_cv_cc_needs_belf=no
6384 fi
6385 rm -f core conftest.err conftest.$ac_objext \
6386 conftest$ac_exeext conftest.$ac_ext
6387 ac_ext=c
6388 ac_cpp='$CPP $CPPFLAGS'
6389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6392
6393 fi
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6395 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6396 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6397 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6398 CFLAGS="$SAVE_CFLAGS"
6399 fi
6400 ;;
6401 sparc*-*solaris*)
6402 # Find out which ABI we are using.
6403 echo 'int i;' > conftest.$ac_ext
6404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6405 (eval $ac_compile) 2>&5
6406 ac_status=$?
6407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6408 test $ac_status = 0; }; then
6409 case `/usr/bin/file conftest.o` in
6410 *64-bit*)
6411 case $lt_cv_prog_gnu_ld in
6412 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6413 *)
6414 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6415 LD="${LD-ld} -64"
6416 fi
6417 ;;
6418 esac
6419 ;;
6420 esac
6421 fi
6422 rm -rf conftest*
6423 ;;
6424 esac
6425
6426 need_locks="$enable_libtool_lock"
6427
6428
6429 case $host_os in
6430 rhapsody* | darwin*)
6431 if test -n "$ac_tool_prefix"; then
6432 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6433 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6437 $as_echo_n "(cached) " >&6
6438 else
6439 if test -n "$DSYMUTIL"; then
6440 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6441 else
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6444 do
6445 IFS=$as_save_IFS
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 break 2
6452 fi
6453 done
6454 done
6455 IFS=$as_save_IFS
6456
6457 fi
6458 fi
6459 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6460 if test -n "$DSYMUTIL"; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6462 $as_echo "$DSYMUTIL" >&6; }
6463 else
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6466 fi
6467
6468
6469 fi
6470 if test -z "$ac_cv_prog_DSYMUTIL"; then
6471 ac_ct_DSYMUTIL=$DSYMUTIL
6472 # Extract the first word of "dsymutil", so it can be a program name with args.
6473 set dummy dsymutil; ac_word=$2
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 $as_echo_n "checking for $ac_word... " >&6; }
6476 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6477 $as_echo_n "(cached) " >&6
6478 else
6479 if test -n "$ac_ct_DSYMUTIL"; then
6480 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6481 else
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 for as_dir in $PATH
6484 do
6485 IFS=$as_save_IFS
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6489 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 break 2
6492 fi
6493 done
6494 done
6495 IFS=$as_save_IFS
6496
6497 fi
6498 fi
6499 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6500 if test -n "$ac_ct_DSYMUTIL"; then
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6502 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6503 else
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6506 fi
6507
6508 if test "x$ac_ct_DSYMUTIL" = x; then
6509 DSYMUTIL=":"
6510 else
6511 case $cross_compiling:$ac_tool_warned in
6512 yes:)
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6515 ac_tool_warned=yes ;;
6516 esac
6517 DSYMUTIL=$ac_ct_DSYMUTIL
6518 fi
6519 else
6520 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6521 fi
6522
6523 if test -n "$ac_tool_prefix"; then
6524 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6525 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6527 $as_echo_n "checking for $ac_word... " >&6; }
6528 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6529 $as_echo_n "(cached) " >&6
6530 else
6531 if test -n "$NMEDIT"; then
6532 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6533 else
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6536 do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6544 fi
6545 done
6546 done
6547 IFS=$as_save_IFS
6548
6549 fi
6550 fi
6551 NMEDIT=$ac_cv_prog_NMEDIT
6552 if test -n "$NMEDIT"; then
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6554 $as_echo "$NMEDIT" >&6; }
6555 else
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 $as_echo "no" >&6; }
6558 fi
6559
6560
6561 fi
6562 if test -z "$ac_cv_prog_NMEDIT"; then
6563 ac_ct_NMEDIT=$NMEDIT
6564 # Extract the first word of "nmedit", so it can be a program name with args.
6565 set dummy nmedit; ac_word=$2
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 if test -n "$ac_ct_NMEDIT"; then
6572 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6584 fi
6585 done
6586 done
6587 IFS=$as_save_IFS
6588
6589 fi
6590 fi
6591 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6592 if test -n "$ac_ct_NMEDIT"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6594 $as_echo "$ac_ct_NMEDIT" >&6; }
6595 else
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597 $as_echo "no" >&6; }
6598 fi
6599
6600 if test "x$ac_ct_NMEDIT" = x; then
6601 NMEDIT=":"
6602 else
6603 case $cross_compiling:$ac_tool_warned in
6604 yes:)
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6607 ac_tool_warned=yes ;;
6608 esac
6609 NMEDIT=$ac_ct_NMEDIT
6610 fi
6611 else
6612 NMEDIT="$ac_cv_prog_NMEDIT"
6613 fi
6614
6615 if test -n "$ac_tool_prefix"; then
6616 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6617 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619 $as_echo_n "checking for $ac_word... " >&6; }
6620 if test "${ac_cv_prog_LIPO+set}" = set; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 if test -n "$LIPO"; then
6624 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6625 else
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6628 do
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6636 fi
6637 done
6638 done
6639 IFS=$as_save_IFS
6640
6641 fi
6642 fi
6643 LIPO=$ac_cv_prog_LIPO
6644 if test -n "$LIPO"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6646 $as_echo "$LIPO" >&6; }
6647 else
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649 $as_echo "no" >&6; }
6650 fi
6651
6652
6653 fi
6654 if test -z "$ac_cv_prog_LIPO"; then
6655 ac_ct_LIPO=$LIPO
6656 # Extract the first word of "lipo", so it can be a program name with args.
6657 set dummy lipo; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 if test -n "$ac_ct_LIPO"; then
6664 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_prog_ac_ct_LIPO="lipo"
6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677 done
6678 done
6679 IFS=$as_save_IFS
6680
6681 fi
6682 fi
6683 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6684 if test -n "$ac_ct_LIPO"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6686 $as_echo "$ac_ct_LIPO" >&6; }
6687 else
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6690 fi
6691
6692 if test "x$ac_ct_LIPO" = x; then
6693 LIPO=":"
6694 else
6695 case $cross_compiling:$ac_tool_warned in
6696 yes:)
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6699 ac_tool_warned=yes ;;
6700 esac
6701 LIPO=$ac_ct_LIPO
6702 fi
6703 else
6704 LIPO="$ac_cv_prog_LIPO"
6705 fi
6706
6707 if test -n "$ac_tool_prefix"; then
6708 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6709 set dummy ${ac_tool_prefix}otool; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 if test -n "$OTOOL"; then
6716 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 OTOOL=$ac_cv_prog_OTOOL
6736 if test -n "$OTOOL"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6738 $as_echo "$OTOOL" >&6; }
6739 else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6742 fi
6743
6744
6745 fi
6746 if test -z "$ac_cv_prog_OTOOL"; then
6747 ac_ct_OTOOL=$OTOOL
6748 # Extract the first word of "otool", so it can be a program name with args.
6749 set dummy otool; ac_word=$2
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751 $as_echo_n "checking for $ac_word... " >&6; }
6752 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6753 $as_echo_n "(cached) " >&6
6754 else
6755 if test -n "$ac_ct_OTOOL"; then
6756 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6757 else
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_prog_ac_ct_OTOOL="otool"
6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6768 fi
6769 done
6770 done
6771 IFS=$as_save_IFS
6772
6773 fi
6774 fi
6775 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6776 if test -n "$ac_ct_OTOOL"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6778 $as_echo "$ac_ct_OTOOL" >&6; }
6779 else
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6782 fi
6783
6784 if test "x$ac_ct_OTOOL" = x; then
6785 OTOOL=":"
6786 else
6787 case $cross_compiling:$ac_tool_warned in
6788 yes:)
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791 ac_tool_warned=yes ;;
6792 esac
6793 OTOOL=$ac_ct_OTOOL
6794 fi
6795 else
6796 OTOOL="$ac_cv_prog_OTOOL"
6797 fi
6798
6799 if test -n "$ac_tool_prefix"; then
6800 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6801 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803 $as_echo_n "checking for $ac_word... " >&6; }
6804 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6805 $as_echo_n "(cached) " >&6
6806 else
6807 if test -n "$OTOOL64"; then
6808 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821 done
6822 done
6823 IFS=$as_save_IFS
6824
6825 fi
6826 fi
6827 OTOOL64=$ac_cv_prog_OTOOL64
6828 if test -n "$OTOOL64"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6830 $as_echo "$OTOOL64" >&6; }
6831 else
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6834 fi
6835
6836
6837 fi
6838 if test -z "$ac_cv_prog_OTOOL64"; then
6839 ac_ct_OTOOL64=$OTOOL64
6840 # Extract the first word of "otool64", so it can be a program name with args.
6841 set dummy otool64; ac_word=$2
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843 $as_echo_n "checking for $ac_word... " >&6; }
6844 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 if test -n "$ac_ct_OTOOL64"; then
6848 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6852 do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6857 ac_cv_prog_ac_ct_OTOOL64="otool64"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861 done
6862 done
6863 IFS=$as_save_IFS
6864
6865 fi
6866 fi
6867 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6868 if test -n "$ac_ct_OTOOL64"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6870 $as_echo "$ac_ct_OTOOL64" >&6; }
6871 else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6874 fi
6875
6876 if test "x$ac_ct_OTOOL64" = x; then
6877 OTOOL64=":"
6878 else
6879 case $cross_compiling:$ac_tool_warned in
6880 yes:)
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6883 ac_tool_warned=yes ;;
6884 esac
6885 OTOOL64=$ac_ct_OTOOL64
6886 fi
6887 else
6888 OTOOL64="$ac_cv_prog_OTOOL64"
6889 fi
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6918 $as_echo_n "checking for -single_module linker flag... " >&6; }
6919 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6920 $as_echo_n "(cached) " >&6
6921 else
6922 lt_cv_apple_cc_single_mod=no
6923 if test -z "${LT_MULTI_MODULE}"; then
6924 # By default we will add the -single_module flag. You can override
6925 # by either setting the environment variable LT_MULTI_MODULE
6926 # non-empty at configure time, or by adding -multi_module to the
6927 # link flags.
6928 rm -rf libconftest.dylib*
6929 echo "int foo(void){return 1;}" > conftest.c
6930 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6931 -dynamiclib -Wl,-single_module conftest.c" >&5
6932 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6933 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6934 _lt_result=$?
6935 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6936 lt_cv_apple_cc_single_mod=yes
6937 else
6938 cat conftest.err >&5
6939 fi
6940 rm -rf libconftest.dylib*
6941 rm -f conftest.*
6942 fi
6943 fi
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6945 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6947 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6948 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6949 $as_echo_n "(cached) " >&6
6950 else
6951 lt_cv_ld_exported_symbols_list=no
6952 save_LDFLAGS=$LDFLAGS
6953 echo "_main" > conftest.sym
6954 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6957
6958 int
6959 main ()
6960 {
6961
6962 ;
6963 return 0;
6964 }
6965 _ACEOF
6966 if ac_fn_c_try_link "$LINENO"; then :
6967 lt_cv_ld_exported_symbols_list=yes
6968 else
6969 lt_cv_ld_exported_symbols_list=no
6970 fi
6971 rm -f core conftest.err conftest.$ac_objext \
6972 conftest$ac_exeext conftest.$ac_ext
6973 LDFLAGS="$save_LDFLAGS"
6974
6975 fi
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6977 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6979 $as_echo_n "checking for -force_load linker flag... " >&6; }
6980 if test "${lt_cv_ld_force_load+set}" = set; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 lt_cv_ld_force_load=no
6984 cat > conftest.c << _LT_EOF
6985 int forced_loaded() { return 2;}
6986 _LT_EOF
6987 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6988 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6989 echo "$AR cru libconftest.a conftest.o" >&5
6990 $AR cru libconftest.a conftest.o 2>&5
6991 cat > conftest.c << _LT_EOF
6992 int main() { return 0;}
6993 _LT_EOF
6994 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6995 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6996 _lt_result=$?
6997 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6998 lt_cv_ld_force_load=yes
6999 else
7000 cat conftest.err >&5
7001 fi
7002 rm -f conftest.err libconftest.a conftest conftest.c
7003 rm -rf conftest.dSYM
7004
7005 fi
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7007 $as_echo "$lt_cv_ld_force_load" >&6; }
7008 case $host_os in
7009 rhapsody* | darwin1.[012])
7010 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7011 darwin1.*)
7012 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7013 darwin*) # darwin 5.x on
7014 # if running on 10.5 or later, the deployment target defaults
7015 # to the OS version, if on x86, and 10.4, the deployment
7016 # target defaults to 10.4. Don't you love it?
7017 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7018 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7019 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7020 10.[012]*)
7021 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7022 10.*)
7023 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7024 esac
7025 ;;
7026 esac
7027 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7028 _lt_dar_single_mod='$single_module'
7029 fi
7030 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7031 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7032 else
7033 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7034 fi
7035 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7036 _lt_dsymutil='~$DSYMUTIL $lib || :'
7037 else
7038 _lt_dsymutil=
7039 fi
7040 ;;
7041 esac
7042
7043 for ac_header in dlfcn.h
7044 do :
7045 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7046 "
7047 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7048 cat >>confdefs.h <<_ACEOF
7049 #define HAVE_DLFCN_H 1
7050 _ACEOF
7051
7052 fi
7053
7054 done
7055
7056
7057
7058
7059
7060 # Set options
7061 # Check whether --enable-static was given.
7062 if test "${enable_static+set}" = set; then :
7063 enableval=$enable_static; p=${PACKAGE-default}
7064 case $enableval in
7065 yes) enable_static=yes ;;
7066 no) enable_static=no ;;
7067 *)
7068 enable_static=no
7069 # Look at the argument we got. We use all the common list separators.
7070 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7071 for pkg in $enableval; do
7072 IFS="$lt_save_ifs"
7073 if test "X$pkg" = "X$p"; then
7074 enable_static=yes
7075 fi
7076 done
7077 IFS="$lt_save_ifs"
7078 ;;
7079 esac
7080 else
7081 enable_static=no
7082 fi
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093 enable_dlopen=no
7094
7095
7096 enable_win32_dll=no
7097
7098
7099 # Check whether --enable-shared was given.
7100 if test "${enable_shared+set}" = set; then :
7101 enableval=$enable_shared; p=${PACKAGE-default}
7102 case $enableval in
7103 yes) enable_shared=yes ;;
7104 no) enable_shared=no ;;
7105 *)
7106 enable_shared=no
7107 # Look at the argument we got. We use all the common list separators.
7108 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7109 for pkg in $enableval; do
7110 IFS="$lt_save_ifs"
7111 if test "X$pkg" = "X$p"; then
7112 enable_shared=yes
7113 fi
7114 done
7115 IFS="$lt_save_ifs"
7116 ;;
7117 esac
7118 else
7119 enable_shared=yes
7120 fi
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132 # Check whether --with-pic was given.
7133 if test "${with_pic+set}" = set; then :
7134 withval=$with_pic; pic_mode="$withval"
7135 else
7136 pic_mode=default
7137 fi
7138
7139
7140 test -z "$pic_mode" && pic_mode=default
7141
7142
7143
7144
7145
7146
7147
7148 # Check whether --enable-fast-install was given.
7149 if test "${enable_fast_install+set}" = set; then :
7150 enableval=$enable_fast_install; p=${PACKAGE-default}
7151 case $enableval in
7152 yes) enable_fast_install=yes ;;
7153 no) enable_fast_install=no ;;
7154 *)
7155 enable_fast_install=no
7156 # Look at the argument we got. We use all the common list separators.
7157 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7158 for pkg in $enableval; do
7159 IFS="$lt_save_ifs"
7160 if test "X$pkg" = "X$p"; then
7161 enable_fast_install=yes
7162 fi
7163 done
7164 IFS="$lt_save_ifs"
7165 ;;
7166 esac
7167 else
7168 enable_fast_install=yes
7169 fi
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181 # This can be used to rebuild libtool when needed
7182 LIBTOOL_DEPS="$ltmain"
7183
7184 # Always use our own libtool.
7185 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212 test -z "$LN_S" && LN_S="ln -s"
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227 if test -n "${ZSH_VERSION+set}" ; then
7228 setopt NO_GLOB_SUBST
7229 fi
7230
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7232 $as_echo_n "checking for objdir... " >&6; }
7233 if test "${lt_cv_objdir+set}" = set; then :
7234 $as_echo_n "(cached) " >&6
7235 else
7236 rm -f .libs 2>/dev/null
7237 mkdir .libs 2>/dev/null
7238 if test -d .libs; then
7239 lt_cv_objdir=.libs
7240 else
7241 # MS-DOS does not allow filenames that begin with a dot.
7242 lt_cv_objdir=_libs
7243 fi
7244 rmdir .libs 2>/dev/null
7245 fi
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7247 $as_echo "$lt_cv_objdir" >&6; }
7248 objdir=$lt_cv_objdir
7249
7250
7251
7252
7253
7254 cat >>confdefs.h <<_ACEOF
7255 #define LT_OBJDIR "$lt_cv_objdir/"
7256 _ACEOF
7257
7258
7259
7260
7261 case $host_os in
7262 aix3*)
7263 # AIX sometimes has problems with the GCC collect2 program. For some
7264 # reason, if we set the COLLECT_NAMES environment variable, the problems
7265 # vanish in a puff of smoke.
7266 if test "X${COLLECT_NAMES+set}" != Xset; then
7267 COLLECT_NAMES=
7268 export COLLECT_NAMES
7269 fi
7270 ;;
7271 esac
7272
7273 # Global variables:
7274 ofile=libtool
7275 can_build_shared=yes
7276
7277 # All known linkers require a `.a' archive for static linking (except MSVC,
7278 # which needs '.lib').
7279 libext=a
7280
7281 with_gnu_ld="$lt_cv_prog_gnu_ld"
7282
7283 old_CC="$CC"
7284 old_CFLAGS="$CFLAGS"
7285
7286 # Set sane defaults for various variables
7287 test -z "$CC" && CC=cc
7288 test -z "$LTCC" && LTCC=$CC
7289 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7290 test -z "$LD" && LD=ld
7291 test -z "$ac_objext" && ac_objext=o
7292
7293 for cc_temp in $compiler""; do
7294 case $cc_temp in
7295 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7296 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7297 \-*) ;;
7298 *) break;;
7299 esac
7300 done
7301 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7302
7303
7304 # Only perform the check for file, if the check method requires it
7305 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7306 case $deplibs_check_method in
7307 file_magic*)
7308 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7310 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7311 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7312 $as_echo_n "(cached) " >&6
7313 else
7314 case $MAGIC_CMD in
7315 [\\/*] | ?:[\\/]*)
7316 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7317 ;;
7318 *)
7319 lt_save_MAGIC_CMD="$MAGIC_CMD"
7320 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7321 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7322 for ac_dir in $ac_dummy; do
7323 IFS="$lt_save_ifs"
7324 test -z "$ac_dir" && ac_dir=.
7325 if test -f $ac_dir/${ac_tool_prefix}file; then
7326 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7327 if test -n "$file_magic_test_file"; then
7328 case $deplibs_check_method in
7329 "file_magic "*)
7330 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7332 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7333 $EGREP "$file_magic_regex" > /dev/null; then
7334 :
7335 else
7336 cat <<_LT_EOF 1>&2
7337
7338 *** Warning: the command libtool uses to detect shared libraries,
7339 *** $file_magic_cmd, produces output that libtool cannot recognize.
7340 *** The result is that libtool may fail to recognize shared libraries
7341 *** as such. This will affect the creation of libtool libraries that
7342 *** depend on shared libraries, but programs linked with such libtool
7343 *** libraries will work regardless of this problem. Nevertheless, you
7344 *** may want to report the problem to your system manager and/or to
7345 *** bug-libtool@gnu.org
7346
7347 _LT_EOF
7348 fi ;;
7349 esac
7350 fi
7351 break
7352 fi
7353 done
7354 IFS="$lt_save_ifs"
7355 MAGIC_CMD="$lt_save_MAGIC_CMD"
7356 ;;
7357 esac
7358 fi
7359
7360 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7361 if test -n "$MAGIC_CMD"; then
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7363 $as_echo "$MAGIC_CMD" >&6; }
7364 else
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7367 fi
7368
7369
7370
7371
7372
7373 if test -z "$lt_cv_path_MAGIC_CMD"; then
7374 if test -n "$ac_tool_prefix"; then
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7376 $as_echo_n "checking for file... " >&6; }
7377 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7378 $as_echo_n "(cached) " >&6
7379 else
7380 case $MAGIC_CMD in
7381 [\\/*] | ?:[\\/]*)
7382 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7383 ;;
7384 *)
7385 lt_save_MAGIC_CMD="$MAGIC_CMD"
7386 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7387 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7388 for ac_dir in $ac_dummy; do
7389 IFS="$lt_save_ifs"
7390 test -z "$ac_dir" && ac_dir=.
7391 if test -f $ac_dir/file; then
7392 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7393 if test -n "$file_magic_test_file"; then
7394 case $deplibs_check_method in
7395 "file_magic "*)
7396 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7397 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7398 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7399 $EGREP "$file_magic_regex" > /dev/null; then
7400 :
7401 else
7402 cat <<_LT_EOF 1>&2
7403
7404 *** Warning: the command libtool uses to detect shared libraries,
7405 *** $file_magic_cmd, produces output that libtool cannot recognize.
7406 *** The result is that libtool may fail to recognize shared libraries
7407 *** as such. This will affect the creation of libtool libraries that
7408 *** depend on shared libraries, but programs linked with such libtool
7409 *** libraries will work regardless of this problem. Nevertheless, you
7410 *** may want to report the problem to your system manager and/or to
7411 *** bug-libtool@gnu.org
7412
7413 _LT_EOF
7414 fi ;;
7415 esac
7416 fi
7417 break
7418 fi
7419 done
7420 IFS="$lt_save_ifs"
7421 MAGIC_CMD="$lt_save_MAGIC_CMD"
7422 ;;
7423 esac
7424 fi
7425
7426 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7427 if test -n "$MAGIC_CMD"; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7429 $as_echo "$MAGIC_CMD" >&6; }
7430 else
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7433 fi
7434
7435
7436 else
7437 MAGIC_CMD=:
7438 fi
7439 fi
7440
7441 fi
7442 ;;
7443 esac
7444
7445 # Use C for the default configuration in the libtool script
7446
7447 lt_save_CC="$CC"
7448 ac_ext=c
7449 ac_cpp='$CPP $CPPFLAGS'
7450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7453
7454
7455 # Source file extension for C test sources.
7456 ac_ext=c
7457
7458 # Object file extension for compiled C test sources.
7459 objext=o
7460 objext=$objext
7461
7462 # Code to be used in simple compile tests
7463 lt_simple_compile_test_code="int some_variable = 0;"
7464
7465 # Code to be used in simple link tests
7466 lt_simple_link_test_code='int main(){return(0);}'
7467
7468
7469
7470
7471
7472
7473
7474 # If no C compiler was specified, use CC.
7475 LTCC=${LTCC-"$CC"}
7476
7477 # If no C compiler flags were specified, use CFLAGS.
7478 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7479
7480 # Allow CC to be a program name with arguments.
7481 compiler=$CC
7482
7483 # Save the default compiler, since it gets overwritten when the other
7484 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7485 compiler_DEFAULT=$CC
7486
7487 # save warnings/boilerplate of simple test code
7488 ac_outfile=conftest.$ac_objext
7489 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7490 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7491 _lt_compiler_boilerplate=`cat conftest.err`
7492 $RM conftest*
7493
7494 ac_outfile=conftest.$ac_objext
7495 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7496 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7497 _lt_linker_boilerplate=`cat conftest.err`
7498 $RM -r conftest*
7499
7500
7501 ## CAVEAT EMPTOR:
7502 ## There is no encapsulation within the following macros, do not change
7503 ## the running order or otherwise move them around unless you know exactly
7504 ## what you are doing...
7505 if test -n "$compiler"; then
7506
7507 lt_prog_compiler_no_builtin_flag=
7508
7509 if test "$GCC" = yes; then
7510 case $cc_basename in
7511 nvcc*)
7512 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7513 *)
7514 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7515 esac
7516
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7518 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7519 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7520 $as_echo_n "(cached) " >&6
7521 else
7522 lt_cv_prog_compiler_rtti_exceptions=no
7523 ac_outfile=conftest.$ac_objext
7524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7525 lt_compiler_flag="-fno-rtti -fno-exceptions"
7526 # Insert the option either (1) after the last *FLAGS variable, or
7527 # (2) before a word containing "conftest.", or (3) at the end.
7528 # Note that $ac_compile itself does not contain backslashes and begins
7529 # with a dollar sign (not a hyphen), so the echo should work correctly.
7530 # The option is referenced via a variable to avoid confusing sed.
7531 lt_compile=`echo "$ac_compile" | $SED \
7532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7534 -e 's:$: $lt_compiler_flag:'`
7535 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7536 (eval "$lt_compile" 2>conftest.err)
7537 ac_status=$?
7538 cat conftest.err >&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 if (exit $ac_status) && test -s "$ac_outfile"; then
7541 # The compiler can only warn and ignore the option if not recognized
7542 # So say no if there are warnings other than the usual output.
7543 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7544 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7545 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7546 lt_cv_prog_compiler_rtti_exceptions=yes
7547 fi
7548 fi
7549 $RM conftest*
7550
7551 fi
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7553 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7554
7555 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7556 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7557 else
7558 :
7559 fi
7560
7561 fi
7562
7563
7564
7565
7566
7567
7568 lt_prog_compiler_wl=
7569 lt_prog_compiler_pic=
7570 lt_prog_compiler_static=
7571
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7573 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7574
7575 if test "$GCC" = yes; then
7576 lt_prog_compiler_wl='-Wl,'
7577 lt_prog_compiler_static='-static'
7578
7579 case $host_os in
7580 aix*)
7581 # All AIX code is PIC.
7582 if test "$host_cpu" = ia64; then
7583 # AIX 5 now supports IA64 processor
7584 lt_prog_compiler_static='-Bstatic'
7585 fi
7586 lt_prog_compiler_pic='-fPIC'
7587 ;;
7588
7589 amigaos*)
7590 case $host_cpu in
7591 powerpc)
7592 # see comment about AmigaOS4 .so support
7593 lt_prog_compiler_pic='-fPIC'
7594 ;;
7595 m68k)
7596 # FIXME: we need at least 68020 code to build shared libraries, but
7597 # adding the `-m68020' flag to GCC prevents building anything better,
7598 # like `-m68040'.
7599 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7600 ;;
7601 esac
7602 ;;
7603
7604 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7605 # PIC is the default for these OSes.
7606 ;;
7607
7608 mingw* | cygwin* | pw32* | os2* | cegcc*)
7609 # This hack is so that the source file can tell whether it is being
7610 # built for inclusion in a dll (and should export symbols for example).
7611 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7612 # (--disable-auto-import) libraries
7613 lt_prog_compiler_pic='-DDLL_EXPORT'
7614 ;;
7615
7616 darwin* | rhapsody*)
7617 # PIC is the default on this platform
7618 # Common symbols not allowed in MH_DYLIB files
7619 lt_prog_compiler_pic='-fno-common'
7620 ;;
7621
7622 haiku*)
7623 # PIC is the default for Haiku.
7624 # The "-static" flag exists, but is broken.
7625 lt_prog_compiler_static=
7626 ;;
7627
7628 hpux*)
7629 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7630 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7631 # sets the default TLS model and affects inlining.
7632 case $host_cpu in
7633 hppa*64*)
7634 # +Z the default
7635 ;;
7636 *)
7637 lt_prog_compiler_pic='-fPIC'
7638 ;;
7639 esac
7640 ;;
7641
7642 interix[3-9]*)
7643 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7644 # Instead, we relocate shared libraries at runtime.
7645 ;;
7646
7647 msdosdjgpp*)
7648 # Just because we use GCC doesn't mean we suddenly get shared libraries
7649 # on systems that don't support them.
7650 lt_prog_compiler_can_build_shared=no
7651 enable_shared=no
7652 ;;
7653
7654 *nto* | *qnx*)
7655 # QNX uses GNU C++, but need to define -shared option too, otherwise
7656 # it will coredump.
7657 lt_prog_compiler_pic='-fPIC -shared'
7658 ;;
7659
7660 sysv4*MP*)
7661 if test -d /usr/nec; then
7662 lt_prog_compiler_pic=-Kconform_pic
7663 fi
7664 ;;
7665
7666 *)
7667 lt_prog_compiler_pic='-fPIC'
7668 ;;
7669 esac
7670
7671 case $cc_basename in
7672 nvcc*) # Cuda Compiler Driver 2.2
7673 lt_prog_compiler_wl='-Xlinker '
7674 lt_prog_compiler_pic='-Xcompiler -fPIC'
7675 ;;
7676 esac
7677 else
7678 # PORTME Check for flag to pass linker flags through the system compiler.
7679 case $host_os in
7680 aix*)
7681 lt_prog_compiler_wl='-Wl,'
7682 if test "$host_cpu" = ia64; then
7683 # AIX 5 now supports IA64 processor
7684 lt_prog_compiler_static='-Bstatic'
7685 else
7686 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7687 fi
7688 ;;
7689
7690 mingw* | cygwin* | pw32* | os2* | cegcc*)
7691 # This hack is so that the source file can tell whether it is being
7692 # built for inclusion in a dll (and should export symbols for example).
7693 lt_prog_compiler_pic='-DDLL_EXPORT'
7694 ;;
7695
7696 hpux9* | hpux10* | hpux11*)
7697 lt_prog_compiler_wl='-Wl,'
7698 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7699 # not for PA HP-UX.
7700 case $host_cpu in
7701 hppa*64*|ia64*)
7702 # +Z the default
7703 ;;
7704 *)
7705 lt_prog_compiler_pic='+Z'
7706 ;;
7707 esac
7708 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7709 lt_prog_compiler_static='${wl}-a ${wl}archive'
7710 ;;
7711
7712 irix5* | irix6* | nonstopux*)
7713 lt_prog_compiler_wl='-Wl,'
7714 # PIC (with -KPIC) is the default.
7715 lt_prog_compiler_static='-non_shared'
7716 ;;
7717
7718 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7719 case $cc_basename in
7720 # old Intel for x86_64 which still supported -KPIC.
7721 ecc*)
7722 lt_prog_compiler_wl='-Wl,'
7723 lt_prog_compiler_pic='-KPIC'
7724 lt_prog_compiler_static='-static'
7725 ;;
7726 # icc used to be incompatible with GCC.
7727 # ICC 10 doesn't accept -KPIC any more.
7728 icc* | ifort*)
7729 lt_prog_compiler_wl='-Wl,'
7730 lt_prog_compiler_pic='-fPIC'
7731 lt_prog_compiler_static='-static'
7732 ;;
7733 # Lahey Fortran 8.1.
7734 lf95*)
7735 lt_prog_compiler_wl='-Wl,'
7736 lt_prog_compiler_pic='--shared'
7737 lt_prog_compiler_static='--static'
7738 ;;
7739 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7740 # Portland Group compilers (*not* the Pentium gcc compiler,
7741 # which looks to be a dead project)
7742 lt_prog_compiler_wl='-Wl,'
7743 lt_prog_compiler_pic='-fpic'
7744 lt_prog_compiler_static='-Bstatic'
7745 ;;
7746 ccc*)
7747 lt_prog_compiler_wl='-Wl,'
7748 # All Alpha code is PIC.
7749 lt_prog_compiler_static='-non_shared'
7750 ;;
7751 xl* | bgxl* | bgf* | mpixl*)
7752 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7753 lt_prog_compiler_wl='-Wl,'
7754 lt_prog_compiler_pic='-qpic'
7755 lt_prog_compiler_static='-qstaticlink'
7756 ;;
7757 *)
7758 case `$CC -V 2>&1 | sed 5q` in
7759 *Sun\ F* | *Sun*Fortran*)
7760 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7761 lt_prog_compiler_pic='-KPIC'
7762 lt_prog_compiler_static='-Bstatic'
7763 lt_prog_compiler_wl=''
7764 ;;
7765 *Sun\ C*)
7766 # Sun C 5.9
7767 lt_prog_compiler_pic='-KPIC'
7768 lt_prog_compiler_static='-Bstatic'
7769 lt_prog_compiler_wl='-Wl,'
7770 ;;
7771 esac
7772 ;;
7773 esac
7774 ;;
7775
7776 newsos6)
7777 lt_prog_compiler_pic='-KPIC'
7778 lt_prog_compiler_static='-Bstatic'
7779 ;;
7780
7781 *nto* | *qnx*)
7782 # QNX uses GNU C++, but need to define -shared option too, otherwise
7783 # it will coredump.
7784 lt_prog_compiler_pic='-fPIC -shared'
7785 ;;
7786
7787 osf3* | osf4* | osf5*)
7788 lt_prog_compiler_wl='-Wl,'
7789 # All OSF/1 code is PIC.
7790 lt_prog_compiler_static='-non_shared'
7791 ;;
7792
7793 rdos*)
7794 lt_prog_compiler_static='-non_shared'
7795 ;;
7796
7797 solaris*)
7798 lt_prog_compiler_pic='-KPIC'
7799 lt_prog_compiler_static='-Bstatic'
7800 case $cc_basename in
7801 f77* | f90* | f95*)
7802 lt_prog_compiler_wl='-Qoption ld ';;
7803 *)
7804 lt_prog_compiler_wl='-Wl,';;
7805 esac
7806 ;;
7807
7808 sunos4*)
7809 lt_prog_compiler_wl='-Qoption ld '
7810 lt_prog_compiler_pic='-PIC'
7811 lt_prog_compiler_static='-Bstatic'
7812 ;;
7813
7814 sysv4 | sysv4.2uw2* | sysv4.3*)
7815 lt_prog_compiler_wl='-Wl,'
7816 lt_prog_compiler_pic='-KPIC'
7817 lt_prog_compiler_static='-Bstatic'
7818 ;;
7819
7820 sysv4*MP*)
7821 if test -d /usr/nec ;then
7822 lt_prog_compiler_pic='-Kconform_pic'
7823 lt_prog_compiler_static='-Bstatic'
7824 fi
7825 ;;
7826
7827 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7828 lt_prog_compiler_wl='-Wl,'
7829 lt_prog_compiler_pic='-KPIC'
7830 lt_prog_compiler_static='-Bstatic'
7831 ;;
7832
7833 unicos*)
7834 lt_prog_compiler_wl='-Wl,'
7835 lt_prog_compiler_can_build_shared=no
7836 ;;
7837
7838 uts4*)
7839 lt_prog_compiler_pic='-pic'
7840 lt_prog_compiler_static='-Bstatic'
7841 ;;
7842
7843 *)
7844 lt_prog_compiler_can_build_shared=no
7845 ;;
7846 esac
7847 fi
7848
7849 case $host_os in
7850 # For platforms which do not support PIC, -DPIC is meaningless:
7851 *djgpp*)
7852 lt_prog_compiler_pic=
7853 ;;
7854 *)
7855 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7856 ;;
7857 esac
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7859 $as_echo "$lt_prog_compiler_pic" >&6; }
7860
7861
7862
7863
7864
7865
7866 #
7867 # Check to make sure the PIC flag actually works.
7868 #
7869 if test -n "$lt_prog_compiler_pic"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7871 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7872 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7873 $as_echo_n "(cached) " >&6
7874 else
7875 lt_cv_prog_compiler_pic_works=no
7876 ac_outfile=conftest.$ac_objext
7877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7878 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7879 # Insert the option either (1) after the last *FLAGS variable, or
7880 # (2) before a word containing "conftest.", or (3) at the end.
7881 # Note that $ac_compile itself does not contain backslashes and begins
7882 # with a dollar sign (not a hyphen), so the echo should work correctly.
7883 # The option is referenced via a variable to avoid confusing sed.
7884 lt_compile=`echo "$ac_compile" | $SED \
7885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7887 -e 's:$: $lt_compiler_flag:'`
7888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7889 (eval "$lt_compile" 2>conftest.err)
7890 ac_status=$?
7891 cat conftest.err >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 if (exit $ac_status) && test -s "$ac_outfile"; then
7894 # The compiler can only warn and ignore the option if not recognized
7895 # So say no if there are warnings other than the usual output.
7896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7898 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7899 lt_cv_prog_compiler_pic_works=yes
7900 fi
7901 fi
7902 $RM conftest*
7903
7904 fi
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7906 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7907
7908 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7909 case $lt_prog_compiler_pic in
7910 "" | " "*) ;;
7911 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7912 esac
7913 else
7914 lt_prog_compiler_pic=
7915 lt_prog_compiler_can_build_shared=no
7916 fi
7917
7918 fi
7919
7920
7921
7922
7923
7924
7925 #
7926 # Check to make sure the static flag actually works.
7927 #
7928 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7930 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7931 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7932 $as_echo_n "(cached) " >&6
7933 else
7934 lt_cv_prog_compiler_static_works=no
7935 save_LDFLAGS="$LDFLAGS"
7936 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7937 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7938 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7939 # The linker can only warn and ignore the option if not recognized
7940 # So say no if there are warnings
7941 if test -s conftest.err; then
7942 # Append any errors to the config.log.
7943 cat conftest.err 1>&5
7944 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7946 if diff conftest.exp conftest.er2 >/dev/null; then
7947 lt_cv_prog_compiler_static_works=yes
7948 fi
7949 else
7950 lt_cv_prog_compiler_static_works=yes
7951 fi
7952 fi
7953 $RM -r conftest*
7954 LDFLAGS="$save_LDFLAGS"
7955
7956 fi
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7958 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7959
7960 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7961 :
7962 else
7963 lt_prog_compiler_static=
7964 fi
7965
7966
7967
7968
7969
7970
7971
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7973 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7974 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7975 $as_echo_n "(cached) " >&6
7976 else
7977 lt_cv_prog_compiler_c_o=no
7978 $RM -r conftest 2>/dev/null
7979 mkdir conftest
7980 cd conftest
7981 mkdir out
7982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7983
7984 lt_compiler_flag="-o out/conftest2.$ac_objext"
7985 # Insert the option either (1) after the last *FLAGS variable, or
7986 # (2) before a word containing "conftest.", or (3) at the end.
7987 # Note that $ac_compile itself does not contain backslashes and begins
7988 # with a dollar sign (not a hyphen), so the echo should work correctly.
7989 lt_compile=`echo "$ac_compile" | $SED \
7990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7992 -e 's:$: $lt_compiler_flag:'`
7993 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7994 (eval "$lt_compile" 2>out/conftest.err)
7995 ac_status=$?
7996 cat out/conftest.err >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7999 then
8000 # The compiler can only warn and ignore the option if not recognized
8001 # So say no if there are warnings
8002 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8003 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8004 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8005 lt_cv_prog_compiler_c_o=yes
8006 fi
8007 fi
8008 chmod u+w . 2>&5
8009 $RM conftest*
8010 # SGI C++ compiler will create directory out/ii_files/ for
8011 # template instantiation
8012 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8013 $RM out/* && rmdir out
8014 cd ..
8015 $RM -r conftest
8016 $RM conftest*
8017
8018 fi
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8020 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8021
8022
8023
8024
8025
8026
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8028 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8029 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 lt_cv_prog_compiler_c_o=no
8033 $RM -r conftest 2>/dev/null
8034 mkdir conftest
8035 cd conftest
8036 mkdir out
8037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8038
8039 lt_compiler_flag="-o out/conftest2.$ac_objext"
8040 # Insert the option either (1) after the last *FLAGS variable, or
8041 # (2) before a word containing "conftest.", or (3) at the end.
8042 # Note that $ac_compile itself does not contain backslashes and begins
8043 # with a dollar sign (not a hyphen), so the echo should work correctly.
8044 lt_compile=`echo "$ac_compile" | $SED \
8045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8047 -e 's:$: $lt_compiler_flag:'`
8048 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8049 (eval "$lt_compile" 2>out/conftest.err)
8050 ac_status=$?
8051 cat out/conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8054 then
8055 # The compiler can only warn and ignore the option if not recognized
8056 # So say no if there are warnings
8057 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8058 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8059 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8060 lt_cv_prog_compiler_c_o=yes
8061 fi
8062 fi
8063 chmod u+w . 2>&5
8064 $RM conftest*
8065 # SGI C++ compiler will create directory out/ii_files/ for
8066 # template instantiation
8067 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8068 $RM out/* && rmdir out
8069 cd ..
8070 $RM -r conftest
8071 $RM conftest*
8072
8073 fi
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8075 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8076
8077
8078
8079
8080 hard_links="nottested"
8081 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8082 # do not overwrite the value of need_locks provided by the user
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8084 $as_echo_n "checking if we can lock with hard links... " >&6; }
8085 hard_links=yes
8086 $RM conftest*
8087 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8088 touch conftest.a
8089 ln conftest.a conftest.b 2>&5 || hard_links=no
8090 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8092 $as_echo "$hard_links" >&6; }
8093 if test "$hard_links" = no; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8095 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8096 need_locks=warn
8097 fi
8098 else
8099 need_locks=no
8100 fi
8101
8102
8103
8104
8105
8106
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8108 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8109
8110 runpath_var=
8111 allow_undefined_flag=
8112 always_export_symbols=no
8113 archive_cmds=
8114 archive_expsym_cmds=
8115 compiler_needs_object=no
8116 enable_shared_with_static_runtimes=no
8117 export_dynamic_flag_spec=
8118 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8119 hardcode_automatic=no
8120 hardcode_direct=no
8121 hardcode_direct_absolute=no
8122 hardcode_libdir_flag_spec=
8123 hardcode_libdir_flag_spec_ld=
8124 hardcode_libdir_separator=
8125 hardcode_minus_L=no
8126 hardcode_shlibpath_var=unsupported
8127 inherit_rpath=no
8128 link_all_deplibs=unknown
8129 module_cmds=
8130 module_expsym_cmds=
8131 old_archive_from_new_cmds=
8132 old_archive_from_expsyms_cmds=
8133 thread_safe_flag_spec=
8134 whole_archive_flag_spec=
8135 # include_expsyms should be a list of space-separated symbols to be *always*
8136 # included in the symbol list
8137 include_expsyms=
8138 # exclude_expsyms can be an extended regexp of symbols to exclude
8139 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8140 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8141 # as well as any symbol that contains `d'.
8142 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8143 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8144 # platforms (ab)use it in PIC code, but their linkers get confused if
8145 # the symbol is explicitly referenced. Since portable code cannot
8146 # rely on this symbol name, it's probably fine to never include it in
8147 # preloaded symbol tables.
8148 # Exclude shared library initialization/finalization symbols.
8149 extract_expsyms_cmds=
8150
8151 case $host_os in
8152 cygwin* | mingw* | pw32* | cegcc*)
8153 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8154 # When not using gcc, we currently assume that we are using
8155 # Microsoft Visual C++.
8156 if test "$GCC" != yes; then
8157 with_gnu_ld=no
8158 fi
8159 ;;
8160 interix*)
8161 # we just hope/assume this is gcc and not c89 (= MSVC++)
8162 with_gnu_ld=yes
8163 ;;
8164 openbsd*)
8165 with_gnu_ld=no
8166 ;;
8167 esac
8168
8169 ld_shlibs=yes
8170
8171 # On some targets, GNU ld is compatible enough with the native linker
8172 # that we're better off using the native interface for both.
8173 lt_use_gnu_ld_interface=no
8174 if test "$with_gnu_ld" = yes; then
8175 case $host_os in
8176 aix*)
8177 # The AIX port of GNU ld has always aspired to compatibility
8178 # with the native linker. However, as the warning in the GNU ld
8179 # block says, versions before 2.19.5* couldn't really create working
8180 # shared libraries, regardless of the interface used.
8181 case `$LD -v 2>&1` in
8182 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8183 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8184 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8185 *)
8186 lt_use_gnu_ld_interface=yes
8187 ;;
8188 esac
8189 ;;
8190 *)
8191 lt_use_gnu_ld_interface=yes
8192 ;;
8193 esac
8194 fi
8195
8196 if test "$lt_use_gnu_ld_interface" = yes; then
8197 # If archive_cmds runs LD, not CC, wlarc should be empty
8198 wlarc='${wl}'
8199
8200 # Set some defaults for GNU ld with shared library support. These
8201 # are reset later if shared libraries are not supported. Putting them
8202 # here allows them to be overridden if necessary.
8203 runpath_var=LD_RUN_PATH
8204 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8205 export_dynamic_flag_spec='${wl}--export-dynamic'
8206 # ancient GNU ld didn't support --whole-archive et. al.
8207 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8208 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8209 else
8210 whole_archive_flag_spec=
8211 fi
8212 supports_anon_versioning=no
8213 case `$LD -v 2>&1` in
8214 *GNU\ gold*) supports_anon_versioning=yes ;;
8215 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8216 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8217 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8218 *\ 2.11.*) ;; # other 2.11 versions
8219 *) supports_anon_versioning=yes ;;
8220 esac
8221
8222 # See if GNU ld supports shared libraries.
8223 case $host_os in
8224 aix[3-9]*)
8225 # On AIX/PPC, the GNU linker is very broken
8226 if test "$host_cpu" != ia64; then
8227 ld_shlibs=no
8228 cat <<_LT_EOF 1>&2
8229
8230 *** Warning: the GNU linker, at least up to release 2.19, is reported
8231 *** to be unable to reliably create shared libraries on AIX.
8232 *** Therefore, libtool is disabling shared libraries support. If you
8233 *** really care for shared libraries, you may want to install binutils
8234 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8235 *** You will then need to restart the configuration process.
8236
8237 _LT_EOF
8238 fi
8239 ;;
8240
8241 amigaos*)
8242 case $host_cpu in
8243 powerpc)
8244 # see comment about AmigaOS4 .so support
8245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8246 archive_expsym_cmds=''
8247 ;;
8248 m68k)
8249 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)'
8250 hardcode_libdir_flag_spec='-L$libdir'
8251 hardcode_minus_L=yes
8252 ;;
8253 esac
8254 ;;
8255
8256 beos*)
8257 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8258 allow_undefined_flag=unsupported
8259 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8260 # support --undefined. This deserves some investigation. FIXME
8261 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8262 else
8263 ld_shlibs=no
8264 fi
8265 ;;
8266
8267 cygwin* | mingw* | pw32* | cegcc*)
8268 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8269 # as there is no search path for DLLs.
8270 hardcode_libdir_flag_spec='-L$libdir'
8271 export_dynamic_flag_spec='${wl}--export-all-symbols'
8272 allow_undefined_flag=unsupported
8273 always_export_symbols=no
8274 enable_shared_with_static_runtimes=yes
8275 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8276
8277 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8279 # If the export-symbols file already is a .def file (1st line
8280 # is EXPORTS), use it as is; otherwise, prepend...
8281 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8282 cp $export_symbols $output_objdir/$soname.def;
8283 else
8284 echo EXPORTS > $output_objdir/$soname.def;
8285 cat $export_symbols >> $output_objdir/$soname.def;
8286 fi~
8287 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8288 else
8289 ld_shlibs=no
8290 fi
8291 ;;
8292
8293 haiku*)
8294 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8295 link_all_deplibs=yes
8296 ;;
8297
8298 interix[3-9]*)
8299 hardcode_direct=no
8300 hardcode_shlibpath_var=no
8301 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8302 export_dynamic_flag_spec='${wl}-E'
8303 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8304 # Instead, shared libraries are loaded at an image base (0x10000000 by
8305 # default) and relocated if they conflict, which is a slow very memory
8306 # consuming and fragmenting process. To avoid this, we pick a random,
8307 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8308 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8309 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8310 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'
8311 ;;
8312
8313 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8314 tmp_diet=no
8315 if test "$host_os" = linux-dietlibc; then
8316 case $cc_basename in
8317 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8318 esac
8319 fi
8320 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8321 && test "$tmp_diet" = no
8322 then
8323 tmp_addflag=
8324 tmp_sharedflag='-shared'
8325 case $cc_basename,$host_cpu in
8326 pgcc*) # Portland Group C compiler
8327 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'
8328 tmp_addflag=' $pic_flag'
8329 ;;
8330 pgf77* | pgf90* | pgf95* | pgfortran*)
8331 # Portland Group f77 and f90 compilers
8332 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'
8333 tmp_addflag=' $pic_flag -Mnomain' ;;
8334 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8335 tmp_addflag=' -i_dynamic' ;;
8336 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8337 tmp_addflag=' -i_dynamic -nofor_main' ;;
8338 ifc* | ifort*) # Intel Fortran compiler
8339 tmp_addflag=' -nofor_main' ;;
8340 lf95*) # Lahey Fortran 8.1
8341 whole_archive_flag_spec=
8342 tmp_sharedflag='--shared' ;;
8343 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8344 tmp_sharedflag='-qmkshrobj'
8345 tmp_addflag= ;;
8346 nvcc*) # Cuda Compiler Driver 2.2
8347 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'
8348 compiler_needs_object=yes
8349 ;;
8350 esac
8351 case `$CC -V 2>&1 | sed 5q` in
8352 *Sun\ C*) # Sun C 5.9
8353 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'
8354 compiler_needs_object=yes
8355 tmp_sharedflag='-G' ;;
8356 *Sun\ F*) # Sun Fortran 8.3
8357 tmp_sharedflag='-G' ;;
8358 esac
8359 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8360
8361 if test "x$supports_anon_versioning" = xyes; then
8362 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8363 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8364 echo "local: *; };" >> $output_objdir/$libname.ver~
8365 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8366 fi
8367
8368 case $cc_basename in
8369 xlf* | bgf* | bgxlf* | mpixlf*)
8370 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8371 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8372 hardcode_libdir_flag_spec=
8373 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8374 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8375 if test "x$supports_anon_versioning" = xyes; then
8376 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8377 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8378 echo "local: *; };" >> $output_objdir/$libname.ver~
8379 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8380 fi
8381 ;;
8382 esac
8383 else
8384 ld_shlibs=no
8385 fi
8386 ;;
8387
8388 netbsd*)
8389 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8390 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8391 wlarc=
8392 else
8393 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8394 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8395 fi
8396 ;;
8397
8398 solaris*)
8399 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8400 ld_shlibs=no
8401 cat <<_LT_EOF 1>&2
8402
8403 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8404 *** create shared libraries on Solaris systems. Therefore, libtool
8405 *** is disabling shared libraries support. We urge you to upgrade GNU
8406 *** binutils to release 2.9.1 or newer. Another option is to modify
8407 *** your PATH or compiler configuration so that the native linker is
8408 *** used, and then restart.
8409
8410 _LT_EOF
8411 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8413 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8414 else
8415 ld_shlibs=no
8416 fi
8417 ;;
8418
8419 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8420 case `$LD -v 2>&1` in
8421 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8422 ld_shlibs=no
8423 cat <<_LT_EOF 1>&2
8424
8425 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8426 *** reliably create shared libraries on SCO systems. Therefore, libtool
8427 *** is disabling shared libraries support. We urge you to upgrade GNU
8428 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8429 *** your PATH or compiler configuration so that the native linker is
8430 *** used, and then restart.
8431
8432 _LT_EOF
8433 ;;
8434 *)
8435 # For security reasons, it is highly recommended that you always
8436 # use absolute paths for naming shared libraries, and exclude the
8437 # DT_RUNPATH tag from executables and libraries. But doing so
8438 # requires that you compile everything twice, which is a pain.
8439 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8441 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8442 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8443 else
8444 ld_shlibs=no
8445 fi
8446 ;;
8447 esac
8448 ;;
8449
8450 sunos4*)
8451 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8452 wlarc=
8453 hardcode_direct=yes
8454 hardcode_shlibpath_var=no
8455 ;;
8456
8457 *)
8458 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8459 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8460 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8461 else
8462 ld_shlibs=no
8463 fi
8464 ;;
8465 esac
8466
8467 if test "$ld_shlibs" = no; then
8468 runpath_var=
8469 hardcode_libdir_flag_spec=
8470 export_dynamic_flag_spec=
8471 whole_archive_flag_spec=
8472 fi
8473 else
8474 # PORTME fill in a description of your system's linker (not GNU ld)
8475 case $host_os in
8476 aix3*)
8477 allow_undefined_flag=unsupported
8478 always_export_symbols=yes
8479 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'
8480 # Note: this linker hardcodes the directories in LIBPATH if there
8481 # are no directories specified by -L.
8482 hardcode_minus_L=yes
8483 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8484 # Neither direct hardcoding nor static linking is supported with a
8485 # broken collect2.
8486 hardcode_direct=unsupported
8487 fi
8488 ;;
8489
8490 aix[4-9]*)
8491 if test "$host_cpu" = ia64; then
8492 # On IA64, the linker does run time linking by default, so we don't
8493 # have to do anything special.
8494 aix_use_runtimelinking=no
8495 exp_sym_flag='-Bexport'
8496 no_entry_flag=""
8497 else
8498 # If we're using GNU nm, then we don't want the "-C" option.
8499 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8500 # Also, AIX nm treats weak defined symbols like other global
8501 # defined symbols, whereas GNU nm marks them as "W".
8502 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8503 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'
8504 else
8505 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'
8506 fi
8507 aix_use_runtimelinking=no
8508
8509 # Test if we are trying to use run time linking or normal
8510 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8511 # need to do runtime linking.
8512 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8513 for ld_flag in $LDFLAGS; do
8514 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8515 aix_use_runtimelinking=yes
8516 break
8517 fi
8518 done
8519 ;;
8520 esac
8521
8522 exp_sym_flag='-bexport'
8523 no_entry_flag='-bnoentry'
8524 fi
8525
8526 # When large executables or shared objects are built, AIX ld can
8527 # have problems creating the table of contents. If linking a library
8528 # or program results in "error TOC overflow" add -mminimal-toc to
8529 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8530 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8531
8532 archive_cmds=''
8533 hardcode_direct=yes
8534 hardcode_direct_absolute=yes
8535 hardcode_libdir_separator=':'
8536 link_all_deplibs=yes
8537 file_list_spec='${wl}-f,'
8538
8539 if test "$GCC" = yes; then
8540 case $host_os in aix4.[012]|aix4.[012].*)
8541 # We only want to do this on AIX 4.2 and lower, the check
8542 # below for broken collect2 doesn't work under 4.3+
8543 collect2name=`${CC} -print-prog-name=collect2`
8544 if test -f "$collect2name" &&
8545 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8546 then
8547 # We have reworked collect2
8548 :
8549 else
8550 # We have old collect2
8551 hardcode_direct=unsupported
8552 # It fails to find uninstalled libraries when the uninstalled
8553 # path is not listed in the libpath. Setting hardcode_minus_L
8554 # to unsupported forces relinking
8555 hardcode_minus_L=yes
8556 hardcode_libdir_flag_spec='-L$libdir'
8557 hardcode_libdir_separator=
8558 fi
8559 ;;
8560 esac
8561 shared_flag='-shared'
8562 if test "$aix_use_runtimelinking" = yes; then
8563 shared_flag="$shared_flag "'${wl}-G'
8564 fi
8565 else
8566 # not using gcc
8567 if test "$host_cpu" = ia64; then
8568 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8569 # chokes on -Wl,-G. The following line is correct:
8570 shared_flag='-G'
8571 else
8572 if test "$aix_use_runtimelinking" = yes; then
8573 shared_flag='${wl}-G'
8574 else
8575 shared_flag='${wl}-bM:SRE'
8576 fi
8577 fi
8578 fi
8579
8580 export_dynamic_flag_spec='${wl}-bexpall'
8581 # It seems that -bexpall does not export symbols beginning with
8582 # underscore (_), so it is better to generate a list of symbols to export.
8583 always_export_symbols=yes
8584 if test "$aix_use_runtimelinking" = yes; then
8585 # Warning - without using the other runtime loading flags (-brtl),
8586 # -berok will link without error, but may produce a broken library.
8587 allow_undefined_flag='-berok'
8588 # Determine the default libpath from the value encoded in an
8589 # empty executable.
8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8592
8593 int
8594 main ()
8595 {
8596
8597 ;
8598 return 0;
8599 }
8600 _ACEOF
8601 if ac_fn_c_try_link "$LINENO"; then :
8602
8603 lt_aix_libpath_sed='
8604 /Import File Strings/,/^$/ {
8605 /^0/ {
8606 s/^0 *\(.*\)$/\1/
8607 p
8608 }
8609 }'
8610 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8611 # Check for a 64-bit object if we didn't find anything.
8612 if test -z "$aix_libpath"; then
8613 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8614 fi
8615 fi
8616 rm -f core conftest.err conftest.$ac_objext \
8617 conftest$ac_exeext conftest.$ac_ext
8618 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8619
8620 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8621 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"
8622 else
8623 if test "$host_cpu" = ia64; then
8624 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8625 allow_undefined_flag="-z nodefs"
8626 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"
8627 else
8628 # Determine the default libpath from the value encoded in an
8629 # empty executable.
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632
8633 int
8634 main ()
8635 {
8636
8637 ;
8638 return 0;
8639 }
8640 _ACEOF
8641 if ac_fn_c_try_link "$LINENO"; then :
8642
8643 lt_aix_libpath_sed='
8644 /Import File Strings/,/^$/ {
8645 /^0/ {
8646 s/^0 *\(.*\)$/\1/
8647 p
8648 }
8649 }'
8650 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8651 # Check for a 64-bit object if we didn't find anything.
8652 if test -z "$aix_libpath"; then
8653 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8654 fi
8655 fi
8656 rm -f core conftest.err conftest.$ac_objext \
8657 conftest$ac_exeext conftest.$ac_ext
8658 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8659
8660 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8661 # Warning - without using the other run time loading flags,
8662 # -berok will link without error, but may produce a broken library.
8663 no_undefined_flag=' ${wl}-bernotok'
8664 allow_undefined_flag=' ${wl}-berok'
8665 if test "$with_gnu_ld" = yes; then
8666 # We only use this code for GNU lds that support --whole-archive.
8667 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8668 else
8669 # Exported symbols can be pulled into shared objects from archives
8670 whole_archive_flag_spec='$convenience'
8671 fi
8672 archive_cmds_need_lc=yes
8673 # This is similar to how AIX traditionally builds its shared libraries.
8674 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'
8675 fi
8676 fi
8677 ;;
8678
8679 amigaos*)
8680 case $host_cpu in
8681 powerpc)
8682 # see comment about AmigaOS4 .so support
8683 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8684 archive_expsym_cmds=''
8685 ;;
8686 m68k)
8687 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)'
8688 hardcode_libdir_flag_spec='-L$libdir'
8689 hardcode_minus_L=yes
8690 ;;
8691 esac
8692 ;;
8693
8694 bsdi[45]*)
8695 export_dynamic_flag_spec=-rdynamic
8696 ;;
8697
8698 cygwin* | mingw* | pw32* | cegcc*)
8699 # When not using gcc, we currently assume that we are using
8700 # Microsoft Visual C++.
8701 # hardcode_libdir_flag_spec is actually meaningless, as there is
8702 # no search path for DLLs.
8703 hardcode_libdir_flag_spec=' '
8704 allow_undefined_flag=unsupported
8705 # Tell ltmain to make .lib files, not .a files.
8706 libext=lib
8707 # Tell ltmain to make .dll files, not .so files.
8708 shrext_cmds=".dll"
8709 # FIXME: Setting linknames here is a bad hack.
8710 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8711 # The linker will automatically build a .lib file if we build a DLL.
8712 old_archive_from_new_cmds='true'
8713 # FIXME: Should let the user specify the lib program.
8714 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8715 fix_srcfile_path='`cygpath -w "$srcfile"`'
8716 enable_shared_with_static_runtimes=yes
8717 ;;
8718
8719 darwin* | rhapsody*)
8720
8721
8722 archive_cmds_need_lc=no
8723 hardcode_direct=no
8724 hardcode_automatic=yes
8725 hardcode_shlibpath_var=unsupported
8726 if test "$lt_cv_ld_force_load" = "yes"; then
8727 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\"`'
8728 else
8729 whole_archive_flag_spec=''
8730 fi
8731 link_all_deplibs=yes
8732 allow_undefined_flag="$_lt_dar_allow_undefined"
8733 case $cc_basename in
8734 ifort*) _lt_dar_can_shared=yes ;;
8735 *) _lt_dar_can_shared=$GCC ;;
8736 esac
8737 if test "$_lt_dar_can_shared" = "yes"; then
8738 output_verbose_link_cmd=func_echo_all
8739 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8740 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8741 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}"
8742 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}"
8743
8744 else
8745 ld_shlibs=no
8746 fi
8747
8748 ;;
8749
8750 dgux*)
8751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8752 hardcode_libdir_flag_spec='-L$libdir'
8753 hardcode_shlibpath_var=no
8754 ;;
8755
8756 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8757 # support. Future versions do this automatically, but an explicit c++rt0.o
8758 # does not break anything, and helps significantly (at the cost of a little
8759 # extra space).
8760 freebsd2.2*)
8761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8762 hardcode_libdir_flag_spec='-R$libdir'
8763 hardcode_direct=yes
8764 hardcode_shlibpath_var=no
8765 ;;
8766
8767 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8768 freebsd2.*)
8769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8770 hardcode_direct=yes
8771 hardcode_minus_L=yes
8772 hardcode_shlibpath_var=no
8773 ;;
8774
8775 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8776 freebsd* | dragonfly*)
8777 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8778 hardcode_libdir_flag_spec='-R$libdir'
8779 hardcode_direct=yes
8780 hardcode_shlibpath_var=no
8781 ;;
8782
8783 hpux9*)
8784 if test "$GCC" = yes; then
8785 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'
8786 else
8787 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'
8788 fi
8789 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8790 hardcode_libdir_separator=:
8791 hardcode_direct=yes
8792
8793 # hardcode_minus_L: Not really in the search PATH,
8794 # but as the default location of the library.
8795 hardcode_minus_L=yes
8796 export_dynamic_flag_spec='${wl}-E'
8797 ;;
8798
8799 hpux10*)
8800 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8801 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8802 else
8803 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8804 fi
8805 if test "$with_gnu_ld" = no; then
8806 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8807 hardcode_libdir_flag_spec_ld='+b $libdir'
8808 hardcode_libdir_separator=:
8809 hardcode_direct=yes
8810 hardcode_direct_absolute=yes
8811 export_dynamic_flag_spec='${wl}-E'
8812 # hardcode_minus_L: Not really in the search PATH,
8813 # but as the default location of the library.
8814 hardcode_minus_L=yes
8815 fi
8816 ;;
8817
8818 hpux11*)
8819 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8820 case $host_cpu in
8821 hppa*64*)
8822 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8823 ;;
8824 ia64*)
8825 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8826 ;;
8827 *)
8828 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8829 ;;
8830 esac
8831 else
8832 case $host_cpu in
8833 hppa*64*)
8834 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8835 ;;
8836 ia64*)
8837 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8838 ;;
8839 *)
8840
8841 # Older versions of the 11.00 compiler do not understand -b yet
8842 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8844 $as_echo_n "checking if $CC understands -b... " >&6; }
8845 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8846 $as_echo_n "(cached) " >&6
8847 else
8848 lt_cv_prog_compiler__b=no
8849 save_LDFLAGS="$LDFLAGS"
8850 LDFLAGS="$LDFLAGS -b"
8851 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8852 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8853 # The linker can only warn and ignore the option if not recognized
8854 # So say no if there are warnings
8855 if test -s conftest.err; then
8856 # Append any errors to the config.log.
8857 cat conftest.err 1>&5
8858 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8859 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8860 if diff conftest.exp conftest.er2 >/dev/null; then
8861 lt_cv_prog_compiler__b=yes
8862 fi
8863 else
8864 lt_cv_prog_compiler__b=yes
8865 fi
8866 fi
8867 $RM -r conftest*
8868 LDFLAGS="$save_LDFLAGS"
8869
8870 fi
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8872 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8873
8874 if test x"$lt_cv_prog_compiler__b" = xyes; then
8875 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8876 else
8877 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8878 fi
8879
8880 ;;
8881 esac
8882 fi
8883 if test "$with_gnu_ld" = no; then
8884 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8885 hardcode_libdir_separator=:
8886
8887 case $host_cpu in
8888 hppa*64*|ia64*)
8889 hardcode_direct=no
8890 hardcode_shlibpath_var=no
8891 ;;
8892 *)
8893 hardcode_direct=yes
8894 hardcode_direct_absolute=yes
8895 export_dynamic_flag_spec='${wl}-E'
8896
8897 # hardcode_minus_L: Not really in the search PATH,
8898 # but as the default location of the library.
8899 hardcode_minus_L=yes
8900 ;;
8901 esac
8902 fi
8903 ;;
8904
8905 irix5* | irix6* | nonstopux*)
8906 if test "$GCC" = yes; then
8907 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'
8908 # Try to use the -exported_symbol ld option, if it does not
8909 # work, assume that -exports_file does not work either and
8910 # implicitly export all symbols.
8911 save_LDFLAGS="$LDFLAGS"
8912 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915 int foo(void) {}
8916 _ACEOF
8917 if ac_fn_c_try_link "$LINENO"; then :
8918 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'
8919
8920 fi
8921 rm -f core conftest.err conftest.$ac_objext \
8922 conftest$ac_exeext conftest.$ac_ext
8923 LDFLAGS="$save_LDFLAGS"
8924 else
8925 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'
8926 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'
8927 fi
8928 archive_cmds_need_lc='no'
8929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8930 hardcode_libdir_separator=:
8931 inherit_rpath=yes
8932 link_all_deplibs=yes
8933 ;;
8934
8935 netbsd*)
8936 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8937 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8938 else
8939 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8940 fi
8941 hardcode_libdir_flag_spec='-R$libdir'
8942 hardcode_direct=yes
8943 hardcode_shlibpath_var=no
8944 ;;
8945
8946 newsos6)
8947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8948 hardcode_direct=yes
8949 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8950 hardcode_libdir_separator=:
8951 hardcode_shlibpath_var=no
8952 ;;
8953
8954 *nto* | *qnx*)
8955 ;;
8956
8957 openbsd*)
8958 if test -f /usr/libexec/ld.so; then
8959 hardcode_direct=yes
8960 hardcode_shlibpath_var=no
8961 hardcode_direct_absolute=yes
8962 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8963 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8964 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8965 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8966 export_dynamic_flag_spec='${wl}-E'
8967 else
8968 case $host_os in
8969 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8970 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8971 hardcode_libdir_flag_spec='-R$libdir'
8972 ;;
8973 *)
8974 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8975 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8976 ;;
8977 esac
8978 fi
8979 else
8980 ld_shlibs=no
8981 fi
8982 ;;
8983
8984 os2*)
8985 hardcode_libdir_flag_spec='-L$libdir'
8986 hardcode_minus_L=yes
8987 allow_undefined_flag=unsupported
8988 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'
8989 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8990 ;;
8991
8992 osf3*)
8993 if test "$GCC" = yes; then
8994 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8995 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'
8996 else
8997 allow_undefined_flag=' -expect_unresolved \*'
8998 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'
8999 fi
9000 archive_cmds_need_lc='no'
9001 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9002 hardcode_libdir_separator=:
9003 ;;
9004
9005 osf4* | osf5*) # as osf3* with the addition of -msym flag
9006 if test "$GCC" = yes; then
9007 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9008 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'
9009 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9010 else
9011 allow_undefined_flag=' -expect_unresolved \*'
9012 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'
9013 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~
9014 $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'
9015
9016 # Both c and cxx compiler support -rpath directly
9017 hardcode_libdir_flag_spec='-rpath $libdir'
9018 fi
9019 archive_cmds_need_lc='no'
9020 hardcode_libdir_separator=:
9021 ;;
9022
9023 solaris*)
9024 no_undefined_flag=' -z defs'
9025 if test "$GCC" = yes; then
9026 wlarc='${wl}'
9027 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9028 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9029 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9030 else
9031 case `$CC -V 2>&1` in
9032 *"Compilers 5.0"*)
9033 wlarc=''
9034 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9035 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9036 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9037 ;;
9038 *)
9039 wlarc='${wl}'
9040 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9041 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9042 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9043 ;;
9044 esac
9045 fi
9046 hardcode_libdir_flag_spec='-R$libdir'
9047 hardcode_shlibpath_var=no
9048 case $host_os in
9049 solaris2.[0-5] | solaris2.[0-5].*) ;;
9050 *)
9051 # The compiler driver will combine and reorder linker options,
9052 # but understands `-z linker_flag'. GCC discards it without `$wl',
9053 # but is careful enough not to reorder.
9054 # Supported since Solaris 2.6 (maybe 2.5.1?)
9055 if test "$GCC" = yes; then
9056 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9057 else
9058 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9059 fi
9060 ;;
9061 esac
9062 link_all_deplibs=yes
9063 ;;
9064
9065 sunos4*)
9066 if test "x$host_vendor" = xsequent; then
9067 # Use $CC to link under sequent, because it throws in some extra .o
9068 # files that make .init and .fini sections work.
9069 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9070 else
9071 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9072 fi
9073 hardcode_libdir_flag_spec='-L$libdir'
9074 hardcode_direct=yes
9075 hardcode_minus_L=yes
9076 hardcode_shlibpath_var=no
9077 ;;
9078
9079 sysv4)
9080 case $host_vendor in
9081 sni)
9082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9083 hardcode_direct=yes # is this really true???
9084 ;;
9085 siemens)
9086 ## LD is ld it makes a PLAMLIB
9087 ## CC just makes a GrossModule.
9088 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9089 reload_cmds='$CC -r -o $output$reload_objs'
9090 hardcode_direct=no
9091 ;;
9092 motorola)
9093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9094 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9095 ;;
9096 esac
9097 runpath_var='LD_RUN_PATH'
9098 hardcode_shlibpath_var=no
9099 ;;
9100
9101 sysv4.3*)
9102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9103 hardcode_shlibpath_var=no
9104 export_dynamic_flag_spec='-Bexport'
9105 ;;
9106
9107 sysv4*MP*)
9108 if test -d /usr/nec; then
9109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9110 hardcode_shlibpath_var=no
9111 runpath_var=LD_RUN_PATH
9112 hardcode_runpath_var=yes
9113 ld_shlibs=yes
9114 fi
9115 ;;
9116
9117 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9118 no_undefined_flag='${wl}-z,text'
9119 archive_cmds_need_lc=no
9120 hardcode_shlibpath_var=no
9121 runpath_var='LD_RUN_PATH'
9122
9123 if test "$GCC" = yes; then
9124 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9125 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9126 else
9127 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9128 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9129 fi
9130 ;;
9131
9132 sysv5* | sco3.2v5* | sco5v6*)
9133 # Note: We can NOT use -z defs as we might desire, because we do not
9134 # link with -lc, and that would cause any symbols used from libc to
9135 # always be unresolved, which means just about no library would
9136 # ever link correctly. If we're not using GNU ld we use -z text
9137 # though, which does catch some bad symbols but isn't as heavy-handed
9138 # as -z defs.
9139 no_undefined_flag='${wl}-z,text'
9140 allow_undefined_flag='${wl}-z,nodefs'
9141 archive_cmds_need_lc=no
9142 hardcode_shlibpath_var=no
9143 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9144 hardcode_libdir_separator=':'
9145 link_all_deplibs=yes
9146 export_dynamic_flag_spec='${wl}-Bexport'
9147 runpath_var='LD_RUN_PATH'
9148
9149 if test "$GCC" = yes; then
9150 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9151 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9152 else
9153 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9154 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9155 fi
9156 ;;
9157
9158 uts4*)
9159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9160 hardcode_libdir_flag_spec='-L$libdir'
9161 hardcode_shlibpath_var=no
9162 ;;
9163
9164 *)
9165 ld_shlibs=no
9166 ;;
9167 esac
9168
9169 if test x$host_vendor = xsni; then
9170 case $host in
9171 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9172 export_dynamic_flag_spec='${wl}-Blargedynsym'
9173 ;;
9174 esac
9175 fi
9176 fi
9177
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9179 $as_echo "$ld_shlibs" >&6; }
9180 test "$ld_shlibs" = no && can_build_shared=no
9181
9182 with_gnu_ld=$with_gnu_ld
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198 #
9199 # Do we need to explicitly link libc?
9200 #
9201 case "x$archive_cmds_need_lc" in
9202 x|xyes)
9203 # Assume -lc should be added
9204 archive_cmds_need_lc=yes
9205
9206 if test "$enable_shared" = yes && test "$GCC" = yes; then
9207 case $archive_cmds in
9208 *'~'*)
9209 # FIXME: we may have to deal with multi-command sequences.
9210 ;;
9211 '$CC '*)
9212 # Test whether the compiler implicitly links with -lc since on some
9213 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9214 # to ld, don't add -lc before -lgcc.
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9216 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9217 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9218 $as_echo_n "(cached) " >&6
9219 else
9220 $RM conftest*
9221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9222
9223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9224 (eval $ac_compile) 2>&5
9225 ac_status=$?
9226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9227 test $ac_status = 0; } 2>conftest.err; then
9228 soname=conftest
9229 lib=conftest
9230 libobjs=conftest.$ac_objext
9231 deplibs=
9232 wl=$lt_prog_compiler_wl
9233 pic_flag=$lt_prog_compiler_pic
9234 compiler_flags=-v
9235 linker_flags=-v
9236 verstring=
9237 output_objdir=.
9238 libname=conftest
9239 lt_save_allow_undefined_flag=$allow_undefined_flag
9240 allow_undefined_flag=
9241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9242 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9243 ac_status=$?
9244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9245 test $ac_status = 0; }
9246 then
9247 lt_cv_archive_cmds_need_lc=no
9248 else
9249 lt_cv_archive_cmds_need_lc=yes
9250 fi
9251 allow_undefined_flag=$lt_save_allow_undefined_flag
9252 else
9253 cat conftest.err 1>&5
9254 fi
9255 $RM conftest*
9256
9257 fi
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9259 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9260 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9261 ;;
9262 esac
9263 fi
9264 ;;
9265 esac
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9424 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9425
9426 if test "$GCC" = yes; then
9427 case $host_os in
9428 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9429 *) lt_awk_arg="/^libraries:/" ;;
9430 esac
9431 case $host_os in
9432 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9433 *) lt_sed_strip_eq="s,=/,/,g" ;;
9434 esac
9435 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9436 case $lt_search_path_spec in
9437 *\;*)
9438 # if the path contains ";" then we assume it to be the separator
9439 # otherwise default to the standard path separator (i.e. ":") - it is
9440 # assumed that no part of a normal pathname contains ";" but that should
9441 # okay in the real world where ";" in dirpaths is itself problematic.
9442 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9443 ;;
9444 *)
9445 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9446 ;;
9447 esac
9448 # Ok, now we have the path, separated by spaces, we can step through it
9449 # and add multilib dir if necessary.
9450 lt_tmp_lt_search_path_spec=
9451 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9452 for lt_sys_path in $lt_search_path_spec; do
9453 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9454 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9455 else
9456 test -d "$lt_sys_path" && \
9457 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9458 fi
9459 done
9460 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9461 BEGIN {RS=" "; FS="/|\n";} {
9462 lt_foo="";
9463 lt_count=0;
9464 for (lt_i = NF; lt_i > 0; lt_i--) {
9465 if ($lt_i != "" && $lt_i != ".") {
9466 if ($lt_i == "..") {
9467 lt_count++;
9468 } else {
9469 if (lt_count == 0) {
9470 lt_foo="/" $lt_i lt_foo;
9471 } else {
9472 lt_count--;
9473 }
9474 }
9475 }
9476 }
9477 if (lt_foo != "") { lt_freq[lt_foo]++; }
9478 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9479 }'`
9480 # AWK program above erroneously prepends '/' to C:/dos/paths
9481 # for these hosts.
9482 case $host_os in
9483 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9484 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9485 esac
9486 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9487 else
9488 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9489 fi
9490 library_names_spec=
9491 libname_spec='lib$name'
9492 soname_spec=
9493 shrext_cmds=".so"
9494 postinstall_cmds=
9495 postuninstall_cmds=
9496 finish_cmds=
9497 finish_eval=
9498 shlibpath_var=
9499 shlibpath_overrides_runpath=unknown
9500 version_type=none
9501 dynamic_linker="$host_os ld.so"
9502 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9503 need_lib_prefix=unknown
9504 hardcode_into_libs=no
9505
9506 # when you set need_version to no, make sure it does not cause -set_version
9507 # flags to be left without arguments
9508 need_version=unknown
9509
9510 case $host_os in
9511 aix3*)
9512 version_type=linux
9513 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9514 shlibpath_var=LIBPATH
9515
9516 # AIX 3 has no versioning support, so we append a major version to the name.
9517 soname_spec='${libname}${release}${shared_ext}$major'
9518 ;;
9519
9520 aix[4-9]*)
9521 version_type=linux
9522 need_lib_prefix=no
9523 need_version=no
9524 hardcode_into_libs=yes
9525 if test "$host_cpu" = ia64; then
9526 # AIX 5 supports IA64
9527 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9528 shlibpath_var=LD_LIBRARY_PATH
9529 else
9530 # With GCC up to 2.95.x, collect2 would create an import file
9531 # for dependence libraries. The import file would start with
9532 # the line `#! .'. This would cause the generated library to
9533 # depend on `.', always an invalid library. This was fixed in
9534 # development snapshots of GCC prior to 3.0.
9535 case $host_os in
9536 aix4 | aix4.[01] | aix4.[01].*)
9537 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9538 echo ' yes '
9539 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9540 :
9541 else
9542 can_build_shared=no
9543 fi
9544 ;;
9545 esac
9546 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9547 # soname into executable. Probably we can add versioning support to
9548 # collect2, so additional links can be useful in future.
9549 if test "$aix_use_runtimelinking" = yes; then
9550 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9551 # instead of lib<name>.a to let people know that these are not
9552 # typical AIX shared libraries.
9553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9554 else
9555 # We preserve .a as extension for shared libraries through AIX4.2
9556 # and later when we are not doing run time linking.
9557 library_names_spec='${libname}${release}.a $libname.a'
9558 soname_spec='${libname}${release}${shared_ext}$major'
9559 fi
9560 shlibpath_var=LIBPATH
9561 fi
9562 ;;
9563
9564 amigaos*)
9565 case $host_cpu in
9566 powerpc)
9567 # Since July 2007 AmigaOS4 officially supports .so libraries.
9568 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9570 ;;
9571 m68k)
9572 library_names_spec='$libname.ixlibrary $libname.a'
9573 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9574 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'
9575 ;;
9576 esac
9577 ;;
9578
9579 beos*)
9580 library_names_spec='${libname}${shared_ext}'
9581 dynamic_linker="$host_os ld.so"
9582 shlibpath_var=LIBRARY_PATH
9583 ;;
9584
9585 bsdi[45]*)
9586 version_type=linux
9587 need_version=no
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9589 soname_spec='${libname}${release}${shared_ext}$major'
9590 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9591 shlibpath_var=LD_LIBRARY_PATH
9592 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9593 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9594 # the default ld.so.conf also contains /usr/contrib/lib and
9595 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9596 # libtool to hard-code these into programs
9597 ;;
9598
9599 cygwin* | mingw* | pw32* | cegcc*)
9600 version_type=windows
9601 shrext_cmds=".dll"
9602 need_version=no
9603 need_lib_prefix=no
9604
9605 case $GCC,$host_os in
9606 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9607 library_names_spec='$libname.dll.a'
9608 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9609 postinstall_cmds='base_file=`basename \${file}`~
9610 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9611 dldir=$destdir/`dirname \$dlpath`~
9612 test -d \$dldir || mkdir -p \$dldir~
9613 $install_prog $dir/$dlname \$dldir/$dlname~
9614 chmod a+x \$dldir/$dlname~
9615 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9616 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9617 fi'
9618 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9619 dlpath=$dir/\$dldll~
9620 $RM \$dlpath'
9621 shlibpath_overrides_runpath=yes
9622
9623 case $host_os in
9624 cygwin*)
9625 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9626 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9627
9628 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9629 ;;
9630 mingw* | cegcc*)
9631 # MinGW DLLs use traditional 'lib' prefix
9632 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9633 ;;
9634 pw32*)
9635 # pw32 DLLs use 'pw' prefix rather than 'lib'
9636 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9637 ;;
9638 esac
9639 ;;
9640
9641 *)
9642 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9643 ;;
9644 esac
9645 dynamic_linker='Win32 ld.exe'
9646 # FIXME: first we should search . and the directory the executable is in
9647 shlibpath_var=PATH
9648 ;;
9649
9650 darwin* | rhapsody*)
9651 dynamic_linker="$host_os dyld"
9652 version_type=darwin
9653 need_lib_prefix=no
9654 need_version=no
9655 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9656 soname_spec='${libname}${release}${major}$shared_ext'
9657 shlibpath_overrides_runpath=yes
9658 shlibpath_var=DYLD_LIBRARY_PATH
9659 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9660
9661 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9662 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9663 ;;
9664
9665 dgux*)
9666 version_type=linux
9667 need_lib_prefix=no
9668 need_version=no
9669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9670 soname_spec='${libname}${release}${shared_ext}$major'
9671 shlibpath_var=LD_LIBRARY_PATH
9672 ;;
9673
9674 freebsd* | dragonfly*)
9675 # DragonFly does not have aout. When/if they implement a new
9676 # versioning mechanism, adjust this.
9677 if test -x /usr/bin/objformat; then
9678 objformat=`/usr/bin/objformat`
9679 else
9680 case $host_os in
9681 freebsd[23].*) objformat=aout ;;
9682 *) objformat=elf ;;
9683 esac
9684 fi
9685 version_type=freebsd-$objformat
9686 case $version_type in
9687 freebsd-elf*)
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9689 need_version=no
9690 need_lib_prefix=no
9691 ;;
9692 freebsd-*)
9693 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9694 need_version=yes
9695 ;;
9696 esac
9697 shlibpath_var=LD_LIBRARY_PATH
9698 case $host_os in
9699 freebsd2.*)
9700 shlibpath_overrides_runpath=yes
9701 ;;
9702 freebsd3.[01]* | freebsdelf3.[01]*)
9703 shlibpath_overrides_runpath=yes
9704 hardcode_into_libs=yes
9705 ;;
9706 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9707 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9708 shlibpath_overrides_runpath=no
9709 hardcode_into_libs=yes
9710 ;;
9711 *) # from 4.6 on, and DragonFly
9712 shlibpath_overrides_runpath=yes
9713 hardcode_into_libs=yes
9714 ;;
9715 esac
9716 ;;
9717
9718 gnu*)
9719 version_type=linux
9720 need_lib_prefix=no
9721 need_version=no
9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9723 soname_spec='${libname}${release}${shared_ext}$major'
9724 shlibpath_var=LD_LIBRARY_PATH
9725 hardcode_into_libs=yes
9726 ;;
9727
9728 haiku*)
9729 version_type=linux
9730 need_lib_prefix=no
9731 need_version=no
9732 dynamic_linker="$host_os runtime_loader"
9733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9734 soname_spec='${libname}${release}${shared_ext}$major'
9735 shlibpath_var=LIBRARY_PATH
9736 shlibpath_overrides_runpath=yes
9737 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9738 hardcode_into_libs=yes
9739 ;;
9740
9741 hpux9* | hpux10* | hpux11*)
9742 # Give a soname corresponding to the major version so that dld.sl refuses to
9743 # link against other versions.
9744 version_type=sunos
9745 need_lib_prefix=no
9746 need_version=no
9747 case $host_cpu in
9748 ia64*)
9749 shrext_cmds='.so'
9750 hardcode_into_libs=yes
9751 dynamic_linker="$host_os dld.so"
9752 shlibpath_var=LD_LIBRARY_PATH
9753 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9755 soname_spec='${libname}${release}${shared_ext}$major'
9756 if test "X$HPUX_IA64_MODE" = X32; then
9757 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9758 else
9759 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9760 fi
9761 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9762 ;;
9763 hppa*64*)
9764 shrext_cmds='.sl'
9765 hardcode_into_libs=yes
9766 dynamic_linker="$host_os dld.sl"
9767 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9768 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9770 soname_spec='${libname}${release}${shared_ext}$major'
9771 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9772 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9773 ;;
9774 *)
9775 shrext_cmds='.sl'
9776 dynamic_linker="$host_os dld.sl"
9777 shlibpath_var=SHLIB_PATH
9778 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 ;;
9782 esac
9783 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9784 postinstall_cmds='chmod 555 $lib'
9785 # or fails outright, so override atomically:
9786 install_override_mode=555
9787 ;;
9788
9789 interix[3-9]*)
9790 version_type=linux
9791 need_lib_prefix=no
9792 need_version=no
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9794 soname_spec='${libname}${release}${shared_ext}$major'
9795 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9796 shlibpath_var=LD_LIBRARY_PATH
9797 shlibpath_overrides_runpath=no
9798 hardcode_into_libs=yes
9799 ;;
9800
9801 irix5* | irix6* | nonstopux*)
9802 case $host_os in
9803 nonstopux*) version_type=nonstopux ;;
9804 *)
9805 if test "$lt_cv_prog_gnu_ld" = yes; then
9806 version_type=linux
9807 else
9808 version_type=irix
9809 fi ;;
9810 esac
9811 need_lib_prefix=no
9812 need_version=no
9813 soname_spec='${libname}${release}${shared_ext}$major'
9814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9815 case $host_os in
9816 irix5* | nonstopux*)
9817 libsuff= shlibsuff=
9818 ;;
9819 *)
9820 case $LD in # libtool.m4 will add one of these switches to LD
9821 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9822 libsuff= shlibsuff= libmagic=32-bit;;
9823 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9824 libsuff=32 shlibsuff=N32 libmagic=N32;;
9825 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9826 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9827 *) libsuff= shlibsuff= libmagic=never-match;;
9828 esac
9829 ;;
9830 esac
9831 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9832 shlibpath_overrides_runpath=no
9833 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9834 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9835 hardcode_into_libs=yes
9836 ;;
9837
9838 # No shared lib support for Linux oldld, aout, or coff.
9839 linux*oldld* | linux*aout* | linux*coff*)
9840 dynamic_linker=no
9841 ;;
9842
9843 # This must be Linux ELF.
9844 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9845 version_type=linux
9846 need_lib_prefix=no
9847 need_version=no
9848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9849 soname_spec='${libname}${release}${shared_ext}$major'
9850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9851 shlibpath_var=LD_LIBRARY_PATH
9852 shlibpath_overrides_runpath=no
9853
9854 # Some binutils ld are patched to set DT_RUNPATH
9855 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9856 $as_echo_n "(cached) " >&6
9857 else
9858 lt_cv_shlibpath_overrides_runpath=no
9859 save_LDFLAGS=$LDFLAGS
9860 save_libdir=$libdir
9861 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9862 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h. */
9865
9866 int
9867 main ()
9868 {
9869
9870 ;
9871 return 0;
9872 }
9873 _ACEOF
9874 if ac_fn_c_try_link "$LINENO"; then :
9875 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9876 lt_cv_shlibpath_overrides_runpath=yes
9877 fi
9878 fi
9879 rm -f core conftest.err conftest.$ac_objext \
9880 conftest$ac_exeext conftest.$ac_ext
9881 LDFLAGS=$save_LDFLAGS
9882 libdir=$save_libdir
9883
9884 fi
9885
9886 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9887
9888 # This implies no fast_install, which is unacceptable.
9889 # Some rework will be needed to allow for fast_install
9890 # before this can be enabled.
9891 hardcode_into_libs=yes
9892
9893 # Append ld.so.conf contents to the search path
9894 if test -f /etc/ld.so.conf; then
9895 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' ' '`
9896 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9897 fi
9898
9899 # We used to test for /lib/ld.so.1 and disable shared libraries on
9900 # powerpc, because MkLinux only supported shared libraries with the
9901 # GNU dynamic linker. Since this was broken with cross compilers,
9902 # most powerpc-linux boxes support dynamic linking these days and
9903 # people can always --disable-shared, the test was removed, and we
9904 # assume the GNU/Linux dynamic linker is in use.
9905 dynamic_linker='GNU/Linux ld.so'
9906 ;;
9907
9908 netbsd*)
9909 version_type=sunos
9910 need_lib_prefix=no
9911 need_version=no
9912 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9915 dynamic_linker='NetBSD (a.out) ld.so'
9916 else
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 dynamic_linker='NetBSD ld.elf_so'
9920 fi
9921 shlibpath_var=LD_LIBRARY_PATH
9922 shlibpath_overrides_runpath=yes
9923 hardcode_into_libs=yes
9924 ;;
9925
9926 newsos6)
9927 version_type=linux
9928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9929 shlibpath_var=LD_LIBRARY_PATH
9930 shlibpath_overrides_runpath=yes
9931 ;;
9932
9933 *nto* | *qnx*)
9934 version_type=qnx
9935 need_lib_prefix=no
9936 need_version=no
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9938 soname_spec='${libname}${release}${shared_ext}$major'
9939 shlibpath_var=LD_LIBRARY_PATH
9940 shlibpath_overrides_runpath=no
9941 hardcode_into_libs=yes
9942 dynamic_linker='ldqnx.so'
9943 ;;
9944
9945 openbsd*)
9946 version_type=sunos
9947 sys_lib_dlsearch_path_spec="/usr/lib"
9948 need_lib_prefix=no
9949 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9950 case $host_os in
9951 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9952 *) need_version=no ;;
9953 esac
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9956 shlibpath_var=LD_LIBRARY_PATH
9957 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9958 case $host_os in
9959 openbsd2.[89] | openbsd2.[89].*)
9960 shlibpath_overrides_runpath=no
9961 ;;
9962 *)
9963 shlibpath_overrides_runpath=yes
9964 ;;
9965 esac
9966 else
9967 shlibpath_overrides_runpath=yes
9968 fi
9969 ;;
9970
9971 os2*)
9972 libname_spec='$name'
9973 shrext_cmds=".dll"
9974 need_lib_prefix=no
9975 library_names_spec='$libname${shared_ext} $libname.a'
9976 dynamic_linker='OS/2 ld.exe'
9977 shlibpath_var=LIBPATH
9978 ;;
9979
9980 osf3* | osf4* | osf5*)
9981 version_type=osf
9982 need_lib_prefix=no
9983 need_version=no
9984 soname_spec='${libname}${release}${shared_ext}$major'
9985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9986 shlibpath_var=LD_LIBRARY_PATH
9987 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9988 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9989 ;;
9990
9991 rdos*)
9992 dynamic_linker=no
9993 ;;
9994
9995 solaris*)
9996 version_type=linux
9997 need_lib_prefix=no
9998 need_version=no
9999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10000 soname_spec='${libname}${release}${shared_ext}$major'
10001 shlibpath_var=LD_LIBRARY_PATH
10002 shlibpath_overrides_runpath=yes
10003 hardcode_into_libs=yes
10004 # ldd complains unless libraries are executable
10005 postinstall_cmds='chmod +x $lib'
10006 ;;
10007
10008 sunos4*)
10009 version_type=sunos
10010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10011 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10012 shlibpath_var=LD_LIBRARY_PATH
10013 shlibpath_overrides_runpath=yes
10014 if test "$with_gnu_ld" = yes; then
10015 need_lib_prefix=no
10016 fi
10017 need_version=yes
10018 ;;
10019
10020 sysv4 | sysv4.3*)
10021 version_type=linux
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10023 soname_spec='${libname}${release}${shared_ext}$major'
10024 shlibpath_var=LD_LIBRARY_PATH
10025 case $host_vendor in
10026 sni)
10027 shlibpath_overrides_runpath=no
10028 need_lib_prefix=no
10029 runpath_var=LD_RUN_PATH
10030 ;;
10031 siemens)
10032 need_lib_prefix=no
10033 ;;
10034 motorola)
10035 need_lib_prefix=no
10036 need_version=no
10037 shlibpath_overrides_runpath=no
10038 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10039 ;;
10040 esac
10041 ;;
10042
10043 sysv4*MP*)
10044 if test -d /usr/nec ;then
10045 version_type=linux
10046 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10047 soname_spec='$libname${shared_ext}.$major'
10048 shlibpath_var=LD_LIBRARY_PATH
10049 fi
10050 ;;
10051
10052 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10053 version_type=freebsd-elf
10054 need_lib_prefix=no
10055 need_version=no
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10057 soname_spec='${libname}${release}${shared_ext}$major'
10058 shlibpath_var=LD_LIBRARY_PATH
10059 shlibpath_overrides_runpath=yes
10060 hardcode_into_libs=yes
10061 if test "$with_gnu_ld" = yes; then
10062 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10063 else
10064 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10065 case $host_os in
10066 sco3.2v5*)
10067 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10068 ;;
10069 esac
10070 fi
10071 sys_lib_dlsearch_path_spec='/usr/lib'
10072 ;;
10073
10074 tpf*)
10075 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10076 version_type=linux
10077 need_lib_prefix=no
10078 need_version=no
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10080 shlibpath_var=LD_LIBRARY_PATH
10081 shlibpath_overrides_runpath=no
10082 hardcode_into_libs=yes
10083 ;;
10084
10085 uts4*)
10086 version_type=linux
10087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10088 soname_spec='${libname}${release}${shared_ext}$major'
10089 shlibpath_var=LD_LIBRARY_PATH
10090 ;;
10091
10092 *)
10093 dynamic_linker=no
10094 ;;
10095 esac
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10097 $as_echo "$dynamic_linker" >&6; }
10098 test "$dynamic_linker" = no && can_build_shared=no
10099
10100 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10101 if test "$GCC" = yes; then
10102 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10103 fi
10104
10105 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10106 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10107 fi
10108 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10109 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10110 fi
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10204 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10205 hardcode_action=
10206 if test -n "$hardcode_libdir_flag_spec" ||
10207 test -n "$runpath_var" ||
10208 test "X$hardcode_automatic" = "Xyes" ; then
10209
10210 # We can hardcode non-existent directories.
10211 if test "$hardcode_direct" != no &&
10212 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10213 # have to relink, otherwise we might link with an installed library
10214 # when we should be linking with a yet-to-be-installed one
10215 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10216 test "$hardcode_minus_L" != no; then
10217 # Linking always hardcodes the temporary library directory.
10218 hardcode_action=relink
10219 else
10220 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10221 hardcode_action=immediate
10222 fi
10223 else
10224 # We cannot hardcode anything, or else we can only hardcode existing
10225 # directories.
10226 hardcode_action=unsupported
10227 fi
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10229 $as_echo "$hardcode_action" >&6; }
10230
10231 if test "$hardcode_action" = relink ||
10232 test "$inherit_rpath" = yes; then
10233 # Fast installation is not supported
10234 enable_fast_install=no
10235 elif test "$shlibpath_overrides_runpath" = yes ||
10236 test "$enable_shared" = no; then
10237 # Fast installation is not necessary
10238 enable_fast_install=needless
10239 fi
10240
10241
10242
10243
10244
10245
10246 if test "x$enable_dlopen" != xyes; then
10247 enable_dlopen=unknown
10248 enable_dlopen_self=unknown
10249 enable_dlopen_self_static=unknown
10250 else
10251 lt_cv_dlopen=no
10252 lt_cv_dlopen_libs=
10253
10254 case $host_os in
10255 beos*)
10256 lt_cv_dlopen="load_add_on"
10257 lt_cv_dlopen_libs=
10258 lt_cv_dlopen_self=yes
10259 ;;
10260
10261 mingw* | pw32* | cegcc*)
10262 lt_cv_dlopen="LoadLibrary"
10263 lt_cv_dlopen_libs=
10264 ;;
10265
10266 cygwin*)
10267 lt_cv_dlopen="dlopen"
10268 lt_cv_dlopen_libs=
10269 ;;
10270
10271 darwin*)
10272 # if libdl is installed we need to link against it
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10274 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10275 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10276 $as_echo_n "(cached) " >&6
10277 else
10278 ac_check_lib_save_LIBS=$LIBS
10279 LIBS="-ldl $LIBS"
10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10282
10283 /* Override any GCC internal prototype to avoid an error.
10284 Use char because int might match the return type of a GCC
10285 builtin and then its argument prototype would still apply. */
10286 #ifdef __cplusplus
10287 extern "C"
10288 #endif
10289 char dlopen ();
10290 int
10291 main ()
10292 {
10293 return dlopen ();
10294 ;
10295 return 0;
10296 }
10297 _ACEOF
10298 if ac_fn_c_try_link "$LINENO"; then :
10299 ac_cv_lib_dl_dlopen=yes
10300 else
10301 ac_cv_lib_dl_dlopen=no
10302 fi
10303 rm -f core conftest.err conftest.$ac_objext \
10304 conftest$ac_exeext conftest.$ac_ext
10305 LIBS=$ac_check_lib_save_LIBS
10306 fi
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10308 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10309 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10310 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10311 else
10312
10313 lt_cv_dlopen="dyld"
10314 lt_cv_dlopen_libs=
10315 lt_cv_dlopen_self=yes
10316
10317 fi
10318
10319 ;;
10320
10321 *)
10322 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10323 if test "x$ac_cv_func_shl_load" = x""yes; then :
10324 lt_cv_dlopen="shl_load"
10325 else
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10327 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10328 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10329 $as_echo_n "(cached) " >&6
10330 else
10331 ac_check_lib_save_LIBS=$LIBS
10332 LIBS="-ldld $LIBS"
10333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10334 /* end confdefs.h. */
10335
10336 /* Override any GCC internal prototype to avoid an error.
10337 Use char because int might match the return type of a GCC
10338 builtin and then its argument prototype would still apply. */
10339 #ifdef __cplusplus
10340 extern "C"
10341 #endif
10342 char shl_load ();
10343 int
10344 main ()
10345 {
10346 return shl_load ();
10347 ;
10348 return 0;
10349 }
10350 _ACEOF
10351 if ac_fn_c_try_link "$LINENO"; then :
10352 ac_cv_lib_dld_shl_load=yes
10353 else
10354 ac_cv_lib_dld_shl_load=no
10355 fi
10356 rm -f core conftest.err conftest.$ac_objext \
10357 conftest$ac_exeext conftest.$ac_ext
10358 LIBS=$ac_check_lib_save_LIBS
10359 fi
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10361 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10362 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10363 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10364 else
10365 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10366 if test "x$ac_cv_func_dlopen" = x""yes; then :
10367 lt_cv_dlopen="dlopen"
10368 else
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10370 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10371 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10372 $as_echo_n "(cached) " >&6
10373 else
10374 ac_check_lib_save_LIBS=$LIBS
10375 LIBS="-ldl $LIBS"
10376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10377 /* end confdefs.h. */
10378
10379 /* Override any GCC internal prototype to avoid an error.
10380 Use char because int might match the return type of a GCC
10381 builtin and then its argument prototype would still apply. */
10382 #ifdef __cplusplus
10383 extern "C"
10384 #endif
10385 char dlopen ();
10386 int
10387 main ()
10388 {
10389 return dlopen ();
10390 ;
10391 return 0;
10392 }
10393 _ACEOF
10394 if ac_fn_c_try_link "$LINENO"; then :
10395 ac_cv_lib_dl_dlopen=yes
10396 else
10397 ac_cv_lib_dl_dlopen=no
10398 fi
10399 rm -f core conftest.err conftest.$ac_objext \
10400 conftest$ac_exeext conftest.$ac_ext
10401 LIBS=$ac_check_lib_save_LIBS
10402 fi
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10404 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10405 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10406 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10407 else
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10409 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10410 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10411 $as_echo_n "(cached) " >&6
10412 else
10413 ac_check_lib_save_LIBS=$LIBS
10414 LIBS="-lsvld $LIBS"
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10417
10418 /* Override any GCC internal prototype to avoid an error.
10419 Use char because int might match the return type of a GCC
10420 builtin and then its argument prototype would still apply. */
10421 #ifdef __cplusplus
10422 extern "C"
10423 #endif
10424 char dlopen ();
10425 int
10426 main ()
10427 {
10428 return dlopen ();
10429 ;
10430 return 0;
10431 }
10432 _ACEOF
10433 if ac_fn_c_try_link "$LINENO"; then :
10434 ac_cv_lib_svld_dlopen=yes
10435 else
10436 ac_cv_lib_svld_dlopen=no
10437 fi
10438 rm -f core conftest.err conftest.$ac_objext \
10439 conftest$ac_exeext conftest.$ac_ext
10440 LIBS=$ac_check_lib_save_LIBS
10441 fi
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10443 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10444 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10445 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10446 else
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10448 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10449 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10450 $as_echo_n "(cached) " >&6
10451 else
10452 ac_check_lib_save_LIBS=$LIBS
10453 LIBS="-ldld $LIBS"
10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h. */
10456
10457 /* Override any GCC internal prototype to avoid an error.
10458 Use char because int might match the return type of a GCC
10459 builtin and then its argument prototype would still apply. */
10460 #ifdef __cplusplus
10461 extern "C"
10462 #endif
10463 char dld_link ();
10464 int
10465 main ()
10466 {
10467 return dld_link ();
10468 ;
10469 return 0;
10470 }
10471 _ACEOF
10472 if ac_fn_c_try_link "$LINENO"; then :
10473 ac_cv_lib_dld_dld_link=yes
10474 else
10475 ac_cv_lib_dld_dld_link=no
10476 fi
10477 rm -f core conftest.err conftest.$ac_objext \
10478 conftest$ac_exeext conftest.$ac_ext
10479 LIBS=$ac_check_lib_save_LIBS
10480 fi
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10482 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10483 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10484 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10485 fi
10486
10487
10488 fi
10489
10490
10491 fi
10492
10493
10494 fi
10495
10496
10497 fi
10498
10499
10500 fi
10501
10502 ;;
10503 esac
10504
10505 if test "x$lt_cv_dlopen" != xno; then
10506 enable_dlopen=yes
10507 else
10508 enable_dlopen=no
10509 fi
10510
10511 case $lt_cv_dlopen in
10512 dlopen)
10513 save_CPPFLAGS="$CPPFLAGS"
10514 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10515
10516 save_LDFLAGS="$LDFLAGS"
10517 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10518
10519 save_LIBS="$LIBS"
10520 LIBS="$lt_cv_dlopen_libs $LIBS"
10521
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10523 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10524 if test "${lt_cv_dlopen_self+set}" = set; then :
10525 $as_echo_n "(cached) " >&6
10526 else
10527 if test "$cross_compiling" = yes; then :
10528 lt_cv_dlopen_self=cross
10529 else
10530 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10531 lt_status=$lt_dlunknown
10532 cat > conftest.$ac_ext <<_LT_EOF
10533 #line 10533 "configure"
10534 #include "confdefs.h"
10535
10536 #if HAVE_DLFCN_H
10537 #include <dlfcn.h>
10538 #endif
10539
10540 #include <stdio.h>
10541
10542 #ifdef RTLD_GLOBAL
10543 # define LT_DLGLOBAL RTLD_GLOBAL
10544 #else
10545 # ifdef DL_GLOBAL
10546 # define LT_DLGLOBAL DL_GLOBAL
10547 # else
10548 # define LT_DLGLOBAL 0
10549 # endif
10550 #endif
10551
10552 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10553 find out it does not work in some platform. */
10554 #ifndef LT_DLLAZY_OR_NOW
10555 # ifdef RTLD_LAZY
10556 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10557 # else
10558 # ifdef DL_LAZY
10559 # define LT_DLLAZY_OR_NOW DL_LAZY
10560 # else
10561 # ifdef RTLD_NOW
10562 # define LT_DLLAZY_OR_NOW RTLD_NOW
10563 # else
10564 # ifdef DL_NOW
10565 # define LT_DLLAZY_OR_NOW DL_NOW
10566 # else
10567 # define LT_DLLAZY_OR_NOW 0
10568 # endif
10569 # endif
10570 # endif
10571 # endif
10572 #endif
10573
10574 /* When -fvisbility=hidden is used, assume the code has been annotated
10575 correspondingly for the symbols needed. */
10576 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10577 void fnord () __attribute__((visibility("default")));
10578 #endif
10579
10580 void fnord () { int i=42; }
10581 int main ()
10582 {
10583 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10584 int status = $lt_dlunknown;
10585
10586 if (self)
10587 {
10588 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10589 else
10590 {
10591 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10592 else puts (dlerror ());
10593 }
10594 /* dlclose (self); */
10595 }
10596 else
10597 puts (dlerror ());
10598
10599 return status;
10600 }
10601 _LT_EOF
10602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10603 (eval $ac_link) 2>&5
10604 ac_status=$?
10605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10606 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10607 (./conftest; exit; ) >&5 2>/dev/null
10608 lt_status=$?
10609 case x$lt_status in
10610 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10611 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10612 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10613 esac
10614 else :
10615 # compilation failed
10616 lt_cv_dlopen_self=no
10617 fi
10618 fi
10619 rm -fr conftest*
10620
10621
10622 fi
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10624 $as_echo "$lt_cv_dlopen_self" >&6; }
10625
10626 if test "x$lt_cv_dlopen_self" = xyes; then
10627 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10629 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10630 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10631 $as_echo_n "(cached) " >&6
10632 else
10633 if test "$cross_compiling" = yes; then :
10634 lt_cv_dlopen_self_static=cross
10635 else
10636 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10637 lt_status=$lt_dlunknown
10638 cat > conftest.$ac_ext <<_LT_EOF
10639 #line 10639 "configure"
10640 #include "confdefs.h"
10641
10642 #if HAVE_DLFCN_H
10643 #include <dlfcn.h>
10644 #endif
10645
10646 #include <stdio.h>
10647
10648 #ifdef RTLD_GLOBAL
10649 # define LT_DLGLOBAL RTLD_GLOBAL
10650 #else
10651 # ifdef DL_GLOBAL
10652 # define LT_DLGLOBAL DL_GLOBAL
10653 # else
10654 # define LT_DLGLOBAL 0
10655 # endif
10656 #endif
10657
10658 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10659 find out it does not work in some platform. */
10660 #ifndef LT_DLLAZY_OR_NOW
10661 # ifdef RTLD_LAZY
10662 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10663 # else
10664 # ifdef DL_LAZY
10665 # define LT_DLLAZY_OR_NOW DL_LAZY
10666 # else
10667 # ifdef RTLD_NOW
10668 # define LT_DLLAZY_OR_NOW RTLD_NOW
10669 # else
10670 # ifdef DL_NOW
10671 # define LT_DLLAZY_OR_NOW DL_NOW
10672 # else
10673 # define LT_DLLAZY_OR_NOW 0
10674 # endif
10675 # endif
10676 # endif
10677 # endif
10678 #endif
10679
10680 /* When -fvisbility=hidden is used, assume the code has been annotated
10681 correspondingly for the symbols needed. */
10682 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10683 void fnord () __attribute__((visibility("default")));
10684 #endif
10685
10686 void fnord () { int i=42; }
10687 int main ()
10688 {
10689 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10690 int status = $lt_dlunknown;
10691
10692 if (self)
10693 {
10694 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10695 else
10696 {
10697 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10698 else puts (dlerror ());
10699 }
10700 /* dlclose (self); */
10701 }
10702 else
10703 puts (dlerror ());
10704
10705 return status;
10706 }
10707 _LT_EOF
10708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10709 (eval $ac_link) 2>&5
10710 ac_status=$?
10711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10712 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10713 (./conftest; exit; ) >&5 2>/dev/null
10714 lt_status=$?
10715 case x$lt_status in
10716 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10717 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10718 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10719 esac
10720 else :
10721 # compilation failed
10722 lt_cv_dlopen_self_static=no
10723 fi
10724 fi
10725 rm -fr conftest*
10726
10727
10728 fi
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10730 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10731 fi
10732
10733 CPPFLAGS="$save_CPPFLAGS"
10734 LDFLAGS="$save_LDFLAGS"
10735 LIBS="$save_LIBS"
10736 ;;
10737 esac
10738
10739 case $lt_cv_dlopen_self in
10740 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10741 *) enable_dlopen_self=unknown ;;
10742 esac
10743
10744 case $lt_cv_dlopen_self_static in
10745 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10746 *) enable_dlopen_self_static=unknown ;;
10747 esac
10748 fi
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766 striplib=
10767 old_striplib=
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10769 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10770 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10771 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10772 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10774 $as_echo "yes" >&6; }
10775 else
10776 # FIXME - insert some real tests, host_os isn't really good enough
10777 case $host_os in
10778 darwin*)
10779 if test -n "$STRIP" ; then
10780 striplib="$STRIP -x"
10781 old_striplib="$STRIP -S"
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10783 $as_echo "yes" >&6; }
10784 else
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786 $as_echo "no" >&6; }
10787 fi
10788 ;;
10789 *)
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10791 $as_echo "no" >&6; }
10792 ;;
10793 esac
10794 fi
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807 # Report which library types will actually be built
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10809 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10811 $as_echo "$can_build_shared" >&6; }
10812
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10814 $as_echo_n "checking whether to build shared libraries... " >&6; }
10815 test "$can_build_shared" = "no" && enable_shared=no
10816
10817 # On AIX, shared libraries and static libraries use the same namespace, and
10818 # are all built from PIC.
10819 case $host_os in
10820 aix3*)
10821 test "$enable_shared" = yes && enable_static=no
10822 if test -n "$RANLIB"; then
10823 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10824 postinstall_cmds='$RANLIB $lib'
10825 fi
10826 ;;
10827
10828 aix[4-9]*)
10829 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10830 test "$enable_shared" = yes && enable_static=no
10831 fi
10832 ;;
10833 esac
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10835 $as_echo "$enable_shared" >&6; }
10836
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10838 $as_echo_n "checking whether to build static libraries... " >&6; }
10839 # Make sure either enable_shared or enable_static is yes.
10840 test "$enable_shared" = yes || enable_static=yes
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10842 $as_echo "$enable_static" >&6; }
10843
10844
10845
10846
10847 fi
10848 ac_ext=c
10849 ac_cpp='$CPP $CPPFLAGS'
10850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10853
10854 CC="$lt_save_CC"
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868 ac_config_commands="$ac_config_commands libtool"
10869
10870
10871
10872
10873 # Only expand once:
10874
10875
10876
10877 ac_ext=cpp
10878 ac_cpp='$CXXCPP $CPPFLAGS'
10879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10882 if test -z "$CXX"; then
10883 if test -n "$CCC"; then
10884 CXX=$CCC
10885 else
10886 if test -n "$ac_tool_prefix"; then
10887 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10888 do
10889 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10890 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10892 $as_echo_n "checking for $ac_word... " >&6; }
10893 if test "${ac_cv_prog_CXX+set}" = set; then :
10894 $as_echo_n "(cached) " >&6
10895 else
10896 if test -n "$CXX"; then
10897 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10898 else
10899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10900 for as_dir in $PATH
10901 do
10902 IFS=$as_save_IFS
10903 test -z "$as_dir" && as_dir=.
10904 for ac_exec_ext in '' $ac_executable_extensions; do
10905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10906 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10908 break 2
10909 fi
10910 done
10911 done
10912 IFS=$as_save_IFS
10913
10914 fi
10915 fi
10916 CXX=$ac_cv_prog_CXX
10917 if test -n "$CXX"; then
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10919 $as_echo "$CXX" >&6; }
10920 else
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10922 $as_echo "no" >&6; }
10923 fi
10924
10925
10926 test -n "$CXX" && break
10927 done
10928 fi
10929 if test -z "$CXX"; then
10930 ac_ct_CXX=$CXX
10931 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10932 do
10933 # Extract the first word of "$ac_prog", so it can be a program name with args.
10934 set dummy $ac_prog; ac_word=$2
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10936 $as_echo_n "checking for $ac_word... " >&6; }
10937 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10938 $as_echo_n "(cached) " >&6
10939 else
10940 if test -n "$ac_ct_CXX"; then
10941 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10942 else
10943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944 for as_dir in $PATH
10945 do
10946 IFS=$as_save_IFS
10947 test -z "$as_dir" && as_dir=.
10948 for ac_exec_ext in '' $ac_executable_extensions; do
10949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10950 ac_cv_prog_ac_ct_CXX="$ac_prog"
10951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10952 break 2
10953 fi
10954 done
10955 done
10956 IFS=$as_save_IFS
10957
10958 fi
10959 fi
10960 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10961 if test -n "$ac_ct_CXX"; then
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10963 $as_echo "$ac_ct_CXX" >&6; }
10964 else
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966 $as_echo "no" >&6; }
10967 fi
10968
10969
10970 test -n "$ac_ct_CXX" && break
10971 done
10972
10973 if test "x$ac_ct_CXX" = x; then
10974 CXX="g++"
10975 else
10976 case $cross_compiling:$ac_tool_warned in
10977 yes:)
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10980 ac_tool_warned=yes ;;
10981 esac
10982 CXX=$ac_ct_CXX
10983 fi
10984 fi
10985
10986 fi
10987 fi
10988 # Provide some information about the compiler.
10989 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10990 set X $ac_compile
10991 ac_compiler=$2
10992 for ac_option in --version -v -V -qversion; do
10993 { { ac_try="$ac_compiler $ac_option >&5"
10994 case "(($ac_try" in
10995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996 *) ac_try_echo=$ac_try;;
10997 esac
10998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10999 $as_echo "$ac_try_echo"; } >&5
11000 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11001 ac_status=$?
11002 if test -s conftest.err; then
11003 sed '10a\
11004 ... rest of stderr output deleted ...
11005 10q' conftest.err >conftest.er1
11006 cat conftest.er1 >&5
11007 rm -f conftest.er1 conftest.err
11008 fi
11009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11010 test $ac_status = 0; }
11011 done
11012
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11014 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11015 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11016 $as_echo_n "(cached) " >&6
11017 else
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11020
11021 int
11022 main ()
11023 {
11024 #ifndef __GNUC__
11025 choke me
11026 #endif
11027
11028 ;
11029 return 0;
11030 }
11031 _ACEOF
11032 if ac_fn_cxx_try_compile "$LINENO"; then :
11033 ac_compiler_gnu=yes
11034 else
11035 ac_compiler_gnu=no
11036 fi
11037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11038 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11039
11040 fi
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11042 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11043 if test $ac_compiler_gnu = yes; then
11044 GXX=yes
11045 else
11046 GXX=
11047 fi
11048 ac_test_CXXFLAGS=${CXXFLAGS+set}
11049 ac_save_CXXFLAGS=$CXXFLAGS
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11051 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11052 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11053 $as_echo_n "(cached) " >&6
11054 else
11055 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11056 ac_cxx_werror_flag=yes
11057 ac_cv_prog_cxx_g=no
11058 CXXFLAGS="-g"
11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11061
11062 int
11063 main ()
11064 {
11065
11066 ;
11067 return 0;
11068 }
11069 _ACEOF
11070 if ac_fn_cxx_try_compile "$LINENO"; then :
11071 ac_cv_prog_cxx_g=yes
11072 else
11073 CXXFLAGS=""
11074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11075 /* end confdefs.h. */
11076
11077 int
11078 main ()
11079 {
11080
11081 ;
11082 return 0;
11083 }
11084 _ACEOF
11085 if ac_fn_cxx_try_compile "$LINENO"; then :
11086
11087 else
11088 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11089 CXXFLAGS="-g"
11090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11091 /* end confdefs.h. */
11092
11093 int
11094 main ()
11095 {
11096
11097 ;
11098 return 0;
11099 }
11100 _ACEOF
11101 if ac_fn_cxx_try_compile "$LINENO"; then :
11102 ac_cv_prog_cxx_g=yes
11103 fi
11104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11105 fi
11106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11107 fi
11108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11109 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11110 fi
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11112 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11113 if test "$ac_test_CXXFLAGS" = set; then
11114 CXXFLAGS=$ac_save_CXXFLAGS
11115 elif test $ac_cv_prog_cxx_g = yes; then
11116 if test "$GXX" = yes; then
11117 CXXFLAGS="-g -O2"
11118 else
11119 CXXFLAGS="-g"
11120 fi
11121 else
11122 if test "$GXX" = yes; then
11123 CXXFLAGS="-O2"
11124 else
11125 CXXFLAGS=
11126 fi
11127 fi
11128 ac_ext=c
11129 ac_cpp='$CPP $CPPFLAGS'
11130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11133
11134 depcc="$CXX" am_compiler_list=
11135
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11137 $as_echo_n "checking dependency style of $depcc... " >&6; }
11138 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11139 $as_echo_n "(cached) " >&6
11140 else
11141 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11142 # We make a subdir and do the tests there. Otherwise we can end up
11143 # making bogus files that we don't know about and never remove. For
11144 # instance it was reported that on HP-UX the gcc test will end up
11145 # making a dummy file named `D' -- because `-MD' means `put the output
11146 # in D'.
11147 mkdir conftest.dir
11148 # Copy depcomp to subdir because otherwise we won't find it if we're
11149 # using a relative directory.
11150 cp "$am_depcomp" conftest.dir
11151 cd conftest.dir
11152 # We will build objects and dependencies in a subdirectory because
11153 # it helps to detect inapplicable dependency modes. For instance
11154 # both Tru64's cc and ICC support -MD to output dependencies as a
11155 # side effect of compilation, but ICC will put the dependencies in
11156 # the current directory while Tru64 will put them in the object
11157 # directory.
11158 mkdir sub
11159
11160 am_cv_CXX_dependencies_compiler_type=none
11161 if test "$am_compiler_list" = ""; then
11162 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11163 fi
11164 am__universal=false
11165 case " $depcc " in #(
11166 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11167 esac
11168
11169 for depmode in $am_compiler_list; do
11170 # Setup a source with many dependencies, because some compilers
11171 # like to wrap large dependency lists on column 80 (with \), and
11172 # we should not choose a depcomp mode which is confused by this.
11173 #
11174 # We need to recreate these files for each test, as the compiler may
11175 # overwrite some of them when testing with obscure command lines.
11176 # This happens at least with the AIX C compiler.
11177 : > sub/conftest.c
11178 for i in 1 2 3 4 5 6; do
11179 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11180 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11181 # Solaris 8's {/usr,}/bin/sh.
11182 touch sub/conftst$i.h
11183 done
11184 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11185
11186 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11187 # mode. It turns out that the SunPro C++ compiler does not properly
11188 # handle `-M -o', and we need to detect this. Also, some Intel
11189 # versions had trouble with output in subdirs
11190 am__obj=sub/conftest.${OBJEXT-o}
11191 am__minus_obj="-o $am__obj"
11192 case $depmode in
11193 gcc)
11194 # This depmode causes a compiler race in universal mode.
11195 test "$am__universal" = false || continue
11196 ;;
11197 nosideeffect)
11198 # after this tag, mechanisms are not by side-effect, so they'll
11199 # only be used when explicitly requested
11200 if test "x$enable_dependency_tracking" = xyes; then
11201 continue
11202 else
11203 break
11204 fi
11205 ;;
11206 msvisualcpp | msvcmsys)
11207 # This compiler won't grok `-c -o', but also, the minuso test has
11208 # not run yet. These depmodes are late enough in the game, and
11209 # so weak that their functioning should not be impacted.
11210 am__obj=conftest.${OBJEXT-o}
11211 am__minus_obj=
11212 ;;
11213 none) break ;;
11214 esac
11215 if depmode=$depmode \
11216 source=sub/conftest.c object=$am__obj \
11217 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11218 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11219 >/dev/null 2>conftest.err &&
11220 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11221 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11222 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11223 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11224 # icc doesn't choke on unknown options, it will just issue warnings
11225 # or remarks (even with -Werror). So we grep stderr for any message
11226 # that says an option was ignored or not supported.
11227 # When given -MP, icc 7.0 and 7.1 complain thusly:
11228 # icc: Command line warning: ignoring option '-M'; no argument required
11229 # The diagnosis changed in icc 8.0:
11230 # icc: Command line remark: option '-MP' not supported
11231 if (grep 'ignoring option' conftest.err ||
11232 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11233 am_cv_CXX_dependencies_compiler_type=$depmode
11234 break
11235 fi
11236 fi
11237 done
11238
11239 cd ..
11240 rm -rf conftest.dir
11241 else
11242 am_cv_CXX_dependencies_compiler_type=none
11243 fi
11244
11245 fi
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11247 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11248 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11249
11250 if
11251 test "x$enable_dependency_tracking" != xno \
11252 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11253 am__fastdepCXX_TRUE=
11254 am__fastdepCXX_FALSE='#'
11255 else
11256 am__fastdepCXX_TRUE='#'
11257 am__fastdepCXX_FALSE=
11258 fi
11259
11260
11261 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11262 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11263 (test "X$CXX" != "Xg++"))) ; then
11264 ac_ext=cpp
11265 ac_cpp='$CXXCPP $CPPFLAGS'
11266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11270 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11271 if test -z "$CXXCPP"; then
11272 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11273 $as_echo_n "(cached) " >&6
11274 else
11275 # Double quotes because CXXCPP needs to be expanded
11276 for CXXCPP in "$CXX -E" "/lib/cpp"
11277 do
11278 ac_preproc_ok=false
11279 for ac_cxx_preproc_warn_flag in '' yes
11280 do
11281 # Use a header file that comes with gcc, so configuring glibc
11282 # with a fresh cross-compiler works.
11283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11284 # <limits.h> exists even on freestanding compilers.
11285 # On the NeXT, cc -E runs the code through the compiler's parser,
11286 # not just through cpp. "Syntax error" is here to catch this case.
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11289 #ifdef __STDC__
11290 # include <limits.h>
11291 #else
11292 # include <assert.h>
11293 #endif
11294 Syntax error
11295 _ACEOF
11296 if ac_fn_cxx_try_cpp "$LINENO"; then :
11297
11298 else
11299 # Broken: fails on valid input.
11300 continue
11301 fi
11302 rm -f conftest.err conftest.$ac_ext
11303
11304 # OK, works on sane cases. Now check whether nonexistent headers
11305 # can be detected and how.
11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h. */
11308 #include <ac_nonexistent.h>
11309 _ACEOF
11310 if ac_fn_cxx_try_cpp "$LINENO"; then :
11311 # Broken: success on invalid input.
11312 continue
11313 else
11314 # Passes both tests.
11315 ac_preproc_ok=:
11316 break
11317 fi
11318 rm -f conftest.err conftest.$ac_ext
11319
11320 done
11321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11322 rm -f conftest.err conftest.$ac_ext
11323 if $ac_preproc_ok; then :
11324 break
11325 fi
11326
11327 done
11328 ac_cv_prog_CXXCPP=$CXXCPP
11329
11330 fi
11331 CXXCPP=$ac_cv_prog_CXXCPP
11332 else
11333 ac_cv_prog_CXXCPP=$CXXCPP
11334 fi
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11336 $as_echo "$CXXCPP" >&6; }
11337 ac_preproc_ok=false
11338 for ac_cxx_preproc_warn_flag in '' yes
11339 do
11340 # Use a header file that comes with gcc, so configuring glibc
11341 # with a fresh cross-compiler works.
11342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11343 # <limits.h> exists even on freestanding compilers.
11344 # On the NeXT, cc -E runs the code through the compiler's parser,
11345 # not just through cpp. "Syntax error" is here to catch this case.
11346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11347 /* end confdefs.h. */
11348 #ifdef __STDC__
11349 # include <limits.h>
11350 #else
11351 # include <assert.h>
11352 #endif
11353 Syntax error
11354 _ACEOF
11355 if ac_fn_cxx_try_cpp "$LINENO"; then :
11356
11357 else
11358 # Broken: fails on valid input.
11359 continue
11360 fi
11361 rm -f conftest.err conftest.$ac_ext
11362
11363 # OK, works on sane cases. Now check whether nonexistent headers
11364 # can be detected and how.
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11367 #include <ac_nonexistent.h>
11368 _ACEOF
11369 if ac_fn_cxx_try_cpp "$LINENO"; then :
11370 # Broken: success on invalid input.
11371 continue
11372 else
11373 # Passes both tests.
11374 ac_preproc_ok=:
11375 break
11376 fi
11377 rm -f conftest.err conftest.$ac_ext
11378
11379 done
11380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11381 rm -f conftest.err conftest.$ac_ext
11382 if $ac_preproc_ok; then :
11383
11384 else
11385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11387 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11388 See \`config.log' for more details." "$LINENO" 5; }
11389 fi
11390
11391 ac_ext=c
11392 ac_cpp='$CPP $CPPFLAGS'
11393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11396
11397 else
11398 _lt_caught_CXX_error=yes
11399 fi
11400
11401 ac_ext=cpp
11402 ac_cpp='$CXXCPP $CPPFLAGS'
11403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11406
11407 archive_cmds_need_lc_CXX=no
11408 allow_undefined_flag_CXX=
11409 always_export_symbols_CXX=no
11410 archive_expsym_cmds_CXX=
11411 compiler_needs_object_CXX=no
11412 export_dynamic_flag_spec_CXX=
11413 hardcode_direct_CXX=no
11414 hardcode_direct_absolute_CXX=no
11415 hardcode_libdir_flag_spec_CXX=
11416 hardcode_libdir_flag_spec_ld_CXX=
11417 hardcode_libdir_separator_CXX=
11418 hardcode_minus_L_CXX=no
11419 hardcode_shlibpath_var_CXX=unsupported
11420 hardcode_automatic_CXX=no
11421 inherit_rpath_CXX=no
11422 module_cmds_CXX=
11423 module_expsym_cmds_CXX=
11424 link_all_deplibs_CXX=unknown
11425 old_archive_cmds_CXX=$old_archive_cmds
11426 reload_flag_CXX=$reload_flag
11427 reload_cmds_CXX=$reload_cmds
11428 no_undefined_flag_CXX=
11429 whole_archive_flag_spec_CXX=
11430 enable_shared_with_static_runtimes_CXX=no
11431
11432 # Source file extension for C++ test sources.
11433 ac_ext=cpp
11434
11435 # Object file extension for compiled C++ test sources.
11436 objext=o
11437 objext_CXX=$objext
11438
11439 # No sense in running all these tests if we already determined that
11440 # the CXX compiler isn't working. Some variables (like enable_shared)
11441 # are currently assumed to apply to all compilers on this platform,
11442 # and will be corrupted by setting them based on a non-working compiler.
11443 if test "$_lt_caught_CXX_error" != yes; then
11444 # Code to be used in simple compile tests
11445 lt_simple_compile_test_code="int some_variable = 0;"
11446
11447 # Code to be used in simple link tests
11448 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11449
11450 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11451
11452
11453
11454
11455
11456
11457 # If no C compiler was specified, use CC.
11458 LTCC=${LTCC-"$CC"}
11459
11460 # If no C compiler flags were specified, use CFLAGS.
11461 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11462
11463 # Allow CC to be a program name with arguments.
11464 compiler=$CC
11465
11466
11467 # save warnings/boilerplate of simple test code
11468 ac_outfile=conftest.$ac_objext
11469 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11470 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11471 _lt_compiler_boilerplate=`cat conftest.err`
11472 $RM conftest*
11473
11474 ac_outfile=conftest.$ac_objext
11475 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11476 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11477 _lt_linker_boilerplate=`cat conftest.err`
11478 $RM -r conftest*
11479
11480
11481 # Allow CC to be a program name with arguments.
11482 lt_save_CC=$CC
11483 lt_save_LD=$LD
11484 lt_save_GCC=$GCC
11485 GCC=$GXX
11486 lt_save_with_gnu_ld=$with_gnu_ld
11487 lt_save_path_LD=$lt_cv_path_LD
11488 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11489 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11490 else
11491 $as_unset lt_cv_prog_gnu_ld
11492 fi
11493 if test -n "${lt_cv_path_LDCXX+set}"; then
11494 lt_cv_path_LD=$lt_cv_path_LDCXX
11495 else
11496 $as_unset lt_cv_path_LD
11497 fi
11498 test -z "${LDCXX+set}" || LD=$LDCXX
11499 CC=${CXX-"c++"}
11500 compiler=$CC
11501 compiler_CXX=$CC
11502 for cc_temp in $compiler""; do
11503 case $cc_temp in
11504 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11505 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11506 \-*) ;;
11507 *) break;;
11508 esac
11509 done
11510 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11511
11512
11513 if test -n "$compiler"; then
11514 # We don't want -fno-exception when compiling C++ code, so set the
11515 # no_builtin_flag separately
11516 if test "$GXX" = yes; then
11517 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11518 else
11519 lt_prog_compiler_no_builtin_flag_CXX=
11520 fi
11521
11522 if test "$GXX" = yes; then
11523 # Set up default GNU C++ configuration
11524
11525
11526
11527 # Check whether --with-gnu-ld was given.
11528 if test "${with_gnu_ld+set}" = set; then :
11529 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11530 else
11531 with_gnu_ld=no
11532 fi
11533
11534 ac_prog=ld
11535 if test "$GCC" = yes; then
11536 # Check if gcc -print-prog-name=ld gives a path.
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11538 $as_echo_n "checking for ld used by $CC... " >&6; }
11539 case $host in
11540 *-*-mingw*)
11541 # gcc leaves a trailing carriage return which upsets mingw
11542 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11543 *)
11544 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11545 esac
11546 case $ac_prog in
11547 # Accept absolute paths.
11548 [\\/]* | ?:[\\/]*)
11549 re_direlt='/[^/][^/]*/\.\./'
11550 # Canonicalize the pathname of ld
11551 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11552 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11553 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11554 done
11555 test -z "$LD" && LD="$ac_prog"
11556 ;;
11557 "")
11558 # If it fails, then pretend we aren't using GCC.
11559 ac_prog=ld
11560 ;;
11561 *)
11562 # If it is relative, then search for the first ld in PATH.
11563 with_gnu_ld=unknown
11564 ;;
11565 esac
11566 elif test "$with_gnu_ld" = yes; then
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11568 $as_echo_n "checking for GNU ld... " >&6; }
11569 else
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11571 $as_echo_n "checking for non-GNU ld... " >&6; }
11572 fi
11573 if test "${lt_cv_path_LD+set}" = set; then :
11574 $as_echo_n "(cached) " >&6
11575 else
11576 if test -z "$LD"; then
11577 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11578 for ac_dir in $PATH; do
11579 IFS="$lt_save_ifs"
11580 test -z "$ac_dir" && ac_dir=.
11581 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11582 lt_cv_path_LD="$ac_dir/$ac_prog"
11583 # Check to see if the program is GNU ld. I'd rather use --version,
11584 # but apparently some variants of GNU ld only accept -v.
11585 # Break only if it was the GNU/non-GNU ld that we prefer.
11586 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11587 *GNU* | *'with BFD'*)
11588 test "$with_gnu_ld" != no && break
11589 ;;
11590 *)
11591 test "$with_gnu_ld" != yes && break
11592 ;;
11593 esac
11594 fi
11595 done
11596 IFS="$lt_save_ifs"
11597 else
11598 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11599 fi
11600 fi
11601
11602 LD="$lt_cv_path_LD"
11603 if test -n "$LD"; then
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11605 $as_echo "$LD" >&6; }
11606 else
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608 $as_echo "no" >&6; }
11609 fi
11610 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11612 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11613 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11615 else
11616 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11617 case `$LD -v 2>&1 </dev/null` in
11618 *GNU* | *'with BFD'*)
11619 lt_cv_prog_gnu_ld=yes
11620 ;;
11621 *)
11622 lt_cv_prog_gnu_ld=no
11623 ;;
11624 esac
11625 fi
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11627 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11628 with_gnu_ld=$lt_cv_prog_gnu_ld
11629
11630
11631
11632
11633
11634
11635
11636 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11637 # archiving commands below assume that GNU ld is being used.
11638 if test "$with_gnu_ld" = yes; then
11639 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11640 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'
11641
11642 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11643 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11644
11645 # If archive_cmds runs LD, not CC, wlarc should be empty
11646 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11647 # investigate it a little bit more. (MM)
11648 wlarc='${wl}'
11649
11650 # ancient GNU ld didn't support --whole-archive et. al.
11651 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11652 $GREP 'no-whole-archive' > /dev/null; then
11653 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11654 else
11655 whole_archive_flag_spec_CXX=
11656 fi
11657 else
11658 with_gnu_ld=no
11659 wlarc=
11660
11661 # A generic and very simple default shared library creation
11662 # command for GNU C++ for the case where it uses the native
11663 # linker, instead of GNU ld. If possible, this setting should
11664 # overridden to take advantage of the native linker features on
11665 # the platform it is being used on.
11666 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11667 fi
11668
11669 # Commands to make compiler produce verbose output that lists
11670 # what "hidden" libraries, object files and flags are used when
11671 # linking a shared library.
11672 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11673
11674 else
11675 GXX=no
11676 with_gnu_ld=no
11677 wlarc=
11678 fi
11679
11680 # PORTME: fill in a description of your system's C++ link characteristics
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11682 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11683 ld_shlibs_CXX=yes
11684 case $host_os in
11685 aix3*)
11686 # FIXME: insert proper C++ library support
11687 ld_shlibs_CXX=no
11688 ;;
11689 aix[4-9]*)
11690 if test "$host_cpu" = ia64; then
11691 # On IA64, the linker does run time linking by default, so we don't
11692 # have to do anything special.
11693 aix_use_runtimelinking=no
11694 exp_sym_flag='-Bexport'
11695 no_entry_flag=""
11696 else
11697 aix_use_runtimelinking=no
11698
11699 # Test if we are trying to use run time linking or normal
11700 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11701 # need to do runtime linking.
11702 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11703 for ld_flag in $LDFLAGS; do
11704 case $ld_flag in
11705 *-brtl*)
11706 aix_use_runtimelinking=yes
11707 break
11708 ;;
11709 esac
11710 done
11711 ;;
11712 esac
11713
11714 exp_sym_flag='-bexport'
11715 no_entry_flag='-bnoentry'
11716 fi
11717
11718 # When large executables or shared objects are built, AIX ld can
11719 # have problems creating the table of contents. If linking a library
11720 # or program results in "error TOC overflow" add -mminimal-toc to
11721 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11722 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11723
11724 archive_cmds_CXX=''
11725 hardcode_direct_CXX=yes
11726 hardcode_direct_absolute_CXX=yes
11727 hardcode_libdir_separator_CXX=':'
11728 link_all_deplibs_CXX=yes
11729 file_list_spec_CXX='${wl}-f,'
11730
11731 if test "$GXX" = yes; then
11732 case $host_os in aix4.[012]|aix4.[012].*)
11733 # We only want to do this on AIX 4.2 and lower, the check
11734 # below for broken collect2 doesn't work under 4.3+
11735 collect2name=`${CC} -print-prog-name=collect2`
11736 if test -f "$collect2name" &&
11737 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11738 then
11739 # We have reworked collect2
11740 :
11741 else
11742 # We have old collect2
11743 hardcode_direct_CXX=unsupported
11744 # It fails to find uninstalled libraries when the uninstalled
11745 # path is not listed in the libpath. Setting hardcode_minus_L
11746 # to unsupported forces relinking
11747 hardcode_minus_L_CXX=yes
11748 hardcode_libdir_flag_spec_CXX='-L$libdir'
11749 hardcode_libdir_separator_CXX=
11750 fi
11751 esac
11752 shared_flag='-shared'
11753 if test "$aix_use_runtimelinking" = yes; then
11754 shared_flag="$shared_flag "'${wl}-G'
11755 fi
11756 else
11757 # not using gcc
11758 if test "$host_cpu" = ia64; then
11759 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11760 # chokes on -Wl,-G. The following line is correct:
11761 shared_flag='-G'
11762 else
11763 if test "$aix_use_runtimelinking" = yes; then
11764 shared_flag='${wl}-G'
11765 else
11766 shared_flag='${wl}-bM:SRE'
11767 fi
11768 fi
11769 fi
11770
11771 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11772 # It seems that -bexpall does not export symbols beginning with
11773 # underscore (_), so it is better to generate a list of symbols to
11774 # export.
11775 always_export_symbols_CXX=yes
11776 if test "$aix_use_runtimelinking" = yes; then
11777 # Warning - without using the other runtime loading flags (-brtl),
11778 # -berok will link without error, but may produce a broken library.
11779 allow_undefined_flag_CXX='-berok'
11780 # Determine the default libpath from the value encoded in an empty
11781 # executable.
11782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783 /* end confdefs.h. */
11784
11785 int
11786 main ()
11787 {
11788
11789 ;
11790 return 0;
11791 }
11792 _ACEOF
11793 if ac_fn_cxx_try_link "$LINENO"; then :
11794
11795 lt_aix_libpath_sed='
11796 /Import File Strings/,/^$/ {
11797 /^0/ {
11798 s/^0 *\(.*\)$/\1/
11799 p
11800 }
11801 }'
11802 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11803 # Check for a 64-bit object if we didn't find anything.
11804 if test -z "$aix_libpath"; then
11805 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11806 fi
11807 fi
11808 rm -f core conftest.err conftest.$ac_objext \
11809 conftest$ac_exeext conftest.$ac_ext
11810 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11811
11812 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11813
11814 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"
11815 else
11816 if test "$host_cpu" = ia64; then
11817 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11818 allow_undefined_flag_CXX="-z nodefs"
11819 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"
11820 else
11821 # Determine the default libpath from the value encoded in an
11822 # empty executable.
11823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h. */
11825
11826 int
11827 main ()
11828 {
11829
11830 ;
11831 return 0;
11832 }
11833 _ACEOF
11834 if ac_fn_cxx_try_link "$LINENO"; then :
11835
11836 lt_aix_libpath_sed='
11837 /Import File Strings/,/^$/ {
11838 /^0/ {
11839 s/^0 *\(.*\)$/\1/
11840 p
11841 }
11842 }'
11843 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11844 # Check for a 64-bit object if we didn't find anything.
11845 if test -z "$aix_libpath"; then
11846 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11847 fi
11848 fi
11849 rm -f core conftest.err conftest.$ac_objext \
11850 conftest$ac_exeext conftest.$ac_ext
11851 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11852
11853 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11854 # Warning - without using the other run time loading flags,
11855 # -berok will link without error, but may produce a broken library.
11856 no_undefined_flag_CXX=' ${wl}-bernotok'
11857 allow_undefined_flag_CXX=' ${wl}-berok'
11858 if test "$with_gnu_ld" = yes; then
11859 # We only use this code for GNU lds that support --whole-archive.
11860 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11861 else
11862 # Exported symbols can be pulled into shared objects from archives
11863 whole_archive_flag_spec_CXX='$convenience'
11864 fi
11865 archive_cmds_need_lc_CXX=yes
11866 # This is similar to how AIX traditionally builds its shared
11867 # libraries.
11868 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'
11869 fi
11870 fi
11871 ;;
11872
11873 beos*)
11874 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11875 allow_undefined_flag_CXX=unsupported
11876 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11877 # support --undefined. This deserves some investigation. FIXME
11878 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11879 else
11880 ld_shlibs_CXX=no
11881 fi
11882 ;;
11883
11884 chorus*)
11885 case $cc_basename in
11886 *)
11887 # FIXME: insert proper C++ library support
11888 ld_shlibs_CXX=no
11889 ;;
11890 esac
11891 ;;
11892
11893 cygwin* | mingw* | pw32* | cegcc*)
11894 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11895 # as there is no search path for DLLs.
11896 hardcode_libdir_flag_spec_CXX='-L$libdir'
11897 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11898 allow_undefined_flag_CXX=unsupported
11899 always_export_symbols_CXX=no
11900 enable_shared_with_static_runtimes_CXX=yes
11901
11902 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11903 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'
11904 # If the export-symbols file already is a .def file (1st line
11905 # is EXPORTS), use it as is; otherwise, prepend...
11906 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11907 cp $export_symbols $output_objdir/$soname.def;
11908 else
11909 echo EXPORTS > $output_objdir/$soname.def;
11910 cat $export_symbols >> $output_objdir/$soname.def;
11911 fi~
11912 $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'
11913 else
11914 ld_shlibs_CXX=no
11915 fi
11916 ;;
11917 darwin* | rhapsody*)
11918
11919
11920 archive_cmds_need_lc_CXX=no
11921 hardcode_direct_CXX=no
11922 hardcode_automatic_CXX=yes
11923 hardcode_shlibpath_var_CXX=unsupported
11924 if test "$lt_cv_ld_force_load" = "yes"; then
11925 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\"`'
11926 else
11927 whole_archive_flag_spec_CXX=''
11928 fi
11929 link_all_deplibs_CXX=yes
11930 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11931 case $cc_basename in
11932 ifort*) _lt_dar_can_shared=yes ;;
11933 *) _lt_dar_can_shared=$GCC ;;
11934 esac
11935 if test "$_lt_dar_can_shared" = "yes"; then
11936 output_verbose_link_cmd=func_echo_all
11937 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}"
11938 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11939 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}"
11940 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}"
11941 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11942 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}"
11943 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}"
11944 fi
11945
11946 else
11947 ld_shlibs_CXX=no
11948 fi
11949
11950 ;;
11951
11952 dgux*)
11953 case $cc_basename in
11954 ec++*)
11955 # FIXME: insert proper C++ library support
11956 ld_shlibs_CXX=no
11957 ;;
11958 ghcx*)
11959 # Green Hills C++ Compiler
11960 # FIXME: insert proper C++ library support
11961 ld_shlibs_CXX=no
11962 ;;
11963 *)
11964 # FIXME: insert proper C++ library support
11965 ld_shlibs_CXX=no
11966 ;;
11967 esac
11968 ;;
11969
11970 freebsd2.*)
11971 # C++ shared libraries reported to be fairly broken before
11972 # switch to ELF
11973 ld_shlibs_CXX=no
11974 ;;
11975
11976 freebsd-elf*)
11977 archive_cmds_need_lc_CXX=no
11978 ;;
11979
11980 freebsd* | dragonfly*)
11981 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11982 # conventions
11983 ld_shlibs_CXX=yes
11984 ;;
11985
11986 gnu*)
11987 ;;
11988
11989 haiku*)
11990 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11991 link_all_deplibs_CXX=yes
11992 ;;
11993
11994 hpux9*)
11995 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11996 hardcode_libdir_separator_CXX=:
11997 export_dynamic_flag_spec_CXX='${wl}-E'
11998 hardcode_direct_CXX=yes
11999 hardcode_minus_L_CXX=yes # Not in the search PATH,
12000 # but as the default
12001 # location of the library.
12002
12003 case $cc_basename in
12004 CC*)
12005 # FIXME: insert proper C++ library support
12006 ld_shlibs_CXX=no
12007 ;;
12008 aCC*)
12009 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'
12010 # Commands to make compiler produce verbose output that lists
12011 # what "hidden" libraries, object files and flags are used when
12012 # linking a shared library.
12013 #
12014 # There doesn't appear to be a way to prevent this compiler from
12015 # explicitly linking system object files so we need to strip them
12016 # from the output so that they don't get included in the library
12017 # dependencies.
12018 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"'
12019 ;;
12020 *)
12021 if test "$GXX" = yes; then
12022 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'
12023 else
12024 # FIXME: insert proper C++ library support
12025 ld_shlibs_CXX=no
12026 fi
12027 ;;
12028 esac
12029 ;;
12030
12031 hpux10*|hpux11*)
12032 if test $with_gnu_ld = no; then
12033 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12034 hardcode_libdir_separator_CXX=:
12035
12036 case $host_cpu in
12037 hppa*64*|ia64*)
12038 ;;
12039 *)
12040 export_dynamic_flag_spec_CXX='${wl}-E'
12041 ;;
12042 esac
12043 fi
12044 case $host_cpu in
12045 hppa*64*|ia64*)
12046 hardcode_direct_CXX=no
12047 hardcode_shlibpath_var_CXX=no
12048 ;;
12049 *)
12050 hardcode_direct_CXX=yes
12051 hardcode_direct_absolute_CXX=yes
12052 hardcode_minus_L_CXX=yes # Not in the search PATH,
12053 # but as the default
12054 # location of the library.
12055 ;;
12056 esac
12057
12058 case $cc_basename in
12059 CC*)
12060 # FIXME: insert proper C++ library support
12061 ld_shlibs_CXX=no
12062 ;;
12063 aCC*)
12064 case $host_cpu in
12065 hppa*64*)
12066 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12067 ;;
12068 ia64*)
12069 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12070 ;;
12071 *)
12072 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12073 ;;
12074 esac
12075 # Commands to make compiler produce verbose output that lists
12076 # what "hidden" libraries, object files and flags are used when
12077 # linking a shared library.
12078 #
12079 # There doesn't appear to be a way to prevent this compiler from
12080 # explicitly linking system object files so we need to strip them
12081 # from the output so that they don't get included in the library
12082 # dependencies.
12083 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"'
12084 ;;
12085 *)
12086 if test "$GXX" = yes; then
12087 if test $with_gnu_ld = no; then
12088 case $host_cpu in
12089 hppa*64*)
12090 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12091 ;;
12092 ia64*)
12093 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12094 ;;
12095 *)
12096 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'
12097 ;;
12098 esac
12099 fi
12100 else
12101 # FIXME: insert proper C++ library support
12102 ld_shlibs_CXX=no
12103 fi
12104 ;;
12105 esac
12106 ;;
12107
12108 interix[3-9]*)
12109 hardcode_direct_CXX=no
12110 hardcode_shlibpath_var_CXX=no
12111 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12112 export_dynamic_flag_spec_CXX='${wl}-E'
12113 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12114 # Instead, shared libraries are loaded at an image base (0x10000000 by
12115 # default) and relocated if they conflict, which is a slow very memory
12116 # consuming and fragmenting process. To avoid this, we pick a random,
12117 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12118 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12119 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'
12120 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'
12121 ;;
12122 irix5* | irix6*)
12123 case $cc_basename in
12124 CC*)
12125 # SGI C++
12126 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'
12127
12128 # Archives containing C++ object files must be created using
12129 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12130 # necessary to make sure instantiated templates are included
12131 # in the archive.
12132 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12133 ;;
12134 *)
12135 if test "$GXX" = yes; then
12136 if test "$with_gnu_ld" = no; then
12137 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'
12138 else
12139 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'
12140 fi
12141 fi
12142 link_all_deplibs_CXX=yes
12143 ;;
12144 esac
12145 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12146 hardcode_libdir_separator_CXX=:
12147 inherit_rpath_CXX=yes
12148 ;;
12149
12150 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12151 case $cc_basename in
12152 KCC*)
12153 # Kuck and Associates, Inc. (KAI) C++ Compiler
12154
12155 # KCC will only create a shared library if the output file
12156 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12157 # to its proper name (with version) after linking.
12158 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'
12159 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'
12160 # Commands to make compiler produce verbose output that lists
12161 # what "hidden" libraries, object files and flags are used when
12162 # linking a shared library.
12163 #
12164 # There doesn't appear to be a way to prevent this compiler from
12165 # explicitly linking system object files so we need to strip them
12166 # from the output so that they don't get included in the library
12167 # dependencies.
12168 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"'
12169
12170 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12171 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12172
12173 # Archives containing C++ object files must be created using
12174 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12175 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12176 ;;
12177 icpc* | ecpc* )
12178 # Intel C++
12179 with_gnu_ld=yes
12180 # version 8.0 and above of icpc choke on multiply defined symbols
12181 # if we add $predep_objects and $postdep_objects, however 7.1 and
12182 # earlier do not add the objects themselves.
12183 case `$CC -V 2>&1` in
12184 *"Version 7."*)
12185 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12186 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'
12187 ;;
12188 *) # Version 8.0 or newer
12189 tmp_idyn=
12190 case $host_cpu in
12191 ia64*) tmp_idyn=' -i_dynamic';;
12192 esac
12193 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12194 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'
12195 ;;
12196 esac
12197 archive_cmds_need_lc_CXX=no
12198 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12199 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12200 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12201 ;;
12202 pgCC* | pgcpp*)
12203 # Portland Group C++ compiler
12204 case `$CC -V` in
12205 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12206 prelink_cmds_CXX='tpldir=Template.dir~
12207 rm -rf $tpldir~
12208 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12209 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12210 old_archive_cmds_CXX='tpldir=Template.dir~
12211 rm -rf $tpldir~
12212 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12213 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12214 $RANLIB $oldlib'
12215 archive_cmds_CXX='tpldir=Template.dir~
12216 rm -rf $tpldir~
12217 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12218 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12219 archive_expsym_cmds_CXX='tpldir=Template.dir~
12220 rm -rf $tpldir~
12221 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12222 $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'
12223 ;;
12224 *) # Version 6 and above use weak symbols
12225 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12226 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'
12227 ;;
12228 esac
12229
12230 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12231 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12232 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'
12233 ;;
12234 cxx*)
12235 # Compaq C++
12236 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12237 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'
12238
12239 runpath_var=LD_RUN_PATH
12240 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12241 hardcode_libdir_separator_CXX=:
12242
12243 # Commands to make compiler produce verbose output that lists
12244 # what "hidden" libraries, object files and flags are used when
12245 # linking a shared library.
12246 #
12247 # There doesn't appear to be a way to prevent this compiler from
12248 # explicitly linking system object files so we need to strip them
12249 # from the output so that they don't get included in the library
12250 # dependencies.
12251 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'
12252 ;;
12253 xl* | mpixl* | bgxl*)
12254 # IBM XL 8.0 on PPC, with GNU ld
12255 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12256 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12257 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12258 if test "x$supports_anon_versioning" = xyes; then
12259 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12261 echo "local: *; };" >> $output_objdir/$libname.ver~
12262 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12263 fi
12264 ;;
12265 *)
12266 case `$CC -V 2>&1 | sed 5q` in
12267 *Sun\ C*)
12268 # Sun C++ 5.9
12269 no_undefined_flag_CXX=' -zdefs'
12270 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12271 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'
12272 hardcode_libdir_flag_spec_CXX='-R$libdir'
12273 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'
12274 compiler_needs_object_CXX=yes
12275
12276 # Not sure whether something based on
12277 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12278 # would be better.
12279 output_verbose_link_cmd='func_echo_all'
12280
12281 # Archives containing C++ object files must be created using
12282 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12283 # necessary to make sure instantiated templates are included
12284 # in the archive.
12285 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12286 ;;
12287 esac
12288 ;;
12289 esac
12290 ;;
12291
12292 lynxos*)
12293 # FIXME: insert proper C++ library support
12294 ld_shlibs_CXX=no
12295 ;;
12296
12297 m88k*)
12298 # FIXME: insert proper C++ library support
12299 ld_shlibs_CXX=no
12300 ;;
12301
12302 mvs*)
12303 case $cc_basename in
12304 cxx*)
12305 # FIXME: insert proper C++ library support
12306 ld_shlibs_CXX=no
12307 ;;
12308 *)
12309 # FIXME: insert proper C++ library support
12310 ld_shlibs_CXX=no
12311 ;;
12312 esac
12313 ;;
12314
12315 netbsd*)
12316 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12317 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12318 wlarc=
12319 hardcode_libdir_flag_spec_CXX='-R$libdir'
12320 hardcode_direct_CXX=yes
12321 hardcode_shlibpath_var_CXX=no
12322 fi
12323 # Workaround some broken pre-1.5 toolchains
12324 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12325 ;;
12326
12327 *nto* | *qnx*)
12328 ld_shlibs_CXX=yes
12329 ;;
12330
12331 openbsd2*)
12332 # C++ shared libraries are fairly broken
12333 ld_shlibs_CXX=no
12334 ;;
12335
12336 openbsd*)
12337 if test -f /usr/libexec/ld.so; then
12338 hardcode_direct_CXX=yes
12339 hardcode_shlibpath_var_CXX=no
12340 hardcode_direct_absolute_CXX=yes
12341 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12342 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12343 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12344 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12345 export_dynamic_flag_spec_CXX='${wl}-E'
12346 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12347 fi
12348 output_verbose_link_cmd=func_echo_all
12349 else
12350 ld_shlibs_CXX=no
12351 fi
12352 ;;
12353
12354 osf3* | osf4* | osf5*)
12355 case $cc_basename in
12356 KCC*)
12357 # Kuck and Associates, Inc. (KAI) C++ Compiler
12358
12359 # KCC will only create a shared library if the output file
12360 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12361 # to its proper name (with version) after linking.
12362 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'
12363
12364 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12365 hardcode_libdir_separator_CXX=:
12366
12367 # Archives containing C++ object files must be created using
12368 # the KAI C++ compiler.
12369 case $host in
12370 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12371 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12372 esac
12373 ;;
12374 RCC*)
12375 # Rational C++ 2.4.1
12376 # FIXME: insert proper C++ library support
12377 ld_shlibs_CXX=no
12378 ;;
12379 cxx*)
12380 case $host in
12381 osf3*)
12382 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12383 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'
12384 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12385 ;;
12386 *)
12387 allow_undefined_flag_CXX=' -expect_unresolved \*'
12388 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'
12389 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12390 echo "-hidden">> $lib.exp~
12391 $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~
12392 $RM $lib.exp'
12393 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12394 ;;
12395 esac
12396
12397 hardcode_libdir_separator_CXX=:
12398
12399 # Commands to make compiler produce verbose output that lists
12400 # what "hidden" libraries, object files and flags are used when
12401 # linking a shared library.
12402 #
12403 # There doesn't appear to be a way to prevent this compiler from
12404 # explicitly linking system object files so we need to strip them
12405 # from the output so that they don't get included in the library
12406 # dependencies.
12407 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"'
12408 ;;
12409 *)
12410 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12411 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12412 case $host in
12413 osf3*)
12414 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'
12415 ;;
12416 *)
12417 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'
12418 ;;
12419 esac
12420
12421 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12422 hardcode_libdir_separator_CXX=:
12423
12424 # Commands to make compiler produce verbose output that lists
12425 # what "hidden" libraries, object files and flags are used when
12426 # linking a shared library.
12427 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12428
12429 else
12430 # FIXME: insert proper C++ library support
12431 ld_shlibs_CXX=no
12432 fi
12433 ;;
12434 esac
12435 ;;
12436
12437 psos*)
12438 # FIXME: insert proper C++ library support
12439 ld_shlibs_CXX=no
12440 ;;
12441
12442 sunos4*)
12443 case $cc_basename in
12444 CC*)
12445 # Sun C++ 4.x
12446 # FIXME: insert proper C++ library support
12447 ld_shlibs_CXX=no
12448 ;;
12449 lcc*)
12450 # Lucid
12451 # FIXME: insert proper C++ library support
12452 ld_shlibs_CXX=no
12453 ;;
12454 *)
12455 # FIXME: insert proper C++ library support
12456 ld_shlibs_CXX=no
12457 ;;
12458 esac
12459 ;;
12460
12461 solaris*)
12462 case $cc_basename in
12463 CC*)
12464 # Sun C++ 4.2, 5.x and Centerline C++
12465 archive_cmds_need_lc_CXX=yes
12466 no_undefined_flag_CXX=' -zdefs'
12467 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12468 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12469 $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'
12470
12471 hardcode_libdir_flag_spec_CXX='-R$libdir'
12472 hardcode_shlibpath_var_CXX=no
12473 case $host_os in
12474 solaris2.[0-5] | solaris2.[0-5].*) ;;
12475 *)
12476 # The compiler driver will combine and reorder linker options,
12477 # but understands `-z linker_flag'.
12478 # Supported since Solaris 2.6 (maybe 2.5.1?)
12479 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12480 ;;
12481 esac
12482 link_all_deplibs_CXX=yes
12483
12484 output_verbose_link_cmd='func_echo_all'
12485
12486 # Archives containing C++ object files must be created using
12487 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12488 # necessary to make sure instantiated templates are included
12489 # in the archive.
12490 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12491 ;;
12492 gcx*)
12493 # Green Hills C++ Compiler
12494 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12495
12496 # The C++ compiler must be used to create the archive.
12497 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12498 ;;
12499 *)
12500 # GNU C++ compiler with Solaris linker
12501 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12502 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12503 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12504 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12505 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12506 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12507
12508 # Commands to make compiler produce verbose output that lists
12509 # what "hidden" libraries, object files and flags are used when
12510 # linking a shared library.
12511 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12512 else
12513 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12514 # platform.
12515 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12516 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12517 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12518
12519 # Commands to make compiler produce verbose output that lists
12520 # what "hidden" libraries, object files and flags are used when
12521 # linking a shared library.
12522 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12523 fi
12524
12525 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12526 case $host_os in
12527 solaris2.[0-5] | solaris2.[0-5].*) ;;
12528 *)
12529 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12530 ;;
12531 esac
12532 fi
12533 ;;
12534 esac
12535 ;;
12536
12537 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12538 no_undefined_flag_CXX='${wl}-z,text'
12539 archive_cmds_need_lc_CXX=no
12540 hardcode_shlibpath_var_CXX=no
12541 runpath_var='LD_RUN_PATH'
12542
12543 case $cc_basename in
12544 CC*)
12545 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12546 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12547 ;;
12548 *)
12549 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12550 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12551 ;;
12552 esac
12553 ;;
12554
12555 sysv5* | sco3.2v5* | sco5v6*)
12556 # Note: We can NOT use -z defs as we might desire, because we do not
12557 # link with -lc, and that would cause any symbols used from libc to
12558 # always be unresolved, which means just about no library would
12559 # ever link correctly. If we're not using GNU ld we use -z text
12560 # though, which does catch some bad symbols but isn't as heavy-handed
12561 # as -z defs.
12562 no_undefined_flag_CXX='${wl}-z,text'
12563 allow_undefined_flag_CXX='${wl}-z,nodefs'
12564 archive_cmds_need_lc_CXX=no
12565 hardcode_shlibpath_var_CXX=no
12566 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12567 hardcode_libdir_separator_CXX=':'
12568 link_all_deplibs_CXX=yes
12569 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12570 runpath_var='LD_RUN_PATH'
12571
12572 case $cc_basename in
12573 CC*)
12574 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12575 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12576 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12577 '"$old_archive_cmds_CXX"
12578 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12579 '"$reload_cmds_CXX"
12580 ;;
12581 *)
12582 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12583 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12584 ;;
12585 esac
12586 ;;
12587
12588 tandem*)
12589 case $cc_basename in
12590 NCC*)
12591 # NonStop-UX NCC 3.20
12592 # FIXME: insert proper C++ library support
12593 ld_shlibs_CXX=no
12594 ;;
12595 *)
12596 # FIXME: insert proper C++ library support
12597 ld_shlibs_CXX=no
12598 ;;
12599 esac
12600 ;;
12601
12602 vxworks*)
12603 # FIXME: insert proper C++ library support
12604 ld_shlibs_CXX=no
12605 ;;
12606
12607 *)
12608 # FIXME: insert proper C++ library support
12609 ld_shlibs_CXX=no
12610 ;;
12611 esac
12612
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12614 $as_echo "$ld_shlibs_CXX" >&6; }
12615 test "$ld_shlibs_CXX" = no && can_build_shared=no
12616
12617 GCC_CXX="$GXX"
12618 LD_CXX="$LD"
12619
12620 ## CAVEAT EMPTOR:
12621 ## There is no encapsulation within the following macros, do not change
12622 ## the running order or otherwise move them around unless you know exactly
12623 ## what you are doing...
12624 # Dependencies to place before and after the object being linked:
12625 predep_objects_CXX=
12626 postdep_objects_CXX=
12627 predeps_CXX=
12628 postdeps_CXX=
12629 compiler_lib_search_path_CXX=
12630
12631 cat > conftest.$ac_ext <<_LT_EOF
12632 class Foo
12633 {
12634 public:
12635 Foo (void) { a = 0; }
12636 private:
12637 int a;
12638 };
12639 _LT_EOF
12640
12641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12642 (eval $ac_compile) 2>&5
12643 ac_status=$?
12644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12645 test $ac_status = 0; }; then
12646 # Parse the compiler output and extract the necessary
12647 # objects, libraries and library flags.
12648
12649 # Sentinel used to keep track of whether or not we are before
12650 # the conftest object file.
12651 pre_test_object_deps_done=no
12652
12653 for p in `eval "$output_verbose_link_cmd"`; do
12654 case $p in
12655
12656 -L* | -R* | -l*)
12657 # Some compilers place space between "-{L,R}" and the path.
12658 # Remove the space.
12659 if test $p = "-L" ||
12660 test $p = "-R"; then
12661 prev=$p
12662 continue
12663 else
12664 prev=
12665 fi
12666
12667 if test "$pre_test_object_deps_done" = no; then
12668 case $p in
12669 -L* | -R*)
12670 # Internal compiler library paths should come after those
12671 # provided the user. The postdeps already come after the
12672 # user supplied libs so there is no need to process them.
12673 if test -z "$compiler_lib_search_path_CXX"; then
12674 compiler_lib_search_path_CXX="${prev}${p}"
12675 else
12676 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12677 fi
12678 ;;
12679 # The "-l" case would never come before the object being
12680 # linked, so don't bother handling this case.
12681 esac
12682 else
12683 if test -z "$postdeps_CXX"; then
12684 postdeps_CXX="${prev}${p}"
12685 else
12686 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12687 fi
12688 fi
12689 ;;
12690
12691 *.$objext)
12692 # This assumes that the test object file only shows up
12693 # once in the compiler output.
12694 if test "$p" = "conftest.$objext"; then
12695 pre_test_object_deps_done=yes
12696 continue
12697 fi
12698
12699 if test "$pre_test_object_deps_done" = no; then
12700 if test -z "$predep_objects_CXX"; then
12701 predep_objects_CXX="$p"
12702 else
12703 predep_objects_CXX="$predep_objects_CXX $p"
12704 fi
12705 else
12706 if test -z "$postdep_objects_CXX"; then
12707 postdep_objects_CXX="$p"
12708 else
12709 postdep_objects_CXX="$postdep_objects_CXX $p"
12710 fi
12711 fi
12712 ;;
12713
12714 *) ;; # Ignore the rest.
12715
12716 esac
12717 done
12718
12719 # Clean up.
12720 rm -f a.out a.exe
12721 else
12722 echo "libtool.m4: error: problem compiling CXX test program"
12723 fi
12724
12725 $RM -f confest.$objext
12726
12727 # PORTME: override above test on systems where it is broken
12728 case $host_os in
12729 interix[3-9]*)
12730 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12731 # hack all around it, let's just trust "g++" to DTRT.
12732 predep_objects_CXX=
12733 postdep_objects_CXX=
12734 postdeps_CXX=
12735 ;;
12736
12737 linux*)
12738 case `$CC -V 2>&1 | sed 5q` in
12739 *Sun\ C*)
12740 # Sun C++ 5.9
12741
12742 # The more standards-conforming stlport4 library is
12743 # incompatible with the Cstd library. Avoid specifying
12744 # it if it's in CXXFLAGS. Ignore libCrun as
12745 # -library=stlport4 depends on it.
12746 case " $CXX $CXXFLAGS " in
12747 *" -library=stlport4 "*)
12748 solaris_use_stlport4=yes
12749 ;;
12750 esac
12751
12752 if test "$solaris_use_stlport4" != yes; then
12753 postdeps_CXX='-library=Cstd -library=Crun'
12754 fi
12755 ;;
12756 esac
12757 ;;
12758
12759 solaris*)
12760 case $cc_basename in
12761 CC*)
12762 # The more standards-conforming stlport4 library is
12763 # incompatible with the Cstd library. Avoid specifying
12764 # it if it's in CXXFLAGS. Ignore libCrun as
12765 # -library=stlport4 depends on it.
12766 case " $CXX $CXXFLAGS " in
12767 *" -library=stlport4 "*)
12768 solaris_use_stlport4=yes
12769 ;;
12770 esac
12771
12772 # Adding this requires a known-good setup of shared libraries for
12773 # Sun compiler versions before 5.6, else PIC objects from an old
12774 # archive will be linked into the output, leading to subtle bugs.
12775 if test "$solaris_use_stlport4" != yes; then
12776 postdeps_CXX='-library=Cstd -library=Crun'
12777 fi
12778 ;;
12779 esac
12780 ;;
12781 esac
12782
12783
12784 case " $postdeps_CXX " in
12785 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12786 esac
12787 compiler_lib_search_dirs_CXX=
12788 if test -n "${compiler_lib_search_path_CXX}"; then
12789 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12790 fi
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822 lt_prog_compiler_wl_CXX=
12823 lt_prog_compiler_pic_CXX=
12824 lt_prog_compiler_static_CXX=
12825
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12827 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12828
12829 # C++ specific cases for pic, static, wl, etc.
12830 if test "$GXX" = yes; then
12831 lt_prog_compiler_wl_CXX='-Wl,'
12832 lt_prog_compiler_static_CXX='-static'
12833
12834 case $host_os in
12835 aix*)
12836 # All AIX code is PIC.
12837 if test "$host_cpu" = ia64; then
12838 # AIX 5 now supports IA64 processor
12839 lt_prog_compiler_static_CXX='-Bstatic'
12840 fi
12841 lt_prog_compiler_pic_CXX='-fPIC'
12842 ;;
12843
12844 amigaos*)
12845 case $host_cpu in
12846 powerpc)
12847 # see comment about AmigaOS4 .so support
12848 lt_prog_compiler_pic_CXX='-fPIC'
12849 ;;
12850 m68k)
12851 # FIXME: we need at least 68020 code to build shared libraries, but
12852 # adding the `-m68020' flag to GCC prevents building anything better,
12853 # like `-m68040'.
12854 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12855 ;;
12856 esac
12857 ;;
12858
12859 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12860 # PIC is the default for these OSes.
12861 ;;
12862 mingw* | cygwin* | os2* | pw32* | cegcc*)
12863 # This hack is so that the source file can tell whether it is being
12864 # built for inclusion in a dll (and should export symbols for example).
12865 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12866 # (--disable-auto-import) libraries
12867 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12868 ;;
12869 darwin* | rhapsody*)
12870 # PIC is the default on this platform
12871 # Common symbols not allowed in MH_DYLIB files
12872 lt_prog_compiler_pic_CXX='-fno-common'
12873 ;;
12874 *djgpp*)
12875 # DJGPP does not support shared libraries at all
12876 lt_prog_compiler_pic_CXX=
12877 ;;
12878 haiku*)
12879 # PIC is the default for Haiku.
12880 # The "-static" flag exists, but is broken.
12881 lt_prog_compiler_static_CXX=
12882 ;;
12883 interix[3-9]*)
12884 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12885 # Instead, we relocate shared libraries at runtime.
12886 ;;
12887 sysv4*MP*)
12888 if test -d /usr/nec; then
12889 lt_prog_compiler_pic_CXX=-Kconform_pic
12890 fi
12891 ;;
12892 hpux*)
12893 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12894 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12895 # sets the default TLS model and affects inlining.
12896 case $host_cpu in
12897 hppa*64*)
12898 ;;
12899 *)
12900 lt_prog_compiler_pic_CXX='-fPIC'
12901 ;;
12902 esac
12903 ;;
12904 *qnx* | *nto*)
12905 # QNX uses GNU C++, but need to define -shared option too, otherwise
12906 # it will coredump.
12907 lt_prog_compiler_pic_CXX='-fPIC -shared'
12908 ;;
12909 *)
12910 lt_prog_compiler_pic_CXX='-fPIC'
12911 ;;
12912 esac
12913 else
12914 case $host_os in
12915 aix[4-9]*)
12916 # All AIX code is PIC.
12917 if test "$host_cpu" = ia64; then
12918 # AIX 5 now supports IA64 processor
12919 lt_prog_compiler_static_CXX='-Bstatic'
12920 else
12921 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12922 fi
12923 ;;
12924 chorus*)
12925 case $cc_basename in
12926 cxch68*)
12927 # Green Hills C++ Compiler
12928 # _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"
12929 ;;
12930 esac
12931 ;;
12932 dgux*)
12933 case $cc_basename in
12934 ec++*)
12935 lt_prog_compiler_pic_CXX='-KPIC'
12936 ;;
12937 ghcx*)
12938 # Green Hills C++ Compiler
12939 lt_prog_compiler_pic_CXX='-pic'
12940 ;;
12941 *)
12942 ;;
12943 esac
12944 ;;
12945 freebsd* | dragonfly*)
12946 # FreeBSD uses GNU C++
12947 ;;
12948 hpux9* | hpux10* | hpux11*)
12949 case $cc_basename in
12950 CC*)
12951 lt_prog_compiler_wl_CXX='-Wl,'
12952 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12953 if test "$host_cpu" != ia64; then
12954 lt_prog_compiler_pic_CXX='+Z'
12955 fi
12956 ;;
12957 aCC*)
12958 lt_prog_compiler_wl_CXX='-Wl,'
12959 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12960 case $host_cpu in
12961 hppa*64*|ia64*)
12962 # +Z the default
12963 ;;
12964 *)
12965 lt_prog_compiler_pic_CXX='+Z'
12966 ;;
12967 esac
12968 ;;
12969 *)
12970 ;;
12971 esac
12972 ;;
12973 interix*)
12974 # This is c89, which is MS Visual C++ (no shared libs)
12975 # Anyone wants to do a port?
12976 ;;
12977 irix5* | irix6* | nonstopux*)
12978 case $cc_basename in
12979 CC*)
12980 lt_prog_compiler_wl_CXX='-Wl,'
12981 lt_prog_compiler_static_CXX='-non_shared'
12982 # CC pic flag -KPIC is the default.
12983 ;;
12984 *)
12985 ;;
12986 esac
12987 ;;
12988 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12989 case $cc_basename in
12990 KCC*)
12991 # KAI C++ Compiler
12992 lt_prog_compiler_wl_CXX='--backend -Wl,'
12993 lt_prog_compiler_pic_CXX='-fPIC'
12994 ;;
12995 ecpc* )
12996 # old Intel C++ for x86_64 which still supported -KPIC.
12997 lt_prog_compiler_wl_CXX='-Wl,'
12998 lt_prog_compiler_pic_CXX='-KPIC'
12999 lt_prog_compiler_static_CXX='-static'
13000 ;;
13001 icpc* )
13002 # Intel C++, used to be incompatible with GCC.
13003 # ICC 10 doesn't accept -KPIC any more.
13004 lt_prog_compiler_wl_CXX='-Wl,'
13005 lt_prog_compiler_pic_CXX='-fPIC'
13006 lt_prog_compiler_static_CXX='-static'
13007 ;;
13008 pgCC* | pgcpp*)
13009 # Portland Group C++ compiler
13010 lt_prog_compiler_wl_CXX='-Wl,'
13011 lt_prog_compiler_pic_CXX='-fpic'
13012 lt_prog_compiler_static_CXX='-Bstatic'
13013 ;;
13014 cxx*)
13015 # Compaq C++
13016 # Make sure the PIC flag is empty. It appears that all Alpha
13017 # Linux and Compaq Tru64 Unix objects are PIC.
13018 lt_prog_compiler_pic_CXX=
13019 lt_prog_compiler_static_CXX='-non_shared'
13020 ;;
13021 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13022 # IBM XL 8.0, 9.0 on PPC and BlueGene
13023 lt_prog_compiler_wl_CXX='-Wl,'
13024 lt_prog_compiler_pic_CXX='-qpic'
13025 lt_prog_compiler_static_CXX='-qstaticlink'
13026 ;;
13027 *)
13028 case `$CC -V 2>&1 | sed 5q` in
13029 *Sun\ C*)
13030 # Sun C++ 5.9
13031 lt_prog_compiler_pic_CXX='-KPIC'
13032 lt_prog_compiler_static_CXX='-Bstatic'
13033 lt_prog_compiler_wl_CXX='-Qoption ld '
13034 ;;
13035 esac
13036 ;;
13037 esac
13038 ;;
13039 lynxos*)
13040 ;;
13041 m88k*)
13042 ;;
13043 mvs*)
13044 case $cc_basename in
13045 cxx*)
13046 lt_prog_compiler_pic_CXX='-W c,exportall'
13047 ;;
13048 *)
13049 ;;
13050 esac
13051 ;;
13052 netbsd*)
13053 ;;
13054 *qnx* | *nto*)
13055 # QNX uses GNU C++, but need to define -shared option too, otherwise
13056 # it will coredump.
13057 lt_prog_compiler_pic_CXX='-fPIC -shared'
13058 ;;
13059 osf3* | osf4* | osf5*)
13060 case $cc_basename in
13061 KCC*)
13062 lt_prog_compiler_wl_CXX='--backend -Wl,'
13063 ;;
13064 RCC*)
13065 # Rational C++ 2.4.1
13066 lt_prog_compiler_pic_CXX='-pic'
13067 ;;
13068 cxx*)
13069 # Digital/Compaq C++
13070 lt_prog_compiler_wl_CXX='-Wl,'
13071 # Make sure the PIC flag is empty. It appears that all Alpha
13072 # Linux and Compaq Tru64 Unix objects are PIC.
13073 lt_prog_compiler_pic_CXX=
13074 lt_prog_compiler_static_CXX='-non_shared'
13075 ;;
13076 *)
13077 ;;
13078 esac
13079 ;;
13080 psos*)
13081 ;;
13082 solaris*)
13083 case $cc_basename in
13084 CC*)
13085 # Sun C++ 4.2, 5.x and Centerline C++
13086 lt_prog_compiler_pic_CXX='-KPIC'
13087 lt_prog_compiler_static_CXX='-Bstatic'
13088 lt_prog_compiler_wl_CXX='-Qoption ld '
13089 ;;
13090 gcx*)
13091 # Green Hills C++ Compiler
13092 lt_prog_compiler_pic_CXX='-PIC'
13093 ;;
13094 *)
13095 ;;
13096 esac
13097 ;;
13098 sunos4*)
13099 case $cc_basename in
13100 CC*)
13101 # Sun C++ 4.x
13102 lt_prog_compiler_pic_CXX='-pic'
13103 lt_prog_compiler_static_CXX='-Bstatic'
13104 ;;
13105 lcc*)
13106 # Lucid
13107 lt_prog_compiler_pic_CXX='-pic'
13108 ;;
13109 *)
13110 ;;
13111 esac
13112 ;;
13113 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13114 case $cc_basename in
13115 CC*)
13116 lt_prog_compiler_wl_CXX='-Wl,'
13117 lt_prog_compiler_pic_CXX='-KPIC'
13118 lt_prog_compiler_static_CXX='-Bstatic'
13119 ;;
13120 esac
13121 ;;
13122 tandem*)
13123 case $cc_basename in
13124 NCC*)
13125 # NonStop-UX NCC 3.20
13126 lt_prog_compiler_pic_CXX='-KPIC'
13127 ;;
13128 *)
13129 ;;
13130 esac
13131 ;;
13132 vxworks*)
13133 ;;
13134 *)
13135 lt_prog_compiler_can_build_shared_CXX=no
13136 ;;
13137 esac
13138 fi
13139
13140 case $host_os in
13141 # For platforms which do not support PIC, -DPIC is meaningless:
13142 *djgpp*)
13143 lt_prog_compiler_pic_CXX=
13144 ;;
13145 *)
13146 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13147 ;;
13148 esac
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13150 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13151
13152
13153
13154 #
13155 # Check to make sure the PIC flag actually works.
13156 #
13157 if test -n "$lt_prog_compiler_pic_CXX"; then
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13159 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13160 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13161 $as_echo_n "(cached) " >&6
13162 else
13163 lt_cv_prog_compiler_pic_works_CXX=no
13164 ac_outfile=conftest.$ac_objext
13165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13166 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13167 # Insert the option either (1) after the last *FLAGS variable, or
13168 # (2) before a word containing "conftest.", or (3) at the end.
13169 # Note that $ac_compile itself does not contain backslashes and begins
13170 # with a dollar sign (not a hyphen), so the echo should work correctly.
13171 # The option is referenced via a variable to avoid confusing sed.
13172 lt_compile=`echo "$ac_compile" | $SED \
13173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13175 -e 's:$: $lt_compiler_flag:'`
13176 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13177 (eval "$lt_compile" 2>conftest.err)
13178 ac_status=$?
13179 cat conftest.err >&5
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 if (exit $ac_status) && test -s "$ac_outfile"; then
13182 # The compiler can only warn and ignore the option if not recognized
13183 # So say no if there are warnings other than the usual output.
13184 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13185 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13186 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13187 lt_cv_prog_compiler_pic_works_CXX=yes
13188 fi
13189 fi
13190 $RM conftest*
13191
13192 fi
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13194 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13195
13196 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13197 case $lt_prog_compiler_pic_CXX in
13198 "" | " "*) ;;
13199 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13200 esac
13201 else
13202 lt_prog_compiler_pic_CXX=
13203 lt_prog_compiler_can_build_shared_CXX=no
13204 fi
13205
13206 fi
13207
13208
13209
13210 #
13211 # Check to make sure the static flag actually works.
13212 #
13213 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13215 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13216 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13217 $as_echo_n "(cached) " >&6
13218 else
13219 lt_cv_prog_compiler_static_works_CXX=no
13220 save_LDFLAGS="$LDFLAGS"
13221 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13222 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13223 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13224 # The linker can only warn and ignore the option if not recognized
13225 # So say no if there are warnings
13226 if test -s conftest.err; then
13227 # Append any errors to the config.log.
13228 cat conftest.err 1>&5
13229 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13231 if diff conftest.exp conftest.er2 >/dev/null; then
13232 lt_cv_prog_compiler_static_works_CXX=yes
13233 fi
13234 else
13235 lt_cv_prog_compiler_static_works_CXX=yes
13236 fi
13237 fi
13238 $RM -r conftest*
13239 LDFLAGS="$save_LDFLAGS"
13240
13241 fi
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13243 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13244
13245 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13246 :
13247 else
13248 lt_prog_compiler_static_CXX=
13249 fi
13250
13251
13252
13253
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13255 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13256 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13257 $as_echo_n "(cached) " >&6
13258 else
13259 lt_cv_prog_compiler_c_o_CXX=no
13260 $RM -r conftest 2>/dev/null
13261 mkdir conftest
13262 cd conftest
13263 mkdir out
13264 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13265
13266 lt_compiler_flag="-o out/conftest2.$ac_objext"
13267 # Insert the option either (1) after the last *FLAGS variable, or
13268 # (2) before a word containing "conftest.", or (3) at the end.
13269 # Note that $ac_compile itself does not contain backslashes and begins
13270 # with a dollar sign (not a hyphen), so the echo should work correctly.
13271 lt_compile=`echo "$ac_compile" | $SED \
13272 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13274 -e 's:$: $lt_compiler_flag:'`
13275 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13276 (eval "$lt_compile" 2>out/conftest.err)
13277 ac_status=$?
13278 cat out/conftest.err >&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13281 then
13282 # The compiler can only warn and ignore the option if not recognized
13283 # So say no if there are warnings
13284 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13285 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13286 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13287 lt_cv_prog_compiler_c_o_CXX=yes
13288 fi
13289 fi
13290 chmod u+w . 2>&5
13291 $RM conftest*
13292 # SGI C++ compiler will create directory out/ii_files/ for
13293 # template instantiation
13294 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13295 $RM out/* && rmdir out
13296 cd ..
13297 $RM -r conftest
13298 $RM conftest*
13299
13300 fi
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13302 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13303
13304
13305
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13307 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13308 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13309 $as_echo_n "(cached) " >&6
13310 else
13311 lt_cv_prog_compiler_c_o_CXX=no
13312 $RM -r conftest 2>/dev/null
13313 mkdir conftest
13314 cd conftest
13315 mkdir out
13316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13317
13318 lt_compiler_flag="-o out/conftest2.$ac_objext"
13319 # Insert the option either (1) after the last *FLAGS variable, or
13320 # (2) before a word containing "conftest.", or (3) at the end.
13321 # Note that $ac_compile itself does not contain backslashes and begins
13322 # with a dollar sign (not a hyphen), so the echo should work correctly.
13323 lt_compile=`echo "$ac_compile" | $SED \
13324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13326 -e 's:$: $lt_compiler_flag:'`
13327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13328 (eval "$lt_compile" 2>out/conftest.err)
13329 ac_status=$?
13330 cat out/conftest.err >&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13333 then
13334 # The compiler can only warn and ignore the option if not recognized
13335 # So say no if there are warnings
13336 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13337 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13338 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13339 lt_cv_prog_compiler_c_o_CXX=yes
13340 fi
13341 fi
13342 chmod u+w . 2>&5
13343 $RM conftest*
13344 # SGI C++ compiler will create directory out/ii_files/ for
13345 # template instantiation
13346 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13347 $RM out/* && rmdir out
13348 cd ..
13349 $RM -r conftest
13350 $RM conftest*
13351
13352 fi
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13354 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13355
13356
13357
13358
13359 hard_links="nottested"
13360 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13361 # do not overwrite the value of need_locks provided by the user
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13363 $as_echo_n "checking if we can lock with hard links... " >&6; }
13364 hard_links=yes
13365 $RM conftest*
13366 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13367 touch conftest.a
13368 ln conftest.a conftest.b 2>&5 || hard_links=no
13369 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13371 $as_echo "$hard_links" >&6; }
13372 if test "$hard_links" = no; then
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13374 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13375 need_locks=warn
13376 fi
13377 else
13378 need_locks=no
13379 fi
13380
13381
13382
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13384 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13385
13386 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13387 case $host_os in
13388 aix[4-9]*)
13389 # If we're using GNU nm, then we don't want the "-C" option.
13390 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13391 # Also, AIX nm treats weak defined symbols like other global defined
13392 # symbols, whereas GNU nm marks them as "W".
13393 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13394 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'
13395 else
13396 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'
13397 fi
13398 ;;
13399 pw32*)
13400 export_symbols_cmds_CXX="$ltdll_cmds"
13401 ;;
13402 cygwin* | mingw* | cegcc*)
13403 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'
13404 ;;
13405 *)
13406 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13407 ;;
13408 esac
13409 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13410
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13412 $as_echo "$ld_shlibs_CXX" >&6; }
13413 test "$ld_shlibs_CXX" = no && can_build_shared=no
13414
13415 with_gnu_ld_CXX=$with_gnu_ld
13416
13417
13418
13419
13420
13421
13422 #
13423 # Do we need to explicitly link libc?
13424 #
13425 case "x$archive_cmds_need_lc_CXX" in
13426 x|xyes)
13427 # Assume -lc should be added
13428 archive_cmds_need_lc_CXX=yes
13429
13430 if test "$enable_shared" = yes && test "$GCC" = yes; then
13431 case $archive_cmds_CXX in
13432 *'~'*)
13433 # FIXME: we may have to deal with multi-command sequences.
13434 ;;
13435 '$CC '*)
13436 # Test whether the compiler implicitly links with -lc since on some
13437 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13438 # to ld, don't add -lc before -lgcc.
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13440 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13441 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13442 $as_echo_n "(cached) " >&6
13443 else
13444 $RM conftest*
13445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13446
13447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13448 (eval $ac_compile) 2>&5
13449 ac_status=$?
13450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13451 test $ac_status = 0; } 2>conftest.err; then
13452 soname=conftest
13453 lib=conftest
13454 libobjs=conftest.$ac_objext
13455 deplibs=
13456 wl=$lt_prog_compiler_wl_CXX
13457 pic_flag=$lt_prog_compiler_pic_CXX
13458 compiler_flags=-v
13459 linker_flags=-v
13460 verstring=
13461 output_objdir=.
13462 libname=conftest
13463 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13464 allow_undefined_flag_CXX=
13465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13466 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13467 ac_status=$?
13468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13469 test $ac_status = 0; }
13470 then
13471 lt_cv_archive_cmds_need_lc_CXX=no
13472 else
13473 lt_cv_archive_cmds_need_lc_CXX=yes
13474 fi
13475 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13476 else
13477 cat conftest.err 1>&5
13478 fi
13479 $RM conftest*
13480
13481 fi
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13483 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13484 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13485 ;;
13486 esac
13487 fi
13488 ;;
13489 esac
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13555 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13556
13557 library_names_spec=
13558 libname_spec='lib$name'
13559 soname_spec=
13560 shrext_cmds=".so"
13561 postinstall_cmds=
13562 postuninstall_cmds=
13563 finish_cmds=
13564 finish_eval=
13565 shlibpath_var=
13566 shlibpath_overrides_runpath=unknown
13567 version_type=none
13568 dynamic_linker="$host_os ld.so"
13569 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13570 need_lib_prefix=unknown
13571 hardcode_into_libs=no
13572
13573 # when you set need_version to no, make sure it does not cause -set_version
13574 # flags to be left without arguments
13575 need_version=unknown
13576
13577 case $host_os in
13578 aix3*)
13579 version_type=linux
13580 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13581 shlibpath_var=LIBPATH
13582
13583 # AIX 3 has no versioning support, so we append a major version to the name.
13584 soname_spec='${libname}${release}${shared_ext}$major'
13585 ;;
13586
13587 aix[4-9]*)
13588 version_type=linux
13589 need_lib_prefix=no
13590 need_version=no
13591 hardcode_into_libs=yes
13592 if test "$host_cpu" = ia64; then
13593 # AIX 5 supports IA64
13594 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13595 shlibpath_var=LD_LIBRARY_PATH
13596 else
13597 # With GCC up to 2.95.x, collect2 would create an import file
13598 # for dependence libraries. The import file would start with
13599 # the line `#! .'. This would cause the generated library to
13600 # depend on `.', always an invalid library. This was fixed in
13601 # development snapshots of GCC prior to 3.0.
13602 case $host_os in
13603 aix4 | aix4.[01] | aix4.[01].*)
13604 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13605 echo ' yes '
13606 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13607 :
13608 else
13609 can_build_shared=no
13610 fi
13611 ;;
13612 esac
13613 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13614 # soname into executable. Probably we can add versioning support to
13615 # collect2, so additional links can be useful in future.
13616 if test "$aix_use_runtimelinking" = yes; then
13617 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13618 # instead of lib<name>.a to let people know that these are not
13619 # typical AIX shared libraries.
13620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13621 else
13622 # We preserve .a as extension for shared libraries through AIX4.2
13623 # and later when we are not doing run time linking.
13624 library_names_spec='${libname}${release}.a $libname.a'
13625 soname_spec='${libname}${release}${shared_ext}$major'
13626 fi
13627 shlibpath_var=LIBPATH
13628 fi
13629 ;;
13630
13631 amigaos*)
13632 case $host_cpu in
13633 powerpc)
13634 # Since July 2007 AmigaOS4 officially supports .so libraries.
13635 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13637 ;;
13638 m68k)
13639 library_names_spec='$libname.ixlibrary $libname.a'
13640 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13641 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'
13642 ;;
13643 esac
13644 ;;
13645
13646 beos*)
13647 library_names_spec='${libname}${shared_ext}'
13648 dynamic_linker="$host_os ld.so"
13649 shlibpath_var=LIBRARY_PATH
13650 ;;
13651
13652 bsdi[45]*)
13653 version_type=linux
13654 need_version=no
13655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13656 soname_spec='${libname}${release}${shared_ext}$major'
13657 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13658 shlibpath_var=LD_LIBRARY_PATH
13659 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13660 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13661 # the default ld.so.conf also contains /usr/contrib/lib and
13662 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13663 # libtool to hard-code these into programs
13664 ;;
13665
13666 cygwin* | mingw* | pw32* | cegcc*)
13667 version_type=windows
13668 shrext_cmds=".dll"
13669 need_version=no
13670 need_lib_prefix=no
13671
13672 case $GCC,$host_os in
13673 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13674 library_names_spec='$libname.dll.a'
13675 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13676 postinstall_cmds='base_file=`basename \${file}`~
13677 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13678 dldir=$destdir/`dirname \$dlpath`~
13679 test -d \$dldir || mkdir -p \$dldir~
13680 $install_prog $dir/$dlname \$dldir/$dlname~
13681 chmod a+x \$dldir/$dlname~
13682 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13683 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13684 fi'
13685 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13686 dlpath=$dir/\$dldll~
13687 $RM \$dlpath'
13688 shlibpath_overrides_runpath=yes
13689
13690 case $host_os in
13691 cygwin*)
13692 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13693 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13694
13695 ;;
13696 mingw* | cegcc*)
13697 # MinGW DLLs use traditional 'lib' prefix
13698 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13699 ;;
13700 pw32*)
13701 # pw32 DLLs use 'pw' prefix rather than 'lib'
13702 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13703 ;;
13704 esac
13705 ;;
13706
13707 *)
13708 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13709 ;;
13710 esac
13711 dynamic_linker='Win32 ld.exe'
13712 # FIXME: first we should search . and the directory the executable is in
13713 shlibpath_var=PATH
13714 ;;
13715
13716 darwin* | rhapsody*)
13717 dynamic_linker="$host_os dyld"
13718 version_type=darwin
13719 need_lib_prefix=no
13720 need_version=no
13721 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13722 soname_spec='${libname}${release}${major}$shared_ext'
13723 shlibpath_overrides_runpath=yes
13724 shlibpath_var=DYLD_LIBRARY_PATH
13725 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13726
13727 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13728 ;;
13729
13730 dgux*)
13731 version_type=linux
13732 need_lib_prefix=no
13733 need_version=no
13734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13735 soname_spec='${libname}${release}${shared_ext}$major'
13736 shlibpath_var=LD_LIBRARY_PATH
13737 ;;
13738
13739 freebsd* | dragonfly*)
13740 # DragonFly does not have aout. When/if they implement a new
13741 # versioning mechanism, adjust this.
13742 if test -x /usr/bin/objformat; then
13743 objformat=`/usr/bin/objformat`
13744 else
13745 case $host_os in
13746 freebsd[23].*) objformat=aout ;;
13747 *) objformat=elf ;;
13748 esac
13749 fi
13750 version_type=freebsd-$objformat
13751 case $version_type in
13752 freebsd-elf*)
13753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13754 need_version=no
13755 need_lib_prefix=no
13756 ;;
13757 freebsd-*)
13758 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13759 need_version=yes
13760 ;;
13761 esac
13762 shlibpath_var=LD_LIBRARY_PATH
13763 case $host_os in
13764 freebsd2.*)
13765 shlibpath_overrides_runpath=yes
13766 ;;
13767 freebsd3.[01]* | freebsdelf3.[01]*)
13768 shlibpath_overrides_runpath=yes
13769 hardcode_into_libs=yes
13770 ;;
13771 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13772 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13773 shlibpath_overrides_runpath=no
13774 hardcode_into_libs=yes
13775 ;;
13776 *) # from 4.6 on, and DragonFly
13777 shlibpath_overrides_runpath=yes
13778 hardcode_into_libs=yes
13779 ;;
13780 esac
13781 ;;
13782
13783 gnu*)
13784 version_type=linux
13785 need_lib_prefix=no
13786 need_version=no
13787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13788 soname_spec='${libname}${release}${shared_ext}$major'
13789 shlibpath_var=LD_LIBRARY_PATH
13790 hardcode_into_libs=yes
13791 ;;
13792
13793 haiku*)
13794 version_type=linux
13795 need_lib_prefix=no
13796 need_version=no
13797 dynamic_linker="$host_os runtime_loader"
13798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13799 soname_spec='${libname}${release}${shared_ext}$major'
13800 shlibpath_var=LIBRARY_PATH
13801 shlibpath_overrides_runpath=yes
13802 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13803 hardcode_into_libs=yes
13804 ;;
13805
13806 hpux9* | hpux10* | hpux11*)
13807 # Give a soname corresponding to the major version so that dld.sl refuses to
13808 # link against other versions.
13809 version_type=sunos
13810 need_lib_prefix=no
13811 need_version=no
13812 case $host_cpu in
13813 ia64*)
13814 shrext_cmds='.so'
13815 hardcode_into_libs=yes
13816 dynamic_linker="$host_os dld.so"
13817 shlibpath_var=LD_LIBRARY_PATH
13818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13820 soname_spec='${libname}${release}${shared_ext}$major'
13821 if test "X$HPUX_IA64_MODE" = X32; then
13822 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13823 else
13824 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13825 fi
13826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13827 ;;
13828 hppa*64*)
13829 shrext_cmds='.sl'
13830 hardcode_into_libs=yes
13831 dynamic_linker="$host_os dld.sl"
13832 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13835 soname_spec='${libname}${release}${shared_ext}$major'
13836 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13838 ;;
13839 *)
13840 shrext_cmds='.sl'
13841 dynamic_linker="$host_os dld.sl"
13842 shlibpath_var=SHLIB_PATH
13843 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13845 soname_spec='${libname}${release}${shared_ext}$major'
13846 ;;
13847 esac
13848 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13849 postinstall_cmds='chmod 555 $lib'
13850 # or fails outright, so override atomically:
13851 install_override_mode=555
13852 ;;
13853
13854 interix[3-9]*)
13855 version_type=linux
13856 need_lib_prefix=no
13857 need_version=no
13858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13859 soname_spec='${libname}${release}${shared_ext}$major'
13860 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13861 shlibpath_var=LD_LIBRARY_PATH
13862 shlibpath_overrides_runpath=no
13863 hardcode_into_libs=yes
13864 ;;
13865
13866 irix5* | irix6* | nonstopux*)
13867 case $host_os in
13868 nonstopux*) version_type=nonstopux ;;
13869 *)
13870 if test "$lt_cv_prog_gnu_ld" = yes; then
13871 version_type=linux
13872 else
13873 version_type=irix
13874 fi ;;
13875 esac
13876 need_lib_prefix=no
13877 need_version=no
13878 soname_spec='${libname}${release}${shared_ext}$major'
13879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13880 case $host_os in
13881 irix5* | nonstopux*)
13882 libsuff= shlibsuff=
13883 ;;
13884 *)
13885 case $LD in # libtool.m4 will add one of these switches to LD
13886 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13887 libsuff= shlibsuff= libmagic=32-bit;;
13888 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13889 libsuff=32 shlibsuff=N32 libmagic=N32;;
13890 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13891 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13892 *) libsuff= shlibsuff= libmagic=never-match;;
13893 esac
13894 ;;
13895 esac
13896 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13897 shlibpath_overrides_runpath=no
13898 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13899 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13900 hardcode_into_libs=yes
13901 ;;
13902
13903 # No shared lib support for Linux oldld, aout, or coff.
13904 linux*oldld* | linux*aout* | linux*coff*)
13905 dynamic_linker=no
13906 ;;
13907
13908 # This must be Linux ELF.
13909 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13910 version_type=linux
13911 need_lib_prefix=no
13912 need_version=no
13913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13914 soname_spec='${libname}${release}${shared_ext}$major'
13915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13916 shlibpath_var=LD_LIBRARY_PATH
13917 shlibpath_overrides_runpath=no
13918
13919 # Some binutils ld are patched to set DT_RUNPATH
13920 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
13921 $as_echo_n "(cached) " >&6
13922 else
13923 lt_cv_shlibpath_overrides_runpath=no
13924 save_LDFLAGS=$LDFLAGS
13925 save_libdir=$libdir
13926 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13927 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13930
13931 int
13932 main ()
13933 {
13934
13935 ;
13936 return 0;
13937 }
13938 _ACEOF
13939 if ac_fn_cxx_try_link "$LINENO"; then :
13940 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13941 lt_cv_shlibpath_overrides_runpath=yes
13942 fi
13943 fi
13944 rm -f core conftest.err conftest.$ac_objext \
13945 conftest$ac_exeext conftest.$ac_ext
13946 LDFLAGS=$save_LDFLAGS
13947 libdir=$save_libdir
13948
13949 fi
13950
13951 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13952
13953 # This implies no fast_install, which is unacceptable.
13954 # Some rework will be needed to allow for fast_install
13955 # before this can be enabled.
13956 hardcode_into_libs=yes
13957
13958 # Append ld.so.conf contents to the search path
13959 if test -f /etc/ld.so.conf; then
13960 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' ' '`
13961 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13962 fi
13963
13964 # We used to test for /lib/ld.so.1 and disable shared libraries on
13965 # powerpc, because MkLinux only supported shared libraries with the
13966 # GNU dynamic linker. Since this was broken with cross compilers,
13967 # most powerpc-linux boxes support dynamic linking these days and
13968 # people can always --disable-shared, the test was removed, and we
13969 # assume the GNU/Linux dynamic linker is in use.
13970 dynamic_linker='GNU/Linux ld.so'
13971 ;;
13972
13973 netbsd*)
13974 version_type=sunos
13975 need_lib_prefix=no
13976 need_version=no
13977 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13980 dynamic_linker='NetBSD (a.out) ld.so'
13981 else
13982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13983 soname_spec='${libname}${release}${shared_ext}$major'
13984 dynamic_linker='NetBSD ld.elf_so'
13985 fi
13986 shlibpath_var=LD_LIBRARY_PATH
13987 shlibpath_overrides_runpath=yes
13988 hardcode_into_libs=yes
13989 ;;
13990
13991 newsos6)
13992 version_type=linux
13993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13994 shlibpath_var=LD_LIBRARY_PATH
13995 shlibpath_overrides_runpath=yes
13996 ;;
13997
13998 *nto* | *qnx*)
13999 version_type=qnx
14000 need_lib_prefix=no
14001 need_version=no
14002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14003 soname_spec='${libname}${release}${shared_ext}$major'
14004 shlibpath_var=LD_LIBRARY_PATH
14005 shlibpath_overrides_runpath=no
14006 hardcode_into_libs=yes
14007 dynamic_linker='ldqnx.so'
14008 ;;
14009
14010 openbsd*)
14011 version_type=sunos
14012 sys_lib_dlsearch_path_spec="/usr/lib"
14013 need_lib_prefix=no
14014 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14015 case $host_os in
14016 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14017 *) need_version=no ;;
14018 esac
14019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14021 shlibpath_var=LD_LIBRARY_PATH
14022 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14023 case $host_os in
14024 openbsd2.[89] | openbsd2.[89].*)
14025 shlibpath_overrides_runpath=no
14026 ;;
14027 *)
14028 shlibpath_overrides_runpath=yes
14029 ;;
14030 esac
14031 else
14032 shlibpath_overrides_runpath=yes
14033 fi
14034 ;;
14035
14036 os2*)
14037 libname_spec='$name'
14038 shrext_cmds=".dll"
14039 need_lib_prefix=no
14040 library_names_spec='$libname${shared_ext} $libname.a'
14041 dynamic_linker='OS/2 ld.exe'
14042 shlibpath_var=LIBPATH
14043 ;;
14044
14045 osf3* | osf4* | osf5*)
14046 version_type=osf
14047 need_lib_prefix=no
14048 need_version=no
14049 soname_spec='${libname}${release}${shared_ext}$major'
14050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14051 shlibpath_var=LD_LIBRARY_PATH
14052 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14053 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14054 ;;
14055
14056 rdos*)
14057 dynamic_linker=no
14058 ;;
14059
14060 solaris*)
14061 version_type=linux
14062 need_lib_prefix=no
14063 need_version=no
14064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14065 soname_spec='${libname}${release}${shared_ext}$major'
14066 shlibpath_var=LD_LIBRARY_PATH
14067 shlibpath_overrides_runpath=yes
14068 hardcode_into_libs=yes
14069 # ldd complains unless libraries are executable
14070 postinstall_cmds='chmod +x $lib'
14071 ;;
14072
14073 sunos4*)
14074 version_type=sunos
14075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14076 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14077 shlibpath_var=LD_LIBRARY_PATH
14078 shlibpath_overrides_runpath=yes
14079 if test "$with_gnu_ld" = yes; then
14080 need_lib_prefix=no
14081 fi
14082 need_version=yes
14083 ;;
14084
14085 sysv4 | sysv4.3*)
14086 version_type=linux
14087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14088 soname_spec='${libname}${release}${shared_ext}$major'
14089 shlibpath_var=LD_LIBRARY_PATH
14090 case $host_vendor in
14091 sni)
14092 shlibpath_overrides_runpath=no
14093 need_lib_prefix=no
14094 runpath_var=LD_RUN_PATH
14095 ;;
14096 siemens)
14097 need_lib_prefix=no
14098 ;;
14099 motorola)
14100 need_lib_prefix=no
14101 need_version=no
14102 shlibpath_overrides_runpath=no
14103 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14104 ;;
14105 esac
14106 ;;
14107
14108 sysv4*MP*)
14109 if test -d /usr/nec ;then
14110 version_type=linux
14111 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14112 soname_spec='$libname${shared_ext}.$major'
14113 shlibpath_var=LD_LIBRARY_PATH
14114 fi
14115 ;;
14116
14117 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14118 version_type=freebsd-elf
14119 need_lib_prefix=no
14120 need_version=no
14121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14122 soname_spec='${libname}${release}${shared_ext}$major'
14123 shlibpath_var=LD_LIBRARY_PATH
14124 shlibpath_overrides_runpath=yes
14125 hardcode_into_libs=yes
14126 if test "$with_gnu_ld" = yes; then
14127 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14128 else
14129 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14130 case $host_os in
14131 sco3.2v5*)
14132 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14133 ;;
14134 esac
14135 fi
14136 sys_lib_dlsearch_path_spec='/usr/lib'
14137 ;;
14138
14139 tpf*)
14140 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14141 version_type=linux
14142 need_lib_prefix=no
14143 need_version=no
14144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14145 shlibpath_var=LD_LIBRARY_PATH
14146 shlibpath_overrides_runpath=no
14147 hardcode_into_libs=yes
14148 ;;
14149
14150 uts4*)
14151 version_type=linux
14152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14153 soname_spec='${libname}${release}${shared_ext}$major'
14154 shlibpath_var=LD_LIBRARY_PATH
14155 ;;
14156
14157 *)
14158 dynamic_linker=no
14159 ;;
14160 esac
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14162 $as_echo "$dynamic_linker" >&6; }
14163 test "$dynamic_linker" = no && can_build_shared=no
14164
14165 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14166 if test "$GCC" = yes; then
14167 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14168 fi
14169
14170 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14171 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14172 fi
14173 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14174 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14175 fi
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14215 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14216 hardcode_action_CXX=
14217 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14218 test -n "$runpath_var_CXX" ||
14219 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14220
14221 # We can hardcode non-existent directories.
14222 if test "$hardcode_direct_CXX" != no &&
14223 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14224 # have to relink, otherwise we might link with an installed library
14225 # when we should be linking with a yet-to-be-installed one
14226 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14227 test "$hardcode_minus_L_CXX" != no; then
14228 # Linking always hardcodes the temporary library directory.
14229 hardcode_action_CXX=relink
14230 else
14231 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14232 hardcode_action_CXX=immediate
14233 fi
14234 else
14235 # We cannot hardcode anything, or else we can only hardcode existing
14236 # directories.
14237 hardcode_action_CXX=unsupported
14238 fi
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14240 $as_echo "$hardcode_action_CXX" >&6; }
14241
14242 if test "$hardcode_action_CXX" = relink ||
14243 test "$inherit_rpath_CXX" = yes; then
14244 # Fast installation is not supported
14245 enable_fast_install=no
14246 elif test "$shlibpath_overrides_runpath" = yes ||
14247 test "$enable_shared" = no; then
14248 # Fast installation is not necessary
14249 enable_fast_install=needless
14250 fi
14251
14252
14253
14254
14255
14256
14257
14258 fi # test -n "$compiler"
14259
14260 CC=$lt_save_CC
14261 LDCXX=$LD
14262 LD=$lt_save_LD
14263 GCC=$lt_save_GCC
14264 with_gnu_ld=$lt_save_with_gnu_ld
14265 lt_cv_path_LDCXX=$lt_cv_path_LD
14266 lt_cv_path_LD=$lt_save_path_LD
14267 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14268 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14269 fi # test "$_lt_caught_CXX_error" != yes
14270
14271 ac_ext=c
14272 ac_cpp='$CPP $CPPFLAGS'
14273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14276
14277
14278
14279 visibility=
14280 if test "$GXX" = yes; then
14281 visibility=-fvisibility=hidden
14282 fi
14283
14284
14285 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
14286 if test "x$ac_cv_have_decl_basename" = x""yes; then :
14287 ac_have_decl=1
14288 else
14289 ac_have_decl=0
14290 fi
14291
14292 cat >>confdefs.h <<_ACEOF
14293 #define HAVE_DECL_BASENAME $ac_have_decl
14294 _ACEOF
14295
14296
14297 gcc_version=`cat $srcdir/../gcc/BASE-VER`
14298
14299
14300 WARN_FLAGS=
14301 save_CFLAGS="$CFLAGS"
14302 for real_option in -W -Wall; do
14303 # Do the check with the no- prefix removed since gcc silently
14304 # accepts any -Wno-* option on purpose
14305 case $real_option in
14306 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
14307 *) option=$real_option ;;
14308 esac
14309 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
14310
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
14312 $as_echo_n "checking whether $CC supports $option... " >&6; }
14313 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
14314 $as_echo_n "(cached) " >&6
14315 else
14316 CFLAGS="$option"
14317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14318 /* end confdefs.h. */
14319
14320 int
14321 main ()
14322 {
14323
14324 ;
14325 return 0;
14326 }
14327 _ACEOF
14328 if ac_fn_c_try_compile "$LINENO"; then :
14329 eval "$as_acx_Woption=yes"
14330 else
14331 eval "$as_acx_Woption=no"
14332 fi
14333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14334
14335 fi
14336 eval ac_res=\$$as_acx_Woption
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14338 $as_echo "$ac_res" >&6; }
14339 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
14340 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
14341 fi
14342 done
14343 CFLAGS="$save_CFLAGS"
14344
14345 WARN_FLAGS="$WARN_FLAGS -Werror"
14346
14347
14348 libsuffix=
14349 if test "$GXX" = yes; then
14350 libsuffix=`$CXX -print-multi-os-directory`
14351 fi
14352
14353
14354 # If any of these functions are missing, simply don't bother building
14355 # this plugin.
14356 # Check for plugin support
14357 # Check whether --enable-plugin was given.
14358 if test "${enable_plugin+set}" = set; then :
14359 enableval=$enable_plugin; enable_plugin=$enableval
14360 else
14361 enable_plugin=yes; default_plugin=yes
14362 fi
14363
14364
14365 pluginlibs=
14366
14367 case "${host}" in
14368 *-*-darwin*)
14369 if test x$build = x$host; then
14370 export_sym_check="nm${exeext} -g"
14371 elif test x$host = x$target; then
14372 export_sym_check="$gcc_cv_nm -g"
14373 else
14374 export_sym_check=
14375 fi
14376 ;;
14377 *)
14378 if test x$build = x$host; then
14379 export_sym_check="objdump${exeext} -T"
14380 elif test x$host = x$target; then
14381 export_sym_check="$gcc_cv_objdump -T"
14382 else
14383 export_sym_check=
14384 fi
14385 ;;
14386 esac
14387
14388 if test x"$enable_plugin" = x"yes"; then
14389
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
14391 $as_echo_n "checking for exported symbols... " >&6; }
14392 if test "x$export_sym_check" != x; then
14393 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
14394 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
14395 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
14396 : # No need to use a flag
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14398 $as_echo "yes" >&6; }
14399 else
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14401 $as_echo "yes" >&6; }
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
14403 $as_echo_n "checking for -rdynamic... " >&6; }
14404 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
14405 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
14406 plugin_rdynamic=yes
14407 pluginlibs="-rdynamic"
14408 else
14409 plugin_rdynamic=no
14410 enable_plugin=no
14411 fi
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
14413 $as_echo "$plugin_rdynamic" >&6; }
14414 fi
14415 else
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
14417 $as_echo "unable to check" >&6; }
14418 fi
14419
14420 # Check -ldl
14421 saved_LIBS="$LIBS"
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14423 $as_echo_n "checking for library containing dlopen... " >&6; }
14424 if test "${ac_cv_search_dlopen+set}" = set; then :
14425 $as_echo_n "(cached) " >&6
14426 else
14427 ac_func_search_save_LIBS=$LIBS
14428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429 /* end confdefs.h. */
14430
14431 /* Override any GCC internal prototype to avoid an error.
14432 Use char because int might match the return type of a GCC
14433 builtin and then its argument prototype would still apply. */
14434 #ifdef __cplusplus
14435 extern "C"
14436 #endif
14437 char dlopen ();
14438 int
14439 main ()
14440 {
14441 return dlopen ();
14442 ;
14443 return 0;
14444 }
14445 _ACEOF
14446 for ac_lib in '' dl; do
14447 if test -z "$ac_lib"; then
14448 ac_res="none required"
14449 else
14450 ac_res=-l$ac_lib
14451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14452 fi
14453 if ac_fn_c_try_link "$LINENO"; then :
14454 ac_cv_search_dlopen=$ac_res
14455 fi
14456 rm -f core conftest.err conftest.$ac_objext \
14457 conftest$ac_exeext
14458 if test "${ac_cv_search_dlopen+set}" = set; then :
14459 break
14460 fi
14461 done
14462 if test "${ac_cv_search_dlopen+set}" = set; then :
14463
14464 else
14465 ac_cv_search_dlopen=no
14466 fi
14467 rm conftest.$ac_ext
14468 LIBS=$ac_func_search_save_LIBS
14469 fi
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14471 $as_echo "$ac_cv_search_dlopen" >&6; }
14472 ac_res=$ac_cv_search_dlopen
14473 if test "$ac_res" != no; then :
14474 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14475
14476 fi
14477
14478 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
14479 pluginlibs="$pluginlibs -ldl"
14480 fi
14481 LIBS="$saved_LIBS"
14482
14483 # Check that we can build shared objects with -fPIC -shared
14484 saved_LDFLAGS="$LDFLAGS"
14485 saved_CFLAGS="$CFLAGS"
14486 case "${host}" in
14487 *-*-darwin*)
14488 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
14489 CFLAGS="$CFLAGS -fPIC"
14490 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
14491 ;;
14492 *)
14493 CFLAGS="$CFLAGS -fPIC"
14494 LDFLAGS="$LDFLAGS -fPIC -shared"
14495 ;;
14496 esac
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
14498 $as_echo_n "checking for -fPIC -shared... " >&6; }
14499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14500 /* end confdefs.h. */
14501 extern int X;
14502 int
14503 main ()
14504 {
14505 return X == 0;
14506 ;
14507 return 0;
14508 }
14509 _ACEOF
14510 if ac_fn_c_try_link "$LINENO"; then :
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14512 $as_echo "yes" >&6; }; have_pic_shared=yes
14513 else
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14515 $as_echo "no" >&6; }; have_pic_shared=no
14516 fi
14517 rm -f core conftest.err conftest.$ac_objext \
14518 conftest$ac_exeext conftest.$ac_ext
14519 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
14520 pluginlibs=
14521 enable_plugin=no
14522 fi
14523 LDFLAGS="$saved_LDFLAGS"
14524 CFLAGS="$saved_CFLAGS"
14525
14526 # If plugin support had been requested but not available, fail.
14527 if test x"$enable_plugin" = x"no" ; then
14528 if test x"$default_plugin" != x"yes"; then
14529 as_fn_error "
14530 Building GCC with plugin support requires a host that supports
14531 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
14532 fi
14533 fi
14534 fi
14535
14536 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
14537 if test "x$ac_cv_func_socketpair" = x""yes; then :
14538
14539 else
14540 enable_plugin=no
14541 fi
14542
14543 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14544 if test "x$ac_cv_func_select" = x""yes; then :
14545
14546 else
14547 enable_plugin=no
14548 fi
14549
14550 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
14551 if test "x$ac_cv_func_fork" = x""yes; then :
14552
14553 else
14554 enable_plugin=no
14555 fi
14556
14557 if test $enable_plugin = yes; then
14558 ENABLE_PLUGIN_TRUE=
14559 ENABLE_PLUGIN_FALSE='#'
14560 else
14561 ENABLE_PLUGIN_TRUE='#'
14562 ENABLE_PLUGIN_FALSE=
14563 fi
14564
14565
14566 ac_config_files="$ac_config_files Makefile"
14567
14568 cat >confcache <<\_ACEOF
14569 # This file is a shell script that caches the results of configure
14570 # tests run on this system so they can be shared between configure
14571 # scripts and configure runs, see configure's option --config-cache.
14572 # It is not useful on other systems. If it contains results you don't
14573 # want to keep, you may remove or edit it.
14574 #
14575 # config.status only pays attention to the cache file if you give it
14576 # the --recheck option to rerun configure.
14577 #
14578 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14579 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14580 # following values.
14581
14582 _ACEOF
14583
14584 # The following way of writing the cache mishandles newlines in values,
14585 # but we know of no workaround that is simple, portable, and efficient.
14586 # So, we kill variables containing newlines.
14587 # Ultrix sh set writes to stderr and can't be redirected directly,
14588 # and sets the high bit in the cache file unless we assign to the vars.
14589 (
14590 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14591 eval ac_val=\$$ac_var
14592 case $ac_val in #(
14593 *${as_nl}*)
14594 case $ac_var in #(
14595 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14596 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14597 esac
14598 case $ac_var in #(
14599 _ | IFS | as_nl) ;; #(
14600 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14601 *) { eval $ac_var=; unset $ac_var;} ;;
14602 esac ;;
14603 esac
14604 done
14605
14606 (set) 2>&1 |
14607 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14608 *${as_nl}ac_space=\ *)
14609 # `set' does not quote correctly, so add quotes: double-quote
14610 # substitution turns \\\\ into \\, and sed turns \\ into \.
14611 sed -n \
14612 "s/'/'\\\\''/g;
14613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14614 ;; #(
14615 *)
14616 # `set' quotes correctly as required by POSIX, so do not add quotes.
14617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14618 ;;
14619 esac |
14620 sort
14621 ) |
14622 sed '
14623 /^ac_cv_env_/b end
14624 t clear
14625 :clear
14626 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14627 t end
14628 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14629 :end' >>confcache
14630 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14631 if test -w "$cache_file"; then
14632 test "x$cache_file" != "x/dev/null" &&
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14634 $as_echo "$as_me: updating cache $cache_file" >&6;}
14635 cat confcache >$cache_file
14636 else
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14638 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14639 fi
14640 fi
14641 rm -f confcache
14642
14643 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14644 # Let make expand exec_prefix.
14645 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14646
14647 DEFS=-DHAVE_CONFIG_H
14648
14649 ac_libobjs=
14650 ac_ltlibobjs=
14651 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14652 # 1. Remove the extension, and $U if already installed.
14653 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14654 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14655 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14656 # will be set to the directory where LIBOBJS objects are built.
14657 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14658 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14659 done
14660 LIBOBJS=$ac_libobjs
14661
14662 LTLIBOBJS=$ac_ltlibobjs
14663
14664
14665 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14666 as_fn_error "conditional \"AMDEP\" was never defined.
14667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14668 fi
14669 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14670 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14672 fi
14673 if test -n "$EXEEXT"; then
14674 am__EXEEXT_TRUE=
14675 am__EXEEXT_FALSE='#'
14676 else
14677 am__EXEEXT_TRUE='#'
14678 am__EXEEXT_FALSE=
14679 fi
14680
14681 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14682 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14684 fi
14685 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14686 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14688 fi
14689 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
14690 as_fn_error "conditional \"ENABLE_PLUGIN\" was never defined.
14691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14692 fi
14693
14694 : ${CONFIG_STATUS=./config.status}
14695 ac_write_fail=0
14696 ac_clean_files_save=$ac_clean_files
14697 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14699 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14700 as_write_fail=0
14701 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14702 #! $SHELL
14703 # Generated by $as_me.
14704 # Run this file to recreate the current configuration.
14705 # Compiler output produced by configure, useful for debugging
14706 # configure, is in config.log if it exists.
14707
14708 debug=false
14709 ac_cs_recheck=false
14710 ac_cs_silent=false
14711
14712 SHELL=\${CONFIG_SHELL-$SHELL}
14713 export SHELL
14714 _ASEOF
14715 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14716 ## -------------------- ##
14717 ## M4sh Initialization. ##
14718 ## -------------------- ##
14719
14720 # Be more Bourne compatible
14721 DUALCASE=1; export DUALCASE # for MKS sh
14722 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14723 emulate sh
14724 NULLCMD=:
14725 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14726 # is contrary to our usage. Disable this feature.
14727 alias -g '${1+"$@"}'='"$@"'
14728 setopt NO_GLOB_SUBST
14729 else
14730 case `(set -o) 2>/dev/null` in #(
14731 *posix*) :
14732 set -o posix ;; #(
14733 *) :
14734 ;;
14735 esac
14736 fi
14737
14738
14739 as_nl='
14740 '
14741 export as_nl
14742 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14743 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14744 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14745 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14746 # Prefer a ksh shell builtin over an external printf program on Solaris,
14747 # but without wasting forks for bash or zsh.
14748 if test -z "$BASH_VERSION$ZSH_VERSION" \
14749 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14750 as_echo='print -r --'
14751 as_echo_n='print -rn --'
14752 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14753 as_echo='printf %s\n'
14754 as_echo_n='printf %s'
14755 else
14756 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14757 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14758 as_echo_n='/usr/ucb/echo -n'
14759 else
14760 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14761 as_echo_n_body='eval
14762 arg=$1;
14763 case $arg in #(
14764 *"$as_nl"*)
14765 expr "X$arg" : "X\\(.*\\)$as_nl";
14766 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14767 esac;
14768 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14769 '
14770 export as_echo_n_body
14771 as_echo_n='sh -c $as_echo_n_body as_echo'
14772 fi
14773 export as_echo_body
14774 as_echo='sh -c $as_echo_body as_echo'
14775 fi
14776
14777 # The user is always right.
14778 if test "${PATH_SEPARATOR+set}" != set; then
14779 PATH_SEPARATOR=:
14780 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14781 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14782 PATH_SEPARATOR=';'
14783 }
14784 fi
14785
14786
14787 # IFS
14788 # We need space, tab and new line, in precisely that order. Quoting is
14789 # there to prevent editors from complaining about space-tab.
14790 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14791 # splitting by setting IFS to empty value.)
14792 IFS=" "" $as_nl"
14793
14794 # Find who we are. Look in the path if we contain no directory separator.
14795 case $0 in #((
14796 *[\\/]* ) as_myself=$0 ;;
14797 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14798 for as_dir in $PATH
14799 do
14800 IFS=$as_save_IFS
14801 test -z "$as_dir" && as_dir=.
14802 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14803 done
14804 IFS=$as_save_IFS
14805
14806 ;;
14807 esac
14808 # We did not find ourselves, most probably we were run as `sh COMMAND'
14809 # in which case we are not to be found in the path.
14810 if test "x$as_myself" = x; then
14811 as_myself=$0
14812 fi
14813 if test ! -f "$as_myself"; then
14814 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14815 exit 1
14816 fi
14817
14818 # Unset variables that we do not need and which cause bugs (e.g. in
14819 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14820 # suppresses any "Segmentation fault" message there. '((' could
14821 # trigger a bug in pdksh 5.2.14.
14822 for as_var in BASH_ENV ENV MAIL MAILPATH
14823 do eval test x\${$as_var+set} = xset \
14824 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14825 done
14826 PS1='$ '
14827 PS2='> '
14828 PS4='+ '
14829
14830 # NLS nuisances.
14831 LC_ALL=C
14832 export LC_ALL
14833 LANGUAGE=C
14834 export LANGUAGE
14835
14836 # CDPATH.
14837 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14838
14839
14840 # as_fn_error ERROR [LINENO LOG_FD]
14841 # ---------------------------------
14842 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14843 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14844 # script with status $?, using 1 if that was 0.
14845 as_fn_error ()
14846 {
14847 as_status=$?; test $as_status -eq 0 && as_status=1
14848 if test "$3"; then
14849 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14850 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14851 fi
14852 $as_echo "$as_me: error: $1" >&2
14853 as_fn_exit $as_status
14854 } # as_fn_error
14855
14856
14857 # as_fn_set_status STATUS
14858 # -----------------------
14859 # Set $? to STATUS, without forking.
14860 as_fn_set_status ()
14861 {
14862 return $1
14863 } # as_fn_set_status
14864
14865 # as_fn_exit STATUS
14866 # -----------------
14867 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14868 as_fn_exit ()
14869 {
14870 set +e
14871 as_fn_set_status $1
14872 exit $1
14873 } # as_fn_exit
14874
14875 # as_fn_unset VAR
14876 # ---------------
14877 # Portably unset VAR.
14878 as_fn_unset ()
14879 {
14880 { eval $1=; unset $1;}
14881 }
14882 as_unset=as_fn_unset
14883 # as_fn_append VAR VALUE
14884 # ----------------------
14885 # Append the text in VALUE to the end of the definition contained in VAR. Take
14886 # advantage of any shell optimizations that allow amortized linear growth over
14887 # repeated appends, instead of the typical quadratic growth present in naive
14888 # implementations.
14889 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14890 eval 'as_fn_append ()
14891 {
14892 eval $1+=\$2
14893 }'
14894 else
14895 as_fn_append ()
14896 {
14897 eval $1=\$$1\$2
14898 }
14899 fi # as_fn_append
14900
14901 # as_fn_arith ARG...
14902 # ------------------
14903 # Perform arithmetic evaluation on the ARGs, and store the result in the
14904 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14905 # must be portable across $(()) and expr.
14906 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14907 eval 'as_fn_arith ()
14908 {
14909 as_val=$(( $* ))
14910 }'
14911 else
14912 as_fn_arith ()
14913 {
14914 as_val=`expr "$@" || test $? -eq 1`
14915 }
14916 fi # as_fn_arith
14917
14918
14919 if expr a : '\(a\)' >/dev/null 2>&1 &&
14920 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14921 as_expr=expr
14922 else
14923 as_expr=false
14924 fi
14925
14926 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14927 as_basename=basename
14928 else
14929 as_basename=false
14930 fi
14931
14932 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14933 as_dirname=dirname
14934 else
14935 as_dirname=false
14936 fi
14937
14938 as_me=`$as_basename -- "$0" ||
14939 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14940 X"$0" : 'X\(//\)$' \| \
14941 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14942 $as_echo X/"$0" |
14943 sed '/^.*\/\([^/][^/]*\)\/*$/{
14944 s//\1/
14945 q
14946 }
14947 /^X\/\(\/\/\)$/{
14948 s//\1/
14949 q
14950 }
14951 /^X\/\(\/\).*/{
14952 s//\1/
14953 q
14954 }
14955 s/.*/./; q'`
14956
14957 # Avoid depending upon Character Ranges.
14958 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14959 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14960 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14961 as_cr_digits='0123456789'
14962 as_cr_alnum=$as_cr_Letters$as_cr_digits
14963
14964 ECHO_C= ECHO_N= ECHO_T=
14965 case `echo -n x` in #(((((
14966 -n*)
14967 case `echo 'xy\c'` in
14968 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14969 xy) ECHO_C='\c';;
14970 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14971 ECHO_T=' ';;
14972 esac;;
14973 *)
14974 ECHO_N='-n';;
14975 esac
14976
14977 rm -f conf$$ conf$$.exe conf$$.file
14978 if test -d conf$$.dir; then
14979 rm -f conf$$.dir/conf$$.file
14980 else
14981 rm -f conf$$.dir
14982 mkdir conf$$.dir 2>/dev/null
14983 fi
14984 if (echo >conf$$.file) 2>/dev/null; then
14985 if ln -s conf$$.file conf$$ 2>/dev/null; then
14986 as_ln_s='ln -s'
14987 # ... but there are two gotchas:
14988 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14989 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14990 # In both cases, we have to default to `cp -p'.
14991 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14992 as_ln_s='cp -p'
14993 elif ln conf$$.file conf$$ 2>/dev/null; then
14994 as_ln_s=ln
14995 else
14996 as_ln_s='cp -p'
14997 fi
14998 else
14999 as_ln_s='cp -p'
15000 fi
15001 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15002 rmdir conf$$.dir 2>/dev/null
15003
15004
15005 # as_fn_mkdir_p
15006 # -------------
15007 # Create "$as_dir" as a directory, including parents if necessary.
15008 as_fn_mkdir_p ()
15009 {
15010
15011 case $as_dir in #(
15012 -*) as_dir=./$as_dir;;
15013 esac
15014 test -d "$as_dir" || eval $as_mkdir_p || {
15015 as_dirs=
15016 while :; do
15017 case $as_dir in #(
15018 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15019 *) as_qdir=$as_dir;;
15020 esac
15021 as_dirs="'$as_qdir' $as_dirs"
15022 as_dir=`$as_dirname -- "$as_dir" ||
15023 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15024 X"$as_dir" : 'X\(//\)[^/]' \| \
15025 X"$as_dir" : 'X\(//\)$' \| \
15026 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15027 $as_echo X"$as_dir" |
15028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15029 s//\1/
15030 q
15031 }
15032 /^X\(\/\/\)[^/].*/{
15033 s//\1/
15034 q
15035 }
15036 /^X\(\/\/\)$/{
15037 s//\1/
15038 q
15039 }
15040 /^X\(\/\).*/{
15041 s//\1/
15042 q
15043 }
15044 s/.*/./; q'`
15045 test -d "$as_dir" && break
15046 done
15047 test -z "$as_dirs" || eval "mkdir $as_dirs"
15048 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15049
15050
15051 } # as_fn_mkdir_p
15052 if mkdir -p . 2>/dev/null; then
15053 as_mkdir_p='mkdir -p "$as_dir"'
15054 else
15055 test -d ./-p && rmdir ./-p
15056 as_mkdir_p=false
15057 fi
15058
15059 if test -x / >/dev/null 2>&1; then
15060 as_test_x='test -x'
15061 else
15062 if ls -dL / >/dev/null 2>&1; then
15063 as_ls_L_option=L
15064 else
15065 as_ls_L_option=
15066 fi
15067 as_test_x='
15068 eval sh -c '\''
15069 if test -d "$1"; then
15070 test -d "$1/.";
15071 else
15072 case $1 in #(
15073 -*)set "./$1";;
15074 esac;
15075 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15076 ???[sx]*):;;*)false;;esac;fi
15077 '\'' sh
15078 '
15079 fi
15080 as_executable_p=$as_test_x
15081
15082 # Sed expression to map a string onto a valid CPP name.
15083 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15084
15085 # Sed expression to map a string onto a valid variable name.
15086 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15087
15088
15089 exec 6>&1
15090 ## ----------------------------------- ##
15091 ## Main body of $CONFIG_STATUS script. ##
15092 ## ----------------------------------- ##
15093 _ASEOF
15094 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15095
15096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15097 # Save the log message, to keep $0 and so on meaningful, and to
15098 # report actual input values of CONFIG_FILES etc. instead of their
15099 # values after options handling.
15100 ac_log="
15101 This file was extended by libcc1 $as_me version-unused, which was
15102 generated by GNU Autoconf 2.64. Invocation command line was
15103
15104 CONFIG_FILES = $CONFIG_FILES
15105 CONFIG_HEADERS = $CONFIG_HEADERS
15106 CONFIG_LINKS = $CONFIG_LINKS
15107 CONFIG_COMMANDS = $CONFIG_COMMANDS
15108 $ $0 $@
15109
15110 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15111 "
15112
15113 _ACEOF
15114
15115 case $ac_config_files in *"
15116 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15117 esac
15118
15119 case $ac_config_headers in *"
15120 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15121 esac
15122
15123
15124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15125 # Files that config.status was made for.
15126 config_files="$ac_config_files"
15127 config_headers="$ac_config_headers"
15128 config_commands="$ac_config_commands"
15129
15130 _ACEOF
15131
15132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15133 ac_cs_usage="\
15134 \`$as_me' instantiates files and other configuration actions
15135 from templates according to the current configuration. Unless the files
15136 and actions are specified as TAGs, all are instantiated by default.
15137
15138 Usage: $0 [OPTION]... [TAG]...
15139
15140 -h, --help print this help, then exit
15141 -V, --version print version number and configuration settings, then exit
15142 -q, --quiet, --silent
15143 do not print progress messages
15144 -d, --debug don't remove temporary files
15145 --recheck update $as_me by reconfiguring in the same conditions
15146 --file=FILE[:TEMPLATE]
15147 instantiate the configuration file FILE
15148 --header=FILE[:TEMPLATE]
15149 instantiate the configuration header FILE
15150
15151 Configuration files:
15152 $config_files
15153
15154 Configuration headers:
15155 $config_headers
15156
15157 Configuration commands:
15158 $config_commands
15159
15160 Report bugs to the package provider."
15161
15162 _ACEOF
15163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15164 ac_cs_version="\\
15165 libcc1 config.status version-unused
15166 configured by $0, generated by GNU Autoconf 2.64,
15167 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15168
15169 Copyright (C) 2009 Free Software Foundation, Inc.
15170 This config.status script is free software; the Free Software Foundation
15171 gives unlimited permission to copy, distribute and modify it."
15172
15173 ac_pwd='$ac_pwd'
15174 srcdir='$srcdir'
15175 INSTALL='$INSTALL'
15176 MKDIR_P='$MKDIR_P'
15177 AWK='$AWK'
15178 test -n "\$AWK" || AWK=awk
15179 _ACEOF
15180
15181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15182 # The default lists apply if the user does not specify any file.
15183 ac_need_defaults=:
15184 while test $# != 0
15185 do
15186 case $1 in
15187 --*=*)
15188 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15189 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15190 ac_shift=:
15191 ;;
15192 *)
15193 ac_option=$1
15194 ac_optarg=$2
15195 ac_shift=shift
15196 ;;
15197 esac
15198
15199 case $ac_option in
15200 # Handling of the options.
15201 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15202 ac_cs_recheck=: ;;
15203 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15204 $as_echo "$ac_cs_version"; exit ;;
15205 --debug | --debu | --deb | --de | --d | -d )
15206 debug=: ;;
15207 --file | --fil | --fi | --f )
15208 $ac_shift
15209 case $ac_optarg in
15210 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15211 esac
15212 as_fn_append CONFIG_FILES " '$ac_optarg'"
15213 ac_need_defaults=false;;
15214 --header | --heade | --head | --hea )
15215 $ac_shift
15216 case $ac_optarg in
15217 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15218 esac
15219 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15220 ac_need_defaults=false;;
15221 --he | --h)
15222 # Conflict between --help and --header
15223 as_fn_error "ambiguous option: \`$1'
15224 Try \`$0 --help' for more information.";;
15225 --help | --hel | -h )
15226 $as_echo "$ac_cs_usage"; exit ;;
15227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15228 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15229 ac_cs_silent=: ;;
15230
15231 # This is an error.
15232 -*) as_fn_error "unrecognized option: \`$1'
15233 Try \`$0 --help' for more information." ;;
15234
15235 *) as_fn_append ac_config_targets " $1"
15236 ac_need_defaults=false ;;
15237
15238 esac
15239 shift
15240 done
15241
15242 ac_configure_extra_args=
15243
15244 if $ac_cs_silent; then
15245 exec 6>/dev/null
15246 ac_configure_extra_args="$ac_configure_extra_args --silent"
15247 fi
15248
15249 _ACEOF
15250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15251 if \$ac_cs_recheck; then
15252 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15253 shift
15254 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15255 CONFIG_SHELL='$SHELL'
15256 export CONFIG_SHELL
15257 exec "\$@"
15258 fi
15259
15260 _ACEOF
15261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15262 exec 5>>config.log
15263 {
15264 echo
15265 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15266 ## Running $as_me. ##
15267 _ASBOX
15268 $as_echo "$ac_log"
15269 } >&5
15270
15271 _ACEOF
15272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15273 #
15274 # INIT-COMMANDS
15275 #
15276 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15277
15278
15279 # The HP-UX ksh and POSIX shell print the target directory to stdout
15280 # if CDPATH is set.
15281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15282
15283 sed_quote_subst='$sed_quote_subst'
15284 double_quote_subst='$double_quote_subst'
15285 delay_variable_subst='$delay_variable_subst'
15286 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15287 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15288 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15289 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15290 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15291 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15292 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15293 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15294 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15295 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15296 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15297 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15298 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15299 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15300 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15301 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15302 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15303 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15304 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15305 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15306 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15307 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15308 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15309 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15310 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15311 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15312 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15313 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15314 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15315 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15316 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15317 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15318 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15319 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15320 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15321 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15322 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15323 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15324 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15325 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15326 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15327 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15328 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15329 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15330 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15331 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15332 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15333 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15334 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"`'
15335 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15336 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15337 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15338 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15339 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15340 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15341 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15342 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15343 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15344 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15345 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15346 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15347 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15348 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15349 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15350 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15351 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15352 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15353 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15354 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15355 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15356 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15357 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15358 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15359 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15360 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15361 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15362 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15363 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15364 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15365 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15366 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15367 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15368 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15369 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15370 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15371 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15372 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15373 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15374 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15375 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15376 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15377 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15378 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15379 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15380 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15381 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15382 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15383 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15384 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15385 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15386 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15387 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15388 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15389 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15390 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15391 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15392 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15393 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15394 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15395 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15396 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15397 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15398 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15399 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15400 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15401 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15402 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15403 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15404 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15405 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15406 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15407 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15408 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15409 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15410 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15411 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15412 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15413 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15414 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15415 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15416 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15417 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15418 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15419 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15420 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15421 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15422 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15423 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15424 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15425 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15426 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15427 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15428 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15429 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15430 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15431 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15432 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15433 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15434 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15435 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15436 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15437 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15438 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15439 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15440 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15441 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15442 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15443 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15444 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15445 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15446 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15447 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15448 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15449 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15450 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15451 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15452 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15453 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15454 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15455 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15456 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15457 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15458 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15459 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15460 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15461
15462 LTCC='$LTCC'
15463 LTCFLAGS='$LTCFLAGS'
15464 compiler='$compiler_DEFAULT'
15465
15466 # A function that is used when there is no print builtin or printf.
15467 func_fallback_echo ()
15468 {
15469 eval 'cat <<_LTECHO_EOF
15470 \$1
15471 _LTECHO_EOF'
15472 }
15473
15474 # Quote evaled strings.
15475 for var in SHELL \
15476 ECHO \
15477 SED \
15478 GREP \
15479 EGREP \
15480 FGREP \
15481 LD \
15482 NM \
15483 LN_S \
15484 lt_SP2NL \
15485 lt_NL2SP \
15486 reload_flag \
15487 OBJDUMP \
15488 deplibs_check_method \
15489 file_magic_cmd \
15490 AR \
15491 AR_FLAGS \
15492 STRIP \
15493 RANLIB \
15494 CC \
15495 CFLAGS \
15496 compiler \
15497 lt_cv_sys_global_symbol_pipe \
15498 lt_cv_sys_global_symbol_to_cdecl \
15499 lt_cv_sys_global_symbol_to_c_name_address \
15500 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15501 lt_prog_compiler_no_builtin_flag \
15502 lt_prog_compiler_wl \
15503 lt_prog_compiler_pic \
15504 lt_prog_compiler_static \
15505 lt_cv_prog_compiler_c_o \
15506 need_locks \
15507 DSYMUTIL \
15508 NMEDIT \
15509 LIPO \
15510 OTOOL \
15511 OTOOL64 \
15512 shrext_cmds \
15513 export_dynamic_flag_spec \
15514 whole_archive_flag_spec \
15515 compiler_needs_object \
15516 with_gnu_ld \
15517 allow_undefined_flag \
15518 no_undefined_flag \
15519 hardcode_libdir_flag_spec \
15520 hardcode_libdir_flag_spec_ld \
15521 hardcode_libdir_separator \
15522 fix_srcfile_path \
15523 exclude_expsyms \
15524 include_expsyms \
15525 file_list_spec \
15526 variables_saved_for_relink \
15527 libname_spec \
15528 library_names_spec \
15529 soname_spec \
15530 install_override_mode \
15531 finish_eval \
15532 old_striplib \
15533 striplib \
15534 compiler_lib_search_dirs \
15535 predep_objects \
15536 postdep_objects \
15537 predeps \
15538 postdeps \
15539 compiler_lib_search_path \
15540 LD_CXX \
15541 reload_flag_CXX \
15542 compiler_CXX \
15543 lt_prog_compiler_no_builtin_flag_CXX \
15544 lt_prog_compiler_wl_CXX \
15545 lt_prog_compiler_pic_CXX \
15546 lt_prog_compiler_static_CXX \
15547 lt_cv_prog_compiler_c_o_CXX \
15548 export_dynamic_flag_spec_CXX \
15549 whole_archive_flag_spec_CXX \
15550 compiler_needs_object_CXX \
15551 with_gnu_ld_CXX \
15552 allow_undefined_flag_CXX \
15553 no_undefined_flag_CXX \
15554 hardcode_libdir_flag_spec_CXX \
15555 hardcode_libdir_flag_spec_ld_CXX \
15556 hardcode_libdir_separator_CXX \
15557 fix_srcfile_path_CXX \
15558 exclude_expsyms_CXX \
15559 include_expsyms_CXX \
15560 file_list_spec_CXX \
15561 compiler_lib_search_dirs_CXX \
15562 predep_objects_CXX \
15563 postdep_objects_CXX \
15564 predeps_CXX \
15565 postdeps_CXX \
15566 compiler_lib_search_path_CXX; do
15567 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15568 *[\\\\\\\`\\"\\\$]*)
15569 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15570 ;;
15571 *)
15572 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15573 ;;
15574 esac
15575 done
15576
15577 # Double-quote double-evaled strings.
15578 for var in reload_cmds \
15579 old_postinstall_cmds \
15580 old_postuninstall_cmds \
15581 old_archive_cmds \
15582 extract_expsyms_cmds \
15583 old_archive_from_new_cmds \
15584 old_archive_from_expsyms_cmds \
15585 archive_cmds \
15586 archive_expsym_cmds \
15587 module_cmds \
15588 module_expsym_cmds \
15589 export_symbols_cmds \
15590 prelink_cmds \
15591 postinstall_cmds \
15592 postuninstall_cmds \
15593 finish_cmds \
15594 sys_lib_search_path_spec \
15595 sys_lib_dlsearch_path_spec \
15596 reload_cmds_CXX \
15597 old_archive_cmds_CXX \
15598 old_archive_from_new_cmds_CXX \
15599 old_archive_from_expsyms_cmds_CXX \
15600 archive_cmds_CXX \
15601 archive_expsym_cmds_CXX \
15602 module_cmds_CXX \
15603 module_expsym_cmds_CXX \
15604 export_symbols_cmds_CXX \
15605 prelink_cmds_CXX; do
15606 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15607 *[\\\\\\\`\\"\\\$]*)
15608 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15609 ;;
15610 *)
15611 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15612 ;;
15613 esac
15614 done
15615
15616 ac_aux_dir='$ac_aux_dir'
15617 xsi_shell='$xsi_shell'
15618 lt_shell_append='$lt_shell_append'
15619
15620 # See if we are running on zsh, and set the options which allow our
15621 # commands through without removal of \ escapes INIT.
15622 if test -n "\${ZSH_VERSION+set}" ; then
15623 setopt NO_GLOB_SUBST
15624 fi
15625
15626
15627 PACKAGE='$PACKAGE'
15628 VERSION='$VERSION'
15629 TIMESTAMP='$TIMESTAMP'
15630 RM='$RM'
15631 ofile='$ofile'
15632
15633
15634
15635
15636
15637
15638 _ACEOF
15639
15640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15641
15642 # Handling of arguments.
15643 for ac_config_target in $ac_config_targets
15644 do
15645 case $ac_config_target in
15646 "cc1plugin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS cc1plugin-config.h" ;;
15647 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15648 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15649 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15650
15651 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15652 esac
15653 done
15654
15655
15656 # If the user did not use the arguments to specify the items to instantiate,
15657 # then the envvar interface is used. Set only those that are not.
15658 # We use the long form for the default assignment because of an extremely
15659 # bizarre bug on SunOS 4.1.3.
15660 if $ac_need_defaults; then
15661 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15662 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15663 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15664 fi
15665
15666 # Have a temporary directory for convenience. Make it in the build tree
15667 # simply because there is no reason against having it here, and in addition,
15668 # creating and moving files from /tmp can sometimes cause problems.
15669 # Hook for its removal unless debugging.
15670 # Note that there is a small window in which the directory will not be cleaned:
15671 # after its creation but before its name has been assigned to `$tmp'.
15672 $debug ||
15673 {
15674 tmp=
15675 trap 'exit_status=$?
15676 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15677 ' 0
15678 trap 'as_fn_exit 1' 1 2 13 15
15679 }
15680 # Create a (secure) tmp directory for tmp files.
15681
15682 {
15683 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15684 test -n "$tmp" && test -d "$tmp"
15685 } ||
15686 {
15687 tmp=./conf$$-$RANDOM
15688 (umask 077 && mkdir "$tmp")
15689 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15690
15691 # Set up the scripts for CONFIG_FILES section.
15692 # No need to generate them if there are no CONFIG_FILES.
15693 # This happens for instance with `./config.status config.h'.
15694 if test -n "$CONFIG_FILES"; then
15695
15696
15697 ac_cr=`echo X | tr X '\015'`
15698 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15699 # But we know of no other shell where ac_cr would be empty at this
15700 # point, so we can use a bashism as a fallback.
15701 if test "x$ac_cr" = x; then
15702 eval ac_cr=\$\'\\r\'
15703 fi
15704 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15705 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15706 ac_cs_awk_cr='\r'
15707 else
15708 ac_cs_awk_cr=$ac_cr
15709 fi
15710
15711 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15712 _ACEOF
15713
15714
15715 {
15716 echo "cat >conf$$subs.awk <<_ACEOF" &&
15717 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15718 echo "_ACEOF"
15719 } >conf$$subs.sh ||
15720 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15721 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15722 ac_delim='%!_!# '
15723 for ac_last_try in false false false false false :; do
15724 . ./conf$$subs.sh ||
15725 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15726
15727 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15728 if test $ac_delim_n = $ac_delim_num; then
15729 break
15730 elif $ac_last_try; then
15731 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15732 else
15733 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15734 fi
15735 done
15736 rm -f conf$$subs.sh
15737
15738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15739 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15740 _ACEOF
15741 sed -n '
15742 h
15743 s/^/S["/; s/!.*/"]=/
15744 p
15745 g
15746 s/^[^!]*!//
15747 :repl
15748 t repl
15749 s/'"$ac_delim"'$//
15750 t delim
15751 :nl
15752 h
15753 s/\(.\{148\}\).*/\1/
15754 t more1
15755 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15756 p
15757 n
15758 b repl
15759 :more1
15760 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15761 p
15762 g
15763 s/.\{148\}//
15764 t nl
15765 :delim
15766 h
15767 s/\(.\{148\}\).*/\1/
15768 t more2
15769 s/["\\]/\\&/g; s/^/"/; s/$/"/
15770 p
15771 b
15772 :more2
15773 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15774 p
15775 g
15776 s/.\{148\}//
15777 t delim
15778 ' <conf$$subs.awk | sed '
15779 /^[^""]/{
15780 N
15781 s/\n//
15782 }
15783 ' >>$CONFIG_STATUS || ac_write_fail=1
15784 rm -f conf$$subs.awk
15785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15786 _ACAWK
15787 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15788 for (key in S) S_is_set[key] = 1
15789 FS = "\a"
15790
15791 }
15792 {
15793 line = $ 0
15794 nfields = split(line, field, "@")
15795 substed = 0
15796 len = length(field[1])
15797 for (i = 2; i < nfields; i++) {
15798 key = field[i]
15799 keylen = length(key)
15800 if (S_is_set[key]) {
15801 value = S[key]
15802 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15803 len += length(value) + length(field[++i])
15804 substed = 1
15805 } else
15806 len += 1 + keylen
15807 }
15808
15809 print line
15810 }
15811
15812 _ACAWK
15813 _ACEOF
15814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15815 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15816 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15817 else
15818 cat
15819 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15820 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15821 _ACEOF
15822
15823 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15824 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15825 # trailing colons and then remove the whole line if VPATH becomes empty
15826 # (actually we leave an empty line to preserve line numbers).
15827 if test "x$srcdir" = x.; then
15828 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15829 s/:*\$(srcdir):*/:/
15830 s/:*\${srcdir}:*/:/
15831 s/:*@srcdir@:*/:/
15832 s/^\([^=]*=[ ]*\):*/\1/
15833 s/:*$//
15834 s/^[^=]*=[ ]*$//
15835 }'
15836 fi
15837
15838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15839 fi # test -n "$CONFIG_FILES"
15840
15841 # Set up the scripts for CONFIG_HEADERS section.
15842 # No need to generate them if there are no CONFIG_HEADERS.
15843 # This happens for instance with `./config.status Makefile'.
15844 if test -n "$CONFIG_HEADERS"; then
15845 cat >"$tmp/defines.awk" <<\_ACAWK ||
15846 BEGIN {
15847 _ACEOF
15848
15849 # Transform confdefs.h into an awk script `defines.awk', embedded as
15850 # here-document in config.status, that substitutes the proper values into
15851 # config.h.in to produce config.h.
15852
15853 # Create a delimiter string that does not exist in confdefs.h, to ease
15854 # handling of long lines.
15855 ac_delim='%!_!# '
15856 for ac_last_try in false false :; do
15857 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15858 if test -z "$ac_t"; then
15859 break
15860 elif $ac_last_try; then
15861 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15862 else
15863 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15864 fi
15865 done
15866
15867 # For the awk script, D is an array of macro values keyed by name,
15868 # likewise P contains macro parameters if any. Preserve backslash
15869 # newline sequences.
15870
15871 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15872 sed -n '
15873 s/.\{148\}/&'"$ac_delim"'/g
15874 t rset
15875 :rset
15876 s/^[ ]*#[ ]*define[ ][ ]*/ /
15877 t def
15878 d
15879 :def
15880 s/\\$//
15881 t bsnl
15882 s/["\\]/\\&/g
15883 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15884 D["\1"]=" \3"/p
15885 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15886 d
15887 :bsnl
15888 s/["\\]/\\&/g
15889 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15890 D["\1"]=" \3\\\\\\n"\\/p
15891 t cont
15892 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15893 t cont
15894 d
15895 :cont
15896 n
15897 s/.\{148\}/&'"$ac_delim"'/g
15898 t clear
15899 :clear
15900 s/\\$//
15901 t bsnlc
15902 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15903 d
15904 :bsnlc
15905 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15906 b cont
15907 ' <confdefs.h | sed '
15908 s/'"$ac_delim"'/"\\\
15909 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15910
15911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15912 for (key in D) D_is_set[key] = 1
15913 FS = "\a"
15914 }
15915 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15916 line = \$ 0
15917 split(line, arg, " ")
15918 if (arg[1] == "#") {
15919 defundef = arg[2]
15920 mac1 = arg[3]
15921 } else {
15922 defundef = substr(arg[1], 2)
15923 mac1 = arg[2]
15924 }
15925 split(mac1, mac2, "(") #)
15926 macro = mac2[1]
15927 prefix = substr(line, 1, index(line, defundef) - 1)
15928 if (D_is_set[macro]) {
15929 # Preserve the white space surrounding the "#".
15930 print prefix "define", macro P[macro] D[macro]
15931 next
15932 } else {
15933 # Replace #undef with comments. This is necessary, for example,
15934 # in the case of _POSIX_SOURCE, which is predefined and required
15935 # on some systems where configure will not decide to define it.
15936 if (defundef == "undef") {
15937 print "/*", prefix defundef, macro, "*/"
15938 next
15939 }
15940 }
15941 }
15942 { print }
15943 _ACAWK
15944 _ACEOF
15945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15946 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15947 fi # test -n "$CONFIG_HEADERS"
15948
15949
15950 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15951 shift
15952 for ac_tag
15953 do
15954 case $ac_tag in
15955 :[FHLC]) ac_mode=$ac_tag; continue;;
15956 esac
15957 case $ac_mode$ac_tag in
15958 :[FHL]*:*);;
15959 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15960 :[FH]-) ac_tag=-:-;;
15961 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15962 esac
15963 ac_save_IFS=$IFS
15964 IFS=:
15965 set x $ac_tag
15966 IFS=$ac_save_IFS
15967 shift
15968 ac_file=$1
15969 shift
15970
15971 case $ac_mode in
15972 :L) ac_source=$1;;
15973 :[FH])
15974 ac_file_inputs=
15975 for ac_f
15976 do
15977 case $ac_f in
15978 -) ac_f="$tmp/stdin";;
15979 *) # Look for the file first in the build tree, then in the source tree
15980 # (if the path is not absolute). The absolute path cannot be DOS-style,
15981 # because $ac_f cannot contain `:'.
15982 test -f "$ac_f" ||
15983 case $ac_f in
15984 [\\/$]*) false;;
15985 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15986 esac ||
15987 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15988 esac
15989 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15990 as_fn_append ac_file_inputs " '$ac_f'"
15991 done
15992
15993 # Let's still pretend it is `configure' which instantiates (i.e., don't
15994 # use $as_me), people would be surprised to read:
15995 # /* config.h. Generated by config.status. */
15996 configure_input='Generated from '`
15997 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15998 `' by configure.'
15999 if test x"$ac_file" != x-; then
16000 configure_input="$ac_file. $configure_input"
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16002 $as_echo "$as_me: creating $ac_file" >&6;}
16003 fi
16004 # Neutralize special characters interpreted by sed in replacement strings.
16005 case $configure_input in #(
16006 *\&* | *\|* | *\\* )
16007 ac_sed_conf_input=`$as_echo "$configure_input" |
16008 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16009 *) ac_sed_conf_input=$configure_input;;
16010 esac
16011
16012 case $ac_tag in
16013 *:-:* | *:-) cat >"$tmp/stdin" \
16014 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16015 esac
16016 ;;
16017 esac
16018
16019 ac_dir=`$as_dirname -- "$ac_file" ||
16020 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16021 X"$ac_file" : 'X\(//\)[^/]' \| \
16022 X"$ac_file" : 'X\(//\)$' \| \
16023 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16024 $as_echo X"$ac_file" |
16025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16026 s//\1/
16027 q
16028 }
16029 /^X\(\/\/\)[^/].*/{
16030 s//\1/
16031 q
16032 }
16033 /^X\(\/\/\)$/{
16034 s//\1/
16035 q
16036 }
16037 /^X\(\/\).*/{
16038 s//\1/
16039 q
16040 }
16041 s/.*/./; q'`
16042 as_dir="$ac_dir"; as_fn_mkdir_p
16043 ac_builddir=.
16044
16045 case "$ac_dir" in
16046 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16047 *)
16048 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16049 # A ".." for each directory in $ac_dir_suffix.
16050 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16051 case $ac_top_builddir_sub in
16052 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16053 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16054 esac ;;
16055 esac
16056 ac_abs_top_builddir=$ac_pwd
16057 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16058 # for backward compatibility:
16059 ac_top_builddir=$ac_top_build_prefix
16060
16061 case $srcdir in
16062 .) # We are building in place.
16063 ac_srcdir=.
16064 ac_top_srcdir=$ac_top_builddir_sub
16065 ac_abs_top_srcdir=$ac_pwd ;;
16066 [\\/]* | ?:[\\/]* ) # Absolute name.
16067 ac_srcdir=$srcdir$ac_dir_suffix;
16068 ac_top_srcdir=$srcdir
16069 ac_abs_top_srcdir=$srcdir ;;
16070 *) # Relative name.
16071 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16072 ac_top_srcdir=$ac_top_build_prefix$srcdir
16073 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16074 esac
16075 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16076
16077
16078 case $ac_mode in
16079 :F)
16080 #
16081 # CONFIG_FILE
16082 #
16083
16084 case $INSTALL in
16085 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16086 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16087 esac
16088 ac_MKDIR_P=$MKDIR_P
16089 case $MKDIR_P in
16090 [\\/$]* | ?:[\\/]* ) ;;
16091 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16092 esac
16093 _ACEOF
16094
16095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16096 # If the template does not know about datarootdir, expand it.
16097 # FIXME: This hack should be removed a few years after 2.60.
16098 ac_datarootdir_hack=; ac_datarootdir_seen=
16099 ac_sed_dataroot='
16100 /datarootdir/ {
16101 p
16102 q
16103 }
16104 /@datadir@/p
16105 /@docdir@/p
16106 /@infodir@/p
16107 /@localedir@/p
16108 /@mandir@/p'
16109 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16110 *datarootdir*) ac_datarootdir_seen=yes;;
16111 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16113 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16114 _ACEOF
16115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16116 ac_datarootdir_hack='
16117 s&@datadir@&$datadir&g
16118 s&@docdir@&$docdir&g
16119 s&@infodir@&$infodir&g
16120 s&@localedir@&$localedir&g
16121 s&@mandir@&$mandir&g
16122 s&\\\${datarootdir}&$datarootdir&g' ;;
16123 esac
16124 _ACEOF
16125
16126 # Neutralize VPATH when `$srcdir' = `.'.
16127 # Shell code in configure.ac might set extrasub.
16128 # FIXME: do we really want to maintain this feature?
16129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16130 ac_sed_extra="$ac_vpsub
16131 $extrasub
16132 _ACEOF
16133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16134 :t
16135 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16136 s|@configure_input@|$ac_sed_conf_input|;t t
16137 s&@top_builddir@&$ac_top_builddir_sub&;t t
16138 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16139 s&@srcdir@&$ac_srcdir&;t t
16140 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16141 s&@top_srcdir@&$ac_top_srcdir&;t t
16142 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16143 s&@builddir@&$ac_builddir&;t t
16144 s&@abs_builddir@&$ac_abs_builddir&;t t
16145 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16146 s&@INSTALL@&$ac_INSTALL&;t t
16147 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16148 $ac_datarootdir_hack
16149 "
16150 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16151 || as_fn_error "could not create $ac_file" "$LINENO" 5
16152
16153 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16154 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16155 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16157 which seems to be undefined. Please make sure it is defined." >&5
16158 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16159 which seems to be undefined. Please make sure it is defined." >&2;}
16160
16161 rm -f "$tmp/stdin"
16162 case $ac_file in
16163 -) cat "$tmp/out" && rm -f "$tmp/out";;
16164 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16165 esac \
16166 || as_fn_error "could not create $ac_file" "$LINENO" 5
16167 ;;
16168 :H)
16169 #
16170 # CONFIG_HEADER
16171 #
16172 if test x"$ac_file" != x-; then
16173 {
16174 $as_echo "/* $configure_input */" \
16175 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16176 } >"$tmp/config.h" \
16177 || as_fn_error "could not create $ac_file" "$LINENO" 5
16178 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16180 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16181 else
16182 rm -f "$ac_file"
16183 mv "$tmp/config.h" "$ac_file" \
16184 || as_fn_error "could not create $ac_file" "$LINENO" 5
16185 fi
16186 else
16187 $as_echo "/* $configure_input */" \
16188 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16189 || as_fn_error "could not create -" "$LINENO" 5
16190 fi
16191 # Compute "$ac_file"'s index in $config_headers.
16192 _am_arg="$ac_file"
16193 _am_stamp_count=1
16194 for _am_header in $config_headers :; do
16195 case $_am_header in
16196 $_am_arg | $_am_arg:* )
16197 break ;;
16198 * )
16199 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16200 esac
16201 done
16202 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16203 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16204 X"$_am_arg" : 'X\(//\)[^/]' \| \
16205 X"$_am_arg" : 'X\(//\)$' \| \
16206 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16207 $as_echo X"$_am_arg" |
16208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16209 s//\1/
16210 q
16211 }
16212 /^X\(\/\/\)[^/].*/{
16213 s//\1/
16214 q
16215 }
16216 /^X\(\/\/\)$/{
16217 s//\1/
16218 q
16219 }
16220 /^X\(\/\).*/{
16221 s//\1/
16222 q
16223 }
16224 s/.*/./; q'`/stamp-h$_am_stamp_count
16225 ;;
16226
16227 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16228 $as_echo "$as_me: executing $ac_file commands" >&6;}
16229 ;;
16230 esac
16231
16232
16233 case $ac_file$ac_mode in
16234 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16235 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16236 # are listed without --file. Let's play safe and only enable the eval
16237 # if we detect the quoting.
16238 case $CONFIG_FILES in
16239 *\'*) eval set x "$CONFIG_FILES" ;;
16240 *) set x $CONFIG_FILES ;;
16241 esac
16242 shift
16243 for mf
16244 do
16245 # Strip MF so we end up with the name of the file.
16246 mf=`echo "$mf" | sed -e 's/:.*$//'`
16247 # Check whether this is an Automake generated Makefile or not.
16248 # We used to match only the files named `Makefile.in', but
16249 # some people rename them; so instead we look at the file content.
16250 # Grep'ing the first line is not enough: some people post-process
16251 # each Makefile.in and add a new line on top of each file to say so.
16252 # Grep'ing the whole file is not good either: AIX grep has a line
16253 # limit of 2048, but all sed's we know have understand at least 4000.
16254 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16255 dirpart=`$as_dirname -- "$mf" ||
16256 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16257 X"$mf" : 'X\(//\)[^/]' \| \
16258 X"$mf" : 'X\(//\)$' \| \
16259 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16260 $as_echo X"$mf" |
16261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16262 s//\1/
16263 q
16264 }
16265 /^X\(\/\/\)[^/].*/{
16266 s//\1/
16267 q
16268 }
16269 /^X\(\/\/\)$/{
16270 s//\1/
16271 q
16272 }
16273 /^X\(\/\).*/{
16274 s//\1/
16275 q
16276 }
16277 s/.*/./; q'`
16278 else
16279 continue
16280 fi
16281 # Extract the definition of DEPDIR, am__include, and am__quote
16282 # from the Makefile without running `make'.
16283 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16284 test -z "$DEPDIR" && continue
16285 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16286 test -z "am__include" && continue
16287 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16288 # When using ansi2knr, U may be empty or an underscore; expand it
16289 U=`sed -n 's/^U = //p' < "$mf"`
16290 # Find all dependency output files, they are included files with
16291 # $(DEPDIR) in their names. We invoke sed twice because it is the
16292 # simplest approach to changing $(DEPDIR) to its actual value in the
16293 # expansion.
16294 for file in `sed -n "
16295 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16296 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16297 # Make sure the directory exists.
16298 test -f "$dirpart/$file" && continue
16299 fdir=`$as_dirname -- "$file" ||
16300 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16301 X"$file" : 'X\(//\)[^/]' \| \
16302 X"$file" : 'X\(//\)$' \| \
16303 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16304 $as_echo X"$file" |
16305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16306 s//\1/
16307 q
16308 }
16309 /^X\(\/\/\)[^/].*/{
16310 s//\1/
16311 q
16312 }
16313 /^X\(\/\/\)$/{
16314 s//\1/
16315 q
16316 }
16317 /^X\(\/\).*/{
16318 s//\1/
16319 q
16320 }
16321 s/.*/./; q'`
16322 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16323 # echo "creating $dirpart/$file"
16324 echo '# dummy' > "$dirpart/$file"
16325 done
16326 done
16327 }
16328 ;;
16329 "libtool":C)
16330
16331 # See if we are running on zsh, and set the options which allow our
16332 # commands through without removal of \ escapes.
16333 if test -n "${ZSH_VERSION+set}" ; then
16334 setopt NO_GLOB_SUBST
16335 fi
16336
16337 cfgfile="${ofile}T"
16338 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16339 $RM "$cfgfile"
16340
16341 cat <<_LT_EOF >> "$cfgfile"
16342 #! $SHELL
16343
16344 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16345 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16346 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16347 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16348 #
16349 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16350 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16351 # Written by Gordon Matzigkeit, 1996
16352 #
16353 # This file is part of GNU Libtool.
16354 #
16355 # GNU Libtool is free software; you can redistribute it and/or
16356 # modify it under the terms of the GNU General Public License as
16357 # published by the Free Software Foundation; either version 2 of
16358 # the License, or (at your option) any later version.
16359 #
16360 # As a special exception to the GNU General Public License,
16361 # if you distribute this file as part of a program or library that
16362 # is built using GNU Libtool, you may include this file under the
16363 # same distribution terms that you use for the rest of that program.
16364 #
16365 # GNU Libtool is distributed in the hope that it will be useful,
16366 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16367 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16368 # GNU General Public License for more details.
16369 #
16370 # You should have received a copy of the GNU General Public License
16371 # along with GNU Libtool; see the file COPYING. If not, a copy
16372 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16373 # obtained by writing to the Free Software Foundation, Inc.,
16374 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16375
16376
16377 # The names of the tagged configurations supported by this script.
16378 available_tags="CXX "
16379
16380 # ### BEGIN LIBTOOL CONFIG
16381
16382 # Which release of libtool.m4 was used?
16383 macro_version=$macro_version
16384 macro_revision=$macro_revision
16385
16386 # Whether or not to build static libraries.
16387 build_old_libs=$enable_static
16388
16389 # Whether or not to build shared libraries.
16390 build_libtool_libs=$enable_shared
16391
16392 # What type of objects to build.
16393 pic_mode=$pic_mode
16394
16395 # Whether or not to optimize for fast installation.
16396 fast_install=$enable_fast_install
16397
16398 # Shell to use when invoking shell scripts.
16399 SHELL=$lt_SHELL
16400
16401 # An echo program that protects backslashes.
16402 ECHO=$lt_ECHO
16403
16404 # The host system.
16405 host_alias=$host_alias
16406 host=$host
16407 host_os=$host_os
16408
16409 # The build system.
16410 build_alias=$build_alias
16411 build=$build
16412 build_os=$build_os
16413
16414 # A sed program that does not truncate output.
16415 SED=$lt_SED
16416
16417 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16418 Xsed="\$SED -e 1s/^X//"
16419
16420 # A grep program that handles long lines.
16421 GREP=$lt_GREP
16422
16423 # An ERE matcher.
16424 EGREP=$lt_EGREP
16425
16426 # A literal string matcher.
16427 FGREP=$lt_FGREP
16428
16429 # A BSD- or MS-compatible name lister.
16430 NM=$lt_NM
16431
16432 # Whether we need soft or hard links.
16433 LN_S=$lt_LN_S
16434
16435 # What is the maximum length of a command?
16436 max_cmd_len=$max_cmd_len
16437
16438 # Object file suffix (normally "o").
16439 objext=$ac_objext
16440
16441 # Executable file suffix (normally "").
16442 exeext=$exeext
16443
16444 # whether the shell understands "unset".
16445 lt_unset=$lt_unset
16446
16447 # turn spaces into newlines.
16448 SP2NL=$lt_lt_SP2NL
16449
16450 # turn newlines into spaces.
16451 NL2SP=$lt_lt_NL2SP
16452
16453 # An object symbol dumper.
16454 OBJDUMP=$lt_OBJDUMP
16455
16456 # Method to check whether dependent libraries are shared objects.
16457 deplibs_check_method=$lt_deplibs_check_method
16458
16459 # Command to use when deplibs_check_method == "file_magic".
16460 file_magic_cmd=$lt_file_magic_cmd
16461
16462 # The archiver.
16463 AR=$lt_AR
16464 AR_FLAGS=$lt_AR_FLAGS
16465
16466 # A symbol stripping program.
16467 STRIP=$lt_STRIP
16468
16469 # Commands used to install an old-style archive.
16470 RANLIB=$lt_RANLIB
16471 old_postinstall_cmds=$lt_old_postinstall_cmds
16472 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16473
16474 # Whether to use a lock for old archive extraction.
16475 lock_old_archive_extraction=$lock_old_archive_extraction
16476
16477 # A C compiler.
16478 LTCC=$lt_CC
16479
16480 # LTCC compiler flags.
16481 LTCFLAGS=$lt_CFLAGS
16482
16483 # Take the output of nm and produce a listing of raw symbols and C names.
16484 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16485
16486 # Transform the output of nm in a proper C declaration.
16487 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16488
16489 # Transform the output of nm in a C name address pair.
16490 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16491
16492 # Transform the output of nm in a C name address pair when lib prefix is needed.
16493 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16494
16495 # The name of the directory that contains temporary libtool files.
16496 objdir=$objdir
16497
16498 # Used to examine libraries when file_magic_cmd begins with "file".
16499 MAGIC_CMD=$MAGIC_CMD
16500
16501 # Must we lock files when doing compilation?
16502 need_locks=$lt_need_locks
16503
16504 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16505 DSYMUTIL=$lt_DSYMUTIL
16506
16507 # Tool to change global to local symbols on Mac OS X.
16508 NMEDIT=$lt_NMEDIT
16509
16510 # Tool to manipulate fat objects and archives on Mac OS X.
16511 LIPO=$lt_LIPO
16512
16513 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16514 OTOOL=$lt_OTOOL
16515
16516 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16517 OTOOL64=$lt_OTOOL64
16518
16519 # Old archive suffix (normally "a").
16520 libext=$libext
16521
16522 # Shared library suffix (normally ".so").
16523 shrext_cmds=$lt_shrext_cmds
16524
16525 # The commands to extract the exported symbol list from a shared archive.
16526 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16527
16528 # Variables whose values should be saved in libtool wrapper scripts and
16529 # restored at link time.
16530 variables_saved_for_relink=$lt_variables_saved_for_relink
16531
16532 # Do we need the "lib" prefix for modules?
16533 need_lib_prefix=$need_lib_prefix
16534
16535 # Do we need a version for libraries?
16536 need_version=$need_version
16537
16538 # Library versioning type.
16539 version_type=$version_type
16540
16541 # Shared library runtime path variable.
16542 runpath_var=$runpath_var
16543
16544 # Shared library path variable.
16545 shlibpath_var=$shlibpath_var
16546
16547 # Is shlibpath searched before the hard-coded library search path?
16548 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16549
16550 # Format of library name prefix.
16551 libname_spec=$lt_libname_spec
16552
16553 # List of archive names. First name is the real one, the rest are links.
16554 # The last name is the one that the linker finds with -lNAME
16555 library_names_spec=$lt_library_names_spec
16556
16557 # The coded name of the library, if different from the real name.
16558 soname_spec=$lt_soname_spec
16559
16560 # Permission mode override for installation of shared libraries.
16561 install_override_mode=$lt_install_override_mode
16562
16563 # Command to use after installation of a shared archive.
16564 postinstall_cmds=$lt_postinstall_cmds
16565
16566 # Command to use after uninstallation of a shared archive.
16567 postuninstall_cmds=$lt_postuninstall_cmds
16568
16569 # Commands used to finish a libtool library installation in a directory.
16570 finish_cmds=$lt_finish_cmds
16571
16572 # As "finish_cmds", except a single script fragment to be evaled but
16573 # not shown.
16574 finish_eval=$lt_finish_eval
16575
16576 # Whether we should hardcode library paths into libraries.
16577 hardcode_into_libs=$hardcode_into_libs
16578
16579 # Compile-time system search path for libraries.
16580 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16581
16582 # Run-time system search path for libraries.
16583 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16584
16585 # Whether dlopen is supported.
16586 dlopen_support=$enable_dlopen
16587
16588 # Whether dlopen of programs is supported.
16589 dlopen_self=$enable_dlopen_self
16590
16591 # Whether dlopen of statically linked programs is supported.
16592 dlopen_self_static=$enable_dlopen_self_static
16593
16594 # Commands to strip libraries.
16595 old_striplib=$lt_old_striplib
16596 striplib=$lt_striplib
16597
16598
16599 # The linker used to build libraries.
16600 LD=$lt_LD
16601
16602 # How to create reloadable object files.
16603 reload_flag=$lt_reload_flag
16604 reload_cmds=$lt_reload_cmds
16605
16606 # Commands used to build an old-style archive.
16607 old_archive_cmds=$lt_old_archive_cmds
16608
16609 # A language specific compiler.
16610 CC=$lt_compiler
16611
16612 # Is the compiler the GNU compiler?
16613 with_gcc=$GCC
16614
16615 # Compiler flag to turn off builtin functions.
16616 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16617
16618 # How to pass a linker flag through the compiler.
16619 wl=$lt_lt_prog_compiler_wl
16620
16621 # Additional compiler flags for building library objects.
16622 pic_flag=$lt_lt_prog_compiler_pic
16623
16624 # Compiler flag to prevent dynamic linking.
16625 link_static_flag=$lt_lt_prog_compiler_static
16626
16627 # Does compiler simultaneously support -c and -o options?
16628 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16629
16630 # Whether or not to add -lc for building shared libraries.
16631 build_libtool_need_lc=$archive_cmds_need_lc
16632
16633 # Whether or not to disallow shared libs when runtime libs are static.
16634 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16635
16636 # Compiler flag to allow reflexive dlopens.
16637 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16638
16639 # Compiler flag to generate shared objects directly from archives.
16640 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16641
16642 # Whether the compiler copes with passing no objects directly.
16643 compiler_needs_object=$lt_compiler_needs_object
16644
16645 # Create an old-style archive from a shared archive.
16646 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16647
16648 # Create a temporary old-style archive to link instead of a shared archive.
16649 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16650
16651 # Commands used to build a shared archive.
16652 archive_cmds=$lt_archive_cmds
16653 archive_expsym_cmds=$lt_archive_expsym_cmds
16654
16655 # Commands used to build a loadable module if different from building
16656 # a shared archive.
16657 module_cmds=$lt_module_cmds
16658 module_expsym_cmds=$lt_module_expsym_cmds
16659
16660 # Whether we are building with GNU ld or not.
16661 with_gnu_ld=$lt_with_gnu_ld
16662
16663 # Flag that allows shared libraries with undefined symbols to be built.
16664 allow_undefined_flag=$lt_allow_undefined_flag
16665
16666 # Flag that enforces no undefined symbols.
16667 no_undefined_flag=$lt_no_undefined_flag
16668
16669 # Flag to hardcode \$libdir into a binary during linking.
16670 # This must work even if \$libdir does not exist
16671 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16672
16673 # If ld is used when linking, flag to hardcode \$libdir into a binary
16674 # during linking. This must work even if \$libdir does not exist.
16675 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16676
16677 # Whether we need a single "-rpath" flag with a separated argument.
16678 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16679
16680 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16681 # DIR into the resulting binary.
16682 hardcode_direct=$hardcode_direct
16683
16684 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16685 # DIR into the resulting binary and the resulting library dependency is
16686 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16687 # library is relocated.
16688 hardcode_direct_absolute=$hardcode_direct_absolute
16689
16690 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16691 # into the resulting binary.
16692 hardcode_minus_L=$hardcode_minus_L
16693
16694 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16695 # into the resulting binary.
16696 hardcode_shlibpath_var=$hardcode_shlibpath_var
16697
16698 # Set to "yes" if building a shared library automatically hardcodes DIR
16699 # into the library and all subsequent libraries and executables linked
16700 # against it.
16701 hardcode_automatic=$hardcode_automatic
16702
16703 # Set to yes if linker adds runtime paths of dependent libraries
16704 # to runtime path list.
16705 inherit_rpath=$inherit_rpath
16706
16707 # Whether libtool must link a program against all its dependency libraries.
16708 link_all_deplibs=$link_all_deplibs
16709
16710 # Fix the shell variable \$srcfile for the compiler.
16711 fix_srcfile_path=$lt_fix_srcfile_path
16712
16713 # Set to "yes" if exported symbols are required.
16714 always_export_symbols=$always_export_symbols
16715
16716 # The commands to list exported symbols.
16717 export_symbols_cmds=$lt_export_symbols_cmds
16718
16719 # Symbols that should not be listed in the preloaded symbols.
16720 exclude_expsyms=$lt_exclude_expsyms
16721
16722 # Symbols that must always be exported.
16723 include_expsyms=$lt_include_expsyms
16724
16725 # Commands necessary for linking programs (against libraries) with templates.
16726 prelink_cmds=$lt_prelink_cmds
16727
16728 # Specify filename containing input files.
16729 file_list_spec=$lt_file_list_spec
16730
16731 # How to hardcode a shared library path into an executable.
16732 hardcode_action=$hardcode_action
16733
16734 # The directories searched by this compiler when creating a shared library.
16735 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16736
16737 # Dependencies to place before and after the objects being linked to
16738 # create a shared library.
16739 predep_objects=$lt_predep_objects
16740 postdep_objects=$lt_postdep_objects
16741 predeps=$lt_predeps
16742 postdeps=$lt_postdeps
16743
16744 # The library search path used internally by the compiler when linking
16745 # a shared library.
16746 compiler_lib_search_path=$lt_compiler_lib_search_path
16747
16748 # ### END LIBTOOL CONFIG
16749
16750 _LT_EOF
16751
16752 case $host_os in
16753 aix3*)
16754 cat <<\_LT_EOF >> "$cfgfile"
16755 # AIX sometimes has problems with the GCC collect2 program. For some
16756 # reason, if we set the COLLECT_NAMES environment variable, the problems
16757 # vanish in a puff of smoke.
16758 if test "X${COLLECT_NAMES+set}" != Xset; then
16759 COLLECT_NAMES=
16760 export COLLECT_NAMES
16761 fi
16762 _LT_EOF
16763 ;;
16764 esac
16765
16766
16767 ltmain="$ac_aux_dir/ltmain.sh"
16768
16769
16770 # We use sed instead of cat because bash on DJGPP gets confused if
16771 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16772 # text mode, it properly converts lines to CR/LF. This bash problem
16773 # is reportedly fixed, but why not run on old versions too?
16774 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16775 || (rm -f "$cfgfile"; exit 1)
16776
16777 case $xsi_shell in
16778 yes)
16779 cat << \_LT_EOF >> "$cfgfile"
16780
16781 # func_dirname file append nondir_replacement
16782 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16783 # otherwise set result to NONDIR_REPLACEMENT.
16784 func_dirname ()
16785 {
16786 case ${1} in
16787 */*) func_dirname_result="${1%/*}${2}" ;;
16788 * ) func_dirname_result="${3}" ;;
16789 esac
16790 }
16791
16792 # func_basename file
16793 func_basename ()
16794 {
16795 func_basename_result="${1##*/}"
16796 }
16797
16798 # func_dirname_and_basename file append nondir_replacement
16799 # perform func_basename and func_dirname in a single function
16800 # call:
16801 # dirname: Compute the dirname of FILE. If nonempty,
16802 # add APPEND to the result, otherwise set result
16803 # to NONDIR_REPLACEMENT.
16804 # value returned in "$func_dirname_result"
16805 # basename: Compute filename of FILE.
16806 # value retuned in "$func_basename_result"
16807 # Implementation must be kept synchronized with func_dirname
16808 # and func_basename. For efficiency, we do not delegate to
16809 # those functions but instead duplicate the functionality here.
16810 func_dirname_and_basename ()
16811 {
16812 case ${1} in
16813 */*) func_dirname_result="${1%/*}${2}" ;;
16814 * ) func_dirname_result="${3}" ;;
16815 esac
16816 func_basename_result="${1##*/}"
16817 }
16818
16819 # func_stripname prefix suffix name
16820 # strip PREFIX and SUFFIX off of NAME.
16821 # PREFIX and SUFFIX must not contain globbing or regex special
16822 # characters, hashes, percent signs, but SUFFIX may contain a leading
16823 # dot (in which case that matches only a dot).
16824 func_stripname ()
16825 {
16826 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16827 # positional parameters, so assign one to ordinary parameter first.
16828 func_stripname_result=${3}
16829 func_stripname_result=${func_stripname_result#"${1}"}
16830 func_stripname_result=${func_stripname_result%"${2}"}
16831 }
16832
16833 # func_opt_split
16834 func_opt_split ()
16835 {
16836 func_opt_split_opt=${1%%=*}
16837 func_opt_split_arg=${1#*=}
16838 }
16839
16840 # func_lo2o object
16841 func_lo2o ()
16842 {
16843 case ${1} in
16844 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16845 *) func_lo2o_result=${1} ;;
16846 esac
16847 }
16848
16849 # func_xform libobj-or-source
16850 func_xform ()
16851 {
16852 func_xform_result=${1%.*}.lo
16853 }
16854
16855 # func_arith arithmetic-term...
16856 func_arith ()
16857 {
16858 func_arith_result=$(( $* ))
16859 }
16860
16861 # func_len string
16862 # STRING may not start with a hyphen.
16863 func_len ()
16864 {
16865 func_len_result=${#1}
16866 }
16867
16868 _LT_EOF
16869 ;;
16870 *) # Bourne compatible functions.
16871 cat << \_LT_EOF >> "$cfgfile"
16872
16873 # func_dirname file append nondir_replacement
16874 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16875 # otherwise set result to NONDIR_REPLACEMENT.
16876 func_dirname ()
16877 {
16878 # Extract subdirectory from the argument.
16879 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16880 if test "X$func_dirname_result" = "X${1}"; then
16881 func_dirname_result="${3}"
16882 else
16883 func_dirname_result="$func_dirname_result${2}"
16884 fi
16885 }
16886
16887 # func_basename file
16888 func_basename ()
16889 {
16890 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16891 }
16892
16893
16894 # func_stripname prefix suffix name
16895 # strip PREFIX and SUFFIX off of NAME.
16896 # PREFIX and SUFFIX must not contain globbing or regex special
16897 # characters, hashes, percent signs, but SUFFIX may contain a leading
16898 # dot (in which case that matches only a dot).
16899 # func_strip_suffix prefix name
16900 func_stripname ()
16901 {
16902 case ${2} in
16903 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16904 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16905 esac
16906 }
16907
16908 # sed scripts:
16909 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16910 my_sed_long_arg='1s/^-[^=]*=//'
16911
16912 # func_opt_split
16913 func_opt_split ()
16914 {
16915 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16916 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16917 }
16918
16919 # func_lo2o object
16920 func_lo2o ()
16921 {
16922 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16923 }
16924
16925 # func_xform libobj-or-source
16926 func_xform ()
16927 {
16928 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16929 }
16930
16931 # func_arith arithmetic-term...
16932 func_arith ()
16933 {
16934 func_arith_result=`expr "$@"`
16935 }
16936
16937 # func_len string
16938 # STRING may not start with a hyphen.
16939 func_len ()
16940 {
16941 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16942 }
16943
16944 _LT_EOF
16945 esac
16946
16947 case $lt_shell_append in
16948 yes)
16949 cat << \_LT_EOF >> "$cfgfile"
16950
16951 # func_append var value
16952 # Append VALUE to the end of shell variable VAR.
16953 func_append ()
16954 {
16955 eval "$1+=\$2"
16956 }
16957 _LT_EOF
16958 ;;
16959 *)
16960 cat << \_LT_EOF >> "$cfgfile"
16961
16962 # func_append var value
16963 # Append VALUE to the end of shell variable VAR.
16964 func_append ()
16965 {
16966 eval "$1=\$$1\$2"
16967 }
16968
16969 _LT_EOF
16970 ;;
16971 esac
16972
16973
16974 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16975 || (rm -f "$cfgfile"; exit 1)
16976
16977 mv -f "$cfgfile" "$ofile" ||
16978 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16979 chmod +x "$ofile"
16980
16981
16982 cat <<_LT_EOF >> "$ofile"
16983
16984 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16985
16986 # The linker used to build libraries.
16987 LD=$lt_LD_CXX
16988
16989 # How to create reloadable object files.
16990 reload_flag=$lt_reload_flag_CXX
16991 reload_cmds=$lt_reload_cmds_CXX
16992
16993 # Commands used to build an old-style archive.
16994 old_archive_cmds=$lt_old_archive_cmds_CXX
16995
16996 # A language specific compiler.
16997 CC=$lt_compiler_CXX
16998
16999 # Is the compiler the GNU compiler?
17000 with_gcc=$GCC_CXX
17001
17002 # Compiler flag to turn off builtin functions.
17003 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17004
17005 # How to pass a linker flag through the compiler.
17006 wl=$lt_lt_prog_compiler_wl_CXX
17007
17008 # Additional compiler flags for building library objects.
17009 pic_flag=$lt_lt_prog_compiler_pic_CXX
17010
17011 # Compiler flag to prevent dynamic linking.
17012 link_static_flag=$lt_lt_prog_compiler_static_CXX
17013
17014 # Does compiler simultaneously support -c and -o options?
17015 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17016
17017 # Whether or not to add -lc for building shared libraries.
17018 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17019
17020 # Whether or not to disallow shared libs when runtime libs are static.
17021 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17022
17023 # Compiler flag to allow reflexive dlopens.
17024 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17025
17026 # Compiler flag to generate shared objects directly from archives.
17027 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17028
17029 # Whether the compiler copes with passing no objects directly.
17030 compiler_needs_object=$lt_compiler_needs_object_CXX
17031
17032 # Create an old-style archive from a shared archive.
17033 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17034
17035 # Create a temporary old-style archive to link instead of a shared archive.
17036 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17037
17038 # Commands used to build a shared archive.
17039 archive_cmds=$lt_archive_cmds_CXX
17040 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17041
17042 # Commands used to build a loadable module if different from building
17043 # a shared archive.
17044 module_cmds=$lt_module_cmds_CXX
17045 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17046
17047 # Whether we are building with GNU ld or not.
17048 with_gnu_ld=$lt_with_gnu_ld_CXX
17049
17050 # Flag that allows shared libraries with undefined symbols to be built.
17051 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17052
17053 # Flag that enforces no undefined symbols.
17054 no_undefined_flag=$lt_no_undefined_flag_CXX
17055
17056 # Flag to hardcode \$libdir into a binary during linking.
17057 # This must work even if \$libdir does not exist
17058 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17059
17060 # If ld is used when linking, flag to hardcode \$libdir into a binary
17061 # during linking. This must work even if \$libdir does not exist.
17062 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17063
17064 # Whether we need a single "-rpath" flag with a separated argument.
17065 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17066
17067 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17068 # DIR into the resulting binary.
17069 hardcode_direct=$hardcode_direct_CXX
17070
17071 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17072 # DIR into the resulting binary and the resulting library dependency is
17073 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17074 # library is relocated.
17075 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17076
17077 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17078 # into the resulting binary.
17079 hardcode_minus_L=$hardcode_minus_L_CXX
17080
17081 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17082 # into the resulting binary.
17083 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17084
17085 # Set to "yes" if building a shared library automatically hardcodes DIR
17086 # into the library and all subsequent libraries and executables linked
17087 # against it.
17088 hardcode_automatic=$hardcode_automatic_CXX
17089
17090 # Set to yes if linker adds runtime paths of dependent libraries
17091 # to runtime path list.
17092 inherit_rpath=$inherit_rpath_CXX
17093
17094 # Whether libtool must link a program against all its dependency libraries.
17095 link_all_deplibs=$link_all_deplibs_CXX
17096
17097 # Fix the shell variable \$srcfile for the compiler.
17098 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17099
17100 # Set to "yes" if exported symbols are required.
17101 always_export_symbols=$always_export_symbols_CXX
17102
17103 # The commands to list exported symbols.
17104 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17105
17106 # Symbols that should not be listed in the preloaded symbols.
17107 exclude_expsyms=$lt_exclude_expsyms_CXX
17108
17109 # Symbols that must always be exported.
17110 include_expsyms=$lt_include_expsyms_CXX
17111
17112 # Commands necessary for linking programs (against libraries) with templates.
17113 prelink_cmds=$lt_prelink_cmds_CXX
17114
17115 # Specify filename containing input files.
17116 file_list_spec=$lt_file_list_spec_CXX
17117
17118 # How to hardcode a shared library path into an executable.
17119 hardcode_action=$hardcode_action_CXX
17120
17121 # The directories searched by this compiler when creating a shared library.
17122 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17123
17124 # Dependencies to place before and after the objects being linked to
17125 # create a shared library.
17126 predep_objects=$lt_predep_objects_CXX
17127 postdep_objects=$lt_postdep_objects_CXX
17128 predeps=$lt_predeps_CXX
17129 postdeps=$lt_postdeps_CXX
17130
17131 # The library search path used internally by the compiler when linking
17132 # a shared library.
17133 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17134
17135 # ### END LIBTOOL TAG CONFIG: CXX
17136 _LT_EOF
17137
17138 ;;
17139
17140 esac
17141 done # for ac_tag
17142
17143
17144 as_fn_exit 0
17145 _ACEOF
17146 ac_clean_files=$ac_clean_files_save
17147
17148 test $ac_write_fail = 0 ||
17149 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17150
17151
17152 # configure is writing to config.log, and then calls config.status.
17153 # config.status does its own redirection, appending to config.log.
17154 # Unfortunately, on DOS this fails, as config.log is still kept open
17155 # by configure, so config.status won't be able to write to it; its
17156 # output is simply discarded. So we exec the FD to /dev/null,
17157 # effectively closing config.log, so it can be properly (re)opened and
17158 # appended to by config.status. When coming back to configure, we
17159 # need to make the FD available again.
17160 if test "$no_create" != yes; then
17161 ac_cs_success=:
17162 ac_config_status_args=
17163 test "$silent" = yes &&
17164 ac_config_status_args="$ac_config_status_args --quiet"
17165 exec 5>/dev/null
17166 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17167 exec 5>>config.log
17168 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17169 # would make configure fail if this is the last instruction.
17170 $ac_cs_success || as_fn_exit $?
17171 fi
17172 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17174 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17175 fi
17176