]> git.ipfire.org Git - thirdparty/gcc.git/blob - libcc1/configure
* configure.ac: Remove -Werror addition to WARN_FLAGS. Add
[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 GMPINC
609 WERROR
610 WARN_FLAGS
611 gcc_version
612 visibility
613 CXXCPP
614 am__fastdepCXX_FALSE
615 am__fastdepCXX_TRUE
616 CXXDEPMODE
617 ac_ct_CXX
618 CXXFLAGS
619 CXX
620 OTOOL64
621 OTOOL
622 LIPO
623 NMEDIT
624 DSYMUTIL
625 RANLIB
626 AR
627 OBJDUMP
628 LN_S
629 NM
630 ac_ct_DUMPBIN
631 DUMPBIN
632 LD
633 FGREP
634 SED
635 LIBTOOL
636 MAINT
637 MAINTAINER_MODE_FALSE
638 MAINTAINER_MODE_TRUE
639 am__fastdepCC_FALSE
640 am__fastdepCC_TRUE
641 CCDEPMODE
642 AMDEPBACKSLASH
643 AMDEP_FALSE
644 AMDEP_TRUE
645 am__quote
646 am__include
647 DEPDIR
648 am__untar
649 am__tar
650 AMTAR
651 am__leading_dot
652 SET_MAKE
653 AWK
654 mkdir_p
655 MKDIR_P
656 INSTALL_STRIP_PROGRAM
657 STRIP
658 install_sh
659 MAKEINFO
660 AUTOHEADER
661 AUTOMAKE
662 AUTOCONF
663 ACLOCAL
664 VERSION
665 PACKAGE
666 CYGPATH_W
667 am__isrc
668 INSTALL_DATA
669 INSTALL_SCRIPT
670 INSTALL_PROGRAM
671 target_subdir
672 host_subdir
673 build_subdir
674 build_libsubdir
675 target_noncanonical
676 EGREP
677 GREP
678 CPP
679 OBJEXT
680 EXEEXT
681 ac_ct_CC
682 CPPFLAGS
683 LDFLAGS
684 CFLAGS
685 CC
686 target_os
687 target_vendor
688 target_cpu
689 target
690 host_os
691 host_vendor
692 host_cpu
693 host
694 build_os
695 build_vendor
696 build_cpu
697 build
698 target_alias
699 host_alias
700 build_alias
701 LIBS
702 ECHO_T
703 ECHO_N
704 ECHO_C
705 DEFS
706 mandir
707 localedir
708 libdir
709 psdir
710 pdfdir
711 dvidir
712 htmldir
713 infodir
714 docdir
715 oldincludedir
716 includedir
717 localstatedir
718 sharedstatedir
719 sysconfdir
720 datadir
721 datarootdir
722 libexecdir
723 sbindir
724 bindir
725 program_transform_name
726 prefix
727 exec_prefix
728 PACKAGE_URL
729 PACKAGE_BUGREPORT
730 PACKAGE_STRING
731 PACKAGE_VERSION
732 PACKAGE_TARNAME
733 PACKAGE_NAME
734 PATH_SEPARATOR
735 SHELL'
736 ac_subst_files=''
737 ac_user_opts='
738 enable_option_checking
739 with_build_libsubdir
740 enable_dependency_tracking
741 enable_maintainer_mode
742 enable_static
743 enable_shared
744 with_pic
745 enable_fast_install
746 with_gnu_ld
747 enable_libtool_lock
748 enable_werror_always
749 enable_plugin
750 '
751 ac_precious_vars='build_alias
752 host_alias
753 target_alias
754 CC
755 CFLAGS
756 LDFLAGS
757 LIBS
758 CPPFLAGS
759 CPP
760 CXX
761 CXXFLAGS
762 CCC
763 CXXCPP
764 GMPINC'
765
766
767 # Initialize some variables set by options.
768 ac_init_help=
769 ac_init_version=false
770 ac_unrecognized_opts=
771 ac_unrecognized_sep=
772 # The variables have the same names as the options, with
773 # dashes changed to underlines.
774 cache_file=/dev/null
775 exec_prefix=NONE
776 no_create=
777 no_recursion=
778 prefix=NONE
779 program_prefix=NONE
780 program_suffix=NONE
781 program_transform_name=s,x,x,
782 silent=
783 site=
784 srcdir=
785 verbose=
786 x_includes=NONE
787 x_libraries=NONE
788
789 # Installation directory options.
790 # These are left unexpanded so users can "make install exec_prefix=/foo"
791 # and all the variables that are supposed to be based on exec_prefix
792 # by default will actually change.
793 # Use braces instead of parens because sh, perl, etc. also accept them.
794 # (The list follows the same order as the GNU Coding Standards.)
795 bindir='${exec_prefix}/bin'
796 sbindir='${exec_prefix}/sbin'
797 libexecdir='${exec_prefix}/libexec'
798 datarootdir='${prefix}/share'
799 datadir='${datarootdir}'
800 sysconfdir='${prefix}/etc'
801 sharedstatedir='${prefix}/com'
802 localstatedir='${prefix}/var'
803 includedir='${prefix}/include'
804 oldincludedir='/usr/include'
805 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
806 infodir='${datarootdir}/info'
807 htmldir='${docdir}'
808 dvidir='${docdir}'
809 pdfdir='${docdir}'
810 psdir='${docdir}'
811 libdir='${exec_prefix}/lib'
812 localedir='${datarootdir}/locale'
813 mandir='${datarootdir}/man'
814
815 ac_prev=
816 ac_dashdash=
817 for ac_option
818 do
819 # If the previous option needs an argument, assign it.
820 if test -n "$ac_prev"; then
821 eval $ac_prev=\$ac_option
822 ac_prev=
823 continue
824 fi
825
826 case $ac_option in
827 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
828 *) ac_optarg=yes ;;
829 esac
830
831 # Accept the important Cygnus configure options, so we can diagnose typos.
832
833 case $ac_dashdash$ac_option in
834 --)
835 ac_dashdash=yes ;;
836
837 -bindir | --bindir | --bindi | --bind | --bin | --bi)
838 ac_prev=bindir ;;
839 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840 bindir=$ac_optarg ;;
841
842 -build | --build | --buil | --bui | --bu)
843 ac_prev=build_alias ;;
844 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845 build_alias=$ac_optarg ;;
846
847 -cache-file | --cache-file | --cache-fil | --cache-fi \
848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849 ac_prev=cache_file ;;
850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852 cache_file=$ac_optarg ;;
853
854 --config-cache | -C)
855 cache_file=config.cache ;;
856
857 -datadir | --datadir | --datadi | --datad)
858 ac_prev=datadir ;;
859 -datadir=* | --datadir=* | --datadi=* | --datad=*)
860 datadir=$ac_optarg ;;
861
862 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863 | --dataroo | --dataro | --datar)
864 ac_prev=datarootdir ;;
865 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867 datarootdir=$ac_optarg ;;
868
869 -disable-* | --disable-*)
870 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873 as_fn_error "invalid feature name: $ac_useropt"
874 ac_useropt_orig=$ac_useropt
875 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876 case $ac_user_opts in
877 *"
878 "enable_$ac_useropt"
879 "*) ;;
880 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
881 ac_unrecognized_sep=', ';;
882 esac
883 eval enable_$ac_useropt=no ;;
884
885 -docdir | --docdir | --docdi | --doc | --do)
886 ac_prev=docdir ;;
887 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
888 docdir=$ac_optarg ;;
889
890 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
891 ac_prev=dvidir ;;
892 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
893 dvidir=$ac_optarg ;;
894
895 -enable-* | --enable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=\$ac_optarg ;;
910
911 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913 | --exec | --exe | --ex)
914 ac_prev=exec_prefix ;;
915 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917 | --exec=* | --exe=* | --ex=*)
918 exec_prefix=$ac_optarg ;;
919
920 -gas | --gas | --ga | --g)
921 # Obsolete; use --with-gas.
922 with_gas=yes ;;
923
924 -help | --help | --hel | --he | -h)
925 ac_init_help=long ;;
926 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927 ac_init_help=recursive ;;
928 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929 ac_init_help=short ;;
930
931 -host | --host | --hos | --ho)
932 ac_prev=host_alias ;;
933 -host=* | --host=* | --hos=* | --ho=*)
934 host_alias=$ac_optarg ;;
935
936 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
937 ac_prev=htmldir ;;
938 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
939 | --ht=*)
940 htmldir=$ac_optarg ;;
941
942 -includedir | --includedir | --includedi | --included | --include \
943 | --includ | --inclu | --incl | --inc)
944 ac_prev=includedir ;;
945 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946 | --includ=* | --inclu=* | --incl=* | --inc=*)
947 includedir=$ac_optarg ;;
948
949 -infodir | --infodir | --infodi | --infod | --info | --inf)
950 ac_prev=infodir ;;
951 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
952 infodir=$ac_optarg ;;
953
954 -libdir | --libdir | --libdi | --libd)
955 ac_prev=libdir ;;
956 -libdir=* | --libdir=* | --libdi=* | --libd=*)
957 libdir=$ac_optarg ;;
958
959 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960 | --libexe | --libex | --libe)
961 ac_prev=libexecdir ;;
962 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963 | --libexe=* | --libex=* | --libe=*)
964 libexecdir=$ac_optarg ;;
965
966 -localedir | --localedir | --localedi | --localed | --locale)
967 ac_prev=localedir ;;
968 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969 localedir=$ac_optarg ;;
970
971 -localstatedir | --localstatedir | --localstatedi | --localstated \
972 | --localstate | --localstat | --localsta | --localst | --locals)
973 ac_prev=localstatedir ;;
974 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
975 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
976 localstatedir=$ac_optarg ;;
977
978 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
979 ac_prev=mandir ;;
980 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981 mandir=$ac_optarg ;;
982
983 -nfp | --nfp | --nf)
984 # Obsolete; use --without-fp.
985 with_fp=no ;;
986
987 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988 | --no-cr | --no-c | -n)
989 no_create=yes ;;
990
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993 no_recursion=yes ;;
994
995 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997 | --oldin | --oldi | --old | --ol | --o)
998 ac_prev=oldincludedir ;;
999 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1002 oldincludedir=$ac_optarg ;;
1003
1004 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1005 ac_prev=prefix ;;
1006 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1007 prefix=$ac_optarg ;;
1008
1009 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010 | --program-pre | --program-pr | --program-p)
1011 ac_prev=program_prefix ;;
1012 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1014 program_prefix=$ac_optarg ;;
1015
1016 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017 | --program-suf | --program-su | --program-s)
1018 ac_prev=program_suffix ;;
1019 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1021 program_suffix=$ac_optarg ;;
1022
1023 -program-transform-name | --program-transform-name \
1024 | --program-transform-nam | --program-transform-na \
1025 | --program-transform-n | --program-transform- \
1026 | --program-transform | --program-transfor \
1027 | --program-transfo | --program-transf \
1028 | --program-trans | --program-tran \
1029 | --progr-tra | --program-tr | --program-t)
1030 ac_prev=program_transform_name ;;
1031 -program-transform-name=* | --program-transform-name=* \
1032 | --program-transform-nam=* | --program-transform-na=* \
1033 | --program-transform-n=* | --program-transform-=* \
1034 | --program-transform=* | --program-transfor=* \
1035 | --program-transfo=* | --program-transf=* \
1036 | --program-trans=* | --program-tran=* \
1037 | --progr-tra=* | --program-tr=* | --program-t=*)
1038 program_transform_name=$ac_optarg ;;
1039
1040 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1041 ac_prev=pdfdir ;;
1042 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043 pdfdir=$ac_optarg ;;
1044
1045 -psdir | --psdir | --psdi | --psd | --ps)
1046 ac_prev=psdir ;;
1047 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048 psdir=$ac_optarg ;;
1049
1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051 | -silent | --silent | --silen | --sile | --sil)
1052 silent=yes ;;
1053
1054 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1055 ac_prev=sbindir ;;
1056 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1057 | --sbi=* | --sb=*)
1058 sbindir=$ac_optarg ;;
1059
1060 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062 | --sharedst | --shareds | --shared | --share | --shar \
1063 | --sha | --sh)
1064 ac_prev=sharedstatedir ;;
1065 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1068 | --sha=* | --sh=*)
1069 sharedstatedir=$ac_optarg ;;
1070
1071 -site | --site | --sit)
1072 ac_prev=site ;;
1073 -site=* | --site=* | --sit=*)
1074 site=$ac_optarg ;;
1075
1076 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1077 ac_prev=srcdir ;;
1078 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1079 srcdir=$ac_optarg ;;
1080
1081 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082 | --syscon | --sysco | --sysc | --sys | --sy)
1083 ac_prev=sysconfdir ;;
1084 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1086 sysconfdir=$ac_optarg ;;
1087
1088 -target | --target | --targe | --targ | --tar | --ta | --t)
1089 ac_prev=target_alias ;;
1090 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1091 target_alias=$ac_optarg ;;
1092
1093 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094 verbose=yes ;;
1095
1096 -version | --version | --versio | --versi | --vers | -V)
1097 ac_init_version=: ;;
1098
1099 -with-* | --with-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error "invalid package name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "with_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=\$ac_optarg ;;
1114
1115 -without-* | --without-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1123 *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=no ;;
1130
1131 --x)
1132 # Obsolete; use --with-x.
1133 with_x=yes ;;
1134
1135 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136 | --x-incl | --x-inc | --x-in | --x-i)
1137 ac_prev=x_includes ;;
1138 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140 x_includes=$ac_optarg ;;
1141
1142 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144 ac_prev=x_libraries ;;
1145 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147 x_libraries=$ac_optarg ;;
1148
1149 -*) as_fn_error "unrecognized option: \`$ac_option'
1150 Try \`$0 --help' for more information."
1151 ;;
1152
1153 *=*)
1154 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155 # Reject names that are not valid shell variable names.
1156 case $ac_envvar in #(
1157 '' | [0-9]* | *[!_$as_cr_alnum]* )
1158 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1159 esac
1160 eval $ac_envvar=\$ac_optarg
1161 export $ac_envvar ;;
1162
1163 *)
1164 # FIXME: should be removed in autoconf 3.0.
1165 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1169 ;;
1170
1171 esac
1172 done
1173
1174 if test -n "$ac_prev"; then
1175 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176 as_fn_error "missing argument to $ac_option"
1177 fi
1178
1179 if test -n "$ac_unrecognized_opts"; then
1180 case $enable_option_checking in
1181 no) ;;
1182 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1183 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1184 esac
1185 fi
1186
1187 # Check all directory arguments for consistency.
1188 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
1192 do
1193 eval ac_val=\$$ac_var
1194 # Remove trailing slashes.
1195 case $ac_val in
1196 */ )
1197 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1198 eval $ac_var=\$ac_val;;
1199 esac
1200 # Be sure to have absolute directory names.
1201 case $ac_val in
1202 [\\/$]* | ?:[\\/]* ) continue;;
1203 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1204 esac
1205 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1206 done
1207
1208 # There might be people who depend on the old broken behavior: `$host'
1209 # used to hold the argument of --host etc.
1210 # FIXME: To remove some day.
1211 build=$build_alias
1212 host=$host_alias
1213 target=$target_alias
1214
1215 # FIXME: To remove some day.
1216 if test "x$host_alias" != x; then
1217 if test "x$build_alias" = x; then
1218 cross_compiling=maybe
1219 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1220 If a cross compiler is detected then cross compile mode will be used." >&2
1221 elif test "x$build_alias" != "x$host_alias"; then
1222 cross_compiling=yes
1223 fi
1224 fi
1225
1226 ac_tool_prefix=
1227 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1228
1229 test "$silent" = yes && exec 6>/dev/null
1230
1231
1232 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1233 ac_ls_di=`ls -di .` &&
1234 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1235 as_fn_error "working directory cannot be determined"
1236 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1237 as_fn_error "pwd does not report name of working directory"
1238
1239
1240 # Find the source files, if location was not specified.
1241 if test -z "$srcdir"; then
1242 ac_srcdir_defaulted=yes
1243 # Try the directory containing this script, then the parent directory.
1244 ac_confdir=`$as_dirname -- "$as_myself" ||
1245 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1246 X"$as_myself" : 'X\(//\)[^/]' \| \
1247 X"$as_myself" : 'X\(//\)$' \| \
1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1249 $as_echo X"$as_myself" |
1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)[^/].*/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\/\)$/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\).*/{
1263 s//\1/
1264 q
1265 }
1266 s/.*/./; q'`
1267 srcdir=$ac_confdir
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 srcdir=..
1270 fi
1271 else
1272 ac_srcdir_defaulted=no
1273 fi
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1276 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1277 fi
1278 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279 ac_abs_confdir=`(
1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1281 pwd)`
1282 # When building in place, set srcdir=.
1283 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 srcdir=.
1285 fi
1286 # Remove unnecessary trailing slashes from srcdir.
1287 # Double slashes in file names in object file debugging info
1288 # mess up M-x gdb in Emacs.
1289 case $srcdir in
1290 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 esac
1292 for ac_var in $ac_precious_vars; do
1293 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_env_${ac_var}_value=\$${ac_var}
1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 done
1298
1299 #
1300 # Report the --help message.
1301 #
1302 if test "$ac_init_help" = "long"; then
1303 # Omit some internal or obsolete options to make the list less imposing.
1304 # This message is too long to be a string in the A/UX 3.1 sh.
1305 cat <<_ACEOF
1306 \`configure' configures libcc1 version-unused to adapt to many kinds of systems.
1307
1308 Usage: $0 [OPTION]... [VAR=VALUE]...
1309
1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311 VAR=VALUE. See below for descriptions of some of the useful variables.
1312
1313 Defaults for the options are specified in brackets.
1314
1315 Configuration:
1316 -h, --help display this help and exit
1317 --help=short display options specific to this package
1318 --help=recursive display the short help of all the included packages
1319 -V, --version display version information and exit
1320 -q, --quiet, --silent do not print \`checking...' messages
1321 --cache-file=FILE cache test results in FILE [disabled]
1322 -C, --config-cache alias for \`--cache-file=config.cache'
1323 -n, --no-create do not create output files
1324 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1325
1326 Installation directories:
1327 --prefix=PREFIX install architecture-independent files in PREFIX
1328 [$ac_default_prefix]
1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 [PREFIX]
1331
1332 By default, \`make install' will install all the files in
1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335 for instance \`--prefix=\$HOME'.
1336
1337 For better control, use the options below.
1338
1339 Fine tuning of the installation directories:
1340 --bindir=DIR user executables [EPREFIX/bin]
1341 --sbindir=DIR system admin executables [EPREFIX/sbin]
1342 --libexecdir=DIR program executables [EPREFIX/libexec]
1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1346 --libdir=DIR object code libraries [EPREFIX/lib]
1347 --includedir=DIR C header files [PREFIX/include]
1348 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1349 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1350 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1351 --infodir=DIR info documentation [DATAROOTDIR/info]
1352 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1353 --mandir=DIR man documentation [DATAROOTDIR/man]
1354 --docdir=DIR documentation root [DATAROOTDIR/doc/libcc1]
1355 --htmldir=DIR html documentation [DOCDIR]
1356 --dvidir=DIR dvi documentation [DOCDIR]
1357 --pdfdir=DIR pdf documentation [DOCDIR]
1358 --psdir=DIR ps documentation [DOCDIR]
1359 _ACEOF
1360
1361 cat <<\_ACEOF
1362
1363 Program names:
1364 --program-prefix=PREFIX prepend PREFIX to installed program names
1365 --program-suffix=SUFFIX append SUFFIX to installed program names
1366 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1367
1368 System types:
1369 --build=BUILD configure for building on BUILD [guessed]
1370 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1371 --target=TARGET configure for building compilers for TARGET [HOST]
1372 _ACEOF
1373 fi
1374
1375 if test -n "$ac_init_help"; then
1376 case $ac_init_help in
1377 short | recursive ) echo "Configuration of libcc1 version-unused:";;
1378 esac
1379 cat <<\_ACEOF
1380
1381 Optional Features:
1382 --disable-option-checking ignore unrecognized --enable/--with options
1383 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1384 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1385 --disable-dependency-tracking speeds up one-time build
1386 --enable-dependency-tracking do not reject slow dependency extractors
1387 --enable-maintainer-mode enable make rules and dependencies not useful
1388 (and sometimes confusing) to the casual installer
1389 --enable-static[=PKGS] build static libraries [default=no]
1390 --enable-shared[=PKGS] build shared libraries [default=yes]
1391 --enable-fast-install[=PKGS]
1392 optimize for fast installation [default=yes]
1393 --disable-libtool-lock avoid locking (might break parallel builds)
1394 --enable-werror-always enable -Werror despite compiler version
1395 --enable-plugin enable plugin support
1396
1397 Optional Packages:
1398 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1399 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1400 --with-build-libsubdir=DIR Directory where to find libraries for build system
1401 --with-pic try to use only PIC/non-PIC objects [default=use
1402 both]
1403 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1404
1405 Some influential environment variables:
1406 CC C compiler command
1407 CFLAGS C compiler flags
1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1409 nonstandard directory <lib dir>
1410 LIBS libraries to pass to the linker, e.g. -l<library>
1411 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1412 you have headers in a nonstandard directory <include dir>
1413 CPP C preprocessor
1414 CXX C++ compiler command
1415 CXXFLAGS C++ compiler flags
1416 CXXCPP C++ preprocessor
1417 GMPINC How to find GMP include files
1418
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1421
1422 Report bugs to the package provider.
1423 _ACEOF
1424 ac_status=$?
1425 fi
1426
1427 if test "$ac_init_help" = "recursive"; then
1428 # If there are subdirs, report their specific --help.
1429 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430 test -d "$ac_dir" ||
1431 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1432 continue
1433 ac_builddir=.
1434
1435 case "$ac_dir" in
1436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *)
1438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1439 # A ".." for each directory in $ac_dir_suffix.
1440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1441 case $ac_top_builddir_sub in
1442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1444 esac ;;
1445 esac
1446 ac_abs_top_builddir=$ac_pwd
1447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1448 # for backward compatibility:
1449 ac_top_builddir=$ac_top_build_prefix
1450
1451 case $srcdir in
1452 .) # We are building in place.
1453 ac_srcdir=.
1454 ac_top_srcdir=$ac_top_builddir_sub
1455 ac_abs_top_srcdir=$ac_pwd ;;
1456 [\\/]* | ?:[\\/]* ) # Absolute name.
1457 ac_srcdir=$srcdir$ac_dir_suffix;
1458 ac_top_srcdir=$srcdir
1459 ac_abs_top_srcdir=$srcdir ;;
1460 *) # Relative name.
1461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1462 ac_top_srcdir=$ac_top_build_prefix$srcdir
1463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464 esac
1465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466
1467 cd "$ac_dir" || { ac_status=$?; continue; }
1468 # Check for guested configure.
1469 if test -f "$ac_srcdir/configure.gnu"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1472 elif test -f "$ac_srcdir/configure"; then
1473 echo &&
1474 $SHELL "$ac_srcdir/configure" --help=recursive
1475 else
1476 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 fi || ac_status=$?
1478 cd "$ac_pwd" || { ac_status=$?; break; }
1479 done
1480 fi
1481
1482 test -n "$ac_init_help" && exit $ac_status
1483 if $ac_init_version; then
1484 cat <<\_ACEOF
1485 libcc1 configure version-unused
1486 generated by GNU Autoconf 2.64
1487
1488 Copyright (C) 2009 Free Software Foundation, Inc.
1489 This configure script is free software; the Free Software Foundation
1490 gives unlimited permission to copy, distribute and modify it.
1491 _ACEOF
1492 exit
1493 fi
1494
1495 ## ------------------------ ##
1496 ## Autoconf initialization. ##
1497 ## ------------------------ ##
1498
1499 # ac_fn_c_try_compile LINENO
1500 # --------------------------
1501 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1502 ac_fn_c_try_compile ()
1503 {
1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 rm -f conftest.$ac_objext
1506 if { { ac_try="$ac_compile"
1507 case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510 esac
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_compile") 2>conftest.err
1514 ac_status=$?
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1519 fi
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } && {
1522 test -z "$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1524 } && test -s conftest.$ac_objext; then :
1525 ac_retval=0
1526 else
1527 $as_echo "$as_me: failed program was:" >&5
1528 sed 's/^/| /' conftest.$ac_ext >&5
1529
1530 ac_retval=1
1531 fi
1532 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1533 return $ac_retval
1534
1535 } # ac_fn_c_try_compile
1536
1537 # ac_fn_c_try_cpp LINENO
1538 # ----------------------
1539 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_cpp ()
1541 {
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 if { { ac_try="$ac_cpp conftest.$ac_ext"
1544 case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1551 ac_status=$?
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1556 fi
1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } >/dev/null && {
1559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1560 test ! -s conftest.err
1561 }; then :
1562 ac_retval=0
1563 else
1564 $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567 ac_retval=1
1568 fi
1569 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1570 return $ac_retval
1571
1572 } # ac_fn_c_try_cpp
1573
1574 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1575 # -------------------------------------------------------
1576 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1577 # the include files in INCLUDES and setting the cache variable VAR
1578 # accordingly.
1579 ac_fn_c_check_header_mongrel ()
1580 {
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1584 $as_echo_n "checking for $2... " >&6; }
1585 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1586 $as_echo_n "(cached) " >&6
1587 fi
1588 eval ac_res=\$$3
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1590 $as_echo "$ac_res" >&6; }
1591 else
1592 # Is the header compilable?
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1594 $as_echo_n "checking $2 usability... " >&6; }
1595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1596 /* end confdefs.h. */
1597 $4
1598 #include <$2>
1599 _ACEOF
1600 if ac_fn_c_try_compile "$LINENO"; then :
1601 ac_header_compiler=yes
1602 else
1603 ac_header_compiler=no
1604 fi
1605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1607 $as_echo "$ac_header_compiler" >&6; }
1608
1609 # Is the header present?
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1611 $as_echo_n "checking $2 presence... " >&6; }
1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613 /* end confdefs.h. */
1614 #include <$2>
1615 _ACEOF
1616 if ac_fn_c_try_cpp "$LINENO"; then :
1617 ac_header_preproc=yes
1618 else
1619 ac_header_preproc=no
1620 fi
1621 rm -f conftest.err conftest.$ac_ext
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1623 $as_echo "$ac_header_preproc" >&6; }
1624
1625 # So? What about this header?
1626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1627 yes:no: )
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1629 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1631 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1632 ;;
1633 no:yes:* )
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1635 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1637 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1639 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1641 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1643 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1644 ;;
1645 esac
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647 $as_echo_n "checking for $2... " >&6; }
1648 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1649 $as_echo_n "(cached) " >&6
1650 else
1651 eval "$3=\$ac_header_compiler"
1652 fi
1653 eval ac_res=\$$3
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655 $as_echo "$ac_res" >&6; }
1656 fi
1657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1658
1659 } # ac_fn_c_check_header_mongrel
1660
1661 # ac_fn_c_try_run LINENO
1662 # ----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1664 # that executables *can* be run.
1665 ac_fn_c_try_run ()
1666 {
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 if { { ac_try="$ac_link"
1669 case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>&5
1676 ac_status=$?
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1679 { { case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_try") 2>&5
1686 ac_status=$?
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; }; }; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: program exited with status $ac_status" >&5
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=$ac_status
1696 fi
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1699 return $ac_retval
1700
1701 } # ac_fn_c_try_run
1702
1703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists and can be compiled using the include files in
1706 # INCLUDES, setting the cache variable VAR accordingly.
1707 ac_fn_c_check_header_compile ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1713 $as_echo_n "(cached) " >&6
1714 else
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1717 $4
1718 #include <$2>
1719 _ACEOF
1720 if ac_fn_c_try_compile "$LINENO"; then :
1721 eval "$3=yes"
1722 else
1723 eval "$3=no"
1724 fi
1725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726 fi
1727 eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731
1732 } # ac_fn_c_check_header_compile
1733
1734 # ac_fn_c_try_link LINENO
1735 # -----------------------
1736 # Try to link conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_link ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 rm -f conftest.$ac_objext conftest$ac_exeext
1741 if { { ac_try="$ac_link"
1742 case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_link") 2>conftest.err
1749 ac_status=$?
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1754 fi
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && {
1757 test -z "$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1759 } && test -s conftest$ac_exeext && {
1760 test "$cross_compiling" = yes ||
1761 $as_test_x conftest$ac_exeext
1762 }; then :
1763 ac_retval=0
1764 else
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 ac_retval=1
1769 fi
1770 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1771 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1772 # interfere with the next link command; also delete a directory that is
1773 # left behind by Apple's compiler. We do this before executing the actions.
1774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1775 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1776 return $ac_retval
1777
1778 } # ac_fn_c_try_link
1779
1780 # ac_fn_c_check_func LINENO FUNC VAR
1781 # ----------------------------------
1782 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1783 ac_fn_c_check_func ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1789 $as_echo_n "(cached) " >&6
1790 else
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1795 #define $2 innocuous_$2
1796
1797 /* System header to define __stub macros and hopefully few prototypes,
1798 which can conflict with char $2 (); below.
1799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1800 <limits.h> exists even on freestanding compilers. */
1801
1802 #ifdef __STDC__
1803 # include <limits.h>
1804 #else
1805 # include <assert.h>
1806 #endif
1807
1808 #undef $2
1809
1810 /* Override any GCC internal prototype to avoid an error.
1811 Use char because int might match the return type of a GCC
1812 builtin and then its argument prototype would still apply. */
1813 #ifdef __cplusplus
1814 extern "C"
1815 #endif
1816 char $2 ();
1817 /* The GNU C library defines this for functions which it implements
1818 to always fail with ENOSYS. Some functions are actually named
1819 something starting with __ and the normal name is an alias. */
1820 #if defined __stub_$2 || defined __stub___$2
1821 choke me
1822 #endif
1823
1824 int
1825 main ()
1826 {
1827 return $2 ();
1828 ;
1829 return 0;
1830 }
1831 _ACEOF
1832 if ac_fn_c_try_link "$LINENO"; then :
1833 eval "$3=yes"
1834 else
1835 eval "$3=no"
1836 fi
1837 rm -f core conftest.err conftest.$ac_objext \
1838 conftest$ac_exeext conftest.$ac_ext
1839 fi
1840 eval ac_res=\$$3
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844
1845 } # ac_fn_c_check_func
1846
1847 # ac_fn_cxx_try_compile LINENO
1848 # ----------------------------
1849 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_cxx_try_compile ()
1851 {
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext
1854 if { { ac_try="$ac_compile"
1855 case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_compile") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1867 fi
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_cxx_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest.$ac_objext; then :
1873 ac_retval=0
1874 else
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 ac_retval=1
1879 fi
1880 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881 return $ac_retval
1882
1883 } # ac_fn_cxx_try_compile
1884
1885 # ac_fn_cxx_try_cpp LINENO
1886 # ------------------------
1887 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1888 ac_fn_cxx_try_cpp ()
1889 {
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 if { { ac_try="$ac_cpp conftest.$ac_ext"
1892 case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895 esac
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1899 ac_status=$?
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1904 fi
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } >/dev/null && {
1907 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1908 test ! -s conftest.err
1909 }; then :
1910 ac_retval=0
1911 else
1912 $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1914
1915 ac_retval=1
1916 fi
1917 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918 return $ac_retval
1919
1920 } # ac_fn_cxx_try_cpp
1921
1922 # ac_fn_cxx_try_link LINENO
1923 # -------------------------
1924 # Try to link conftest.$ac_ext, and return whether this succeeded.
1925 ac_fn_cxx_try_link ()
1926 {
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 rm -f conftest.$ac_objext conftest$ac_exeext
1929 if { { ac_try="$ac_link"
1930 case "(($ac_try" in
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1933 esac
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936 (eval "$ac_link") 2>conftest.err
1937 ac_status=$?
1938 if test -s conftest.err; then
1939 grep -v '^ *+' conftest.err >conftest.er1
1940 cat conftest.er1 >&5
1941 mv -f conftest.er1 conftest.err
1942 fi
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; } && {
1945 test -z "$ac_cxx_werror_flag" ||
1946 test ! -s conftest.err
1947 } && test -s conftest$ac_exeext && {
1948 test "$cross_compiling" = yes ||
1949 $as_test_x conftest$ac_exeext
1950 }; then :
1951 ac_retval=0
1952 else
1953 $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1955
1956 ac_retval=1
1957 fi
1958 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1959 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1960 # interfere with the next link command; also delete a directory that is
1961 # left behind by Apple's compiler. We do this before executing the actions.
1962 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1963 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964 return $ac_retval
1965
1966 } # ac_fn_cxx_try_link
1967
1968 # ac_fn_c_check_decl LINENO SYMBOL VAR
1969 # ------------------------------------
1970 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1971 ac_fn_c_check_decl ()
1972 {
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 as_decl_name=`echo $2|sed 's/ *(.*//'`
1975 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1977 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1978 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1979 $as_echo_n "(cached) " >&6
1980 else
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1983 $4
1984 int
1985 main ()
1986 {
1987 #ifndef $as_decl_name
1988 #ifdef __cplusplus
1989 (void) $as_decl_use;
1990 #else
1991 (void) $as_decl_name;
1992 #endif
1993 #endif
1994
1995 ;
1996 return 0;
1997 }
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000 eval "$3=yes"
2001 else
2002 eval "$3=no"
2003 fi
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 fi
2006 eval ac_res=\$$3
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008 $as_echo "$ac_res" >&6; }
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2010
2011 } # ac_fn_c_check_decl
2012 cat >config.log <<_ACEOF
2013 This file contains any messages produced by compilers while
2014 running configure, to aid debugging if configure makes a mistake.
2015
2016 It was created by libcc1 $as_me version-unused, which was
2017 generated by GNU Autoconf 2.64. Invocation command line was
2018
2019 $ $0 $@
2020
2021 _ACEOF
2022 exec 5>>config.log
2023 {
2024 cat <<_ASUNAME
2025 ## --------- ##
2026 ## Platform. ##
2027 ## --------- ##
2028
2029 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2030 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2031 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2032 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2033 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2034
2035 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2036 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2037
2038 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2039 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2040 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2041 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2042 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2043 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2044 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2045
2046 _ASUNAME
2047
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051 IFS=$as_save_IFS
2052 test -z "$as_dir" && as_dir=.
2053 $as_echo "PATH: $as_dir"
2054 done
2055 IFS=$as_save_IFS
2056
2057 } >&5
2058
2059 cat >&5 <<_ACEOF
2060
2061
2062 ## ----------- ##
2063 ## Core tests. ##
2064 ## ----------- ##
2065
2066 _ACEOF
2067
2068
2069 # Keep a trace of the command line.
2070 # Strip out --no-create and --no-recursion so they do not pile up.
2071 # Strip out --silent because we don't want to record it for future runs.
2072 # Also quote any args containing shell meta-characters.
2073 # Make two passes to allow for proper duplicate-argument suppression.
2074 ac_configure_args=
2075 ac_configure_args0=
2076 ac_configure_args1=
2077 ac_must_keep_next=false
2078 for ac_pass in 1 2
2079 do
2080 for ac_arg
2081 do
2082 case $ac_arg in
2083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2085 | -silent | --silent | --silen | --sile | --sil)
2086 continue ;;
2087 *\'*)
2088 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2089 esac
2090 case $ac_pass in
2091 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2092 2)
2093 as_fn_append ac_configure_args1 " '$ac_arg'"
2094 if test $ac_must_keep_next = true; then
2095 ac_must_keep_next=false # Got value, back to normal.
2096 else
2097 case $ac_arg in
2098 *=* | --config-cache | -C | -disable-* | --disable-* \
2099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2101 | -with-* | --with-* | -without-* | --without-* | --x)
2102 case "$ac_configure_args0 " in
2103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2104 esac
2105 ;;
2106 -* ) ac_must_keep_next=true ;;
2107 esac
2108 fi
2109 as_fn_append ac_configure_args " '$ac_arg'"
2110 ;;
2111 esac
2112 done
2113 done
2114 { ac_configure_args0=; unset ac_configure_args0;}
2115 { ac_configure_args1=; unset ac_configure_args1;}
2116
2117 # When interrupted or exit'd, cleanup temporary files, and complete
2118 # config.log. We remove comments because anyway the quotes in there
2119 # would cause problems or look ugly.
2120 # WARNING: Use '\'' to represent an apostrophe within the trap.
2121 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2122 trap 'exit_status=$?
2123 # Save into config.log some information that might help in debugging.
2124 {
2125 echo
2126
2127 cat <<\_ASBOX
2128 ## ---------------- ##
2129 ## Cache variables. ##
2130 ## ---------------- ##
2131 _ASBOX
2132 echo
2133 # The following way of writing the cache mishandles newlines in values,
2134 (
2135 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2136 eval ac_val=\$$ac_var
2137 case $ac_val in #(
2138 *${as_nl}*)
2139 case $ac_var in #(
2140 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2141 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2142 esac
2143 case $ac_var in #(
2144 _ | IFS | as_nl) ;; #(
2145 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2146 *) { eval $ac_var=; unset $ac_var;} ;;
2147 esac ;;
2148 esac
2149 done
2150 (set) 2>&1 |
2151 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2152 *${as_nl}ac_space=\ *)
2153 sed -n \
2154 "s/'\''/'\''\\\\'\'''\''/g;
2155 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2156 ;; #(
2157 *)
2158 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2159 ;;
2160 esac |
2161 sort
2162 )
2163 echo
2164
2165 cat <<\_ASBOX
2166 ## ----------------- ##
2167 ## Output variables. ##
2168 ## ----------------- ##
2169 _ASBOX
2170 echo
2171 for ac_var in $ac_subst_vars
2172 do
2173 eval ac_val=\$$ac_var
2174 case $ac_val in
2175 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2176 esac
2177 $as_echo "$ac_var='\''$ac_val'\''"
2178 done | sort
2179 echo
2180
2181 if test -n "$ac_subst_files"; then
2182 cat <<\_ASBOX
2183 ## ------------------- ##
2184 ## File substitutions. ##
2185 ## ------------------- ##
2186 _ASBOX
2187 echo
2188 for ac_var in $ac_subst_files
2189 do
2190 eval ac_val=\$$ac_var
2191 case $ac_val in
2192 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193 esac
2194 $as_echo "$ac_var='\''$ac_val'\''"
2195 done | sort
2196 echo
2197 fi
2198
2199 if test -s confdefs.h; then
2200 cat <<\_ASBOX
2201 ## ----------- ##
2202 ## confdefs.h. ##
2203 ## ----------- ##
2204 _ASBOX
2205 echo
2206 cat confdefs.h
2207 echo
2208 fi
2209 test "$ac_signal" != 0 &&
2210 $as_echo "$as_me: caught signal $ac_signal"
2211 $as_echo "$as_me: exit $exit_status"
2212 } >&5
2213 rm -f core *.core core.conftest.* &&
2214 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2215 exit $exit_status
2216 ' 0
2217 for ac_signal in 1 2 13 15; do
2218 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2219 done
2220 ac_signal=0
2221
2222 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2223 rm -f -r conftest* confdefs.h
2224
2225 $as_echo "/* confdefs.h */" > confdefs.h
2226
2227 # Predefined preprocessor variables.
2228
2229 cat >>confdefs.h <<_ACEOF
2230 #define PACKAGE_NAME "$PACKAGE_NAME"
2231 _ACEOF
2232
2233 cat >>confdefs.h <<_ACEOF
2234 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2235 _ACEOF
2236
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2239 _ACEOF
2240
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_STRING "$PACKAGE_STRING"
2243 _ACEOF
2244
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2247 _ACEOF
2248
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_URL "$PACKAGE_URL"
2251 _ACEOF
2252
2253
2254 # Let the site file select an alternate cache file if it wants to.
2255 # Prefer an explicitly selected file to automatically selected ones.
2256 ac_site_file1=NONE
2257 ac_site_file2=NONE
2258 if test -n "$CONFIG_SITE"; then
2259 ac_site_file1=$CONFIG_SITE
2260 elif test "x$prefix" != xNONE; then
2261 ac_site_file1=$prefix/share/config.site
2262 ac_site_file2=$prefix/etc/config.site
2263 else
2264 ac_site_file1=$ac_default_prefix/share/config.site
2265 ac_site_file2=$ac_default_prefix/etc/config.site
2266 fi
2267 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2268 do
2269 test "x$ac_site_file" = xNONE && continue
2270 if test -r "$ac_site_file"; then
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2272 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2273 sed 's/^/| /' "$ac_site_file" >&5
2274 . "$ac_site_file"
2275 fi
2276 done
2277
2278 if test -r "$cache_file"; then
2279 # Some versions of bash will fail to source /dev/null (special
2280 # files actually), so we avoid doing that.
2281 if test -f "$cache_file"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2283 $as_echo "$as_me: loading cache $cache_file" >&6;}
2284 case $cache_file in
2285 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2286 *) . "./$cache_file";;
2287 esac
2288 fi
2289 else
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2291 $as_echo "$as_me: creating cache $cache_file" >&6;}
2292 >$cache_file
2293 fi
2294
2295 # Check that the precious variables saved in the cache have kept the same
2296 # value.
2297 ac_cache_corrupted=false
2298 for ac_var in $ac_precious_vars; do
2299 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2300 eval ac_new_set=\$ac_env_${ac_var}_set
2301 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2302 eval ac_new_val=\$ac_env_${ac_var}_value
2303 case $ac_old_set,$ac_new_set in
2304 set,)
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2306 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2307 ac_cache_corrupted=: ;;
2308 ,set)
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2310 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2311 ac_cache_corrupted=: ;;
2312 ,);;
2313 *)
2314 if test "x$ac_old_val" != "x$ac_new_val"; then
2315 # differences in whitespace do not lead to failure.
2316 ac_old_val_w=`echo x $ac_old_val`
2317 ac_new_val_w=`echo x $ac_new_val`
2318 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2320 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2321 ac_cache_corrupted=:
2322 else
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2324 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2325 eval $ac_var=\$ac_old_val
2326 fi
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2328 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2330 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2331 fi;;
2332 esac
2333 # Pass precious variables to config.status.
2334 if test "$ac_new_set" = set; then
2335 case $ac_new_val in
2336 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2337 *) ac_arg=$ac_var=$ac_new_val ;;
2338 esac
2339 case " $ac_configure_args " in
2340 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2341 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2342 esac
2343 fi
2344 done
2345 if $ac_cache_corrupted; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2349 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2350 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2351 fi
2352 ## -------------------- ##
2353 ## Main body of script. ##
2354 ## -------------------- ##
2355
2356 ac_ext=c
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361
2362
2363
2364
2365
2366
2367 ac_config_headers="$ac_config_headers cc1plugin-config.h"
2368
2369
2370 ac_aux_dir=
2371 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2372 for ac_t in install-sh install.sh shtool; do
2373 if test -f "$ac_dir/$ac_t"; then
2374 ac_aux_dir=$ac_dir
2375 ac_install_sh="$ac_aux_dir/$ac_t -c"
2376 break 2
2377 fi
2378 done
2379 done
2380 if test -z "$ac_aux_dir"; then
2381 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2382 fi
2383
2384 # These three variables are undocumented and unsupported,
2385 # and are intended to be withdrawn in a future Autoconf release.
2386 # They can cause serious problems if a builder's source tree is in a directory
2387 # whose full name contains unusual characters.
2388 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2389 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2390 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2391
2392
2393 # Make sure we can run config.sub.
2394 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2395 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2396
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2398 $as_echo_n "checking build system type... " >&6; }
2399 if test "${ac_cv_build+set}" = set; then :
2400 $as_echo_n "(cached) " >&6
2401 else
2402 ac_build_alias=$build_alias
2403 test "x$ac_build_alias" = x &&
2404 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2405 test "x$ac_build_alias" = x &&
2406 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2407 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2408 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2409
2410 fi
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2412 $as_echo "$ac_cv_build" >&6; }
2413 case $ac_cv_build in
2414 *-*-*) ;;
2415 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2416 esac
2417 build=$ac_cv_build
2418 ac_save_IFS=$IFS; IFS='-'
2419 set x $ac_cv_build
2420 shift
2421 build_cpu=$1
2422 build_vendor=$2
2423 shift; shift
2424 # Remember, the first character of IFS is used to create $*,
2425 # except with old shells:
2426 build_os=$*
2427 IFS=$ac_save_IFS
2428 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2429
2430
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2432 $as_echo_n "checking host system type... " >&6; }
2433 if test "${ac_cv_host+set}" = set; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 if test "x$host_alias" = x; then
2437 ac_cv_host=$ac_cv_build
2438 else
2439 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2440 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2441 fi
2442
2443 fi
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2445 $as_echo "$ac_cv_host" >&6; }
2446 case $ac_cv_host in
2447 *-*-*) ;;
2448 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2449 esac
2450 host=$ac_cv_host
2451 ac_save_IFS=$IFS; IFS='-'
2452 set x $ac_cv_host
2453 shift
2454 host_cpu=$1
2455 host_vendor=$2
2456 shift; shift
2457 # Remember, the first character of IFS is used to create $*,
2458 # except with old shells:
2459 host_os=$*
2460 IFS=$ac_save_IFS
2461 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2462
2463
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2465 $as_echo_n "checking target system type... " >&6; }
2466 if test "${ac_cv_target+set}" = set; then :
2467 $as_echo_n "(cached) " >&6
2468 else
2469 if test "x$target_alias" = x; then
2470 ac_cv_target=$ac_cv_host
2471 else
2472 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2473 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2474 fi
2475
2476 fi
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2478 $as_echo "$ac_cv_target" >&6; }
2479 case $ac_cv_target in
2480 *-*-*) ;;
2481 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2482 esac
2483 target=$ac_cv_target
2484 ac_save_IFS=$IFS; IFS='-'
2485 set x $ac_cv_target
2486 shift
2487 target_cpu=$1
2488 target_vendor=$2
2489 shift; shift
2490 # Remember, the first character of IFS is used to create $*,
2491 # except with old shells:
2492 target_os=$*
2493 IFS=$ac_save_IFS
2494 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2495
2496
2497 # The aliases save the names the user supplied, while $host etc.
2498 # will get canonicalized.
2499 test -n "$target_alias" &&
2500 test "$program_prefix$program_suffix$program_transform_name" = \
2501 NONENONEs,x,x, &&
2502 program_prefix=${target_alias}-
2503
2504 ac_ext=c
2505 ac_cpp='$CPP $CPPFLAGS'
2506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2509 if test -n "$ac_tool_prefix"; then
2510 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2511 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2513 $as_echo_n "checking for $ac_word... " >&6; }
2514 if test "${ac_cv_prog_CC+set}" = set; then :
2515 $as_echo_n "(cached) " >&6
2516 else
2517 if test -n "$CC"; then
2518 ac_cv_prog_CC="$CC" # Let the user override the test.
2519 else
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH
2522 do
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2527 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 break 2
2530 fi
2531 done
2532 done
2533 IFS=$as_save_IFS
2534
2535 fi
2536 fi
2537 CC=$ac_cv_prog_CC
2538 if test -n "$CC"; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2540 $as_echo "$CC" >&6; }
2541 else
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543 $as_echo "no" >&6; }
2544 fi
2545
2546
2547 fi
2548 if test -z "$ac_cv_prog_CC"; then
2549 ac_ct_CC=$CC
2550 # Extract the first word of "gcc", so it can be a program name with args.
2551 set dummy gcc; ac_word=$2
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2553 $as_echo_n "checking for $ac_word... " >&6; }
2554 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2555 $as_echo_n "(cached) " >&6
2556 else
2557 if test -n "$ac_ct_CC"; then
2558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2559 else
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2562 do
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2567 ac_cv_prog_ac_ct_CC="gcc"
2568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 break 2
2570 fi
2571 done
2572 done
2573 IFS=$as_save_IFS
2574
2575 fi
2576 fi
2577 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2578 if test -n "$ac_ct_CC"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2580 $as_echo "$ac_ct_CC" >&6; }
2581 else
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583 $as_echo "no" >&6; }
2584 fi
2585
2586 if test "x$ac_ct_CC" = x; then
2587 CC=""
2588 else
2589 case $cross_compiling:$ac_tool_warned in
2590 yes:)
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2593 ac_tool_warned=yes ;;
2594 esac
2595 CC=$ac_ct_CC
2596 fi
2597 else
2598 CC="$ac_cv_prog_CC"
2599 fi
2600
2601 if test -z "$CC"; then
2602 if test -n "$ac_tool_prefix"; then
2603 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2604 set dummy ${ac_tool_prefix}cc; ac_word=$2
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if test "${ac_cv_prog_CC+set}" = set; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 if test -n "$CC"; then
2611 ac_cv_prog_CC="$CC" # Let the user override the test.
2612 else
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2615 do
2616 IFS=$as_save_IFS
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620 ac_cv_prog_CC="${ac_tool_prefix}cc"
2621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 break 2
2623 fi
2624 done
2625 done
2626 IFS=$as_save_IFS
2627
2628 fi
2629 fi
2630 CC=$ac_cv_prog_CC
2631 if test -n "$CC"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2633 $as_echo "$CC" >&6; }
2634 else
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2637 fi
2638
2639
2640 fi
2641 fi
2642 if test -z "$CC"; then
2643 # Extract the first word of "cc", so it can be a program name with args.
2644 set dummy cc; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if test "${ac_cv_prog_CC+set}" = set; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 if test -n "$CC"; then
2651 ac_cv_prog_CC="$CC" # Let the user override the test.
2652 else
2653 ac_prog_rejected=no
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2662 ac_prog_rejected=yes
2663 continue
2664 fi
2665 ac_cv_prog_CC="cc"
2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 break 2
2668 fi
2669 done
2670 done
2671 IFS=$as_save_IFS
2672
2673 if test $ac_prog_rejected = yes; then
2674 # We found a bogon in the path, so make sure we never use it.
2675 set dummy $ac_cv_prog_CC
2676 shift
2677 if test $# != 0; then
2678 # We chose a different compiler from the bogus one.
2679 # However, it has the same basename, so the bogon will be chosen
2680 # first if we set CC to just the basename; use the full file name.
2681 shift
2682 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2683 fi
2684 fi
2685 fi
2686 fi
2687 CC=$ac_cv_prog_CC
2688 if test -n "$CC"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2690 $as_echo "$CC" >&6; }
2691 else
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693 $as_echo "no" >&6; }
2694 fi
2695
2696
2697 fi
2698 if test -z "$CC"; then
2699 if test -n "$ac_tool_prefix"; then
2700 for ac_prog in cl.exe
2701 do
2702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2703 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if test "${ac_cv_prog_CC+set}" = set; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 if test -n "$CC"; then
2710 ac_cv_prog_CC="$CC" # Let the user override the test.
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2714 do
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2719 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 break 2
2722 fi
2723 done
2724 done
2725 IFS=$as_save_IFS
2726
2727 fi
2728 fi
2729 CC=$ac_cv_prog_CC
2730 if test -n "$CC"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2732 $as_echo "$CC" >&6; }
2733 else
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2736 fi
2737
2738
2739 test -n "$CC" && break
2740 done
2741 fi
2742 if test -z "$CC"; then
2743 ac_ct_CC=$CC
2744 for ac_prog in cl.exe
2745 do
2746 # Extract the first word of "$ac_prog", so it can be a program name with args.
2747 set dummy $ac_prog; ac_word=$2
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749 $as_echo_n "checking for $ac_word... " >&6; }
2750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2751 $as_echo_n "(cached) " >&6
2752 else
2753 if test -n "$ac_ct_CC"; then
2754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2755 else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2758 do
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2763 ac_cv_prog_ac_ct_CC="$ac_prog"
2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 break 2
2766 fi
2767 done
2768 done
2769 IFS=$as_save_IFS
2770
2771 fi
2772 fi
2773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2774 if test -n "$ac_ct_CC"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2776 $as_echo "$ac_ct_CC" >&6; }
2777 else
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2780 fi
2781
2782
2783 test -n "$ac_ct_CC" && break
2784 done
2785
2786 if test "x$ac_ct_CC" = x; then
2787 CC=""
2788 else
2789 case $cross_compiling:$ac_tool_warned in
2790 yes:)
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2793 ac_tool_warned=yes ;;
2794 esac
2795 CC=$ac_ct_CC
2796 fi
2797 fi
2798
2799 fi
2800
2801
2802 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2804 as_fn_error "no acceptable C compiler found in \$PATH
2805 See \`config.log' for more details." "$LINENO" 5; }
2806
2807 # Provide some information about the compiler.
2808 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2809 set X $ac_compile
2810 ac_compiler=$2
2811 for ac_option in --version -v -V -qversion; do
2812 { { ac_try="$ac_compiler $ac_option >&5"
2813 case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2816 esac
2817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2818 $as_echo "$ac_try_echo"; } >&5
2819 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2820 ac_status=$?
2821 if test -s conftest.err; then
2822 sed '10a\
2823 ... rest of stderr output deleted ...
2824 10q' conftest.err >conftest.er1
2825 cat conftest.er1 >&5
2826 rm -f conftest.er1 conftest.err
2827 fi
2828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2829 test $ac_status = 0; }
2830 done
2831
2832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2833 /* end confdefs.h. */
2834
2835 int
2836 main ()
2837 {
2838
2839 ;
2840 return 0;
2841 }
2842 _ACEOF
2843 ac_clean_files_save=$ac_clean_files
2844 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2845 # Try to create an executable without -o first, disregard a.out.
2846 # It will help us diagnose broken compilers, and finding out an intuition
2847 # of exeext.
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2849 $as_echo_n "checking for C compiler default output file name... " >&6; }
2850 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2851
2852 # The possible output files:
2853 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2854
2855 ac_rmfiles=
2856 for ac_file in $ac_files
2857 do
2858 case $ac_file in
2859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2860 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2861 esac
2862 done
2863 rm -f $ac_rmfiles
2864
2865 if { { ac_try="$ac_link_default"
2866 case "(($ac_try" in
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2869 esac
2870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2871 $as_echo "$ac_try_echo"; } >&5
2872 (eval "$ac_link_default") 2>&5
2873 ac_status=$?
2874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2875 test $ac_status = 0; }; then :
2876 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2877 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2878 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2879 # so that the user can short-circuit this test for compilers unknown to
2880 # Autoconf.
2881 for ac_file in $ac_files ''
2882 do
2883 test -f "$ac_file" || continue
2884 case $ac_file in
2885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2886 ;;
2887 [ab].out )
2888 # We found the default executable, but exeext='' is most
2889 # certainly right.
2890 break;;
2891 *.* )
2892 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2893 then :; else
2894 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2895 fi
2896 # We set ac_cv_exeext here because the later test for it is not
2897 # safe: cross compilers may not add the suffix if given an `-o'
2898 # argument, so we may need to know it at that point already.
2899 # Even if this section looks crufty: it has the advantage of
2900 # actually working.
2901 break;;
2902 * )
2903 break;;
2904 esac
2905 done
2906 test "$ac_cv_exeext" = no && ac_cv_exeext=
2907
2908 else
2909 ac_file=''
2910 fi
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2912 $as_echo "$ac_file" >&6; }
2913 if test -z "$ac_file"; then :
2914 $as_echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2916
2917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2919 { as_fn_set_status 77
2920 as_fn_error "C compiler cannot create executables
2921 See \`config.log' for more details." "$LINENO" 5; }; }
2922 fi
2923 ac_exeext=$ac_cv_exeext
2924
2925 # Check that the compiler produces executables we can run. If not, either
2926 # the compiler is broken, or we cross compile.
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2928 $as_echo_n "checking whether the C compiler works... " >&6; }
2929 # If not cross compiling, check that we can run a simple program.
2930 if test "$cross_compiling" != yes; then
2931 if { ac_try='./$ac_file'
2932 { { case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2935 esac
2936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2937 $as_echo "$ac_try_echo"; } >&5
2938 (eval "$ac_try") 2>&5
2939 ac_status=$?
2940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2941 test $ac_status = 0; }; }; then
2942 cross_compiling=no
2943 else
2944 if test "$cross_compiling" = maybe; then
2945 cross_compiling=yes
2946 else
2947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949 as_fn_error "cannot run C compiled programs.
2950 If you meant to cross compile, use \`--host'.
2951 See \`config.log' for more details." "$LINENO" 5; }
2952 fi
2953 fi
2954 fi
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2956 $as_echo "yes" >&6; }
2957
2958 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2959 ac_clean_files=$ac_clean_files_save
2960 # Check that the compiler produces executables we can run. If not, either
2961 # the compiler is broken, or we cross compile.
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2963 $as_echo_n "checking whether we are cross compiling... " >&6; }
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2965 $as_echo "$cross_compiling" >&6; }
2966
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2968 $as_echo_n "checking for suffix of executables... " >&6; }
2969 if { { ac_try="$ac_link"
2970 case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973 esac
2974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2975 $as_echo "$ac_try_echo"; } >&5
2976 (eval "$ac_link") 2>&5
2977 ac_status=$?
2978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2979 test $ac_status = 0; }; then :
2980 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2981 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2982 # work properly (i.e., refer to `conftest.exe'), while it won't with
2983 # `rm'.
2984 for ac_file in conftest.exe conftest conftest.*; do
2985 test -f "$ac_file" || continue
2986 case $ac_file in
2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2988 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2989 break;;
2990 * ) break;;
2991 esac
2992 done
2993 else
2994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2996 as_fn_error "cannot compute suffix of executables: cannot compile and link
2997 See \`config.log' for more details." "$LINENO" 5; }
2998 fi
2999 rm -f conftest$ac_cv_exeext
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3001 $as_echo "$ac_cv_exeext" >&6; }
3002
3003 rm -f conftest.$ac_ext
3004 EXEEXT=$ac_cv_exeext
3005 ac_exeext=$EXEEXT
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3007 $as_echo_n "checking for suffix of object files... " >&6; }
3008 if test "${ac_cv_objext+set}" = set; then :
3009 $as_echo_n "(cached) " >&6
3010 else
3011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3012 /* end confdefs.h. */
3013
3014 int
3015 main ()
3016 {
3017
3018 ;
3019 return 0;
3020 }
3021 _ACEOF
3022 rm -f conftest.o conftest.obj
3023 if { { ac_try="$ac_compile"
3024 case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027 esac
3028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029 $as_echo "$ac_try_echo"; } >&5
3030 (eval "$ac_compile") 2>&5
3031 ac_status=$?
3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033 test $ac_status = 0; }; then :
3034 for ac_file in conftest.o conftest.obj conftest.*; do
3035 test -f "$ac_file" || continue;
3036 case $ac_file in
3037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3038 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3039 break;;
3040 esac
3041 done
3042 else
3043 $as_echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3045
3046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048 as_fn_error "cannot compute suffix of object files: cannot compile
3049 See \`config.log' for more details." "$LINENO" 5; }
3050 fi
3051 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3052 fi
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3054 $as_echo "$ac_cv_objext" >&6; }
3055 OBJEXT=$ac_cv_objext
3056 ac_objext=$OBJEXT
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3058 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3059 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3060 $as_echo_n "(cached) " >&6
3061 else
3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063 /* end confdefs.h. */
3064
3065 int
3066 main ()
3067 {
3068 #ifndef __GNUC__
3069 choke me
3070 #endif
3071
3072 ;
3073 return 0;
3074 }
3075 _ACEOF
3076 if ac_fn_c_try_compile "$LINENO"; then :
3077 ac_compiler_gnu=yes
3078 else
3079 ac_compiler_gnu=no
3080 fi
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3082 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3083
3084 fi
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3086 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3087 if test $ac_compiler_gnu = yes; then
3088 GCC=yes
3089 else
3090 GCC=
3091 fi
3092 ac_test_CFLAGS=${CFLAGS+set}
3093 ac_save_CFLAGS=$CFLAGS
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3095 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3096 if test "${ac_cv_prog_cc_g+set}" = set; then :
3097 $as_echo_n "(cached) " >&6
3098 else
3099 ac_save_c_werror_flag=$ac_c_werror_flag
3100 ac_c_werror_flag=yes
3101 ac_cv_prog_cc_g=no
3102 CFLAGS="-g"
3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104 /* end confdefs.h. */
3105
3106 int
3107 main ()
3108 {
3109
3110 ;
3111 return 0;
3112 }
3113 _ACEOF
3114 if ac_fn_c_try_compile "$LINENO"; then :
3115 ac_cv_prog_cc_g=yes
3116 else
3117 CFLAGS=""
3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119 /* end confdefs.h. */
3120
3121 int
3122 main ()
3123 {
3124
3125 ;
3126 return 0;
3127 }
3128 _ACEOF
3129 if ac_fn_c_try_compile "$LINENO"; then :
3130
3131 else
3132 ac_c_werror_flag=$ac_save_c_werror_flag
3133 CFLAGS="-g"
3134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3135 /* end confdefs.h. */
3136
3137 int
3138 main ()
3139 {
3140
3141 ;
3142 return 0;
3143 }
3144 _ACEOF
3145 if ac_fn_c_try_compile "$LINENO"; then :
3146 ac_cv_prog_cc_g=yes
3147 fi
3148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3149 fi
3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151 fi
3152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 ac_c_werror_flag=$ac_save_c_werror_flag
3154 fi
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3156 $as_echo "$ac_cv_prog_cc_g" >&6; }
3157 if test "$ac_test_CFLAGS" = set; then
3158 CFLAGS=$ac_save_CFLAGS
3159 elif test $ac_cv_prog_cc_g = yes; then
3160 if test "$GCC" = yes; then
3161 CFLAGS="-g -O2"
3162 else
3163 CFLAGS="-g"
3164 fi
3165 else
3166 if test "$GCC" = yes; then
3167 CFLAGS="-O2"
3168 else
3169 CFLAGS=
3170 fi
3171 fi
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3173 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3174 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 ac_cv_prog_cc_c89=no
3178 ac_save_CC=$CC
3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180 /* end confdefs.h. */
3181 #include <stdarg.h>
3182 #include <stdio.h>
3183 #include <sys/types.h>
3184 #include <sys/stat.h>
3185 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3186 struct buf { int x; };
3187 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3188 static char *e (p, i)
3189 char **p;
3190 int i;
3191 {
3192 return p[i];
3193 }
3194 static char *f (char * (*g) (char **, int), char **p, ...)
3195 {
3196 char *s;
3197 va_list v;
3198 va_start (v,p);
3199 s = g (p, va_arg (v,int));
3200 va_end (v);
3201 return s;
3202 }
3203
3204 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3205 function prototypes and stuff, but not '\xHH' hex character constants.
3206 These don't provoke an error unfortunately, instead are silently treated
3207 as 'x'. The following induces an error, until -std is added to get
3208 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3209 array size at least. It's necessary to write '\x00'==0 to get something
3210 that's true only with -std. */
3211 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3212
3213 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3214 inside strings and character constants. */
3215 #define FOO(x) 'x'
3216 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3217
3218 int test (int i, double x);
3219 struct s1 {int (*f) (int a);};
3220 struct s2 {int (*f) (double a);};
3221 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3222 int argc;
3223 char **argv;
3224 int
3225 main ()
3226 {
3227 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3228 ;
3229 return 0;
3230 }
3231 _ACEOF
3232 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3233 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3234 do
3235 CC="$ac_save_CC $ac_arg"
3236 if ac_fn_c_try_compile "$LINENO"; then :
3237 ac_cv_prog_cc_c89=$ac_arg
3238 fi
3239 rm -f core conftest.err conftest.$ac_objext
3240 test "x$ac_cv_prog_cc_c89" != "xno" && break
3241 done
3242 rm -f conftest.$ac_ext
3243 CC=$ac_save_CC
3244
3245 fi
3246 # AC_CACHE_VAL
3247 case "x$ac_cv_prog_cc_c89" in
3248 x)
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3250 $as_echo "none needed" >&6; } ;;
3251 xno)
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3253 $as_echo "unsupported" >&6; } ;;
3254 *)
3255 CC="$CC $ac_cv_prog_cc_c89"
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3257 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3258 esac
3259 if test "x$ac_cv_prog_cc_c89" != xno; then :
3260
3261 fi
3262
3263 ac_ext=c
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268
3269
3270 ac_ext=c
3271 ac_cpp='$CPP $CPPFLAGS'
3272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3276 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3277 # On Suns, sometimes $CPP names a directory.
3278 if test -n "$CPP" && test -d "$CPP"; then
3279 CPP=
3280 fi
3281 if test -z "$CPP"; then
3282 if test "${ac_cv_prog_CPP+set}" = set; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 # Double quotes because CPP needs to be expanded
3286 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3287 do
3288 ac_preproc_ok=false
3289 for ac_c_preproc_warn_flag in '' yes
3290 do
3291 # Use a header file that comes with gcc, so configuring glibc
3292 # with a fresh cross-compiler works.
3293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3294 # <limits.h> exists even on freestanding compilers.
3295 # On the NeXT, cc -E runs the code through the compiler's parser,
3296 # not just through cpp. "Syntax error" is here to catch this case.
3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h. */
3299 #ifdef __STDC__
3300 # include <limits.h>
3301 #else
3302 # include <assert.h>
3303 #endif
3304 Syntax error
3305 _ACEOF
3306 if ac_fn_c_try_cpp "$LINENO"; then :
3307
3308 else
3309 # Broken: fails on valid input.
3310 continue
3311 fi
3312 rm -f conftest.err conftest.$ac_ext
3313
3314 # OK, works on sane cases. Now check whether nonexistent headers
3315 # can be detected and how.
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h. */
3318 #include <ac_nonexistent.h>
3319 _ACEOF
3320 if ac_fn_c_try_cpp "$LINENO"; then :
3321 # Broken: success on invalid input.
3322 continue
3323 else
3324 # Passes both tests.
3325 ac_preproc_ok=:
3326 break
3327 fi
3328 rm -f conftest.err conftest.$ac_ext
3329
3330 done
3331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3332 rm -f conftest.err conftest.$ac_ext
3333 if $ac_preproc_ok; then :
3334 break
3335 fi
3336
3337 done
3338 ac_cv_prog_CPP=$CPP
3339
3340 fi
3341 CPP=$ac_cv_prog_CPP
3342 else
3343 ac_cv_prog_CPP=$CPP
3344 fi
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3346 $as_echo "$CPP" >&6; }
3347 ac_preproc_ok=false
3348 for ac_c_preproc_warn_flag in '' yes
3349 do
3350 # Use a header file that comes with gcc, so configuring glibc
3351 # with a fresh cross-compiler works.
3352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353 # <limits.h> exists even on freestanding compilers.
3354 # On the NeXT, cc -E runs the code through the compiler's parser,
3355 # not just through cpp. "Syntax error" is here to catch this case.
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3358 #ifdef __STDC__
3359 # include <limits.h>
3360 #else
3361 # include <assert.h>
3362 #endif
3363 Syntax error
3364 _ACEOF
3365 if ac_fn_c_try_cpp "$LINENO"; then :
3366
3367 else
3368 # Broken: fails on valid input.
3369 continue
3370 fi
3371 rm -f conftest.err conftest.$ac_ext
3372
3373 # OK, works on sane cases. Now check whether nonexistent headers
3374 # can be detected and how.
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3377 #include <ac_nonexistent.h>
3378 _ACEOF
3379 if ac_fn_c_try_cpp "$LINENO"; then :
3380 # Broken: success on invalid input.
3381 continue
3382 else
3383 # Passes both tests.
3384 ac_preproc_ok=:
3385 break
3386 fi
3387 rm -f conftest.err conftest.$ac_ext
3388
3389 done
3390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3391 rm -f conftest.err conftest.$ac_ext
3392 if $ac_preproc_ok; then :
3393
3394 else
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3398 See \`config.log' for more details." "$LINENO" 5; }
3399 fi
3400
3401 ac_ext=c
3402 ac_cpp='$CPP $CPPFLAGS'
3403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406
3407
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3409 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3410 if test "${ac_cv_path_GREP+set}" = set; then :
3411 $as_echo_n "(cached) " >&6
3412 else
3413 if test -z "$GREP"; then
3414 ac_path_GREP_found=false
3415 # Loop through the user's path and test for each of PROGNAME-LIST
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3418 do
3419 IFS=$as_save_IFS
3420 test -z "$as_dir" && as_dir=.
3421 for ac_prog in grep ggrep; do
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3424 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3425 # Check for GNU ac_path_GREP and select it if it is found.
3426 # Check for GNU $ac_path_GREP
3427 case `"$ac_path_GREP" --version 2>&1` in
3428 *GNU*)
3429 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3430 *)
3431 ac_count=0
3432 $as_echo_n 0123456789 >"conftest.in"
3433 while :
3434 do
3435 cat "conftest.in" "conftest.in" >"conftest.tmp"
3436 mv "conftest.tmp" "conftest.in"
3437 cp "conftest.in" "conftest.nl"
3438 $as_echo 'GREP' >> "conftest.nl"
3439 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3441 as_fn_arith $ac_count + 1 && ac_count=$as_val
3442 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3443 # Best one so far, save it but keep looking for a better one
3444 ac_cv_path_GREP="$ac_path_GREP"
3445 ac_path_GREP_max=$ac_count
3446 fi
3447 # 10*(2^10) chars as input seems more than enough
3448 test $ac_count -gt 10 && break
3449 done
3450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3451 esac
3452
3453 $ac_path_GREP_found && break 3
3454 done
3455 done
3456 done
3457 IFS=$as_save_IFS
3458 if test -z "$ac_cv_path_GREP"; then
3459 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3460 fi
3461 else
3462 ac_cv_path_GREP=$GREP
3463 fi
3464
3465 fi
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3467 $as_echo "$ac_cv_path_GREP" >&6; }
3468 GREP="$ac_cv_path_GREP"
3469
3470
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3472 $as_echo_n "checking for egrep... " >&6; }
3473 if test "${ac_cv_path_EGREP+set}" = set; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3477 then ac_cv_path_EGREP="$GREP -E"
3478 else
3479 if test -z "$EGREP"; then
3480 ac_path_EGREP_found=false
3481 # Loop through the user's path and test for each of PROGNAME-LIST
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3484 do
3485 IFS=$as_save_IFS
3486 test -z "$as_dir" && as_dir=.
3487 for ac_prog in egrep; do
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3490 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3491 # Check for GNU ac_path_EGREP and select it if it is found.
3492 # Check for GNU $ac_path_EGREP
3493 case `"$ac_path_EGREP" --version 2>&1` in
3494 *GNU*)
3495 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3496 *)
3497 ac_count=0
3498 $as_echo_n 0123456789 >"conftest.in"
3499 while :
3500 do
3501 cat "conftest.in" "conftest.in" >"conftest.tmp"
3502 mv "conftest.tmp" "conftest.in"
3503 cp "conftest.in" "conftest.nl"
3504 $as_echo 'EGREP' >> "conftest.nl"
3505 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3506 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3507 as_fn_arith $ac_count + 1 && ac_count=$as_val
3508 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3509 # Best one so far, save it but keep looking for a better one
3510 ac_cv_path_EGREP="$ac_path_EGREP"
3511 ac_path_EGREP_max=$ac_count
3512 fi
3513 # 10*(2^10) chars as input seems more than enough
3514 test $ac_count -gt 10 && break
3515 done
3516 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3517 esac
3518
3519 $ac_path_EGREP_found && break 3
3520 done
3521 done
3522 done
3523 IFS=$as_save_IFS
3524 if test -z "$ac_cv_path_EGREP"; then
3525 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3526 fi
3527 else
3528 ac_cv_path_EGREP=$EGREP
3529 fi
3530
3531 fi
3532 fi
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3534 $as_echo "$ac_cv_path_EGREP" >&6; }
3535 EGREP="$ac_cv_path_EGREP"
3536
3537
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3539 $as_echo_n "checking for ANSI C header files... " >&6; }
3540 if test "${ac_cv_header_stdc+set}" = set; then :
3541 $as_echo_n "(cached) " >&6
3542 else
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545 #include <stdlib.h>
3546 #include <stdarg.h>
3547 #include <string.h>
3548 #include <float.h>
3549
3550 int
3551 main ()
3552 {
3553
3554 ;
3555 return 0;
3556 }
3557 _ACEOF
3558 if ac_fn_c_try_compile "$LINENO"; then :
3559 ac_cv_header_stdc=yes
3560 else
3561 ac_cv_header_stdc=no
3562 fi
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564
3565 if test $ac_cv_header_stdc = yes; then
3566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569 #include <string.h>
3570
3571 _ACEOF
3572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3573 $EGREP "memchr" >/dev/null 2>&1; then :
3574
3575 else
3576 ac_cv_header_stdc=no
3577 fi
3578 rm -f conftest*
3579
3580 fi
3581
3582 if test $ac_cv_header_stdc = yes; then
3583 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3586 #include <stdlib.h>
3587
3588 _ACEOF
3589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3590 $EGREP "free" >/dev/null 2>&1; then :
3591
3592 else
3593 ac_cv_header_stdc=no
3594 fi
3595 rm -f conftest*
3596
3597 fi
3598
3599 if test $ac_cv_header_stdc = yes; then
3600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3601 if test "$cross_compiling" = yes; then :
3602 :
3603 else
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606 #include <ctype.h>
3607 #include <stdlib.h>
3608 #if ((' ' & 0x0FF) == 0x020)
3609 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3610 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3611 #else
3612 # define ISLOWER(c) \
3613 (('a' <= (c) && (c) <= 'i') \
3614 || ('j' <= (c) && (c) <= 'r') \
3615 || ('s' <= (c) && (c) <= 'z'))
3616 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3617 #endif
3618
3619 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3620 int
3621 main ()
3622 {
3623 int i;
3624 for (i = 0; i < 256; i++)
3625 if (XOR (islower (i), ISLOWER (i))
3626 || toupper (i) != TOUPPER (i))
3627 return 2;
3628 return 0;
3629 }
3630 _ACEOF
3631 if ac_fn_c_try_run "$LINENO"; then :
3632
3633 else
3634 ac_cv_header_stdc=no
3635 fi
3636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3637 conftest.$ac_objext conftest.beam conftest.$ac_ext
3638 fi
3639
3640 fi
3641 fi
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3643 $as_echo "$ac_cv_header_stdc" >&6; }
3644 if test $ac_cv_header_stdc = yes; then
3645
3646 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3647
3648 fi
3649
3650 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3651 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3652 inttypes.h stdint.h unistd.h
3653 do :
3654 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3655 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3656 "
3657 eval as_val=\$$as_ac_Header
3658 if test "x$as_val" = x""yes; then :
3659 cat >>confdefs.h <<_ACEOF
3660 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3661 _ACEOF
3662
3663 fi
3664
3665 done
3666
3667
3668
3669 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3670 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3671 MINIX=yes
3672 else
3673 MINIX=
3674 fi
3675
3676
3677 if test "$MINIX" = yes; then
3678
3679 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3680
3681
3682 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3683
3684
3685 $as_echo "#define _MINIX 1" >>confdefs.h
3686
3687 fi
3688
3689
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3691 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3692 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3697
3698 # define __EXTENSIONS__ 1
3699 $ac_includes_default
3700 int
3701 main ()
3702 {
3703
3704 ;
3705 return 0;
3706 }
3707 _ACEOF
3708 if ac_fn_c_try_compile "$LINENO"; then :
3709 ac_cv_safe_to_define___extensions__=yes
3710 else
3711 ac_cv_safe_to_define___extensions__=no
3712 fi
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714 fi
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3716 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3717 test $ac_cv_safe_to_define___extensions__ = yes &&
3718 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3719
3720 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3721
3722 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3723
3724 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3725
3726 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3727
3728
3729 # Determine the noncanonical target name, for directory use.
3730 case ${build_alias} in
3731 "") build_noncanonical=${build} ;;
3732 *) build_noncanonical=${build_alias} ;;
3733 esac
3734
3735 case ${host_alias} in
3736 "") host_noncanonical=${build_noncanonical} ;;
3737 *) host_noncanonical=${host_alias} ;;
3738 esac
3739
3740 case ${target_alias} in
3741 "") target_noncanonical=${host_noncanonical} ;;
3742 *) target_noncanonical=${target_alias} ;;
3743 esac
3744
3745
3746
3747
3748 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3749 # have matching libraries, they should use host libraries: Makefile.tpl
3750 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3751 # However, they still use the build modules, because the corresponding
3752 # host modules (e.g. bison) are only built for the host when bootstrap
3753 # finishes. So:
3754 # - build_subdir is where we find build modules, and never changes.
3755 # - build_libsubdir is where we find build libraries, and can be overridden.
3756
3757 # Prefix 'build-' so this never conflicts with target_subdir.
3758 build_subdir="build-${build_noncanonical}"
3759
3760 # Check whether --with-build-libsubdir was given.
3761 if test "${with_build_libsubdir+set}" = set; then :
3762 withval=$with_build_libsubdir; build_libsubdir="$withval"
3763 else
3764 build_libsubdir="$build_subdir"
3765 fi
3766
3767 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3768 if ( test $srcdir = . && test -d gcc ) \
3769 || test -d $srcdir/../host-${host_noncanonical}; then
3770 host_subdir="host-${host_noncanonical}"
3771 else
3772 host_subdir=.
3773 fi
3774 # No prefix.
3775 target_subdir=${target_noncanonical}
3776
3777
3778 # 1.11.1: Require that version of automake.
3779 # foreign: Don't require README, INSTALL, NEWS, etc.
3780 # no-define: Don't define PACKAGE and VERSION.
3781 # -Wall: Issue all automake warnings.
3782 # -Wno-portability: Don't warn about constructs supported by GNU make.
3783 # (because GCC requires GNU make anyhow).
3784 am__api_version='1.11'
3785
3786 # Find a good install program. We prefer a C program (faster),
3787 # so one script is as good as another. But avoid the broken or
3788 # incompatible versions:
3789 # SysV /etc/install, /usr/sbin/install
3790 # SunOS /usr/etc/install
3791 # IRIX /sbin/install
3792 # AIX /bin/install
3793 # AmigaOS /C/install, which installs bootblocks on floppy discs
3794 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3795 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3796 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3797 # OS/2's system install, which has a completely different semantic
3798 # ./install, which can be erroneously created by make from ./install.sh.
3799 # Reject install programs that cannot install multiple files.
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3801 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3802 if test -z "$INSTALL"; then
3803 if test "${ac_cv_path_install+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
3805 else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3808 do
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 # Account for people who put trailing slashes in PATH elements.
3812 case $as_dir/ in #((
3813 ./ | .// | /[cC]/* | \
3814 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3815 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3816 /usr/ucb/* ) ;;
3817 *)
3818 # OSF1 and SCO ODT 3.0 have their own names for install.
3819 # Don't use installbsd from OSF since it installs stuff as root
3820 # by default.
3821 for ac_prog in ginstall scoinst install; do
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3824 if test $ac_prog = install &&
3825 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3826 # AIX install. It has an incompatible calling convention.
3827 :
3828 elif test $ac_prog = install &&
3829 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3830 # program-specific install script used by HP pwplus--don't use.
3831 :
3832 else
3833 rm -rf conftest.one conftest.two conftest.dir
3834 echo one > conftest.one
3835 echo two > conftest.two
3836 mkdir conftest.dir
3837 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3838 test -s conftest.one && test -s conftest.two &&
3839 test -s conftest.dir/conftest.one &&
3840 test -s conftest.dir/conftest.two
3841 then
3842 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3843 break 3
3844 fi
3845 fi
3846 fi
3847 done
3848 done
3849 ;;
3850 esac
3851
3852 done
3853 IFS=$as_save_IFS
3854
3855 rm -rf conftest.one conftest.two conftest.dir
3856
3857 fi
3858 if test "${ac_cv_path_install+set}" = set; then
3859 INSTALL=$ac_cv_path_install
3860 else
3861 # As a last resort, use the slow shell script. Don't cache a
3862 # value for INSTALL within a source directory, because that will
3863 # break other packages using the cache if that directory is
3864 # removed, or if the value is a relative name.
3865 INSTALL=$ac_install_sh
3866 fi
3867 fi
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3869 $as_echo "$INSTALL" >&6; }
3870
3871 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3872 # It thinks the first close brace ends the variable substitution.
3873 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3874
3875 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3876
3877 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3878
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3880 $as_echo_n "checking whether build environment is sane... " >&6; }
3881 # Just in case
3882 sleep 1
3883 echo timestamp > conftest.file
3884 # Reject unsafe characters in $srcdir or the absolute working directory
3885 # name. Accept space and tab only in the latter.
3886 am_lf='
3887 '
3888 case `pwd` in
3889 *[\\\"\#\$\&\'\`$am_lf]*)
3890 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3891 esac
3892 case $srcdir in
3893 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3894 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3895 esac
3896
3897 # Do `set' in a subshell so we don't clobber the current shell's
3898 # arguments. Must try -L first in case configure is actually a
3899 # symlink; some systems play weird games with the mod time of symlinks
3900 # (eg FreeBSD returns the mod time of the symlink's containing
3901 # directory).
3902 if (
3903 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3904 if test "$*" = "X"; then
3905 # -L didn't work.
3906 set X `ls -t "$srcdir/configure" conftest.file`
3907 fi
3908 rm -f conftest.file
3909 if test "$*" != "X $srcdir/configure conftest.file" \
3910 && test "$*" != "X conftest.file $srcdir/configure"; then
3911
3912 # If neither matched, then we have a broken ls. This can happen
3913 # if, for instance, CONFIG_SHELL is bash and it inherits a
3914 # broken ls alias from the environment. This has actually
3915 # happened. Such a system could not be considered "sane".
3916 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3917 alias in your environment" "$LINENO" 5
3918 fi
3919
3920 test "$2" = conftest.file
3921 )
3922 then
3923 # Ok.
3924 :
3925 else
3926 as_fn_error "newly created file is older than distributed files!
3927 Check your system clock" "$LINENO" 5
3928 fi
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3930 $as_echo "yes" >&6; }
3931 test "$program_prefix" != NONE &&
3932 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3933 # Use a double $ so make ignores it.
3934 test "$program_suffix" != NONE &&
3935 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3936 # Double any \ or $.
3937 # By default was `s,x,x', remove it if useless.
3938 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3939 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3940
3941 # expand $ac_aux_dir to an absolute path
3942 am_aux_dir=`cd $ac_aux_dir && pwd`
3943
3944 if test x"${MISSING+set}" != xset; then
3945 case $am_aux_dir in
3946 *\ * | *\ *)
3947 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3948 *)
3949 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3950 esac
3951 fi
3952 # Use eval to expand $SHELL
3953 if eval "$MISSING --run true"; then
3954 am_missing_run="$MISSING --run "
3955 else
3956 am_missing_run=
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3958 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3959 fi
3960
3961 if test x"${install_sh}" != xset; then
3962 case $am_aux_dir in
3963 *\ * | *\ *)
3964 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3965 *)
3966 install_sh="\${SHELL} $am_aux_dir/install-sh"
3967 esac
3968 fi
3969
3970 # Installed binaries are usually stripped using `strip' when the user
3971 # run `make install-strip'. However `strip' might not be the right
3972 # tool to use in cross-compilation environments, therefore Automake
3973 # will honor the `STRIP' environment variable to overrule this program.
3974 if test "$cross_compiling" != no; then
3975 if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3977 set dummy ${ac_tool_prefix}strip; ac_word=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if test "${ac_cv_prog_STRIP+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 if test -n "$STRIP"; then
3984 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3988 do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3993 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 break 2
3996 fi
3997 done
3998 done
3999 IFS=$as_save_IFS
4000
4001 fi
4002 fi
4003 STRIP=$ac_cv_prog_STRIP
4004 if test -n "$STRIP"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4006 $as_echo "$STRIP" >&6; }
4007 else
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4010 fi
4011
4012
4013 fi
4014 if test -z "$ac_cv_prog_STRIP"; then
4015 ac_ct_STRIP=$STRIP
4016 # Extract the first word of "strip", so it can be a program name with args.
4017 set dummy strip; ac_word=$2
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 $as_echo_n "checking for $ac_word... " >&6; }
4020 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 if test -n "$ac_ct_STRIP"; then
4024 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4025 else
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH
4028 do
4029 IFS=$as_save_IFS
4030 test -z "$as_dir" && as_dir=.
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4033 ac_cv_prog_ac_ct_STRIP="strip"
4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 break 2
4036 fi
4037 done
4038 done
4039 IFS=$as_save_IFS
4040
4041 fi
4042 fi
4043 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4044 if test -n "$ac_ct_STRIP"; then
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4046 $as_echo "$ac_ct_STRIP" >&6; }
4047 else
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049 $as_echo "no" >&6; }
4050 fi
4051
4052 if test "x$ac_ct_STRIP" = x; then
4053 STRIP=":"
4054 else
4055 case $cross_compiling:$ac_tool_warned in
4056 yes:)
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4059 ac_tool_warned=yes ;;
4060 esac
4061 STRIP=$ac_ct_STRIP
4062 fi
4063 else
4064 STRIP="$ac_cv_prog_STRIP"
4065 fi
4066
4067 fi
4068 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4069
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4071 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4072 if test -z "$MKDIR_P"; then
4073 if test "${ac_cv_path_mkdir+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4078 do
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_prog in mkdir gmkdir; do
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4084 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4085 'mkdir (GNU coreutils) '* | \
4086 'mkdir (coreutils) '* | \
4087 'mkdir (fileutils) '4.1*)
4088 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4089 break 3;;
4090 esac
4091 done
4092 done
4093 done
4094 IFS=$as_save_IFS
4095
4096 fi
4097
4098 if test "${ac_cv_path_mkdir+set}" = set; then
4099 MKDIR_P="$ac_cv_path_mkdir -p"
4100 else
4101 # As a last resort, use the slow shell script. Don't cache a
4102 # value for MKDIR_P within a source directory, because that will
4103 # break other packages using the cache if that directory is
4104 # removed, or if the value is a relative name.
4105 test -d ./--version && rmdir ./--version
4106 MKDIR_P="$ac_install_sh -d"
4107 fi
4108 fi
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4110 $as_echo "$MKDIR_P" >&6; }
4111
4112 mkdir_p="$MKDIR_P"
4113 case $mkdir_p in
4114 [\\/$]* | ?:[\\/]*) ;;
4115 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4116 esac
4117
4118 for ac_prog in gawk mawk nawk awk
4119 do
4120 # Extract the first word of "$ac_prog", so it can be a program name with args.
4121 set dummy $ac_prog; ac_word=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if test "${ac_cv_prog_AWK+set}" = set; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 if test -n "$AWK"; then
4128 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4129 else
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4132 do
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4137 ac_cv_prog_AWK="$ac_prog"
4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 break 2
4140 fi
4141 done
4142 done
4143 IFS=$as_save_IFS
4144
4145 fi
4146 fi
4147 AWK=$ac_cv_prog_AWK
4148 if test -n "$AWK"; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4150 $as_echo "$AWK" >&6; }
4151 else
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4154 fi
4155
4156
4157 test -n "$AWK" && break
4158 done
4159
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4161 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4162 set x ${MAKE-make}
4163 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4164 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4165 $as_echo_n "(cached) " >&6
4166 else
4167 cat >conftest.make <<\_ACEOF
4168 SHELL = /bin/sh
4169 all:
4170 @echo '@@@%%%=$(MAKE)=@@@%%%'
4171 _ACEOF
4172 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4173 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4174 *@@@%%%=?*=@@@%%%*)
4175 eval ac_cv_prog_make_${ac_make}_set=yes;;
4176 *)
4177 eval ac_cv_prog_make_${ac_make}_set=no;;
4178 esac
4179 rm -f conftest.make
4180 fi
4181 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4183 $as_echo "yes" >&6; }
4184 SET_MAKE=
4185 else
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187 $as_echo "no" >&6; }
4188 SET_MAKE="MAKE=${MAKE-make}"
4189 fi
4190
4191 rm -rf .tst 2>/dev/null
4192 mkdir .tst 2>/dev/null
4193 if test -d .tst; then
4194 am__leading_dot=.
4195 else
4196 am__leading_dot=_
4197 fi
4198 rmdir .tst 2>/dev/null
4199
4200 DEPDIR="${am__leading_dot}deps"
4201
4202 ac_config_commands="$ac_config_commands depfiles"
4203
4204
4205 am_make=${MAKE-make}
4206 cat > confinc << 'END'
4207 am__doit:
4208 @echo this is the am__doit target
4209 .PHONY: am__doit
4210 END
4211 # If we don't find an include directive, just comment out the code.
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4213 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4214 am__include="#"
4215 am__quote=
4216 _am_result=none
4217 # First try GNU make style include.
4218 echo "include confinc" > confmf
4219 # Ignore all kinds of additional output from `make'.
4220 case `$am_make -s -f confmf 2> /dev/null` in #(
4221 *the\ am__doit\ target*)
4222 am__include=include
4223 am__quote=
4224 _am_result=GNU
4225 ;;
4226 esac
4227 # Now try BSD make style include.
4228 if test "$am__include" = "#"; then
4229 echo '.include "confinc"' > confmf
4230 case `$am_make -s -f confmf 2> /dev/null` in #(
4231 *the\ am__doit\ target*)
4232 am__include=.include
4233 am__quote="\""
4234 _am_result=BSD
4235 ;;
4236 esac
4237 fi
4238
4239
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4241 $as_echo "$_am_result" >&6; }
4242 rm -f confinc confmf
4243
4244 # Check whether --enable-dependency-tracking was given.
4245 if test "${enable_dependency_tracking+set}" = set; then :
4246 enableval=$enable_dependency_tracking;
4247 fi
4248
4249 if test "x$enable_dependency_tracking" != xno; then
4250 am_depcomp="$ac_aux_dir/depcomp"
4251 AMDEPBACKSLASH='\'
4252 fi
4253 if test "x$enable_dependency_tracking" != xno; then
4254 AMDEP_TRUE=
4255 AMDEP_FALSE='#'
4256 else
4257 AMDEP_TRUE='#'
4258 AMDEP_FALSE=
4259 fi
4260
4261
4262 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4263 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4264 # is not polluted with repeated "-I."
4265 am__isrc=' -I$(srcdir)'
4266 # test to see if srcdir already configured
4267 if test -f $srcdir/config.status; then
4268 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4269 fi
4270 fi
4271
4272 # test whether we have cygpath
4273 if test -z "$CYGPATH_W"; then
4274 if (cygpath --version) >/dev/null 2>/dev/null; then
4275 CYGPATH_W='cygpath -w'
4276 else
4277 CYGPATH_W=echo
4278 fi
4279 fi
4280
4281
4282 # Define the identity of the package.
4283 PACKAGE='libcc1'
4284 VERSION='version-unused'
4285
4286
4287 # Some tools Automake needs.
4288
4289 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4290
4291
4292 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4293
4294
4295 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4296
4297
4298 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4299
4300
4301 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4302
4303 # We need awk for the "check" target. The system "awk" is bad on
4304 # some platforms.
4305 # Always define AMTAR for backward compatibility.
4306
4307 AMTAR=${AMTAR-"${am_missing_run}tar"}
4308
4309 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4310
4311
4312
4313
4314 depcc="$CC" am_compiler_list=
4315
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4317 $as_echo_n "checking dependency style of $depcc... " >&6; }
4318 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4322 # We make a subdir and do the tests there. Otherwise we can end up
4323 # making bogus files that we don't know about and never remove. For
4324 # instance it was reported that on HP-UX the gcc test will end up
4325 # making a dummy file named `D' -- because `-MD' means `put the output
4326 # in D'.
4327 mkdir conftest.dir
4328 # Copy depcomp to subdir because otherwise we won't find it if we're
4329 # using a relative directory.
4330 cp "$am_depcomp" conftest.dir
4331 cd conftest.dir
4332 # We will build objects and dependencies in a subdirectory because
4333 # it helps to detect inapplicable dependency modes. For instance
4334 # both Tru64's cc and ICC support -MD to output dependencies as a
4335 # side effect of compilation, but ICC will put the dependencies in
4336 # the current directory while Tru64 will put them in the object
4337 # directory.
4338 mkdir sub
4339
4340 am_cv_CC_dependencies_compiler_type=none
4341 if test "$am_compiler_list" = ""; then
4342 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4343 fi
4344 am__universal=false
4345 case " $depcc " in #(
4346 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4347 esac
4348
4349 for depmode in $am_compiler_list; do
4350 # Setup a source with many dependencies, because some compilers
4351 # like to wrap large dependency lists on column 80 (with \), and
4352 # we should not choose a depcomp mode which is confused by this.
4353 #
4354 # We need to recreate these files for each test, as the compiler may
4355 # overwrite some of them when testing with obscure command lines.
4356 # This happens at least with the AIX C compiler.
4357 : > sub/conftest.c
4358 for i in 1 2 3 4 5 6; do
4359 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4360 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4361 # Solaris 8's {/usr,}/bin/sh.
4362 touch sub/conftst$i.h
4363 done
4364 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4365
4366 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4367 # mode. It turns out that the SunPro C++ compiler does not properly
4368 # handle `-M -o', and we need to detect this. Also, some Intel
4369 # versions had trouble with output in subdirs
4370 am__obj=sub/conftest.${OBJEXT-o}
4371 am__minus_obj="-o $am__obj"
4372 case $depmode in
4373 gcc)
4374 # This depmode causes a compiler race in universal mode.
4375 test "$am__universal" = false || continue
4376 ;;
4377 nosideeffect)
4378 # after this tag, mechanisms are not by side-effect, so they'll
4379 # only be used when explicitly requested
4380 if test "x$enable_dependency_tracking" = xyes; then
4381 continue
4382 else
4383 break
4384 fi
4385 ;;
4386 msvisualcpp | msvcmsys)
4387 # This compiler won't grok `-c -o', but also, the minuso test has
4388 # not run yet. These depmodes are late enough in the game, and
4389 # so weak that their functioning should not be impacted.
4390 am__obj=conftest.${OBJEXT-o}
4391 am__minus_obj=
4392 ;;
4393 none) break ;;
4394 esac
4395 if depmode=$depmode \
4396 source=sub/conftest.c object=$am__obj \
4397 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4398 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4399 >/dev/null 2>conftest.err &&
4400 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4401 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4402 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4403 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4404 # icc doesn't choke on unknown options, it will just issue warnings
4405 # or remarks (even with -Werror). So we grep stderr for any message
4406 # that says an option was ignored or not supported.
4407 # When given -MP, icc 7.0 and 7.1 complain thusly:
4408 # icc: Command line warning: ignoring option '-M'; no argument required
4409 # The diagnosis changed in icc 8.0:
4410 # icc: Command line remark: option '-MP' not supported
4411 if (grep 'ignoring option' conftest.err ||
4412 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4413 am_cv_CC_dependencies_compiler_type=$depmode
4414 break
4415 fi
4416 fi
4417 done
4418
4419 cd ..
4420 rm -rf conftest.dir
4421 else
4422 am_cv_CC_dependencies_compiler_type=none
4423 fi
4424
4425 fi
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4427 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4428 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4429
4430 if
4431 test "x$enable_dependency_tracking" != xno \
4432 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4433 am__fastdepCC_TRUE=
4434 am__fastdepCC_FALSE='#'
4435 else
4436 am__fastdepCC_TRUE='#'
4437 am__fastdepCC_FALSE=
4438 fi
4439
4440
4441
4442
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4444 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4445 # Check whether --enable-maintainer-mode was given.
4446 if test "${enable_maintainer_mode+set}" = set; then :
4447 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4448 else
4449 USE_MAINTAINER_MODE=no
4450 fi
4451
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4453 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4454 if test $USE_MAINTAINER_MODE = yes; then
4455 MAINTAINER_MODE_TRUE=
4456 MAINTAINER_MODE_FALSE='#'
4457 else
4458 MAINTAINER_MODE_TRUE='#'
4459 MAINTAINER_MODE_FALSE=
4460 fi
4461
4462 MAINT=$MAINTAINER_MODE_TRUE
4463
4464
4465
4466 case `pwd` in
4467 *\ * | *\ *)
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4469 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4470 esac
4471
4472
4473
4474 macro_version='2.2.7a'
4475 macro_revision='1.3134'
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489 ltmain="$ac_aux_dir/ltmain.sh"
4490
4491 # Backslashify metacharacters that are still active within
4492 # double-quoted strings.
4493 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4494
4495 # Same as above, but do not quote variable references.
4496 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4497
4498 # Sed substitution to delay expansion of an escaped shell variable in a
4499 # double_quote_subst'ed string.
4500 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4501
4502 # Sed substitution to delay expansion of an escaped single quote.
4503 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4504
4505 # Sed substitution to avoid accidental globbing in evaled expressions
4506 no_glob_subst='s/\*/\\\*/g'
4507
4508 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4509 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4510 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4511
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4513 $as_echo_n "checking how to print strings... " >&6; }
4514 # Test print first, because it will be a builtin if present.
4515 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4516 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4517 ECHO='print -r --'
4518 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4519 ECHO='printf %s\n'
4520 else
4521 # Use this function as a fallback that always works.
4522 func_fallback_echo ()
4523 {
4524 eval 'cat <<_LTECHO_EOF
4525 $1
4526 _LTECHO_EOF'
4527 }
4528 ECHO='func_fallback_echo'
4529 fi
4530
4531 # func_echo_all arg...
4532 # Invoke $ECHO with all args, space-separated.
4533 func_echo_all ()
4534 {
4535 $ECHO ""
4536 }
4537
4538 case "$ECHO" in
4539 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4540 $as_echo "printf" >&6; } ;;
4541 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4542 $as_echo "print -r" >&6; } ;;
4543 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4544 $as_echo "cat" >&6; } ;;
4545 esac
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4561 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4562 if test "${ac_cv_path_SED+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564 else
4565 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4566 for ac_i in 1 2 3 4 5 6 7; do
4567 ac_script="$ac_script$as_nl$ac_script"
4568 done
4569 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4570 { ac_script=; unset ac_script;}
4571 if test -z "$SED"; then
4572 ac_path_SED_found=false
4573 # Loop through the user's path and test for each of PROGNAME-LIST
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4576 do
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_prog in sed gsed; do
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4582 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4583 # Check for GNU ac_path_SED and select it if it is found.
4584 # Check for GNU $ac_path_SED
4585 case `"$ac_path_SED" --version 2>&1` in
4586 *GNU*)
4587 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4588 *)
4589 ac_count=0
4590 $as_echo_n 0123456789 >"conftest.in"
4591 while :
4592 do
4593 cat "conftest.in" "conftest.in" >"conftest.tmp"
4594 mv "conftest.tmp" "conftest.in"
4595 cp "conftest.in" "conftest.nl"
4596 $as_echo '' >> "conftest.nl"
4597 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4598 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4599 as_fn_arith $ac_count + 1 && ac_count=$as_val
4600 if test $ac_count -gt ${ac_path_SED_max-0}; then
4601 # Best one so far, save it but keep looking for a better one
4602 ac_cv_path_SED="$ac_path_SED"
4603 ac_path_SED_max=$ac_count
4604 fi
4605 # 10*(2^10) chars as input seems more than enough
4606 test $ac_count -gt 10 && break
4607 done
4608 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4609 esac
4610
4611 $ac_path_SED_found && break 3
4612 done
4613 done
4614 done
4615 IFS=$as_save_IFS
4616 if test -z "$ac_cv_path_SED"; then
4617 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4618 fi
4619 else
4620 ac_cv_path_SED=$SED
4621 fi
4622
4623 fi
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4625 $as_echo "$ac_cv_path_SED" >&6; }
4626 SED="$ac_cv_path_SED"
4627 rm -f conftest.sed
4628
4629 test -z "$SED" && SED=sed
4630 Xsed="$SED -e 1s/^X//"
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4643 $as_echo_n "checking for fgrep... " >&6; }
4644 if test "${ac_cv_path_FGREP+set}" = set; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4648 then ac_cv_path_FGREP="$GREP -F"
4649 else
4650 if test -z "$FGREP"; then
4651 ac_path_FGREP_found=false
4652 # Loop through the user's path and test for each of PROGNAME-LIST
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4655 do
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_prog in fgrep; do
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4661 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4662 # Check for GNU ac_path_FGREP and select it if it is found.
4663 # Check for GNU $ac_path_FGREP
4664 case `"$ac_path_FGREP" --version 2>&1` in
4665 *GNU*)
4666 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4667 *)
4668 ac_count=0
4669 $as_echo_n 0123456789 >"conftest.in"
4670 while :
4671 do
4672 cat "conftest.in" "conftest.in" >"conftest.tmp"
4673 mv "conftest.tmp" "conftest.in"
4674 cp "conftest.in" "conftest.nl"
4675 $as_echo 'FGREP' >> "conftest.nl"
4676 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4678 as_fn_arith $ac_count + 1 && ac_count=$as_val
4679 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4680 # Best one so far, save it but keep looking for a better one
4681 ac_cv_path_FGREP="$ac_path_FGREP"
4682 ac_path_FGREP_max=$ac_count
4683 fi
4684 # 10*(2^10) chars as input seems more than enough
4685 test $ac_count -gt 10 && break
4686 done
4687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4688 esac
4689
4690 $ac_path_FGREP_found && break 3
4691 done
4692 done
4693 done
4694 IFS=$as_save_IFS
4695 if test -z "$ac_cv_path_FGREP"; then
4696 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4697 fi
4698 else
4699 ac_cv_path_FGREP=$FGREP
4700 fi
4701
4702 fi
4703 fi
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4705 $as_echo "$ac_cv_path_FGREP" >&6; }
4706 FGREP="$ac_cv_path_FGREP"
4707
4708
4709 test -z "$GREP" && GREP=grep
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729 # Check whether --with-gnu-ld was given.
4730 if test "${with_gnu_ld+set}" = set; then :
4731 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4732 else
4733 with_gnu_ld=no
4734 fi
4735
4736 ac_prog=ld
4737 if test "$GCC" = yes; then
4738 # Check if gcc -print-prog-name=ld gives a path.
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4740 $as_echo_n "checking for ld used by $CC... " >&6; }
4741 case $host in
4742 *-*-mingw*)
4743 # gcc leaves a trailing carriage return which upsets mingw
4744 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4745 *)
4746 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4747 esac
4748 case $ac_prog in
4749 # Accept absolute paths.
4750 [\\/]* | ?:[\\/]*)
4751 re_direlt='/[^/][^/]*/\.\./'
4752 # Canonicalize the pathname of ld
4753 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4754 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4755 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4756 done
4757 test -z "$LD" && LD="$ac_prog"
4758 ;;
4759 "")
4760 # If it fails, then pretend we aren't using GCC.
4761 ac_prog=ld
4762 ;;
4763 *)
4764 # If it is relative, then search for the first ld in PATH.
4765 with_gnu_ld=unknown
4766 ;;
4767 esac
4768 elif test "$with_gnu_ld" = yes; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4770 $as_echo_n "checking for GNU ld... " >&6; }
4771 else
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4773 $as_echo_n "checking for non-GNU ld... " >&6; }
4774 fi
4775 if test "${lt_cv_path_LD+set}" = set; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 if test -z "$LD"; then
4779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4780 for ac_dir in $PATH; do
4781 IFS="$lt_save_ifs"
4782 test -z "$ac_dir" && ac_dir=.
4783 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4784 lt_cv_path_LD="$ac_dir/$ac_prog"
4785 # Check to see if the program is GNU ld. I'd rather use --version,
4786 # but apparently some variants of GNU ld only accept -v.
4787 # Break only if it was the GNU/non-GNU ld that we prefer.
4788 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4789 *GNU* | *'with BFD'*)
4790 test "$with_gnu_ld" != no && break
4791 ;;
4792 *)
4793 test "$with_gnu_ld" != yes && break
4794 ;;
4795 esac
4796 fi
4797 done
4798 IFS="$lt_save_ifs"
4799 else
4800 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4801 fi
4802 fi
4803
4804 LD="$lt_cv_path_LD"
4805 if test -n "$LD"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4807 $as_echo "$LD" >&6; }
4808 else
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4811 fi
4812 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4814 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4815 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4819 case `$LD -v 2>&1 </dev/null` in
4820 *GNU* | *'with BFD'*)
4821 lt_cv_prog_gnu_ld=yes
4822 ;;
4823 *)
4824 lt_cv_prog_gnu_ld=no
4825 ;;
4826 esac
4827 fi
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4829 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4830 with_gnu_ld=$lt_cv_prog_gnu_ld
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4841 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4842 if test "${lt_cv_path_NM+set}" = set; then :
4843 $as_echo_n "(cached) " >&6
4844 else
4845 if test -n "$NM"; then
4846 # Let the user override the test.
4847 lt_cv_path_NM="$NM"
4848 else
4849 lt_nm_to_check="${ac_tool_prefix}nm"
4850 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4851 lt_nm_to_check="$lt_nm_to_check nm"
4852 fi
4853 for lt_tmp_nm in $lt_nm_to_check; do
4854 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4855 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4856 IFS="$lt_save_ifs"
4857 test -z "$ac_dir" && ac_dir=.
4858 tmp_nm="$ac_dir/$lt_tmp_nm"
4859 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4860 # Check to see if the nm accepts a BSD-compat flag.
4861 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4862 # nm: unknown option "B" ignored
4863 # Tru64's nm complains that /dev/null is an invalid object file
4864 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4865 */dev/null* | *'Invalid file or object type'*)
4866 lt_cv_path_NM="$tmp_nm -B"
4867 break
4868 ;;
4869 *)
4870 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4871 */dev/null*)
4872 lt_cv_path_NM="$tmp_nm -p"
4873 break
4874 ;;
4875 *)
4876 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4877 continue # so that we can try to find one that supports BSD flags
4878 ;;
4879 esac
4880 ;;
4881 esac
4882 fi
4883 done
4884 IFS="$lt_save_ifs"
4885 done
4886 : ${lt_cv_path_NM=no}
4887 fi
4888 fi
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4890 $as_echo "$lt_cv_path_NM" >&6; }
4891 if test "$lt_cv_path_NM" != "no"; then
4892 NM="$lt_cv_path_NM"
4893 else
4894 # Didn't find any BSD compatible name lister, look for dumpbin.
4895 if test -n "$DUMPBIN"; then :
4896 # Let the user override the test.
4897 else
4898 if test -n "$ac_tool_prefix"; then
4899 for ac_prog in dumpbin "link -dump"
4900 do
4901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 $as_echo_n "checking for $ac_word... " >&6; }
4905 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4906 $as_echo_n "(cached) " >&6
4907 else
4908 if test -n "$DUMPBIN"; then
4909 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4921 fi
4922 done
4923 done
4924 IFS=$as_save_IFS
4925
4926 fi
4927 fi
4928 DUMPBIN=$ac_cv_prog_DUMPBIN
4929 if test -n "$DUMPBIN"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4931 $as_echo "$DUMPBIN" >&6; }
4932 else
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4935 fi
4936
4937
4938 test -n "$DUMPBIN" && break
4939 done
4940 fi
4941 if test -z "$DUMPBIN"; then
4942 ac_ct_DUMPBIN=$DUMPBIN
4943 for ac_prog in dumpbin "link -dump"
4944 do
4945 # Extract the first word of "$ac_prog", so it can be a program name with args.
4946 set dummy $ac_prog; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 if test -n "$ac_ct_DUMPBIN"; then
4953 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4965 fi
4966 done
4967 done
4968 IFS=$as_save_IFS
4969
4970 fi
4971 fi
4972 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4973 if test -n "$ac_ct_DUMPBIN"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4975 $as_echo "$ac_ct_DUMPBIN" >&6; }
4976 else
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4979 fi
4980
4981
4982 test -n "$ac_ct_DUMPBIN" && break
4983 done
4984
4985 if test "x$ac_ct_DUMPBIN" = x; then
4986 DUMPBIN=":"
4987 else
4988 case $cross_compiling:$ac_tool_warned in
4989 yes:)
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4992 ac_tool_warned=yes ;;
4993 esac
4994 DUMPBIN=$ac_ct_DUMPBIN
4995 fi
4996 fi
4997
4998 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4999 *COFF*)
5000 DUMPBIN="$DUMPBIN -symbols"
5001 ;;
5002 *)
5003 DUMPBIN=:
5004 ;;
5005 esac
5006 fi
5007
5008 if test "$DUMPBIN" != ":"; then
5009 NM="$DUMPBIN"
5010 fi
5011 fi
5012 test -z "$NM" && NM=nm
5013
5014
5015
5016
5017
5018
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5020 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5021 if test "${lt_cv_nm_interface+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 lt_cv_nm_interface="BSD nm"
5025 echo "int some_variable = 0;" > conftest.$ac_ext
5026 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5027 (eval "$ac_compile" 2>conftest.err)
5028 cat conftest.err >&5
5029 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5030 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5031 cat conftest.err >&5
5032 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5033 cat conftest.out >&5
5034 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5035 lt_cv_nm_interface="MS dumpbin"
5036 fi
5037 rm -f conftest*
5038 fi
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5040 $as_echo "$lt_cv_nm_interface" >&6; }
5041
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5043 $as_echo_n "checking whether ln -s works... " >&6; }
5044 LN_S=$as_ln_s
5045 if test "$LN_S" = "ln -s"; then
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5047 $as_echo "yes" >&6; }
5048 else
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5050 $as_echo "no, using $LN_S" >&6; }
5051 fi
5052
5053 # find the maximum length of command line arguments
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5055 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5056 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 i=0
5060 teststring="ABCD"
5061
5062 case $build_os in
5063 msdosdjgpp*)
5064 # On DJGPP, this test can blow up pretty badly due to problems in libc
5065 # (any single argument exceeding 2000 bytes causes a buffer overrun
5066 # during glob expansion). Even if it were fixed, the result of this
5067 # check would be larger than it should be.
5068 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5069 ;;
5070
5071 gnu*)
5072 # Under GNU Hurd, this test is not required because there is
5073 # no limit to the length of command line arguments.
5074 # Libtool will interpret -1 as no limit whatsoever
5075 lt_cv_sys_max_cmd_len=-1;
5076 ;;
5077
5078 cygwin* | mingw* | cegcc*)
5079 # On Win9x/ME, this test blows up -- it succeeds, but takes
5080 # about 5 minutes as the teststring grows exponentially.
5081 # Worse, since 9x/ME are not pre-emptively multitasking,
5082 # you end up with a "frozen" computer, even though with patience
5083 # the test eventually succeeds (with a max line length of 256k).
5084 # Instead, let's just punt: use the minimum linelength reported by
5085 # all of the supported platforms: 8192 (on NT/2K/XP).
5086 lt_cv_sys_max_cmd_len=8192;
5087 ;;
5088
5089 mint*)
5090 # On MiNT this can take a long time and run out of memory.
5091 lt_cv_sys_max_cmd_len=8192;
5092 ;;
5093
5094 amigaos*)
5095 # On AmigaOS with pdksh, this test takes hours, literally.
5096 # So we just punt and use a minimum line length of 8192.
5097 lt_cv_sys_max_cmd_len=8192;
5098 ;;
5099
5100 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5101 # This has been around since 386BSD, at least. Likely further.
5102 if test -x /sbin/sysctl; then
5103 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5104 elif test -x /usr/sbin/sysctl; then
5105 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5106 else
5107 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5108 fi
5109 # And add a safety zone
5110 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5111 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5112 ;;
5113
5114 interix*)
5115 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5116 lt_cv_sys_max_cmd_len=196608
5117 ;;
5118
5119 osf*)
5120 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5121 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5122 # nice to cause kernel panics so lets avoid the loop below.
5123 # First set a reasonable default.
5124 lt_cv_sys_max_cmd_len=16384
5125 #
5126 if test -x /sbin/sysconfig; then
5127 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5128 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5129 esac
5130 fi
5131 ;;
5132 sco3.2v5*)
5133 lt_cv_sys_max_cmd_len=102400
5134 ;;
5135 sysv5* | sco5v6* | sysv4.2uw2*)
5136 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5137 if test -n "$kargmax"; then
5138 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5139 else
5140 lt_cv_sys_max_cmd_len=32768
5141 fi
5142 ;;
5143 *)
5144 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5145 if test -n "$lt_cv_sys_max_cmd_len"; then
5146 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5148 else
5149 # Make teststring a little bigger before we do anything with it.
5150 # a 1K string should be a reasonable start.
5151 for i in 1 2 3 4 5 6 7 8 ; do
5152 teststring=$teststring$teststring
5153 done
5154 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5155 # If test is not a shell built-in, we'll probably end up computing a
5156 # maximum length that is only half of the actual maximum length, but
5157 # we can't tell.
5158 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5159 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5160 test $i != 17 # 1/2 MB should be enough
5161 do
5162 i=`expr $i + 1`
5163 teststring=$teststring$teststring
5164 done
5165 # Only check the string length outside the loop.
5166 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5167 teststring=
5168 # Add a significant safety factor because C++ compilers can tack on
5169 # massive amounts of additional arguments before passing them to the
5170 # linker. It appears as though 1/2 is a usable value.
5171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5172 fi
5173 ;;
5174 esac
5175
5176 fi
5177
5178 if test -n $lt_cv_sys_max_cmd_len ; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5180 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5181 else
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5183 $as_echo "none" >&6; }
5184 fi
5185 max_cmd_len=$lt_cv_sys_max_cmd_len
5186
5187
5188
5189
5190
5191
5192 : ${CP="cp -f"}
5193 : ${MV="mv -f"}
5194 : ${RM="rm -f"}
5195
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5197 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5198 # Try some XSI features
5199 xsi_shell=no
5200 ( _lt_dummy="a/b/c"
5201 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5202 = c,a/b,, \
5203 && eval 'test $(( 1 + 1 )) -eq 2 \
5204 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5205 && xsi_shell=yes
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5207 $as_echo "$xsi_shell" >&6; }
5208
5209
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5211 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5212 lt_shell_append=no
5213 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5214 >/dev/null 2>&1 \
5215 && lt_shell_append=yes
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5217 $as_echo "$lt_shell_append" >&6; }
5218
5219
5220 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5221 lt_unset=unset
5222 else
5223 lt_unset=false
5224 fi
5225
5226
5227
5228
5229
5230 # test EBCDIC or ASCII
5231 case `echo X|tr X '\101'` in
5232 A) # ASCII based system
5233 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5234 lt_SP2NL='tr \040 \012'
5235 lt_NL2SP='tr \015\012 \040\040'
5236 ;;
5237 *) # EBCDIC based system
5238 lt_SP2NL='tr \100 \n'
5239 lt_NL2SP='tr \r\n \100\100'
5240 ;;
5241 esac
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5252 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5253 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5254 $as_echo_n "(cached) " >&6
5255 else
5256 lt_cv_ld_reload_flag='-r'
5257 fi
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5259 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5260 reload_flag=$lt_cv_ld_reload_flag
5261 case $reload_flag in
5262 "" | " "*) ;;
5263 *) reload_flag=" $reload_flag" ;;
5264 esac
5265 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5266 case $host_os in
5267 darwin*)
5268 if test "$GCC" = yes; then
5269 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5270 else
5271 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5272 fi
5273 ;;
5274 esac
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284 if test -n "$ac_tool_prefix"; then
5285 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5286 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 if test -n "$OBJDUMP"; then
5293 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5294 else
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5297 do
5298 IFS=$as_save_IFS
5299 test -z "$as_dir" && as_dir=.
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5302 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 break 2
5305 fi
5306 done
5307 done
5308 IFS=$as_save_IFS
5309
5310 fi
5311 fi
5312 OBJDUMP=$ac_cv_prog_OBJDUMP
5313 if test -n "$OBJDUMP"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5315 $as_echo "$OBJDUMP" >&6; }
5316 else
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5319 fi
5320
5321
5322 fi
5323 if test -z "$ac_cv_prog_OBJDUMP"; then
5324 ac_ct_OBJDUMP=$OBJDUMP
5325 # Extract the first word of "objdump", so it can be a program name with args.
5326 set dummy objdump; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 if test -n "$ac_ct_OBJDUMP"; then
5333 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5337 do
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5342 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 break 2
5345 fi
5346 done
5347 done
5348 IFS=$as_save_IFS
5349
5350 fi
5351 fi
5352 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5353 if test -n "$ac_ct_OBJDUMP"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5355 $as_echo "$ac_ct_OBJDUMP" >&6; }
5356 else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5359 fi
5360
5361 if test "x$ac_ct_OBJDUMP" = x; then
5362 OBJDUMP="false"
5363 else
5364 case $cross_compiling:$ac_tool_warned in
5365 yes:)
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5368 ac_tool_warned=yes ;;
5369 esac
5370 OBJDUMP=$ac_ct_OBJDUMP
5371 fi
5372 else
5373 OBJDUMP="$ac_cv_prog_OBJDUMP"
5374 fi
5375
5376 test -z "$OBJDUMP" && OBJDUMP=objdump
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5387 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5388 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 lt_cv_file_magic_cmd='$MAGIC_CMD'
5392 lt_cv_file_magic_test_file=
5393 lt_cv_deplibs_check_method='unknown'
5394 # Need to set the preceding variable on all platforms that support
5395 # interlibrary dependencies.
5396 # 'none' -- dependencies not supported.
5397 # `unknown' -- same as none, but documents that we really don't know.
5398 # 'pass_all' -- all dependencies passed with no checks.
5399 # 'test_compile' -- check by making test program.
5400 # 'file_magic [[regex]]' -- check by looking for files in library path
5401 # which responds to the $file_magic_cmd with a given extended regex.
5402 # If you have `file' or equivalent on your system and you're not sure
5403 # whether `pass_all' will *always* work, you probably want this one.
5404
5405 case $host_os in
5406 aix[4-9]*)
5407 lt_cv_deplibs_check_method=pass_all
5408 ;;
5409
5410 beos*)
5411 lt_cv_deplibs_check_method=pass_all
5412 ;;
5413
5414 bsdi[45]*)
5415 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5416 lt_cv_file_magic_cmd='/usr/bin/file -L'
5417 lt_cv_file_magic_test_file=/shlib/libc.so
5418 ;;
5419
5420 cygwin*)
5421 # func_win32_libid is a shell function defined in ltmain.sh
5422 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5423 lt_cv_file_magic_cmd='func_win32_libid'
5424 ;;
5425
5426 mingw* | pw32*)
5427 # Base MSYS/MinGW do not provide the 'file' command needed by
5428 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5429 # unless we find 'file', for example because we are cross-compiling.
5430 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5431 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5432 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5433 lt_cv_file_magic_cmd='func_win32_libid'
5434 else
5435 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5436 lt_cv_file_magic_cmd='$OBJDUMP -f'
5437 fi
5438 ;;
5439
5440 cegcc*)
5441 # use the weaker test based on 'objdump'. See mingw*.
5442 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5443 lt_cv_file_magic_cmd='$OBJDUMP -f'
5444 ;;
5445
5446 darwin* | rhapsody*)
5447 lt_cv_deplibs_check_method=pass_all
5448 ;;
5449
5450 freebsd* | dragonfly*)
5451 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5452 case $host_cpu in
5453 i*86 )
5454 # Not sure whether the presence of OpenBSD here was a mistake.
5455 # Let's accept both of them until this is cleared up.
5456 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5457 lt_cv_file_magic_cmd=/usr/bin/file
5458 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5459 ;;
5460 esac
5461 else
5462 lt_cv_deplibs_check_method=pass_all
5463 fi
5464 ;;
5465
5466 gnu*)
5467 lt_cv_deplibs_check_method=pass_all
5468 ;;
5469
5470 haiku*)
5471 lt_cv_deplibs_check_method=pass_all
5472 ;;
5473
5474 hpux10.20* | hpux11*)
5475 lt_cv_file_magic_cmd=/usr/bin/file
5476 case $host_cpu in
5477 ia64*)
5478 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5479 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5480 ;;
5481 hppa*64*)
5482 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]'
5483 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5484 ;;
5485 *)
5486 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5487 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5488 ;;
5489 esac
5490 ;;
5491
5492 interix[3-9]*)
5493 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5495 ;;
5496
5497 irix5* | irix6* | nonstopux*)
5498 case $LD in
5499 *-32|*"-32 ") libmagic=32-bit;;
5500 *-n32|*"-n32 ") libmagic=N32;;
5501 *-64|*"-64 ") libmagic=64-bit;;
5502 *) libmagic=never-match;;
5503 esac
5504 lt_cv_deplibs_check_method=pass_all
5505 ;;
5506
5507 # This must be Linux ELF.
5508 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5509 lt_cv_deplibs_check_method=pass_all
5510 ;;
5511
5512 netbsd*)
5513 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5515 else
5516 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5517 fi
5518 ;;
5519
5520 newos6*)
5521 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5522 lt_cv_file_magic_cmd=/usr/bin/file
5523 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5524 ;;
5525
5526 *nto* | *qnx*)
5527 lt_cv_deplibs_check_method=pass_all
5528 ;;
5529
5530 openbsd*)
5531 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5533 else
5534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5535 fi
5536 ;;
5537
5538 osf3* | osf4* | osf5*)
5539 lt_cv_deplibs_check_method=pass_all
5540 ;;
5541
5542 rdos*)
5543 lt_cv_deplibs_check_method=pass_all
5544 ;;
5545
5546 solaris*)
5547 lt_cv_deplibs_check_method=pass_all
5548 ;;
5549
5550 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5551 lt_cv_deplibs_check_method=pass_all
5552 ;;
5553
5554 sysv4 | sysv4.3*)
5555 case $host_vendor in
5556 motorola)
5557 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]'
5558 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5559 ;;
5560 ncr)
5561 lt_cv_deplibs_check_method=pass_all
5562 ;;
5563 sequent)
5564 lt_cv_file_magic_cmd='/bin/file'
5565 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5566 ;;
5567 sni)
5568 lt_cv_file_magic_cmd='/bin/file'
5569 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5570 lt_cv_file_magic_test_file=/lib/libc.so
5571 ;;
5572 siemens)
5573 lt_cv_deplibs_check_method=pass_all
5574 ;;
5575 pc)
5576 lt_cv_deplibs_check_method=pass_all
5577 ;;
5578 esac
5579 ;;
5580
5581 tpf*)
5582 lt_cv_deplibs_check_method=pass_all
5583 ;;
5584 esac
5585
5586 fi
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5588 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5589 file_magic_cmd=$lt_cv_file_magic_cmd
5590 deplibs_check_method=$lt_cv_deplibs_check_method
5591 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604 if test -n "$ac_tool_prefix"; then
5605 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5606 set dummy ${ac_tool_prefix}ar; ac_word=$2
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if test "${ac_cv_prog_AR+set}" = set; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5612 if test -n "$AR"; then
5613 ac_cv_prog_AR="$AR" # Let the user override the test.
5614 else
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5617 do
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5622 ac_cv_prog_AR="${ac_tool_prefix}ar"
5623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
5625 fi
5626 done
5627 done
5628 IFS=$as_save_IFS
5629
5630 fi
5631 fi
5632 AR=$ac_cv_prog_AR
5633 if test -n "$AR"; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5635 $as_echo "$AR" >&6; }
5636 else
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 $as_echo "no" >&6; }
5639 fi
5640
5641
5642 fi
5643 if test -z "$ac_cv_prog_AR"; then
5644 ac_ct_AR=$AR
5645 # Extract the first word of "ar", so it can be a program name with args.
5646 set dummy ar; ac_word=$2
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5650 $as_echo_n "(cached) " >&6
5651 else
5652 if test -n "$ac_ct_AR"; then
5653 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5654 else
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 for as_dir in $PATH
5657 do
5658 IFS=$as_save_IFS
5659 test -z "$as_dir" && as_dir=.
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5662 ac_cv_prog_ac_ct_AR="ar"
5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664 break 2
5665 fi
5666 done
5667 done
5668 IFS=$as_save_IFS
5669
5670 fi
5671 fi
5672 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5673 if test -n "$ac_ct_AR"; then
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5675 $as_echo "$ac_ct_AR" >&6; }
5676 else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 $as_echo "no" >&6; }
5679 fi
5680
5681 if test "x$ac_ct_AR" = x; then
5682 AR="false"
5683 else
5684 case $cross_compiling:$ac_tool_warned in
5685 yes:)
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5688 ac_tool_warned=yes ;;
5689 esac
5690 AR=$ac_ct_AR
5691 fi
5692 else
5693 AR="$ac_cv_prog_AR"
5694 fi
5695
5696 test -z "$AR" && AR=ar
5697 test -z "$AR_FLAGS" && AR_FLAGS=cru
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709 if test -n "$ac_tool_prefix"; then
5710 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5711 set dummy ${ac_tool_prefix}strip; ac_word=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713 $as_echo_n "checking for $ac_word... " >&6; }
5714 if test "${ac_cv_prog_STRIP+set}" = set; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 if test -n "$STRIP"; then
5718 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5719 else
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 for as_dir in $PATH
5722 do
5723 IFS=$as_save_IFS
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5727 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 break 2
5730 fi
5731 done
5732 done
5733 IFS=$as_save_IFS
5734
5735 fi
5736 fi
5737 STRIP=$ac_cv_prog_STRIP
5738 if test -n "$STRIP"; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5740 $as_echo "$STRIP" >&6; }
5741 else
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743 $as_echo "no" >&6; }
5744 fi
5745
5746
5747 fi
5748 if test -z "$ac_cv_prog_STRIP"; then
5749 ac_ct_STRIP=$STRIP
5750 # Extract the first word of "strip", so it can be a program name with args.
5751 set dummy strip; ac_word=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 if test -n "$ac_ct_STRIP"; then
5758 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5759 else
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5762 do
5763 IFS=$as_save_IFS
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5767 ac_cv_prog_ac_ct_STRIP="strip"
5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 break 2
5770 fi
5771 done
5772 done
5773 IFS=$as_save_IFS
5774
5775 fi
5776 fi
5777 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5778 if test -n "$ac_ct_STRIP"; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5780 $as_echo "$ac_ct_STRIP" >&6; }
5781 else
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 $as_echo "no" >&6; }
5784 fi
5785
5786 if test "x$ac_ct_STRIP" = x; then
5787 STRIP=":"
5788 else
5789 case $cross_compiling:$ac_tool_warned in
5790 yes:)
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5793 ac_tool_warned=yes ;;
5794 esac
5795 STRIP=$ac_ct_STRIP
5796 fi
5797 else
5798 STRIP="$ac_cv_prog_STRIP"
5799 fi
5800
5801 test -z "$STRIP" && STRIP=:
5802
5803
5804
5805
5806
5807
5808 if test -n "$ac_tool_prefix"; then
5809 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5810 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812 $as_echo_n "checking for $ac_word... " >&6; }
5813 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 if test -n "$RANLIB"; then
5817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5818 else
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5821 do
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 break 2
5829 fi
5830 done
5831 done
5832 IFS=$as_save_IFS
5833
5834 fi
5835 fi
5836 RANLIB=$ac_cv_prog_RANLIB
5837 if test -n "$RANLIB"; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5839 $as_echo "$RANLIB" >&6; }
5840 else
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5843 fi
5844
5845
5846 fi
5847 if test -z "$ac_cv_prog_RANLIB"; then
5848 ac_ct_RANLIB=$RANLIB
5849 # Extract the first word of "ranlib", so it can be a program name with args.
5850 set dummy ranlib; ac_word=$2
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852 $as_echo_n "checking for $ac_word... " >&6; }
5853 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5856 if test -n "$ac_ct_RANLIB"; then
5857 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866 ac_cv_prog_ac_ct_RANLIB="ranlib"
5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 break 2
5869 fi
5870 done
5871 done
5872 IFS=$as_save_IFS
5873
5874 fi
5875 fi
5876 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5877 if test -n "$ac_ct_RANLIB"; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5879 $as_echo "$ac_ct_RANLIB" >&6; }
5880 else
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882 $as_echo "no" >&6; }
5883 fi
5884
5885 if test "x$ac_ct_RANLIB" = x; then
5886 RANLIB=":"
5887 else
5888 case $cross_compiling:$ac_tool_warned in
5889 yes:)
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5892 ac_tool_warned=yes ;;
5893 esac
5894 RANLIB=$ac_ct_RANLIB
5895 fi
5896 else
5897 RANLIB="$ac_cv_prog_RANLIB"
5898 fi
5899
5900 test -z "$RANLIB" && RANLIB=:
5901
5902
5903
5904
5905
5906
5907 # Determine commands to create old-style static archives.
5908 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5909 old_postinstall_cmds='chmod 644 $oldlib'
5910 old_postuninstall_cmds=
5911
5912 if test -n "$RANLIB"; then
5913 case $host_os in
5914 openbsd*)
5915 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5916 ;;
5917 *)
5918 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5919 ;;
5920 esac
5921 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5922 fi
5923
5924 case $host_os in
5925 darwin*)
5926 lock_old_archive_extraction=yes ;;
5927 *)
5928 lock_old_archive_extraction=no ;;
5929 esac
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
5964
5965
5966
5967
5968
5969 # If no C compiler was specified, use CC.
5970 LTCC=${LTCC-"$CC"}
5971
5972 # If no C compiler flags were specified, use CFLAGS.
5973 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5974
5975 # Allow CC to be a program name with arguments.
5976 compiler=$CC
5977
5978
5979 # Check for command to grab the raw symbol name followed by C symbol from nm.
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5981 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5982 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5983 $as_echo_n "(cached) " >&6
5984 else
5985
5986 # These are sane defaults that work on at least a few old systems.
5987 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5988
5989 # Character class describing NM global symbol codes.
5990 symcode='[BCDEGRST]'
5991
5992 # Regexp to match symbols that can be accessed directly from C.
5993 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5994
5995 # Define system-specific variables.
5996 case $host_os in
5997 aix*)
5998 symcode='[BCDT]'
5999 ;;
6000 cygwin* | mingw* | pw32* | cegcc*)
6001 symcode='[ABCDGISTW]'
6002 ;;
6003 hpux*)
6004 if test "$host_cpu" = ia64; then
6005 symcode='[ABCDEGRST]'
6006 fi
6007 ;;
6008 irix* | nonstopux*)
6009 symcode='[BCDEGRST]'
6010 ;;
6011 osf*)
6012 symcode='[BCDEGQRST]'
6013 ;;
6014 solaris*)
6015 symcode='[BDRT]'
6016 ;;
6017 sco3.2v5*)
6018 symcode='[DT]'
6019 ;;
6020 sysv4.2uw2*)
6021 symcode='[DT]'
6022 ;;
6023 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6024 symcode='[ABDT]'
6025 ;;
6026 sysv4)
6027 symcode='[DFNSTU]'
6028 ;;
6029 esac
6030
6031 # If we're using GNU nm, then use its standard symbol codes.
6032 case `$NM -V 2>&1` in
6033 *GNU* | *'with BFD'*)
6034 symcode='[ABCDGIRSTW]' ;;
6035 esac
6036
6037 # Transform an extracted symbol line into a proper C declaration.
6038 # Some systems (esp. on ia64) link data and code symbols differently,
6039 # so use this general approach.
6040 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6041
6042 # Transform an extracted symbol line into symbol name and symbol address
6043 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6044 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'"
6045
6046 # Handle CRLF in mingw tool chain
6047 opt_cr=
6048 case $build_os in
6049 mingw*)
6050 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6051 ;;
6052 esac
6053
6054 # Try without a prefix underscore, then with it.
6055 for ac_symprfx in "" "_"; do
6056
6057 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6058 symxfrm="\\1 $ac_symprfx\\2 \\2"
6059
6060 # Write the raw and C identifiers.
6061 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6062 # Fake it for dumpbin and say T for any non-static function
6063 # and D for any global variable.
6064 # Also find C++ and __fastcall symbols from MSVC++,
6065 # which start with @ or ?.
6066 lt_cv_sys_global_symbol_pipe="$AWK '"\
6067 " {last_section=section; section=\$ 3};"\
6068 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6069 " \$ 0!~/External *\|/{next};"\
6070 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6071 " {if(hide[section]) next};"\
6072 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6073 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6074 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6075 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6076 " ' prfx=^$ac_symprfx"
6077 else
6078 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6079 fi
6080
6081 # Check to see that the pipe works correctly.
6082 pipe_works=no
6083
6084 rm -f conftest*
6085 cat > conftest.$ac_ext <<_LT_EOF
6086 #ifdef __cplusplus
6087 extern "C" {
6088 #endif
6089 char nm_test_var;
6090 void nm_test_func(void);
6091 void nm_test_func(void){}
6092 #ifdef __cplusplus
6093 }
6094 #endif
6095 int main(){nm_test_var='a';nm_test_func();return(0);}
6096 _LT_EOF
6097
6098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6099 (eval $ac_compile) 2>&5
6100 ac_status=$?
6101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6102 test $ac_status = 0; }; then
6103 # Now try to grab the symbols.
6104 nlist=conftest.nm
6105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6106 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6107 ac_status=$?
6108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6109 test $ac_status = 0; } && test -s "$nlist"; then
6110 # Try sorting and uniquifying the output.
6111 if sort "$nlist" | uniq > "$nlist"T; then
6112 mv -f "$nlist"T "$nlist"
6113 else
6114 rm -f "$nlist"T
6115 fi
6116
6117 # Make sure that we snagged all the symbols we need.
6118 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6119 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6120 cat <<_LT_EOF > conftest.$ac_ext
6121 #ifdef __cplusplus
6122 extern "C" {
6123 #endif
6124
6125 _LT_EOF
6126 # Now generate the symbol file.
6127 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6128
6129 cat <<_LT_EOF >> conftest.$ac_ext
6130
6131 /* The mapping between symbol names and symbols. */
6132 const struct {
6133 const char *name;
6134 void *address;
6135 }
6136 lt__PROGRAM__LTX_preloaded_symbols[] =
6137 {
6138 { "@PROGRAM@", (void *) 0 },
6139 _LT_EOF
6140 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6141 cat <<\_LT_EOF >> conftest.$ac_ext
6142 {0, (void *) 0}
6143 };
6144
6145 /* This works around a problem in FreeBSD linker */
6146 #ifdef FREEBSD_WORKAROUND
6147 static const void *lt_preloaded_setup() {
6148 return lt__PROGRAM__LTX_preloaded_symbols;
6149 }
6150 #endif
6151
6152 #ifdef __cplusplus
6153 }
6154 #endif
6155 _LT_EOF
6156 # Now try linking the two files.
6157 mv conftest.$ac_objext conftstm.$ac_objext
6158 lt_save_LIBS="$LIBS"
6159 lt_save_CFLAGS="$CFLAGS"
6160 LIBS="conftstm.$ac_objext"
6161 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6163 (eval $ac_link) 2>&5
6164 ac_status=$?
6165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6166 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6167 pipe_works=yes
6168 fi
6169 LIBS="$lt_save_LIBS"
6170 CFLAGS="$lt_save_CFLAGS"
6171 else
6172 echo "cannot find nm_test_func in $nlist" >&5
6173 fi
6174 else
6175 echo "cannot find nm_test_var in $nlist" >&5
6176 fi
6177 else
6178 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6179 fi
6180 else
6181 echo "$progname: failed program was:" >&5
6182 cat conftest.$ac_ext >&5
6183 fi
6184 rm -rf conftest* conftst*
6185
6186 # Do not use the global_symbol_pipe unless it works.
6187 if test "$pipe_works" = yes; then
6188 break
6189 else
6190 lt_cv_sys_global_symbol_pipe=
6191 fi
6192 done
6193
6194 fi
6195
6196 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6197 lt_cv_sys_global_symbol_to_cdecl=
6198 fi
6199 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6201 $as_echo "failed" >&6; }
6202 else
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6204 $as_echo "ok" >&6; }
6205 fi
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228 # Check whether --enable-libtool-lock was given.
6229 if test "${enable_libtool_lock+set}" = set; then :
6230 enableval=$enable_libtool_lock;
6231 fi
6232
6233 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6234
6235 # Some flags need to be propagated to the compiler or linker for good
6236 # libtool support.
6237 case $host in
6238 ia64-*-hpux*)
6239 # Find out which ABI we are using.
6240 echo 'int i;' > conftest.$ac_ext
6241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6242 (eval $ac_compile) 2>&5
6243 ac_status=$?
6244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6245 test $ac_status = 0; }; then
6246 case `/usr/bin/file conftest.$ac_objext` in
6247 *ELF-32*)
6248 HPUX_IA64_MODE="32"
6249 ;;
6250 *ELF-64*)
6251 HPUX_IA64_MODE="64"
6252 ;;
6253 esac
6254 fi
6255 rm -rf conftest*
6256 ;;
6257 *-*-irix6*)
6258 # Find out which ABI we are using.
6259 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6261 (eval $ac_compile) 2>&5
6262 ac_status=$?
6263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6264 test $ac_status = 0; }; then
6265 if test "$lt_cv_prog_gnu_ld" = yes; then
6266 case `/usr/bin/file conftest.$ac_objext` in
6267 *32-bit*)
6268 LD="${LD-ld} -melf32bsmip"
6269 ;;
6270 *N32*)
6271 LD="${LD-ld} -melf32bmipn32"
6272 ;;
6273 *64-bit*)
6274 LD="${LD-ld} -melf64bmip"
6275 ;;
6276 esac
6277 else
6278 case `/usr/bin/file conftest.$ac_objext` in
6279 *32-bit*)
6280 LD="${LD-ld} -32"
6281 ;;
6282 *N32*)
6283 LD="${LD-ld} -n32"
6284 ;;
6285 *64-bit*)
6286 LD="${LD-ld} -64"
6287 ;;
6288 esac
6289 fi
6290 fi
6291 rm -rf conftest*
6292 ;;
6293
6294 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6295 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6296 # Find out which ABI we are using.
6297 echo 'int i;' > conftest.$ac_ext
6298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6299 (eval $ac_compile) 2>&5
6300 ac_status=$?
6301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6302 test $ac_status = 0; }; then
6303 case `/usr/bin/file conftest.o` in
6304 *32-bit*)
6305 case $host in
6306 x86_64-*kfreebsd*-gnu)
6307 LD="${LD-ld} -m elf_i386_fbsd"
6308 ;;
6309 x86_64-*linux*)
6310 case `/usr/bin/file conftest.o` in
6311 *x86-64*)
6312 LD="${LD-ld} -m elf32_x86_64"
6313 ;;
6314 *)
6315 LD="${LD-ld} -m elf_i386"
6316 ;;
6317 esac
6318 ;;
6319 powerpc64le-*linux*)
6320 LD="${LD-ld} -m elf32lppclinux"
6321 ;;
6322 powerpc64-*linux*)
6323 LD="${LD-ld} -m elf32ppclinux"
6324 ;;
6325 s390x-*linux*)
6326 LD="${LD-ld} -m elf_s390"
6327 ;;
6328 sparc64-*linux*)
6329 LD="${LD-ld} -m elf32_sparc"
6330 ;;
6331 esac
6332 ;;
6333 *64-bit*)
6334 case $host in
6335 x86_64-*kfreebsd*-gnu)
6336 LD="${LD-ld} -m elf_x86_64_fbsd"
6337 ;;
6338 x86_64-*linux*)
6339 LD="${LD-ld} -m elf_x86_64"
6340 ;;
6341 powerpcle-*linux*)
6342 LD="${LD-ld} -m elf64lppc"
6343 ;;
6344 powerpc-*linux*)
6345 LD="${LD-ld} -m elf64ppc"
6346 ;;
6347 s390*-*linux*|s390*-*tpf*)
6348 LD="${LD-ld} -m elf64_s390"
6349 ;;
6350 sparc*-*linux*)
6351 LD="${LD-ld} -m elf64_sparc"
6352 ;;
6353 esac
6354 ;;
6355 esac
6356 fi
6357 rm -rf conftest*
6358 ;;
6359
6360 *-*-sco3.2v5*)
6361 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6362 SAVE_CFLAGS="$CFLAGS"
6363 CFLAGS="$CFLAGS -belf"
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6365 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6366 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 ac_ext=c
6370 ac_cpp='$CPP $CPPFLAGS'
6371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6374
6375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6376 /* end confdefs.h. */
6377
6378 int
6379 main ()
6380 {
6381
6382 ;
6383 return 0;
6384 }
6385 _ACEOF
6386 if ac_fn_c_try_link "$LINENO"; then :
6387 lt_cv_cc_needs_belf=yes
6388 else
6389 lt_cv_cc_needs_belf=no
6390 fi
6391 rm -f core conftest.err conftest.$ac_objext \
6392 conftest$ac_exeext conftest.$ac_ext
6393 ac_ext=c
6394 ac_cpp='$CPP $CPPFLAGS'
6395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6398
6399 fi
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6401 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6402 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6403 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6404 CFLAGS="$SAVE_CFLAGS"
6405 fi
6406 ;;
6407 sparc*-*solaris*)
6408 # Find out which ABI we are using.
6409 echo 'int i;' > conftest.$ac_ext
6410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6411 (eval $ac_compile) 2>&5
6412 ac_status=$?
6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6414 test $ac_status = 0; }; then
6415 case `/usr/bin/file conftest.o` in
6416 *64-bit*)
6417 case $lt_cv_prog_gnu_ld in
6418 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6419 *)
6420 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6421 LD="${LD-ld} -64"
6422 fi
6423 ;;
6424 esac
6425 ;;
6426 esac
6427 fi
6428 rm -rf conftest*
6429 ;;
6430 esac
6431
6432 need_locks="$enable_libtool_lock"
6433
6434
6435 case $host_os in
6436 rhapsody* | darwin*)
6437 if test -n "$ac_tool_prefix"; then
6438 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6439 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 if test -n "$DSYMUTIL"; then
6446 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 break 2
6458 fi
6459 done
6460 done
6461 IFS=$as_save_IFS
6462
6463 fi
6464 fi
6465 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6466 if test -n "$DSYMUTIL"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6468 $as_echo "$DSYMUTIL" >&6; }
6469 else
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6472 fi
6473
6474
6475 fi
6476 if test -z "$ac_cv_prog_DSYMUTIL"; then
6477 ac_ct_DSYMUTIL=$DSYMUTIL
6478 # Extract the first word of "dsymutil", so it can be a program name with args.
6479 set dummy dsymutil; ac_word=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485 if test -n "$ac_ct_DSYMUTIL"; then
6486 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491 IFS=$as_save_IFS
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 break 2
6498 fi
6499 done
6500 done
6501 IFS=$as_save_IFS
6502
6503 fi
6504 fi
6505 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6506 if test -n "$ac_ct_DSYMUTIL"; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6508 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6509 else
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6512 fi
6513
6514 if test "x$ac_ct_DSYMUTIL" = x; then
6515 DSYMUTIL=":"
6516 else
6517 case $cross_compiling:$ac_tool_warned in
6518 yes:)
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6521 ac_tool_warned=yes ;;
6522 esac
6523 DSYMUTIL=$ac_ct_DSYMUTIL
6524 fi
6525 else
6526 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6527 fi
6528
6529 if test -n "$ac_tool_prefix"; then
6530 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533 $as_echo_n "checking for $ac_word... " >&6; }
6534 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 if test -n "$NMEDIT"; then
6538 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543 IFS=$as_save_IFS
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 break 2
6550 fi
6551 done
6552 done
6553 IFS=$as_save_IFS
6554
6555 fi
6556 fi
6557 NMEDIT=$ac_cv_prog_NMEDIT
6558 if test -n "$NMEDIT"; then
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6560 $as_echo "$NMEDIT" >&6; }
6561 else
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6564 fi
6565
6566
6567 fi
6568 if test -z "$ac_cv_prog_NMEDIT"; then
6569 ac_ct_NMEDIT=$NMEDIT
6570 # Extract the first word of "nmedit", so it can be a program name with args.
6571 set dummy nmedit; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6575 $as_echo_n "(cached) " >&6
6576 else
6577 if test -n "$ac_ct_NMEDIT"; then
6578 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583 IFS=$as_save_IFS
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 break 2
6590 fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6598 if test -n "$ac_ct_NMEDIT"; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6600 $as_echo "$ac_ct_NMEDIT" >&6; }
6601 else
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6604 fi
6605
6606 if test "x$ac_ct_NMEDIT" = x; then
6607 NMEDIT=":"
6608 else
6609 case $cross_compiling:$ac_tool_warned in
6610 yes:)
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613 ac_tool_warned=yes ;;
6614 esac
6615 NMEDIT=$ac_ct_NMEDIT
6616 fi
6617 else
6618 NMEDIT="$ac_cv_prog_NMEDIT"
6619 fi
6620
6621 if test -n "$ac_tool_prefix"; then
6622 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625 $as_echo_n "checking for $ac_word... " >&6; }
6626 if test "${ac_cv_prog_LIPO+set}" = set; then :
6627 $as_echo_n "(cached) " >&6
6628 else
6629 if test -n "$LIPO"; then
6630 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 break 2
6642 fi
6643 done
6644 done
6645 IFS=$as_save_IFS
6646
6647 fi
6648 fi
6649 LIPO=$ac_cv_prog_LIPO
6650 if test -n "$LIPO"; then
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6652 $as_echo "$LIPO" >&6; }
6653 else
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }
6656 fi
6657
6658
6659 fi
6660 if test -z "$ac_cv_prog_LIPO"; then
6661 ac_ct_LIPO=$LIPO
6662 # Extract the first word of "lipo", so it can be a program name with args.
6663 set dummy lipo; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 if test -n "$ac_ct_LIPO"; then
6670 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 ac_cv_prog_ac_ct_LIPO="lipo"
6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 break 2
6682 fi
6683 done
6684 done
6685 IFS=$as_save_IFS
6686
6687 fi
6688 fi
6689 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6690 if test -n "$ac_ct_LIPO"; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6692 $as_echo "$ac_ct_LIPO" >&6; }
6693 else
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6696 fi
6697
6698 if test "x$ac_ct_LIPO" = x; then
6699 LIPO=":"
6700 else
6701 case $cross_compiling:$ac_tool_warned in
6702 yes:)
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6705 ac_tool_warned=yes ;;
6706 esac
6707 LIPO=$ac_ct_LIPO
6708 fi
6709 else
6710 LIPO="$ac_cv_prog_LIPO"
6711 fi
6712
6713 if test -n "$ac_tool_prefix"; then
6714 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6715 set dummy ${ac_tool_prefix}otool; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 if test -n "$OTOOL"; then
6722 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6723 else
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 break 2
6734 fi
6735 done
6736 done
6737 IFS=$as_save_IFS
6738
6739 fi
6740 fi
6741 OTOOL=$ac_cv_prog_OTOOL
6742 if test -n "$OTOOL"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6744 $as_echo "$OTOOL" >&6; }
6745 else
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6748 fi
6749
6750
6751 fi
6752 if test -z "$ac_cv_prog_OTOOL"; then
6753 ac_ct_OTOOL=$OTOOL
6754 # Extract the first word of "otool", so it can be a program name with args.
6755 set dummy otool; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6759 $as_echo_n "(cached) " >&6
6760 else
6761 if test -n "$ac_ct_OTOOL"; then
6762 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771 ac_cv_prog_ac_ct_OTOOL="otool"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6774 fi
6775 done
6776 done
6777 IFS=$as_save_IFS
6778
6779 fi
6780 fi
6781 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6782 if test -n "$ac_ct_OTOOL"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6784 $as_echo "$ac_ct_OTOOL" >&6; }
6785 else
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6788 fi
6789
6790 if test "x$ac_ct_OTOOL" = x; then
6791 OTOOL=":"
6792 else
6793 case $cross_compiling:$ac_tool_warned in
6794 yes:)
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797 ac_tool_warned=yes ;;
6798 esac
6799 OTOOL=$ac_ct_OTOOL
6800 fi
6801 else
6802 OTOOL="$ac_cv_prog_OTOOL"
6803 fi
6804
6805 if test -n "$ac_tool_prefix"; then
6806 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6807 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 $as_echo_n "checking for $ac_word... " >&6; }
6810 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 if test -n "$OTOOL64"; then
6814 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 break 2
6826 fi
6827 done
6828 done
6829 IFS=$as_save_IFS
6830
6831 fi
6832 fi
6833 OTOOL64=$ac_cv_prog_OTOOL64
6834 if test -n "$OTOOL64"; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6836 $as_echo "$OTOOL64" >&6; }
6837 else
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 $as_echo "no" >&6; }
6840 fi
6841
6842
6843 fi
6844 if test -z "$ac_cv_prog_OTOOL64"; then
6845 ac_ct_OTOOL64=$OTOOL64
6846 # Extract the first word of "otool64", so it can be a program name with args.
6847 set dummy otool64; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6851 $as_echo_n "(cached) " >&6
6852 else
6853 if test -n "$ac_ct_OTOOL64"; then
6854 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6863 ac_cv_prog_ac_ct_OTOOL64="otool64"
6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 break 2
6866 fi
6867 done
6868 done
6869 IFS=$as_save_IFS
6870
6871 fi
6872 fi
6873 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6874 if test -n "$ac_ct_OTOOL64"; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6876 $as_echo "$ac_ct_OTOOL64" >&6; }
6877 else
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6880 fi
6881
6882 if test "x$ac_ct_OTOOL64" = x; then
6883 OTOOL64=":"
6884 else
6885 case $cross_compiling:$ac_tool_warned in
6886 yes:)
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6889 ac_tool_warned=yes ;;
6890 esac
6891 OTOOL64=$ac_ct_OTOOL64
6892 fi
6893 else
6894 OTOOL64="$ac_cv_prog_OTOOL64"
6895 fi
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6924 $as_echo_n "checking for -single_module linker flag... " >&6; }
6925 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 lt_cv_apple_cc_single_mod=no
6929 if test -z "${LT_MULTI_MODULE}"; then
6930 # By default we will add the -single_module flag. You can override
6931 # by either setting the environment variable LT_MULTI_MODULE
6932 # non-empty at configure time, or by adding -multi_module to the
6933 # link flags.
6934 rm -rf libconftest.dylib*
6935 echo "int foo(void){return 1;}" > conftest.c
6936 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6937 -dynamiclib -Wl,-single_module conftest.c" >&5
6938 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6939 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6940 _lt_result=$?
6941 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6942 lt_cv_apple_cc_single_mod=yes
6943 else
6944 cat conftest.err >&5
6945 fi
6946 rm -rf libconftest.dylib*
6947 rm -f conftest.*
6948 fi
6949 fi
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6951 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6953 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6954 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6955 $as_echo_n "(cached) " >&6
6956 else
6957 lt_cv_ld_exported_symbols_list=no
6958 save_LDFLAGS=$LDFLAGS
6959 echo "_main" > conftest.sym
6960 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6963
6964 int
6965 main ()
6966 {
6967
6968 ;
6969 return 0;
6970 }
6971 _ACEOF
6972 if ac_fn_c_try_link "$LINENO"; then :
6973 lt_cv_ld_exported_symbols_list=yes
6974 else
6975 lt_cv_ld_exported_symbols_list=no
6976 fi
6977 rm -f core conftest.err conftest.$ac_objext \
6978 conftest$ac_exeext conftest.$ac_ext
6979 LDFLAGS="$save_LDFLAGS"
6980
6981 fi
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6983 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6985 $as_echo_n "checking for -force_load linker flag... " >&6; }
6986 if test "${lt_cv_ld_force_load+set}" = set; then :
6987 $as_echo_n "(cached) " >&6
6988 else
6989 lt_cv_ld_force_load=no
6990 cat > conftest.c << _LT_EOF
6991 int forced_loaded() { return 2;}
6992 _LT_EOF
6993 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6994 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6995 echo "$AR cru libconftest.a conftest.o" >&5
6996 $AR cru libconftest.a conftest.o 2>&5
6997 cat > conftest.c << _LT_EOF
6998 int main() { return 0;}
6999 _LT_EOF
7000 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7001 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7002 _lt_result=$?
7003 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7004 lt_cv_ld_force_load=yes
7005 else
7006 cat conftest.err >&5
7007 fi
7008 rm -f conftest.err libconftest.a conftest conftest.c
7009 rm -rf conftest.dSYM
7010
7011 fi
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7013 $as_echo "$lt_cv_ld_force_load" >&6; }
7014 case $host_os in
7015 rhapsody* | darwin1.[012])
7016 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7017 darwin1.*)
7018 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7019 darwin*) # darwin 5.x on
7020 # if running on 10.5 or later, the deployment target defaults
7021 # to the OS version, if on x86, and 10.4, the deployment
7022 # target defaults to 10.4. Don't you love it?
7023 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7024 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7025 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7026 10.[012]*)
7027 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7028 10.*)
7029 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7030 esac
7031 ;;
7032 esac
7033 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7034 _lt_dar_single_mod='$single_module'
7035 fi
7036 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7037 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7038 else
7039 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7040 fi
7041 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7042 _lt_dsymutil='~$DSYMUTIL $lib || :'
7043 else
7044 _lt_dsymutil=
7045 fi
7046 ;;
7047 esac
7048
7049 for ac_header in dlfcn.h
7050 do :
7051 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7052 "
7053 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7054 cat >>confdefs.h <<_ACEOF
7055 #define HAVE_DLFCN_H 1
7056 _ACEOF
7057
7058 fi
7059
7060 done
7061
7062
7063
7064
7065
7066 # Set options
7067 # Check whether --enable-static was given.
7068 if test "${enable_static+set}" = set; then :
7069 enableval=$enable_static; p=${PACKAGE-default}
7070 case $enableval in
7071 yes) enable_static=yes ;;
7072 no) enable_static=no ;;
7073 *)
7074 enable_static=no
7075 # Look at the argument we got. We use all the common list separators.
7076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7077 for pkg in $enableval; do
7078 IFS="$lt_save_ifs"
7079 if test "X$pkg" = "X$p"; then
7080 enable_static=yes
7081 fi
7082 done
7083 IFS="$lt_save_ifs"
7084 ;;
7085 esac
7086 else
7087 enable_static=no
7088 fi
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099 enable_dlopen=no
7100
7101
7102 enable_win32_dll=no
7103
7104
7105 # Check whether --enable-shared was given.
7106 if test "${enable_shared+set}" = set; then :
7107 enableval=$enable_shared; p=${PACKAGE-default}
7108 case $enableval in
7109 yes) enable_shared=yes ;;
7110 no) enable_shared=no ;;
7111 *)
7112 enable_shared=no
7113 # Look at the argument we got. We use all the common list separators.
7114 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7115 for pkg in $enableval; do
7116 IFS="$lt_save_ifs"
7117 if test "X$pkg" = "X$p"; then
7118 enable_shared=yes
7119 fi
7120 done
7121 IFS="$lt_save_ifs"
7122 ;;
7123 esac
7124 else
7125 enable_shared=yes
7126 fi
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138 # Check whether --with-pic was given.
7139 if test "${with_pic+set}" = set; then :
7140 withval=$with_pic; pic_mode="$withval"
7141 else
7142 pic_mode=default
7143 fi
7144
7145
7146 test -z "$pic_mode" && pic_mode=default
7147
7148
7149
7150
7151
7152
7153
7154 # Check whether --enable-fast-install was given.
7155 if test "${enable_fast_install+set}" = set; then :
7156 enableval=$enable_fast_install; p=${PACKAGE-default}
7157 case $enableval in
7158 yes) enable_fast_install=yes ;;
7159 no) enable_fast_install=no ;;
7160 *)
7161 enable_fast_install=no
7162 # Look at the argument we got. We use all the common list separators.
7163 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7164 for pkg in $enableval; do
7165 IFS="$lt_save_ifs"
7166 if test "X$pkg" = "X$p"; then
7167 enable_fast_install=yes
7168 fi
7169 done
7170 IFS="$lt_save_ifs"
7171 ;;
7172 esac
7173 else
7174 enable_fast_install=yes
7175 fi
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187 # This can be used to rebuild libtool when needed
7188 LIBTOOL_DEPS="$ltmain"
7189
7190 # Always use our own libtool.
7191 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218 test -z "$LN_S" && LN_S="ln -s"
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233 if test -n "${ZSH_VERSION+set}" ; then
7234 setopt NO_GLOB_SUBST
7235 fi
7236
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7238 $as_echo_n "checking for objdir... " >&6; }
7239 if test "${lt_cv_objdir+set}" = set; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7242 rm -f .libs 2>/dev/null
7243 mkdir .libs 2>/dev/null
7244 if test -d .libs; then
7245 lt_cv_objdir=.libs
7246 else
7247 # MS-DOS does not allow filenames that begin with a dot.
7248 lt_cv_objdir=_libs
7249 fi
7250 rmdir .libs 2>/dev/null
7251 fi
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7253 $as_echo "$lt_cv_objdir" >&6; }
7254 objdir=$lt_cv_objdir
7255
7256
7257
7258
7259
7260 cat >>confdefs.h <<_ACEOF
7261 #define LT_OBJDIR "$lt_cv_objdir/"
7262 _ACEOF
7263
7264
7265
7266
7267 case $host_os in
7268 aix3*)
7269 # AIX sometimes has problems with the GCC collect2 program. For some
7270 # reason, if we set the COLLECT_NAMES environment variable, the problems
7271 # vanish in a puff of smoke.
7272 if test "X${COLLECT_NAMES+set}" != Xset; then
7273 COLLECT_NAMES=
7274 export COLLECT_NAMES
7275 fi
7276 ;;
7277 esac
7278
7279 # Global variables:
7280 ofile=libtool
7281 can_build_shared=yes
7282
7283 # All known linkers require a `.a' archive for static linking (except MSVC,
7284 # which needs '.lib').
7285 libext=a
7286
7287 with_gnu_ld="$lt_cv_prog_gnu_ld"
7288
7289 old_CC="$CC"
7290 old_CFLAGS="$CFLAGS"
7291
7292 # Set sane defaults for various variables
7293 test -z "$CC" && CC=cc
7294 test -z "$LTCC" && LTCC=$CC
7295 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7296 test -z "$LD" && LD=ld
7297 test -z "$ac_objext" && ac_objext=o
7298
7299 for cc_temp in $compiler""; do
7300 case $cc_temp in
7301 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7302 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7303 \-*) ;;
7304 *) break;;
7305 esac
7306 done
7307 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7308
7309
7310 # Only perform the check for file, if the check method requires it
7311 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7312 case $deplibs_check_method in
7313 file_magic*)
7314 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7316 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7317 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320 case $MAGIC_CMD in
7321 [\\/*] | ?:[\\/]*)
7322 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7323 ;;
7324 *)
7325 lt_save_MAGIC_CMD="$MAGIC_CMD"
7326 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7327 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7328 for ac_dir in $ac_dummy; do
7329 IFS="$lt_save_ifs"
7330 test -z "$ac_dir" && ac_dir=.
7331 if test -f $ac_dir/${ac_tool_prefix}file; then
7332 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7333 if test -n "$file_magic_test_file"; then
7334 case $deplibs_check_method in
7335 "file_magic "*)
7336 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7337 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7338 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7339 $EGREP "$file_magic_regex" > /dev/null; then
7340 :
7341 else
7342 cat <<_LT_EOF 1>&2
7343
7344 *** Warning: the command libtool uses to detect shared libraries,
7345 *** $file_magic_cmd, produces output that libtool cannot recognize.
7346 *** The result is that libtool may fail to recognize shared libraries
7347 *** as such. This will affect the creation of libtool libraries that
7348 *** depend on shared libraries, but programs linked with such libtool
7349 *** libraries will work regardless of this problem. Nevertheless, you
7350 *** may want to report the problem to your system manager and/or to
7351 *** bug-libtool@gnu.org
7352
7353 _LT_EOF
7354 fi ;;
7355 esac
7356 fi
7357 break
7358 fi
7359 done
7360 IFS="$lt_save_ifs"
7361 MAGIC_CMD="$lt_save_MAGIC_CMD"
7362 ;;
7363 esac
7364 fi
7365
7366 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7367 if test -n "$MAGIC_CMD"; then
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7369 $as_echo "$MAGIC_CMD" >&6; }
7370 else
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 $as_echo "no" >&6; }
7373 fi
7374
7375
7376
7377
7378
7379 if test -z "$lt_cv_path_MAGIC_CMD"; then
7380 if test -n "$ac_tool_prefix"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7382 $as_echo_n "checking for file... " >&6; }
7383 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7384 $as_echo_n "(cached) " >&6
7385 else
7386 case $MAGIC_CMD in
7387 [\\/*] | ?:[\\/]*)
7388 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7389 ;;
7390 *)
7391 lt_save_MAGIC_CMD="$MAGIC_CMD"
7392 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7393 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7394 for ac_dir in $ac_dummy; do
7395 IFS="$lt_save_ifs"
7396 test -z "$ac_dir" && ac_dir=.
7397 if test -f $ac_dir/file; then
7398 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7399 if test -n "$file_magic_test_file"; then
7400 case $deplibs_check_method in
7401 "file_magic "*)
7402 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7403 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7404 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7405 $EGREP "$file_magic_regex" > /dev/null; then
7406 :
7407 else
7408 cat <<_LT_EOF 1>&2
7409
7410 *** Warning: the command libtool uses to detect shared libraries,
7411 *** $file_magic_cmd, produces output that libtool cannot recognize.
7412 *** The result is that libtool may fail to recognize shared libraries
7413 *** as such. This will affect the creation of libtool libraries that
7414 *** depend on shared libraries, but programs linked with such libtool
7415 *** libraries will work regardless of this problem. Nevertheless, you
7416 *** may want to report the problem to your system manager and/or to
7417 *** bug-libtool@gnu.org
7418
7419 _LT_EOF
7420 fi ;;
7421 esac
7422 fi
7423 break
7424 fi
7425 done
7426 IFS="$lt_save_ifs"
7427 MAGIC_CMD="$lt_save_MAGIC_CMD"
7428 ;;
7429 esac
7430 fi
7431
7432 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7433 if test -n "$MAGIC_CMD"; then
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7435 $as_echo "$MAGIC_CMD" >&6; }
7436 else
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }
7439 fi
7440
7441
7442 else
7443 MAGIC_CMD=:
7444 fi
7445 fi
7446
7447 fi
7448 ;;
7449 esac
7450
7451 # Use C for the default configuration in the libtool script
7452
7453 lt_save_CC="$CC"
7454 ac_ext=c
7455 ac_cpp='$CPP $CPPFLAGS'
7456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7459
7460
7461 # Source file extension for C test sources.
7462 ac_ext=c
7463
7464 # Object file extension for compiled C test sources.
7465 objext=o
7466 objext=$objext
7467
7468 # Code to be used in simple compile tests
7469 lt_simple_compile_test_code="int some_variable = 0;"
7470
7471 # Code to be used in simple link tests
7472 lt_simple_link_test_code='int main(){return(0);}'
7473
7474
7475
7476
7477
7478
7479
7480 # If no C compiler was specified, use CC.
7481 LTCC=${LTCC-"$CC"}
7482
7483 # If no C compiler flags were specified, use CFLAGS.
7484 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7485
7486 # Allow CC to be a program name with arguments.
7487 compiler=$CC
7488
7489 # Save the default compiler, since it gets overwritten when the other
7490 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7491 compiler_DEFAULT=$CC
7492
7493 # save warnings/boilerplate of simple test code
7494 ac_outfile=conftest.$ac_objext
7495 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7496 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7497 _lt_compiler_boilerplate=`cat conftest.err`
7498 $RM conftest*
7499
7500 ac_outfile=conftest.$ac_objext
7501 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7502 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7503 _lt_linker_boilerplate=`cat conftest.err`
7504 $RM -r conftest*
7505
7506
7507 ## CAVEAT EMPTOR:
7508 ## There is no encapsulation within the following macros, do not change
7509 ## the running order or otherwise move them around unless you know exactly
7510 ## what you are doing...
7511 if test -n "$compiler"; then
7512
7513 lt_prog_compiler_no_builtin_flag=
7514
7515 if test "$GCC" = yes; then
7516 case $cc_basename in
7517 nvcc*)
7518 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7519 *)
7520 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7521 esac
7522
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7524 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7525 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7526 $as_echo_n "(cached) " >&6
7527 else
7528 lt_cv_prog_compiler_rtti_exceptions=no
7529 ac_outfile=conftest.$ac_objext
7530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7531 lt_compiler_flag="-fno-rtti -fno-exceptions"
7532 # Insert the option either (1) after the last *FLAGS variable, or
7533 # (2) before a word containing "conftest.", or (3) at the end.
7534 # Note that $ac_compile itself does not contain backslashes and begins
7535 # with a dollar sign (not a hyphen), so the echo should work correctly.
7536 # The option is referenced via a variable to avoid confusing sed.
7537 lt_compile=`echo "$ac_compile" | $SED \
7538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7540 -e 's:$: $lt_compiler_flag:'`
7541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7542 (eval "$lt_compile" 2>conftest.err)
7543 ac_status=$?
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 if (exit $ac_status) && test -s "$ac_outfile"; then
7547 # The compiler can only warn and ignore the option if not recognized
7548 # So say no if there are warnings other than the usual output.
7549 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7551 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7552 lt_cv_prog_compiler_rtti_exceptions=yes
7553 fi
7554 fi
7555 $RM conftest*
7556
7557 fi
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7559 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7560
7561 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7562 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7563 else
7564 :
7565 fi
7566
7567 fi
7568
7569
7570
7571
7572
7573
7574 lt_prog_compiler_wl=
7575 lt_prog_compiler_pic=
7576 lt_prog_compiler_static=
7577
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7579 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7580
7581 if test "$GCC" = yes; then
7582 lt_prog_compiler_wl='-Wl,'
7583 lt_prog_compiler_static='-static'
7584
7585 case $host_os in
7586 aix*)
7587 # All AIX code is PIC.
7588 if test "$host_cpu" = ia64; then
7589 # AIX 5 now supports IA64 processor
7590 lt_prog_compiler_static='-Bstatic'
7591 fi
7592 lt_prog_compiler_pic='-fPIC'
7593 ;;
7594
7595 amigaos*)
7596 case $host_cpu in
7597 powerpc)
7598 # see comment about AmigaOS4 .so support
7599 lt_prog_compiler_pic='-fPIC'
7600 ;;
7601 m68k)
7602 # FIXME: we need at least 68020 code to build shared libraries, but
7603 # adding the `-m68020' flag to GCC prevents building anything better,
7604 # like `-m68040'.
7605 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7606 ;;
7607 esac
7608 ;;
7609
7610 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7611 # PIC is the default for these OSes.
7612 ;;
7613
7614 mingw* | cygwin* | pw32* | os2* | cegcc*)
7615 # This hack is so that the source file can tell whether it is being
7616 # built for inclusion in a dll (and should export symbols for example).
7617 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7618 # (--disable-auto-import) libraries
7619 lt_prog_compiler_pic='-DDLL_EXPORT'
7620 ;;
7621
7622 darwin* | rhapsody*)
7623 # PIC is the default on this platform
7624 # Common symbols not allowed in MH_DYLIB files
7625 lt_prog_compiler_pic='-fno-common'
7626 ;;
7627
7628 haiku*)
7629 # PIC is the default for Haiku.
7630 # The "-static" flag exists, but is broken.
7631 lt_prog_compiler_static=
7632 ;;
7633
7634 hpux*)
7635 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7636 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7637 # sets the default TLS model and affects inlining.
7638 case $host_cpu in
7639 hppa*64*)
7640 # +Z the default
7641 ;;
7642 *)
7643 lt_prog_compiler_pic='-fPIC'
7644 ;;
7645 esac
7646 ;;
7647
7648 interix[3-9]*)
7649 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7650 # Instead, we relocate shared libraries at runtime.
7651 ;;
7652
7653 msdosdjgpp*)
7654 # Just because we use GCC doesn't mean we suddenly get shared libraries
7655 # on systems that don't support them.
7656 lt_prog_compiler_can_build_shared=no
7657 enable_shared=no
7658 ;;
7659
7660 *nto* | *qnx*)
7661 # QNX uses GNU C++, but need to define -shared option too, otherwise
7662 # it will coredump.
7663 lt_prog_compiler_pic='-fPIC -shared'
7664 ;;
7665
7666 sysv4*MP*)
7667 if test -d /usr/nec; then
7668 lt_prog_compiler_pic=-Kconform_pic
7669 fi
7670 ;;
7671
7672 *)
7673 lt_prog_compiler_pic='-fPIC'
7674 ;;
7675 esac
7676
7677 case $cc_basename in
7678 nvcc*) # Cuda Compiler Driver 2.2
7679 lt_prog_compiler_wl='-Xlinker '
7680 lt_prog_compiler_pic='-Xcompiler -fPIC'
7681 ;;
7682 esac
7683 else
7684 # PORTME Check for flag to pass linker flags through the system compiler.
7685 case $host_os in
7686 aix*)
7687 lt_prog_compiler_wl='-Wl,'
7688 if test "$host_cpu" = ia64; then
7689 # AIX 5 now supports IA64 processor
7690 lt_prog_compiler_static='-Bstatic'
7691 else
7692 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7693 fi
7694 ;;
7695
7696 mingw* | cygwin* | pw32* | os2* | cegcc*)
7697 # This hack is so that the source file can tell whether it is being
7698 # built for inclusion in a dll (and should export symbols for example).
7699 lt_prog_compiler_pic='-DDLL_EXPORT'
7700 ;;
7701
7702 hpux9* | hpux10* | hpux11*)
7703 lt_prog_compiler_wl='-Wl,'
7704 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7705 # not for PA HP-UX.
7706 case $host_cpu in
7707 hppa*64*|ia64*)
7708 # +Z the default
7709 ;;
7710 *)
7711 lt_prog_compiler_pic='+Z'
7712 ;;
7713 esac
7714 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7715 lt_prog_compiler_static='${wl}-a ${wl}archive'
7716 ;;
7717
7718 irix5* | irix6* | nonstopux*)
7719 lt_prog_compiler_wl='-Wl,'
7720 # PIC (with -KPIC) is the default.
7721 lt_prog_compiler_static='-non_shared'
7722 ;;
7723
7724 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7725 case $cc_basename in
7726 # old Intel for x86_64 which still supported -KPIC.
7727 ecc*)
7728 lt_prog_compiler_wl='-Wl,'
7729 lt_prog_compiler_pic='-KPIC'
7730 lt_prog_compiler_static='-static'
7731 ;;
7732 # icc used to be incompatible with GCC.
7733 # ICC 10 doesn't accept -KPIC any more.
7734 icc* | ifort*)
7735 lt_prog_compiler_wl='-Wl,'
7736 lt_prog_compiler_pic='-fPIC'
7737 lt_prog_compiler_static='-static'
7738 ;;
7739 # Lahey Fortran 8.1.
7740 lf95*)
7741 lt_prog_compiler_wl='-Wl,'
7742 lt_prog_compiler_pic='--shared'
7743 lt_prog_compiler_static='--static'
7744 ;;
7745 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7746 # Portland Group compilers (*not* the Pentium gcc compiler,
7747 # which looks to be a dead project)
7748 lt_prog_compiler_wl='-Wl,'
7749 lt_prog_compiler_pic='-fpic'
7750 lt_prog_compiler_static='-Bstatic'
7751 ;;
7752 ccc*)
7753 lt_prog_compiler_wl='-Wl,'
7754 # All Alpha code is PIC.
7755 lt_prog_compiler_static='-non_shared'
7756 ;;
7757 xl* | bgxl* | bgf* | mpixl*)
7758 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7759 lt_prog_compiler_wl='-Wl,'
7760 lt_prog_compiler_pic='-qpic'
7761 lt_prog_compiler_static='-qstaticlink'
7762 ;;
7763 *)
7764 case `$CC -V 2>&1 | sed 5q` in
7765 *Sun\ F* | *Sun*Fortran*)
7766 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7767 lt_prog_compiler_pic='-KPIC'
7768 lt_prog_compiler_static='-Bstatic'
7769 lt_prog_compiler_wl=''
7770 ;;
7771 *Sun\ C*)
7772 # Sun C 5.9
7773 lt_prog_compiler_pic='-KPIC'
7774 lt_prog_compiler_static='-Bstatic'
7775 lt_prog_compiler_wl='-Wl,'
7776 ;;
7777 esac
7778 ;;
7779 esac
7780 ;;
7781
7782 newsos6)
7783 lt_prog_compiler_pic='-KPIC'
7784 lt_prog_compiler_static='-Bstatic'
7785 ;;
7786
7787 *nto* | *qnx*)
7788 # QNX uses GNU C++, but need to define -shared option too, otherwise
7789 # it will coredump.
7790 lt_prog_compiler_pic='-fPIC -shared'
7791 ;;
7792
7793 osf3* | osf4* | osf5*)
7794 lt_prog_compiler_wl='-Wl,'
7795 # All OSF/1 code is PIC.
7796 lt_prog_compiler_static='-non_shared'
7797 ;;
7798
7799 rdos*)
7800 lt_prog_compiler_static='-non_shared'
7801 ;;
7802
7803 solaris*)
7804 lt_prog_compiler_pic='-KPIC'
7805 lt_prog_compiler_static='-Bstatic'
7806 case $cc_basename in
7807 f77* | f90* | f95*)
7808 lt_prog_compiler_wl='-Qoption ld ';;
7809 *)
7810 lt_prog_compiler_wl='-Wl,';;
7811 esac
7812 ;;
7813
7814 sunos4*)
7815 lt_prog_compiler_wl='-Qoption ld '
7816 lt_prog_compiler_pic='-PIC'
7817 lt_prog_compiler_static='-Bstatic'
7818 ;;
7819
7820 sysv4 | sysv4.2uw2* | sysv4.3*)
7821 lt_prog_compiler_wl='-Wl,'
7822 lt_prog_compiler_pic='-KPIC'
7823 lt_prog_compiler_static='-Bstatic'
7824 ;;
7825
7826 sysv4*MP*)
7827 if test -d /usr/nec ;then
7828 lt_prog_compiler_pic='-Kconform_pic'
7829 lt_prog_compiler_static='-Bstatic'
7830 fi
7831 ;;
7832
7833 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7834 lt_prog_compiler_wl='-Wl,'
7835 lt_prog_compiler_pic='-KPIC'
7836 lt_prog_compiler_static='-Bstatic'
7837 ;;
7838
7839 unicos*)
7840 lt_prog_compiler_wl='-Wl,'
7841 lt_prog_compiler_can_build_shared=no
7842 ;;
7843
7844 uts4*)
7845 lt_prog_compiler_pic='-pic'
7846 lt_prog_compiler_static='-Bstatic'
7847 ;;
7848
7849 *)
7850 lt_prog_compiler_can_build_shared=no
7851 ;;
7852 esac
7853 fi
7854
7855 case $host_os in
7856 # For platforms which do not support PIC, -DPIC is meaningless:
7857 *djgpp*)
7858 lt_prog_compiler_pic=
7859 ;;
7860 *)
7861 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7862 ;;
7863 esac
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7865 $as_echo "$lt_prog_compiler_pic" >&6; }
7866
7867
7868
7869
7870
7871
7872 #
7873 # Check to make sure the PIC flag actually works.
7874 #
7875 if test -n "$lt_prog_compiler_pic"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7877 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7878 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 lt_cv_prog_compiler_pic_works=no
7882 ac_outfile=conftest.$ac_objext
7883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7884 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7885 # Insert the option either (1) after the last *FLAGS variable, or
7886 # (2) before a word containing "conftest.", or (3) at the end.
7887 # Note that $ac_compile itself does not contain backslashes and begins
7888 # with a dollar sign (not a hyphen), so the echo should work correctly.
7889 # The option is referenced via a variable to avoid confusing sed.
7890 lt_compile=`echo "$ac_compile" | $SED \
7891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7893 -e 's:$: $lt_compiler_flag:'`
7894 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7895 (eval "$lt_compile" 2>conftest.err)
7896 ac_status=$?
7897 cat conftest.err >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 if (exit $ac_status) && test -s "$ac_outfile"; then
7900 # The compiler can only warn and ignore the option if not recognized
7901 # So say no if there are warnings other than the usual output.
7902 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7903 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7904 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7905 lt_cv_prog_compiler_pic_works=yes
7906 fi
7907 fi
7908 $RM conftest*
7909
7910 fi
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7912 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7913
7914 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7915 case $lt_prog_compiler_pic in
7916 "" | " "*) ;;
7917 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7918 esac
7919 else
7920 lt_prog_compiler_pic=
7921 lt_prog_compiler_can_build_shared=no
7922 fi
7923
7924 fi
7925
7926
7927
7928
7929
7930
7931 #
7932 # Check to make sure the static flag actually works.
7933 #
7934 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7936 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7937 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 lt_cv_prog_compiler_static_works=no
7941 save_LDFLAGS="$LDFLAGS"
7942 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7943 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7944 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7945 # The linker can only warn and ignore the option if not recognized
7946 # So say no if there are warnings
7947 if test -s conftest.err; then
7948 # Append any errors to the config.log.
7949 cat conftest.err 1>&5
7950 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7952 if diff conftest.exp conftest.er2 >/dev/null; then
7953 lt_cv_prog_compiler_static_works=yes
7954 fi
7955 else
7956 lt_cv_prog_compiler_static_works=yes
7957 fi
7958 fi
7959 $RM -r conftest*
7960 LDFLAGS="$save_LDFLAGS"
7961
7962 fi
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7964 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7965
7966 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7967 :
7968 else
7969 lt_prog_compiler_static=
7970 fi
7971
7972
7973
7974
7975
7976
7977
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7979 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7980 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 lt_cv_prog_compiler_c_o=no
7984 $RM -r conftest 2>/dev/null
7985 mkdir conftest
7986 cd conftest
7987 mkdir out
7988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7989
7990 lt_compiler_flag="-o out/conftest2.$ac_objext"
7991 # Insert the option either (1) after the last *FLAGS variable, or
7992 # (2) before a word containing "conftest.", or (3) at the end.
7993 # Note that $ac_compile itself does not contain backslashes and begins
7994 # with a dollar sign (not a hyphen), so the echo should work correctly.
7995 lt_compile=`echo "$ac_compile" | $SED \
7996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7998 -e 's:$: $lt_compiler_flag:'`
7999 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8000 (eval "$lt_compile" 2>out/conftest.err)
8001 ac_status=$?
8002 cat out/conftest.err >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8005 then
8006 # The compiler can only warn and ignore the option if not recognized
8007 # So say no if there are warnings
8008 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8009 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8010 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8011 lt_cv_prog_compiler_c_o=yes
8012 fi
8013 fi
8014 chmod u+w . 2>&5
8015 $RM conftest*
8016 # SGI C++ compiler will create directory out/ii_files/ for
8017 # template instantiation
8018 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8019 $RM out/* && rmdir out
8020 cd ..
8021 $RM -r conftest
8022 $RM conftest*
8023
8024 fi
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8026 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8027
8028
8029
8030
8031
8032
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8034 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8035 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8036 $as_echo_n "(cached) " >&6
8037 else
8038 lt_cv_prog_compiler_c_o=no
8039 $RM -r conftest 2>/dev/null
8040 mkdir conftest
8041 cd conftest
8042 mkdir out
8043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8044
8045 lt_compiler_flag="-o out/conftest2.$ac_objext"
8046 # Insert the option either (1) after the last *FLAGS variable, or
8047 # (2) before a word containing "conftest.", or (3) at the end.
8048 # Note that $ac_compile itself does not contain backslashes and begins
8049 # with a dollar sign (not a hyphen), so the echo should work correctly.
8050 lt_compile=`echo "$ac_compile" | $SED \
8051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8053 -e 's:$: $lt_compiler_flag:'`
8054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8055 (eval "$lt_compile" 2>out/conftest.err)
8056 ac_status=$?
8057 cat out/conftest.err >&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8060 then
8061 # The compiler can only warn and ignore the option if not recognized
8062 # So say no if there are warnings
8063 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8064 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8065 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8066 lt_cv_prog_compiler_c_o=yes
8067 fi
8068 fi
8069 chmod u+w . 2>&5
8070 $RM conftest*
8071 # SGI C++ compiler will create directory out/ii_files/ for
8072 # template instantiation
8073 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8074 $RM out/* && rmdir out
8075 cd ..
8076 $RM -r conftest
8077 $RM conftest*
8078
8079 fi
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8081 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8082
8083
8084
8085
8086 hard_links="nottested"
8087 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8088 # do not overwrite the value of need_locks provided by the user
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8090 $as_echo_n "checking if we can lock with hard links... " >&6; }
8091 hard_links=yes
8092 $RM conftest*
8093 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8094 touch conftest.a
8095 ln conftest.a conftest.b 2>&5 || hard_links=no
8096 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8098 $as_echo "$hard_links" >&6; }
8099 if test "$hard_links" = no; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8101 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8102 need_locks=warn
8103 fi
8104 else
8105 need_locks=no
8106 fi
8107
8108
8109
8110
8111
8112
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8114 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8115
8116 runpath_var=
8117 allow_undefined_flag=
8118 always_export_symbols=no
8119 archive_cmds=
8120 archive_expsym_cmds=
8121 compiler_needs_object=no
8122 enable_shared_with_static_runtimes=no
8123 export_dynamic_flag_spec=
8124 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8125 hardcode_automatic=no
8126 hardcode_direct=no
8127 hardcode_direct_absolute=no
8128 hardcode_libdir_flag_spec=
8129 hardcode_libdir_flag_spec_ld=
8130 hardcode_libdir_separator=
8131 hardcode_minus_L=no
8132 hardcode_shlibpath_var=unsupported
8133 inherit_rpath=no
8134 link_all_deplibs=unknown
8135 module_cmds=
8136 module_expsym_cmds=
8137 old_archive_from_new_cmds=
8138 old_archive_from_expsyms_cmds=
8139 thread_safe_flag_spec=
8140 whole_archive_flag_spec=
8141 # include_expsyms should be a list of space-separated symbols to be *always*
8142 # included in the symbol list
8143 include_expsyms=
8144 # exclude_expsyms can be an extended regexp of symbols to exclude
8145 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8146 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8147 # as well as any symbol that contains `d'.
8148 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8149 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8150 # platforms (ab)use it in PIC code, but their linkers get confused if
8151 # the symbol is explicitly referenced. Since portable code cannot
8152 # rely on this symbol name, it's probably fine to never include it in
8153 # preloaded symbol tables.
8154 # Exclude shared library initialization/finalization symbols.
8155 extract_expsyms_cmds=
8156
8157 case $host_os in
8158 cygwin* | mingw* | pw32* | cegcc*)
8159 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8160 # When not using gcc, we currently assume that we are using
8161 # Microsoft Visual C++.
8162 if test "$GCC" != yes; then
8163 with_gnu_ld=no
8164 fi
8165 ;;
8166 interix*)
8167 # we just hope/assume this is gcc and not c89 (= MSVC++)
8168 with_gnu_ld=yes
8169 ;;
8170 openbsd*)
8171 with_gnu_ld=no
8172 ;;
8173 esac
8174
8175 ld_shlibs=yes
8176
8177 # On some targets, GNU ld is compatible enough with the native linker
8178 # that we're better off using the native interface for both.
8179 lt_use_gnu_ld_interface=no
8180 if test "$with_gnu_ld" = yes; then
8181 case $host_os in
8182 aix*)
8183 # The AIX port of GNU ld has always aspired to compatibility
8184 # with the native linker. However, as the warning in the GNU ld
8185 # block says, versions before 2.19.5* couldn't really create working
8186 # shared libraries, regardless of the interface used.
8187 case `$LD -v 2>&1` in
8188 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8189 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8190 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8191 *)
8192 lt_use_gnu_ld_interface=yes
8193 ;;
8194 esac
8195 ;;
8196 *)
8197 lt_use_gnu_ld_interface=yes
8198 ;;
8199 esac
8200 fi
8201
8202 if test "$lt_use_gnu_ld_interface" = yes; then
8203 # If archive_cmds runs LD, not CC, wlarc should be empty
8204 wlarc='${wl}'
8205
8206 # Set some defaults for GNU ld with shared library support. These
8207 # are reset later if shared libraries are not supported. Putting them
8208 # here allows them to be overridden if necessary.
8209 runpath_var=LD_RUN_PATH
8210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8211 export_dynamic_flag_spec='${wl}--export-dynamic'
8212 # ancient GNU ld didn't support --whole-archive et. al.
8213 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8214 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8215 else
8216 whole_archive_flag_spec=
8217 fi
8218 supports_anon_versioning=no
8219 case `$LD -v 2>&1` in
8220 *GNU\ gold*) supports_anon_versioning=yes ;;
8221 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8222 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8223 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8224 *\ 2.11.*) ;; # other 2.11 versions
8225 *) supports_anon_versioning=yes ;;
8226 esac
8227
8228 # See if GNU ld supports shared libraries.
8229 case $host_os in
8230 aix[3-9]*)
8231 # On AIX/PPC, the GNU linker is very broken
8232 if test "$host_cpu" != ia64; then
8233 ld_shlibs=no
8234 cat <<_LT_EOF 1>&2
8235
8236 *** Warning: the GNU linker, at least up to release 2.19, is reported
8237 *** to be unable to reliably create shared libraries on AIX.
8238 *** Therefore, libtool is disabling shared libraries support. If you
8239 *** really care for shared libraries, you may want to install binutils
8240 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8241 *** You will then need to restart the configuration process.
8242
8243 _LT_EOF
8244 fi
8245 ;;
8246
8247 amigaos*)
8248 case $host_cpu in
8249 powerpc)
8250 # see comment about AmigaOS4 .so support
8251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8252 archive_expsym_cmds=''
8253 ;;
8254 m68k)
8255 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)'
8256 hardcode_libdir_flag_spec='-L$libdir'
8257 hardcode_minus_L=yes
8258 ;;
8259 esac
8260 ;;
8261
8262 beos*)
8263 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8264 allow_undefined_flag=unsupported
8265 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8266 # support --undefined. This deserves some investigation. FIXME
8267 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8268 else
8269 ld_shlibs=no
8270 fi
8271 ;;
8272
8273 cygwin* | mingw* | pw32* | cegcc*)
8274 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8275 # as there is no search path for DLLs.
8276 hardcode_libdir_flag_spec='-L$libdir'
8277 export_dynamic_flag_spec='${wl}--export-all-symbols'
8278 allow_undefined_flag=unsupported
8279 always_export_symbols=no
8280 enable_shared_with_static_runtimes=yes
8281 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8282
8283 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8285 # If the export-symbols file already is a .def file (1st line
8286 # is EXPORTS), use it as is; otherwise, prepend...
8287 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8288 cp $export_symbols $output_objdir/$soname.def;
8289 else
8290 echo EXPORTS > $output_objdir/$soname.def;
8291 cat $export_symbols >> $output_objdir/$soname.def;
8292 fi~
8293 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8294 else
8295 ld_shlibs=no
8296 fi
8297 ;;
8298
8299 haiku*)
8300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8301 link_all_deplibs=yes
8302 ;;
8303
8304 interix[3-9]*)
8305 hardcode_direct=no
8306 hardcode_shlibpath_var=no
8307 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8308 export_dynamic_flag_spec='${wl}-E'
8309 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8310 # Instead, shared libraries are loaded at an image base (0x10000000 by
8311 # default) and relocated if they conflict, which is a slow very memory
8312 # consuming and fragmenting process. To avoid this, we pick a random,
8313 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8314 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8315 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8316 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'
8317 ;;
8318
8319 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8320 tmp_diet=no
8321 if test "$host_os" = linux-dietlibc; then
8322 case $cc_basename in
8323 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8324 esac
8325 fi
8326 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8327 && test "$tmp_diet" = no
8328 then
8329 tmp_addflag=
8330 tmp_sharedflag='-shared'
8331 case $cc_basename,$host_cpu in
8332 pgcc*) # Portland Group C compiler
8333 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'
8334 tmp_addflag=' $pic_flag'
8335 ;;
8336 pgf77* | pgf90* | pgf95* | pgfortran*)
8337 # Portland Group f77 and f90 compilers
8338 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'
8339 tmp_addflag=' $pic_flag -Mnomain' ;;
8340 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8341 tmp_addflag=' -i_dynamic' ;;
8342 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8343 tmp_addflag=' -i_dynamic -nofor_main' ;;
8344 ifc* | ifort*) # Intel Fortran compiler
8345 tmp_addflag=' -nofor_main' ;;
8346 lf95*) # Lahey Fortran 8.1
8347 whole_archive_flag_spec=
8348 tmp_sharedflag='--shared' ;;
8349 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8350 tmp_sharedflag='-qmkshrobj'
8351 tmp_addflag= ;;
8352 nvcc*) # Cuda Compiler Driver 2.2
8353 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'
8354 compiler_needs_object=yes
8355 ;;
8356 esac
8357 case `$CC -V 2>&1 | sed 5q` in
8358 *Sun\ C*) # Sun C 5.9
8359 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'
8360 compiler_needs_object=yes
8361 tmp_sharedflag='-G' ;;
8362 *Sun\ F*) # Sun Fortran 8.3
8363 tmp_sharedflag='-G' ;;
8364 esac
8365 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8366
8367 if test "x$supports_anon_versioning" = xyes; then
8368 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8369 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8370 echo "local: *; };" >> $output_objdir/$libname.ver~
8371 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8372 fi
8373
8374 case $cc_basename in
8375 xlf* | bgf* | bgxlf* | mpixlf*)
8376 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8377 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8378 hardcode_libdir_flag_spec=
8379 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8380 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8381 if test "x$supports_anon_versioning" = xyes; then
8382 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8383 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8384 echo "local: *; };" >> $output_objdir/$libname.ver~
8385 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8386 fi
8387 ;;
8388 esac
8389 else
8390 ld_shlibs=no
8391 fi
8392 ;;
8393
8394 netbsd*)
8395 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8396 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8397 wlarc=
8398 else
8399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8400 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8401 fi
8402 ;;
8403
8404 solaris*)
8405 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8406 ld_shlibs=no
8407 cat <<_LT_EOF 1>&2
8408
8409 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8410 *** create shared libraries on Solaris systems. Therefore, libtool
8411 *** is disabling shared libraries support. We urge you to upgrade GNU
8412 *** binutils to release 2.9.1 or newer. Another option is to modify
8413 *** your PATH or compiler configuration so that the native linker is
8414 *** used, and then restart.
8415
8416 _LT_EOF
8417 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8419 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8420 else
8421 ld_shlibs=no
8422 fi
8423 ;;
8424
8425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8426 case `$LD -v 2>&1` in
8427 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8428 ld_shlibs=no
8429 cat <<_LT_EOF 1>&2
8430
8431 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8432 *** reliably create shared libraries on SCO systems. Therefore, libtool
8433 *** is disabling shared libraries support. We urge you to upgrade GNU
8434 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8435 *** your PATH or compiler configuration so that the native linker is
8436 *** used, and then restart.
8437
8438 _LT_EOF
8439 ;;
8440 *)
8441 # For security reasons, it is highly recommended that you always
8442 # use absolute paths for naming shared libraries, and exclude the
8443 # DT_RUNPATH tag from executables and libraries. But doing so
8444 # requires that you compile everything twice, which is a pain.
8445 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8446 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8448 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8449 else
8450 ld_shlibs=no
8451 fi
8452 ;;
8453 esac
8454 ;;
8455
8456 sunos4*)
8457 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8458 wlarc=
8459 hardcode_direct=yes
8460 hardcode_shlibpath_var=no
8461 ;;
8462
8463 *)
8464 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8466 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8467 else
8468 ld_shlibs=no
8469 fi
8470 ;;
8471 esac
8472
8473 if test "$ld_shlibs" = no; then
8474 runpath_var=
8475 hardcode_libdir_flag_spec=
8476 export_dynamic_flag_spec=
8477 whole_archive_flag_spec=
8478 fi
8479 else
8480 # PORTME fill in a description of your system's linker (not GNU ld)
8481 case $host_os in
8482 aix3*)
8483 allow_undefined_flag=unsupported
8484 always_export_symbols=yes
8485 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'
8486 # Note: this linker hardcodes the directories in LIBPATH if there
8487 # are no directories specified by -L.
8488 hardcode_minus_L=yes
8489 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8490 # Neither direct hardcoding nor static linking is supported with a
8491 # broken collect2.
8492 hardcode_direct=unsupported
8493 fi
8494 ;;
8495
8496 aix[4-9]*)
8497 if test "$host_cpu" = ia64; then
8498 # On IA64, the linker does run time linking by default, so we don't
8499 # have to do anything special.
8500 aix_use_runtimelinking=no
8501 exp_sym_flag='-Bexport'
8502 no_entry_flag=""
8503 else
8504 # If we're using GNU nm, then we don't want the "-C" option.
8505 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8506 # Also, AIX nm treats weak defined symbols like other global
8507 # defined symbols, whereas GNU nm marks them as "W".
8508 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8509 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'
8510 else
8511 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'
8512 fi
8513 aix_use_runtimelinking=no
8514
8515 # Test if we are trying to use run time linking or normal
8516 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8517 # need to do runtime linking.
8518 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8519 for ld_flag in $LDFLAGS; do
8520 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8521 aix_use_runtimelinking=yes
8522 break
8523 fi
8524 done
8525 ;;
8526 esac
8527
8528 exp_sym_flag='-bexport'
8529 no_entry_flag='-bnoentry'
8530 fi
8531
8532 # When large executables or shared objects are built, AIX ld can
8533 # have problems creating the table of contents. If linking a library
8534 # or program results in "error TOC overflow" add -mminimal-toc to
8535 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8536 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8537
8538 archive_cmds=''
8539 hardcode_direct=yes
8540 hardcode_direct_absolute=yes
8541 hardcode_libdir_separator=':'
8542 link_all_deplibs=yes
8543 file_list_spec='${wl}-f,'
8544
8545 if test "$GCC" = yes; then
8546 case $host_os in aix4.[012]|aix4.[012].*)
8547 # We only want to do this on AIX 4.2 and lower, the check
8548 # below for broken collect2 doesn't work under 4.3+
8549 collect2name=`${CC} -print-prog-name=collect2`
8550 if test -f "$collect2name" &&
8551 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8552 then
8553 # We have reworked collect2
8554 :
8555 else
8556 # We have old collect2
8557 hardcode_direct=unsupported
8558 # It fails to find uninstalled libraries when the uninstalled
8559 # path is not listed in the libpath. Setting hardcode_minus_L
8560 # to unsupported forces relinking
8561 hardcode_minus_L=yes
8562 hardcode_libdir_flag_spec='-L$libdir'
8563 hardcode_libdir_separator=
8564 fi
8565 ;;
8566 esac
8567 shared_flag='-shared'
8568 if test "$aix_use_runtimelinking" = yes; then
8569 shared_flag="$shared_flag "'${wl}-G'
8570 fi
8571 else
8572 # not using gcc
8573 if test "$host_cpu" = ia64; then
8574 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8575 # chokes on -Wl,-G. The following line is correct:
8576 shared_flag='-G'
8577 else
8578 if test "$aix_use_runtimelinking" = yes; then
8579 shared_flag='${wl}-G'
8580 else
8581 shared_flag='${wl}-bM:SRE'
8582 fi
8583 fi
8584 fi
8585
8586 export_dynamic_flag_spec='${wl}-bexpall'
8587 # It seems that -bexpall does not export symbols beginning with
8588 # underscore (_), so it is better to generate a list of symbols to export.
8589 always_export_symbols=yes
8590 if test "$aix_use_runtimelinking" = yes; then
8591 # Warning - without using the other runtime loading flags (-brtl),
8592 # -berok will link without error, but may produce a broken library.
8593 allow_undefined_flag='-berok'
8594 # Determine the default libpath from the value encoded in an
8595 # empty executable.
8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8598
8599 int
8600 main ()
8601 {
8602
8603 ;
8604 return 0;
8605 }
8606 _ACEOF
8607 if ac_fn_c_try_link "$LINENO"; then :
8608
8609 lt_aix_libpath_sed='
8610 /Import File Strings/,/^$/ {
8611 /^0/ {
8612 s/^0 *\(.*\)$/\1/
8613 p
8614 }
8615 }'
8616 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8617 # Check for a 64-bit object if we didn't find anything.
8618 if test -z "$aix_libpath"; then
8619 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8620 fi
8621 fi
8622 rm -f core conftest.err conftest.$ac_objext \
8623 conftest$ac_exeext conftest.$ac_ext
8624 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8625
8626 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8627 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"
8628 else
8629 if test "$host_cpu" = ia64; then
8630 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8631 allow_undefined_flag="-z nodefs"
8632 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"
8633 else
8634 # Determine the default libpath from the value encoded in an
8635 # empty executable.
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8638
8639 int
8640 main ()
8641 {
8642
8643 ;
8644 return 0;
8645 }
8646 _ACEOF
8647 if ac_fn_c_try_link "$LINENO"; then :
8648
8649 lt_aix_libpath_sed='
8650 /Import File Strings/,/^$/ {
8651 /^0/ {
8652 s/^0 *\(.*\)$/\1/
8653 p
8654 }
8655 }'
8656 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8657 # Check for a 64-bit object if we didn't find anything.
8658 if test -z "$aix_libpath"; then
8659 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8660 fi
8661 fi
8662 rm -f core conftest.err conftest.$ac_objext \
8663 conftest$ac_exeext conftest.$ac_ext
8664 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8665
8666 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8667 # Warning - without using the other run time loading flags,
8668 # -berok will link without error, but may produce a broken library.
8669 no_undefined_flag=' ${wl}-bernotok'
8670 allow_undefined_flag=' ${wl}-berok'
8671 if test "$with_gnu_ld" = yes; then
8672 # We only use this code for GNU lds that support --whole-archive.
8673 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8674 else
8675 # Exported symbols can be pulled into shared objects from archives
8676 whole_archive_flag_spec='$convenience'
8677 fi
8678 archive_cmds_need_lc=yes
8679 # This is similar to how AIX traditionally builds its shared libraries.
8680 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'
8681 fi
8682 fi
8683 ;;
8684
8685 amigaos*)
8686 case $host_cpu in
8687 powerpc)
8688 # see comment about AmigaOS4 .so support
8689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8690 archive_expsym_cmds=''
8691 ;;
8692 m68k)
8693 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)'
8694 hardcode_libdir_flag_spec='-L$libdir'
8695 hardcode_minus_L=yes
8696 ;;
8697 esac
8698 ;;
8699
8700 bsdi[45]*)
8701 export_dynamic_flag_spec=-rdynamic
8702 ;;
8703
8704 cygwin* | mingw* | pw32* | cegcc*)
8705 # When not using gcc, we currently assume that we are using
8706 # Microsoft Visual C++.
8707 # hardcode_libdir_flag_spec is actually meaningless, as there is
8708 # no search path for DLLs.
8709 hardcode_libdir_flag_spec=' '
8710 allow_undefined_flag=unsupported
8711 # Tell ltmain to make .lib files, not .a files.
8712 libext=lib
8713 # Tell ltmain to make .dll files, not .so files.
8714 shrext_cmds=".dll"
8715 # FIXME: Setting linknames here is a bad hack.
8716 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8717 # The linker will automatically build a .lib file if we build a DLL.
8718 old_archive_from_new_cmds='true'
8719 # FIXME: Should let the user specify the lib program.
8720 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8721 fix_srcfile_path='`cygpath -w "$srcfile"`'
8722 enable_shared_with_static_runtimes=yes
8723 ;;
8724
8725 darwin* | rhapsody*)
8726
8727
8728 archive_cmds_need_lc=no
8729 hardcode_direct=no
8730 hardcode_automatic=yes
8731 hardcode_shlibpath_var=unsupported
8732 if test "$lt_cv_ld_force_load" = "yes"; then
8733 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\"`'
8734 else
8735 whole_archive_flag_spec=''
8736 fi
8737 link_all_deplibs=yes
8738 allow_undefined_flag="$_lt_dar_allow_undefined"
8739 case $cc_basename in
8740 ifort*) _lt_dar_can_shared=yes ;;
8741 *) _lt_dar_can_shared=$GCC ;;
8742 esac
8743 if test "$_lt_dar_can_shared" = "yes"; then
8744 output_verbose_link_cmd=func_echo_all
8745 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8746 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8747 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}"
8748 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}"
8749
8750 else
8751 ld_shlibs=no
8752 fi
8753
8754 ;;
8755
8756 dgux*)
8757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8758 hardcode_libdir_flag_spec='-L$libdir'
8759 hardcode_shlibpath_var=no
8760 ;;
8761
8762 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8763 # support. Future versions do this automatically, but an explicit c++rt0.o
8764 # does not break anything, and helps significantly (at the cost of a little
8765 # extra space).
8766 freebsd2.2*)
8767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8768 hardcode_libdir_flag_spec='-R$libdir'
8769 hardcode_direct=yes
8770 hardcode_shlibpath_var=no
8771 ;;
8772
8773 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8774 freebsd2.*)
8775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8776 hardcode_direct=yes
8777 hardcode_minus_L=yes
8778 hardcode_shlibpath_var=no
8779 ;;
8780
8781 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8782 freebsd* | dragonfly*)
8783 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8784 hardcode_libdir_flag_spec='-R$libdir'
8785 hardcode_direct=yes
8786 hardcode_shlibpath_var=no
8787 ;;
8788
8789 hpux9*)
8790 if test "$GCC" = yes; then
8791 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'
8792 else
8793 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'
8794 fi
8795 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8796 hardcode_libdir_separator=:
8797 hardcode_direct=yes
8798
8799 # hardcode_minus_L: Not really in the search PATH,
8800 # but as the default location of the library.
8801 hardcode_minus_L=yes
8802 export_dynamic_flag_spec='${wl}-E'
8803 ;;
8804
8805 hpux10*)
8806 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8807 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8808 else
8809 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8810 fi
8811 if test "$with_gnu_ld" = no; then
8812 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8813 hardcode_libdir_flag_spec_ld='+b $libdir'
8814 hardcode_libdir_separator=:
8815 hardcode_direct=yes
8816 hardcode_direct_absolute=yes
8817 export_dynamic_flag_spec='${wl}-E'
8818 # hardcode_minus_L: Not really in the search PATH,
8819 # but as the default location of the library.
8820 hardcode_minus_L=yes
8821 fi
8822 ;;
8823
8824 hpux11*)
8825 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8826 case $host_cpu in
8827 hppa*64*)
8828 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8829 ;;
8830 ia64*)
8831 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8832 ;;
8833 *)
8834 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8835 ;;
8836 esac
8837 else
8838 case $host_cpu in
8839 hppa*64*)
8840 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8841 ;;
8842 ia64*)
8843 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8844 ;;
8845 *)
8846
8847 # Older versions of the 11.00 compiler do not understand -b yet
8848 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8850 $as_echo_n "checking if $CC understands -b... " >&6; }
8851 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8852 $as_echo_n "(cached) " >&6
8853 else
8854 lt_cv_prog_compiler__b=no
8855 save_LDFLAGS="$LDFLAGS"
8856 LDFLAGS="$LDFLAGS -b"
8857 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8858 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8859 # The linker can only warn and ignore the option if not recognized
8860 # So say no if there are warnings
8861 if test -s conftest.err; then
8862 # Append any errors to the config.log.
8863 cat conftest.err 1>&5
8864 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8866 if diff conftest.exp conftest.er2 >/dev/null; then
8867 lt_cv_prog_compiler__b=yes
8868 fi
8869 else
8870 lt_cv_prog_compiler__b=yes
8871 fi
8872 fi
8873 $RM -r conftest*
8874 LDFLAGS="$save_LDFLAGS"
8875
8876 fi
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8878 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8879
8880 if test x"$lt_cv_prog_compiler__b" = xyes; then
8881 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8882 else
8883 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8884 fi
8885
8886 ;;
8887 esac
8888 fi
8889 if test "$with_gnu_ld" = no; then
8890 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8891 hardcode_libdir_separator=:
8892
8893 case $host_cpu in
8894 hppa*64*|ia64*)
8895 hardcode_direct=no
8896 hardcode_shlibpath_var=no
8897 ;;
8898 *)
8899 hardcode_direct=yes
8900 hardcode_direct_absolute=yes
8901 export_dynamic_flag_spec='${wl}-E'
8902
8903 # hardcode_minus_L: Not really in the search PATH,
8904 # but as the default location of the library.
8905 hardcode_minus_L=yes
8906 ;;
8907 esac
8908 fi
8909 ;;
8910
8911 irix5* | irix6* | nonstopux*)
8912 if test "$GCC" = yes; then
8913 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'
8914 # Try to use the -exported_symbol ld option, if it does not
8915 # work, assume that -exports_file does not work either and
8916 # implicitly export all symbols.
8917 save_LDFLAGS="$LDFLAGS"
8918 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8921 int foo(void) {}
8922 _ACEOF
8923 if ac_fn_c_try_link "$LINENO"; then :
8924 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'
8925
8926 fi
8927 rm -f core conftest.err conftest.$ac_objext \
8928 conftest$ac_exeext conftest.$ac_ext
8929 LDFLAGS="$save_LDFLAGS"
8930 else
8931 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'
8932 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'
8933 fi
8934 archive_cmds_need_lc='no'
8935 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8936 hardcode_libdir_separator=:
8937 inherit_rpath=yes
8938 link_all_deplibs=yes
8939 ;;
8940
8941 netbsd*)
8942 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8943 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8944 else
8945 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8946 fi
8947 hardcode_libdir_flag_spec='-R$libdir'
8948 hardcode_direct=yes
8949 hardcode_shlibpath_var=no
8950 ;;
8951
8952 newsos6)
8953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8954 hardcode_direct=yes
8955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8956 hardcode_libdir_separator=:
8957 hardcode_shlibpath_var=no
8958 ;;
8959
8960 *nto* | *qnx*)
8961 ;;
8962
8963 openbsd*)
8964 if test -f /usr/libexec/ld.so; then
8965 hardcode_direct=yes
8966 hardcode_shlibpath_var=no
8967 hardcode_direct_absolute=yes
8968 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8969 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8970 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8971 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8972 export_dynamic_flag_spec='${wl}-E'
8973 else
8974 case $host_os in
8975 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8977 hardcode_libdir_flag_spec='-R$libdir'
8978 ;;
8979 *)
8980 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8981 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8982 ;;
8983 esac
8984 fi
8985 else
8986 ld_shlibs=no
8987 fi
8988 ;;
8989
8990 os2*)
8991 hardcode_libdir_flag_spec='-L$libdir'
8992 hardcode_minus_L=yes
8993 allow_undefined_flag=unsupported
8994 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'
8995 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8996 ;;
8997
8998 osf3*)
8999 if test "$GCC" = yes; then
9000 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9001 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'
9002 else
9003 allow_undefined_flag=' -expect_unresolved \*'
9004 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'
9005 fi
9006 archive_cmds_need_lc='no'
9007 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9008 hardcode_libdir_separator=:
9009 ;;
9010
9011 osf4* | osf5*) # as osf3* with the addition of -msym flag
9012 if test "$GCC" = yes; then
9013 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9014 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'
9015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9016 else
9017 allow_undefined_flag=' -expect_unresolved \*'
9018 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'
9019 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~
9020 $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'
9021
9022 # Both c and cxx compiler support -rpath directly
9023 hardcode_libdir_flag_spec='-rpath $libdir'
9024 fi
9025 archive_cmds_need_lc='no'
9026 hardcode_libdir_separator=:
9027 ;;
9028
9029 solaris*)
9030 no_undefined_flag=' -z defs'
9031 if test "$GCC" = yes; then
9032 wlarc='${wl}'
9033 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9034 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9035 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9036 else
9037 case `$CC -V 2>&1` in
9038 *"Compilers 5.0"*)
9039 wlarc=''
9040 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9041 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9042 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9043 ;;
9044 *)
9045 wlarc='${wl}'
9046 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9047 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9048 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9049 ;;
9050 esac
9051 fi
9052 hardcode_libdir_flag_spec='-R$libdir'
9053 hardcode_shlibpath_var=no
9054 case $host_os in
9055 solaris2.[0-5] | solaris2.[0-5].*) ;;
9056 *)
9057 # The compiler driver will combine and reorder linker options,
9058 # but understands `-z linker_flag'. GCC discards it without `$wl',
9059 # but is careful enough not to reorder.
9060 # Supported since Solaris 2.6 (maybe 2.5.1?)
9061 if test "$GCC" = yes; then
9062 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9063 else
9064 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9065 fi
9066 ;;
9067 esac
9068 link_all_deplibs=yes
9069 ;;
9070
9071 sunos4*)
9072 if test "x$host_vendor" = xsequent; then
9073 # Use $CC to link under sequent, because it throws in some extra .o
9074 # files that make .init and .fini sections work.
9075 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9076 else
9077 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9078 fi
9079 hardcode_libdir_flag_spec='-L$libdir'
9080 hardcode_direct=yes
9081 hardcode_minus_L=yes
9082 hardcode_shlibpath_var=no
9083 ;;
9084
9085 sysv4)
9086 case $host_vendor in
9087 sni)
9088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9089 hardcode_direct=yes # is this really true???
9090 ;;
9091 siemens)
9092 ## LD is ld it makes a PLAMLIB
9093 ## CC just makes a GrossModule.
9094 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9095 reload_cmds='$CC -r -o $output$reload_objs'
9096 hardcode_direct=no
9097 ;;
9098 motorola)
9099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9100 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9101 ;;
9102 esac
9103 runpath_var='LD_RUN_PATH'
9104 hardcode_shlibpath_var=no
9105 ;;
9106
9107 sysv4.3*)
9108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9109 hardcode_shlibpath_var=no
9110 export_dynamic_flag_spec='-Bexport'
9111 ;;
9112
9113 sysv4*MP*)
9114 if test -d /usr/nec; then
9115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9116 hardcode_shlibpath_var=no
9117 runpath_var=LD_RUN_PATH
9118 hardcode_runpath_var=yes
9119 ld_shlibs=yes
9120 fi
9121 ;;
9122
9123 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9124 no_undefined_flag='${wl}-z,text'
9125 archive_cmds_need_lc=no
9126 hardcode_shlibpath_var=no
9127 runpath_var='LD_RUN_PATH'
9128
9129 if test "$GCC" = yes; then
9130 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9131 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9132 else
9133 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9134 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9135 fi
9136 ;;
9137
9138 sysv5* | sco3.2v5* | sco5v6*)
9139 # Note: We can NOT use -z defs as we might desire, because we do not
9140 # link with -lc, and that would cause any symbols used from libc to
9141 # always be unresolved, which means just about no library would
9142 # ever link correctly. If we're not using GNU ld we use -z text
9143 # though, which does catch some bad symbols but isn't as heavy-handed
9144 # as -z defs.
9145 no_undefined_flag='${wl}-z,text'
9146 allow_undefined_flag='${wl}-z,nodefs'
9147 archive_cmds_need_lc=no
9148 hardcode_shlibpath_var=no
9149 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9150 hardcode_libdir_separator=':'
9151 link_all_deplibs=yes
9152 export_dynamic_flag_spec='${wl}-Bexport'
9153 runpath_var='LD_RUN_PATH'
9154
9155 if test "$GCC" = yes; then
9156 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9157 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9158 else
9159 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9160 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9161 fi
9162 ;;
9163
9164 uts4*)
9165 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9166 hardcode_libdir_flag_spec='-L$libdir'
9167 hardcode_shlibpath_var=no
9168 ;;
9169
9170 *)
9171 ld_shlibs=no
9172 ;;
9173 esac
9174
9175 if test x$host_vendor = xsni; then
9176 case $host in
9177 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9178 export_dynamic_flag_spec='${wl}-Blargedynsym'
9179 ;;
9180 esac
9181 fi
9182 fi
9183
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9185 $as_echo "$ld_shlibs" >&6; }
9186 test "$ld_shlibs" = no && can_build_shared=no
9187
9188 with_gnu_ld=$with_gnu_ld
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204 #
9205 # Do we need to explicitly link libc?
9206 #
9207 case "x$archive_cmds_need_lc" in
9208 x|xyes)
9209 # Assume -lc should be added
9210 archive_cmds_need_lc=yes
9211
9212 if test "$enable_shared" = yes && test "$GCC" = yes; then
9213 case $archive_cmds in
9214 *'~'*)
9215 # FIXME: we may have to deal with multi-command sequences.
9216 ;;
9217 '$CC '*)
9218 # Test whether the compiler implicitly links with -lc since on some
9219 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9220 # to ld, don't add -lc before -lgcc.
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9222 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9223 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9224 $as_echo_n "(cached) " >&6
9225 else
9226 $RM conftest*
9227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9228
9229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9230 (eval $ac_compile) 2>&5
9231 ac_status=$?
9232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9233 test $ac_status = 0; } 2>conftest.err; then
9234 soname=conftest
9235 lib=conftest
9236 libobjs=conftest.$ac_objext
9237 deplibs=
9238 wl=$lt_prog_compiler_wl
9239 pic_flag=$lt_prog_compiler_pic
9240 compiler_flags=-v
9241 linker_flags=-v
9242 verstring=
9243 output_objdir=.
9244 libname=conftest
9245 lt_save_allow_undefined_flag=$allow_undefined_flag
9246 allow_undefined_flag=
9247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9248 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9249 ac_status=$?
9250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9251 test $ac_status = 0; }
9252 then
9253 lt_cv_archive_cmds_need_lc=no
9254 else
9255 lt_cv_archive_cmds_need_lc=yes
9256 fi
9257 allow_undefined_flag=$lt_save_allow_undefined_flag
9258 else
9259 cat conftest.err 1>&5
9260 fi
9261 $RM conftest*
9262
9263 fi
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9265 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9266 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9267 ;;
9268 esac
9269 fi
9270 ;;
9271 esac
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
9424
9425
9426
9427
9428
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9430 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9431
9432 if test "$GCC" = yes; then
9433 case $host_os in
9434 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9435 *) lt_awk_arg="/^libraries:/" ;;
9436 esac
9437 case $host_os in
9438 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9439 *) lt_sed_strip_eq="s,=/,/,g" ;;
9440 esac
9441 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9442 case $lt_search_path_spec in
9443 *\;*)
9444 # if the path contains ";" then we assume it to be the separator
9445 # otherwise default to the standard path separator (i.e. ":") - it is
9446 # assumed that no part of a normal pathname contains ";" but that should
9447 # okay in the real world where ";" in dirpaths is itself problematic.
9448 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9449 ;;
9450 *)
9451 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9452 ;;
9453 esac
9454 # Ok, now we have the path, separated by spaces, we can step through it
9455 # and add multilib dir if necessary.
9456 lt_tmp_lt_search_path_spec=
9457 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9458 for lt_sys_path in $lt_search_path_spec; do
9459 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9460 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9461 else
9462 test -d "$lt_sys_path" && \
9463 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9464 fi
9465 done
9466 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9467 BEGIN {RS=" "; FS="/|\n";} {
9468 lt_foo="";
9469 lt_count=0;
9470 for (lt_i = NF; lt_i > 0; lt_i--) {
9471 if ($lt_i != "" && $lt_i != ".") {
9472 if ($lt_i == "..") {
9473 lt_count++;
9474 } else {
9475 if (lt_count == 0) {
9476 lt_foo="/" $lt_i lt_foo;
9477 } else {
9478 lt_count--;
9479 }
9480 }
9481 }
9482 }
9483 if (lt_foo != "") { lt_freq[lt_foo]++; }
9484 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9485 }'`
9486 # AWK program above erroneously prepends '/' to C:/dos/paths
9487 # for these hosts.
9488 case $host_os in
9489 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9490 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9491 esac
9492 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9493 else
9494 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9495 fi
9496 library_names_spec=
9497 libname_spec='lib$name'
9498 soname_spec=
9499 shrext_cmds=".so"
9500 postinstall_cmds=
9501 postuninstall_cmds=
9502 finish_cmds=
9503 finish_eval=
9504 shlibpath_var=
9505 shlibpath_overrides_runpath=unknown
9506 version_type=none
9507 dynamic_linker="$host_os ld.so"
9508 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9509 need_lib_prefix=unknown
9510 hardcode_into_libs=no
9511
9512 # when you set need_version to no, make sure it does not cause -set_version
9513 # flags to be left without arguments
9514 need_version=unknown
9515
9516 case $host_os in
9517 aix3*)
9518 version_type=linux
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9520 shlibpath_var=LIBPATH
9521
9522 # AIX 3 has no versioning support, so we append a major version to the name.
9523 soname_spec='${libname}${release}${shared_ext}$major'
9524 ;;
9525
9526 aix[4-9]*)
9527 version_type=linux
9528 need_lib_prefix=no
9529 need_version=no
9530 hardcode_into_libs=yes
9531 if test "$host_cpu" = ia64; then
9532 # AIX 5 supports IA64
9533 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9534 shlibpath_var=LD_LIBRARY_PATH
9535 else
9536 # With GCC up to 2.95.x, collect2 would create an import file
9537 # for dependence libraries. The import file would start with
9538 # the line `#! .'. This would cause the generated library to
9539 # depend on `.', always an invalid library. This was fixed in
9540 # development snapshots of GCC prior to 3.0.
9541 case $host_os in
9542 aix4 | aix4.[01] | aix4.[01].*)
9543 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9544 echo ' yes '
9545 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9546 :
9547 else
9548 can_build_shared=no
9549 fi
9550 ;;
9551 esac
9552 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9553 # soname into executable. Probably we can add versioning support to
9554 # collect2, so additional links can be useful in future.
9555 if test "$aix_use_runtimelinking" = yes; then
9556 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9557 # instead of lib<name>.a to let people know that these are not
9558 # typical AIX shared libraries.
9559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9560 else
9561 # We preserve .a as extension for shared libraries through AIX4.2
9562 # and later when we are not doing run time linking.
9563 library_names_spec='${libname}${release}.a $libname.a'
9564 soname_spec='${libname}${release}${shared_ext}$major'
9565 fi
9566 shlibpath_var=LIBPATH
9567 fi
9568 ;;
9569
9570 amigaos*)
9571 case $host_cpu in
9572 powerpc)
9573 # Since July 2007 AmigaOS4 officially supports .so libraries.
9574 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576 ;;
9577 m68k)
9578 library_names_spec='$libname.ixlibrary $libname.a'
9579 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9580 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'
9581 ;;
9582 esac
9583 ;;
9584
9585 beos*)
9586 library_names_spec='${libname}${shared_ext}'
9587 dynamic_linker="$host_os ld.so"
9588 shlibpath_var=LIBRARY_PATH
9589 ;;
9590
9591 bsdi[45]*)
9592 version_type=linux
9593 need_version=no
9594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9595 soname_spec='${libname}${release}${shared_ext}$major'
9596 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9597 shlibpath_var=LD_LIBRARY_PATH
9598 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9599 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9600 # the default ld.so.conf also contains /usr/contrib/lib and
9601 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9602 # libtool to hard-code these into programs
9603 ;;
9604
9605 cygwin* | mingw* | pw32* | cegcc*)
9606 version_type=windows
9607 shrext_cmds=".dll"
9608 need_version=no
9609 need_lib_prefix=no
9610
9611 case $GCC,$host_os in
9612 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9613 library_names_spec='$libname.dll.a'
9614 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9615 postinstall_cmds='base_file=`basename \${file}`~
9616 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9617 dldir=$destdir/`dirname \$dlpath`~
9618 test -d \$dldir || mkdir -p \$dldir~
9619 $install_prog $dir/$dlname \$dldir/$dlname~
9620 chmod a+x \$dldir/$dlname~
9621 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9622 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9623 fi'
9624 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9625 dlpath=$dir/\$dldll~
9626 $RM \$dlpath'
9627 shlibpath_overrides_runpath=yes
9628
9629 case $host_os in
9630 cygwin*)
9631 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9632 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9633
9634 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9635 ;;
9636 mingw* | cegcc*)
9637 # MinGW DLLs use traditional 'lib' prefix
9638 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9639 ;;
9640 pw32*)
9641 # pw32 DLLs use 'pw' prefix rather than 'lib'
9642 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9643 ;;
9644 esac
9645 ;;
9646
9647 *)
9648 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9649 ;;
9650 esac
9651 dynamic_linker='Win32 ld.exe'
9652 # FIXME: first we should search . and the directory the executable is in
9653 shlibpath_var=PATH
9654 ;;
9655
9656 darwin* | rhapsody*)
9657 dynamic_linker="$host_os dyld"
9658 version_type=darwin
9659 need_lib_prefix=no
9660 need_version=no
9661 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9662 soname_spec='${libname}${release}${major}$shared_ext'
9663 shlibpath_overrides_runpath=yes
9664 shlibpath_var=DYLD_LIBRARY_PATH
9665 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9666
9667 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9668 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9669 ;;
9670
9671 dgux*)
9672 version_type=linux
9673 need_lib_prefix=no
9674 need_version=no
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9676 soname_spec='${libname}${release}${shared_ext}$major'
9677 shlibpath_var=LD_LIBRARY_PATH
9678 ;;
9679
9680 freebsd* | dragonfly*)
9681 # DragonFly does not have aout. When/if they implement a new
9682 # versioning mechanism, adjust this.
9683 if test -x /usr/bin/objformat; then
9684 objformat=`/usr/bin/objformat`
9685 else
9686 case $host_os in
9687 freebsd[23].*) objformat=aout ;;
9688 *) objformat=elf ;;
9689 esac
9690 fi
9691 version_type=freebsd-$objformat
9692 case $version_type in
9693 freebsd-elf*)
9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9695 need_version=no
9696 need_lib_prefix=no
9697 ;;
9698 freebsd-*)
9699 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9700 need_version=yes
9701 ;;
9702 esac
9703 shlibpath_var=LD_LIBRARY_PATH
9704 case $host_os in
9705 freebsd2.*)
9706 shlibpath_overrides_runpath=yes
9707 ;;
9708 freebsd3.[01]* | freebsdelf3.[01]*)
9709 shlibpath_overrides_runpath=yes
9710 hardcode_into_libs=yes
9711 ;;
9712 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9713 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9714 shlibpath_overrides_runpath=no
9715 hardcode_into_libs=yes
9716 ;;
9717 *) # from 4.6 on, and DragonFly
9718 shlibpath_overrides_runpath=yes
9719 hardcode_into_libs=yes
9720 ;;
9721 esac
9722 ;;
9723
9724 gnu*)
9725 version_type=linux
9726 need_lib_prefix=no
9727 need_version=no
9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9729 soname_spec='${libname}${release}${shared_ext}$major'
9730 shlibpath_var=LD_LIBRARY_PATH
9731 hardcode_into_libs=yes
9732 ;;
9733
9734 haiku*)
9735 version_type=linux
9736 need_lib_prefix=no
9737 need_version=no
9738 dynamic_linker="$host_os runtime_loader"
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9740 soname_spec='${libname}${release}${shared_ext}$major'
9741 shlibpath_var=LIBRARY_PATH
9742 shlibpath_overrides_runpath=yes
9743 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9744 hardcode_into_libs=yes
9745 ;;
9746
9747 hpux9* | hpux10* | hpux11*)
9748 # Give a soname corresponding to the major version so that dld.sl refuses to
9749 # link against other versions.
9750 version_type=sunos
9751 need_lib_prefix=no
9752 need_version=no
9753 case $host_cpu in
9754 ia64*)
9755 shrext_cmds='.so'
9756 hardcode_into_libs=yes
9757 dynamic_linker="$host_os dld.so"
9758 shlibpath_var=LD_LIBRARY_PATH
9759 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9761 soname_spec='${libname}${release}${shared_ext}$major'
9762 if test "X$HPUX_IA64_MODE" = X32; then
9763 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9764 else
9765 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9766 fi
9767 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9768 ;;
9769 hppa*64*)
9770 shrext_cmds='.sl'
9771 hardcode_into_libs=yes
9772 dynamic_linker="$host_os dld.sl"
9773 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9774 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9776 soname_spec='${libname}${release}${shared_ext}$major'
9777 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9779 ;;
9780 *)
9781 shrext_cmds='.sl'
9782 dynamic_linker="$host_os dld.sl"
9783 shlibpath_var=SHLIB_PATH
9784 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9786 soname_spec='${libname}${release}${shared_ext}$major'
9787 ;;
9788 esac
9789 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9790 postinstall_cmds='chmod 555 $lib'
9791 # or fails outright, so override atomically:
9792 install_override_mode=555
9793 ;;
9794
9795 interix[3-9]*)
9796 version_type=linux
9797 need_lib_prefix=no
9798 need_version=no
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9800 soname_spec='${libname}${release}${shared_ext}$major'
9801 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9802 shlibpath_var=LD_LIBRARY_PATH
9803 shlibpath_overrides_runpath=no
9804 hardcode_into_libs=yes
9805 ;;
9806
9807 irix5* | irix6* | nonstopux*)
9808 case $host_os in
9809 nonstopux*) version_type=nonstopux ;;
9810 *)
9811 if test "$lt_cv_prog_gnu_ld" = yes; then
9812 version_type=linux
9813 else
9814 version_type=irix
9815 fi ;;
9816 esac
9817 need_lib_prefix=no
9818 need_version=no
9819 soname_spec='${libname}${release}${shared_ext}$major'
9820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9821 case $host_os in
9822 irix5* | nonstopux*)
9823 libsuff= shlibsuff=
9824 ;;
9825 *)
9826 case $LD in # libtool.m4 will add one of these switches to LD
9827 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9828 libsuff= shlibsuff= libmagic=32-bit;;
9829 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9830 libsuff=32 shlibsuff=N32 libmagic=N32;;
9831 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9832 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9833 *) libsuff= shlibsuff= libmagic=never-match;;
9834 esac
9835 ;;
9836 esac
9837 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9838 shlibpath_overrides_runpath=no
9839 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9840 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9841 hardcode_into_libs=yes
9842 ;;
9843
9844 # No shared lib support for Linux oldld, aout, or coff.
9845 linux*oldld* | linux*aout* | linux*coff*)
9846 dynamic_linker=no
9847 ;;
9848
9849 # This must be Linux ELF.
9850 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9851 version_type=linux
9852 need_lib_prefix=no
9853 need_version=no
9854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9855 soname_spec='${libname}${release}${shared_ext}$major'
9856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9857 shlibpath_var=LD_LIBRARY_PATH
9858 shlibpath_overrides_runpath=no
9859
9860 # Some binutils ld are patched to set DT_RUNPATH
9861 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9862 $as_echo_n "(cached) " >&6
9863 else
9864 lt_cv_shlibpath_overrides_runpath=no
9865 save_LDFLAGS=$LDFLAGS
9866 save_libdir=$libdir
9867 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9868 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9871
9872 int
9873 main ()
9874 {
9875
9876 ;
9877 return 0;
9878 }
9879 _ACEOF
9880 if ac_fn_c_try_link "$LINENO"; then :
9881 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9882 lt_cv_shlibpath_overrides_runpath=yes
9883 fi
9884 fi
9885 rm -f core conftest.err conftest.$ac_objext \
9886 conftest$ac_exeext conftest.$ac_ext
9887 LDFLAGS=$save_LDFLAGS
9888 libdir=$save_libdir
9889
9890 fi
9891
9892 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9893
9894 # This implies no fast_install, which is unacceptable.
9895 # Some rework will be needed to allow for fast_install
9896 # before this can be enabled.
9897 hardcode_into_libs=yes
9898
9899 # Append ld.so.conf contents to the search path
9900 if test -f /etc/ld.so.conf; then
9901 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' ' '`
9902 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9903 fi
9904
9905 # We used to test for /lib/ld.so.1 and disable shared libraries on
9906 # powerpc, because MkLinux only supported shared libraries with the
9907 # GNU dynamic linker. Since this was broken with cross compilers,
9908 # most powerpc-linux boxes support dynamic linking these days and
9909 # people can always --disable-shared, the test was removed, and we
9910 # assume the GNU/Linux dynamic linker is in use.
9911 dynamic_linker='GNU/Linux ld.so'
9912 ;;
9913
9914 netbsd*)
9915 version_type=sunos
9916 need_lib_prefix=no
9917 need_version=no
9918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9921 dynamic_linker='NetBSD (a.out) ld.so'
9922 else
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9924 soname_spec='${libname}${release}${shared_ext}$major'
9925 dynamic_linker='NetBSD ld.elf_so'
9926 fi
9927 shlibpath_var=LD_LIBRARY_PATH
9928 shlibpath_overrides_runpath=yes
9929 hardcode_into_libs=yes
9930 ;;
9931
9932 newsos6)
9933 version_type=linux
9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9935 shlibpath_var=LD_LIBRARY_PATH
9936 shlibpath_overrides_runpath=yes
9937 ;;
9938
9939 *nto* | *qnx*)
9940 version_type=qnx
9941 need_lib_prefix=no
9942 need_version=no
9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9944 soname_spec='${libname}${release}${shared_ext}$major'
9945 shlibpath_var=LD_LIBRARY_PATH
9946 shlibpath_overrides_runpath=no
9947 hardcode_into_libs=yes
9948 dynamic_linker='ldqnx.so'
9949 ;;
9950
9951 openbsd*)
9952 version_type=sunos
9953 sys_lib_dlsearch_path_spec="/usr/lib"
9954 need_lib_prefix=no
9955 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9956 case $host_os in
9957 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9958 *) need_version=no ;;
9959 esac
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9962 shlibpath_var=LD_LIBRARY_PATH
9963 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9964 case $host_os in
9965 openbsd2.[89] | openbsd2.[89].*)
9966 shlibpath_overrides_runpath=no
9967 ;;
9968 *)
9969 shlibpath_overrides_runpath=yes
9970 ;;
9971 esac
9972 else
9973 shlibpath_overrides_runpath=yes
9974 fi
9975 ;;
9976
9977 os2*)
9978 libname_spec='$name'
9979 shrext_cmds=".dll"
9980 need_lib_prefix=no
9981 library_names_spec='$libname${shared_ext} $libname.a'
9982 dynamic_linker='OS/2 ld.exe'
9983 shlibpath_var=LIBPATH
9984 ;;
9985
9986 osf3* | osf4* | osf5*)
9987 version_type=osf
9988 need_lib_prefix=no
9989 need_version=no
9990 soname_spec='${libname}${release}${shared_ext}$major'
9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9992 shlibpath_var=LD_LIBRARY_PATH
9993 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9994 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9995 ;;
9996
9997 rdos*)
9998 dynamic_linker=no
9999 ;;
10000
10001 solaris*)
10002 version_type=linux
10003 need_lib_prefix=no
10004 need_version=no
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006 soname_spec='${libname}${release}${shared_ext}$major'
10007 shlibpath_var=LD_LIBRARY_PATH
10008 shlibpath_overrides_runpath=yes
10009 hardcode_into_libs=yes
10010 # ldd complains unless libraries are executable
10011 postinstall_cmds='chmod +x $lib'
10012 ;;
10013
10014 sunos4*)
10015 version_type=sunos
10016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10017 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10018 shlibpath_var=LD_LIBRARY_PATH
10019 shlibpath_overrides_runpath=yes
10020 if test "$with_gnu_ld" = yes; then
10021 need_lib_prefix=no
10022 fi
10023 need_version=yes
10024 ;;
10025
10026 sysv4 | sysv4.3*)
10027 version_type=linux
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10029 soname_spec='${libname}${release}${shared_ext}$major'
10030 shlibpath_var=LD_LIBRARY_PATH
10031 case $host_vendor in
10032 sni)
10033 shlibpath_overrides_runpath=no
10034 need_lib_prefix=no
10035 runpath_var=LD_RUN_PATH
10036 ;;
10037 siemens)
10038 need_lib_prefix=no
10039 ;;
10040 motorola)
10041 need_lib_prefix=no
10042 need_version=no
10043 shlibpath_overrides_runpath=no
10044 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10045 ;;
10046 esac
10047 ;;
10048
10049 sysv4*MP*)
10050 if test -d /usr/nec ;then
10051 version_type=linux
10052 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10053 soname_spec='$libname${shared_ext}.$major'
10054 shlibpath_var=LD_LIBRARY_PATH
10055 fi
10056 ;;
10057
10058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10059 version_type=freebsd-elf
10060 need_lib_prefix=no
10061 need_version=no
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10063 soname_spec='${libname}${release}${shared_ext}$major'
10064 shlibpath_var=LD_LIBRARY_PATH
10065 shlibpath_overrides_runpath=yes
10066 hardcode_into_libs=yes
10067 if test "$with_gnu_ld" = yes; then
10068 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10069 else
10070 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10071 case $host_os in
10072 sco3.2v5*)
10073 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10074 ;;
10075 esac
10076 fi
10077 sys_lib_dlsearch_path_spec='/usr/lib'
10078 ;;
10079
10080 tpf*)
10081 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10082 version_type=linux
10083 need_lib_prefix=no
10084 need_version=no
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10086 shlibpath_var=LD_LIBRARY_PATH
10087 shlibpath_overrides_runpath=no
10088 hardcode_into_libs=yes
10089 ;;
10090
10091 uts4*)
10092 version_type=linux
10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10094 soname_spec='${libname}${release}${shared_ext}$major'
10095 shlibpath_var=LD_LIBRARY_PATH
10096 ;;
10097
10098 *)
10099 dynamic_linker=no
10100 ;;
10101 esac
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10103 $as_echo "$dynamic_linker" >&6; }
10104 test "$dynamic_linker" = no && can_build_shared=no
10105
10106 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10107 if test "$GCC" = yes; then
10108 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10109 fi
10110
10111 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10112 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10113 fi
10114 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10115 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10116 fi
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
10204
10205
10206
10207
10208
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10210 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10211 hardcode_action=
10212 if test -n "$hardcode_libdir_flag_spec" ||
10213 test -n "$runpath_var" ||
10214 test "X$hardcode_automatic" = "Xyes" ; then
10215
10216 # We can hardcode non-existent directories.
10217 if test "$hardcode_direct" != no &&
10218 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10219 # have to relink, otherwise we might link with an installed library
10220 # when we should be linking with a yet-to-be-installed one
10221 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10222 test "$hardcode_minus_L" != no; then
10223 # Linking always hardcodes the temporary library directory.
10224 hardcode_action=relink
10225 else
10226 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10227 hardcode_action=immediate
10228 fi
10229 else
10230 # We cannot hardcode anything, or else we can only hardcode existing
10231 # directories.
10232 hardcode_action=unsupported
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10235 $as_echo "$hardcode_action" >&6; }
10236
10237 if test "$hardcode_action" = relink ||
10238 test "$inherit_rpath" = yes; then
10239 # Fast installation is not supported
10240 enable_fast_install=no
10241 elif test "$shlibpath_overrides_runpath" = yes ||
10242 test "$enable_shared" = no; then
10243 # Fast installation is not necessary
10244 enable_fast_install=needless
10245 fi
10246
10247
10248
10249
10250
10251
10252 if test "x$enable_dlopen" != xyes; then
10253 enable_dlopen=unknown
10254 enable_dlopen_self=unknown
10255 enable_dlopen_self_static=unknown
10256 else
10257 lt_cv_dlopen=no
10258 lt_cv_dlopen_libs=
10259
10260 case $host_os in
10261 beos*)
10262 lt_cv_dlopen="load_add_on"
10263 lt_cv_dlopen_libs=
10264 lt_cv_dlopen_self=yes
10265 ;;
10266
10267 mingw* | pw32* | cegcc*)
10268 lt_cv_dlopen="LoadLibrary"
10269 lt_cv_dlopen_libs=
10270 ;;
10271
10272 cygwin*)
10273 lt_cv_dlopen="dlopen"
10274 lt_cv_dlopen_libs=
10275 ;;
10276
10277 darwin*)
10278 # if libdl is installed we need to link against it
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10280 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10281 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10282 $as_echo_n "(cached) " >&6
10283 else
10284 ac_check_lib_save_LIBS=$LIBS
10285 LIBS="-ldl $LIBS"
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10288
10289 /* Override any GCC internal prototype to avoid an error.
10290 Use char because int might match the return type of a GCC
10291 builtin and then its argument prototype would still apply. */
10292 #ifdef __cplusplus
10293 extern "C"
10294 #endif
10295 char dlopen ();
10296 int
10297 main ()
10298 {
10299 return dlopen ();
10300 ;
10301 return 0;
10302 }
10303 _ACEOF
10304 if ac_fn_c_try_link "$LINENO"; then :
10305 ac_cv_lib_dl_dlopen=yes
10306 else
10307 ac_cv_lib_dl_dlopen=no
10308 fi
10309 rm -f core conftest.err conftest.$ac_objext \
10310 conftest$ac_exeext conftest.$ac_ext
10311 LIBS=$ac_check_lib_save_LIBS
10312 fi
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10314 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10315 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10316 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10317 else
10318
10319 lt_cv_dlopen="dyld"
10320 lt_cv_dlopen_libs=
10321 lt_cv_dlopen_self=yes
10322
10323 fi
10324
10325 ;;
10326
10327 *)
10328 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10329 if test "x$ac_cv_func_shl_load" = x""yes; then :
10330 lt_cv_dlopen="shl_load"
10331 else
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10333 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10334 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10335 $as_echo_n "(cached) " >&6
10336 else
10337 ac_check_lib_save_LIBS=$LIBS
10338 LIBS="-ldld $LIBS"
10339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10340 /* end confdefs.h. */
10341
10342 /* Override any GCC internal prototype to avoid an error.
10343 Use char because int might match the return type of a GCC
10344 builtin and then its argument prototype would still apply. */
10345 #ifdef __cplusplus
10346 extern "C"
10347 #endif
10348 char shl_load ();
10349 int
10350 main ()
10351 {
10352 return shl_load ();
10353 ;
10354 return 0;
10355 }
10356 _ACEOF
10357 if ac_fn_c_try_link "$LINENO"; then :
10358 ac_cv_lib_dld_shl_load=yes
10359 else
10360 ac_cv_lib_dld_shl_load=no
10361 fi
10362 rm -f core conftest.err conftest.$ac_objext \
10363 conftest$ac_exeext conftest.$ac_ext
10364 LIBS=$ac_check_lib_save_LIBS
10365 fi
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10367 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10368 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10369 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10370 else
10371 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10372 if test "x$ac_cv_func_dlopen" = x""yes; then :
10373 lt_cv_dlopen="dlopen"
10374 else
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10376 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10377 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10378 $as_echo_n "(cached) " >&6
10379 else
10380 ac_check_lib_save_LIBS=$LIBS
10381 LIBS="-ldl $LIBS"
10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10384
10385 /* Override any GCC internal prototype to avoid an error.
10386 Use char because int might match the return type of a GCC
10387 builtin and then its argument prototype would still apply. */
10388 #ifdef __cplusplus
10389 extern "C"
10390 #endif
10391 char dlopen ();
10392 int
10393 main ()
10394 {
10395 return dlopen ();
10396 ;
10397 return 0;
10398 }
10399 _ACEOF
10400 if ac_fn_c_try_link "$LINENO"; then :
10401 ac_cv_lib_dl_dlopen=yes
10402 else
10403 ac_cv_lib_dl_dlopen=no
10404 fi
10405 rm -f core conftest.err conftest.$ac_objext \
10406 conftest$ac_exeext conftest.$ac_ext
10407 LIBS=$ac_check_lib_save_LIBS
10408 fi
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10410 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10411 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10413 else
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10415 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10416 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10417 $as_echo_n "(cached) " >&6
10418 else
10419 ac_check_lib_save_LIBS=$LIBS
10420 LIBS="-lsvld $LIBS"
10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10423
10424 /* Override any GCC internal prototype to avoid an error.
10425 Use char because int might match the return type of a GCC
10426 builtin and then its argument prototype would still apply. */
10427 #ifdef __cplusplus
10428 extern "C"
10429 #endif
10430 char dlopen ();
10431 int
10432 main ()
10433 {
10434 return dlopen ();
10435 ;
10436 return 0;
10437 }
10438 _ACEOF
10439 if ac_fn_c_try_link "$LINENO"; then :
10440 ac_cv_lib_svld_dlopen=yes
10441 else
10442 ac_cv_lib_svld_dlopen=no
10443 fi
10444 rm -f core conftest.err conftest.$ac_objext \
10445 conftest$ac_exeext conftest.$ac_ext
10446 LIBS=$ac_check_lib_save_LIBS
10447 fi
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10449 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10450 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10451 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10452 else
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10454 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10455 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10456 $as_echo_n "(cached) " >&6
10457 else
10458 ac_check_lib_save_LIBS=$LIBS
10459 LIBS="-ldld $LIBS"
10460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461 /* end confdefs.h. */
10462
10463 /* Override any GCC internal prototype to avoid an error.
10464 Use char because int might match the return type of a GCC
10465 builtin and then its argument prototype would still apply. */
10466 #ifdef __cplusplus
10467 extern "C"
10468 #endif
10469 char dld_link ();
10470 int
10471 main ()
10472 {
10473 return dld_link ();
10474 ;
10475 return 0;
10476 }
10477 _ACEOF
10478 if ac_fn_c_try_link "$LINENO"; then :
10479 ac_cv_lib_dld_dld_link=yes
10480 else
10481 ac_cv_lib_dld_dld_link=no
10482 fi
10483 rm -f core conftest.err conftest.$ac_objext \
10484 conftest$ac_exeext conftest.$ac_ext
10485 LIBS=$ac_check_lib_save_LIBS
10486 fi
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10488 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10489 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10490 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10491 fi
10492
10493
10494 fi
10495
10496
10497 fi
10498
10499
10500 fi
10501
10502
10503 fi
10504
10505
10506 fi
10507
10508 ;;
10509 esac
10510
10511 if test "x$lt_cv_dlopen" != xno; then
10512 enable_dlopen=yes
10513 else
10514 enable_dlopen=no
10515 fi
10516
10517 case $lt_cv_dlopen in
10518 dlopen)
10519 save_CPPFLAGS="$CPPFLAGS"
10520 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10521
10522 save_LDFLAGS="$LDFLAGS"
10523 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10524
10525 save_LIBS="$LIBS"
10526 LIBS="$lt_cv_dlopen_libs $LIBS"
10527
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10529 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10530 if test "${lt_cv_dlopen_self+set}" = set; then :
10531 $as_echo_n "(cached) " >&6
10532 else
10533 if test "$cross_compiling" = yes; then :
10534 lt_cv_dlopen_self=cross
10535 else
10536 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10537 lt_status=$lt_dlunknown
10538 cat > conftest.$ac_ext <<_LT_EOF
10539 #line 10539 "configure"
10540 #include "confdefs.h"
10541
10542 #if HAVE_DLFCN_H
10543 #include <dlfcn.h>
10544 #endif
10545
10546 #include <stdio.h>
10547
10548 #ifdef RTLD_GLOBAL
10549 # define LT_DLGLOBAL RTLD_GLOBAL
10550 #else
10551 # ifdef DL_GLOBAL
10552 # define LT_DLGLOBAL DL_GLOBAL
10553 # else
10554 # define LT_DLGLOBAL 0
10555 # endif
10556 #endif
10557
10558 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10559 find out it does not work in some platform. */
10560 #ifndef LT_DLLAZY_OR_NOW
10561 # ifdef RTLD_LAZY
10562 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10563 # else
10564 # ifdef DL_LAZY
10565 # define LT_DLLAZY_OR_NOW DL_LAZY
10566 # else
10567 # ifdef RTLD_NOW
10568 # define LT_DLLAZY_OR_NOW RTLD_NOW
10569 # else
10570 # ifdef DL_NOW
10571 # define LT_DLLAZY_OR_NOW DL_NOW
10572 # else
10573 # define LT_DLLAZY_OR_NOW 0
10574 # endif
10575 # endif
10576 # endif
10577 # endif
10578 #endif
10579
10580 /* When -fvisbility=hidden is used, assume the code has been annotated
10581 correspondingly for the symbols needed. */
10582 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10583 void fnord () __attribute__((visibility("default")));
10584 #endif
10585
10586 void fnord () { int i=42; }
10587 int main ()
10588 {
10589 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10590 int status = $lt_dlunknown;
10591
10592 if (self)
10593 {
10594 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10595 else
10596 {
10597 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10598 else puts (dlerror ());
10599 }
10600 /* dlclose (self); */
10601 }
10602 else
10603 puts (dlerror ());
10604
10605 return status;
10606 }
10607 _LT_EOF
10608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10609 (eval $ac_link) 2>&5
10610 ac_status=$?
10611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10612 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10613 (./conftest; exit; ) >&5 2>/dev/null
10614 lt_status=$?
10615 case x$lt_status in
10616 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10617 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10618 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10619 esac
10620 else :
10621 # compilation failed
10622 lt_cv_dlopen_self=no
10623 fi
10624 fi
10625 rm -fr conftest*
10626
10627
10628 fi
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10630 $as_echo "$lt_cv_dlopen_self" >&6; }
10631
10632 if test "x$lt_cv_dlopen_self" = xyes; then
10633 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10635 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10636 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10637 $as_echo_n "(cached) " >&6
10638 else
10639 if test "$cross_compiling" = yes; then :
10640 lt_cv_dlopen_self_static=cross
10641 else
10642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10643 lt_status=$lt_dlunknown
10644 cat > conftest.$ac_ext <<_LT_EOF
10645 #line 10645 "configure"
10646 #include "confdefs.h"
10647
10648 #if HAVE_DLFCN_H
10649 #include <dlfcn.h>
10650 #endif
10651
10652 #include <stdio.h>
10653
10654 #ifdef RTLD_GLOBAL
10655 # define LT_DLGLOBAL RTLD_GLOBAL
10656 #else
10657 # ifdef DL_GLOBAL
10658 # define LT_DLGLOBAL DL_GLOBAL
10659 # else
10660 # define LT_DLGLOBAL 0
10661 # endif
10662 #endif
10663
10664 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10665 find out it does not work in some platform. */
10666 #ifndef LT_DLLAZY_OR_NOW
10667 # ifdef RTLD_LAZY
10668 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10669 # else
10670 # ifdef DL_LAZY
10671 # define LT_DLLAZY_OR_NOW DL_LAZY
10672 # else
10673 # ifdef RTLD_NOW
10674 # define LT_DLLAZY_OR_NOW RTLD_NOW
10675 # else
10676 # ifdef DL_NOW
10677 # define LT_DLLAZY_OR_NOW DL_NOW
10678 # else
10679 # define LT_DLLAZY_OR_NOW 0
10680 # endif
10681 # endif
10682 # endif
10683 # endif
10684 #endif
10685
10686 /* When -fvisbility=hidden is used, assume the code has been annotated
10687 correspondingly for the symbols needed. */
10688 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10689 void fnord () __attribute__((visibility("default")));
10690 #endif
10691
10692 void fnord () { int i=42; }
10693 int main ()
10694 {
10695 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10696 int status = $lt_dlunknown;
10697
10698 if (self)
10699 {
10700 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10701 else
10702 {
10703 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10704 else puts (dlerror ());
10705 }
10706 /* dlclose (self); */
10707 }
10708 else
10709 puts (dlerror ());
10710
10711 return status;
10712 }
10713 _LT_EOF
10714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10715 (eval $ac_link) 2>&5
10716 ac_status=$?
10717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10718 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10719 (./conftest; exit; ) >&5 2>/dev/null
10720 lt_status=$?
10721 case x$lt_status in
10722 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10723 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10724 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10725 esac
10726 else :
10727 # compilation failed
10728 lt_cv_dlopen_self_static=no
10729 fi
10730 fi
10731 rm -fr conftest*
10732
10733
10734 fi
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10736 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10737 fi
10738
10739 CPPFLAGS="$save_CPPFLAGS"
10740 LDFLAGS="$save_LDFLAGS"
10741 LIBS="$save_LIBS"
10742 ;;
10743 esac
10744
10745 case $lt_cv_dlopen_self in
10746 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10747 *) enable_dlopen_self=unknown ;;
10748 esac
10749
10750 case $lt_cv_dlopen_self_static in
10751 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10752 *) enable_dlopen_self_static=unknown ;;
10753 esac
10754 fi
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772 striplib=
10773 old_striplib=
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10775 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10776 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10777 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10778 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10780 $as_echo "yes" >&6; }
10781 else
10782 # FIXME - insert some real tests, host_os isn't really good enough
10783 case $host_os in
10784 darwin*)
10785 if test -n "$STRIP" ; then
10786 striplib="$STRIP -x"
10787 old_striplib="$STRIP -S"
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10789 $as_echo "yes" >&6; }
10790 else
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10792 $as_echo "no" >&6; }
10793 fi
10794 ;;
10795 *)
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10797 $as_echo "no" >&6; }
10798 ;;
10799 esac
10800 fi
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813 # Report which library types will actually be built
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10815 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10817 $as_echo "$can_build_shared" >&6; }
10818
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10820 $as_echo_n "checking whether to build shared libraries... " >&6; }
10821 test "$can_build_shared" = "no" && enable_shared=no
10822
10823 # On AIX, shared libraries and static libraries use the same namespace, and
10824 # are all built from PIC.
10825 case $host_os in
10826 aix3*)
10827 test "$enable_shared" = yes && enable_static=no
10828 if test -n "$RANLIB"; then
10829 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10830 postinstall_cmds='$RANLIB $lib'
10831 fi
10832 ;;
10833
10834 aix[4-9]*)
10835 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10836 test "$enable_shared" = yes && enable_static=no
10837 fi
10838 ;;
10839 esac
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10841 $as_echo "$enable_shared" >&6; }
10842
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10844 $as_echo_n "checking whether to build static libraries... " >&6; }
10845 # Make sure either enable_shared or enable_static is yes.
10846 test "$enable_shared" = yes || enable_static=yes
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10848 $as_echo "$enable_static" >&6; }
10849
10850
10851
10852
10853 fi
10854 ac_ext=c
10855 ac_cpp='$CPP $CPPFLAGS'
10856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10859
10860 CC="$lt_save_CC"
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874 ac_config_commands="$ac_config_commands libtool"
10875
10876
10877
10878
10879 # Only expand once:
10880
10881
10882
10883 ac_ext=cpp
10884 ac_cpp='$CXXCPP $CPPFLAGS'
10885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10888 if test -z "$CXX"; then
10889 if test -n "$CCC"; then
10890 CXX=$CCC
10891 else
10892 if test -n "$ac_tool_prefix"; then
10893 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10894 do
10895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10898 $as_echo_n "checking for $ac_word... " >&6; }
10899 if test "${ac_cv_prog_CXX+set}" = set; then :
10900 $as_echo_n "(cached) " >&6
10901 else
10902 if test -n "$CXX"; then
10903 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10904 else
10905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906 for as_dir in $PATH
10907 do
10908 IFS=$as_save_IFS
10909 test -z "$as_dir" && as_dir=.
10910 for ac_exec_ext in '' $ac_executable_extensions; do
10911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10912 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10914 break 2
10915 fi
10916 done
10917 done
10918 IFS=$as_save_IFS
10919
10920 fi
10921 fi
10922 CXX=$ac_cv_prog_CXX
10923 if test -n "$CXX"; then
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10925 $as_echo "$CXX" >&6; }
10926 else
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10928 $as_echo "no" >&6; }
10929 fi
10930
10931
10932 test -n "$CXX" && break
10933 done
10934 fi
10935 if test -z "$CXX"; then
10936 ac_ct_CXX=$CXX
10937 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10938 do
10939 # Extract the first word of "$ac_prog", so it can be a program name with args.
10940 set dummy $ac_prog; ac_word=$2
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10942 $as_echo_n "checking for $ac_word... " >&6; }
10943 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10944 $as_echo_n "(cached) " >&6
10945 else
10946 if test -n "$ac_ct_CXX"; then
10947 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10948 else
10949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10950 for as_dir in $PATH
10951 do
10952 IFS=$as_save_IFS
10953 test -z "$as_dir" && as_dir=.
10954 for ac_exec_ext in '' $ac_executable_extensions; do
10955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10956 ac_cv_prog_ac_ct_CXX="$ac_prog"
10957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10958 break 2
10959 fi
10960 done
10961 done
10962 IFS=$as_save_IFS
10963
10964 fi
10965 fi
10966 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10967 if test -n "$ac_ct_CXX"; then
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10969 $as_echo "$ac_ct_CXX" >&6; }
10970 else
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972 $as_echo "no" >&6; }
10973 fi
10974
10975
10976 test -n "$ac_ct_CXX" && break
10977 done
10978
10979 if test "x$ac_ct_CXX" = x; then
10980 CXX="g++"
10981 else
10982 case $cross_compiling:$ac_tool_warned in
10983 yes:)
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10986 ac_tool_warned=yes ;;
10987 esac
10988 CXX=$ac_ct_CXX
10989 fi
10990 fi
10991
10992 fi
10993 fi
10994 # Provide some information about the compiler.
10995 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10996 set X $ac_compile
10997 ac_compiler=$2
10998 for ac_option in --version -v -V -qversion; do
10999 { { ac_try="$ac_compiler $ac_option >&5"
11000 case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11003 esac
11004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11005 $as_echo "$ac_try_echo"; } >&5
11006 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11007 ac_status=$?
11008 if test -s conftest.err; then
11009 sed '10a\
11010 ... rest of stderr output deleted ...
11011 10q' conftest.err >conftest.er1
11012 cat conftest.er1 >&5
11013 rm -f conftest.er1 conftest.err
11014 fi
11015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11016 test $ac_status = 0; }
11017 done
11018
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11020 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11021 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11022 $as_echo_n "(cached) " >&6
11023 else
11024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025 /* end confdefs.h. */
11026
11027 int
11028 main ()
11029 {
11030 #ifndef __GNUC__
11031 choke me
11032 #endif
11033
11034 ;
11035 return 0;
11036 }
11037 _ACEOF
11038 if ac_fn_cxx_try_compile "$LINENO"; then :
11039 ac_compiler_gnu=yes
11040 else
11041 ac_compiler_gnu=no
11042 fi
11043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11044 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11045
11046 fi
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11048 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11049 if test $ac_compiler_gnu = yes; then
11050 GXX=yes
11051 else
11052 GXX=
11053 fi
11054 ac_test_CXXFLAGS=${CXXFLAGS+set}
11055 ac_save_CXXFLAGS=$CXXFLAGS
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11057 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11058 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11059 $as_echo_n "(cached) " >&6
11060 else
11061 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11062 ac_cxx_werror_flag=yes
11063 ac_cv_prog_cxx_g=no
11064 CXXFLAGS="-g"
11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11067
11068 int
11069 main ()
11070 {
11071
11072 ;
11073 return 0;
11074 }
11075 _ACEOF
11076 if ac_fn_cxx_try_compile "$LINENO"; then :
11077 ac_cv_prog_cxx_g=yes
11078 else
11079 CXXFLAGS=""
11080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11081 /* end confdefs.h. */
11082
11083 int
11084 main ()
11085 {
11086
11087 ;
11088 return 0;
11089 }
11090 _ACEOF
11091 if ac_fn_cxx_try_compile "$LINENO"; then :
11092
11093 else
11094 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11095 CXXFLAGS="-g"
11096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11097 /* end confdefs.h. */
11098
11099 int
11100 main ()
11101 {
11102
11103 ;
11104 return 0;
11105 }
11106 _ACEOF
11107 if ac_fn_cxx_try_compile "$LINENO"; then :
11108 ac_cv_prog_cxx_g=yes
11109 fi
11110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11111 fi
11112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11113 fi
11114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11115 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11116 fi
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11118 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11119 if test "$ac_test_CXXFLAGS" = set; then
11120 CXXFLAGS=$ac_save_CXXFLAGS
11121 elif test $ac_cv_prog_cxx_g = yes; then
11122 if test "$GXX" = yes; then
11123 CXXFLAGS="-g -O2"
11124 else
11125 CXXFLAGS="-g"
11126 fi
11127 else
11128 if test "$GXX" = yes; then
11129 CXXFLAGS="-O2"
11130 else
11131 CXXFLAGS=
11132 fi
11133 fi
11134 ac_ext=c
11135 ac_cpp='$CPP $CPPFLAGS'
11136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11139
11140 depcc="$CXX" am_compiler_list=
11141
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11143 $as_echo_n "checking dependency style of $depcc... " >&6; }
11144 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11145 $as_echo_n "(cached) " >&6
11146 else
11147 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11148 # We make a subdir and do the tests there. Otherwise we can end up
11149 # making bogus files that we don't know about and never remove. For
11150 # instance it was reported that on HP-UX the gcc test will end up
11151 # making a dummy file named `D' -- because `-MD' means `put the output
11152 # in D'.
11153 mkdir conftest.dir
11154 # Copy depcomp to subdir because otherwise we won't find it if we're
11155 # using a relative directory.
11156 cp "$am_depcomp" conftest.dir
11157 cd conftest.dir
11158 # We will build objects and dependencies in a subdirectory because
11159 # it helps to detect inapplicable dependency modes. For instance
11160 # both Tru64's cc and ICC support -MD to output dependencies as a
11161 # side effect of compilation, but ICC will put the dependencies in
11162 # the current directory while Tru64 will put them in the object
11163 # directory.
11164 mkdir sub
11165
11166 am_cv_CXX_dependencies_compiler_type=none
11167 if test "$am_compiler_list" = ""; then
11168 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11169 fi
11170 am__universal=false
11171 case " $depcc " in #(
11172 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11173 esac
11174
11175 for depmode in $am_compiler_list; do
11176 # Setup a source with many dependencies, because some compilers
11177 # like to wrap large dependency lists on column 80 (with \), and
11178 # we should not choose a depcomp mode which is confused by this.
11179 #
11180 # We need to recreate these files for each test, as the compiler may
11181 # overwrite some of them when testing with obscure command lines.
11182 # This happens at least with the AIX C compiler.
11183 : > sub/conftest.c
11184 for i in 1 2 3 4 5 6; do
11185 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11186 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11187 # Solaris 8's {/usr,}/bin/sh.
11188 touch sub/conftst$i.h
11189 done
11190 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11191
11192 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11193 # mode. It turns out that the SunPro C++ compiler does not properly
11194 # handle `-M -o', and we need to detect this. Also, some Intel
11195 # versions had trouble with output in subdirs
11196 am__obj=sub/conftest.${OBJEXT-o}
11197 am__minus_obj="-o $am__obj"
11198 case $depmode in
11199 gcc)
11200 # This depmode causes a compiler race in universal mode.
11201 test "$am__universal" = false || continue
11202 ;;
11203 nosideeffect)
11204 # after this tag, mechanisms are not by side-effect, so they'll
11205 # only be used when explicitly requested
11206 if test "x$enable_dependency_tracking" = xyes; then
11207 continue
11208 else
11209 break
11210 fi
11211 ;;
11212 msvisualcpp | msvcmsys)
11213 # This compiler won't grok `-c -o', but also, the minuso test has
11214 # not run yet. These depmodes are late enough in the game, and
11215 # so weak that their functioning should not be impacted.
11216 am__obj=conftest.${OBJEXT-o}
11217 am__minus_obj=
11218 ;;
11219 none) break ;;
11220 esac
11221 if depmode=$depmode \
11222 source=sub/conftest.c object=$am__obj \
11223 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11224 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11225 >/dev/null 2>conftest.err &&
11226 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11227 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11228 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11229 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11230 # icc doesn't choke on unknown options, it will just issue warnings
11231 # or remarks (even with -Werror). So we grep stderr for any message
11232 # that says an option was ignored or not supported.
11233 # When given -MP, icc 7.0 and 7.1 complain thusly:
11234 # icc: Command line warning: ignoring option '-M'; no argument required
11235 # The diagnosis changed in icc 8.0:
11236 # icc: Command line remark: option '-MP' not supported
11237 if (grep 'ignoring option' conftest.err ||
11238 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11239 am_cv_CXX_dependencies_compiler_type=$depmode
11240 break
11241 fi
11242 fi
11243 done
11244
11245 cd ..
11246 rm -rf conftest.dir
11247 else
11248 am_cv_CXX_dependencies_compiler_type=none
11249 fi
11250
11251 fi
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11253 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11254 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11255
11256 if
11257 test "x$enable_dependency_tracking" != xno \
11258 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11259 am__fastdepCXX_TRUE=
11260 am__fastdepCXX_FALSE='#'
11261 else
11262 am__fastdepCXX_TRUE='#'
11263 am__fastdepCXX_FALSE=
11264 fi
11265
11266
11267 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11268 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11269 (test "X$CXX" != "Xg++"))) ; then
11270 ac_ext=cpp
11271 ac_cpp='$CXXCPP $CPPFLAGS'
11272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11276 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11277 if test -z "$CXXCPP"; then
11278 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11279 $as_echo_n "(cached) " >&6
11280 else
11281 # Double quotes because CXXCPP needs to be expanded
11282 for CXXCPP in "$CXX -E" "/lib/cpp"
11283 do
11284 ac_preproc_ok=false
11285 for ac_cxx_preproc_warn_flag in '' yes
11286 do
11287 # Use a header file that comes with gcc, so configuring glibc
11288 # with a fresh cross-compiler works.
11289 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11290 # <limits.h> exists even on freestanding compilers.
11291 # On the NeXT, cc -E runs the code through the compiler's parser,
11292 # not just through cpp. "Syntax error" is here to catch this case.
11293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11294 /* end confdefs.h. */
11295 #ifdef __STDC__
11296 # include <limits.h>
11297 #else
11298 # include <assert.h>
11299 #endif
11300 Syntax error
11301 _ACEOF
11302 if ac_fn_cxx_try_cpp "$LINENO"; then :
11303
11304 else
11305 # Broken: fails on valid input.
11306 continue
11307 fi
11308 rm -f conftest.err conftest.$ac_ext
11309
11310 # OK, works on sane cases. Now check whether nonexistent headers
11311 # can be detected and how.
11312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11313 /* end confdefs.h. */
11314 #include <ac_nonexistent.h>
11315 _ACEOF
11316 if ac_fn_cxx_try_cpp "$LINENO"; then :
11317 # Broken: success on invalid input.
11318 continue
11319 else
11320 # Passes both tests.
11321 ac_preproc_ok=:
11322 break
11323 fi
11324 rm -f conftest.err conftest.$ac_ext
11325
11326 done
11327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11328 rm -f conftest.err conftest.$ac_ext
11329 if $ac_preproc_ok; then :
11330 break
11331 fi
11332
11333 done
11334 ac_cv_prog_CXXCPP=$CXXCPP
11335
11336 fi
11337 CXXCPP=$ac_cv_prog_CXXCPP
11338 else
11339 ac_cv_prog_CXXCPP=$CXXCPP
11340 fi
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11342 $as_echo "$CXXCPP" >&6; }
11343 ac_preproc_ok=false
11344 for ac_cxx_preproc_warn_flag in '' yes
11345 do
11346 # Use a header file that comes with gcc, so configuring glibc
11347 # with a fresh cross-compiler works.
11348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11349 # <limits.h> exists even on freestanding compilers.
11350 # On the NeXT, cc -E runs the code through the compiler's parser,
11351 # not just through cpp. "Syntax error" is here to catch this case.
11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11354 #ifdef __STDC__
11355 # include <limits.h>
11356 #else
11357 # include <assert.h>
11358 #endif
11359 Syntax error
11360 _ACEOF
11361 if ac_fn_cxx_try_cpp "$LINENO"; then :
11362
11363 else
11364 # Broken: fails on valid input.
11365 continue
11366 fi
11367 rm -f conftest.err conftest.$ac_ext
11368
11369 # OK, works on sane cases. Now check whether nonexistent headers
11370 # can be detected and how.
11371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372 /* end confdefs.h. */
11373 #include <ac_nonexistent.h>
11374 _ACEOF
11375 if ac_fn_cxx_try_cpp "$LINENO"; then :
11376 # Broken: success on invalid input.
11377 continue
11378 else
11379 # Passes both tests.
11380 ac_preproc_ok=:
11381 break
11382 fi
11383 rm -f conftest.err conftest.$ac_ext
11384
11385 done
11386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11387 rm -f conftest.err conftest.$ac_ext
11388 if $ac_preproc_ok; then :
11389
11390 else
11391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11393 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11394 See \`config.log' for more details." "$LINENO" 5; }
11395 fi
11396
11397 ac_ext=c
11398 ac_cpp='$CPP $CPPFLAGS'
11399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11402
11403 else
11404 _lt_caught_CXX_error=yes
11405 fi
11406
11407 ac_ext=cpp
11408 ac_cpp='$CXXCPP $CPPFLAGS'
11409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11412
11413 archive_cmds_need_lc_CXX=no
11414 allow_undefined_flag_CXX=
11415 always_export_symbols_CXX=no
11416 archive_expsym_cmds_CXX=
11417 compiler_needs_object_CXX=no
11418 export_dynamic_flag_spec_CXX=
11419 hardcode_direct_CXX=no
11420 hardcode_direct_absolute_CXX=no
11421 hardcode_libdir_flag_spec_CXX=
11422 hardcode_libdir_flag_spec_ld_CXX=
11423 hardcode_libdir_separator_CXX=
11424 hardcode_minus_L_CXX=no
11425 hardcode_shlibpath_var_CXX=unsupported
11426 hardcode_automatic_CXX=no
11427 inherit_rpath_CXX=no
11428 module_cmds_CXX=
11429 module_expsym_cmds_CXX=
11430 link_all_deplibs_CXX=unknown
11431 old_archive_cmds_CXX=$old_archive_cmds
11432 reload_flag_CXX=$reload_flag
11433 reload_cmds_CXX=$reload_cmds
11434 no_undefined_flag_CXX=
11435 whole_archive_flag_spec_CXX=
11436 enable_shared_with_static_runtimes_CXX=no
11437
11438 # Source file extension for C++ test sources.
11439 ac_ext=cpp
11440
11441 # Object file extension for compiled C++ test sources.
11442 objext=o
11443 objext_CXX=$objext
11444
11445 # No sense in running all these tests if we already determined that
11446 # the CXX compiler isn't working. Some variables (like enable_shared)
11447 # are currently assumed to apply to all compilers on this platform,
11448 # and will be corrupted by setting them based on a non-working compiler.
11449 if test "$_lt_caught_CXX_error" != yes; then
11450 # Code to be used in simple compile tests
11451 lt_simple_compile_test_code="int some_variable = 0;"
11452
11453 # Code to be used in simple link tests
11454 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11455
11456 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11457
11458
11459
11460
11461
11462
11463 # If no C compiler was specified, use CC.
11464 LTCC=${LTCC-"$CC"}
11465
11466 # If no C compiler flags were specified, use CFLAGS.
11467 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11468
11469 # Allow CC to be a program name with arguments.
11470 compiler=$CC
11471
11472
11473 # save warnings/boilerplate of simple test code
11474 ac_outfile=conftest.$ac_objext
11475 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11476 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11477 _lt_compiler_boilerplate=`cat conftest.err`
11478 $RM conftest*
11479
11480 ac_outfile=conftest.$ac_objext
11481 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11482 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11483 _lt_linker_boilerplate=`cat conftest.err`
11484 $RM -r conftest*
11485
11486
11487 # Allow CC to be a program name with arguments.
11488 lt_save_CC=$CC
11489 lt_save_LD=$LD
11490 lt_save_GCC=$GCC
11491 GCC=$GXX
11492 lt_save_with_gnu_ld=$with_gnu_ld
11493 lt_save_path_LD=$lt_cv_path_LD
11494 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11495 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11496 else
11497 $as_unset lt_cv_prog_gnu_ld
11498 fi
11499 if test -n "${lt_cv_path_LDCXX+set}"; then
11500 lt_cv_path_LD=$lt_cv_path_LDCXX
11501 else
11502 $as_unset lt_cv_path_LD
11503 fi
11504 test -z "${LDCXX+set}" || LD=$LDCXX
11505 CC=${CXX-"c++"}
11506 compiler=$CC
11507 compiler_CXX=$CC
11508 for cc_temp in $compiler""; do
11509 case $cc_temp in
11510 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11511 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11512 \-*) ;;
11513 *) break;;
11514 esac
11515 done
11516 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11517
11518
11519 if test -n "$compiler"; then
11520 # We don't want -fno-exception when compiling C++ code, so set the
11521 # no_builtin_flag separately
11522 if test "$GXX" = yes; then
11523 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11524 else
11525 lt_prog_compiler_no_builtin_flag_CXX=
11526 fi
11527
11528 if test "$GXX" = yes; then
11529 # Set up default GNU C++ configuration
11530
11531
11532
11533 # Check whether --with-gnu-ld was given.
11534 if test "${with_gnu_ld+set}" = set; then :
11535 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11536 else
11537 with_gnu_ld=no
11538 fi
11539
11540 ac_prog=ld
11541 if test "$GCC" = yes; then
11542 # Check if gcc -print-prog-name=ld gives a path.
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11544 $as_echo_n "checking for ld used by $CC... " >&6; }
11545 case $host in
11546 *-*-mingw*)
11547 # gcc leaves a trailing carriage return which upsets mingw
11548 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11549 *)
11550 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11551 esac
11552 case $ac_prog in
11553 # Accept absolute paths.
11554 [\\/]* | ?:[\\/]*)
11555 re_direlt='/[^/][^/]*/\.\./'
11556 # Canonicalize the pathname of ld
11557 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11558 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11559 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11560 done
11561 test -z "$LD" && LD="$ac_prog"
11562 ;;
11563 "")
11564 # If it fails, then pretend we aren't using GCC.
11565 ac_prog=ld
11566 ;;
11567 *)
11568 # If it is relative, then search for the first ld in PATH.
11569 with_gnu_ld=unknown
11570 ;;
11571 esac
11572 elif test "$with_gnu_ld" = yes; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11574 $as_echo_n "checking for GNU ld... " >&6; }
11575 else
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11577 $as_echo_n "checking for non-GNU ld... " >&6; }
11578 fi
11579 if test "${lt_cv_path_LD+set}" = set; then :
11580 $as_echo_n "(cached) " >&6
11581 else
11582 if test -z "$LD"; then
11583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11584 for ac_dir in $PATH; do
11585 IFS="$lt_save_ifs"
11586 test -z "$ac_dir" && ac_dir=.
11587 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11588 lt_cv_path_LD="$ac_dir/$ac_prog"
11589 # Check to see if the program is GNU ld. I'd rather use --version,
11590 # but apparently some variants of GNU ld only accept -v.
11591 # Break only if it was the GNU/non-GNU ld that we prefer.
11592 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11593 *GNU* | *'with BFD'*)
11594 test "$with_gnu_ld" != no && break
11595 ;;
11596 *)
11597 test "$with_gnu_ld" != yes && break
11598 ;;
11599 esac
11600 fi
11601 done
11602 IFS="$lt_save_ifs"
11603 else
11604 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11605 fi
11606 fi
11607
11608 LD="$lt_cv_path_LD"
11609 if test -n "$LD"; then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11611 $as_echo "$LD" >&6; }
11612 else
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614 $as_echo "no" >&6; }
11615 fi
11616 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11618 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11619 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11620 $as_echo_n "(cached) " >&6
11621 else
11622 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11623 case `$LD -v 2>&1 </dev/null` in
11624 *GNU* | *'with BFD'*)
11625 lt_cv_prog_gnu_ld=yes
11626 ;;
11627 *)
11628 lt_cv_prog_gnu_ld=no
11629 ;;
11630 esac
11631 fi
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11633 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11634 with_gnu_ld=$lt_cv_prog_gnu_ld
11635
11636
11637
11638
11639
11640
11641
11642 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11643 # archiving commands below assume that GNU ld is being used.
11644 if test "$with_gnu_ld" = yes; then
11645 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11646 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'
11647
11648 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11649 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11650
11651 # If archive_cmds runs LD, not CC, wlarc should be empty
11652 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11653 # investigate it a little bit more. (MM)
11654 wlarc='${wl}'
11655
11656 # ancient GNU ld didn't support --whole-archive et. al.
11657 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11658 $GREP 'no-whole-archive' > /dev/null; then
11659 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11660 else
11661 whole_archive_flag_spec_CXX=
11662 fi
11663 else
11664 with_gnu_ld=no
11665 wlarc=
11666
11667 # A generic and very simple default shared library creation
11668 # command for GNU C++ for the case where it uses the native
11669 # linker, instead of GNU ld. If possible, this setting should
11670 # overridden to take advantage of the native linker features on
11671 # the platform it is being used on.
11672 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11673 fi
11674
11675 # Commands to make compiler produce verbose output that lists
11676 # what "hidden" libraries, object files and flags are used when
11677 # linking a shared library.
11678 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11679
11680 else
11681 GXX=no
11682 with_gnu_ld=no
11683 wlarc=
11684 fi
11685
11686 # PORTME: fill in a description of your system's C++ link characteristics
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11688 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11689 ld_shlibs_CXX=yes
11690 case $host_os in
11691 aix3*)
11692 # FIXME: insert proper C++ library support
11693 ld_shlibs_CXX=no
11694 ;;
11695 aix[4-9]*)
11696 if test "$host_cpu" = ia64; then
11697 # On IA64, the linker does run time linking by default, so we don't
11698 # have to do anything special.
11699 aix_use_runtimelinking=no
11700 exp_sym_flag='-Bexport'
11701 no_entry_flag=""
11702 else
11703 aix_use_runtimelinking=no
11704
11705 # Test if we are trying to use run time linking or normal
11706 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11707 # need to do runtime linking.
11708 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11709 for ld_flag in $LDFLAGS; do
11710 case $ld_flag in
11711 *-brtl*)
11712 aix_use_runtimelinking=yes
11713 break
11714 ;;
11715 esac
11716 done
11717 ;;
11718 esac
11719
11720 exp_sym_flag='-bexport'
11721 no_entry_flag='-bnoentry'
11722 fi
11723
11724 # When large executables or shared objects are built, AIX ld can
11725 # have problems creating the table of contents. If linking a library
11726 # or program results in "error TOC overflow" add -mminimal-toc to
11727 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11728 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11729
11730 archive_cmds_CXX=''
11731 hardcode_direct_CXX=yes
11732 hardcode_direct_absolute_CXX=yes
11733 hardcode_libdir_separator_CXX=':'
11734 link_all_deplibs_CXX=yes
11735 file_list_spec_CXX='${wl}-f,'
11736
11737 if test "$GXX" = yes; then
11738 case $host_os in aix4.[012]|aix4.[012].*)
11739 # We only want to do this on AIX 4.2 and lower, the check
11740 # below for broken collect2 doesn't work under 4.3+
11741 collect2name=`${CC} -print-prog-name=collect2`
11742 if test -f "$collect2name" &&
11743 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11744 then
11745 # We have reworked collect2
11746 :
11747 else
11748 # We have old collect2
11749 hardcode_direct_CXX=unsupported
11750 # It fails to find uninstalled libraries when the uninstalled
11751 # path is not listed in the libpath. Setting hardcode_minus_L
11752 # to unsupported forces relinking
11753 hardcode_minus_L_CXX=yes
11754 hardcode_libdir_flag_spec_CXX='-L$libdir'
11755 hardcode_libdir_separator_CXX=
11756 fi
11757 esac
11758 shared_flag='-shared'
11759 if test "$aix_use_runtimelinking" = yes; then
11760 shared_flag="$shared_flag "'${wl}-G'
11761 fi
11762 else
11763 # not using gcc
11764 if test "$host_cpu" = ia64; then
11765 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11766 # chokes on -Wl,-G. The following line is correct:
11767 shared_flag='-G'
11768 else
11769 if test "$aix_use_runtimelinking" = yes; then
11770 shared_flag='${wl}-G'
11771 else
11772 shared_flag='${wl}-bM:SRE'
11773 fi
11774 fi
11775 fi
11776
11777 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11778 # It seems that -bexpall does not export symbols beginning with
11779 # underscore (_), so it is better to generate a list of symbols to
11780 # export.
11781 always_export_symbols_CXX=yes
11782 if test "$aix_use_runtimelinking" = yes; then
11783 # Warning - without using the other runtime loading flags (-brtl),
11784 # -berok will link without error, but may produce a broken library.
11785 allow_undefined_flag_CXX='-berok'
11786 # Determine the default libpath from the value encoded in an empty
11787 # executable.
11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h. */
11790
11791 int
11792 main ()
11793 {
11794
11795 ;
11796 return 0;
11797 }
11798 _ACEOF
11799 if ac_fn_cxx_try_link "$LINENO"; then :
11800
11801 lt_aix_libpath_sed='
11802 /Import File Strings/,/^$/ {
11803 /^0/ {
11804 s/^0 *\(.*\)$/\1/
11805 p
11806 }
11807 }'
11808 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11809 # Check for a 64-bit object if we didn't find anything.
11810 if test -z "$aix_libpath"; then
11811 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11812 fi
11813 fi
11814 rm -f core conftest.err conftest.$ac_objext \
11815 conftest$ac_exeext conftest.$ac_ext
11816 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11817
11818 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11819
11820 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"
11821 else
11822 if test "$host_cpu" = ia64; then
11823 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11824 allow_undefined_flag_CXX="-z nodefs"
11825 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"
11826 else
11827 # Determine the default libpath from the value encoded in an
11828 # empty executable.
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11831
11832 int
11833 main ()
11834 {
11835
11836 ;
11837 return 0;
11838 }
11839 _ACEOF
11840 if ac_fn_cxx_try_link "$LINENO"; then :
11841
11842 lt_aix_libpath_sed='
11843 /Import File Strings/,/^$/ {
11844 /^0/ {
11845 s/^0 *\(.*\)$/\1/
11846 p
11847 }
11848 }'
11849 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11850 # Check for a 64-bit object if we didn't find anything.
11851 if test -z "$aix_libpath"; then
11852 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11853 fi
11854 fi
11855 rm -f core conftest.err conftest.$ac_objext \
11856 conftest$ac_exeext conftest.$ac_ext
11857 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11858
11859 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11860 # Warning - without using the other run time loading flags,
11861 # -berok will link without error, but may produce a broken library.
11862 no_undefined_flag_CXX=' ${wl}-bernotok'
11863 allow_undefined_flag_CXX=' ${wl}-berok'
11864 if test "$with_gnu_ld" = yes; then
11865 # We only use this code for GNU lds that support --whole-archive.
11866 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11867 else
11868 # Exported symbols can be pulled into shared objects from archives
11869 whole_archive_flag_spec_CXX='$convenience'
11870 fi
11871 archive_cmds_need_lc_CXX=yes
11872 # This is similar to how AIX traditionally builds its shared
11873 # libraries.
11874 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'
11875 fi
11876 fi
11877 ;;
11878
11879 beos*)
11880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11881 allow_undefined_flag_CXX=unsupported
11882 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11883 # support --undefined. This deserves some investigation. FIXME
11884 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11885 else
11886 ld_shlibs_CXX=no
11887 fi
11888 ;;
11889
11890 chorus*)
11891 case $cc_basename in
11892 *)
11893 # FIXME: insert proper C++ library support
11894 ld_shlibs_CXX=no
11895 ;;
11896 esac
11897 ;;
11898
11899 cygwin* | mingw* | pw32* | cegcc*)
11900 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11901 # as there is no search path for DLLs.
11902 hardcode_libdir_flag_spec_CXX='-L$libdir'
11903 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11904 allow_undefined_flag_CXX=unsupported
11905 always_export_symbols_CXX=no
11906 enable_shared_with_static_runtimes_CXX=yes
11907
11908 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11909 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'
11910 # If the export-symbols file already is a .def file (1st line
11911 # is EXPORTS), use it as is; otherwise, prepend...
11912 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11913 cp $export_symbols $output_objdir/$soname.def;
11914 else
11915 echo EXPORTS > $output_objdir/$soname.def;
11916 cat $export_symbols >> $output_objdir/$soname.def;
11917 fi~
11918 $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'
11919 else
11920 ld_shlibs_CXX=no
11921 fi
11922 ;;
11923 darwin* | rhapsody*)
11924
11925
11926 archive_cmds_need_lc_CXX=no
11927 hardcode_direct_CXX=no
11928 hardcode_automatic_CXX=yes
11929 hardcode_shlibpath_var_CXX=unsupported
11930 if test "$lt_cv_ld_force_load" = "yes"; then
11931 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\"`'
11932 else
11933 whole_archive_flag_spec_CXX=''
11934 fi
11935 link_all_deplibs_CXX=yes
11936 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11937 case $cc_basename in
11938 ifort*) _lt_dar_can_shared=yes ;;
11939 *) _lt_dar_can_shared=$GCC ;;
11940 esac
11941 if test "$_lt_dar_can_shared" = "yes"; then
11942 output_verbose_link_cmd=func_echo_all
11943 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}"
11944 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11945 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}"
11946 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}"
11947 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11948 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}"
11949 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}"
11950 fi
11951
11952 else
11953 ld_shlibs_CXX=no
11954 fi
11955
11956 ;;
11957
11958 dgux*)
11959 case $cc_basename in
11960 ec++*)
11961 # FIXME: insert proper C++ library support
11962 ld_shlibs_CXX=no
11963 ;;
11964 ghcx*)
11965 # Green Hills C++ Compiler
11966 # FIXME: insert proper C++ library support
11967 ld_shlibs_CXX=no
11968 ;;
11969 *)
11970 # FIXME: insert proper C++ library support
11971 ld_shlibs_CXX=no
11972 ;;
11973 esac
11974 ;;
11975
11976 freebsd2.*)
11977 # C++ shared libraries reported to be fairly broken before
11978 # switch to ELF
11979 ld_shlibs_CXX=no
11980 ;;
11981
11982 freebsd-elf*)
11983 archive_cmds_need_lc_CXX=no
11984 ;;
11985
11986 freebsd* | dragonfly*)
11987 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11988 # conventions
11989 ld_shlibs_CXX=yes
11990 ;;
11991
11992 gnu*)
11993 ;;
11994
11995 haiku*)
11996 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11997 link_all_deplibs_CXX=yes
11998 ;;
11999
12000 hpux9*)
12001 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12002 hardcode_libdir_separator_CXX=:
12003 export_dynamic_flag_spec_CXX='${wl}-E'
12004 hardcode_direct_CXX=yes
12005 hardcode_minus_L_CXX=yes # Not in the search PATH,
12006 # but as the default
12007 # location of the library.
12008
12009 case $cc_basename in
12010 CC*)
12011 # FIXME: insert proper C++ library support
12012 ld_shlibs_CXX=no
12013 ;;
12014 aCC*)
12015 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'
12016 # Commands to make compiler produce verbose output that lists
12017 # what "hidden" libraries, object files and flags are used when
12018 # linking a shared library.
12019 #
12020 # There doesn't appear to be a way to prevent this compiler from
12021 # explicitly linking system object files so we need to strip them
12022 # from the output so that they don't get included in the library
12023 # dependencies.
12024 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"'
12025 ;;
12026 *)
12027 if test "$GXX" = yes; then
12028 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'
12029 else
12030 # FIXME: insert proper C++ library support
12031 ld_shlibs_CXX=no
12032 fi
12033 ;;
12034 esac
12035 ;;
12036
12037 hpux10*|hpux11*)
12038 if test $with_gnu_ld = no; then
12039 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12040 hardcode_libdir_separator_CXX=:
12041
12042 case $host_cpu in
12043 hppa*64*|ia64*)
12044 ;;
12045 *)
12046 export_dynamic_flag_spec_CXX='${wl}-E'
12047 ;;
12048 esac
12049 fi
12050 case $host_cpu in
12051 hppa*64*|ia64*)
12052 hardcode_direct_CXX=no
12053 hardcode_shlibpath_var_CXX=no
12054 ;;
12055 *)
12056 hardcode_direct_CXX=yes
12057 hardcode_direct_absolute_CXX=yes
12058 hardcode_minus_L_CXX=yes # Not in the search PATH,
12059 # but as the default
12060 # location of the library.
12061 ;;
12062 esac
12063
12064 case $cc_basename in
12065 CC*)
12066 # FIXME: insert proper C++ library support
12067 ld_shlibs_CXX=no
12068 ;;
12069 aCC*)
12070 case $host_cpu in
12071 hppa*64*)
12072 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12073 ;;
12074 ia64*)
12075 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12076 ;;
12077 *)
12078 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12079 ;;
12080 esac
12081 # Commands to make compiler produce verbose output that lists
12082 # what "hidden" libraries, object files and flags are used when
12083 # linking a shared library.
12084 #
12085 # There doesn't appear to be a way to prevent this compiler from
12086 # explicitly linking system object files so we need to strip them
12087 # from the output so that they don't get included in the library
12088 # dependencies.
12089 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"'
12090 ;;
12091 *)
12092 if test "$GXX" = yes; then
12093 if test $with_gnu_ld = no; then
12094 case $host_cpu in
12095 hppa*64*)
12096 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12097 ;;
12098 ia64*)
12099 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12100 ;;
12101 *)
12102 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'
12103 ;;
12104 esac
12105 fi
12106 else
12107 # FIXME: insert proper C++ library support
12108 ld_shlibs_CXX=no
12109 fi
12110 ;;
12111 esac
12112 ;;
12113
12114 interix[3-9]*)
12115 hardcode_direct_CXX=no
12116 hardcode_shlibpath_var_CXX=no
12117 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12118 export_dynamic_flag_spec_CXX='${wl}-E'
12119 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12120 # Instead, shared libraries are loaded at an image base (0x10000000 by
12121 # default) and relocated if they conflict, which is a slow very memory
12122 # consuming and fragmenting process. To avoid this, we pick a random,
12123 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12124 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12125 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'
12126 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'
12127 ;;
12128 irix5* | irix6*)
12129 case $cc_basename in
12130 CC*)
12131 # SGI C++
12132 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'
12133
12134 # Archives containing C++ object files must be created using
12135 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12136 # necessary to make sure instantiated templates are included
12137 # in the archive.
12138 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12139 ;;
12140 *)
12141 if test "$GXX" = yes; then
12142 if test "$with_gnu_ld" = no; then
12143 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'
12144 else
12145 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'
12146 fi
12147 fi
12148 link_all_deplibs_CXX=yes
12149 ;;
12150 esac
12151 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12152 hardcode_libdir_separator_CXX=:
12153 inherit_rpath_CXX=yes
12154 ;;
12155
12156 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12157 case $cc_basename in
12158 KCC*)
12159 # Kuck and Associates, Inc. (KAI) C++ Compiler
12160
12161 # KCC will only create a shared library if the output file
12162 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12163 # to its proper name (with version) after linking.
12164 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'
12165 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'
12166 # Commands to make compiler produce verbose output that lists
12167 # what "hidden" libraries, object files and flags are used when
12168 # linking a shared library.
12169 #
12170 # There doesn't appear to be a way to prevent this compiler from
12171 # explicitly linking system object files so we need to strip them
12172 # from the output so that they don't get included in the library
12173 # dependencies.
12174 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"'
12175
12176 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12177 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12178
12179 # Archives containing C++ object files must be created using
12180 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12181 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12182 ;;
12183 icpc* | ecpc* )
12184 # Intel C++
12185 with_gnu_ld=yes
12186 # version 8.0 and above of icpc choke on multiply defined symbols
12187 # if we add $predep_objects and $postdep_objects, however 7.1 and
12188 # earlier do not add the objects themselves.
12189 case `$CC -V 2>&1` in
12190 *"Version 7."*)
12191 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12192 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'
12193 ;;
12194 *) # Version 8.0 or newer
12195 tmp_idyn=
12196 case $host_cpu in
12197 ia64*) tmp_idyn=' -i_dynamic';;
12198 esac
12199 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12200 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'
12201 ;;
12202 esac
12203 archive_cmds_need_lc_CXX=no
12204 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12205 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12206 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12207 ;;
12208 pgCC* | pgcpp*)
12209 # Portland Group C++ compiler
12210 case `$CC -V` in
12211 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12212 prelink_cmds_CXX='tpldir=Template.dir~
12213 rm -rf $tpldir~
12214 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12215 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12216 old_archive_cmds_CXX='tpldir=Template.dir~
12217 rm -rf $tpldir~
12218 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12219 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12220 $RANLIB $oldlib'
12221 archive_cmds_CXX='tpldir=Template.dir~
12222 rm -rf $tpldir~
12223 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12224 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12225 archive_expsym_cmds_CXX='tpldir=Template.dir~
12226 rm -rf $tpldir~
12227 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12228 $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'
12229 ;;
12230 *) # Version 6 and above use weak symbols
12231 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12232 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'
12233 ;;
12234 esac
12235
12236 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12237 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12238 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'
12239 ;;
12240 cxx*)
12241 # Compaq C++
12242 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12243 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'
12244
12245 runpath_var=LD_RUN_PATH
12246 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12247 hardcode_libdir_separator_CXX=:
12248
12249 # Commands to make compiler produce verbose output that lists
12250 # what "hidden" libraries, object files and flags are used when
12251 # linking a shared library.
12252 #
12253 # There doesn't appear to be a way to prevent this compiler from
12254 # explicitly linking system object files so we need to strip them
12255 # from the output so that they don't get included in the library
12256 # dependencies.
12257 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'
12258 ;;
12259 xl* | mpixl* | bgxl*)
12260 # IBM XL 8.0 on PPC, with GNU ld
12261 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12262 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12263 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12264 if test "x$supports_anon_versioning" = xyes; then
12265 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12266 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12267 echo "local: *; };" >> $output_objdir/$libname.ver~
12268 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12269 fi
12270 ;;
12271 *)
12272 case `$CC -V 2>&1 | sed 5q` in
12273 *Sun\ C*)
12274 # Sun C++ 5.9
12275 no_undefined_flag_CXX=' -zdefs'
12276 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12277 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'
12278 hardcode_libdir_flag_spec_CXX='-R$libdir'
12279 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'
12280 compiler_needs_object_CXX=yes
12281
12282 # Not sure whether something based on
12283 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12284 # would be better.
12285 output_verbose_link_cmd='func_echo_all'
12286
12287 # Archives containing C++ object files must be created using
12288 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12289 # necessary to make sure instantiated templates are included
12290 # in the archive.
12291 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12292 ;;
12293 esac
12294 ;;
12295 esac
12296 ;;
12297
12298 lynxos*)
12299 # FIXME: insert proper C++ library support
12300 ld_shlibs_CXX=no
12301 ;;
12302
12303 m88k*)
12304 # FIXME: insert proper C++ library support
12305 ld_shlibs_CXX=no
12306 ;;
12307
12308 mvs*)
12309 case $cc_basename in
12310 cxx*)
12311 # FIXME: insert proper C++ library support
12312 ld_shlibs_CXX=no
12313 ;;
12314 *)
12315 # FIXME: insert proper C++ library support
12316 ld_shlibs_CXX=no
12317 ;;
12318 esac
12319 ;;
12320
12321 netbsd*)
12322 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12323 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12324 wlarc=
12325 hardcode_libdir_flag_spec_CXX='-R$libdir'
12326 hardcode_direct_CXX=yes
12327 hardcode_shlibpath_var_CXX=no
12328 fi
12329 # Workaround some broken pre-1.5 toolchains
12330 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12331 ;;
12332
12333 *nto* | *qnx*)
12334 ld_shlibs_CXX=yes
12335 ;;
12336
12337 openbsd2*)
12338 # C++ shared libraries are fairly broken
12339 ld_shlibs_CXX=no
12340 ;;
12341
12342 openbsd*)
12343 if test -f /usr/libexec/ld.so; then
12344 hardcode_direct_CXX=yes
12345 hardcode_shlibpath_var_CXX=no
12346 hardcode_direct_absolute_CXX=yes
12347 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12348 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12349 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12350 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12351 export_dynamic_flag_spec_CXX='${wl}-E'
12352 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12353 fi
12354 output_verbose_link_cmd=func_echo_all
12355 else
12356 ld_shlibs_CXX=no
12357 fi
12358 ;;
12359
12360 osf3* | osf4* | osf5*)
12361 case $cc_basename in
12362 KCC*)
12363 # Kuck and Associates, Inc. (KAI) C++ Compiler
12364
12365 # KCC will only create a shared library if the output file
12366 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12367 # to its proper name (with version) after linking.
12368 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'
12369
12370 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12371 hardcode_libdir_separator_CXX=:
12372
12373 # Archives containing C++ object files must be created using
12374 # the KAI C++ compiler.
12375 case $host in
12376 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12377 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12378 esac
12379 ;;
12380 RCC*)
12381 # Rational C++ 2.4.1
12382 # FIXME: insert proper C++ library support
12383 ld_shlibs_CXX=no
12384 ;;
12385 cxx*)
12386 case $host in
12387 osf3*)
12388 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12389 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'
12390 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12391 ;;
12392 *)
12393 allow_undefined_flag_CXX=' -expect_unresolved \*'
12394 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'
12395 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12396 echo "-hidden">> $lib.exp~
12397 $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~
12398 $RM $lib.exp'
12399 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12400 ;;
12401 esac
12402
12403 hardcode_libdir_separator_CXX=:
12404
12405 # Commands to make compiler produce verbose output that lists
12406 # what "hidden" libraries, object files and flags are used when
12407 # linking a shared library.
12408 #
12409 # There doesn't appear to be a way to prevent this compiler from
12410 # explicitly linking system object files so we need to strip them
12411 # from the output so that they don't get included in the library
12412 # dependencies.
12413 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"'
12414 ;;
12415 *)
12416 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12417 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12418 case $host in
12419 osf3*)
12420 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'
12421 ;;
12422 *)
12423 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'
12424 ;;
12425 esac
12426
12427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12428 hardcode_libdir_separator_CXX=:
12429
12430 # Commands to make compiler produce verbose output that lists
12431 # what "hidden" libraries, object files and flags are used when
12432 # linking a shared library.
12433 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12434
12435 else
12436 # FIXME: insert proper C++ library support
12437 ld_shlibs_CXX=no
12438 fi
12439 ;;
12440 esac
12441 ;;
12442
12443 psos*)
12444 # FIXME: insert proper C++ library support
12445 ld_shlibs_CXX=no
12446 ;;
12447
12448 sunos4*)
12449 case $cc_basename in
12450 CC*)
12451 # Sun C++ 4.x
12452 # FIXME: insert proper C++ library support
12453 ld_shlibs_CXX=no
12454 ;;
12455 lcc*)
12456 # Lucid
12457 # FIXME: insert proper C++ library support
12458 ld_shlibs_CXX=no
12459 ;;
12460 *)
12461 # FIXME: insert proper C++ library support
12462 ld_shlibs_CXX=no
12463 ;;
12464 esac
12465 ;;
12466
12467 solaris*)
12468 case $cc_basename in
12469 CC*)
12470 # Sun C++ 4.2, 5.x and Centerline C++
12471 archive_cmds_need_lc_CXX=yes
12472 no_undefined_flag_CXX=' -zdefs'
12473 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12474 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12475 $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'
12476
12477 hardcode_libdir_flag_spec_CXX='-R$libdir'
12478 hardcode_shlibpath_var_CXX=no
12479 case $host_os in
12480 solaris2.[0-5] | solaris2.[0-5].*) ;;
12481 *)
12482 # The compiler driver will combine and reorder linker options,
12483 # but understands `-z linker_flag'.
12484 # Supported since Solaris 2.6 (maybe 2.5.1?)
12485 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12486 ;;
12487 esac
12488 link_all_deplibs_CXX=yes
12489
12490 output_verbose_link_cmd='func_echo_all'
12491
12492 # Archives containing C++ object files must be created using
12493 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12494 # necessary to make sure instantiated templates are included
12495 # in the archive.
12496 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12497 ;;
12498 gcx*)
12499 # Green Hills C++ Compiler
12500 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12501
12502 # The C++ compiler must be used to create the archive.
12503 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12504 ;;
12505 *)
12506 # GNU C++ compiler with Solaris linker
12507 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12508 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12509 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12510 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12511 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12512 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12513
12514 # Commands to make compiler produce verbose output that lists
12515 # what "hidden" libraries, object files and flags are used when
12516 # linking a shared library.
12517 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12518 else
12519 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12520 # platform.
12521 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12522 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12523 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12524
12525 # Commands to make compiler produce verbose output that lists
12526 # what "hidden" libraries, object files and flags are used when
12527 # linking a shared library.
12528 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12529 fi
12530
12531 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12532 case $host_os in
12533 solaris2.[0-5] | solaris2.[0-5].*) ;;
12534 *)
12535 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12536 ;;
12537 esac
12538 fi
12539 ;;
12540 esac
12541 ;;
12542
12543 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12544 no_undefined_flag_CXX='${wl}-z,text'
12545 archive_cmds_need_lc_CXX=no
12546 hardcode_shlibpath_var_CXX=no
12547 runpath_var='LD_RUN_PATH'
12548
12549 case $cc_basename in
12550 CC*)
12551 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12552 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12553 ;;
12554 *)
12555 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12556 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12557 ;;
12558 esac
12559 ;;
12560
12561 sysv5* | sco3.2v5* | sco5v6*)
12562 # Note: We can NOT use -z defs as we might desire, because we do not
12563 # link with -lc, and that would cause any symbols used from libc to
12564 # always be unresolved, which means just about no library would
12565 # ever link correctly. If we're not using GNU ld we use -z text
12566 # though, which does catch some bad symbols but isn't as heavy-handed
12567 # as -z defs.
12568 no_undefined_flag_CXX='${wl}-z,text'
12569 allow_undefined_flag_CXX='${wl}-z,nodefs'
12570 archive_cmds_need_lc_CXX=no
12571 hardcode_shlibpath_var_CXX=no
12572 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12573 hardcode_libdir_separator_CXX=':'
12574 link_all_deplibs_CXX=yes
12575 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12576 runpath_var='LD_RUN_PATH'
12577
12578 case $cc_basename in
12579 CC*)
12580 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12581 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12582 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12583 '"$old_archive_cmds_CXX"
12584 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12585 '"$reload_cmds_CXX"
12586 ;;
12587 *)
12588 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12589 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12590 ;;
12591 esac
12592 ;;
12593
12594 tandem*)
12595 case $cc_basename in
12596 NCC*)
12597 # NonStop-UX NCC 3.20
12598 # FIXME: insert proper C++ library support
12599 ld_shlibs_CXX=no
12600 ;;
12601 *)
12602 # FIXME: insert proper C++ library support
12603 ld_shlibs_CXX=no
12604 ;;
12605 esac
12606 ;;
12607
12608 vxworks*)
12609 # FIXME: insert proper C++ library support
12610 ld_shlibs_CXX=no
12611 ;;
12612
12613 *)
12614 # FIXME: insert proper C++ library support
12615 ld_shlibs_CXX=no
12616 ;;
12617 esac
12618
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12620 $as_echo "$ld_shlibs_CXX" >&6; }
12621 test "$ld_shlibs_CXX" = no && can_build_shared=no
12622
12623 GCC_CXX="$GXX"
12624 LD_CXX="$LD"
12625
12626 ## CAVEAT EMPTOR:
12627 ## There is no encapsulation within the following macros, do not change
12628 ## the running order or otherwise move them around unless you know exactly
12629 ## what you are doing...
12630 # Dependencies to place before and after the object being linked:
12631 predep_objects_CXX=
12632 postdep_objects_CXX=
12633 predeps_CXX=
12634 postdeps_CXX=
12635 compiler_lib_search_path_CXX=
12636
12637 cat > conftest.$ac_ext <<_LT_EOF
12638 class Foo
12639 {
12640 public:
12641 Foo (void) { a = 0; }
12642 private:
12643 int a;
12644 };
12645 _LT_EOF
12646
12647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12648 (eval $ac_compile) 2>&5
12649 ac_status=$?
12650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12651 test $ac_status = 0; }; then
12652 # Parse the compiler output and extract the necessary
12653 # objects, libraries and library flags.
12654
12655 # Sentinel used to keep track of whether or not we are before
12656 # the conftest object file.
12657 pre_test_object_deps_done=no
12658
12659 for p in `eval "$output_verbose_link_cmd"`; do
12660 case $p in
12661
12662 -L* | -R* | -l*)
12663 # Some compilers place space between "-{L,R}" and the path.
12664 # Remove the space.
12665 if test $p = "-L" ||
12666 test $p = "-R"; then
12667 prev=$p
12668 continue
12669 else
12670 prev=
12671 fi
12672
12673 if test "$pre_test_object_deps_done" = no; then
12674 case $p in
12675 -L* | -R*)
12676 # Internal compiler library paths should come after those
12677 # provided the user. The postdeps already come after the
12678 # user supplied libs so there is no need to process them.
12679 if test -z "$compiler_lib_search_path_CXX"; then
12680 compiler_lib_search_path_CXX="${prev}${p}"
12681 else
12682 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12683 fi
12684 ;;
12685 # The "-l" case would never come before the object being
12686 # linked, so don't bother handling this case.
12687 esac
12688 else
12689 if test -z "$postdeps_CXX"; then
12690 postdeps_CXX="${prev}${p}"
12691 else
12692 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12693 fi
12694 fi
12695 ;;
12696
12697 *.$objext)
12698 # This assumes that the test object file only shows up
12699 # once in the compiler output.
12700 if test "$p" = "conftest.$objext"; then
12701 pre_test_object_deps_done=yes
12702 continue
12703 fi
12704
12705 if test "$pre_test_object_deps_done" = no; then
12706 if test -z "$predep_objects_CXX"; then
12707 predep_objects_CXX="$p"
12708 else
12709 predep_objects_CXX="$predep_objects_CXX $p"
12710 fi
12711 else
12712 if test -z "$postdep_objects_CXX"; then
12713 postdep_objects_CXX="$p"
12714 else
12715 postdep_objects_CXX="$postdep_objects_CXX $p"
12716 fi
12717 fi
12718 ;;
12719
12720 *) ;; # Ignore the rest.
12721
12722 esac
12723 done
12724
12725 # Clean up.
12726 rm -f a.out a.exe
12727 else
12728 echo "libtool.m4: error: problem compiling CXX test program"
12729 fi
12730
12731 $RM -f confest.$objext
12732
12733 # PORTME: override above test on systems where it is broken
12734 case $host_os in
12735 interix[3-9]*)
12736 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12737 # hack all around it, let's just trust "g++" to DTRT.
12738 predep_objects_CXX=
12739 postdep_objects_CXX=
12740 postdeps_CXX=
12741 ;;
12742
12743 linux*)
12744 case `$CC -V 2>&1 | sed 5q` in
12745 *Sun\ C*)
12746 # Sun C++ 5.9
12747
12748 # The more standards-conforming stlport4 library is
12749 # incompatible with the Cstd library. Avoid specifying
12750 # it if it's in CXXFLAGS. Ignore libCrun as
12751 # -library=stlport4 depends on it.
12752 case " $CXX $CXXFLAGS " in
12753 *" -library=stlport4 "*)
12754 solaris_use_stlport4=yes
12755 ;;
12756 esac
12757
12758 if test "$solaris_use_stlport4" != yes; then
12759 postdeps_CXX='-library=Cstd -library=Crun'
12760 fi
12761 ;;
12762 esac
12763 ;;
12764
12765 solaris*)
12766 case $cc_basename in
12767 CC*)
12768 # The more standards-conforming stlport4 library is
12769 # incompatible with the Cstd library. Avoid specifying
12770 # it if it's in CXXFLAGS. Ignore libCrun as
12771 # -library=stlport4 depends on it.
12772 case " $CXX $CXXFLAGS " in
12773 *" -library=stlport4 "*)
12774 solaris_use_stlport4=yes
12775 ;;
12776 esac
12777
12778 # Adding this requires a known-good setup of shared libraries for
12779 # Sun compiler versions before 5.6, else PIC objects from an old
12780 # archive will be linked into the output, leading to subtle bugs.
12781 if test "$solaris_use_stlport4" != yes; then
12782 postdeps_CXX='-library=Cstd -library=Crun'
12783 fi
12784 ;;
12785 esac
12786 ;;
12787 esac
12788
12789
12790 case " $postdeps_CXX " in
12791 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12792 esac
12793 compiler_lib_search_dirs_CXX=
12794 if test -n "${compiler_lib_search_path_CXX}"; then
12795 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12796 fi
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
12823
12824
12825
12826
12827
12828 lt_prog_compiler_wl_CXX=
12829 lt_prog_compiler_pic_CXX=
12830 lt_prog_compiler_static_CXX=
12831
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12833 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12834
12835 # C++ specific cases for pic, static, wl, etc.
12836 if test "$GXX" = yes; then
12837 lt_prog_compiler_wl_CXX='-Wl,'
12838 lt_prog_compiler_static_CXX='-static'
12839
12840 case $host_os in
12841 aix*)
12842 # All AIX code is PIC.
12843 if test "$host_cpu" = ia64; then
12844 # AIX 5 now supports IA64 processor
12845 lt_prog_compiler_static_CXX='-Bstatic'
12846 fi
12847 lt_prog_compiler_pic_CXX='-fPIC'
12848 ;;
12849
12850 amigaos*)
12851 case $host_cpu in
12852 powerpc)
12853 # see comment about AmigaOS4 .so support
12854 lt_prog_compiler_pic_CXX='-fPIC'
12855 ;;
12856 m68k)
12857 # FIXME: we need at least 68020 code to build shared libraries, but
12858 # adding the `-m68020' flag to GCC prevents building anything better,
12859 # like `-m68040'.
12860 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12861 ;;
12862 esac
12863 ;;
12864
12865 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12866 # PIC is the default for these OSes.
12867 ;;
12868 mingw* | cygwin* | os2* | pw32* | cegcc*)
12869 # This hack is so that the source file can tell whether it is being
12870 # built for inclusion in a dll (and should export symbols for example).
12871 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12872 # (--disable-auto-import) libraries
12873 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12874 ;;
12875 darwin* | rhapsody*)
12876 # PIC is the default on this platform
12877 # Common symbols not allowed in MH_DYLIB files
12878 lt_prog_compiler_pic_CXX='-fno-common'
12879 ;;
12880 *djgpp*)
12881 # DJGPP does not support shared libraries at all
12882 lt_prog_compiler_pic_CXX=
12883 ;;
12884 haiku*)
12885 # PIC is the default for Haiku.
12886 # The "-static" flag exists, but is broken.
12887 lt_prog_compiler_static_CXX=
12888 ;;
12889 interix[3-9]*)
12890 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12891 # Instead, we relocate shared libraries at runtime.
12892 ;;
12893 sysv4*MP*)
12894 if test -d /usr/nec; then
12895 lt_prog_compiler_pic_CXX=-Kconform_pic
12896 fi
12897 ;;
12898 hpux*)
12899 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12900 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12901 # sets the default TLS model and affects inlining.
12902 case $host_cpu in
12903 hppa*64*)
12904 ;;
12905 *)
12906 lt_prog_compiler_pic_CXX='-fPIC'
12907 ;;
12908 esac
12909 ;;
12910 *qnx* | *nto*)
12911 # QNX uses GNU C++, but need to define -shared option too, otherwise
12912 # it will coredump.
12913 lt_prog_compiler_pic_CXX='-fPIC -shared'
12914 ;;
12915 *)
12916 lt_prog_compiler_pic_CXX='-fPIC'
12917 ;;
12918 esac
12919 else
12920 case $host_os in
12921 aix[4-9]*)
12922 # All AIX code is PIC.
12923 if test "$host_cpu" = ia64; then
12924 # AIX 5 now supports IA64 processor
12925 lt_prog_compiler_static_CXX='-Bstatic'
12926 else
12927 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12928 fi
12929 ;;
12930 chorus*)
12931 case $cc_basename in
12932 cxch68*)
12933 # Green Hills C++ Compiler
12934 # _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"
12935 ;;
12936 esac
12937 ;;
12938 dgux*)
12939 case $cc_basename in
12940 ec++*)
12941 lt_prog_compiler_pic_CXX='-KPIC'
12942 ;;
12943 ghcx*)
12944 # Green Hills C++ Compiler
12945 lt_prog_compiler_pic_CXX='-pic'
12946 ;;
12947 *)
12948 ;;
12949 esac
12950 ;;
12951 freebsd* | dragonfly*)
12952 # FreeBSD uses GNU C++
12953 ;;
12954 hpux9* | hpux10* | hpux11*)
12955 case $cc_basename in
12956 CC*)
12957 lt_prog_compiler_wl_CXX='-Wl,'
12958 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12959 if test "$host_cpu" != ia64; then
12960 lt_prog_compiler_pic_CXX='+Z'
12961 fi
12962 ;;
12963 aCC*)
12964 lt_prog_compiler_wl_CXX='-Wl,'
12965 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12966 case $host_cpu in
12967 hppa*64*|ia64*)
12968 # +Z the default
12969 ;;
12970 *)
12971 lt_prog_compiler_pic_CXX='+Z'
12972 ;;
12973 esac
12974 ;;
12975 *)
12976 ;;
12977 esac
12978 ;;
12979 interix*)
12980 # This is c89, which is MS Visual C++ (no shared libs)
12981 # Anyone wants to do a port?
12982 ;;
12983 irix5* | irix6* | nonstopux*)
12984 case $cc_basename in
12985 CC*)
12986 lt_prog_compiler_wl_CXX='-Wl,'
12987 lt_prog_compiler_static_CXX='-non_shared'
12988 # CC pic flag -KPIC is the default.
12989 ;;
12990 *)
12991 ;;
12992 esac
12993 ;;
12994 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12995 case $cc_basename in
12996 KCC*)
12997 # KAI C++ Compiler
12998 lt_prog_compiler_wl_CXX='--backend -Wl,'
12999 lt_prog_compiler_pic_CXX='-fPIC'
13000 ;;
13001 ecpc* )
13002 # old Intel C++ for x86_64 which still supported -KPIC.
13003 lt_prog_compiler_wl_CXX='-Wl,'
13004 lt_prog_compiler_pic_CXX='-KPIC'
13005 lt_prog_compiler_static_CXX='-static'
13006 ;;
13007 icpc* )
13008 # Intel C++, used to be incompatible with GCC.
13009 # ICC 10 doesn't accept -KPIC any more.
13010 lt_prog_compiler_wl_CXX='-Wl,'
13011 lt_prog_compiler_pic_CXX='-fPIC'
13012 lt_prog_compiler_static_CXX='-static'
13013 ;;
13014 pgCC* | pgcpp*)
13015 # Portland Group C++ compiler
13016 lt_prog_compiler_wl_CXX='-Wl,'
13017 lt_prog_compiler_pic_CXX='-fpic'
13018 lt_prog_compiler_static_CXX='-Bstatic'
13019 ;;
13020 cxx*)
13021 # Compaq C++
13022 # Make sure the PIC flag is empty. It appears that all Alpha
13023 # Linux and Compaq Tru64 Unix objects are PIC.
13024 lt_prog_compiler_pic_CXX=
13025 lt_prog_compiler_static_CXX='-non_shared'
13026 ;;
13027 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13028 # IBM XL 8.0, 9.0 on PPC and BlueGene
13029 lt_prog_compiler_wl_CXX='-Wl,'
13030 lt_prog_compiler_pic_CXX='-qpic'
13031 lt_prog_compiler_static_CXX='-qstaticlink'
13032 ;;
13033 *)
13034 case `$CC -V 2>&1 | sed 5q` in
13035 *Sun\ C*)
13036 # Sun C++ 5.9
13037 lt_prog_compiler_pic_CXX='-KPIC'
13038 lt_prog_compiler_static_CXX='-Bstatic'
13039 lt_prog_compiler_wl_CXX='-Qoption ld '
13040 ;;
13041 esac
13042 ;;
13043 esac
13044 ;;
13045 lynxos*)
13046 ;;
13047 m88k*)
13048 ;;
13049 mvs*)
13050 case $cc_basename in
13051 cxx*)
13052 lt_prog_compiler_pic_CXX='-W c,exportall'
13053 ;;
13054 *)
13055 ;;
13056 esac
13057 ;;
13058 netbsd*)
13059 ;;
13060 *qnx* | *nto*)
13061 # QNX uses GNU C++, but need to define -shared option too, otherwise
13062 # it will coredump.
13063 lt_prog_compiler_pic_CXX='-fPIC -shared'
13064 ;;
13065 osf3* | osf4* | osf5*)
13066 case $cc_basename in
13067 KCC*)
13068 lt_prog_compiler_wl_CXX='--backend -Wl,'
13069 ;;
13070 RCC*)
13071 # Rational C++ 2.4.1
13072 lt_prog_compiler_pic_CXX='-pic'
13073 ;;
13074 cxx*)
13075 # Digital/Compaq C++
13076 lt_prog_compiler_wl_CXX='-Wl,'
13077 # Make sure the PIC flag is empty. It appears that all Alpha
13078 # Linux and Compaq Tru64 Unix objects are PIC.
13079 lt_prog_compiler_pic_CXX=
13080 lt_prog_compiler_static_CXX='-non_shared'
13081 ;;
13082 *)
13083 ;;
13084 esac
13085 ;;
13086 psos*)
13087 ;;
13088 solaris*)
13089 case $cc_basename in
13090 CC*)
13091 # Sun C++ 4.2, 5.x and Centerline C++
13092 lt_prog_compiler_pic_CXX='-KPIC'
13093 lt_prog_compiler_static_CXX='-Bstatic'
13094 lt_prog_compiler_wl_CXX='-Qoption ld '
13095 ;;
13096 gcx*)
13097 # Green Hills C++ Compiler
13098 lt_prog_compiler_pic_CXX='-PIC'
13099 ;;
13100 *)
13101 ;;
13102 esac
13103 ;;
13104 sunos4*)
13105 case $cc_basename in
13106 CC*)
13107 # Sun C++ 4.x
13108 lt_prog_compiler_pic_CXX='-pic'
13109 lt_prog_compiler_static_CXX='-Bstatic'
13110 ;;
13111 lcc*)
13112 # Lucid
13113 lt_prog_compiler_pic_CXX='-pic'
13114 ;;
13115 *)
13116 ;;
13117 esac
13118 ;;
13119 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13120 case $cc_basename in
13121 CC*)
13122 lt_prog_compiler_wl_CXX='-Wl,'
13123 lt_prog_compiler_pic_CXX='-KPIC'
13124 lt_prog_compiler_static_CXX='-Bstatic'
13125 ;;
13126 esac
13127 ;;
13128 tandem*)
13129 case $cc_basename in
13130 NCC*)
13131 # NonStop-UX NCC 3.20
13132 lt_prog_compiler_pic_CXX='-KPIC'
13133 ;;
13134 *)
13135 ;;
13136 esac
13137 ;;
13138 vxworks*)
13139 ;;
13140 *)
13141 lt_prog_compiler_can_build_shared_CXX=no
13142 ;;
13143 esac
13144 fi
13145
13146 case $host_os in
13147 # For platforms which do not support PIC, -DPIC is meaningless:
13148 *djgpp*)
13149 lt_prog_compiler_pic_CXX=
13150 ;;
13151 *)
13152 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13153 ;;
13154 esac
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13156 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13157
13158
13159
13160 #
13161 # Check to make sure the PIC flag actually works.
13162 #
13163 if test -n "$lt_prog_compiler_pic_CXX"; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13165 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13166 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13167 $as_echo_n "(cached) " >&6
13168 else
13169 lt_cv_prog_compiler_pic_works_CXX=no
13170 ac_outfile=conftest.$ac_objext
13171 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13172 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13173 # Insert the option either (1) after the last *FLAGS variable, or
13174 # (2) before a word containing "conftest.", or (3) at the end.
13175 # Note that $ac_compile itself does not contain backslashes and begins
13176 # with a dollar sign (not a hyphen), so the echo should work correctly.
13177 # The option is referenced via a variable to avoid confusing sed.
13178 lt_compile=`echo "$ac_compile" | $SED \
13179 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13181 -e 's:$: $lt_compiler_flag:'`
13182 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13183 (eval "$lt_compile" 2>conftest.err)
13184 ac_status=$?
13185 cat conftest.err >&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 if (exit $ac_status) && test -s "$ac_outfile"; then
13188 # The compiler can only warn and ignore the option if not recognized
13189 # So say no if there are warnings other than the usual output.
13190 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13192 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13193 lt_cv_prog_compiler_pic_works_CXX=yes
13194 fi
13195 fi
13196 $RM conftest*
13197
13198 fi
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13200 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13201
13202 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13203 case $lt_prog_compiler_pic_CXX in
13204 "" | " "*) ;;
13205 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13206 esac
13207 else
13208 lt_prog_compiler_pic_CXX=
13209 lt_prog_compiler_can_build_shared_CXX=no
13210 fi
13211
13212 fi
13213
13214
13215
13216 #
13217 # Check to make sure the static flag actually works.
13218 #
13219 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13221 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13222 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13223 $as_echo_n "(cached) " >&6
13224 else
13225 lt_cv_prog_compiler_static_works_CXX=no
13226 save_LDFLAGS="$LDFLAGS"
13227 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13228 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13229 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13230 # The linker can only warn and ignore the option if not recognized
13231 # So say no if there are warnings
13232 if test -s conftest.err; then
13233 # Append any errors to the config.log.
13234 cat conftest.err 1>&5
13235 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13236 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13237 if diff conftest.exp conftest.er2 >/dev/null; then
13238 lt_cv_prog_compiler_static_works_CXX=yes
13239 fi
13240 else
13241 lt_cv_prog_compiler_static_works_CXX=yes
13242 fi
13243 fi
13244 $RM -r conftest*
13245 LDFLAGS="$save_LDFLAGS"
13246
13247 fi
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13249 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13250
13251 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13252 :
13253 else
13254 lt_prog_compiler_static_CXX=
13255 fi
13256
13257
13258
13259
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13261 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13262 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13263 $as_echo_n "(cached) " >&6
13264 else
13265 lt_cv_prog_compiler_c_o_CXX=no
13266 $RM -r conftest 2>/dev/null
13267 mkdir conftest
13268 cd conftest
13269 mkdir out
13270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13271
13272 lt_compiler_flag="-o out/conftest2.$ac_objext"
13273 # Insert the option either (1) after the last *FLAGS variable, or
13274 # (2) before a word containing "conftest.", or (3) at the end.
13275 # Note that $ac_compile itself does not contain backslashes and begins
13276 # with a dollar sign (not a hyphen), so the echo should work correctly.
13277 lt_compile=`echo "$ac_compile" | $SED \
13278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13280 -e 's:$: $lt_compiler_flag:'`
13281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13282 (eval "$lt_compile" 2>out/conftest.err)
13283 ac_status=$?
13284 cat out/conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13287 then
13288 # The compiler can only warn and ignore the option if not recognized
13289 # So say no if there are warnings
13290 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13291 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13292 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13293 lt_cv_prog_compiler_c_o_CXX=yes
13294 fi
13295 fi
13296 chmod u+w . 2>&5
13297 $RM conftest*
13298 # SGI C++ compiler will create directory out/ii_files/ for
13299 # template instantiation
13300 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13301 $RM out/* && rmdir out
13302 cd ..
13303 $RM -r conftest
13304 $RM conftest*
13305
13306 fi
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13308 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13309
13310
13311
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13313 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13314 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13315 $as_echo_n "(cached) " >&6
13316 else
13317 lt_cv_prog_compiler_c_o_CXX=no
13318 $RM -r conftest 2>/dev/null
13319 mkdir conftest
13320 cd conftest
13321 mkdir out
13322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13323
13324 lt_compiler_flag="-o out/conftest2.$ac_objext"
13325 # Insert the option either (1) after the last *FLAGS variable, or
13326 # (2) before a word containing "conftest.", or (3) at the end.
13327 # Note that $ac_compile itself does not contain backslashes and begins
13328 # with a dollar sign (not a hyphen), so the echo should work correctly.
13329 lt_compile=`echo "$ac_compile" | $SED \
13330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13332 -e 's:$: $lt_compiler_flag:'`
13333 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13334 (eval "$lt_compile" 2>out/conftest.err)
13335 ac_status=$?
13336 cat out/conftest.err >&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13339 then
13340 # The compiler can only warn and ignore the option if not recognized
13341 # So say no if there are warnings
13342 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13343 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13344 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13345 lt_cv_prog_compiler_c_o_CXX=yes
13346 fi
13347 fi
13348 chmod u+w . 2>&5
13349 $RM conftest*
13350 # SGI C++ compiler will create directory out/ii_files/ for
13351 # template instantiation
13352 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13353 $RM out/* && rmdir out
13354 cd ..
13355 $RM -r conftest
13356 $RM conftest*
13357
13358 fi
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13360 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13361
13362
13363
13364
13365 hard_links="nottested"
13366 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13367 # do not overwrite the value of need_locks provided by the user
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13369 $as_echo_n "checking if we can lock with hard links... " >&6; }
13370 hard_links=yes
13371 $RM conftest*
13372 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13373 touch conftest.a
13374 ln conftest.a conftest.b 2>&5 || hard_links=no
13375 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13377 $as_echo "$hard_links" >&6; }
13378 if test "$hard_links" = no; then
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13380 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13381 need_locks=warn
13382 fi
13383 else
13384 need_locks=no
13385 fi
13386
13387
13388
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13390 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13391
13392 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13393 case $host_os in
13394 aix[4-9]*)
13395 # If we're using GNU nm, then we don't want the "-C" option.
13396 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13397 # Also, AIX nm treats weak defined symbols like other global defined
13398 # symbols, whereas GNU nm marks them as "W".
13399 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13400 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'
13401 else
13402 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'
13403 fi
13404 ;;
13405 pw32*)
13406 export_symbols_cmds_CXX="$ltdll_cmds"
13407 ;;
13408 cygwin* | mingw* | cegcc*)
13409 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'
13410 ;;
13411 *)
13412 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13413 ;;
13414 esac
13415 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13416
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13418 $as_echo "$ld_shlibs_CXX" >&6; }
13419 test "$ld_shlibs_CXX" = no && can_build_shared=no
13420
13421 with_gnu_ld_CXX=$with_gnu_ld
13422
13423
13424
13425
13426
13427
13428 #
13429 # Do we need to explicitly link libc?
13430 #
13431 case "x$archive_cmds_need_lc_CXX" in
13432 x|xyes)
13433 # Assume -lc should be added
13434 archive_cmds_need_lc_CXX=yes
13435
13436 if test "$enable_shared" = yes && test "$GCC" = yes; then
13437 case $archive_cmds_CXX in
13438 *'~'*)
13439 # FIXME: we may have to deal with multi-command sequences.
13440 ;;
13441 '$CC '*)
13442 # Test whether the compiler implicitly links with -lc since on some
13443 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13444 # to ld, don't add -lc before -lgcc.
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13446 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13447 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13448 $as_echo_n "(cached) " >&6
13449 else
13450 $RM conftest*
13451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13452
13453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13454 (eval $ac_compile) 2>&5
13455 ac_status=$?
13456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13457 test $ac_status = 0; } 2>conftest.err; then
13458 soname=conftest
13459 lib=conftest
13460 libobjs=conftest.$ac_objext
13461 deplibs=
13462 wl=$lt_prog_compiler_wl_CXX
13463 pic_flag=$lt_prog_compiler_pic_CXX
13464 compiler_flags=-v
13465 linker_flags=-v
13466 verstring=
13467 output_objdir=.
13468 libname=conftest
13469 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13470 allow_undefined_flag_CXX=
13471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13472 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13473 ac_status=$?
13474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13475 test $ac_status = 0; }
13476 then
13477 lt_cv_archive_cmds_need_lc_CXX=no
13478 else
13479 lt_cv_archive_cmds_need_lc_CXX=yes
13480 fi
13481 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13482 else
13483 cat conftest.err 1>&5
13484 fi
13485 $RM conftest*
13486
13487 fi
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13489 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13490 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13491 ;;
13492 esac
13493 fi
13494 ;;
13495 esac
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
13555
13556
13557
13558
13559
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13561 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13562
13563 library_names_spec=
13564 libname_spec='lib$name'
13565 soname_spec=
13566 shrext_cmds=".so"
13567 postinstall_cmds=
13568 postuninstall_cmds=
13569 finish_cmds=
13570 finish_eval=
13571 shlibpath_var=
13572 shlibpath_overrides_runpath=unknown
13573 version_type=none
13574 dynamic_linker="$host_os ld.so"
13575 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13576 need_lib_prefix=unknown
13577 hardcode_into_libs=no
13578
13579 # when you set need_version to no, make sure it does not cause -set_version
13580 # flags to be left without arguments
13581 need_version=unknown
13582
13583 case $host_os in
13584 aix3*)
13585 version_type=linux
13586 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13587 shlibpath_var=LIBPATH
13588
13589 # AIX 3 has no versioning support, so we append a major version to the name.
13590 soname_spec='${libname}${release}${shared_ext}$major'
13591 ;;
13592
13593 aix[4-9]*)
13594 version_type=linux
13595 need_lib_prefix=no
13596 need_version=no
13597 hardcode_into_libs=yes
13598 if test "$host_cpu" = ia64; then
13599 # AIX 5 supports IA64
13600 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13601 shlibpath_var=LD_LIBRARY_PATH
13602 else
13603 # With GCC up to 2.95.x, collect2 would create an import file
13604 # for dependence libraries. The import file would start with
13605 # the line `#! .'. This would cause the generated library to
13606 # depend on `.', always an invalid library. This was fixed in
13607 # development snapshots of GCC prior to 3.0.
13608 case $host_os in
13609 aix4 | aix4.[01] | aix4.[01].*)
13610 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13611 echo ' yes '
13612 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13613 :
13614 else
13615 can_build_shared=no
13616 fi
13617 ;;
13618 esac
13619 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13620 # soname into executable. Probably we can add versioning support to
13621 # collect2, so additional links can be useful in future.
13622 if test "$aix_use_runtimelinking" = yes; then
13623 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13624 # instead of lib<name>.a to let people know that these are not
13625 # typical AIX shared libraries.
13626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13627 else
13628 # We preserve .a as extension for shared libraries through AIX4.2
13629 # and later when we are not doing run time linking.
13630 library_names_spec='${libname}${release}.a $libname.a'
13631 soname_spec='${libname}${release}${shared_ext}$major'
13632 fi
13633 shlibpath_var=LIBPATH
13634 fi
13635 ;;
13636
13637 amigaos*)
13638 case $host_cpu in
13639 powerpc)
13640 # Since July 2007 AmigaOS4 officially supports .so libraries.
13641 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13643 ;;
13644 m68k)
13645 library_names_spec='$libname.ixlibrary $libname.a'
13646 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13647 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'
13648 ;;
13649 esac
13650 ;;
13651
13652 beos*)
13653 library_names_spec='${libname}${shared_ext}'
13654 dynamic_linker="$host_os ld.so"
13655 shlibpath_var=LIBRARY_PATH
13656 ;;
13657
13658 bsdi[45]*)
13659 version_type=linux
13660 need_version=no
13661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13662 soname_spec='${libname}${release}${shared_ext}$major'
13663 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13664 shlibpath_var=LD_LIBRARY_PATH
13665 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13666 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13667 # the default ld.so.conf also contains /usr/contrib/lib and
13668 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13669 # libtool to hard-code these into programs
13670 ;;
13671
13672 cygwin* | mingw* | pw32* | cegcc*)
13673 version_type=windows
13674 shrext_cmds=".dll"
13675 need_version=no
13676 need_lib_prefix=no
13677
13678 case $GCC,$host_os in
13679 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13680 library_names_spec='$libname.dll.a'
13681 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13682 postinstall_cmds='base_file=`basename \${file}`~
13683 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13684 dldir=$destdir/`dirname \$dlpath`~
13685 test -d \$dldir || mkdir -p \$dldir~
13686 $install_prog $dir/$dlname \$dldir/$dlname~
13687 chmod a+x \$dldir/$dlname~
13688 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13689 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13690 fi'
13691 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13692 dlpath=$dir/\$dldll~
13693 $RM \$dlpath'
13694 shlibpath_overrides_runpath=yes
13695
13696 case $host_os in
13697 cygwin*)
13698 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13699 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13700
13701 ;;
13702 mingw* | cegcc*)
13703 # MinGW DLLs use traditional 'lib' prefix
13704 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13705 ;;
13706 pw32*)
13707 # pw32 DLLs use 'pw' prefix rather than 'lib'
13708 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13709 ;;
13710 esac
13711 ;;
13712
13713 *)
13714 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13715 ;;
13716 esac
13717 dynamic_linker='Win32 ld.exe'
13718 # FIXME: first we should search . and the directory the executable is in
13719 shlibpath_var=PATH
13720 ;;
13721
13722 darwin* | rhapsody*)
13723 dynamic_linker="$host_os dyld"
13724 version_type=darwin
13725 need_lib_prefix=no
13726 need_version=no
13727 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13728 soname_spec='${libname}${release}${major}$shared_ext'
13729 shlibpath_overrides_runpath=yes
13730 shlibpath_var=DYLD_LIBRARY_PATH
13731 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13732
13733 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13734 ;;
13735
13736 dgux*)
13737 version_type=linux
13738 need_lib_prefix=no
13739 need_version=no
13740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13741 soname_spec='${libname}${release}${shared_ext}$major'
13742 shlibpath_var=LD_LIBRARY_PATH
13743 ;;
13744
13745 freebsd* | dragonfly*)
13746 # DragonFly does not have aout. When/if they implement a new
13747 # versioning mechanism, adjust this.
13748 if test -x /usr/bin/objformat; then
13749 objformat=`/usr/bin/objformat`
13750 else
13751 case $host_os in
13752 freebsd[23].*) objformat=aout ;;
13753 *) objformat=elf ;;
13754 esac
13755 fi
13756 version_type=freebsd-$objformat
13757 case $version_type in
13758 freebsd-elf*)
13759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13760 need_version=no
13761 need_lib_prefix=no
13762 ;;
13763 freebsd-*)
13764 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13765 need_version=yes
13766 ;;
13767 esac
13768 shlibpath_var=LD_LIBRARY_PATH
13769 case $host_os in
13770 freebsd2.*)
13771 shlibpath_overrides_runpath=yes
13772 ;;
13773 freebsd3.[01]* | freebsdelf3.[01]*)
13774 shlibpath_overrides_runpath=yes
13775 hardcode_into_libs=yes
13776 ;;
13777 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13778 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13779 shlibpath_overrides_runpath=no
13780 hardcode_into_libs=yes
13781 ;;
13782 *) # from 4.6 on, and DragonFly
13783 shlibpath_overrides_runpath=yes
13784 hardcode_into_libs=yes
13785 ;;
13786 esac
13787 ;;
13788
13789 gnu*)
13790 version_type=linux
13791 need_lib_prefix=no
13792 need_version=no
13793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13794 soname_spec='${libname}${release}${shared_ext}$major'
13795 shlibpath_var=LD_LIBRARY_PATH
13796 hardcode_into_libs=yes
13797 ;;
13798
13799 haiku*)
13800 version_type=linux
13801 need_lib_prefix=no
13802 need_version=no
13803 dynamic_linker="$host_os runtime_loader"
13804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13805 soname_spec='${libname}${release}${shared_ext}$major'
13806 shlibpath_var=LIBRARY_PATH
13807 shlibpath_overrides_runpath=yes
13808 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13809 hardcode_into_libs=yes
13810 ;;
13811
13812 hpux9* | hpux10* | hpux11*)
13813 # Give a soname corresponding to the major version so that dld.sl refuses to
13814 # link against other versions.
13815 version_type=sunos
13816 need_lib_prefix=no
13817 need_version=no
13818 case $host_cpu in
13819 ia64*)
13820 shrext_cmds='.so'
13821 hardcode_into_libs=yes
13822 dynamic_linker="$host_os dld.so"
13823 shlibpath_var=LD_LIBRARY_PATH
13824 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13826 soname_spec='${libname}${release}${shared_ext}$major'
13827 if test "X$HPUX_IA64_MODE" = X32; then
13828 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13829 else
13830 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13831 fi
13832 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13833 ;;
13834 hppa*64*)
13835 shrext_cmds='.sl'
13836 hardcode_into_libs=yes
13837 dynamic_linker="$host_os dld.sl"
13838 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13841 soname_spec='${libname}${release}${shared_ext}$major'
13842 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13844 ;;
13845 *)
13846 shrext_cmds='.sl'
13847 dynamic_linker="$host_os dld.sl"
13848 shlibpath_var=SHLIB_PATH
13849 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13851 soname_spec='${libname}${release}${shared_ext}$major'
13852 ;;
13853 esac
13854 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13855 postinstall_cmds='chmod 555 $lib'
13856 # or fails outright, so override atomically:
13857 install_override_mode=555
13858 ;;
13859
13860 interix[3-9]*)
13861 version_type=linux
13862 need_lib_prefix=no
13863 need_version=no
13864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13865 soname_spec='${libname}${release}${shared_ext}$major'
13866 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13867 shlibpath_var=LD_LIBRARY_PATH
13868 shlibpath_overrides_runpath=no
13869 hardcode_into_libs=yes
13870 ;;
13871
13872 irix5* | irix6* | nonstopux*)
13873 case $host_os in
13874 nonstopux*) version_type=nonstopux ;;
13875 *)
13876 if test "$lt_cv_prog_gnu_ld" = yes; then
13877 version_type=linux
13878 else
13879 version_type=irix
13880 fi ;;
13881 esac
13882 need_lib_prefix=no
13883 need_version=no
13884 soname_spec='${libname}${release}${shared_ext}$major'
13885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13886 case $host_os in
13887 irix5* | nonstopux*)
13888 libsuff= shlibsuff=
13889 ;;
13890 *)
13891 case $LD in # libtool.m4 will add one of these switches to LD
13892 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13893 libsuff= shlibsuff= libmagic=32-bit;;
13894 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13895 libsuff=32 shlibsuff=N32 libmagic=N32;;
13896 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13897 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13898 *) libsuff= shlibsuff= libmagic=never-match;;
13899 esac
13900 ;;
13901 esac
13902 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13903 shlibpath_overrides_runpath=no
13904 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13905 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13906 hardcode_into_libs=yes
13907 ;;
13908
13909 # No shared lib support for Linux oldld, aout, or coff.
13910 linux*oldld* | linux*aout* | linux*coff*)
13911 dynamic_linker=no
13912 ;;
13913
13914 # This must be Linux ELF.
13915 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13916 version_type=linux
13917 need_lib_prefix=no
13918 need_version=no
13919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13920 soname_spec='${libname}${release}${shared_ext}$major'
13921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13922 shlibpath_var=LD_LIBRARY_PATH
13923 shlibpath_overrides_runpath=no
13924
13925 # Some binutils ld are patched to set DT_RUNPATH
13926 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
13927 $as_echo_n "(cached) " >&6
13928 else
13929 lt_cv_shlibpath_overrides_runpath=no
13930 save_LDFLAGS=$LDFLAGS
13931 save_libdir=$libdir
13932 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13933 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13935 /* end confdefs.h. */
13936
13937 int
13938 main ()
13939 {
13940
13941 ;
13942 return 0;
13943 }
13944 _ACEOF
13945 if ac_fn_cxx_try_link "$LINENO"; then :
13946 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13947 lt_cv_shlibpath_overrides_runpath=yes
13948 fi
13949 fi
13950 rm -f core conftest.err conftest.$ac_objext \
13951 conftest$ac_exeext conftest.$ac_ext
13952 LDFLAGS=$save_LDFLAGS
13953 libdir=$save_libdir
13954
13955 fi
13956
13957 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13958
13959 # This implies no fast_install, which is unacceptable.
13960 # Some rework will be needed to allow for fast_install
13961 # before this can be enabled.
13962 hardcode_into_libs=yes
13963
13964 # Append ld.so.conf contents to the search path
13965 if test -f /etc/ld.so.conf; then
13966 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' ' '`
13967 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13968 fi
13969
13970 # We used to test for /lib/ld.so.1 and disable shared libraries on
13971 # powerpc, because MkLinux only supported shared libraries with the
13972 # GNU dynamic linker. Since this was broken with cross compilers,
13973 # most powerpc-linux boxes support dynamic linking these days and
13974 # people can always --disable-shared, the test was removed, and we
13975 # assume the GNU/Linux dynamic linker is in use.
13976 dynamic_linker='GNU/Linux ld.so'
13977 ;;
13978
13979 netbsd*)
13980 version_type=sunos
13981 need_lib_prefix=no
13982 need_version=no
13983 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13986 dynamic_linker='NetBSD (a.out) ld.so'
13987 else
13988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13989 soname_spec='${libname}${release}${shared_ext}$major'
13990 dynamic_linker='NetBSD ld.elf_so'
13991 fi
13992 shlibpath_var=LD_LIBRARY_PATH
13993 shlibpath_overrides_runpath=yes
13994 hardcode_into_libs=yes
13995 ;;
13996
13997 newsos6)
13998 version_type=linux
13999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14000 shlibpath_var=LD_LIBRARY_PATH
14001 shlibpath_overrides_runpath=yes
14002 ;;
14003
14004 *nto* | *qnx*)
14005 version_type=qnx
14006 need_lib_prefix=no
14007 need_version=no
14008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14009 soname_spec='${libname}${release}${shared_ext}$major'
14010 shlibpath_var=LD_LIBRARY_PATH
14011 shlibpath_overrides_runpath=no
14012 hardcode_into_libs=yes
14013 dynamic_linker='ldqnx.so'
14014 ;;
14015
14016 openbsd*)
14017 version_type=sunos
14018 sys_lib_dlsearch_path_spec="/usr/lib"
14019 need_lib_prefix=no
14020 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14021 case $host_os in
14022 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14023 *) need_version=no ;;
14024 esac
14025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14027 shlibpath_var=LD_LIBRARY_PATH
14028 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14029 case $host_os in
14030 openbsd2.[89] | openbsd2.[89].*)
14031 shlibpath_overrides_runpath=no
14032 ;;
14033 *)
14034 shlibpath_overrides_runpath=yes
14035 ;;
14036 esac
14037 else
14038 shlibpath_overrides_runpath=yes
14039 fi
14040 ;;
14041
14042 os2*)
14043 libname_spec='$name'
14044 shrext_cmds=".dll"
14045 need_lib_prefix=no
14046 library_names_spec='$libname${shared_ext} $libname.a'
14047 dynamic_linker='OS/2 ld.exe'
14048 shlibpath_var=LIBPATH
14049 ;;
14050
14051 osf3* | osf4* | osf5*)
14052 version_type=osf
14053 need_lib_prefix=no
14054 need_version=no
14055 soname_spec='${libname}${release}${shared_ext}$major'
14056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14057 shlibpath_var=LD_LIBRARY_PATH
14058 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14059 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14060 ;;
14061
14062 rdos*)
14063 dynamic_linker=no
14064 ;;
14065
14066 solaris*)
14067 version_type=linux
14068 need_lib_prefix=no
14069 need_version=no
14070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14071 soname_spec='${libname}${release}${shared_ext}$major'
14072 shlibpath_var=LD_LIBRARY_PATH
14073 shlibpath_overrides_runpath=yes
14074 hardcode_into_libs=yes
14075 # ldd complains unless libraries are executable
14076 postinstall_cmds='chmod +x $lib'
14077 ;;
14078
14079 sunos4*)
14080 version_type=sunos
14081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14082 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14083 shlibpath_var=LD_LIBRARY_PATH
14084 shlibpath_overrides_runpath=yes
14085 if test "$with_gnu_ld" = yes; then
14086 need_lib_prefix=no
14087 fi
14088 need_version=yes
14089 ;;
14090
14091 sysv4 | sysv4.3*)
14092 version_type=linux
14093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14094 soname_spec='${libname}${release}${shared_ext}$major'
14095 shlibpath_var=LD_LIBRARY_PATH
14096 case $host_vendor in
14097 sni)
14098 shlibpath_overrides_runpath=no
14099 need_lib_prefix=no
14100 runpath_var=LD_RUN_PATH
14101 ;;
14102 siemens)
14103 need_lib_prefix=no
14104 ;;
14105 motorola)
14106 need_lib_prefix=no
14107 need_version=no
14108 shlibpath_overrides_runpath=no
14109 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14110 ;;
14111 esac
14112 ;;
14113
14114 sysv4*MP*)
14115 if test -d /usr/nec ;then
14116 version_type=linux
14117 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14118 soname_spec='$libname${shared_ext}.$major'
14119 shlibpath_var=LD_LIBRARY_PATH
14120 fi
14121 ;;
14122
14123 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14124 version_type=freebsd-elf
14125 need_lib_prefix=no
14126 need_version=no
14127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14128 soname_spec='${libname}${release}${shared_ext}$major'
14129 shlibpath_var=LD_LIBRARY_PATH
14130 shlibpath_overrides_runpath=yes
14131 hardcode_into_libs=yes
14132 if test "$with_gnu_ld" = yes; then
14133 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14134 else
14135 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14136 case $host_os in
14137 sco3.2v5*)
14138 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14139 ;;
14140 esac
14141 fi
14142 sys_lib_dlsearch_path_spec='/usr/lib'
14143 ;;
14144
14145 tpf*)
14146 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14147 version_type=linux
14148 need_lib_prefix=no
14149 need_version=no
14150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14151 shlibpath_var=LD_LIBRARY_PATH
14152 shlibpath_overrides_runpath=no
14153 hardcode_into_libs=yes
14154 ;;
14155
14156 uts4*)
14157 version_type=linux
14158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14159 soname_spec='${libname}${release}${shared_ext}$major'
14160 shlibpath_var=LD_LIBRARY_PATH
14161 ;;
14162
14163 *)
14164 dynamic_linker=no
14165 ;;
14166 esac
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14168 $as_echo "$dynamic_linker" >&6; }
14169 test "$dynamic_linker" = no && can_build_shared=no
14170
14171 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14172 if test "$GCC" = yes; then
14173 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14174 fi
14175
14176 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14177 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14178 fi
14179 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14180 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14181 fi
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
14215
14216
14217
14218
14219
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14221 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14222 hardcode_action_CXX=
14223 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14224 test -n "$runpath_var_CXX" ||
14225 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14226
14227 # We can hardcode non-existent directories.
14228 if test "$hardcode_direct_CXX" != no &&
14229 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14230 # have to relink, otherwise we might link with an installed library
14231 # when we should be linking with a yet-to-be-installed one
14232 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14233 test "$hardcode_minus_L_CXX" != no; then
14234 # Linking always hardcodes the temporary library directory.
14235 hardcode_action_CXX=relink
14236 else
14237 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14238 hardcode_action_CXX=immediate
14239 fi
14240 else
14241 # We cannot hardcode anything, or else we can only hardcode existing
14242 # directories.
14243 hardcode_action_CXX=unsupported
14244 fi
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14246 $as_echo "$hardcode_action_CXX" >&6; }
14247
14248 if test "$hardcode_action_CXX" = relink ||
14249 test "$inherit_rpath_CXX" = yes; then
14250 # Fast installation is not supported
14251 enable_fast_install=no
14252 elif test "$shlibpath_overrides_runpath" = yes ||
14253 test "$enable_shared" = no; then
14254 # Fast installation is not necessary
14255 enable_fast_install=needless
14256 fi
14257
14258
14259
14260
14261
14262
14263
14264 fi # test -n "$compiler"
14265
14266 CC=$lt_save_CC
14267 LDCXX=$LD
14268 LD=$lt_save_LD
14269 GCC=$lt_save_GCC
14270 with_gnu_ld=$lt_save_with_gnu_ld
14271 lt_cv_path_LDCXX=$lt_cv_path_LD
14272 lt_cv_path_LD=$lt_save_path_LD
14273 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14274 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14275 fi # test "$_lt_caught_CXX_error" != yes
14276
14277 ac_ext=c
14278 ac_cpp='$CPP $CPPFLAGS'
14279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14282
14283
14284
14285 visibility=
14286 if test "$GXX" = yes; then
14287 visibility=-fvisibility=hidden
14288 fi
14289
14290
14291 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
14292 if test "x$ac_cv_have_decl_basename" = x""yes; then :
14293 ac_have_decl=1
14294 else
14295 ac_have_decl=0
14296 fi
14297
14298 cat >>confdefs.h <<_ACEOF
14299 #define HAVE_DECL_BASENAME $ac_have_decl
14300 _ACEOF
14301
14302
14303 gcc_version=`cat $srcdir/../gcc/BASE-VER`
14304
14305
14306 WARN_FLAGS=
14307 save_CFLAGS="$CFLAGS"
14308 for real_option in -W -Wall; do
14309 # Do the check with the no- prefix removed since gcc silently
14310 # accepts any -Wno-* option on purpose
14311 case $real_option in
14312 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
14313 *) option=$real_option ;;
14314 esac
14315 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
14316
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
14318 $as_echo_n "checking whether $CC supports $option... " >&6; }
14319 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
14320 $as_echo_n "(cached) " >&6
14321 else
14322 CFLAGS="$option"
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14325
14326 int
14327 main ()
14328 {
14329
14330 ;
14331 return 0;
14332 }
14333 _ACEOF
14334 if ac_fn_c_try_compile "$LINENO"; then :
14335 eval "$as_acx_Woption=yes"
14336 else
14337 eval "$as_acx_Woption=no"
14338 fi
14339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340
14341 fi
14342 eval ac_res=\$$as_acx_Woption
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14344 $as_echo "$ac_res" >&6; }
14345 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
14346 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
14347 fi
14348 done
14349 CFLAGS="$save_CFLAGS"
14350
14351
14352 WERROR=
14353 # Check whether --enable-werror-always was given.
14354 if test "${enable_werror_always+set}" = set; then :
14355 enableval=$enable_werror_always;
14356 else
14357 enable_werror_always=no
14358 fi
14359
14360 if test $enable_werror_always = yes; then :
14361 WERROR="$WERROR${WERROR:+ }-Werror"
14362 fi
14363
14364
14365
14366
14367
14368 libsuffix=
14369 if test "$GXX" = yes; then
14370 libsuffix=`$CXX -print-multi-os-directory`
14371 fi
14372
14373
14374 # If any of these functions are missing, simply don't bother building
14375 # this plugin.
14376 # Check for plugin support
14377 # Check whether --enable-plugin was given.
14378 if test "${enable_plugin+set}" = set; then :
14379 enableval=$enable_plugin; enable_plugin=$enableval
14380 else
14381 enable_plugin=yes; default_plugin=yes
14382 fi
14383
14384
14385 pluginlibs=
14386
14387 case "${host}" in
14388 *-*-darwin*)
14389 if test x$build = x$host; then
14390 export_sym_check="nm${exeext} -g"
14391 elif test x$host = x$target; then
14392 export_sym_check="$gcc_cv_nm -g"
14393 else
14394 export_sym_check=
14395 fi
14396 ;;
14397 *)
14398 if test x$build = x$host; then
14399 export_sym_check="objdump${exeext} -T"
14400 elif test x$host = x$target; then
14401 export_sym_check="$gcc_cv_objdump -T"
14402 else
14403 export_sym_check=
14404 fi
14405 ;;
14406 esac
14407
14408 if test x"$enable_plugin" = x"yes"; then
14409
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
14411 $as_echo_n "checking for exported symbols... " >&6; }
14412 if test "x$export_sym_check" != x; then
14413 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
14414 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
14415 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
14416 : # No need to use a flag
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14418 $as_echo "yes" >&6; }
14419 else
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14421 $as_echo "yes" >&6; }
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
14423 $as_echo_n "checking for -rdynamic... " >&6; }
14424 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
14425 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
14426 plugin_rdynamic=yes
14427 pluginlibs="-rdynamic"
14428 else
14429 plugin_rdynamic=no
14430 enable_plugin=no
14431 fi
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
14433 $as_echo "$plugin_rdynamic" >&6; }
14434 fi
14435 else
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
14437 $as_echo "unable to check" >&6; }
14438 fi
14439
14440 # Check -ldl
14441 saved_LIBS="$LIBS"
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14443 $as_echo_n "checking for library containing dlopen... " >&6; }
14444 if test "${ac_cv_search_dlopen+set}" = set; then :
14445 $as_echo_n "(cached) " >&6
14446 else
14447 ac_func_search_save_LIBS=$LIBS
14448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449 /* end confdefs.h. */
14450
14451 /* Override any GCC internal prototype to avoid an error.
14452 Use char because int might match the return type of a GCC
14453 builtin and then its argument prototype would still apply. */
14454 #ifdef __cplusplus
14455 extern "C"
14456 #endif
14457 char dlopen ();
14458 int
14459 main ()
14460 {
14461 return dlopen ();
14462 ;
14463 return 0;
14464 }
14465 _ACEOF
14466 for ac_lib in '' dl; do
14467 if test -z "$ac_lib"; then
14468 ac_res="none required"
14469 else
14470 ac_res=-l$ac_lib
14471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14472 fi
14473 if ac_fn_c_try_link "$LINENO"; then :
14474 ac_cv_search_dlopen=$ac_res
14475 fi
14476 rm -f core conftest.err conftest.$ac_objext \
14477 conftest$ac_exeext
14478 if test "${ac_cv_search_dlopen+set}" = set; then :
14479 break
14480 fi
14481 done
14482 if test "${ac_cv_search_dlopen+set}" = set; then :
14483
14484 else
14485 ac_cv_search_dlopen=no
14486 fi
14487 rm conftest.$ac_ext
14488 LIBS=$ac_func_search_save_LIBS
14489 fi
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14491 $as_echo "$ac_cv_search_dlopen" >&6; }
14492 ac_res=$ac_cv_search_dlopen
14493 if test "$ac_res" != no; then :
14494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14495
14496 fi
14497
14498 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
14499 pluginlibs="$pluginlibs -ldl"
14500 fi
14501 LIBS="$saved_LIBS"
14502
14503 # Check that we can build shared objects with -fPIC -shared
14504 saved_LDFLAGS="$LDFLAGS"
14505 saved_CFLAGS="$CFLAGS"
14506 case "${host}" in
14507 *-*-darwin*)
14508 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
14509 CFLAGS="$CFLAGS -fPIC"
14510 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
14511 ;;
14512 *)
14513 CFLAGS="$CFLAGS -fPIC"
14514 LDFLAGS="$LDFLAGS -fPIC -shared"
14515 ;;
14516 esac
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
14518 $as_echo_n "checking for -fPIC -shared... " >&6; }
14519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14520 /* end confdefs.h. */
14521 extern int X;
14522 int
14523 main ()
14524 {
14525 return X == 0;
14526 ;
14527 return 0;
14528 }
14529 _ACEOF
14530 if ac_fn_c_try_link "$LINENO"; then :
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14532 $as_echo "yes" >&6; }; have_pic_shared=yes
14533 else
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14535 $as_echo "no" >&6; }; have_pic_shared=no
14536 fi
14537 rm -f core conftest.err conftest.$ac_objext \
14538 conftest$ac_exeext conftest.$ac_ext
14539 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
14540 pluginlibs=
14541 enable_plugin=no
14542 fi
14543 LDFLAGS="$saved_LDFLAGS"
14544 CFLAGS="$saved_CFLAGS"
14545
14546 # If plugin support had been requested but not available, fail.
14547 if test x"$enable_plugin" = x"no" ; then
14548 if test x"$default_plugin" != x"yes"; then
14549 as_fn_error "
14550 Building GCC with plugin support requires a host that supports
14551 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
14552 fi
14553 fi
14554 fi
14555
14556 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
14557 if test "x$ac_cv_func_socketpair" = x""yes; then :
14558
14559 else
14560 enable_plugin=no
14561 fi
14562
14563 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14564 if test "x$ac_cv_func_select" = x""yes; then :
14565
14566 else
14567 enable_plugin=no
14568 fi
14569
14570 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
14571 if test "x$ac_cv_func_fork" = x""yes; then :
14572
14573 else
14574 enable_plugin=no
14575 fi
14576
14577 if test $enable_plugin = yes; then
14578 ENABLE_PLUGIN_TRUE=
14579 ENABLE_PLUGIN_FALSE='#'
14580 else
14581 ENABLE_PLUGIN_TRUE='#'
14582 ENABLE_PLUGIN_FALSE=
14583 fi
14584
14585
14586 ac_config_files="$ac_config_files Makefile"
14587
14588 cat >confcache <<\_ACEOF
14589 # This file is a shell script that caches the results of configure
14590 # tests run on this system so they can be shared between configure
14591 # scripts and configure runs, see configure's option --config-cache.
14592 # It is not useful on other systems. If it contains results you don't
14593 # want to keep, you may remove or edit it.
14594 #
14595 # config.status only pays attention to the cache file if you give it
14596 # the --recheck option to rerun configure.
14597 #
14598 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14599 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14600 # following values.
14601
14602 _ACEOF
14603
14604 # The following way of writing the cache mishandles newlines in values,
14605 # but we know of no workaround that is simple, portable, and efficient.
14606 # So, we kill variables containing newlines.
14607 # Ultrix sh set writes to stderr and can't be redirected directly,
14608 # and sets the high bit in the cache file unless we assign to the vars.
14609 (
14610 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14611 eval ac_val=\$$ac_var
14612 case $ac_val in #(
14613 *${as_nl}*)
14614 case $ac_var in #(
14615 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14616 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14617 esac
14618 case $ac_var in #(
14619 _ | IFS | as_nl) ;; #(
14620 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14621 *) { eval $ac_var=; unset $ac_var;} ;;
14622 esac ;;
14623 esac
14624 done
14625
14626 (set) 2>&1 |
14627 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14628 *${as_nl}ac_space=\ *)
14629 # `set' does not quote correctly, so add quotes: double-quote
14630 # substitution turns \\\\ into \\, and sed turns \\ into \.
14631 sed -n \
14632 "s/'/'\\\\''/g;
14633 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14634 ;; #(
14635 *)
14636 # `set' quotes correctly as required by POSIX, so do not add quotes.
14637 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14638 ;;
14639 esac |
14640 sort
14641 ) |
14642 sed '
14643 /^ac_cv_env_/b end
14644 t clear
14645 :clear
14646 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14647 t end
14648 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14649 :end' >>confcache
14650 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14651 if test -w "$cache_file"; then
14652 test "x$cache_file" != "x/dev/null" &&
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14654 $as_echo "$as_me: updating cache $cache_file" >&6;}
14655 cat confcache >$cache_file
14656 else
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14658 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14659 fi
14660 fi
14661 rm -f confcache
14662
14663 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14664 # Let make expand exec_prefix.
14665 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14666
14667 DEFS=-DHAVE_CONFIG_H
14668
14669 ac_libobjs=
14670 ac_ltlibobjs=
14671 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14672 # 1. Remove the extension, and $U if already installed.
14673 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14674 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14675 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14676 # will be set to the directory where LIBOBJS objects are built.
14677 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14678 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14679 done
14680 LIBOBJS=$ac_libobjs
14681
14682 LTLIBOBJS=$ac_ltlibobjs
14683
14684
14685 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14686 as_fn_error "conditional \"AMDEP\" was never defined.
14687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14688 fi
14689 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14690 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14692 fi
14693 if test -n "$EXEEXT"; then
14694 am__EXEEXT_TRUE=
14695 am__EXEEXT_FALSE='#'
14696 else
14697 am__EXEEXT_TRUE='#'
14698 am__EXEEXT_FALSE=
14699 fi
14700
14701 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14702 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14704 fi
14705 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14706 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14708 fi
14709 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
14710 as_fn_error "conditional \"ENABLE_PLUGIN\" was never defined.
14711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14712 fi
14713
14714 : ${CONFIG_STATUS=./config.status}
14715 ac_write_fail=0
14716 ac_clean_files_save=$ac_clean_files
14717 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14719 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14720 as_write_fail=0
14721 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14722 #! $SHELL
14723 # Generated by $as_me.
14724 # Run this file to recreate the current configuration.
14725 # Compiler output produced by configure, useful for debugging
14726 # configure, is in config.log if it exists.
14727
14728 debug=false
14729 ac_cs_recheck=false
14730 ac_cs_silent=false
14731
14732 SHELL=\${CONFIG_SHELL-$SHELL}
14733 export SHELL
14734 _ASEOF
14735 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14736 ## -------------------- ##
14737 ## M4sh Initialization. ##
14738 ## -------------------- ##
14739
14740 # Be more Bourne compatible
14741 DUALCASE=1; export DUALCASE # for MKS sh
14742 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14743 emulate sh
14744 NULLCMD=:
14745 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14746 # is contrary to our usage. Disable this feature.
14747 alias -g '${1+"$@"}'='"$@"'
14748 setopt NO_GLOB_SUBST
14749 else
14750 case `(set -o) 2>/dev/null` in #(
14751 *posix*) :
14752 set -o posix ;; #(
14753 *) :
14754 ;;
14755 esac
14756 fi
14757
14758
14759 as_nl='
14760 '
14761 export as_nl
14762 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14763 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14765 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14766 # Prefer a ksh shell builtin over an external printf program on Solaris,
14767 # but without wasting forks for bash or zsh.
14768 if test -z "$BASH_VERSION$ZSH_VERSION" \
14769 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14770 as_echo='print -r --'
14771 as_echo_n='print -rn --'
14772 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14773 as_echo='printf %s\n'
14774 as_echo_n='printf %s'
14775 else
14776 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14777 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14778 as_echo_n='/usr/ucb/echo -n'
14779 else
14780 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14781 as_echo_n_body='eval
14782 arg=$1;
14783 case $arg in #(
14784 *"$as_nl"*)
14785 expr "X$arg" : "X\\(.*\\)$as_nl";
14786 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14787 esac;
14788 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14789 '
14790 export as_echo_n_body
14791 as_echo_n='sh -c $as_echo_n_body as_echo'
14792 fi
14793 export as_echo_body
14794 as_echo='sh -c $as_echo_body as_echo'
14795 fi
14796
14797 # The user is always right.
14798 if test "${PATH_SEPARATOR+set}" != set; then
14799 PATH_SEPARATOR=:
14800 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14801 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14802 PATH_SEPARATOR=';'
14803 }
14804 fi
14805
14806
14807 # IFS
14808 # We need space, tab and new line, in precisely that order. Quoting is
14809 # there to prevent editors from complaining about space-tab.
14810 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14811 # splitting by setting IFS to empty value.)
14812 IFS=" "" $as_nl"
14813
14814 # Find who we are. Look in the path if we contain no directory separator.
14815 case $0 in #((
14816 *[\\/]* ) as_myself=$0 ;;
14817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14818 for as_dir in $PATH
14819 do
14820 IFS=$as_save_IFS
14821 test -z "$as_dir" && as_dir=.
14822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14823 done
14824 IFS=$as_save_IFS
14825
14826 ;;
14827 esac
14828 # We did not find ourselves, most probably we were run as `sh COMMAND'
14829 # in which case we are not to be found in the path.
14830 if test "x$as_myself" = x; then
14831 as_myself=$0
14832 fi
14833 if test ! -f "$as_myself"; then
14834 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14835 exit 1
14836 fi
14837
14838 # Unset variables that we do not need and which cause bugs (e.g. in
14839 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14840 # suppresses any "Segmentation fault" message there. '((' could
14841 # trigger a bug in pdksh 5.2.14.
14842 for as_var in BASH_ENV ENV MAIL MAILPATH
14843 do eval test x\${$as_var+set} = xset \
14844 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14845 done
14846 PS1='$ '
14847 PS2='> '
14848 PS4='+ '
14849
14850 # NLS nuisances.
14851 LC_ALL=C
14852 export LC_ALL
14853 LANGUAGE=C
14854 export LANGUAGE
14855
14856 # CDPATH.
14857 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14858
14859
14860 # as_fn_error ERROR [LINENO LOG_FD]
14861 # ---------------------------------
14862 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14863 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14864 # script with status $?, using 1 if that was 0.
14865 as_fn_error ()
14866 {
14867 as_status=$?; test $as_status -eq 0 && as_status=1
14868 if test "$3"; then
14869 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14870 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14871 fi
14872 $as_echo "$as_me: error: $1" >&2
14873 as_fn_exit $as_status
14874 } # as_fn_error
14875
14876
14877 # as_fn_set_status STATUS
14878 # -----------------------
14879 # Set $? to STATUS, without forking.
14880 as_fn_set_status ()
14881 {
14882 return $1
14883 } # as_fn_set_status
14884
14885 # as_fn_exit STATUS
14886 # -----------------
14887 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14888 as_fn_exit ()
14889 {
14890 set +e
14891 as_fn_set_status $1
14892 exit $1
14893 } # as_fn_exit
14894
14895 # as_fn_unset VAR
14896 # ---------------
14897 # Portably unset VAR.
14898 as_fn_unset ()
14899 {
14900 { eval $1=; unset $1;}
14901 }
14902 as_unset=as_fn_unset
14903 # as_fn_append VAR VALUE
14904 # ----------------------
14905 # Append the text in VALUE to the end of the definition contained in VAR. Take
14906 # advantage of any shell optimizations that allow amortized linear growth over
14907 # repeated appends, instead of the typical quadratic growth present in naive
14908 # implementations.
14909 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14910 eval 'as_fn_append ()
14911 {
14912 eval $1+=\$2
14913 }'
14914 else
14915 as_fn_append ()
14916 {
14917 eval $1=\$$1\$2
14918 }
14919 fi # as_fn_append
14920
14921 # as_fn_arith ARG...
14922 # ------------------
14923 # Perform arithmetic evaluation on the ARGs, and store the result in the
14924 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14925 # must be portable across $(()) and expr.
14926 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14927 eval 'as_fn_arith ()
14928 {
14929 as_val=$(( $* ))
14930 }'
14931 else
14932 as_fn_arith ()
14933 {
14934 as_val=`expr "$@" || test $? -eq 1`
14935 }
14936 fi # as_fn_arith
14937
14938
14939 if expr a : '\(a\)' >/dev/null 2>&1 &&
14940 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14941 as_expr=expr
14942 else
14943 as_expr=false
14944 fi
14945
14946 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14947 as_basename=basename
14948 else
14949 as_basename=false
14950 fi
14951
14952 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14953 as_dirname=dirname
14954 else
14955 as_dirname=false
14956 fi
14957
14958 as_me=`$as_basename -- "$0" ||
14959 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14960 X"$0" : 'X\(//\)$' \| \
14961 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14962 $as_echo X/"$0" |
14963 sed '/^.*\/\([^/][^/]*\)\/*$/{
14964 s//\1/
14965 q
14966 }
14967 /^X\/\(\/\/\)$/{
14968 s//\1/
14969 q
14970 }
14971 /^X\/\(\/\).*/{
14972 s//\1/
14973 q
14974 }
14975 s/.*/./; q'`
14976
14977 # Avoid depending upon Character Ranges.
14978 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14979 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14980 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14981 as_cr_digits='0123456789'
14982 as_cr_alnum=$as_cr_Letters$as_cr_digits
14983
14984 ECHO_C= ECHO_N= ECHO_T=
14985 case `echo -n x` in #(((((
14986 -n*)
14987 case `echo 'xy\c'` in
14988 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14989 xy) ECHO_C='\c';;
14990 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14991 ECHO_T=' ';;
14992 esac;;
14993 *)
14994 ECHO_N='-n';;
14995 esac
14996
14997 rm -f conf$$ conf$$.exe conf$$.file
14998 if test -d conf$$.dir; then
14999 rm -f conf$$.dir/conf$$.file
15000 else
15001 rm -f conf$$.dir
15002 mkdir conf$$.dir 2>/dev/null
15003 fi
15004 if (echo >conf$$.file) 2>/dev/null; then
15005 if ln -s conf$$.file conf$$ 2>/dev/null; then
15006 as_ln_s='ln -s'
15007 # ... but there are two gotchas:
15008 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15009 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15010 # In both cases, we have to default to `cp -p'.
15011 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15012 as_ln_s='cp -p'
15013 elif ln conf$$.file conf$$ 2>/dev/null; then
15014 as_ln_s=ln
15015 else
15016 as_ln_s='cp -p'
15017 fi
15018 else
15019 as_ln_s='cp -p'
15020 fi
15021 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15022 rmdir conf$$.dir 2>/dev/null
15023
15024
15025 # as_fn_mkdir_p
15026 # -------------
15027 # Create "$as_dir" as a directory, including parents if necessary.
15028 as_fn_mkdir_p ()
15029 {
15030
15031 case $as_dir in #(
15032 -*) as_dir=./$as_dir;;
15033 esac
15034 test -d "$as_dir" || eval $as_mkdir_p || {
15035 as_dirs=
15036 while :; do
15037 case $as_dir in #(
15038 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15039 *) as_qdir=$as_dir;;
15040 esac
15041 as_dirs="'$as_qdir' $as_dirs"
15042 as_dir=`$as_dirname -- "$as_dir" ||
15043 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15044 X"$as_dir" : 'X\(//\)[^/]' \| \
15045 X"$as_dir" : 'X\(//\)$' \| \
15046 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15047 $as_echo X"$as_dir" |
15048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15049 s//\1/
15050 q
15051 }
15052 /^X\(\/\/\)[^/].*/{
15053 s//\1/
15054 q
15055 }
15056 /^X\(\/\/\)$/{
15057 s//\1/
15058 q
15059 }
15060 /^X\(\/\).*/{
15061 s//\1/
15062 q
15063 }
15064 s/.*/./; q'`
15065 test -d "$as_dir" && break
15066 done
15067 test -z "$as_dirs" || eval "mkdir $as_dirs"
15068 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15069
15070
15071 } # as_fn_mkdir_p
15072 if mkdir -p . 2>/dev/null; then
15073 as_mkdir_p='mkdir -p "$as_dir"'
15074 else
15075 test -d ./-p && rmdir ./-p
15076 as_mkdir_p=false
15077 fi
15078
15079 if test -x / >/dev/null 2>&1; then
15080 as_test_x='test -x'
15081 else
15082 if ls -dL / >/dev/null 2>&1; then
15083 as_ls_L_option=L
15084 else
15085 as_ls_L_option=
15086 fi
15087 as_test_x='
15088 eval sh -c '\''
15089 if test -d "$1"; then
15090 test -d "$1/.";
15091 else
15092 case $1 in #(
15093 -*)set "./$1";;
15094 esac;
15095 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15096 ???[sx]*):;;*)false;;esac;fi
15097 '\'' sh
15098 '
15099 fi
15100 as_executable_p=$as_test_x
15101
15102 # Sed expression to map a string onto a valid CPP name.
15103 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15104
15105 # Sed expression to map a string onto a valid variable name.
15106 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15107
15108
15109 exec 6>&1
15110 ## ----------------------------------- ##
15111 ## Main body of $CONFIG_STATUS script. ##
15112 ## ----------------------------------- ##
15113 _ASEOF
15114 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15115
15116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15117 # Save the log message, to keep $0 and so on meaningful, and to
15118 # report actual input values of CONFIG_FILES etc. instead of their
15119 # values after options handling.
15120 ac_log="
15121 This file was extended by libcc1 $as_me version-unused, which was
15122 generated by GNU Autoconf 2.64. Invocation command line was
15123
15124 CONFIG_FILES = $CONFIG_FILES
15125 CONFIG_HEADERS = $CONFIG_HEADERS
15126 CONFIG_LINKS = $CONFIG_LINKS
15127 CONFIG_COMMANDS = $CONFIG_COMMANDS
15128 $ $0 $@
15129
15130 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15131 "
15132
15133 _ACEOF
15134
15135 case $ac_config_files in *"
15136 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15137 esac
15138
15139 case $ac_config_headers in *"
15140 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15141 esac
15142
15143
15144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15145 # Files that config.status was made for.
15146 config_files="$ac_config_files"
15147 config_headers="$ac_config_headers"
15148 config_commands="$ac_config_commands"
15149
15150 _ACEOF
15151
15152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15153 ac_cs_usage="\
15154 \`$as_me' instantiates files and other configuration actions
15155 from templates according to the current configuration. Unless the files
15156 and actions are specified as TAGs, all are instantiated by default.
15157
15158 Usage: $0 [OPTION]... [TAG]...
15159
15160 -h, --help print this help, then exit
15161 -V, --version print version number and configuration settings, then exit
15162 -q, --quiet, --silent
15163 do not print progress messages
15164 -d, --debug don't remove temporary files
15165 --recheck update $as_me by reconfiguring in the same conditions
15166 --file=FILE[:TEMPLATE]
15167 instantiate the configuration file FILE
15168 --header=FILE[:TEMPLATE]
15169 instantiate the configuration header FILE
15170
15171 Configuration files:
15172 $config_files
15173
15174 Configuration headers:
15175 $config_headers
15176
15177 Configuration commands:
15178 $config_commands
15179
15180 Report bugs to the package provider."
15181
15182 _ACEOF
15183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15184 ac_cs_version="\\
15185 libcc1 config.status version-unused
15186 configured by $0, generated by GNU Autoconf 2.64,
15187 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15188
15189 Copyright (C) 2009 Free Software Foundation, Inc.
15190 This config.status script is free software; the Free Software Foundation
15191 gives unlimited permission to copy, distribute and modify it."
15192
15193 ac_pwd='$ac_pwd'
15194 srcdir='$srcdir'
15195 INSTALL='$INSTALL'
15196 MKDIR_P='$MKDIR_P'
15197 AWK='$AWK'
15198 test -n "\$AWK" || AWK=awk
15199 _ACEOF
15200
15201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15202 # The default lists apply if the user does not specify any file.
15203 ac_need_defaults=:
15204 while test $# != 0
15205 do
15206 case $1 in
15207 --*=*)
15208 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15209 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15210 ac_shift=:
15211 ;;
15212 *)
15213 ac_option=$1
15214 ac_optarg=$2
15215 ac_shift=shift
15216 ;;
15217 esac
15218
15219 case $ac_option in
15220 # Handling of the options.
15221 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15222 ac_cs_recheck=: ;;
15223 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15224 $as_echo "$ac_cs_version"; exit ;;
15225 --debug | --debu | --deb | --de | --d | -d )
15226 debug=: ;;
15227 --file | --fil | --fi | --f )
15228 $ac_shift
15229 case $ac_optarg in
15230 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15231 esac
15232 as_fn_append CONFIG_FILES " '$ac_optarg'"
15233 ac_need_defaults=false;;
15234 --header | --heade | --head | --hea )
15235 $ac_shift
15236 case $ac_optarg in
15237 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15238 esac
15239 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15240 ac_need_defaults=false;;
15241 --he | --h)
15242 # Conflict between --help and --header
15243 as_fn_error "ambiguous option: \`$1'
15244 Try \`$0 --help' for more information.";;
15245 --help | --hel | -h )
15246 $as_echo "$ac_cs_usage"; exit ;;
15247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15248 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15249 ac_cs_silent=: ;;
15250
15251 # This is an error.
15252 -*) as_fn_error "unrecognized option: \`$1'
15253 Try \`$0 --help' for more information." ;;
15254
15255 *) as_fn_append ac_config_targets " $1"
15256 ac_need_defaults=false ;;
15257
15258 esac
15259 shift
15260 done
15261
15262 ac_configure_extra_args=
15263
15264 if $ac_cs_silent; then
15265 exec 6>/dev/null
15266 ac_configure_extra_args="$ac_configure_extra_args --silent"
15267 fi
15268
15269 _ACEOF
15270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15271 if \$ac_cs_recheck; then
15272 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15273 shift
15274 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15275 CONFIG_SHELL='$SHELL'
15276 export CONFIG_SHELL
15277 exec "\$@"
15278 fi
15279
15280 _ACEOF
15281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15282 exec 5>>config.log
15283 {
15284 echo
15285 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15286 ## Running $as_me. ##
15287 _ASBOX
15288 $as_echo "$ac_log"
15289 } >&5
15290
15291 _ACEOF
15292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15293 #
15294 # INIT-COMMANDS
15295 #
15296 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15297
15298
15299 # The HP-UX ksh and POSIX shell print the target directory to stdout
15300 # if CDPATH is set.
15301 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15302
15303 sed_quote_subst='$sed_quote_subst'
15304 double_quote_subst='$double_quote_subst'
15305 delay_variable_subst='$delay_variable_subst'
15306 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15307 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15308 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15309 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15310 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15311 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15312 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15313 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15314 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15315 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15316 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15317 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15318 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15319 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15320 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15321 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15322 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15323 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15324 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15325 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15326 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15327 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15328 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15329 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15330 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15331 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15332 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15333 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15334 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15335 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15336 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15337 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15338 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15339 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15340 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15341 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15342 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15343 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15344 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15345 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15346 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15347 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15348 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15349 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15350 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15351 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15352 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15353 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15354 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"`'
15355 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15356 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15357 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15358 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15359 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15360 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15361 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15362 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15363 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15364 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15365 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15366 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15367 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15368 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15369 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15370 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15371 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15372 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15373 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15374 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15375 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15376 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15377 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15378 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15379 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15380 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15381 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15382 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15383 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15384 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15385 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15386 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15387 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15388 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15389 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15390 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15391 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15392 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15393 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15394 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15395 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15396 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15397 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15398 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15399 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15400 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15401 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15402 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15403 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15404 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15405 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15406 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15407 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15408 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15409 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15410 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15411 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15412 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15413 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15414 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15415 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15416 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15417 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15418 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15419 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15420 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15421 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15422 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15423 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15424 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15425 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15426 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15427 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15428 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15429 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15430 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15431 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15432 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15433 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15434 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15435 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15436 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15437 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15438 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15439 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15440 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15441 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15442 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15443 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15444 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15445 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15446 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15447 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15448 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15449 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15450 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15451 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15452 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15453 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15454 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15455 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15456 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15457 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15458 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15459 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15460 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15461 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15462 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15463 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15464 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15465 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15466 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15467 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15468 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15469 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15470 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15471 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15472 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15473 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15474 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15475 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15476 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15477 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15478 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15479 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15480 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15481
15482 LTCC='$LTCC'
15483 LTCFLAGS='$LTCFLAGS'
15484 compiler='$compiler_DEFAULT'
15485
15486 # A function that is used when there is no print builtin or printf.
15487 func_fallback_echo ()
15488 {
15489 eval 'cat <<_LTECHO_EOF
15490 \$1
15491 _LTECHO_EOF'
15492 }
15493
15494 # Quote evaled strings.
15495 for var in SHELL \
15496 ECHO \
15497 SED \
15498 GREP \
15499 EGREP \
15500 FGREP \
15501 LD \
15502 NM \
15503 LN_S \
15504 lt_SP2NL \
15505 lt_NL2SP \
15506 reload_flag \
15507 OBJDUMP \
15508 deplibs_check_method \
15509 file_magic_cmd \
15510 AR \
15511 AR_FLAGS \
15512 STRIP \
15513 RANLIB \
15514 CC \
15515 CFLAGS \
15516 compiler \
15517 lt_cv_sys_global_symbol_pipe \
15518 lt_cv_sys_global_symbol_to_cdecl \
15519 lt_cv_sys_global_symbol_to_c_name_address \
15520 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15521 lt_prog_compiler_no_builtin_flag \
15522 lt_prog_compiler_wl \
15523 lt_prog_compiler_pic \
15524 lt_prog_compiler_static \
15525 lt_cv_prog_compiler_c_o \
15526 need_locks \
15527 DSYMUTIL \
15528 NMEDIT \
15529 LIPO \
15530 OTOOL \
15531 OTOOL64 \
15532 shrext_cmds \
15533 export_dynamic_flag_spec \
15534 whole_archive_flag_spec \
15535 compiler_needs_object \
15536 with_gnu_ld \
15537 allow_undefined_flag \
15538 no_undefined_flag \
15539 hardcode_libdir_flag_spec \
15540 hardcode_libdir_flag_spec_ld \
15541 hardcode_libdir_separator \
15542 fix_srcfile_path \
15543 exclude_expsyms \
15544 include_expsyms \
15545 file_list_spec \
15546 variables_saved_for_relink \
15547 libname_spec \
15548 library_names_spec \
15549 soname_spec \
15550 install_override_mode \
15551 finish_eval \
15552 old_striplib \
15553 striplib \
15554 compiler_lib_search_dirs \
15555 predep_objects \
15556 postdep_objects \
15557 predeps \
15558 postdeps \
15559 compiler_lib_search_path \
15560 LD_CXX \
15561 reload_flag_CXX \
15562 compiler_CXX \
15563 lt_prog_compiler_no_builtin_flag_CXX \
15564 lt_prog_compiler_wl_CXX \
15565 lt_prog_compiler_pic_CXX \
15566 lt_prog_compiler_static_CXX \
15567 lt_cv_prog_compiler_c_o_CXX \
15568 export_dynamic_flag_spec_CXX \
15569 whole_archive_flag_spec_CXX \
15570 compiler_needs_object_CXX \
15571 with_gnu_ld_CXX \
15572 allow_undefined_flag_CXX \
15573 no_undefined_flag_CXX \
15574 hardcode_libdir_flag_spec_CXX \
15575 hardcode_libdir_flag_spec_ld_CXX \
15576 hardcode_libdir_separator_CXX \
15577 fix_srcfile_path_CXX \
15578 exclude_expsyms_CXX \
15579 include_expsyms_CXX \
15580 file_list_spec_CXX \
15581 compiler_lib_search_dirs_CXX \
15582 predep_objects_CXX \
15583 postdep_objects_CXX \
15584 predeps_CXX \
15585 postdeps_CXX \
15586 compiler_lib_search_path_CXX; do
15587 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15588 *[\\\\\\\`\\"\\\$]*)
15589 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15590 ;;
15591 *)
15592 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15593 ;;
15594 esac
15595 done
15596
15597 # Double-quote double-evaled strings.
15598 for var in reload_cmds \
15599 old_postinstall_cmds \
15600 old_postuninstall_cmds \
15601 old_archive_cmds \
15602 extract_expsyms_cmds \
15603 old_archive_from_new_cmds \
15604 old_archive_from_expsyms_cmds \
15605 archive_cmds \
15606 archive_expsym_cmds \
15607 module_cmds \
15608 module_expsym_cmds \
15609 export_symbols_cmds \
15610 prelink_cmds \
15611 postinstall_cmds \
15612 postuninstall_cmds \
15613 finish_cmds \
15614 sys_lib_search_path_spec \
15615 sys_lib_dlsearch_path_spec \
15616 reload_cmds_CXX \
15617 old_archive_cmds_CXX \
15618 old_archive_from_new_cmds_CXX \
15619 old_archive_from_expsyms_cmds_CXX \
15620 archive_cmds_CXX \
15621 archive_expsym_cmds_CXX \
15622 module_cmds_CXX \
15623 module_expsym_cmds_CXX \
15624 export_symbols_cmds_CXX \
15625 prelink_cmds_CXX; do
15626 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15627 *[\\\\\\\`\\"\\\$]*)
15628 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15629 ;;
15630 *)
15631 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15632 ;;
15633 esac
15634 done
15635
15636 ac_aux_dir='$ac_aux_dir'
15637 xsi_shell='$xsi_shell'
15638 lt_shell_append='$lt_shell_append'
15639
15640 # See if we are running on zsh, and set the options which allow our
15641 # commands through without removal of \ escapes INIT.
15642 if test -n "\${ZSH_VERSION+set}" ; then
15643 setopt NO_GLOB_SUBST
15644 fi
15645
15646
15647 PACKAGE='$PACKAGE'
15648 VERSION='$VERSION'
15649 TIMESTAMP='$TIMESTAMP'
15650 RM='$RM'
15651 ofile='$ofile'
15652
15653
15654
15655
15656
15657
15658 _ACEOF
15659
15660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15661
15662 # Handling of arguments.
15663 for ac_config_target in $ac_config_targets
15664 do
15665 case $ac_config_target in
15666 "cc1plugin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS cc1plugin-config.h" ;;
15667 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15668 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15669 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15670
15671 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15672 esac
15673 done
15674
15675
15676 # If the user did not use the arguments to specify the items to instantiate,
15677 # then the envvar interface is used. Set only those that are not.
15678 # We use the long form for the default assignment because of an extremely
15679 # bizarre bug on SunOS 4.1.3.
15680 if $ac_need_defaults; then
15681 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15682 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15683 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15684 fi
15685
15686 # Have a temporary directory for convenience. Make it in the build tree
15687 # simply because there is no reason against having it here, and in addition,
15688 # creating and moving files from /tmp can sometimes cause problems.
15689 # Hook for its removal unless debugging.
15690 # Note that there is a small window in which the directory will not be cleaned:
15691 # after its creation but before its name has been assigned to `$tmp'.
15692 $debug ||
15693 {
15694 tmp=
15695 trap 'exit_status=$?
15696 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15697 ' 0
15698 trap 'as_fn_exit 1' 1 2 13 15
15699 }
15700 # Create a (secure) tmp directory for tmp files.
15701
15702 {
15703 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15704 test -n "$tmp" && test -d "$tmp"
15705 } ||
15706 {
15707 tmp=./conf$$-$RANDOM
15708 (umask 077 && mkdir "$tmp")
15709 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15710
15711 # Set up the scripts for CONFIG_FILES section.
15712 # No need to generate them if there are no CONFIG_FILES.
15713 # This happens for instance with `./config.status config.h'.
15714 if test -n "$CONFIG_FILES"; then
15715
15716
15717 ac_cr=`echo X | tr X '\015'`
15718 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15719 # But we know of no other shell where ac_cr would be empty at this
15720 # point, so we can use a bashism as a fallback.
15721 if test "x$ac_cr" = x; then
15722 eval ac_cr=\$\'\\r\'
15723 fi
15724 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15725 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15726 ac_cs_awk_cr='\r'
15727 else
15728 ac_cs_awk_cr=$ac_cr
15729 fi
15730
15731 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15732 _ACEOF
15733
15734
15735 {
15736 echo "cat >conf$$subs.awk <<_ACEOF" &&
15737 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15738 echo "_ACEOF"
15739 } >conf$$subs.sh ||
15740 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15741 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15742 ac_delim='%!_!# '
15743 for ac_last_try in false false false false false :; do
15744 . ./conf$$subs.sh ||
15745 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15746
15747 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15748 if test $ac_delim_n = $ac_delim_num; then
15749 break
15750 elif $ac_last_try; then
15751 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15752 else
15753 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15754 fi
15755 done
15756 rm -f conf$$subs.sh
15757
15758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15759 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15760 _ACEOF
15761 sed -n '
15762 h
15763 s/^/S["/; s/!.*/"]=/
15764 p
15765 g
15766 s/^[^!]*!//
15767 :repl
15768 t repl
15769 s/'"$ac_delim"'$//
15770 t delim
15771 :nl
15772 h
15773 s/\(.\{148\}\).*/\1/
15774 t more1
15775 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15776 p
15777 n
15778 b repl
15779 :more1
15780 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15781 p
15782 g
15783 s/.\{148\}//
15784 t nl
15785 :delim
15786 h
15787 s/\(.\{148\}\).*/\1/
15788 t more2
15789 s/["\\]/\\&/g; s/^/"/; s/$/"/
15790 p
15791 b
15792 :more2
15793 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15794 p
15795 g
15796 s/.\{148\}//
15797 t delim
15798 ' <conf$$subs.awk | sed '
15799 /^[^""]/{
15800 N
15801 s/\n//
15802 }
15803 ' >>$CONFIG_STATUS || ac_write_fail=1
15804 rm -f conf$$subs.awk
15805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15806 _ACAWK
15807 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15808 for (key in S) S_is_set[key] = 1
15809 FS = "\a"
15810
15811 }
15812 {
15813 line = $ 0
15814 nfields = split(line, field, "@")
15815 substed = 0
15816 len = length(field[1])
15817 for (i = 2; i < nfields; i++) {
15818 key = field[i]
15819 keylen = length(key)
15820 if (S_is_set[key]) {
15821 value = S[key]
15822 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15823 len += length(value) + length(field[++i])
15824 substed = 1
15825 } else
15826 len += 1 + keylen
15827 }
15828
15829 print line
15830 }
15831
15832 _ACAWK
15833 _ACEOF
15834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15835 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15836 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15837 else
15838 cat
15839 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15840 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15841 _ACEOF
15842
15843 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15844 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15845 # trailing colons and then remove the whole line if VPATH becomes empty
15846 # (actually we leave an empty line to preserve line numbers).
15847 if test "x$srcdir" = x.; then
15848 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15849 s/:*\$(srcdir):*/:/
15850 s/:*\${srcdir}:*/:/
15851 s/:*@srcdir@:*/:/
15852 s/^\([^=]*=[ ]*\):*/\1/
15853 s/:*$//
15854 s/^[^=]*=[ ]*$//
15855 }'
15856 fi
15857
15858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15859 fi # test -n "$CONFIG_FILES"
15860
15861 # Set up the scripts for CONFIG_HEADERS section.
15862 # No need to generate them if there are no CONFIG_HEADERS.
15863 # This happens for instance with `./config.status Makefile'.
15864 if test -n "$CONFIG_HEADERS"; then
15865 cat >"$tmp/defines.awk" <<\_ACAWK ||
15866 BEGIN {
15867 _ACEOF
15868
15869 # Transform confdefs.h into an awk script `defines.awk', embedded as
15870 # here-document in config.status, that substitutes the proper values into
15871 # config.h.in to produce config.h.
15872
15873 # Create a delimiter string that does not exist in confdefs.h, to ease
15874 # handling of long lines.
15875 ac_delim='%!_!# '
15876 for ac_last_try in false false :; do
15877 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15878 if test -z "$ac_t"; then
15879 break
15880 elif $ac_last_try; then
15881 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15882 else
15883 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15884 fi
15885 done
15886
15887 # For the awk script, D is an array of macro values keyed by name,
15888 # likewise P contains macro parameters if any. Preserve backslash
15889 # newline sequences.
15890
15891 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15892 sed -n '
15893 s/.\{148\}/&'"$ac_delim"'/g
15894 t rset
15895 :rset
15896 s/^[ ]*#[ ]*define[ ][ ]*/ /
15897 t def
15898 d
15899 :def
15900 s/\\$//
15901 t bsnl
15902 s/["\\]/\\&/g
15903 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15904 D["\1"]=" \3"/p
15905 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15906 d
15907 :bsnl
15908 s/["\\]/\\&/g
15909 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15910 D["\1"]=" \3\\\\\\n"\\/p
15911 t cont
15912 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15913 t cont
15914 d
15915 :cont
15916 n
15917 s/.\{148\}/&'"$ac_delim"'/g
15918 t clear
15919 :clear
15920 s/\\$//
15921 t bsnlc
15922 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15923 d
15924 :bsnlc
15925 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15926 b cont
15927 ' <confdefs.h | sed '
15928 s/'"$ac_delim"'/"\\\
15929 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15930
15931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15932 for (key in D) D_is_set[key] = 1
15933 FS = "\a"
15934 }
15935 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15936 line = \$ 0
15937 split(line, arg, " ")
15938 if (arg[1] == "#") {
15939 defundef = arg[2]
15940 mac1 = arg[3]
15941 } else {
15942 defundef = substr(arg[1], 2)
15943 mac1 = arg[2]
15944 }
15945 split(mac1, mac2, "(") #)
15946 macro = mac2[1]
15947 prefix = substr(line, 1, index(line, defundef) - 1)
15948 if (D_is_set[macro]) {
15949 # Preserve the white space surrounding the "#".
15950 print prefix "define", macro P[macro] D[macro]
15951 next
15952 } else {
15953 # Replace #undef with comments. This is necessary, for example,
15954 # in the case of _POSIX_SOURCE, which is predefined and required
15955 # on some systems where configure will not decide to define it.
15956 if (defundef == "undef") {
15957 print "/*", prefix defundef, macro, "*/"
15958 next
15959 }
15960 }
15961 }
15962 { print }
15963 _ACAWK
15964 _ACEOF
15965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15966 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15967 fi # test -n "$CONFIG_HEADERS"
15968
15969
15970 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15971 shift
15972 for ac_tag
15973 do
15974 case $ac_tag in
15975 :[FHLC]) ac_mode=$ac_tag; continue;;
15976 esac
15977 case $ac_mode$ac_tag in
15978 :[FHL]*:*);;
15979 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15980 :[FH]-) ac_tag=-:-;;
15981 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15982 esac
15983 ac_save_IFS=$IFS
15984 IFS=:
15985 set x $ac_tag
15986 IFS=$ac_save_IFS
15987 shift
15988 ac_file=$1
15989 shift
15990
15991 case $ac_mode in
15992 :L) ac_source=$1;;
15993 :[FH])
15994 ac_file_inputs=
15995 for ac_f
15996 do
15997 case $ac_f in
15998 -) ac_f="$tmp/stdin";;
15999 *) # Look for the file first in the build tree, then in the source tree
16000 # (if the path is not absolute). The absolute path cannot be DOS-style,
16001 # because $ac_f cannot contain `:'.
16002 test -f "$ac_f" ||
16003 case $ac_f in
16004 [\\/$]*) false;;
16005 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16006 esac ||
16007 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16008 esac
16009 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16010 as_fn_append ac_file_inputs " '$ac_f'"
16011 done
16012
16013 # Let's still pretend it is `configure' which instantiates (i.e., don't
16014 # use $as_me), people would be surprised to read:
16015 # /* config.h. Generated by config.status. */
16016 configure_input='Generated from '`
16017 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16018 `' by configure.'
16019 if test x"$ac_file" != x-; then
16020 configure_input="$ac_file. $configure_input"
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16022 $as_echo "$as_me: creating $ac_file" >&6;}
16023 fi
16024 # Neutralize special characters interpreted by sed in replacement strings.
16025 case $configure_input in #(
16026 *\&* | *\|* | *\\* )
16027 ac_sed_conf_input=`$as_echo "$configure_input" |
16028 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16029 *) ac_sed_conf_input=$configure_input;;
16030 esac
16031
16032 case $ac_tag in
16033 *:-:* | *:-) cat >"$tmp/stdin" \
16034 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16035 esac
16036 ;;
16037 esac
16038
16039 ac_dir=`$as_dirname -- "$ac_file" ||
16040 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16041 X"$ac_file" : 'X\(//\)[^/]' \| \
16042 X"$ac_file" : 'X\(//\)$' \| \
16043 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16044 $as_echo X"$ac_file" |
16045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16046 s//\1/
16047 q
16048 }
16049 /^X\(\/\/\)[^/].*/{
16050 s//\1/
16051 q
16052 }
16053 /^X\(\/\/\)$/{
16054 s//\1/
16055 q
16056 }
16057 /^X\(\/\).*/{
16058 s//\1/
16059 q
16060 }
16061 s/.*/./; q'`
16062 as_dir="$ac_dir"; as_fn_mkdir_p
16063 ac_builddir=.
16064
16065 case "$ac_dir" in
16066 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16067 *)
16068 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16069 # A ".." for each directory in $ac_dir_suffix.
16070 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16071 case $ac_top_builddir_sub in
16072 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16073 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16074 esac ;;
16075 esac
16076 ac_abs_top_builddir=$ac_pwd
16077 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16078 # for backward compatibility:
16079 ac_top_builddir=$ac_top_build_prefix
16080
16081 case $srcdir in
16082 .) # We are building in place.
16083 ac_srcdir=.
16084 ac_top_srcdir=$ac_top_builddir_sub
16085 ac_abs_top_srcdir=$ac_pwd ;;
16086 [\\/]* | ?:[\\/]* ) # Absolute name.
16087 ac_srcdir=$srcdir$ac_dir_suffix;
16088 ac_top_srcdir=$srcdir
16089 ac_abs_top_srcdir=$srcdir ;;
16090 *) # Relative name.
16091 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16092 ac_top_srcdir=$ac_top_build_prefix$srcdir
16093 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16094 esac
16095 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16096
16097
16098 case $ac_mode in
16099 :F)
16100 #
16101 # CONFIG_FILE
16102 #
16103
16104 case $INSTALL in
16105 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16106 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16107 esac
16108 ac_MKDIR_P=$MKDIR_P
16109 case $MKDIR_P in
16110 [\\/$]* | ?:[\\/]* ) ;;
16111 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16112 esac
16113 _ACEOF
16114
16115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16116 # If the template does not know about datarootdir, expand it.
16117 # FIXME: This hack should be removed a few years after 2.60.
16118 ac_datarootdir_hack=; ac_datarootdir_seen=
16119 ac_sed_dataroot='
16120 /datarootdir/ {
16121 p
16122 q
16123 }
16124 /@datadir@/p
16125 /@docdir@/p
16126 /@infodir@/p
16127 /@localedir@/p
16128 /@mandir@/p'
16129 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16130 *datarootdir*) ac_datarootdir_seen=yes;;
16131 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16133 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16134 _ACEOF
16135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16136 ac_datarootdir_hack='
16137 s&@datadir@&$datadir&g
16138 s&@docdir@&$docdir&g
16139 s&@infodir@&$infodir&g
16140 s&@localedir@&$localedir&g
16141 s&@mandir@&$mandir&g
16142 s&\\\${datarootdir}&$datarootdir&g' ;;
16143 esac
16144 _ACEOF
16145
16146 # Neutralize VPATH when `$srcdir' = `.'.
16147 # Shell code in configure.ac might set extrasub.
16148 # FIXME: do we really want to maintain this feature?
16149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16150 ac_sed_extra="$ac_vpsub
16151 $extrasub
16152 _ACEOF
16153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16154 :t
16155 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16156 s|@configure_input@|$ac_sed_conf_input|;t t
16157 s&@top_builddir@&$ac_top_builddir_sub&;t t
16158 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16159 s&@srcdir@&$ac_srcdir&;t t
16160 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16161 s&@top_srcdir@&$ac_top_srcdir&;t t
16162 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16163 s&@builddir@&$ac_builddir&;t t
16164 s&@abs_builddir@&$ac_abs_builddir&;t t
16165 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16166 s&@INSTALL@&$ac_INSTALL&;t t
16167 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16168 $ac_datarootdir_hack
16169 "
16170 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16171 || as_fn_error "could not create $ac_file" "$LINENO" 5
16172
16173 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16174 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16175 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16177 which seems to be undefined. Please make sure it is defined." >&5
16178 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16179 which seems to be undefined. Please make sure it is defined." >&2;}
16180
16181 rm -f "$tmp/stdin"
16182 case $ac_file in
16183 -) cat "$tmp/out" && rm -f "$tmp/out";;
16184 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16185 esac \
16186 || as_fn_error "could not create $ac_file" "$LINENO" 5
16187 ;;
16188 :H)
16189 #
16190 # CONFIG_HEADER
16191 #
16192 if test x"$ac_file" != x-; then
16193 {
16194 $as_echo "/* $configure_input */" \
16195 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16196 } >"$tmp/config.h" \
16197 || as_fn_error "could not create $ac_file" "$LINENO" 5
16198 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16200 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16201 else
16202 rm -f "$ac_file"
16203 mv "$tmp/config.h" "$ac_file" \
16204 || as_fn_error "could not create $ac_file" "$LINENO" 5
16205 fi
16206 else
16207 $as_echo "/* $configure_input */" \
16208 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16209 || as_fn_error "could not create -" "$LINENO" 5
16210 fi
16211 # Compute "$ac_file"'s index in $config_headers.
16212 _am_arg="$ac_file"
16213 _am_stamp_count=1
16214 for _am_header in $config_headers :; do
16215 case $_am_header in
16216 $_am_arg | $_am_arg:* )
16217 break ;;
16218 * )
16219 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16220 esac
16221 done
16222 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16223 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16224 X"$_am_arg" : 'X\(//\)[^/]' \| \
16225 X"$_am_arg" : 'X\(//\)$' \| \
16226 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16227 $as_echo X"$_am_arg" |
16228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16229 s//\1/
16230 q
16231 }
16232 /^X\(\/\/\)[^/].*/{
16233 s//\1/
16234 q
16235 }
16236 /^X\(\/\/\)$/{
16237 s//\1/
16238 q
16239 }
16240 /^X\(\/\).*/{
16241 s//\1/
16242 q
16243 }
16244 s/.*/./; q'`/stamp-h$_am_stamp_count
16245 ;;
16246
16247 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16248 $as_echo "$as_me: executing $ac_file commands" >&6;}
16249 ;;
16250 esac
16251
16252
16253 case $ac_file$ac_mode in
16254 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16255 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16256 # are listed without --file. Let's play safe and only enable the eval
16257 # if we detect the quoting.
16258 case $CONFIG_FILES in
16259 *\'*) eval set x "$CONFIG_FILES" ;;
16260 *) set x $CONFIG_FILES ;;
16261 esac
16262 shift
16263 for mf
16264 do
16265 # Strip MF so we end up with the name of the file.
16266 mf=`echo "$mf" | sed -e 's/:.*$//'`
16267 # Check whether this is an Automake generated Makefile or not.
16268 # We used to match only the files named `Makefile.in', but
16269 # some people rename them; so instead we look at the file content.
16270 # Grep'ing the first line is not enough: some people post-process
16271 # each Makefile.in and add a new line on top of each file to say so.
16272 # Grep'ing the whole file is not good either: AIX grep has a line
16273 # limit of 2048, but all sed's we know have understand at least 4000.
16274 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16275 dirpart=`$as_dirname -- "$mf" ||
16276 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16277 X"$mf" : 'X\(//\)[^/]' \| \
16278 X"$mf" : 'X\(//\)$' \| \
16279 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16280 $as_echo X"$mf" |
16281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16282 s//\1/
16283 q
16284 }
16285 /^X\(\/\/\)[^/].*/{
16286 s//\1/
16287 q
16288 }
16289 /^X\(\/\/\)$/{
16290 s//\1/
16291 q
16292 }
16293 /^X\(\/\).*/{
16294 s//\1/
16295 q
16296 }
16297 s/.*/./; q'`
16298 else
16299 continue
16300 fi
16301 # Extract the definition of DEPDIR, am__include, and am__quote
16302 # from the Makefile without running `make'.
16303 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16304 test -z "$DEPDIR" && continue
16305 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16306 test -z "am__include" && continue
16307 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16308 # When using ansi2knr, U may be empty or an underscore; expand it
16309 U=`sed -n 's/^U = //p' < "$mf"`
16310 # Find all dependency output files, they are included files with
16311 # $(DEPDIR) in their names. We invoke sed twice because it is the
16312 # simplest approach to changing $(DEPDIR) to its actual value in the
16313 # expansion.
16314 for file in `sed -n "
16315 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16316 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16317 # Make sure the directory exists.
16318 test -f "$dirpart/$file" && continue
16319 fdir=`$as_dirname -- "$file" ||
16320 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16321 X"$file" : 'X\(//\)[^/]' \| \
16322 X"$file" : 'X\(//\)$' \| \
16323 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16324 $as_echo X"$file" |
16325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16326 s//\1/
16327 q
16328 }
16329 /^X\(\/\/\)[^/].*/{
16330 s//\1/
16331 q
16332 }
16333 /^X\(\/\/\)$/{
16334 s//\1/
16335 q
16336 }
16337 /^X\(\/\).*/{
16338 s//\1/
16339 q
16340 }
16341 s/.*/./; q'`
16342 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16343 # echo "creating $dirpart/$file"
16344 echo '# dummy' > "$dirpart/$file"
16345 done
16346 done
16347 }
16348 ;;
16349 "libtool":C)
16350
16351 # See if we are running on zsh, and set the options which allow our
16352 # commands through without removal of \ escapes.
16353 if test -n "${ZSH_VERSION+set}" ; then
16354 setopt NO_GLOB_SUBST
16355 fi
16356
16357 cfgfile="${ofile}T"
16358 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16359 $RM "$cfgfile"
16360
16361 cat <<_LT_EOF >> "$cfgfile"
16362 #! $SHELL
16363
16364 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16365 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16366 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16367 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16368 #
16369 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16370 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16371 # Written by Gordon Matzigkeit, 1996
16372 #
16373 # This file is part of GNU Libtool.
16374 #
16375 # GNU Libtool is free software; you can redistribute it and/or
16376 # modify it under the terms of the GNU General Public License as
16377 # published by the Free Software Foundation; either version 2 of
16378 # the License, or (at your option) any later version.
16379 #
16380 # As a special exception to the GNU General Public License,
16381 # if you distribute this file as part of a program or library that
16382 # is built using GNU Libtool, you may include this file under the
16383 # same distribution terms that you use for the rest of that program.
16384 #
16385 # GNU Libtool is distributed in the hope that it will be useful,
16386 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16387 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16388 # GNU General Public License for more details.
16389 #
16390 # You should have received a copy of the GNU General Public License
16391 # along with GNU Libtool; see the file COPYING. If not, a copy
16392 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16393 # obtained by writing to the Free Software Foundation, Inc.,
16394 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16395
16396
16397 # The names of the tagged configurations supported by this script.
16398 available_tags="CXX "
16399
16400 # ### BEGIN LIBTOOL CONFIG
16401
16402 # Which release of libtool.m4 was used?
16403 macro_version=$macro_version
16404 macro_revision=$macro_revision
16405
16406 # Whether or not to build static libraries.
16407 build_old_libs=$enable_static
16408
16409 # Whether or not to build shared libraries.
16410 build_libtool_libs=$enable_shared
16411
16412 # What type of objects to build.
16413 pic_mode=$pic_mode
16414
16415 # Whether or not to optimize for fast installation.
16416 fast_install=$enable_fast_install
16417
16418 # Shell to use when invoking shell scripts.
16419 SHELL=$lt_SHELL
16420
16421 # An echo program that protects backslashes.
16422 ECHO=$lt_ECHO
16423
16424 # The host system.
16425 host_alias=$host_alias
16426 host=$host
16427 host_os=$host_os
16428
16429 # The build system.
16430 build_alias=$build_alias
16431 build=$build
16432 build_os=$build_os
16433
16434 # A sed program that does not truncate output.
16435 SED=$lt_SED
16436
16437 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16438 Xsed="\$SED -e 1s/^X//"
16439
16440 # A grep program that handles long lines.
16441 GREP=$lt_GREP
16442
16443 # An ERE matcher.
16444 EGREP=$lt_EGREP
16445
16446 # A literal string matcher.
16447 FGREP=$lt_FGREP
16448
16449 # A BSD- or MS-compatible name lister.
16450 NM=$lt_NM
16451
16452 # Whether we need soft or hard links.
16453 LN_S=$lt_LN_S
16454
16455 # What is the maximum length of a command?
16456 max_cmd_len=$max_cmd_len
16457
16458 # Object file suffix (normally "o").
16459 objext=$ac_objext
16460
16461 # Executable file suffix (normally "").
16462 exeext=$exeext
16463
16464 # whether the shell understands "unset".
16465 lt_unset=$lt_unset
16466
16467 # turn spaces into newlines.
16468 SP2NL=$lt_lt_SP2NL
16469
16470 # turn newlines into spaces.
16471 NL2SP=$lt_lt_NL2SP
16472
16473 # An object symbol dumper.
16474 OBJDUMP=$lt_OBJDUMP
16475
16476 # Method to check whether dependent libraries are shared objects.
16477 deplibs_check_method=$lt_deplibs_check_method
16478
16479 # Command to use when deplibs_check_method == "file_magic".
16480 file_magic_cmd=$lt_file_magic_cmd
16481
16482 # The archiver.
16483 AR=$lt_AR
16484 AR_FLAGS=$lt_AR_FLAGS
16485
16486 # A symbol stripping program.
16487 STRIP=$lt_STRIP
16488
16489 # Commands used to install an old-style archive.
16490 RANLIB=$lt_RANLIB
16491 old_postinstall_cmds=$lt_old_postinstall_cmds
16492 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16493
16494 # Whether to use a lock for old archive extraction.
16495 lock_old_archive_extraction=$lock_old_archive_extraction
16496
16497 # A C compiler.
16498 LTCC=$lt_CC
16499
16500 # LTCC compiler flags.
16501 LTCFLAGS=$lt_CFLAGS
16502
16503 # Take the output of nm and produce a listing of raw symbols and C names.
16504 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16505
16506 # Transform the output of nm in a proper C declaration.
16507 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16508
16509 # Transform the output of nm in a C name address pair.
16510 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16511
16512 # Transform the output of nm in a C name address pair when lib prefix is needed.
16513 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16514
16515 # The name of the directory that contains temporary libtool files.
16516 objdir=$objdir
16517
16518 # Used to examine libraries when file_magic_cmd begins with "file".
16519 MAGIC_CMD=$MAGIC_CMD
16520
16521 # Must we lock files when doing compilation?
16522 need_locks=$lt_need_locks
16523
16524 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16525 DSYMUTIL=$lt_DSYMUTIL
16526
16527 # Tool to change global to local symbols on Mac OS X.
16528 NMEDIT=$lt_NMEDIT
16529
16530 # Tool to manipulate fat objects and archives on Mac OS X.
16531 LIPO=$lt_LIPO
16532
16533 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16534 OTOOL=$lt_OTOOL
16535
16536 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16537 OTOOL64=$lt_OTOOL64
16538
16539 # Old archive suffix (normally "a").
16540 libext=$libext
16541
16542 # Shared library suffix (normally ".so").
16543 shrext_cmds=$lt_shrext_cmds
16544
16545 # The commands to extract the exported symbol list from a shared archive.
16546 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16547
16548 # Variables whose values should be saved in libtool wrapper scripts and
16549 # restored at link time.
16550 variables_saved_for_relink=$lt_variables_saved_for_relink
16551
16552 # Do we need the "lib" prefix for modules?
16553 need_lib_prefix=$need_lib_prefix
16554
16555 # Do we need a version for libraries?
16556 need_version=$need_version
16557
16558 # Library versioning type.
16559 version_type=$version_type
16560
16561 # Shared library runtime path variable.
16562 runpath_var=$runpath_var
16563
16564 # Shared library path variable.
16565 shlibpath_var=$shlibpath_var
16566
16567 # Is shlibpath searched before the hard-coded library search path?
16568 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16569
16570 # Format of library name prefix.
16571 libname_spec=$lt_libname_spec
16572
16573 # List of archive names. First name is the real one, the rest are links.
16574 # The last name is the one that the linker finds with -lNAME
16575 library_names_spec=$lt_library_names_spec
16576
16577 # The coded name of the library, if different from the real name.
16578 soname_spec=$lt_soname_spec
16579
16580 # Permission mode override for installation of shared libraries.
16581 install_override_mode=$lt_install_override_mode
16582
16583 # Command to use after installation of a shared archive.
16584 postinstall_cmds=$lt_postinstall_cmds
16585
16586 # Command to use after uninstallation of a shared archive.
16587 postuninstall_cmds=$lt_postuninstall_cmds
16588
16589 # Commands used to finish a libtool library installation in a directory.
16590 finish_cmds=$lt_finish_cmds
16591
16592 # As "finish_cmds", except a single script fragment to be evaled but
16593 # not shown.
16594 finish_eval=$lt_finish_eval
16595
16596 # Whether we should hardcode library paths into libraries.
16597 hardcode_into_libs=$hardcode_into_libs
16598
16599 # Compile-time system search path for libraries.
16600 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16601
16602 # Run-time system search path for libraries.
16603 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16604
16605 # Whether dlopen is supported.
16606 dlopen_support=$enable_dlopen
16607
16608 # Whether dlopen of programs is supported.
16609 dlopen_self=$enable_dlopen_self
16610
16611 # Whether dlopen of statically linked programs is supported.
16612 dlopen_self_static=$enable_dlopen_self_static
16613
16614 # Commands to strip libraries.
16615 old_striplib=$lt_old_striplib
16616 striplib=$lt_striplib
16617
16618
16619 # The linker used to build libraries.
16620 LD=$lt_LD
16621
16622 # How to create reloadable object files.
16623 reload_flag=$lt_reload_flag
16624 reload_cmds=$lt_reload_cmds
16625
16626 # Commands used to build an old-style archive.
16627 old_archive_cmds=$lt_old_archive_cmds
16628
16629 # A language specific compiler.
16630 CC=$lt_compiler
16631
16632 # Is the compiler the GNU compiler?
16633 with_gcc=$GCC
16634
16635 # Compiler flag to turn off builtin functions.
16636 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16637
16638 # How to pass a linker flag through the compiler.
16639 wl=$lt_lt_prog_compiler_wl
16640
16641 # Additional compiler flags for building library objects.
16642 pic_flag=$lt_lt_prog_compiler_pic
16643
16644 # Compiler flag to prevent dynamic linking.
16645 link_static_flag=$lt_lt_prog_compiler_static
16646
16647 # Does compiler simultaneously support -c and -o options?
16648 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16649
16650 # Whether or not to add -lc for building shared libraries.
16651 build_libtool_need_lc=$archive_cmds_need_lc
16652
16653 # Whether or not to disallow shared libs when runtime libs are static.
16654 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16655
16656 # Compiler flag to allow reflexive dlopens.
16657 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16658
16659 # Compiler flag to generate shared objects directly from archives.
16660 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16661
16662 # Whether the compiler copes with passing no objects directly.
16663 compiler_needs_object=$lt_compiler_needs_object
16664
16665 # Create an old-style archive from a shared archive.
16666 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16667
16668 # Create a temporary old-style archive to link instead of a shared archive.
16669 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16670
16671 # Commands used to build a shared archive.
16672 archive_cmds=$lt_archive_cmds
16673 archive_expsym_cmds=$lt_archive_expsym_cmds
16674
16675 # Commands used to build a loadable module if different from building
16676 # a shared archive.
16677 module_cmds=$lt_module_cmds
16678 module_expsym_cmds=$lt_module_expsym_cmds
16679
16680 # Whether we are building with GNU ld or not.
16681 with_gnu_ld=$lt_with_gnu_ld
16682
16683 # Flag that allows shared libraries with undefined symbols to be built.
16684 allow_undefined_flag=$lt_allow_undefined_flag
16685
16686 # Flag that enforces no undefined symbols.
16687 no_undefined_flag=$lt_no_undefined_flag
16688
16689 # Flag to hardcode \$libdir into a binary during linking.
16690 # This must work even if \$libdir does not exist
16691 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16692
16693 # If ld is used when linking, flag to hardcode \$libdir into a binary
16694 # during linking. This must work even if \$libdir does not exist.
16695 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16696
16697 # Whether we need a single "-rpath" flag with a separated argument.
16698 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16699
16700 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16701 # DIR into the resulting binary.
16702 hardcode_direct=$hardcode_direct
16703
16704 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16705 # DIR into the resulting binary and the resulting library dependency is
16706 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16707 # library is relocated.
16708 hardcode_direct_absolute=$hardcode_direct_absolute
16709
16710 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16711 # into the resulting binary.
16712 hardcode_minus_L=$hardcode_minus_L
16713
16714 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16715 # into the resulting binary.
16716 hardcode_shlibpath_var=$hardcode_shlibpath_var
16717
16718 # Set to "yes" if building a shared library automatically hardcodes DIR
16719 # into the library and all subsequent libraries and executables linked
16720 # against it.
16721 hardcode_automatic=$hardcode_automatic
16722
16723 # Set to yes if linker adds runtime paths of dependent libraries
16724 # to runtime path list.
16725 inherit_rpath=$inherit_rpath
16726
16727 # Whether libtool must link a program against all its dependency libraries.
16728 link_all_deplibs=$link_all_deplibs
16729
16730 # Fix the shell variable \$srcfile for the compiler.
16731 fix_srcfile_path=$lt_fix_srcfile_path
16732
16733 # Set to "yes" if exported symbols are required.
16734 always_export_symbols=$always_export_symbols
16735
16736 # The commands to list exported symbols.
16737 export_symbols_cmds=$lt_export_symbols_cmds
16738
16739 # Symbols that should not be listed in the preloaded symbols.
16740 exclude_expsyms=$lt_exclude_expsyms
16741
16742 # Symbols that must always be exported.
16743 include_expsyms=$lt_include_expsyms
16744
16745 # Commands necessary for linking programs (against libraries) with templates.
16746 prelink_cmds=$lt_prelink_cmds
16747
16748 # Specify filename containing input files.
16749 file_list_spec=$lt_file_list_spec
16750
16751 # How to hardcode a shared library path into an executable.
16752 hardcode_action=$hardcode_action
16753
16754 # The directories searched by this compiler when creating a shared library.
16755 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16756
16757 # Dependencies to place before and after the objects being linked to
16758 # create a shared library.
16759 predep_objects=$lt_predep_objects
16760 postdep_objects=$lt_postdep_objects
16761 predeps=$lt_predeps
16762 postdeps=$lt_postdeps
16763
16764 # The library search path used internally by the compiler when linking
16765 # a shared library.
16766 compiler_lib_search_path=$lt_compiler_lib_search_path
16767
16768 # ### END LIBTOOL CONFIG
16769
16770 _LT_EOF
16771
16772 case $host_os in
16773 aix3*)
16774 cat <<\_LT_EOF >> "$cfgfile"
16775 # AIX sometimes has problems with the GCC collect2 program. For some
16776 # reason, if we set the COLLECT_NAMES environment variable, the problems
16777 # vanish in a puff of smoke.
16778 if test "X${COLLECT_NAMES+set}" != Xset; then
16779 COLLECT_NAMES=
16780 export COLLECT_NAMES
16781 fi
16782 _LT_EOF
16783 ;;
16784 esac
16785
16786
16787 ltmain="$ac_aux_dir/ltmain.sh"
16788
16789
16790 # We use sed instead of cat because bash on DJGPP gets confused if
16791 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16792 # text mode, it properly converts lines to CR/LF. This bash problem
16793 # is reportedly fixed, but why not run on old versions too?
16794 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16795 || (rm -f "$cfgfile"; exit 1)
16796
16797 case $xsi_shell in
16798 yes)
16799 cat << \_LT_EOF >> "$cfgfile"
16800
16801 # func_dirname file append nondir_replacement
16802 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16803 # otherwise set result to NONDIR_REPLACEMENT.
16804 func_dirname ()
16805 {
16806 case ${1} in
16807 */*) func_dirname_result="${1%/*}${2}" ;;
16808 * ) func_dirname_result="${3}" ;;
16809 esac
16810 }
16811
16812 # func_basename file
16813 func_basename ()
16814 {
16815 func_basename_result="${1##*/}"
16816 }
16817
16818 # func_dirname_and_basename file append nondir_replacement
16819 # perform func_basename and func_dirname in a single function
16820 # call:
16821 # dirname: Compute the dirname of FILE. If nonempty,
16822 # add APPEND to the result, otherwise set result
16823 # to NONDIR_REPLACEMENT.
16824 # value returned in "$func_dirname_result"
16825 # basename: Compute filename of FILE.
16826 # value retuned in "$func_basename_result"
16827 # Implementation must be kept synchronized with func_dirname
16828 # and func_basename. For efficiency, we do not delegate to
16829 # those functions but instead duplicate the functionality here.
16830 func_dirname_and_basename ()
16831 {
16832 case ${1} in
16833 */*) func_dirname_result="${1%/*}${2}" ;;
16834 * ) func_dirname_result="${3}" ;;
16835 esac
16836 func_basename_result="${1##*/}"
16837 }
16838
16839 # func_stripname prefix suffix name
16840 # strip PREFIX and SUFFIX off of NAME.
16841 # PREFIX and SUFFIX must not contain globbing or regex special
16842 # characters, hashes, percent signs, but SUFFIX may contain a leading
16843 # dot (in which case that matches only a dot).
16844 func_stripname ()
16845 {
16846 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16847 # positional parameters, so assign one to ordinary parameter first.
16848 func_stripname_result=${3}
16849 func_stripname_result=${func_stripname_result#"${1}"}
16850 func_stripname_result=${func_stripname_result%"${2}"}
16851 }
16852
16853 # func_opt_split
16854 func_opt_split ()
16855 {
16856 func_opt_split_opt=${1%%=*}
16857 func_opt_split_arg=${1#*=}
16858 }
16859
16860 # func_lo2o object
16861 func_lo2o ()
16862 {
16863 case ${1} in
16864 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16865 *) func_lo2o_result=${1} ;;
16866 esac
16867 }
16868
16869 # func_xform libobj-or-source
16870 func_xform ()
16871 {
16872 func_xform_result=${1%.*}.lo
16873 }
16874
16875 # func_arith arithmetic-term...
16876 func_arith ()
16877 {
16878 func_arith_result=$(( $* ))
16879 }
16880
16881 # func_len string
16882 # STRING may not start with a hyphen.
16883 func_len ()
16884 {
16885 func_len_result=${#1}
16886 }
16887
16888 _LT_EOF
16889 ;;
16890 *) # Bourne compatible functions.
16891 cat << \_LT_EOF >> "$cfgfile"
16892
16893 # func_dirname file append nondir_replacement
16894 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16895 # otherwise set result to NONDIR_REPLACEMENT.
16896 func_dirname ()
16897 {
16898 # Extract subdirectory from the argument.
16899 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16900 if test "X$func_dirname_result" = "X${1}"; then
16901 func_dirname_result="${3}"
16902 else
16903 func_dirname_result="$func_dirname_result${2}"
16904 fi
16905 }
16906
16907 # func_basename file
16908 func_basename ()
16909 {
16910 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16911 }
16912
16913
16914 # func_stripname prefix suffix name
16915 # strip PREFIX and SUFFIX off of NAME.
16916 # PREFIX and SUFFIX must not contain globbing or regex special
16917 # characters, hashes, percent signs, but SUFFIX may contain a leading
16918 # dot (in which case that matches only a dot).
16919 # func_strip_suffix prefix name
16920 func_stripname ()
16921 {
16922 case ${2} in
16923 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16924 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16925 esac
16926 }
16927
16928 # sed scripts:
16929 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16930 my_sed_long_arg='1s/^-[^=]*=//'
16931
16932 # func_opt_split
16933 func_opt_split ()
16934 {
16935 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16936 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16937 }
16938
16939 # func_lo2o object
16940 func_lo2o ()
16941 {
16942 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16943 }
16944
16945 # func_xform libobj-or-source
16946 func_xform ()
16947 {
16948 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16949 }
16950
16951 # func_arith arithmetic-term...
16952 func_arith ()
16953 {
16954 func_arith_result=`expr "$@"`
16955 }
16956
16957 # func_len string
16958 # STRING may not start with a hyphen.
16959 func_len ()
16960 {
16961 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16962 }
16963
16964 _LT_EOF
16965 esac
16966
16967 case $lt_shell_append in
16968 yes)
16969 cat << \_LT_EOF >> "$cfgfile"
16970
16971 # func_append var value
16972 # Append VALUE to the end of shell variable VAR.
16973 func_append ()
16974 {
16975 eval "$1+=\$2"
16976 }
16977 _LT_EOF
16978 ;;
16979 *)
16980 cat << \_LT_EOF >> "$cfgfile"
16981
16982 # func_append var value
16983 # Append VALUE to the end of shell variable VAR.
16984 func_append ()
16985 {
16986 eval "$1=\$$1\$2"
16987 }
16988
16989 _LT_EOF
16990 ;;
16991 esac
16992
16993
16994 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16995 || (rm -f "$cfgfile"; exit 1)
16996
16997 mv -f "$cfgfile" "$ofile" ||
16998 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16999 chmod +x "$ofile"
17000
17001
17002 cat <<_LT_EOF >> "$ofile"
17003
17004 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17005
17006 # The linker used to build libraries.
17007 LD=$lt_LD_CXX
17008
17009 # How to create reloadable object files.
17010 reload_flag=$lt_reload_flag_CXX
17011 reload_cmds=$lt_reload_cmds_CXX
17012
17013 # Commands used to build an old-style archive.
17014 old_archive_cmds=$lt_old_archive_cmds_CXX
17015
17016 # A language specific compiler.
17017 CC=$lt_compiler_CXX
17018
17019 # Is the compiler the GNU compiler?
17020 with_gcc=$GCC_CXX
17021
17022 # Compiler flag to turn off builtin functions.
17023 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17024
17025 # How to pass a linker flag through the compiler.
17026 wl=$lt_lt_prog_compiler_wl_CXX
17027
17028 # Additional compiler flags for building library objects.
17029 pic_flag=$lt_lt_prog_compiler_pic_CXX
17030
17031 # Compiler flag to prevent dynamic linking.
17032 link_static_flag=$lt_lt_prog_compiler_static_CXX
17033
17034 # Does compiler simultaneously support -c and -o options?
17035 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17036
17037 # Whether or not to add -lc for building shared libraries.
17038 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17039
17040 # Whether or not to disallow shared libs when runtime libs are static.
17041 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17042
17043 # Compiler flag to allow reflexive dlopens.
17044 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17045
17046 # Compiler flag to generate shared objects directly from archives.
17047 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17048
17049 # Whether the compiler copes with passing no objects directly.
17050 compiler_needs_object=$lt_compiler_needs_object_CXX
17051
17052 # Create an old-style archive from a shared archive.
17053 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17054
17055 # Create a temporary old-style archive to link instead of a shared archive.
17056 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17057
17058 # Commands used to build a shared archive.
17059 archive_cmds=$lt_archive_cmds_CXX
17060 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17061
17062 # Commands used to build a loadable module if different from building
17063 # a shared archive.
17064 module_cmds=$lt_module_cmds_CXX
17065 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17066
17067 # Whether we are building with GNU ld or not.
17068 with_gnu_ld=$lt_with_gnu_ld_CXX
17069
17070 # Flag that allows shared libraries with undefined symbols to be built.
17071 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17072
17073 # Flag that enforces no undefined symbols.
17074 no_undefined_flag=$lt_no_undefined_flag_CXX
17075
17076 # Flag to hardcode \$libdir into a binary during linking.
17077 # This must work even if \$libdir does not exist
17078 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17079
17080 # If ld is used when linking, flag to hardcode \$libdir into a binary
17081 # during linking. This must work even if \$libdir does not exist.
17082 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17083
17084 # Whether we need a single "-rpath" flag with a separated argument.
17085 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17086
17087 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17088 # DIR into the resulting binary.
17089 hardcode_direct=$hardcode_direct_CXX
17090
17091 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17092 # DIR into the resulting binary and the resulting library dependency is
17093 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17094 # library is relocated.
17095 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17096
17097 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17098 # into the resulting binary.
17099 hardcode_minus_L=$hardcode_minus_L_CXX
17100
17101 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17102 # into the resulting binary.
17103 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17104
17105 # Set to "yes" if building a shared library automatically hardcodes DIR
17106 # into the library and all subsequent libraries and executables linked
17107 # against it.
17108 hardcode_automatic=$hardcode_automatic_CXX
17109
17110 # Set to yes if linker adds runtime paths of dependent libraries
17111 # to runtime path list.
17112 inherit_rpath=$inherit_rpath_CXX
17113
17114 # Whether libtool must link a program against all its dependency libraries.
17115 link_all_deplibs=$link_all_deplibs_CXX
17116
17117 # Fix the shell variable \$srcfile for the compiler.
17118 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17119
17120 # Set to "yes" if exported symbols are required.
17121 always_export_symbols=$always_export_symbols_CXX
17122
17123 # The commands to list exported symbols.
17124 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17125
17126 # Symbols that should not be listed in the preloaded symbols.
17127 exclude_expsyms=$lt_exclude_expsyms_CXX
17128
17129 # Symbols that must always be exported.
17130 include_expsyms=$lt_include_expsyms_CXX
17131
17132 # Commands necessary for linking programs (against libraries) with templates.
17133 prelink_cmds=$lt_prelink_cmds_CXX
17134
17135 # Specify filename containing input files.
17136 file_list_spec=$lt_file_list_spec_CXX
17137
17138 # How to hardcode a shared library path into an executable.
17139 hardcode_action=$hardcode_action_CXX
17140
17141 # The directories searched by this compiler when creating a shared library.
17142 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17143
17144 # Dependencies to place before and after the objects being linked to
17145 # create a shared library.
17146 predep_objects=$lt_predep_objects_CXX
17147 postdep_objects=$lt_postdep_objects_CXX
17148 predeps=$lt_predeps_CXX
17149 postdeps=$lt_postdeps_CXX
17150
17151 # The library search path used internally by the compiler when linking
17152 # a shared library.
17153 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17154
17155 # ### END LIBTOOL TAG CONFIG: CXX
17156 _LT_EOF
17157
17158 ;;
17159
17160 esac
17161 done # for ac_tag
17162
17163
17164 as_fn_exit 0
17165 _ACEOF
17166 ac_clean_files=$ac_clean_files_save
17167
17168 test $ac_write_fail = 0 ||
17169 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17170
17171
17172 # configure is writing to config.log, and then calls config.status.
17173 # config.status does its own redirection, appending to config.log.
17174 # Unfortunately, on DOS this fails, as config.log is still kept open
17175 # by configure, so config.status won't be able to write to it; its
17176 # output is simply discarded. So we exec the FD to /dev/null,
17177 # effectively closing config.log, so it can be properly (re)opened and
17178 # appended to by config.status. When coming back to configure, we
17179 # need to make the FD available again.
17180 if test "$no_create" != yes; then
17181 ac_cs_success=:
17182 ac_config_status_args=
17183 test "$silent" = yes &&
17184 ac_config_status_args="$ac_config_status_args --quiet"
17185 exec 5>/dev/null
17186 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17187 exec 5>>config.log
17188 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17189 # would make configure fail if this is the last instruction.
17190 $ac_cs_success || as_fn_exit $?
17191 fi
17192 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17194 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17195 fi
17196