]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/configure
Run more ld tests when not native
[thirdparty/binutils-gdb.git] / ld / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for ld 2.28.51.
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='ld'
558 PACKAGE_TARNAME='ld'
559 PACKAGE_VERSION='2.28.51'
560 PACKAGE_STRING='ld 2.28.51'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="ldmain.c"
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 TESTBFDLIB
606 EMULATION_LIBPATH
607 LIB_PATH
608 EMUL_EXTRA_OFILES
609 EMULATION_OFILES
610 EMUL
611 elf_plt_unwind_list_options
612 elf_shlib_list_options
613 elf_list_options
614 STRINGIFY
615 enable_initfini_array
616 ENABLE_PLUGINS_FALSE
617 ENABLE_PLUGINS_TRUE
618 NATIVE_LIB_DIRS
619 HDEFINES
620 do_compare
621 GENINSRC_NEVER_FALSE
622 GENINSRC_NEVER_TRUE
623 LEXLIB
624 LEX_OUTPUT_ROOT
625 LEX
626 YFLAGS
627 YACC
628 MSGMERGE
629 MSGFMT
630 MKINSTALLDIRS
631 CATOBJEXT
632 GENCAT
633 INSTOBJEXT
634 DATADIRNAME
635 CATALOGS
636 POSUB
637 GMSGFMT
638 XGETTEXT
639 INCINTL
640 LIBINTL_DEP
641 LIBINTL
642 USE_NLS
643 WARN_WRITE_STRINGS
644 NO_WERROR
645 WARN_CFLAGS_FOR_BUILD
646 WARN_CFLAGS
647 installed_linker
648 install_as_default
649 TARGET_SYSTEM_ROOT_DEFINE
650 TARGET_SYSTEM_ROOT
651 use_sysroot
652 CXXCPP
653 OTOOL64
654 OTOOL
655 LIPO
656 NMEDIT
657 DSYMUTIL
658 RANLIB
659 AR
660 OBJDUMP
661 LN_S
662 NM
663 ac_ct_DUMPBIN
664 DUMPBIN
665 LD
666 FGREP
667 SED
668 LIBTOOL
669 EGREP
670 CPP
671 GREP
672 am__fastdepCXX_FALSE
673 am__fastdepCXX_TRUE
674 CXXDEPMODE
675 ac_ct_CXX
676 CXXFLAGS
677 CXX
678 MAINT
679 MAINTAINER_MODE_FALSE
680 MAINTAINER_MODE_TRUE
681 am__fastdepCC_FALSE
682 am__fastdepCC_TRUE
683 CCDEPMODE
684 am__nodep
685 AMDEPBACKSLASH
686 AMDEP_FALSE
687 AMDEP_TRUE
688 am__quote
689 am__include
690 DEPDIR
691 am__untar
692 am__tar
693 AMTAR
694 am__leading_dot
695 SET_MAKE
696 AWK
697 mkdir_p
698 MKDIR_P
699 INSTALL_STRIP_PROGRAM
700 STRIP
701 install_sh
702 MAKEINFO
703 AUTOHEADER
704 AUTOMAKE
705 AUTOCONF
706 ACLOCAL
707 VERSION
708 PACKAGE
709 CYGPATH_W
710 am__isrc
711 INSTALL_DATA
712 INSTALL_SCRIPT
713 INSTALL_PROGRAM
714 OBJEXT
715 EXEEXT
716 ac_ct_CC
717 CPPFLAGS
718 LDFLAGS
719 CFLAGS
720 CC
721 target_os
722 target_vendor
723 target_cpu
724 target
725 host_os
726 host_vendor
727 host_cpu
728 host
729 build_os
730 build_vendor
731 build_cpu
732 build
733 target_alias
734 host_alias
735 build_alias
736 LIBS
737 ECHO_T
738 ECHO_N
739 ECHO_C
740 DEFS
741 mandir
742 localedir
743 libdir
744 psdir
745 pdfdir
746 dvidir
747 htmldir
748 infodir
749 docdir
750 oldincludedir
751 includedir
752 localstatedir
753 sharedstatedir
754 sysconfdir
755 datadir
756 datarootdir
757 libexecdir
758 sbindir
759 bindir
760 program_transform_name
761 prefix
762 exec_prefix
763 PACKAGE_URL
764 PACKAGE_BUGREPORT
765 PACKAGE_STRING
766 PACKAGE_VERSION
767 PACKAGE_TARNAME
768 PACKAGE_NAME
769 PATH_SEPARATOR
770 SHELL'
771 ac_subst_files='TDIRS'
772 ac_user_opts='
773 enable_option_checking
774 enable_dependency_tracking
775 enable_maintainer_mode
776 enable_shared
777 enable_static
778 with_pic
779 enable_fast_install
780 with_gnu_ld
781 enable_libtool_lock
782 enable_plugins
783 enable_largefile
784 with_lib_path
785 enable_targets
786 enable_64_bit_bfd
787 with_sysroot
788 enable_gold
789 enable_got
790 enable_compressed_debug_sections
791 enable_relro
792 enable_werror
793 enable_build_warnings
794 enable_nls
795 enable_initfini_array
796 '
797 ac_precious_vars='build_alias
798 host_alias
799 target_alias
800 CC
801 CFLAGS
802 LDFLAGS
803 LIBS
804 CPPFLAGS
805 CXX
806 CXXFLAGS
807 CCC
808 CPP
809 CXXCPP
810 YACC
811 YFLAGS'
812
813
814 # Initialize some variables set by options.
815 ac_init_help=
816 ac_init_version=false
817 ac_unrecognized_opts=
818 ac_unrecognized_sep=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
821 cache_file=/dev/null
822 exec_prefix=NONE
823 no_create=
824 no_recursion=
825 prefix=NONE
826 program_prefix=NONE
827 program_suffix=NONE
828 program_transform_name=s,x,x,
829 silent=
830 site=
831 srcdir=
832 verbose=
833 x_includes=NONE
834 x_libraries=NONE
835
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir='${datarootdir}/info'
854 htmldir='${docdir}'
855 dvidir='${docdir}'
856 pdfdir='${docdir}'
857 psdir='${docdir}'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
861
862 ac_prev=
863 ac_dashdash=
864 for ac_option
865 do
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\$ac_option
869 ac_prev=
870 continue
871 fi
872
873 case $ac_option in
874 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 *) ac_optarg=yes ;;
876 esac
877
878 # Accept the important Cygnus configure options, so we can diagnose typos.
879
880 case $ac_dashdash$ac_option in
881 --)
882 ac_dashdash=yes ;;
883
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
885 ac_prev=bindir ;;
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887 bindir=$ac_optarg ;;
888
889 -build | --build | --buil | --bui | --bu)
890 ac_prev=build_alias ;;
891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892 build_alias=$ac_optarg ;;
893
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899 cache_file=$ac_optarg ;;
900
901 --config-cache | -C)
902 cache_file=config.cache ;;
903
904 -datadir | --datadir | --datadi | --datad)
905 ac_prev=datadir ;;
906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
907 datadir=$ac_optarg ;;
908
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
915
916 -disable-* | --disable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925 "enable_$ac_useropt"
926 "*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=no ;;
931
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
936
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
941
942 -enable-* | --enable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=\$ac_optarg ;;
957
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
965 exec_prefix=$ac_optarg ;;
966
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
969 with_gas=yes ;;
970
971 -help | --help | --hel | --he | -h)
972 ac_init_help=long ;;
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
977
978 -host | --host | --hos | --ho)
979 ac_prev=host_alias ;;
980 -host=* | --host=* | --hos=* | --ho=*)
981 host_alias=$ac_optarg ;;
982
983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984 ac_prev=htmldir ;;
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986 | --ht=*)
987 htmldir=$ac_optarg ;;
988
989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
994 includedir=$ac_optarg ;;
995
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
997 ac_prev=infodir ;;
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999 infodir=$ac_optarg ;;
1000
1001 -libdir | --libdir | --libdi | --libd)
1002 ac_prev=libdir ;;
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004 libdir=$ac_optarg ;;
1005
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
1011 libexecdir=$ac_optarg ;;
1012
1013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1017
1018 -localstatedir | --localstatedir | --localstatedi | --localstated \
1019 | --localstate | --localstat | --localsta | --localst | --locals)
1020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023 localstatedir=$ac_optarg ;;
1024
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026 ac_prev=mandir ;;
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028 mandir=$ac_optarg ;;
1029
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1032 with_fp=no ;;
1033
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n)
1036 no_create=yes ;;
1037
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040 no_recursion=yes ;;
1041
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049 oldincludedir=$ac_optarg ;;
1050
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052 ac_prev=prefix ;;
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054 prefix=$ac_optarg ;;
1055
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061 program_prefix=$ac_optarg ;;
1062
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068 program_suffix=$ac_optarg ;;
1069
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
1085 program_transform_name=$ac_optarg ;;
1086
1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088 ac_prev=pdfdir ;;
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1091
1092 -psdir | --psdir | --psdi | --psd | --ps)
1093 ac_prev=psdir ;;
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095 psdir=$ac_optarg ;;
1096
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1099 silent=yes ;;
1100
1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 ac_prev=sbindir ;;
1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 | --sbi=* | --sb=*)
1105 sbindir=$ac_optarg ;;
1106
1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109 | --sharedst | --shareds | --shared | --share | --shar \
1110 | --sha | --sh)
1111 ac_prev=sharedstatedir ;;
1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 | --sha=* | --sh=*)
1116 sharedstatedir=$ac_optarg ;;
1117
1118 -site | --site | --sit)
1119 ac_prev=site ;;
1120 -site=* | --site=* | --sit=*)
1121 site=$ac_optarg ;;
1122
1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 ac_prev=srcdir ;;
1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126 srcdir=$ac_optarg ;;
1127
1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129 | --syscon | --sysco | --sysc | --sys | --sy)
1130 ac_prev=sysconfdir ;;
1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133 sysconfdir=$ac_optarg ;;
1134
1135 -target | --target | --targe | --targ | --tar | --ta | --t)
1136 ac_prev=target_alias ;;
1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138 target_alias=$ac_optarg ;;
1139
1140 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141 verbose=yes ;;
1142
1143 -version | --version | --versio | --versi | --vers | -V)
1144 ac_init_version=: ;;
1145
1146 -with-* | --with-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1154 *"
1155 "with_$ac_useropt"
1156 "*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval with_$ac_useropt=\$ac_optarg ;;
1161
1162 -without-* | --without-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171 "with_$ac_useropt"
1172 "*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=no ;;
1177
1178 --x)
1179 # Obsolete; use --with-x.
1180 with_x=yes ;;
1181
1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183 | --x-incl | --x-inc | --x-in | --x-i)
1184 ac_prev=x_includes ;;
1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1187 x_includes=$ac_optarg ;;
1188
1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191 ac_prev=x_libraries ;;
1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1194 x_libraries=$ac_optarg ;;
1195
1196 -*) as_fn_error "unrecognized option: \`$ac_option'
1197 Try \`$0 --help' for more information."
1198 ;;
1199
1200 *=*)
1201 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202 # Reject names that are not valid shell variable names.
1203 case $ac_envvar in #(
1204 '' | [0-9]* | *[!_$as_cr_alnum]* )
1205 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1206 esac
1207 eval $ac_envvar=\$ac_optarg
1208 export $ac_envvar ;;
1209
1210 *)
1211 # FIXME: should be removed in autoconf 3.0.
1212 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1215 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1216 ;;
1217
1218 esac
1219 done
1220
1221 if test -n "$ac_prev"; then
1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1223 as_fn_error "missing argument to $ac_option"
1224 fi
1225
1226 if test -n "$ac_unrecognized_opts"; then
1227 case $enable_option_checking in
1228 no) ;;
1229 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1230 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231 esac
1232 fi
1233
1234 # Check all directory arguments for consistency.
1235 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236 datadir sysconfdir sharedstatedir localstatedir includedir \
1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238 libdir localedir mandir
1239 do
1240 eval ac_val=\$$ac_var
1241 # Remove trailing slashes.
1242 case $ac_val in
1243 */ )
1244 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245 eval $ac_var=\$ac_val;;
1246 esac
1247 # Be sure to have absolute directory names.
1248 case $ac_val in
1249 [\\/$]* | ?:[\\/]* ) continue;;
1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251 esac
1252 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1253 done
1254
1255 # There might be people who depend on the old broken behavior: `$host'
1256 # used to hold the argument of --host etc.
1257 # FIXME: To remove some day.
1258 build=$build_alias
1259 host=$host_alias
1260 target=$target_alias
1261
1262 # FIXME: To remove some day.
1263 if test "x$host_alias" != x; then
1264 if test "x$build_alias" = x; then
1265 cross_compiling=maybe
1266 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1267 If a cross compiler is detected then cross compile mode will be used." >&2
1268 elif test "x$build_alias" != "x$host_alias"; then
1269 cross_compiling=yes
1270 fi
1271 fi
1272
1273 ac_tool_prefix=
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276 test "$silent" = yes && exec 6>/dev/null
1277
1278
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 as_fn_error "working directory cannot be determined"
1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 as_fn_error "pwd does not report name of working directory"
1285
1286
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296 $as_echo X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)[^/].*/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\).*/{
1310 s//\1/
1311 q
1312 }
1313 s/.*/./; q'`
1314 srcdir=$ac_confdir
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 srcdir=..
1317 fi
1318 else
1319 ac_srcdir_defaulted=no
1320 fi
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1324 fi
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326 ac_abs_confdir=`(
1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1328 pwd)`
1329 # When building in place, set srcdir=.
1330 if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 srcdir=.
1332 fi
1333 # Remove unnecessary trailing slashes from srcdir.
1334 # Double slashes in file names in object file debugging info
1335 # mess up M-x gdb in Emacs.
1336 case $srcdir in
1337 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338 esac
1339 for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344 done
1345
1346 #
1347 # Report the --help message.
1348 #
1349 if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1352 cat <<_ACEOF
1353 \`configure' configures ld 2.28.51 to adapt to many kinds of systems.
1354
1355 Usage: $0 [OPTION]... [VAR=VALUE]...
1356
1357 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358 VAR=VALUE. See below for descriptions of some of the useful variables.
1359
1360 Defaults for the options are specified in brackets.
1361
1362 Configuration:
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
1367 -q, --quiet, --silent do not print \`checking...' messages
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372
1373 Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
1375 [$ac_default_prefix]
1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1377 [PREFIX]
1378
1379 By default, \`make install' will install all the files in
1380 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382 for instance \`--prefix=\$HOME'.
1383
1384 For better control, use the options below.
1385
1386 Fine tuning of the installation directories:
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
1401 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
1406 _ACEOF
1407
1408 cat <<\_ACEOF
1409
1410 Program names:
1411 --program-prefix=PREFIX prepend PREFIX to installed program names
1412 --program-suffix=SUFFIX append SUFFIX to installed program names
1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1414
1415 System types:
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1418 --target=TARGET configure for building compilers for TARGET [HOST]
1419 _ACEOF
1420 fi
1421
1422 if test -n "$ac_init_help"; then
1423 case $ac_init_help in
1424 short | recursive ) echo "Configuration of ld 2.28.51:";;
1425 esac
1426 cat <<\_ACEOF
1427
1428 Optional Features:
1429 --disable-option-checking ignore unrecognized --enable/--with options
1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1432 --disable-dependency-tracking speeds up one-time build
1433 --enable-dependency-tracking do not reject slow dependency extractors
1434 --enable-maintainer-mode enable make rules and dependencies not useful
1435 (and sometimes confusing) to the casual installer
1436 --enable-shared[=PKGS] build shared libraries [default=yes]
1437 --enable-static[=PKGS] build static libraries [default=yes]
1438 --enable-fast-install[=PKGS]
1439 optimize for fast installation [default=yes]
1440 --disable-libtool-lock avoid locking (might break parallel builds)
1441 --enable-plugins Enable support for plugins
1442 --disable-largefile omit support for large files
1443 --enable-targets alternative target configurations
1444 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1445 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1446 --enable-got=<type> GOT handling scheme (target, single, negative,
1447 multigot)
1448 --enable-compressed-debug-sections={all,ld,none}
1449 compress debug sections by default]
1450 --enable-relro enable -z relro in ELF linker by default
1451 --enable-werror treat compile warnings as errors
1452 --enable-build-warnings enable build-time compiler warnings
1453 --disable-nls do not use Native Language Support
1454 --disable-initfini-array do not use .init_array/.fini_array sections
1455
1456 Optional Packages:
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1459 --with-pic try to use only PIC/non-PIC objects [default=use
1460 both]
1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1462 --with-lib-path=dir1:dir2... set default LIB_PATH
1463 --with-sysroot=DIR Search for usr/lib et al within DIR.
1464
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CXX C++ compiler command
1474 CXXFLAGS C++ compiler flags
1475 CPP C preprocessor
1476 CXXCPP C++ preprocessor
1477 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1478 the first program found out of: `bison -y', `byacc', `yacc'.
1479 YFLAGS The list of arguments that will be passed by default to $YACC.
1480 This script will default YFLAGS to the empty string to avoid a
1481 default value of `-d' given by some make applications.
1482
1483 Use these variables to override the choices made by `configure' or to help
1484 it to find libraries and programs with nonstandard names/locations.
1485
1486 Report bugs to the package provider.
1487 _ACEOF
1488 ac_status=$?
1489 fi
1490
1491 if test "$ac_init_help" = "recursive"; then
1492 # If there are subdirs, report their specific --help.
1493 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494 test -d "$ac_dir" ||
1495 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496 continue
1497 ac_builddir=.
1498
1499 case "$ac_dir" in
1500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *)
1502 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508 esac ;;
1509 esac
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1514
1515 case $srcdir in
1516 .) # We are building in place.
1517 ac_srcdir=.
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
1521 ac_srcdir=$srcdir$ac_dir_suffix;
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1524 *) # Relative name.
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 esac
1529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f "$ac_srcdir/configure.gnu"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536 elif test -f "$ac_srcdir/configure"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure" --help=recursive
1539 else
1540 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 fi || ac_status=$?
1542 cd "$ac_pwd" || { ac_status=$?; break; }
1543 done
1544 fi
1545
1546 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then
1548 cat <<\_ACEOF
1549 ld configure 2.28.51
1550 generated by GNU Autoconf 2.64
1551
1552 Copyright (C) 2009 Free Software Foundation, Inc.
1553 This configure script is free software; the Free Software Foundation
1554 gives unlimited permission to copy, distribute and modify it.
1555 _ACEOF
1556 exit
1557 fi
1558
1559 ## ------------------------ ##
1560 ## Autoconf initialization. ##
1561 ## ------------------------ ##
1562
1563 # ac_fn_c_try_compile LINENO
1564 # --------------------------
1565 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_compile ()
1567 {
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext
1570 if { { ac_try="$ac_compile"
1571 case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_compile") 2>conftest.err
1578 ac_status=$?
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1583 fi
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest.$ac_objext; then :
1589 ac_retval=0
1590 else
1591 $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1593
1594 ac_retval=1
1595 fi
1596 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1597 return $ac_retval
1598
1599 } # ac_fn_c_try_compile
1600
1601 # ac_fn_c_try_link LINENO
1602 # -----------------------
1603 # Try to link conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_c_try_link ()
1605 {
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 rm -f conftest.$ac_objext conftest$ac_exeext
1608 if { { ac_try="$ac_link"
1609 case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_link") 2>conftest.err
1616 ac_status=$?
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1621 fi
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && {
1624 test -z "$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 } && test -s conftest$ac_exeext && {
1627 test "$cross_compiling" = yes ||
1628 $as_test_x conftest$ac_exeext
1629 }; then :
1630 ac_retval=0
1631 else
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1634
1635 ac_retval=1
1636 fi
1637 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1638 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1639 # interfere with the next link command; also delete a directory that is
1640 # left behind by Apple's compiler. We do this before executing the actions.
1641 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 return $ac_retval
1644
1645 } # ac_fn_c_try_link
1646
1647 # ac_fn_cxx_try_compile LINENO
1648 # ----------------------------
1649 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_cxx_try_compile ()
1651 {
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 rm -f conftest.$ac_objext
1654 if { { ac_try="$ac_compile"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_compile") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1667 fi
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && {
1670 test -z "$ac_cxx_werror_flag" ||
1671 test ! -s conftest.err
1672 } && test -s conftest.$ac_objext; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=1
1679 fi
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681 return $ac_retval
1682
1683 } # ac_fn_cxx_try_compile
1684
1685 # ac_fn_c_try_cpp LINENO
1686 # ----------------------
1687 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_cpp ()
1689 {
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if { { ac_try="$ac_cpp conftest.$ac_ext"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1699 ac_status=$?
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1704 fi
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } >/dev/null && {
1707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1708 test ! -s conftest.err
1709 }; then :
1710 ac_retval=0
1711 else
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1714
1715 ac_retval=1
1716 fi
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718 return $ac_retval
1719
1720 } # ac_fn_c_try_cpp
1721
1722 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1723 # -------------------------------------------------------
1724 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1725 # the include files in INCLUDES and setting the cache variable VAR
1726 # accordingly.
1727 ac_fn_c_check_header_mongrel ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 $as_echo_n "(cached) " >&6
1735 fi
1736 eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739 else
1740 # Is the header compilable?
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1742 $as_echo_n "checking $2 usability... " >&6; }
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 $4
1746 #include <$2>
1747 _ACEOF
1748 if ac_fn_c_try_compile "$LINENO"; then :
1749 ac_header_compiler=yes
1750 else
1751 ac_header_compiler=no
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1755 $as_echo "$ac_header_compiler" >&6; }
1756
1757 # Is the header present?
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1759 $as_echo_n "checking $2 presence... " >&6; }
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 #include <$2>
1763 _ACEOF
1764 if ac_fn_c_try_cpp "$LINENO"; then :
1765 ac_header_preproc=yes
1766 else
1767 ac_header_preproc=no
1768 fi
1769 rm -f conftest.err conftest.$ac_ext
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1771 $as_echo "$ac_header_preproc" >&6; }
1772
1773 # So? What about this header?
1774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1775 yes:no: )
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1777 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1779 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780 ;;
1781 no:yes:* )
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1783 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1785 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1787 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1789 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1791 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1792 ;;
1793 esac
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1797 $as_echo_n "(cached) " >&6
1798 else
1799 eval "$3=\$ac_header_compiler"
1800 fi
1801 eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 fi
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806
1807 } # ac_fn_c_check_header_mongrel
1808
1809 # ac_fn_c_try_run LINENO
1810 # ----------------------
1811 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1812 # that executables *can* be run.
1813 ac_fn_c_try_run ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if { { ac_try="$ac_link"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_link") 2>&5
1824 ac_status=$?
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1827 { { case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_try") 2>&5
1834 ac_status=$?
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; }; }; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: program exited with status $ac_status" >&5
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=$ac_status
1844 fi
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 return $ac_retval
1848
1849 } # ac_fn_c_try_run
1850
1851 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1852 # -------------------------------------------------------
1853 # Tests whether HEADER exists and can be compiled using the include files in
1854 # INCLUDES, setting the cache variable VAR accordingly.
1855 ac_fn_c_check_header_compile ()
1856 {
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861 $as_echo_n "(cached) " >&6
1862 else
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 $4
1866 #include <$2>
1867 _ACEOF
1868 if ac_fn_c_try_compile "$LINENO"; then :
1869 eval "$3=yes"
1870 else
1871 eval "$3=no"
1872 fi
1873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874 fi
1875 eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879
1880 } # ac_fn_c_check_header_compile
1881
1882 # ac_fn_c_check_func LINENO FUNC VAR
1883 # ----------------------------------
1884 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1885 ac_fn_c_check_func ()
1886 {
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 $as_echo_n "(cached) " >&6
1892 else
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1895 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1897 #define $2 innocuous_$2
1898
1899 /* System header to define __stub macros and hopefully few prototypes,
1900 which can conflict with char $2 (); below.
1901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1902 <limits.h> exists even on freestanding compilers. */
1903
1904 #ifdef __STDC__
1905 # include <limits.h>
1906 #else
1907 # include <assert.h>
1908 #endif
1909
1910 #undef $2
1911
1912 /* Override any GCC internal prototype to avoid an error.
1913 Use char because int might match the return type of a GCC
1914 builtin and then its argument prototype would still apply. */
1915 #ifdef __cplusplus
1916 extern "C"
1917 #endif
1918 char $2 ();
1919 /* The GNU C library defines this for functions which it implements
1920 to always fail with ENOSYS. Some functions are actually named
1921 something starting with __ and the normal name is an alias. */
1922 #if defined __stub_$2 || defined __stub___$2
1923 choke me
1924 #endif
1925
1926 int
1927 main ()
1928 {
1929 return $2 ();
1930 ;
1931 return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_link "$LINENO"; then :
1935 eval "$3=yes"
1936 else
1937 eval "$3=no"
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext \
1940 conftest$ac_exeext conftest.$ac_ext
1941 fi
1942 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946
1947 } # ac_fn_c_check_func
1948
1949 # ac_fn_cxx_try_cpp LINENO
1950 # ------------------------
1951 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1952 ac_fn_cxx_try_cpp ()
1953 {
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 if { { ac_try="$ac_cpp conftest.$ac_ext"
1956 case "(($ac_try" in
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1959 esac
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1963 ac_status=$?
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1968 fi
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } >/dev/null && {
1971 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1972 test ! -s conftest.err
1973 }; then :
1974 ac_retval=0
1975 else
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1978
1979 ac_retval=1
1980 fi
1981 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982 return $ac_retval
1983
1984 } # ac_fn_cxx_try_cpp
1985
1986 # ac_fn_cxx_try_link LINENO
1987 # -------------------------
1988 # Try to link conftest.$ac_ext, and return whether this succeeded.
1989 ac_fn_cxx_try_link ()
1990 {
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 rm -f conftest.$ac_objext conftest$ac_exeext
1993 if { { ac_try="$ac_link"
1994 case "(($ac_try" in
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1997 esac
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_link") 2>conftest.err
2001 ac_status=$?
2002 if test -s conftest.err; then
2003 grep -v '^ *+' conftest.err >conftest.er1
2004 cat conftest.er1 >&5
2005 mv -f conftest.er1 conftest.err
2006 fi
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; } && {
2009 test -z "$ac_cxx_werror_flag" ||
2010 test ! -s conftest.err
2011 } && test -s conftest$ac_exeext && {
2012 test "$cross_compiling" = yes ||
2013 $as_test_x conftest$ac_exeext
2014 }; then :
2015 ac_retval=0
2016 else
2017 $as_echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.$ac_ext >&5
2019
2020 ac_retval=1
2021 fi
2022 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2023 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2024 # interfere with the next link command; also delete a directory that is
2025 # left behind by Apple's compiler. We do this before executing the actions.
2026 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2027 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2028 return $ac_retval
2029
2030 } # ac_fn_cxx_try_link
2031
2032 # ac_fn_c_check_decl LINENO SYMBOL VAR
2033 # ------------------------------------
2034 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2035 ac_fn_c_check_decl ()
2036 {
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 as_decl_name=`echo $2|sed 's/ *(.*//'`
2039 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2041 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2042 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2043 $as_echo_n "(cached) " >&6
2044 else
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2047 $4
2048 int
2049 main ()
2050 {
2051 #ifndef $as_decl_name
2052 #ifdef __cplusplus
2053 (void) $as_decl_use;
2054 #else
2055 (void) $as_decl_name;
2056 #endif
2057 #endif
2058
2059 ;
2060 return 0;
2061 }
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064 eval "$3=yes"
2065 else
2066 eval "$3=no"
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 fi
2070 eval ac_res=\$$3
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2074
2075 } # ac_fn_c_check_decl
2076
2077 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2078 # --------------------------------------------
2079 # Tries to find the compile-time value of EXPR in a program that includes
2080 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2081 # computed
2082 ac_fn_c_compute_int ()
2083 {
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 if test "$cross_compiling" = yes; then
2086 # Depending upon the size, compute the lo and hi bounds.
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2089 $4
2090 int
2091 main ()
2092 {
2093 static int test_array [1 - 2 * !(($2) >= 0)];
2094 test_array [0] = 0
2095
2096 ;
2097 return 0;
2098 }
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101 ac_lo=0 ac_mid=0
2102 while :; do
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2105 $4
2106 int
2107 main ()
2108 {
2109 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2110 test_array [0] = 0
2111
2112 ;
2113 return 0;
2114 }
2115 _ACEOF
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117 ac_hi=$ac_mid; break
2118 else
2119 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2120 if test $ac_lo -le $ac_mid; then
2121 ac_lo= ac_hi=
2122 break
2123 fi
2124 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 done
2128 else
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2131 $4
2132 int
2133 main ()
2134 {
2135 static int test_array [1 - 2 * !(($2) < 0)];
2136 test_array [0] = 0
2137
2138 ;
2139 return 0;
2140 }
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143 ac_hi=-1 ac_mid=-1
2144 while :; do
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2147 $4
2148 int
2149 main ()
2150 {
2151 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2152 test_array [0] = 0
2153
2154 ;
2155 return 0;
2156 }
2157 _ACEOF
2158 if ac_fn_c_try_compile "$LINENO"; then :
2159 ac_lo=$ac_mid; break
2160 else
2161 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2162 if test $ac_mid -le $ac_hi; then
2163 ac_lo= ac_hi=
2164 break
2165 fi
2166 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2167 fi
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 done
2170 else
2171 ac_lo= ac_hi=
2172 fi
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 fi
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 # Binary search between lo and hi bounds.
2177 while test "x$ac_lo" != "x$ac_hi"; do
2178 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2181 $4
2182 int
2183 main ()
2184 {
2185 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2186 test_array [0] = 0
2187
2188 ;
2189 return 0;
2190 }
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193 ac_hi=$ac_mid
2194 else
2195 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2196 fi
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 done
2199 case $ac_lo in #((
2200 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2201 '') ac_retval=1 ;;
2202 esac
2203 else
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2206 $4
2207 static long int longval () { return $2; }
2208 static unsigned long int ulongval () { return $2; }
2209 #include <stdio.h>
2210 #include <stdlib.h>
2211 int
2212 main ()
2213 {
2214
2215 FILE *f = fopen ("conftest.val", "w");
2216 if (! f)
2217 return 1;
2218 if (($2) < 0)
2219 {
2220 long int i = longval ();
2221 if (i != ($2))
2222 return 1;
2223 fprintf (f, "%ld", i);
2224 }
2225 else
2226 {
2227 unsigned long int i = ulongval ();
2228 if (i != ($2))
2229 return 1;
2230 fprintf (f, "%lu", i);
2231 }
2232 /* Do not output a trailing newline, as this causes \r\n confusion
2233 on some platforms. */
2234 return ferror (f) || fclose (f) != 0;
2235
2236 ;
2237 return 0;
2238 }
2239 _ACEOF
2240 if ac_fn_c_try_run "$LINENO"; then :
2241 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2242 else
2243 ac_retval=1
2244 fi
2245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2246 conftest.$ac_objext conftest.beam conftest.$ac_ext
2247 rm -f conftest.val
2248
2249 fi
2250 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2251 return $ac_retval
2252
2253 } # ac_fn_c_compute_int
2254 cat >config.log <<_ACEOF
2255 This file contains any messages produced by compilers while
2256 running configure, to aid debugging if configure makes a mistake.
2257
2258 It was created by ld $as_me 2.28.51, which was
2259 generated by GNU Autoconf 2.64. Invocation command line was
2260
2261 $ $0 $@
2262
2263 _ACEOF
2264 exec 5>>config.log
2265 {
2266 cat <<_ASUNAME
2267 ## --------- ##
2268 ## Platform. ##
2269 ## --------- ##
2270
2271 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2272 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2273 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2274 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2275 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2276
2277 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2278 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2279
2280 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2281 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2282 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2283 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2284 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2285 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2286 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2287
2288 _ASUNAME
2289
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2292 do
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 $as_echo "PATH: $as_dir"
2296 done
2297 IFS=$as_save_IFS
2298
2299 } >&5
2300
2301 cat >&5 <<_ACEOF
2302
2303
2304 ## ----------- ##
2305 ## Core tests. ##
2306 ## ----------- ##
2307
2308 _ACEOF
2309
2310
2311 # Keep a trace of the command line.
2312 # Strip out --no-create and --no-recursion so they do not pile up.
2313 # Strip out --silent because we don't want to record it for future runs.
2314 # Also quote any args containing shell meta-characters.
2315 # Make two passes to allow for proper duplicate-argument suppression.
2316 ac_configure_args=
2317 ac_configure_args0=
2318 ac_configure_args1=
2319 ac_must_keep_next=false
2320 for ac_pass in 1 2
2321 do
2322 for ac_arg
2323 do
2324 case $ac_arg in
2325 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2327 | -silent | --silent | --silen | --sile | --sil)
2328 continue ;;
2329 *\'*)
2330 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2331 esac
2332 case $ac_pass in
2333 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2334 2)
2335 as_fn_append ac_configure_args1 " '$ac_arg'"
2336 if test $ac_must_keep_next = true; then
2337 ac_must_keep_next=false # Got value, back to normal.
2338 else
2339 case $ac_arg in
2340 *=* | --config-cache | -C | -disable-* | --disable-* \
2341 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2342 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2343 | -with-* | --with-* | -without-* | --without-* | --x)
2344 case "$ac_configure_args0 " in
2345 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2346 esac
2347 ;;
2348 -* ) ac_must_keep_next=true ;;
2349 esac
2350 fi
2351 as_fn_append ac_configure_args " '$ac_arg'"
2352 ;;
2353 esac
2354 done
2355 done
2356 { ac_configure_args0=; unset ac_configure_args0;}
2357 { ac_configure_args1=; unset ac_configure_args1;}
2358
2359 # When interrupted or exit'd, cleanup temporary files, and complete
2360 # config.log. We remove comments because anyway the quotes in there
2361 # would cause problems or look ugly.
2362 # WARNING: Use '\'' to represent an apostrophe within the trap.
2363 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2364 trap 'exit_status=$?
2365 # Save into config.log some information that might help in debugging.
2366 {
2367 echo
2368
2369 cat <<\_ASBOX
2370 ## ---------------- ##
2371 ## Cache variables. ##
2372 ## ---------------- ##
2373 _ASBOX
2374 echo
2375 # The following way of writing the cache mishandles newlines in values,
2376 (
2377 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2378 eval ac_val=\$$ac_var
2379 case $ac_val in #(
2380 *${as_nl}*)
2381 case $ac_var in #(
2382 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2383 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2384 esac
2385 case $ac_var in #(
2386 _ | IFS | as_nl) ;; #(
2387 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2388 *) { eval $ac_var=; unset $ac_var;} ;;
2389 esac ;;
2390 esac
2391 done
2392 (set) 2>&1 |
2393 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2394 *${as_nl}ac_space=\ *)
2395 sed -n \
2396 "s/'\''/'\''\\\\'\'''\''/g;
2397 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2398 ;; #(
2399 *)
2400 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2401 ;;
2402 esac |
2403 sort
2404 )
2405 echo
2406
2407 cat <<\_ASBOX
2408 ## ----------------- ##
2409 ## Output variables. ##
2410 ## ----------------- ##
2411 _ASBOX
2412 echo
2413 for ac_var in $ac_subst_vars
2414 do
2415 eval ac_val=\$$ac_var
2416 case $ac_val in
2417 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2418 esac
2419 $as_echo "$ac_var='\''$ac_val'\''"
2420 done | sort
2421 echo
2422
2423 if test -n "$ac_subst_files"; then
2424 cat <<\_ASBOX
2425 ## ------------------- ##
2426 ## File substitutions. ##
2427 ## ------------------- ##
2428 _ASBOX
2429 echo
2430 for ac_var in $ac_subst_files
2431 do
2432 eval ac_val=\$$ac_var
2433 case $ac_val in
2434 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2435 esac
2436 $as_echo "$ac_var='\''$ac_val'\''"
2437 done | sort
2438 echo
2439 fi
2440
2441 if test -s confdefs.h; then
2442 cat <<\_ASBOX
2443 ## ----------- ##
2444 ## confdefs.h. ##
2445 ## ----------- ##
2446 _ASBOX
2447 echo
2448 cat confdefs.h
2449 echo
2450 fi
2451 test "$ac_signal" != 0 &&
2452 $as_echo "$as_me: caught signal $ac_signal"
2453 $as_echo "$as_me: exit $exit_status"
2454 } >&5
2455 rm -f core *.core core.conftest.* &&
2456 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2457 exit $exit_status
2458 ' 0
2459 for ac_signal in 1 2 13 15; do
2460 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2461 done
2462 ac_signal=0
2463
2464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2465 rm -f -r conftest* confdefs.h
2466
2467 $as_echo "/* confdefs.h */" > confdefs.h
2468
2469 # Predefined preprocessor variables.
2470
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_NAME "$PACKAGE_NAME"
2473 _ACEOF
2474
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2477 _ACEOF
2478
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2481 _ACEOF
2482
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_STRING "$PACKAGE_STRING"
2485 _ACEOF
2486
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2489 _ACEOF
2490
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_URL "$PACKAGE_URL"
2493 _ACEOF
2494
2495
2496 # Let the site file select an alternate cache file if it wants to.
2497 # Prefer an explicitly selected file to automatically selected ones.
2498 ac_site_file1=NONE
2499 ac_site_file2=NONE
2500 if test -n "$CONFIG_SITE"; then
2501 ac_site_file1=$CONFIG_SITE
2502 elif test "x$prefix" != xNONE; then
2503 ac_site_file1=$prefix/share/config.site
2504 ac_site_file2=$prefix/etc/config.site
2505 else
2506 ac_site_file1=$ac_default_prefix/share/config.site
2507 ac_site_file2=$ac_default_prefix/etc/config.site
2508 fi
2509 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2510 do
2511 test "x$ac_site_file" = xNONE && continue
2512 if test -r "$ac_site_file"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2514 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2515 sed 's/^/| /' "$ac_site_file" >&5
2516 . "$ac_site_file"
2517 fi
2518 done
2519
2520 if test -r "$cache_file"; then
2521 # Some versions of bash will fail to source /dev/null (special
2522 # files actually), so we avoid doing that.
2523 if test -f "$cache_file"; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2525 $as_echo "$as_me: loading cache $cache_file" >&6;}
2526 case $cache_file in
2527 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2528 *) . "./$cache_file";;
2529 esac
2530 fi
2531 else
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2533 $as_echo "$as_me: creating cache $cache_file" >&6;}
2534 >$cache_file
2535 fi
2536
2537 # Check that the precious variables saved in the cache have kept the same
2538 # value.
2539 ac_cache_corrupted=false
2540 for ac_var in $ac_precious_vars; do
2541 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2542 eval ac_new_set=\$ac_env_${ac_var}_set
2543 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2544 eval ac_new_val=\$ac_env_${ac_var}_value
2545 case $ac_old_set,$ac_new_set in
2546 set,)
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2548 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2549 ac_cache_corrupted=: ;;
2550 ,set)
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2552 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2553 ac_cache_corrupted=: ;;
2554 ,);;
2555 *)
2556 if test "x$ac_old_val" != "x$ac_new_val"; then
2557 # differences in whitespace do not lead to failure.
2558 ac_old_val_w=`echo x $ac_old_val`
2559 ac_new_val_w=`echo x $ac_new_val`
2560 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2562 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2563 ac_cache_corrupted=:
2564 else
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2566 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2567 eval $ac_var=\$ac_old_val
2568 fi
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2570 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2572 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2573 fi;;
2574 esac
2575 # Pass precious variables to config.status.
2576 if test "$ac_new_set" = set; then
2577 case $ac_new_val in
2578 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2579 *) ac_arg=$ac_var=$ac_new_val ;;
2580 esac
2581 case " $ac_configure_args " in
2582 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2583 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2584 esac
2585 fi
2586 done
2587 if $ac_cache_corrupted; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2591 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2592 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2593 fi
2594 ## -------------------- ##
2595 ## Main body of script. ##
2596 ## -------------------- ##
2597
2598 ac_ext=c
2599 ac_cpp='$CPP $CPPFLAGS'
2600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2603
2604
2605
2606
2607
2608
2609
2610 ac_aux_dir=
2611 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2612 for ac_t in install-sh install.sh shtool; do
2613 if test -f "$ac_dir/$ac_t"; then
2614 ac_aux_dir=$ac_dir
2615 ac_install_sh="$ac_aux_dir/$ac_t -c"
2616 break 2
2617 fi
2618 done
2619 done
2620 if test -z "$ac_aux_dir"; then
2621 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2622 fi
2623
2624 # These three variables are undocumented and unsupported,
2625 # and are intended to be withdrawn in a future Autoconf release.
2626 # They can cause serious problems if a builder's source tree is in a directory
2627 # whose full name contains unusual characters.
2628 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2629 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2630 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2631
2632
2633 # Make sure we can run config.sub.
2634 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2635 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2636
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2638 $as_echo_n "checking build system type... " >&6; }
2639 if test "${ac_cv_build+set}" = set; then :
2640 $as_echo_n "(cached) " >&6
2641 else
2642 ac_build_alias=$build_alias
2643 test "x$ac_build_alias" = x &&
2644 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2645 test "x$ac_build_alias" = x &&
2646 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2647 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2648 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2649
2650 fi
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2652 $as_echo "$ac_cv_build" >&6; }
2653 case $ac_cv_build in
2654 *-*-*) ;;
2655 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2656 esac
2657 build=$ac_cv_build
2658 ac_save_IFS=$IFS; IFS='-'
2659 set x $ac_cv_build
2660 shift
2661 build_cpu=$1
2662 build_vendor=$2
2663 shift; shift
2664 # Remember, the first character of IFS is used to create $*,
2665 # except with old shells:
2666 build_os=$*
2667 IFS=$ac_save_IFS
2668 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2669
2670
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2672 $as_echo_n "checking host system type... " >&6; }
2673 if test "${ac_cv_host+set}" = set; then :
2674 $as_echo_n "(cached) " >&6
2675 else
2676 if test "x$host_alias" = x; then
2677 ac_cv_host=$ac_cv_build
2678 else
2679 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2680 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2681 fi
2682
2683 fi
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2685 $as_echo "$ac_cv_host" >&6; }
2686 case $ac_cv_host in
2687 *-*-*) ;;
2688 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2689 esac
2690 host=$ac_cv_host
2691 ac_save_IFS=$IFS; IFS='-'
2692 set x $ac_cv_host
2693 shift
2694 host_cpu=$1
2695 host_vendor=$2
2696 shift; shift
2697 # Remember, the first character of IFS is used to create $*,
2698 # except with old shells:
2699 host_os=$*
2700 IFS=$ac_save_IFS
2701 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2702
2703
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2705 $as_echo_n "checking target system type... " >&6; }
2706 if test "${ac_cv_target+set}" = set; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 if test "x$target_alias" = x; then
2710 ac_cv_target=$ac_cv_host
2711 else
2712 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2713 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2714 fi
2715
2716 fi
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2718 $as_echo "$ac_cv_target" >&6; }
2719 case $ac_cv_target in
2720 *-*-*) ;;
2721 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2722 esac
2723 target=$ac_cv_target
2724 ac_save_IFS=$IFS; IFS='-'
2725 set x $ac_cv_target
2726 shift
2727 target_cpu=$1
2728 target_vendor=$2
2729 shift; shift
2730 # Remember, the first character of IFS is used to create $*,
2731 # except with old shells:
2732 target_os=$*
2733 IFS=$ac_save_IFS
2734 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2735
2736
2737 # The aliases save the names the user supplied, while $host etc.
2738 # will get canonicalized.
2739 test -n "$target_alias" &&
2740 test "$program_prefix$program_suffix$program_transform_name" = \
2741 NONENONEs,x,x, &&
2742 program_prefix=${target_alias}-
2743
2744 ac_ext=c
2745 ac_cpp='$CPP $CPPFLAGS'
2746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749 if test -n "$ac_tool_prefix"; then
2750 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2751 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if test "${ac_cv_prog_CC+set}" = set; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC="$CC" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2762 do
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2767 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 break 2
2770 fi
2771 done
2772 done
2773 IFS=$as_save_IFS
2774
2775 fi
2776 fi
2777 CC=$ac_cv_prog_CC
2778 if test -n "$CC"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2780 $as_echo "$CC" >&6; }
2781 else
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2784 fi
2785
2786
2787 fi
2788 if test -z "$ac_cv_prog_CC"; then
2789 ac_ct_CC=$CC
2790 # Extract the first word of "gcc", so it can be a program name with args.
2791 set dummy gcc; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 if test -n "$ac_ct_CC"; then
2798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2802 do
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_ac_ct_CC="gcc"
2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811 done
2812 done
2813 IFS=$as_save_IFS
2814
2815 fi
2816 fi
2817 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2818 if test -n "$ac_ct_CC"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2820 $as_echo "$ac_ct_CC" >&6; }
2821 else
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2824 fi
2825
2826 if test "x$ac_ct_CC" = x; then
2827 CC=""
2828 else
2829 case $cross_compiling:$ac_tool_warned in
2830 yes:)
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2833 ac_tool_warned=yes ;;
2834 esac
2835 CC=$ac_ct_CC
2836 fi
2837 else
2838 CC="$ac_cv_prog_CC"
2839 fi
2840
2841 if test -z "$CC"; then
2842 if test -n "$ac_tool_prefix"; then
2843 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2844 set dummy ${ac_tool_prefix}cc; ac_word=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if test "${ac_cv_prog_CC+set}" = set; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 if test -n "$CC"; then
2851 ac_cv_prog_CC="$CC" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2860 ac_cv_prog_CC="${ac_tool_prefix}cc"
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2863 fi
2864 done
2865 done
2866 IFS=$as_save_IFS
2867
2868 fi
2869 fi
2870 CC=$ac_cv_prog_CC
2871 if test -n "$CC"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873 $as_echo "$CC" >&6; }
2874 else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2877 fi
2878
2879
2880 fi
2881 fi
2882 if test -z "$CC"; then
2883 # Extract the first word of "cc", so it can be a program name with args.
2884 set dummy cc; ac_word=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if test "${ac_cv_prog_CC+set}" = set; then :
2888 $as_echo_n "(cached) " >&6
2889 else
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 else
2893 ac_prog_rejected=no
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2902 ac_prog_rejected=yes
2903 continue
2904 fi
2905 ac_cv_prog_CC="cc"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2908 fi
2909 done
2910 done
2911 IFS=$as_save_IFS
2912
2913 if test $ac_prog_rejected = yes; then
2914 # We found a bogon in the path, so make sure we never use it.
2915 set dummy $ac_cv_prog_CC
2916 shift
2917 if test $# != 0; then
2918 # We chose a different compiler from the bogus one.
2919 # However, it has the same basename, so the bogon will be chosen
2920 # first if we set CC to just the basename; use the full file name.
2921 shift
2922 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2923 fi
2924 fi
2925 fi
2926 fi
2927 CC=$ac_cv_prog_CC
2928 if test -n "$CC"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2930 $as_echo "$CC" >&6; }
2931 else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2934 fi
2935
2936
2937 fi
2938 if test -z "$CC"; then
2939 if test -n "$ac_tool_prefix"; then
2940 for ac_prog in cl.exe
2941 do
2942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if test "${ac_cv_prog_CC+set}" = set; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2962 fi
2963 done
2964 done
2965 IFS=$as_save_IFS
2966
2967 fi
2968 fi
2969 CC=$ac_cv_prog_CC
2970 if test -n "$CC"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972 $as_echo "$CC" >&6; }
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 fi
2977
2978
2979 test -n "$CC" && break
2980 done
2981 fi
2982 if test -z "$CC"; then
2983 ac_ct_CC=$CC
2984 for ac_prog in cl.exe
2985 do
2986 # Extract the first word of "$ac_prog", so it can be a program name with args.
2987 set dummy $ac_prog; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2991 $as_echo_n "(cached) " >&6
2992 else
2993 if test -n "$ac_ct_CC"; then
2994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3003 ac_cv_prog_ac_ct_CC="$ac_prog"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3006 fi
3007 done
3008 done
3009 IFS=$as_save_IFS
3010
3011 fi
3012 fi
3013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3014 if test -n "$ac_ct_CC"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3016 $as_echo "$ac_ct_CC" >&6; }
3017 else
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 fi
3021
3022
3023 test -n "$ac_ct_CC" && break
3024 done
3025
3026 if test "x$ac_ct_CC" = x; then
3027 CC=""
3028 else
3029 case $cross_compiling:$ac_tool_warned in
3030 yes:)
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3033 ac_tool_warned=yes ;;
3034 esac
3035 CC=$ac_ct_CC
3036 fi
3037 fi
3038
3039 fi
3040
3041
3042 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 as_fn_error "no acceptable C compiler found in \$PATH
3045 See \`config.log' for more details." "$LINENO" 5; }
3046
3047 # Provide some information about the compiler.
3048 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3049 set X $ac_compile
3050 ac_compiler=$2
3051 for ac_option in --version -v -V -qversion; do
3052 { { ac_try="$ac_compiler $ac_option >&5"
3053 case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058 $as_echo "$ac_try_echo"; } >&5
3059 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3060 ac_status=$?
3061 if test -s conftest.err; then
3062 sed '10a\
3063 ... rest of stderr output deleted ...
3064 10q' conftest.err >conftest.er1
3065 cat conftest.er1 >&5
3066 rm -f conftest.er1 conftest.err
3067 fi
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }
3070 done
3071
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h. */
3074
3075 int
3076 main ()
3077 {
3078
3079 ;
3080 return 0;
3081 }
3082 _ACEOF
3083 ac_clean_files_save=$ac_clean_files
3084 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3085 # Try to create an executable without -o first, disregard a.out.
3086 # It will help us diagnose broken compilers, and finding out an intuition
3087 # of exeext.
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3089 $as_echo_n "checking for C compiler default output file name... " >&6; }
3090 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3091
3092 # The possible output files:
3093 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3094
3095 ac_rmfiles=
3096 for ac_file in $ac_files
3097 do
3098 case $ac_file in
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3100 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3101 esac
3102 done
3103 rm -f $ac_rmfiles
3104
3105 if { { ac_try="$ac_link_default"
3106 case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109 esac
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_link_default") 2>&5
3113 ac_status=$?
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; then :
3116 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3117 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3118 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3119 # so that the user can short-circuit this test for compilers unknown to
3120 # Autoconf.
3121 for ac_file in $ac_files ''
3122 do
3123 test -f "$ac_file" || continue
3124 case $ac_file in
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3126 ;;
3127 [ab].out )
3128 # We found the default executable, but exeext='' is most
3129 # certainly right.
3130 break;;
3131 *.* )
3132 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3133 then :; else
3134 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3135 fi
3136 # We set ac_cv_exeext here because the later test for it is not
3137 # safe: cross compilers may not add the suffix if given an `-o'
3138 # argument, so we may need to know it at that point already.
3139 # Even if this section looks crufty: it has the advantage of
3140 # actually working.
3141 break;;
3142 * )
3143 break;;
3144 esac
3145 done
3146 test "$ac_cv_exeext" = no && ac_cv_exeext=
3147
3148 else
3149 ac_file=''
3150 fi
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3152 $as_echo "$ac_file" >&6; }
3153 if test -z "$ac_file"; then :
3154 $as_echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3156
3157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159 { as_fn_set_status 77
3160 as_fn_error "C compiler cannot create executables
3161 See \`config.log' for more details." "$LINENO" 5; }; }
3162 fi
3163 ac_exeext=$ac_cv_exeext
3164
3165 # Check that the compiler produces executables we can run. If not, either
3166 # the compiler is broken, or we cross compile.
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3168 $as_echo_n "checking whether the C compiler works... " >&6; }
3169 # If not cross compiling, check that we can run a simple program.
3170 if test "$cross_compiling" != yes; then
3171 if { ac_try='./$ac_file'
3172 { { case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175 esac
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_try") 2>&5
3179 ac_status=$?
3180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181 test $ac_status = 0; }; }; then
3182 cross_compiling=no
3183 else
3184 if test "$cross_compiling" = maybe; then
3185 cross_compiling=yes
3186 else
3187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 as_fn_error "cannot run C compiled programs.
3190 If you meant to cross compile, use \`--host'.
3191 See \`config.log' for more details." "$LINENO" 5; }
3192 fi
3193 fi
3194 fi
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3196 $as_echo "yes" >&6; }
3197
3198 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3199 ac_clean_files=$ac_clean_files_save
3200 # Check that the compiler produces executables we can run. If not, either
3201 # the compiler is broken, or we cross compile.
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3203 $as_echo_n "checking whether we are cross compiling... " >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3205 $as_echo "$cross_compiling" >&6; }
3206
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3208 $as_echo_n "checking for suffix of executables... " >&6; }
3209 if { { ac_try="$ac_link"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 $as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_link") 2>&5
3217 ac_status=$?
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }; then :
3220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3221 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3222 # work properly (i.e., refer to `conftest.exe'), while it won't with
3223 # `rm'.
3224 for ac_file in conftest.exe conftest conftest.*; do
3225 test -f "$ac_file" || continue
3226 case $ac_file in
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3229 break;;
3230 * ) break;;
3231 esac
3232 done
3233 else
3234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error "cannot compute suffix of executables: cannot compile and link
3237 See \`config.log' for more details." "$LINENO" 5; }
3238 fi
3239 rm -f conftest$ac_cv_exeext
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3241 $as_echo "$ac_cv_exeext" >&6; }
3242
3243 rm -f conftest.$ac_ext
3244 EXEEXT=$ac_cv_exeext
3245 ac_exeext=$EXEEXT
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3247 $as_echo_n "checking for suffix of object files... " >&6; }
3248 if test "${ac_cv_objext+set}" = set; then :
3249 $as_echo_n "(cached) " >&6
3250 else
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3253
3254 int
3255 main ()
3256 {
3257
3258 ;
3259 return 0;
3260 }
3261 _ACEOF
3262 rm -f conftest.o conftest.obj
3263 if { { ac_try="$ac_compile"
3264 case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267 esac
3268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269 $as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_compile") 2>&5
3271 ac_status=$?
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }; then :
3274 for ac_file in conftest.o conftest.obj conftest.*; do
3275 test -f "$ac_file" || continue;
3276 case $ac_file in
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3278 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3279 break;;
3280 esac
3281 done
3282 else
3283 $as_echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3285
3286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288 as_fn_error "cannot compute suffix of object files: cannot compile
3289 See \`config.log' for more details." "$LINENO" 5; }
3290 fi
3291 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3292 fi
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3294 $as_echo "$ac_cv_objext" >&6; }
3295 OBJEXT=$ac_cv_objext
3296 ac_objext=$OBJEXT
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3298 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3299 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3300 $as_echo_n "(cached) " >&6
3301 else
3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303 /* end confdefs.h. */
3304
3305 int
3306 main ()
3307 {
3308 #ifndef __GNUC__
3309 choke me
3310 #endif
3311
3312 ;
3313 return 0;
3314 }
3315 _ACEOF
3316 if ac_fn_c_try_compile "$LINENO"; then :
3317 ac_compiler_gnu=yes
3318 else
3319 ac_compiler_gnu=no
3320 fi
3321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3322 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3323
3324 fi
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3326 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3327 if test $ac_compiler_gnu = yes; then
3328 GCC=yes
3329 else
3330 GCC=
3331 fi
3332 ac_test_CFLAGS=${CFLAGS+set}
3333 ac_save_CFLAGS=$CFLAGS
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3335 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3336 if test "${ac_cv_prog_cc_g+set}" = set; then :
3337 $as_echo_n "(cached) " >&6
3338 else
3339 ac_save_c_werror_flag=$ac_c_werror_flag
3340 ac_c_werror_flag=yes
3341 ac_cv_prog_cc_g=no
3342 CFLAGS="-g"
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3345
3346 int
3347 main ()
3348 {
3349
3350 ;
3351 return 0;
3352 }
3353 _ACEOF
3354 if ac_fn_c_try_compile "$LINENO"; then :
3355 ac_cv_prog_cc_g=yes
3356 else
3357 CFLAGS=""
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h. */
3360
3361 int
3362 main ()
3363 {
3364
3365 ;
3366 return 0;
3367 }
3368 _ACEOF
3369 if ac_fn_c_try_compile "$LINENO"; then :
3370
3371 else
3372 ac_c_werror_flag=$ac_save_c_werror_flag
3373 CFLAGS="-g"
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h. */
3376
3377 int
3378 main ()
3379 {
3380
3381 ;
3382 return 0;
3383 }
3384 _ACEOF
3385 if ac_fn_c_try_compile "$LINENO"; then :
3386 ac_cv_prog_cc_g=yes
3387 fi
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 fi
3390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391 fi
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 ac_c_werror_flag=$ac_save_c_werror_flag
3394 fi
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3396 $as_echo "$ac_cv_prog_cc_g" >&6; }
3397 if test "$ac_test_CFLAGS" = set; then
3398 CFLAGS=$ac_save_CFLAGS
3399 elif test $ac_cv_prog_cc_g = yes; then
3400 if test "$GCC" = yes; then
3401 CFLAGS="-g -O2"
3402 else
3403 CFLAGS="-g"
3404 fi
3405 else
3406 if test "$GCC" = yes; then
3407 CFLAGS="-O2"
3408 else
3409 CFLAGS=
3410 fi
3411 fi
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3413 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3414 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3415 $as_echo_n "(cached) " >&6
3416 else
3417 ac_cv_prog_cc_c89=no
3418 ac_save_CC=$CC
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3421 #include <stdarg.h>
3422 #include <stdio.h>
3423 #include <sys/types.h>
3424 #include <sys/stat.h>
3425 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3426 struct buf { int x; };
3427 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3428 static char *e (p, i)
3429 char **p;
3430 int i;
3431 {
3432 return p[i];
3433 }
3434 static char *f (char * (*g) (char **, int), char **p, ...)
3435 {
3436 char *s;
3437 va_list v;
3438 va_start (v,p);
3439 s = g (p, va_arg (v,int));
3440 va_end (v);
3441 return s;
3442 }
3443
3444 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3445 function prototypes and stuff, but not '\xHH' hex character constants.
3446 These don't provoke an error unfortunately, instead are silently treated
3447 as 'x'. The following induces an error, until -std is added to get
3448 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3449 array size at least. It's necessary to write '\x00'==0 to get something
3450 that's true only with -std. */
3451 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3452
3453 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3454 inside strings and character constants. */
3455 #define FOO(x) 'x'
3456 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3457
3458 int test (int i, double x);
3459 struct s1 {int (*f) (int a);};
3460 struct s2 {int (*f) (double a);};
3461 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3462 int argc;
3463 char **argv;
3464 int
3465 main ()
3466 {
3467 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3468 ;
3469 return 0;
3470 }
3471 _ACEOF
3472 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3473 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3474 do
3475 CC="$ac_save_CC $ac_arg"
3476 if ac_fn_c_try_compile "$LINENO"; then :
3477 ac_cv_prog_cc_c89=$ac_arg
3478 fi
3479 rm -f core conftest.err conftest.$ac_objext
3480 test "x$ac_cv_prog_cc_c89" != "xno" && break
3481 done
3482 rm -f conftest.$ac_ext
3483 CC=$ac_save_CC
3484
3485 fi
3486 # AC_CACHE_VAL
3487 case "x$ac_cv_prog_cc_c89" in
3488 x)
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3490 $as_echo "none needed" >&6; } ;;
3491 xno)
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3493 $as_echo "unsupported" >&6; } ;;
3494 *)
3495 CC="$CC $ac_cv_prog_cc_c89"
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3497 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3498 esac
3499 if test "x$ac_cv_prog_cc_c89" != xno; then :
3500
3501 fi
3502
3503 ac_ext=c
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508
3509
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3511 $as_echo_n "checking for library containing strerror... " >&6; }
3512 if test "${ac_cv_search_strerror+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 ac_func_search_save_LIBS=$LIBS
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3518
3519 /* Override any GCC internal prototype to avoid an error.
3520 Use char because int might match the return type of a GCC
3521 builtin and then its argument prototype would still apply. */
3522 #ifdef __cplusplus
3523 extern "C"
3524 #endif
3525 char strerror ();
3526 int
3527 main ()
3528 {
3529 return strerror ();
3530 ;
3531 return 0;
3532 }
3533 _ACEOF
3534 for ac_lib in '' cposix; do
3535 if test -z "$ac_lib"; then
3536 ac_res="none required"
3537 else
3538 ac_res=-l$ac_lib
3539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3540 fi
3541 if ac_fn_c_try_link "$LINENO"; then :
3542 ac_cv_search_strerror=$ac_res
3543 fi
3544 rm -f core conftest.err conftest.$ac_objext \
3545 conftest$ac_exeext
3546 if test "${ac_cv_search_strerror+set}" = set; then :
3547 break
3548 fi
3549 done
3550 if test "${ac_cv_search_strerror+set}" = set; then :
3551
3552 else
3553 ac_cv_search_strerror=no
3554 fi
3555 rm conftest.$ac_ext
3556 LIBS=$ac_func_search_save_LIBS
3557 fi
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3559 $as_echo "$ac_cv_search_strerror" >&6; }
3560 ac_res=$ac_cv_search_strerror
3561 if test "$ac_res" != no; then :
3562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3563
3564 fi
3565
3566
3567 am__api_version='1.11'
3568
3569 # Find a good install program. We prefer a C program (faster),
3570 # so one script is as good as another. But avoid the broken or
3571 # incompatible versions:
3572 # SysV /etc/install, /usr/sbin/install
3573 # SunOS /usr/etc/install
3574 # IRIX /sbin/install
3575 # AIX /bin/install
3576 # AmigaOS /C/install, which installs bootblocks on floppy discs
3577 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3578 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3579 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3580 # OS/2's system install, which has a completely different semantic
3581 # ./install, which can be erroneously created by make from ./install.sh.
3582 # Reject install programs that cannot install multiple files.
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3584 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3585 if test -z "$INSTALL"; then
3586 if test "${ac_cv_path_install+set}" = set; then :
3587 $as_echo_n "(cached) " >&6
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3591 do
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 # Account for people who put trailing slashes in PATH elements.
3595 case $as_dir/ in #((
3596 ./ | .// | /[cC]/* | \
3597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3598 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3599 /usr/ucb/* ) ;;
3600 *)
3601 # OSF1 and SCO ODT 3.0 have their own names for install.
3602 # Don't use installbsd from OSF since it installs stuff as root
3603 # by default.
3604 for ac_prog in ginstall scoinst install; do
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3607 if test $ac_prog = install &&
3608 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3609 # AIX install. It has an incompatible calling convention.
3610 :
3611 elif test $ac_prog = install &&
3612 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3613 # program-specific install script used by HP pwplus--don't use.
3614 :
3615 else
3616 rm -rf conftest.one conftest.two conftest.dir
3617 echo one > conftest.one
3618 echo two > conftest.two
3619 mkdir conftest.dir
3620 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3621 test -s conftest.one && test -s conftest.two &&
3622 test -s conftest.dir/conftest.one &&
3623 test -s conftest.dir/conftest.two
3624 then
3625 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3626 break 3
3627 fi
3628 fi
3629 fi
3630 done
3631 done
3632 ;;
3633 esac
3634
3635 done
3636 IFS=$as_save_IFS
3637
3638 rm -rf conftest.one conftest.two conftest.dir
3639
3640 fi
3641 if test "${ac_cv_path_install+set}" = set; then
3642 INSTALL=$ac_cv_path_install
3643 else
3644 # As a last resort, use the slow shell script. Don't cache a
3645 # value for INSTALL within a source directory, because that will
3646 # break other packages using the cache if that directory is
3647 # removed, or if the value is a relative name.
3648 INSTALL=$ac_install_sh
3649 fi
3650 fi
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3652 $as_echo "$INSTALL" >&6; }
3653
3654 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3655 # It thinks the first close brace ends the variable substitution.
3656 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3657
3658 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3659
3660 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3661
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3663 $as_echo_n "checking whether build environment is sane... " >&6; }
3664 # Just in case
3665 sleep 1
3666 echo timestamp > conftest.file
3667 # Reject unsafe characters in $srcdir or the absolute working directory
3668 # name. Accept space and tab only in the latter.
3669 am_lf='
3670 '
3671 case `pwd` in
3672 *[\\\"\#\$\&\'\`$am_lf]*)
3673 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3674 esac
3675 case $srcdir in
3676 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3677 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3678 esac
3679
3680 # Do `set' in a subshell so we don't clobber the current shell's
3681 # arguments. Must try -L first in case configure is actually a
3682 # symlink; some systems play weird games with the mod time of symlinks
3683 # (eg FreeBSD returns the mod time of the symlink's containing
3684 # directory).
3685 if (
3686 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3687 if test "$*" = "X"; then
3688 # -L didn't work.
3689 set X `ls -t "$srcdir/configure" conftest.file`
3690 fi
3691 rm -f conftest.file
3692 if test "$*" != "X $srcdir/configure conftest.file" \
3693 && test "$*" != "X conftest.file $srcdir/configure"; then
3694
3695 # If neither matched, then we have a broken ls. This can happen
3696 # if, for instance, CONFIG_SHELL is bash and it inherits a
3697 # broken ls alias from the environment. This has actually
3698 # happened. Such a system could not be considered "sane".
3699 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3700 alias in your environment" "$LINENO" 5
3701 fi
3702
3703 test "$2" = conftest.file
3704 )
3705 then
3706 # Ok.
3707 :
3708 else
3709 as_fn_error "newly created file is older than distributed files!
3710 Check your system clock" "$LINENO" 5
3711 fi
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3713 $as_echo "yes" >&6; }
3714 test "$program_prefix" != NONE &&
3715 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3716 # Use a double $ so make ignores it.
3717 test "$program_suffix" != NONE &&
3718 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3719 # Double any \ or $.
3720 # By default was `s,x,x', remove it if useless.
3721 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3722 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3723
3724 # expand $ac_aux_dir to an absolute path
3725 am_aux_dir=`cd $ac_aux_dir && pwd`
3726
3727 if test x"${MISSING+set}" != xset; then
3728 case $am_aux_dir in
3729 *\ * | *\ *)
3730 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3731 *)
3732 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3733 esac
3734 fi
3735 # Use eval to expand $SHELL
3736 if eval "$MISSING --run true"; then
3737 am_missing_run="$MISSING --run "
3738 else
3739 am_missing_run=
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3741 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3742 fi
3743
3744 if test x"${install_sh}" != xset; then
3745 case $am_aux_dir in
3746 *\ * | *\ *)
3747 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3748 *)
3749 install_sh="\${SHELL} $am_aux_dir/install-sh"
3750 esac
3751 fi
3752
3753 # Installed binaries are usually stripped using `strip' when the user
3754 # run `make install-strip'. However `strip' might not be the right
3755 # tool to use in cross-compilation environments, therefore Automake
3756 # will honor the `STRIP' environment variable to overrule this program.
3757 if test "$cross_compiling" != no; then
3758 if test -n "$ac_tool_prefix"; then
3759 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3760 set dummy ${ac_tool_prefix}strip; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if test "${ac_cv_prog_STRIP+set}" = set; then :
3764 $as_echo_n "(cached) " >&6
3765 else
3766 if test -n "$STRIP"; then
3767 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3776 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 break 2
3779 fi
3780 done
3781 done
3782 IFS=$as_save_IFS
3783
3784 fi
3785 fi
3786 STRIP=$ac_cv_prog_STRIP
3787 if test -n "$STRIP"; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3789 $as_echo "$STRIP" >&6; }
3790 else
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3793 fi
3794
3795
3796 fi
3797 if test -z "$ac_cv_prog_STRIP"; then
3798 ac_ct_STRIP=$STRIP
3799 # Extract the first word of "strip", so it can be a program name with args.
3800 set dummy strip; ac_word=$2
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 $as_echo_n "checking for $ac_word... " >&6; }
3803 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
3805 else
3806 if test -n "$ac_ct_STRIP"; then
3807 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3808 else
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3811 do
3812 IFS=$as_save_IFS
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3816 ac_cv_prog_ac_ct_STRIP="strip"
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 break 2
3819 fi
3820 done
3821 done
3822 IFS=$as_save_IFS
3823
3824 fi
3825 fi
3826 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3827 if test -n "$ac_ct_STRIP"; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3829 $as_echo "$ac_ct_STRIP" >&6; }
3830 else
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 $as_echo "no" >&6; }
3833 fi
3834
3835 if test "x$ac_ct_STRIP" = x; then
3836 STRIP=":"
3837 else
3838 case $cross_compiling:$ac_tool_warned in
3839 yes:)
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3842 ac_tool_warned=yes ;;
3843 esac
3844 STRIP=$ac_ct_STRIP
3845 fi
3846 else
3847 STRIP="$ac_cv_prog_STRIP"
3848 fi
3849
3850 fi
3851 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3852
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3854 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3855 if test -z "$MKDIR_P"; then
3856 if test "${ac_cv_path_mkdir+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
3858 else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3861 do
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_prog in mkdir gmkdir; do
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3867 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3868 'mkdir (GNU coreutils) '* | \
3869 'mkdir (coreutils) '* | \
3870 'mkdir (fileutils) '4.1*)
3871 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3872 break 3;;
3873 esac
3874 done
3875 done
3876 done
3877 IFS=$as_save_IFS
3878
3879 fi
3880
3881 if test "${ac_cv_path_mkdir+set}" = set; then
3882 MKDIR_P="$ac_cv_path_mkdir -p"
3883 else
3884 # As a last resort, use the slow shell script. Don't cache a
3885 # value for MKDIR_P within a source directory, because that will
3886 # break other packages using the cache if that directory is
3887 # removed, or if the value is a relative name.
3888 test -d ./--version && rmdir ./--version
3889 MKDIR_P="$ac_install_sh -d"
3890 fi
3891 fi
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3893 $as_echo "$MKDIR_P" >&6; }
3894
3895 mkdir_p="$MKDIR_P"
3896 case $mkdir_p in
3897 [\\/$]* | ?:[\\/]*) ;;
3898 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3899 esac
3900
3901 for ac_prog in gawk mawk nawk awk
3902 do
3903 # Extract the first word of "$ac_prog", so it can be a program name with args.
3904 set dummy $ac_prog; ac_word=$2
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3906 $as_echo_n "checking for $ac_word... " >&6; }
3907 if test "${ac_cv_prog_AWK+set}" = set; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 if test -n "$AWK"; then
3911 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3912 else
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH
3915 do
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3920 ac_cv_prog_AWK="$ac_prog"
3921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 break 2
3923 fi
3924 done
3925 done
3926 IFS=$as_save_IFS
3927
3928 fi
3929 fi
3930 AWK=$ac_cv_prog_AWK
3931 if test -n "$AWK"; then
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3933 $as_echo "$AWK" >&6; }
3934 else
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936 $as_echo "no" >&6; }
3937 fi
3938
3939
3940 test -n "$AWK" && break
3941 done
3942
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3944 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3945 set x ${MAKE-make}
3946 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3947 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3948 $as_echo_n "(cached) " >&6
3949 else
3950 cat >conftest.make <<\_ACEOF
3951 SHELL = /bin/sh
3952 all:
3953 @echo '@@@%%%=$(MAKE)=@@@%%%'
3954 _ACEOF
3955 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3956 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3957 *@@@%%%=?*=@@@%%%*)
3958 eval ac_cv_prog_make_${ac_make}_set=yes;;
3959 *)
3960 eval ac_cv_prog_make_${ac_make}_set=no;;
3961 esac
3962 rm -f conftest.make
3963 fi
3964 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3966 $as_echo "yes" >&6; }
3967 SET_MAKE=
3968 else
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3971 SET_MAKE="MAKE=${MAKE-make}"
3972 fi
3973
3974 rm -rf .tst 2>/dev/null
3975 mkdir .tst 2>/dev/null
3976 if test -d .tst; then
3977 am__leading_dot=.
3978 else
3979 am__leading_dot=_
3980 fi
3981 rmdir .tst 2>/dev/null
3982
3983 DEPDIR="${am__leading_dot}deps"
3984
3985 ac_config_commands="$ac_config_commands depfiles"
3986
3987
3988 am_make=${MAKE-make}
3989 cat > confinc << 'END'
3990 am__doit:
3991 @echo this is the am__doit target
3992 .PHONY: am__doit
3993 END
3994 # If we don't find an include directive, just comment out the code.
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3996 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3997 am__include="#"
3998 am__quote=
3999 _am_result=none
4000 # First try GNU make style include.
4001 echo "include confinc" > confmf
4002 # Ignore all kinds of additional output from `make'.
4003 case `$am_make -s -f confmf 2> /dev/null` in #(
4004 *the\ am__doit\ target*)
4005 am__include=include
4006 am__quote=
4007 _am_result=GNU
4008 ;;
4009 esac
4010 # Now try BSD make style include.
4011 if test "$am__include" = "#"; then
4012 echo '.include "confinc"' > confmf
4013 case `$am_make -s -f confmf 2> /dev/null` in #(
4014 *the\ am__doit\ target*)
4015 am__include=.include
4016 am__quote="\""
4017 _am_result=BSD
4018 ;;
4019 esac
4020 fi
4021
4022
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4024 $as_echo "$_am_result" >&6; }
4025 rm -f confinc confmf
4026
4027 # Check whether --enable-dependency-tracking was given.
4028 if test "${enable_dependency_tracking+set}" = set; then :
4029 enableval=$enable_dependency_tracking;
4030 fi
4031
4032 if test "x$enable_dependency_tracking" != xno; then
4033 am_depcomp="$ac_aux_dir/depcomp"
4034 AMDEPBACKSLASH='\'
4035 am__nodep='_no'
4036 fi
4037 if test "x$enable_dependency_tracking" != xno; then
4038 AMDEP_TRUE=
4039 AMDEP_FALSE='#'
4040 else
4041 AMDEP_TRUE='#'
4042 AMDEP_FALSE=
4043 fi
4044
4045
4046 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4047 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4048 # is not polluted with repeated "-I."
4049 am__isrc=' -I$(srcdir)'
4050 # test to see if srcdir already configured
4051 if test -f $srcdir/config.status; then
4052 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4053 fi
4054 fi
4055
4056 # test whether we have cygpath
4057 if test -z "$CYGPATH_W"; then
4058 if (cygpath --version) >/dev/null 2>/dev/null; then
4059 CYGPATH_W='cygpath -w'
4060 else
4061 CYGPATH_W=echo
4062 fi
4063 fi
4064
4065
4066 # Define the identity of the package.
4067 PACKAGE='ld'
4068 VERSION='2.28.51'
4069
4070
4071 cat >>confdefs.h <<_ACEOF
4072 #define PACKAGE "$PACKAGE"
4073 _ACEOF
4074
4075
4076 cat >>confdefs.h <<_ACEOF
4077 #define VERSION "$VERSION"
4078 _ACEOF
4079
4080 # Some tools Automake needs.
4081
4082 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4083
4084
4085 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4086
4087
4088 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4089
4090
4091 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4092
4093
4094 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4095
4096 # We need awk for the "check" target. The system "awk" is bad on
4097 # some platforms.
4098 # Always define AMTAR for backward compatibility. Yes, it's still used
4099 # in the wild :-( We should find a proper way to deprecate it ...
4100 AMTAR='$${TAR-tar}'
4101
4102 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4103
4104
4105
4106
4107 depcc="$CC" am_compiler_list=
4108
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4110 $as_echo_n "checking dependency style of $depcc... " >&6; }
4111 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4112 $as_echo_n "(cached) " >&6
4113 else
4114 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4115 # We make a subdir and do the tests there. Otherwise we can end up
4116 # making bogus files that we don't know about and never remove. For
4117 # instance it was reported that on HP-UX the gcc test will end up
4118 # making a dummy file named `D' -- because `-MD' means `put the output
4119 # in D'.
4120 rm -rf conftest.dir
4121 mkdir conftest.dir
4122 # Copy depcomp to subdir because otherwise we won't find it if we're
4123 # using a relative directory.
4124 cp "$am_depcomp" conftest.dir
4125 cd conftest.dir
4126 # We will build objects and dependencies in a subdirectory because
4127 # it helps to detect inapplicable dependency modes. For instance
4128 # both Tru64's cc and ICC support -MD to output dependencies as a
4129 # side effect of compilation, but ICC will put the dependencies in
4130 # the current directory while Tru64 will put them in the object
4131 # directory.
4132 mkdir sub
4133
4134 am_cv_CC_dependencies_compiler_type=none
4135 if test "$am_compiler_list" = ""; then
4136 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4137 fi
4138 am__universal=false
4139 case " $depcc " in #(
4140 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4141 esac
4142
4143 for depmode in $am_compiler_list; do
4144 # Setup a source with many dependencies, because some compilers
4145 # like to wrap large dependency lists on column 80 (with \), and
4146 # we should not choose a depcomp mode which is confused by this.
4147 #
4148 # We need to recreate these files for each test, as the compiler may
4149 # overwrite some of them when testing with obscure command lines.
4150 # This happens at least with the AIX C compiler.
4151 : > sub/conftest.c
4152 for i in 1 2 3 4 5 6; do
4153 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4154 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4155 # Solaris 8's {/usr,}/bin/sh.
4156 touch sub/conftst$i.h
4157 done
4158 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4159
4160 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4161 # mode. It turns out that the SunPro C++ compiler does not properly
4162 # handle `-M -o', and we need to detect this. Also, some Intel
4163 # versions had trouble with output in subdirs
4164 am__obj=sub/conftest.${OBJEXT-o}
4165 am__minus_obj="-o $am__obj"
4166 case $depmode in
4167 gcc)
4168 # This depmode causes a compiler race in universal mode.
4169 test "$am__universal" = false || continue
4170 ;;
4171 nosideeffect)
4172 # after this tag, mechanisms are not by side-effect, so they'll
4173 # only be used when explicitly requested
4174 if test "x$enable_dependency_tracking" = xyes; then
4175 continue
4176 else
4177 break
4178 fi
4179 ;;
4180 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4181 # This compiler won't grok `-c -o', but also, the minuso test has
4182 # not run yet. These depmodes are late enough in the game, and
4183 # so weak that their functioning should not be impacted.
4184 am__obj=conftest.${OBJEXT-o}
4185 am__minus_obj=
4186 ;;
4187 none) break ;;
4188 esac
4189 if depmode=$depmode \
4190 source=sub/conftest.c object=$am__obj \
4191 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4192 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4193 >/dev/null 2>conftest.err &&
4194 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4195 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4196 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4197 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4198 # icc doesn't choke on unknown options, it will just issue warnings
4199 # or remarks (even with -Werror). So we grep stderr for any message
4200 # that says an option was ignored or not supported.
4201 # When given -MP, icc 7.0 and 7.1 complain thusly:
4202 # icc: Command line warning: ignoring option '-M'; no argument required
4203 # The diagnosis changed in icc 8.0:
4204 # icc: Command line remark: option '-MP' not supported
4205 if (grep 'ignoring option' conftest.err ||
4206 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4207 am_cv_CC_dependencies_compiler_type=$depmode
4208 break
4209 fi
4210 fi
4211 done
4212
4213 cd ..
4214 rm -rf conftest.dir
4215 else
4216 am_cv_CC_dependencies_compiler_type=none
4217 fi
4218
4219 fi
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4221 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4222 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4223
4224 if
4225 test "x$enable_dependency_tracking" != xno \
4226 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4227 am__fastdepCC_TRUE=
4228 am__fastdepCC_FALSE='#'
4229 else
4230 am__fastdepCC_TRUE='#'
4231 am__fastdepCC_FALSE=
4232 fi
4233
4234
4235
4236
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4238 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4239 # Check whether --enable-maintainer-mode was given.
4240 if test "${enable_maintainer_mode+set}" = set; then :
4241 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4242 else
4243 USE_MAINTAINER_MODE=no
4244 fi
4245
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4247 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4248 if test $USE_MAINTAINER_MODE = yes; then
4249 MAINTAINER_MODE_TRUE=
4250 MAINTAINER_MODE_FALSE='#'
4251 else
4252 MAINTAINER_MODE_TRUE='#'
4253 MAINTAINER_MODE_FALSE=
4254 fi
4255
4256 MAINT=$MAINTAINER_MODE_TRUE
4257
4258
4259
4260 ac_ext=c
4261 ac_cpp='$CPP $CPPFLAGS'
4262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265 if test -n "$ac_tool_prefix"; then
4266 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4267 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269 $as_echo_n "checking for $ac_word... " >&6; }
4270 if test "${ac_cv_prog_CC+set}" = set; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 if test -n "$CC"; then
4274 ac_cv_prog_CC="$CC" # Let the user override the test.
4275 else
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH
4278 do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 break 2
4286 fi
4287 done
4288 done
4289 IFS=$as_save_IFS
4290
4291 fi
4292 fi
4293 CC=$ac_cv_prog_CC
4294 if test -n "$CC"; then
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4296 $as_echo "$CC" >&6; }
4297 else
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 $as_echo "no" >&6; }
4300 fi
4301
4302
4303 fi
4304 if test -z "$ac_cv_prog_CC"; then
4305 ac_ct_CC=$CC
4306 # Extract the first word of "gcc", so it can be a program name with args.
4307 set dummy gcc; ac_word=$2
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309 $as_echo_n "checking for $ac_word... " >&6; }
4310 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4311 $as_echo_n "(cached) " >&6
4312 else
4313 if test -n "$ac_ct_CC"; then
4314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4318 do
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 ac_cv_prog_ac_ct_CC="gcc"
4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4326 fi
4327 done
4328 done
4329 IFS=$as_save_IFS
4330
4331 fi
4332 fi
4333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4334 if test -n "$ac_ct_CC"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4336 $as_echo "$ac_ct_CC" >&6; }
4337 else
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4340 fi
4341
4342 if test "x$ac_ct_CC" = x; then
4343 CC=""
4344 else
4345 case $cross_compiling:$ac_tool_warned in
4346 yes:)
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4349 ac_tool_warned=yes ;;
4350 esac
4351 CC=$ac_ct_CC
4352 fi
4353 else
4354 CC="$ac_cv_prog_CC"
4355 fi
4356
4357 if test -z "$CC"; then
4358 if test -n "$ac_tool_prefix"; then
4359 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4360 set dummy ${ac_tool_prefix}cc; ac_word=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if test "${ac_cv_prog_CC+set}" = set; then :
4364 $as_echo_n "(cached) " >&6
4365 else
4366 if test -n "$CC"; then
4367 ac_cv_prog_CC="$CC" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376 ac_cv_prog_CC="${ac_tool_prefix}cc"
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4379 fi
4380 done
4381 done
4382 IFS=$as_save_IFS
4383
4384 fi
4385 fi
4386 CC=$ac_cv_prog_CC
4387 if test -n "$CC"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4389 $as_echo "$CC" >&6; }
4390 else
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4393 fi
4394
4395
4396 fi
4397 fi
4398 if test -z "$CC"; then
4399 # Extract the first word of "cc", so it can be a program name with args.
4400 set dummy cc; ac_word=$2
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402 $as_echo_n "checking for $ac_word... " >&6; }
4403 if test "${ac_cv_prog_CC+set}" = set; then :
4404 $as_echo_n "(cached) " >&6
4405 else
4406 if test -n "$CC"; then
4407 ac_cv_prog_CC="$CC" # Let the user override the test.
4408 else
4409 ac_prog_rejected=no
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH
4412 do
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_exec_ext in '' $ac_executable_extensions; do
4416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4417 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4418 ac_prog_rejected=yes
4419 continue
4420 fi
4421 ac_cv_prog_CC="cc"
4422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 break 2
4424 fi
4425 done
4426 done
4427 IFS=$as_save_IFS
4428
4429 if test $ac_prog_rejected = yes; then
4430 # We found a bogon in the path, so make sure we never use it.
4431 set dummy $ac_cv_prog_CC
4432 shift
4433 if test $# != 0; then
4434 # We chose a different compiler from the bogus one.
4435 # However, it has the same basename, so the bogon will be chosen
4436 # first if we set CC to just the basename; use the full file name.
4437 shift
4438 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4439 fi
4440 fi
4441 fi
4442 fi
4443 CC=$ac_cv_prog_CC
4444 if test -n "$CC"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4446 $as_echo "$CC" >&6; }
4447 else
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4450 fi
4451
4452
4453 fi
4454 if test -z "$CC"; then
4455 if test -n "$ac_tool_prefix"; then
4456 for ac_prog in cl.exe
4457 do
4458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461 $as_echo_n "checking for $ac_word... " >&6; }
4462 if test "${ac_cv_prog_CC+set}" = set; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 if test -n "$CC"; then
4466 ac_cv_prog_CC="$CC" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4470 do
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4478 fi
4479 done
4480 done
4481 IFS=$as_save_IFS
4482
4483 fi
4484 fi
4485 CC=$ac_cv_prog_CC
4486 if test -n "$CC"; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4488 $as_echo "$CC" >&6; }
4489 else
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 $as_echo "no" >&6; }
4492 fi
4493
4494
4495 test -n "$CC" && break
4496 done
4497 fi
4498 if test -z "$CC"; then
4499 ac_ct_CC=$CC
4500 for ac_prog in cl.exe
4501 do
4502 # Extract the first word of "$ac_prog", so it can be a program name with args.
4503 set dummy $ac_prog; ac_word=$2
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505 $as_echo_n "checking for $ac_word... " >&6; }
4506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4507 $as_echo_n "(cached) " >&6
4508 else
4509 if test -n "$ac_ct_CC"; then
4510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4511 else
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH
4514 do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4519 ac_cv_prog_ac_ct_CC="$ac_prog"
4520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 break 2
4522 fi
4523 done
4524 done
4525 IFS=$as_save_IFS
4526
4527 fi
4528 fi
4529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4530 if test -n "$ac_ct_CC"; then
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4532 $as_echo "$ac_ct_CC" >&6; }
4533 else
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 $as_echo "no" >&6; }
4536 fi
4537
4538
4539 test -n "$ac_ct_CC" && break
4540 done
4541
4542 if test "x$ac_ct_CC" = x; then
4543 CC=""
4544 else
4545 case $cross_compiling:$ac_tool_warned in
4546 yes:)
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4549 ac_tool_warned=yes ;;
4550 esac
4551 CC=$ac_ct_CC
4552 fi
4553 fi
4554
4555 fi
4556
4557
4558 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4560 as_fn_error "no acceptable C compiler found in \$PATH
4561 See \`config.log' for more details." "$LINENO" 5; }
4562
4563 # Provide some information about the compiler.
4564 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4565 set X $ac_compile
4566 ac_compiler=$2
4567 for ac_option in --version -v -V -qversion; do
4568 { { ac_try="$ac_compiler $ac_option >&5"
4569 case "(($ac_try" in
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4572 esac
4573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4574 $as_echo "$ac_try_echo"; } >&5
4575 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4576 ac_status=$?
4577 if test -s conftest.err; then
4578 sed '10a\
4579 ... rest of stderr output deleted ...
4580 10q' conftest.err >conftest.er1
4581 cat conftest.er1 >&5
4582 rm -f conftest.er1 conftest.err
4583 fi
4584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4585 test $ac_status = 0; }
4586 done
4587
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4589 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4590 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4595
4596 int
4597 main ()
4598 {
4599 #ifndef __GNUC__
4600 choke me
4601 #endif
4602
4603 ;
4604 return 0;
4605 }
4606 _ACEOF
4607 if ac_fn_c_try_compile "$LINENO"; then :
4608 ac_compiler_gnu=yes
4609 else
4610 ac_compiler_gnu=no
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4614
4615 fi
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4617 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4618 if test $ac_compiler_gnu = yes; then
4619 GCC=yes
4620 else
4621 GCC=
4622 fi
4623 ac_test_CFLAGS=${CFLAGS+set}
4624 ac_save_CFLAGS=$CFLAGS
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4626 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4627 if test "${ac_cv_prog_cc_g+set}" = set; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 ac_save_c_werror_flag=$ac_c_werror_flag
4631 ac_c_werror_flag=yes
4632 ac_cv_prog_cc_g=no
4633 CFLAGS="-g"
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h. */
4636
4637 int
4638 main ()
4639 {
4640
4641 ;
4642 return 0;
4643 }
4644 _ACEOF
4645 if ac_fn_c_try_compile "$LINENO"; then :
4646 ac_cv_prog_cc_g=yes
4647 else
4648 CFLAGS=""
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h. */
4651
4652 int
4653 main ()
4654 {
4655
4656 ;
4657 return 0;
4658 }
4659 _ACEOF
4660 if ac_fn_c_try_compile "$LINENO"; then :
4661
4662 else
4663 ac_c_werror_flag=$ac_save_c_werror_flag
4664 CFLAGS="-g"
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4667
4668 int
4669 main ()
4670 {
4671
4672 ;
4673 return 0;
4674 }
4675 _ACEOF
4676 if ac_fn_c_try_compile "$LINENO"; then :
4677 ac_cv_prog_cc_g=yes
4678 fi
4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680 fi
4681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 fi
4683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684 ac_c_werror_flag=$ac_save_c_werror_flag
4685 fi
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4687 $as_echo "$ac_cv_prog_cc_g" >&6; }
4688 if test "$ac_test_CFLAGS" = set; then
4689 CFLAGS=$ac_save_CFLAGS
4690 elif test $ac_cv_prog_cc_g = yes; then
4691 if test "$GCC" = yes; then
4692 CFLAGS="-g -O2"
4693 else
4694 CFLAGS="-g"
4695 fi
4696 else
4697 if test "$GCC" = yes; then
4698 CFLAGS="-O2"
4699 else
4700 CFLAGS=
4701 fi
4702 fi
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4704 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4705 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 ac_cv_prog_cc_c89=no
4709 ac_save_CC=$CC
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4712 #include <stdarg.h>
4713 #include <stdio.h>
4714 #include <sys/types.h>
4715 #include <sys/stat.h>
4716 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4717 struct buf { int x; };
4718 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4719 static char *e (p, i)
4720 char **p;
4721 int i;
4722 {
4723 return p[i];
4724 }
4725 static char *f (char * (*g) (char **, int), char **p, ...)
4726 {
4727 char *s;
4728 va_list v;
4729 va_start (v,p);
4730 s = g (p, va_arg (v,int));
4731 va_end (v);
4732 return s;
4733 }
4734
4735 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4736 function prototypes and stuff, but not '\xHH' hex character constants.
4737 These don't provoke an error unfortunately, instead are silently treated
4738 as 'x'. The following induces an error, until -std is added to get
4739 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4740 array size at least. It's necessary to write '\x00'==0 to get something
4741 that's true only with -std. */
4742 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4743
4744 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4745 inside strings and character constants. */
4746 #define FOO(x) 'x'
4747 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4748
4749 int test (int i, double x);
4750 struct s1 {int (*f) (int a);};
4751 struct s2 {int (*f) (double a);};
4752 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4753 int argc;
4754 char **argv;
4755 int
4756 main ()
4757 {
4758 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4759 ;
4760 return 0;
4761 }
4762 _ACEOF
4763 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4764 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4765 do
4766 CC="$ac_save_CC $ac_arg"
4767 if ac_fn_c_try_compile "$LINENO"; then :
4768 ac_cv_prog_cc_c89=$ac_arg
4769 fi
4770 rm -f core conftest.err conftest.$ac_objext
4771 test "x$ac_cv_prog_cc_c89" != "xno" && break
4772 done
4773 rm -f conftest.$ac_ext
4774 CC=$ac_save_CC
4775
4776 fi
4777 # AC_CACHE_VAL
4778 case "x$ac_cv_prog_cc_c89" in
4779 x)
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4781 $as_echo "none needed" >&6; } ;;
4782 xno)
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4784 $as_echo "unsupported" >&6; } ;;
4785 *)
4786 CC="$CC $ac_cv_prog_cc_c89"
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4788 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4789 esac
4790 if test "x$ac_cv_prog_cc_c89" != xno; then :
4791
4792 fi
4793
4794 ac_ext=c
4795 ac_cpp='$CPP $CPPFLAGS'
4796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799
4800 ac_ext=cpp
4801 ac_cpp='$CXXCPP $CPPFLAGS'
4802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4805 if test -z "$CXX"; then
4806 if test -n "$CCC"; then
4807 CXX=$CCC
4808 else
4809 if test -n "$ac_tool_prefix"; then
4810 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4811 do
4812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4813 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if test "${ac_cv_prog_CXX+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 if test -n "$CXX"; then
4820 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4821 else
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4824 do
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 break 2
4832 fi
4833 done
4834 done
4835 IFS=$as_save_IFS
4836
4837 fi
4838 fi
4839 CXX=$ac_cv_prog_CXX
4840 if test -n "$CXX"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4842 $as_echo "$CXX" >&6; }
4843 else
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4846 fi
4847
4848
4849 test -n "$CXX" && break
4850 done
4851 fi
4852 if test -z "$CXX"; then
4853 ac_ct_CXX=$CXX
4854 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4855 do
4856 # Extract the first word of "$ac_prog", so it can be a program name with args.
4857 set dummy $ac_prog; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 if test -n "$ac_ct_CXX"; then
4864 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_prog_ac_ct_CXX="$ac_prog"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4876 fi
4877 done
4878 done
4879 IFS=$as_save_IFS
4880
4881 fi
4882 fi
4883 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4884 if test -n "$ac_ct_CXX"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4886 $as_echo "$ac_ct_CXX" >&6; }
4887 else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4890 fi
4891
4892
4893 test -n "$ac_ct_CXX" && break
4894 done
4895
4896 if test "x$ac_ct_CXX" = x; then
4897 CXX="g++"
4898 else
4899 case $cross_compiling:$ac_tool_warned in
4900 yes:)
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4903 ac_tool_warned=yes ;;
4904 esac
4905 CXX=$ac_ct_CXX
4906 fi
4907 fi
4908
4909 fi
4910 fi
4911 # Provide some information about the compiler.
4912 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4913 set X $ac_compile
4914 ac_compiler=$2
4915 for ac_option in --version -v -V -qversion; do
4916 { { ac_try="$ac_compiler $ac_option >&5"
4917 case "(($ac_try" in
4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919 *) ac_try_echo=$ac_try;;
4920 esac
4921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4922 $as_echo "$ac_try_echo"; } >&5
4923 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4924 ac_status=$?
4925 if test -s conftest.err; then
4926 sed '10a\
4927 ... rest of stderr output deleted ...
4928 10q' conftest.err >conftest.er1
4929 cat conftest.er1 >&5
4930 rm -f conftest.er1 conftest.err
4931 fi
4932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4933 test $ac_status = 0; }
4934 done
4935
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4937 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4938 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4939 $as_echo_n "(cached) " >&6
4940 else
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4943
4944 int
4945 main ()
4946 {
4947 #ifndef __GNUC__
4948 choke me
4949 #endif
4950
4951 ;
4952 return 0;
4953 }
4954 _ACEOF
4955 if ac_fn_cxx_try_compile "$LINENO"; then :
4956 ac_compiler_gnu=yes
4957 else
4958 ac_compiler_gnu=no
4959 fi
4960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4962
4963 fi
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4965 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4966 if test $ac_compiler_gnu = yes; then
4967 GXX=yes
4968 else
4969 GXX=
4970 fi
4971 ac_test_CXXFLAGS=${CXXFLAGS+set}
4972 ac_save_CXXFLAGS=$CXXFLAGS
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4974 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4975 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4979 ac_cxx_werror_flag=yes
4980 ac_cv_prog_cxx_g=no
4981 CXXFLAGS="-g"
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4984
4985 int
4986 main ()
4987 {
4988
4989 ;
4990 return 0;
4991 }
4992 _ACEOF
4993 if ac_fn_cxx_try_compile "$LINENO"; then :
4994 ac_cv_prog_cxx_g=yes
4995 else
4996 CXXFLAGS=""
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
4999
5000 int
5001 main ()
5002 {
5003
5004 ;
5005 return 0;
5006 }
5007 _ACEOF
5008 if ac_fn_cxx_try_compile "$LINENO"; then :
5009
5010 else
5011 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5012 CXXFLAGS="-g"
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5015
5016 int
5017 main ()
5018 {
5019
5020 ;
5021 return 0;
5022 }
5023 _ACEOF
5024 if ac_fn_cxx_try_compile "$LINENO"; then :
5025 ac_cv_prog_cxx_g=yes
5026 fi
5027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028 fi
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030 fi
5031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5032 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5035 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5036 if test "$ac_test_CXXFLAGS" = set; then
5037 CXXFLAGS=$ac_save_CXXFLAGS
5038 elif test $ac_cv_prog_cxx_g = yes; then
5039 if test "$GXX" = yes; then
5040 CXXFLAGS="-g -O2"
5041 else
5042 CXXFLAGS="-g"
5043 fi
5044 else
5045 if test "$GXX" = yes; then
5046 CXXFLAGS="-O2"
5047 else
5048 CXXFLAGS=
5049 fi
5050 fi
5051 ac_ext=c
5052 ac_cpp='$CPP $CPPFLAGS'
5053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5056
5057 depcc="$CXX" am_compiler_list=
5058
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5060 $as_echo_n "checking dependency style of $depcc... " >&6; }
5061 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5065 # We make a subdir and do the tests there. Otherwise we can end up
5066 # making bogus files that we don't know about and never remove. For
5067 # instance it was reported that on HP-UX the gcc test will end up
5068 # making a dummy file named `D' -- because `-MD' means `put the output
5069 # in D'.
5070 rm -rf conftest.dir
5071 mkdir conftest.dir
5072 # Copy depcomp to subdir because otherwise we won't find it if we're
5073 # using a relative directory.
5074 cp "$am_depcomp" conftest.dir
5075 cd conftest.dir
5076 # We will build objects and dependencies in a subdirectory because
5077 # it helps to detect inapplicable dependency modes. For instance
5078 # both Tru64's cc and ICC support -MD to output dependencies as a
5079 # side effect of compilation, but ICC will put the dependencies in
5080 # the current directory while Tru64 will put them in the object
5081 # directory.
5082 mkdir sub
5083
5084 am_cv_CXX_dependencies_compiler_type=none
5085 if test "$am_compiler_list" = ""; then
5086 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5087 fi
5088 am__universal=false
5089 case " $depcc " in #(
5090 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5091 esac
5092
5093 for depmode in $am_compiler_list; do
5094 # Setup a source with many dependencies, because some compilers
5095 # like to wrap large dependency lists on column 80 (with \), and
5096 # we should not choose a depcomp mode which is confused by this.
5097 #
5098 # We need to recreate these files for each test, as the compiler may
5099 # overwrite some of them when testing with obscure command lines.
5100 # This happens at least with the AIX C compiler.
5101 : > sub/conftest.c
5102 for i in 1 2 3 4 5 6; do
5103 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5104 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5105 # Solaris 8's {/usr,}/bin/sh.
5106 touch sub/conftst$i.h
5107 done
5108 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5109
5110 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5111 # mode. It turns out that the SunPro C++ compiler does not properly
5112 # handle `-M -o', and we need to detect this. Also, some Intel
5113 # versions had trouble with output in subdirs
5114 am__obj=sub/conftest.${OBJEXT-o}
5115 am__minus_obj="-o $am__obj"
5116 case $depmode in
5117 gcc)
5118 # This depmode causes a compiler race in universal mode.
5119 test "$am__universal" = false || continue
5120 ;;
5121 nosideeffect)
5122 # after this tag, mechanisms are not by side-effect, so they'll
5123 # only be used when explicitly requested
5124 if test "x$enable_dependency_tracking" = xyes; then
5125 continue
5126 else
5127 break
5128 fi
5129 ;;
5130 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5131 # This compiler won't grok `-c -o', but also, the minuso test has
5132 # not run yet. These depmodes are late enough in the game, and
5133 # so weak that their functioning should not be impacted.
5134 am__obj=conftest.${OBJEXT-o}
5135 am__minus_obj=
5136 ;;
5137 none) break ;;
5138 esac
5139 if depmode=$depmode \
5140 source=sub/conftest.c object=$am__obj \
5141 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5142 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5143 >/dev/null 2>conftest.err &&
5144 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5145 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5146 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5147 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5148 # icc doesn't choke on unknown options, it will just issue warnings
5149 # or remarks (even with -Werror). So we grep stderr for any message
5150 # that says an option was ignored or not supported.
5151 # When given -MP, icc 7.0 and 7.1 complain thusly:
5152 # icc: Command line warning: ignoring option '-M'; no argument required
5153 # The diagnosis changed in icc 8.0:
5154 # icc: Command line remark: option '-MP' not supported
5155 if (grep 'ignoring option' conftest.err ||
5156 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5157 am_cv_CXX_dependencies_compiler_type=$depmode
5158 break
5159 fi
5160 fi
5161 done
5162
5163 cd ..
5164 rm -rf conftest.dir
5165 else
5166 am_cv_CXX_dependencies_compiler_type=none
5167 fi
5168
5169 fi
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5171 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5172 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5173
5174 if
5175 test "x$enable_dependency_tracking" != xno \
5176 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5177 am__fastdepCXX_TRUE=
5178 am__fastdepCXX_FALSE='#'
5179 else
5180 am__fastdepCXX_TRUE='#'
5181 am__fastdepCXX_FALSE=
5182 fi
5183
5184
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5186 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5187 if test "${ac_cv_path_GREP+set}" = set; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 if test -z "$GREP"; then
5191 ac_path_GREP_found=false
5192 # Loop through the user's path and test for each of PROGNAME-LIST
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5195 do
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_prog in grep ggrep; do
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5201 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5202 # Check for GNU ac_path_GREP and select it if it is found.
5203 # Check for GNU $ac_path_GREP
5204 case `"$ac_path_GREP" --version 2>&1` in
5205 *GNU*)
5206 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5207 *)
5208 ac_count=0
5209 $as_echo_n 0123456789 >"conftest.in"
5210 while :
5211 do
5212 cat "conftest.in" "conftest.in" >"conftest.tmp"
5213 mv "conftest.tmp" "conftest.in"
5214 cp "conftest.in" "conftest.nl"
5215 $as_echo 'GREP' >> "conftest.nl"
5216 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5217 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5218 as_fn_arith $ac_count + 1 && ac_count=$as_val
5219 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5220 # Best one so far, save it but keep looking for a better one
5221 ac_cv_path_GREP="$ac_path_GREP"
5222 ac_path_GREP_max=$ac_count
5223 fi
5224 # 10*(2^10) chars as input seems more than enough
5225 test $ac_count -gt 10 && break
5226 done
5227 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5228 esac
5229
5230 $ac_path_GREP_found && break 3
5231 done
5232 done
5233 done
5234 IFS=$as_save_IFS
5235 if test -z "$ac_cv_path_GREP"; then
5236 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5237 fi
5238 else
5239 ac_cv_path_GREP=$GREP
5240 fi
5241
5242 fi
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5244 $as_echo "$ac_cv_path_GREP" >&6; }
5245 GREP="$ac_cv_path_GREP"
5246
5247
5248 ac_ext=c
5249 ac_cpp='$CPP $CPPFLAGS'
5250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5254 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5255 # On Suns, sometimes $CPP names a directory.
5256 if test -n "$CPP" && test -d "$CPP"; then
5257 CPP=
5258 fi
5259 if test -z "$CPP"; then
5260 if test "${ac_cv_prog_CPP+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 # Double quotes because CPP needs to be expanded
5264 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5265 do
5266 ac_preproc_ok=false
5267 for ac_c_preproc_warn_flag in '' yes
5268 do
5269 # Use a header file that comes with gcc, so configuring glibc
5270 # with a fresh cross-compiler works.
5271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5272 # <limits.h> exists even on freestanding compilers.
5273 # On the NeXT, cc -E runs the code through the compiler's parser,
5274 # not just through cpp. "Syntax error" is here to catch this case.
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277 #ifdef __STDC__
5278 # include <limits.h>
5279 #else
5280 # include <assert.h>
5281 #endif
5282 Syntax error
5283 _ACEOF
5284 if ac_fn_c_try_cpp "$LINENO"; then :
5285
5286 else
5287 # Broken: fails on valid input.
5288 continue
5289 fi
5290 rm -f conftest.err conftest.$ac_ext
5291
5292 # OK, works on sane cases. Now check whether nonexistent headers
5293 # can be detected and how.
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5296 #include <ac_nonexistent.h>
5297 _ACEOF
5298 if ac_fn_c_try_cpp "$LINENO"; then :
5299 # Broken: success on invalid input.
5300 continue
5301 else
5302 # Passes both tests.
5303 ac_preproc_ok=:
5304 break
5305 fi
5306 rm -f conftest.err conftest.$ac_ext
5307
5308 done
5309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5310 rm -f conftest.err conftest.$ac_ext
5311 if $ac_preproc_ok; then :
5312 break
5313 fi
5314
5315 done
5316 ac_cv_prog_CPP=$CPP
5317
5318 fi
5319 CPP=$ac_cv_prog_CPP
5320 else
5321 ac_cv_prog_CPP=$CPP
5322 fi
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5324 $as_echo "$CPP" >&6; }
5325 ac_preproc_ok=false
5326 for ac_c_preproc_warn_flag in '' yes
5327 do
5328 # Use a header file that comes with gcc, so configuring glibc
5329 # with a fresh cross-compiler works.
5330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5331 # <limits.h> exists even on freestanding compilers.
5332 # On the NeXT, cc -E runs the code through the compiler's parser,
5333 # not just through cpp. "Syntax error" is here to catch this case.
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5336 #ifdef __STDC__
5337 # include <limits.h>
5338 #else
5339 # include <assert.h>
5340 #endif
5341 Syntax error
5342 _ACEOF
5343 if ac_fn_c_try_cpp "$LINENO"; then :
5344
5345 else
5346 # Broken: fails on valid input.
5347 continue
5348 fi
5349 rm -f conftest.err conftest.$ac_ext
5350
5351 # OK, works on sane cases. Now check whether nonexistent headers
5352 # can be detected and how.
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5355 #include <ac_nonexistent.h>
5356 _ACEOF
5357 if ac_fn_c_try_cpp "$LINENO"; then :
5358 # Broken: success on invalid input.
5359 continue
5360 else
5361 # Passes both tests.
5362 ac_preproc_ok=:
5363 break
5364 fi
5365 rm -f conftest.err conftest.$ac_ext
5366
5367 done
5368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5369 rm -f conftest.err conftest.$ac_ext
5370 if $ac_preproc_ok; then :
5371
5372 else
5373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5375 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5376 See \`config.log' for more details." "$LINENO" 5; }
5377 fi
5378
5379 ac_ext=c
5380 ac_cpp='$CPP $CPPFLAGS'
5381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5384
5385
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5387 $as_echo_n "checking for egrep... " >&6; }
5388 if test "${ac_cv_path_EGREP+set}" = set; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5392 then ac_cv_path_EGREP="$GREP -E"
5393 else
5394 if test -z "$EGREP"; then
5395 ac_path_EGREP_found=false
5396 # Loop through the user's path and test for each of PROGNAME-LIST
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5399 do
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_prog in egrep; do
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5405 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5406 # Check for GNU ac_path_EGREP and select it if it is found.
5407 # Check for GNU $ac_path_EGREP
5408 case `"$ac_path_EGREP" --version 2>&1` in
5409 *GNU*)
5410 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5411 *)
5412 ac_count=0
5413 $as_echo_n 0123456789 >"conftest.in"
5414 while :
5415 do
5416 cat "conftest.in" "conftest.in" >"conftest.tmp"
5417 mv "conftest.tmp" "conftest.in"
5418 cp "conftest.in" "conftest.nl"
5419 $as_echo 'EGREP' >> "conftest.nl"
5420 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5421 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5422 as_fn_arith $ac_count + 1 && ac_count=$as_val
5423 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5424 # Best one so far, save it but keep looking for a better one
5425 ac_cv_path_EGREP="$ac_path_EGREP"
5426 ac_path_EGREP_max=$ac_count
5427 fi
5428 # 10*(2^10) chars as input seems more than enough
5429 test $ac_count -gt 10 && break
5430 done
5431 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5432 esac
5433
5434 $ac_path_EGREP_found && break 3
5435 done
5436 done
5437 done
5438 IFS=$as_save_IFS
5439 if test -z "$ac_cv_path_EGREP"; then
5440 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5441 fi
5442 else
5443 ac_cv_path_EGREP=$EGREP
5444 fi
5445
5446 fi
5447 fi
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5449 $as_echo "$ac_cv_path_EGREP" >&6; }
5450 EGREP="$ac_cv_path_EGREP"
5451
5452
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5454 $as_echo_n "checking for ANSI C header files... " >&6; }
5455 if test "${ac_cv_header_stdc+set}" = set; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5460 #include <stdlib.h>
5461 #include <stdarg.h>
5462 #include <string.h>
5463 #include <float.h>
5464
5465 int
5466 main ()
5467 {
5468
5469 ;
5470 return 0;
5471 }
5472 _ACEOF
5473 if ac_fn_c_try_compile "$LINENO"; then :
5474 ac_cv_header_stdc=yes
5475 else
5476 ac_cv_header_stdc=no
5477 fi
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479
5480 if test $ac_cv_header_stdc = yes; then
5481 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5484 #include <string.h>
5485
5486 _ACEOF
5487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5488 $EGREP "memchr" >/dev/null 2>&1; then :
5489
5490 else
5491 ac_cv_header_stdc=no
5492 fi
5493 rm -f conftest*
5494
5495 fi
5496
5497 if test $ac_cv_header_stdc = yes; then
5498 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h. */
5501 #include <stdlib.h>
5502
5503 _ACEOF
5504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5505 $EGREP "free" >/dev/null 2>&1; then :
5506
5507 else
5508 ac_cv_header_stdc=no
5509 fi
5510 rm -f conftest*
5511
5512 fi
5513
5514 if test $ac_cv_header_stdc = yes; then
5515 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5516 if test "$cross_compiling" = yes; then :
5517 :
5518 else
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 #include <ctype.h>
5522 #include <stdlib.h>
5523 #if ((' ' & 0x0FF) == 0x020)
5524 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5525 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5526 #else
5527 # define ISLOWER(c) \
5528 (('a' <= (c) && (c) <= 'i') \
5529 || ('j' <= (c) && (c) <= 'r') \
5530 || ('s' <= (c) && (c) <= 'z'))
5531 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5532 #endif
5533
5534 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5535 int
5536 main ()
5537 {
5538 int i;
5539 for (i = 0; i < 256; i++)
5540 if (XOR (islower (i), ISLOWER (i))
5541 || toupper (i) != TOUPPER (i))
5542 return 2;
5543 return 0;
5544 }
5545 _ACEOF
5546 if ac_fn_c_try_run "$LINENO"; then :
5547
5548 else
5549 ac_cv_header_stdc=no
5550 fi
5551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5552 conftest.$ac_objext conftest.beam conftest.$ac_ext
5553 fi
5554
5555 fi
5556 fi
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5558 $as_echo "$ac_cv_header_stdc" >&6; }
5559 if test $ac_cv_header_stdc = yes; then
5560
5561 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5562
5563 fi
5564
5565 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5566 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5567 inttypes.h stdint.h unistd.h
5568 do :
5569 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5570 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5571 "
5572 eval as_val=\$$as_ac_Header
5573 if test "x$as_val" = x""yes; then :
5574 cat >>confdefs.h <<_ACEOF
5575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5576 _ACEOF
5577
5578 fi
5579
5580 done
5581
5582
5583
5584 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5585 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5586 MINIX=yes
5587 else
5588 MINIX=
5589 fi
5590
5591
5592 if test "$MINIX" = yes; then
5593
5594 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5595
5596
5597 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5598
5599
5600 $as_echo "#define _MINIX 1" >>confdefs.h
5601
5602 fi
5603
5604
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5606 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5607 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612
5613 # define __EXTENSIONS__ 1
5614 $ac_includes_default
5615 int
5616 main ()
5617 {
5618
5619 ;
5620 return 0;
5621 }
5622 _ACEOF
5623 if ac_fn_c_try_compile "$LINENO"; then :
5624 ac_cv_safe_to_define___extensions__=yes
5625 else
5626 ac_cv_safe_to_define___extensions__=no
5627 fi
5628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629 fi
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5631 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5632 test $ac_cv_safe_to_define___extensions__ = yes &&
5633 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5634
5635 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5636
5637 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5638
5639 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5640
5641 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5642
5643
5644
5645
5646
5647
5648 case `pwd` in
5649 *\ * | *\ *)
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5651 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5652 esac
5653
5654
5655
5656 macro_version='2.2.7a'
5657 macro_revision='1.3134'
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671 ltmain="$ac_aux_dir/ltmain.sh"
5672
5673 # Backslashify metacharacters that are still active within
5674 # double-quoted strings.
5675 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5676
5677 # Same as above, but do not quote variable references.
5678 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5679
5680 # Sed substitution to delay expansion of an escaped shell variable in a
5681 # double_quote_subst'ed string.
5682 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5683
5684 # Sed substitution to delay expansion of an escaped single quote.
5685 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5686
5687 # Sed substitution to avoid accidental globbing in evaled expressions
5688 no_glob_subst='s/\*/\\\*/g'
5689
5690 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5691 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5692 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5693
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5695 $as_echo_n "checking how to print strings... " >&6; }
5696 # Test print first, because it will be a builtin if present.
5697 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5698 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5699 ECHO='print -r --'
5700 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5701 ECHO='printf %s\n'
5702 else
5703 # Use this function as a fallback that always works.
5704 func_fallback_echo ()
5705 {
5706 eval 'cat <<_LTECHO_EOF
5707 $1
5708 _LTECHO_EOF'
5709 }
5710 ECHO='func_fallback_echo'
5711 fi
5712
5713 # func_echo_all arg...
5714 # Invoke $ECHO with all args, space-separated.
5715 func_echo_all ()
5716 {
5717 $ECHO ""
5718 }
5719
5720 case "$ECHO" in
5721 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5722 $as_echo "printf" >&6; } ;;
5723 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5724 $as_echo "print -r" >&6; } ;;
5725 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5726 $as_echo "cat" >&6; } ;;
5727 esac
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5743 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5744 if test "${ac_cv_path_SED+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5748 for ac_i in 1 2 3 4 5 6 7; do
5749 ac_script="$ac_script$as_nl$ac_script"
5750 done
5751 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5752 { ac_script=; unset ac_script;}
5753 if test -z "$SED"; then
5754 ac_path_SED_found=false
5755 # Loop through the user's path and test for each of PROGNAME-LIST
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5758 do
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5761 for ac_prog in sed gsed; do
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5764 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5765 # Check for GNU ac_path_SED and select it if it is found.
5766 # Check for GNU $ac_path_SED
5767 case `"$ac_path_SED" --version 2>&1` in
5768 *GNU*)
5769 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5770 *)
5771 ac_count=0
5772 $as_echo_n 0123456789 >"conftest.in"
5773 while :
5774 do
5775 cat "conftest.in" "conftest.in" >"conftest.tmp"
5776 mv "conftest.tmp" "conftest.in"
5777 cp "conftest.in" "conftest.nl"
5778 $as_echo '' >> "conftest.nl"
5779 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5780 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5781 as_fn_arith $ac_count + 1 && ac_count=$as_val
5782 if test $ac_count -gt ${ac_path_SED_max-0}; then
5783 # Best one so far, save it but keep looking for a better one
5784 ac_cv_path_SED="$ac_path_SED"
5785 ac_path_SED_max=$ac_count
5786 fi
5787 # 10*(2^10) chars as input seems more than enough
5788 test $ac_count -gt 10 && break
5789 done
5790 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5791 esac
5792
5793 $ac_path_SED_found && break 3
5794 done
5795 done
5796 done
5797 IFS=$as_save_IFS
5798 if test -z "$ac_cv_path_SED"; then
5799 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5800 fi
5801 else
5802 ac_cv_path_SED=$SED
5803 fi
5804
5805 fi
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5807 $as_echo "$ac_cv_path_SED" >&6; }
5808 SED="$ac_cv_path_SED"
5809 rm -f conftest.sed
5810
5811 test -z "$SED" && SED=sed
5812 Xsed="$SED -e 1s/^X//"
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5825 $as_echo_n "checking for fgrep... " >&6; }
5826 if test "${ac_cv_path_FGREP+set}" = set; then :
5827 $as_echo_n "(cached) " >&6
5828 else
5829 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5830 then ac_cv_path_FGREP="$GREP -F"
5831 else
5832 if test -z "$FGREP"; then
5833 ac_path_FGREP_found=false
5834 # Loop through the user's path and test for each of PROGNAME-LIST
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5837 do
5838 IFS=$as_save_IFS
5839 test -z "$as_dir" && as_dir=.
5840 for ac_prog in fgrep; do
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5843 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5844 # Check for GNU ac_path_FGREP and select it if it is found.
5845 # Check for GNU $ac_path_FGREP
5846 case `"$ac_path_FGREP" --version 2>&1` in
5847 *GNU*)
5848 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5849 *)
5850 ac_count=0
5851 $as_echo_n 0123456789 >"conftest.in"
5852 while :
5853 do
5854 cat "conftest.in" "conftest.in" >"conftest.tmp"
5855 mv "conftest.tmp" "conftest.in"
5856 cp "conftest.in" "conftest.nl"
5857 $as_echo 'FGREP' >> "conftest.nl"
5858 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5859 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5860 as_fn_arith $ac_count + 1 && ac_count=$as_val
5861 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5862 # Best one so far, save it but keep looking for a better one
5863 ac_cv_path_FGREP="$ac_path_FGREP"
5864 ac_path_FGREP_max=$ac_count
5865 fi
5866 # 10*(2^10) chars as input seems more than enough
5867 test $ac_count -gt 10 && break
5868 done
5869 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5870 esac
5871
5872 $ac_path_FGREP_found && break 3
5873 done
5874 done
5875 done
5876 IFS=$as_save_IFS
5877 if test -z "$ac_cv_path_FGREP"; then
5878 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5879 fi
5880 else
5881 ac_cv_path_FGREP=$FGREP
5882 fi
5883
5884 fi
5885 fi
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5887 $as_echo "$ac_cv_path_FGREP" >&6; }
5888 FGREP="$ac_cv_path_FGREP"
5889
5890
5891 test -z "$GREP" && GREP=grep
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911 # Check whether --with-gnu-ld was given.
5912 if test "${with_gnu_ld+set}" = set; then :
5913 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5914 else
5915 with_gnu_ld=no
5916 fi
5917
5918 ac_prog=ld
5919 if test "$GCC" = yes; then
5920 # Check if gcc -print-prog-name=ld gives a path.
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5922 $as_echo_n "checking for ld used by $CC... " >&6; }
5923 case $host in
5924 *-*-mingw*)
5925 # gcc leaves a trailing carriage return which upsets mingw
5926 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5927 *)
5928 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5929 esac
5930 case $ac_prog in
5931 # Accept absolute paths.
5932 [\\/]* | ?:[\\/]*)
5933 re_direlt='/[^/][^/]*/\.\./'
5934 # Canonicalize the pathname of ld
5935 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5936 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5937 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5938 done
5939 test -z "$LD" && LD="$ac_prog"
5940 ;;
5941 "")
5942 # If it fails, then pretend we aren't using GCC.
5943 ac_prog=ld
5944 ;;
5945 *)
5946 # If it is relative, then search for the first ld in PATH.
5947 with_gnu_ld=unknown
5948 ;;
5949 esac
5950 elif test "$with_gnu_ld" = yes; then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5952 $as_echo_n "checking for GNU ld... " >&6; }
5953 else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5955 $as_echo_n "checking for non-GNU ld... " >&6; }
5956 fi
5957 if test "${lt_cv_path_LD+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 if test -z "$LD"; then
5961 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5962 for ac_dir in $PATH; do
5963 IFS="$lt_save_ifs"
5964 test -z "$ac_dir" && ac_dir=.
5965 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5966 lt_cv_path_LD="$ac_dir/$ac_prog"
5967 # Check to see if the program is GNU ld. I'd rather use --version,
5968 # but apparently some variants of GNU ld only accept -v.
5969 # Break only if it was the GNU/non-GNU ld that we prefer.
5970 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5971 *GNU* | *'with BFD'*)
5972 test "$with_gnu_ld" != no && break
5973 ;;
5974 *)
5975 test "$with_gnu_ld" != yes && break
5976 ;;
5977 esac
5978 fi
5979 done
5980 IFS="$lt_save_ifs"
5981 else
5982 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5983 fi
5984 fi
5985
5986 LD="$lt_cv_path_LD"
5987 if test -n "$LD"; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5989 $as_echo "$LD" >&6; }
5990 else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992 $as_echo "no" >&6; }
5993 fi
5994 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5996 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5997 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6001 case `$LD -v 2>&1 </dev/null` in
6002 *GNU* | *'with BFD'*)
6003 lt_cv_prog_gnu_ld=yes
6004 ;;
6005 *)
6006 lt_cv_prog_gnu_ld=no
6007 ;;
6008 esac
6009 fi
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6011 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6012 with_gnu_ld=$lt_cv_prog_gnu_ld
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6023 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6024 if test "${lt_cv_path_NM+set}" = set; then :
6025 $as_echo_n "(cached) " >&6
6026 else
6027 if test -n "$NM"; then
6028 # Let the user override the test.
6029 lt_cv_path_NM="$NM"
6030 else
6031 lt_nm_to_check="${ac_tool_prefix}nm"
6032 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6033 lt_nm_to_check="$lt_nm_to_check nm"
6034 fi
6035 for lt_tmp_nm in $lt_nm_to_check; do
6036 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6037 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6038 IFS="$lt_save_ifs"
6039 test -z "$ac_dir" && ac_dir=.
6040 tmp_nm="$ac_dir/$lt_tmp_nm"
6041 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6042 # Check to see if the nm accepts a BSD-compat flag.
6043 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6044 # nm: unknown option "B" ignored
6045 # Tru64's nm complains that /dev/null is an invalid object file
6046 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6047 */dev/null* | *'Invalid file or object type'*)
6048 lt_cv_path_NM="$tmp_nm -B"
6049 break
6050 ;;
6051 *)
6052 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6053 */dev/null*)
6054 lt_cv_path_NM="$tmp_nm -p"
6055 break
6056 ;;
6057 *)
6058 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6059 continue # so that we can try to find one that supports BSD flags
6060 ;;
6061 esac
6062 ;;
6063 esac
6064 fi
6065 done
6066 IFS="$lt_save_ifs"
6067 done
6068 : ${lt_cv_path_NM=no}
6069 fi
6070 fi
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6072 $as_echo "$lt_cv_path_NM" >&6; }
6073 if test "$lt_cv_path_NM" != "no"; then
6074 NM="$lt_cv_path_NM"
6075 else
6076 # Didn't find any BSD compatible name lister, look for dumpbin.
6077 if test -n "$DUMPBIN"; then :
6078 # Let the user override the test.
6079 else
6080 if test -n "$ac_tool_prefix"; then
6081 for ac_prog in dumpbin "link -dump"
6082 do
6083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6084 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086 $as_echo_n "checking for $ac_word... " >&6; }
6087 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6088 $as_echo_n "(cached) " >&6
6089 else
6090 if test -n "$DUMPBIN"; then
6091 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6092 else
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH
6095 do
6096 IFS=$as_save_IFS
6097 test -z "$as_dir" && as_dir=.
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6100 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 break 2
6103 fi
6104 done
6105 done
6106 IFS=$as_save_IFS
6107
6108 fi
6109 fi
6110 DUMPBIN=$ac_cv_prog_DUMPBIN
6111 if test -n "$DUMPBIN"; then
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6113 $as_echo "$DUMPBIN" >&6; }
6114 else
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116 $as_echo "no" >&6; }
6117 fi
6118
6119
6120 test -n "$DUMPBIN" && break
6121 done
6122 fi
6123 if test -z "$DUMPBIN"; then
6124 ac_ct_DUMPBIN=$DUMPBIN
6125 for ac_prog in dumpbin "link -dump"
6126 do
6127 # Extract the first word of "$ac_prog", so it can be a program name with args.
6128 set dummy $ac_prog; ac_word=$2
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 if test -n "$ac_ct_DUMPBIN"; then
6135 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 break 2
6147 fi
6148 done
6149 done
6150 IFS=$as_save_IFS
6151
6152 fi
6153 fi
6154 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6155 if test -n "$ac_ct_DUMPBIN"; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6157 $as_echo "$ac_ct_DUMPBIN" >&6; }
6158 else
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160 $as_echo "no" >&6; }
6161 fi
6162
6163
6164 test -n "$ac_ct_DUMPBIN" && break
6165 done
6166
6167 if test "x$ac_ct_DUMPBIN" = x; then
6168 DUMPBIN=":"
6169 else
6170 case $cross_compiling:$ac_tool_warned in
6171 yes:)
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6174 ac_tool_warned=yes ;;
6175 esac
6176 DUMPBIN=$ac_ct_DUMPBIN
6177 fi
6178 fi
6179
6180 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6181 *COFF*)
6182 DUMPBIN="$DUMPBIN -symbols"
6183 ;;
6184 *)
6185 DUMPBIN=:
6186 ;;
6187 esac
6188 fi
6189
6190 if test "$DUMPBIN" != ":"; then
6191 NM="$DUMPBIN"
6192 fi
6193 fi
6194 test -z "$NM" && NM=nm
6195
6196
6197
6198
6199
6200
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6202 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6203 if test "${lt_cv_nm_interface+set}" = set; then :
6204 $as_echo_n "(cached) " >&6
6205 else
6206 lt_cv_nm_interface="BSD nm"
6207 echo "int some_variable = 0;" > conftest.$ac_ext
6208 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6209 (eval "$ac_compile" 2>conftest.err)
6210 cat conftest.err >&5
6211 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6212 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6213 cat conftest.err >&5
6214 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6215 cat conftest.out >&5
6216 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6217 lt_cv_nm_interface="MS dumpbin"
6218 fi
6219 rm -f conftest*
6220 fi
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6222 $as_echo "$lt_cv_nm_interface" >&6; }
6223
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6225 $as_echo_n "checking whether ln -s works... " >&6; }
6226 LN_S=$as_ln_s
6227 if test "$LN_S" = "ln -s"; then
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6229 $as_echo "yes" >&6; }
6230 else
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6232 $as_echo "no, using $LN_S" >&6; }
6233 fi
6234
6235 # find the maximum length of command line arguments
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6237 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6238 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 i=0
6242 teststring="ABCD"
6243
6244 case $build_os in
6245 msdosdjgpp*)
6246 # On DJGPP, this test can blow up pretty badly due to problems in libc
6247 # (any single argument exceeding 2000 bytes causes a buffer overrun
6248 # during glob expansion). Even if it were fixed, the result of this
6249 # check would be larger than it should be.
6250 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6251 ;;
6252
6253 gnu*)
6254 # Under GNU Hurd, this test is not required because there is
6255 # no limit to the length of command line arguments.
6256 # Libtool will interpret -1 as no limit whatsoever
6257 lt_cv_sys_max_cmd_len=-1;
6258 ;;
6259
6260 cygwin* | mingw* | cegcc*)
6261 # On Win9x/ME, this test blows up -- it succeeds, but takes
6262 # about 5 minutes as the teststring grows exponentially.
6263 # Worse, since 9x/ME are not pre-emptively multitasking,
6264 # you end up with a "frozen" computer, even though with patience
6265 # the test eventually succeeds (with a max line length of 256k).
6266 # Instead, let's just punt: use the minimum linelength reported by
6267 # all of the supported platforms: 8192 (on NT/2K/XP).
6268 lt_cv_sys_max_cmd_len=8192;
6269 ;;
6270
6271 mint*)
6272 # On MiNT this can take a long time and run out of memory.
6273 lt_cv_sys_max_cmd_len=8192;
6274 ;;
6275
6276 amigaos*)
6277 # On AmigaOS with pdksh, this test takes hours, literally.
6278 # So we just punt and use a minimum line length of 8192.
6279 lt_cv_sys_max_cmd_len=8192;
6280 ;;
6281
6282 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6283 # This has been around since 386BSD, at least. Likely further.
6284 if test -x /sbin/sysctl; then
6285 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6286 elif test -x /usr/sbin/sysctl; then
6287 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6288 else
6289 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6290 fi
6291 # And add a safety zone
6292 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6293 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6294 ;;
6295
6296 interix*)
6297 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6298 lt_cv_sys_max_cmd_len=196608
6299 ;;
6300
6301 osf*)
6302 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6303 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6304 # nice to cause kernel panics so lets avoid the loop below.
6305 # First set a reasonable default.
6306 lt_cv_sys_max_cmd_len=16384
6307 #
6308 if test -x /sbin/sysconfig; then
6309 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6310 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6311 esac
6312 fi
6313 ;;
6314 sco3.2v5*)
6315 lt_cv_sys_max_cmd_len=102400
6316 ;;
6317 sysv5* | sco5v6* | sysv4.2uw2*)
6318 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6319 if test -n "$kargmax"; then
6320 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6321 else
6322 lt_cv_sys_max_cmd_len=32768
6323 fi
6324 ;;
6325 *)
6326 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6327 if test -n "$lt_cv_sys_max_cmd_len"; then
6328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6329 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6330 else
6331 # Make teststring a little bigger before we do anything with it.
6332 # a 1K string should be a reasonable start.
6333 for i in 1 2 3 4 5 6 7 8 ; do
6334 teststring=$teststring$teststring
6335 done
6336 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6337 # If test is not a shell built-in, we'll probably end up computing a
6338 # maximum length that is only half of the actual maximum length, but
6339 # we can't tell.
6340 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6341 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6342 test $i != 17 # 1/2 MB should be enough
6343 do
6344 i=`expr $i + 1`
6345 teststring=$teststring$teststring
6346 done
6347 # Only check the string length outside the loop.
6348 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6349 teststring=
6350 # Add a significant safety factor because C++ compilers can tack on
6351 # massive amounts of additional arguments before passing them to the
6352 # linker. It appears as though 1/2 is a usable value.
6353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6354 fi
6355 ;;
6356 esac
6357
6358 fi
6359
6360 if test -n $lt_cv_sys_max_cmd_len ; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6362 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6363 else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6365 $as_echo "none" >&6; }
6366 fi
6367 max_cmd_len=$lt_cv_sys_max_cmd_len
6368
6369
6370
6371
6372
6373
6374 : ${CP="cp -f"}
6375 : ${MV="mv -f"}
6376 : ${RM="rm -f"}
6377
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6379 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6380 # Try some XSI features
6381 xsi_shell=no
6382 ( _lt_dummy="a/b/c"
6383 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6384 = c,a/b,, \
6385 && eval 'test $(( 1 + 1 )) -eq 2 \
6386 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6387 && xsi_shell=yes
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6389 $as_echo "$xsi_shell" >&6; }
6390
6391
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6393 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6394 lt_shell_append=no
6395 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6396 >/dev/null 2>&1 \
6397 && lt_shell_append=yes
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6399 $as_echo "$lt_shell_append" >&6; }
6400
6401
6402 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6403 lt_unset=unset
6404 else
6405 lt_unset=false
6406 fi
6407
6408
6409
6410
6411
6412 # test EBCDIC or ASCII
6413 case `echo X|tr X '\101'` in
6414 A) # ASCII based system
6415 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6416 lt_SP2NL='tr \040 \012'
6417 lt_NL2SP='tr \015\012 \040\040'
6418 ;;
6419 *) # EBCDIC based system
6420 lt_SP2NL='tr \100 \n'
6421 lt_NL2SP='tr \r\n \100\100'
6422 ;;
6423 esac
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6434 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6435 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6436 $as_echo_n "(cached) " >&6
6437 else
6438 lt_cv_ld_reload_flag='-r'
6439 fi
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6441 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6442 reload_flag=$lt_cv_ld_reload_flag
6443 case $reload_flag in
6444 "" | " "*) ;;
6445 *) reload_flag=" $reload_flag" ;;
6446 esac
6447 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6448 case $host_os in
6449 darwin*)
6450 if test "$GCC" = yes; then
6451 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6452 else
6453 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6454 fi
6455 ;;
6456 esac
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466 if test -n "$ac_tool_prefix"; then
6467 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6468 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 if test -n "$OBJDUMP"; then
6475 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6476 else
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 for as_dir in $PATH
6479 do
6480 IFS=$as_save_IFS
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6484 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 break 2
6487 fi
6488 done
6489 done
6490 IFS=$as_save_IFS
6491
6492 fi
6493 fi
6494 OBJDUMP=$ac_cv_prog_OBJDUMP
6495 if test -n "$OBJDUMP"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6497 $as_echo "$OBJDUMP" >&6; }
6498 else
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6501 fi
6502
6503
6504 fi
6505 if test -z "$ac_cv_prog_OBJDUMP"; then
6506 ac_ct_OBJDUMP=$OBJDUMP
6507 # Extract the first word of "objdump", so it can be a program name with args.
6508 set dummy objdump; ac_word=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6512 $as_echo_n "(cached) " >&6
6513 else
6514 if test -n "$ac_ct_OBJDUMP"; then
6515 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6519 do
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 break 2
6527 fi
6528 done
6529 done
6530 IFS=$as_save_IFS
6531
6532 fi
6533 fi
6534 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6535 if test -n "$ac_ct_OBJDUMP"; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6537 $as_echo "$ac_ct_OBJDUMP" >&6; }
6538 else
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6541 fi
6542
6543 if test "x$ac_ct_OBJDUMP" = x; then
6544 OBJDUMP="false"
6545 else
6546 case $cross_compiling:$ac_tool_warned in
6547 yes:)
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550 ac_tool_warned=yes ;;
6551 esac
6552 OBJDUMP=$ac_ct_OBJDUMP
6553 fi
6554 else
6555 OBJDUMP="$ac_cv_prog_OBJDUMP"
6556 fi
6557
6558 test -z "$OBJDUMP" && OBJDUMP=objdump
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6569 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6570 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6571 $as_echo_n "(cached) " >&6
6572 else
6573 lt_cv_file_magic_cmd='$MAGIC_CMD'
6574 lt_cv_file_magic_test_file=
6575 lt_cv_deplibs_check_method='unknown'
6576 # Need to set the preceding variable on all platforms that support
6577 # interlibrary dependencies.
6578 # 'none' -- dependencies not supported.
6579 # `unknown' -- same as none, but documents that we really don't know.
6580 # 'pass_all' -- all dependencies passed with no checks.
6581 # 'test_compile' -- check by making test program.
6582 # 'file_magic [[regex]]' -- check by looking for files in library path
6583 # which responds to the $file_magic_cmd with a given extended regex.
6584 # If you have `file' or equivalent on your system and you're not sure
6585 # whether `pass_all' will *always* work, you probably want this one.
6586
6587 case $host_os in
6588 aix[4-9]*)
6589 lt_cv_deplibs_check_method=pass_all
6590 ;;
6591
6592 beos*)
6593 lt_cv_deplibs_check_method=pass_all
6594 ;;
6595
6596 bsdi[45]*)
6597 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6598 lt_cv_file_magic_cmd='/usr/bin/file -L'
6599 lt_cv_file_magic_test_file=/shlib/libc.so
6600 ;;
6601
6602 cygwin*)
6603 # func_win32_libid is a shell function defined in ltmain.sh
6604 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6605 lt_cv_file_magic_cmd='func_win32_libid'
6606 ;;
6607
6608 mingw* | pw32*)
6609 # Base MSYS/MinGW do not provide the 'file' command needed by
6610 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6611 # unless we find 'file', for example because we are cross-compiling.
6612 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6613 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6614 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6615 lt_cv_file_magic_cmd='func_win32_libid'
6616 else
6617 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6618 lt_cv_file_magic_cmd='$OBJDUMP -f'
6619 fi
6620 ;;
6621
6622 cegcc*)
6623 # use the weaker test based on 'objdump'. See mingw*.
6624 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6625 lt_cv_file_magic_cmd='$OBJDUMP -f'
6626 ;;
6627
6628 darwin* | rhapsody*)
6629 lt_cv_deplibs_check_method=pass_all
6630 ;;
6631
6632 freebsd* | dragonfly*)
6633 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6634 case $host_cpu in
6635 i*86 )
6636 # Not sure whether the presence of OpenBSD here was a mistake.
6637 # Let's accept both of them until this is cleared up.
6638 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6639 lt_cv_file_magic_cmd=/usr/bin/file
6640 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6641 ;;
6642 esac
6643 else
6644 lt_cv_deplibs_check_method=pass_all
6645 fi
6646 ;;
6647
6648 gnu*)
6649 lt_cv_deplibs_check_method=pass_all
6650 ;;
6651
6652 haiku*)
6653 lt_cv_deplibs_check_method=pass_all
6654 ;;
6655
6656 hpux10.20* | hpux11*)
6657 lt_cv_file_magic_cmd=/usr/bin/file
6658 case $host_cpu in
6659 ia64*)
6660 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6661 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6662 ;;
6663 hppa*64*)
6664 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]'
6665 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6666 ;;
6667 *)
6668 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6669 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6670 ;;
6671 esac
6672 ;;
6673
6674 interix[3-9]*)
6675 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6677 ;;
6678
6679 irix5* | irix6* | nonstopux*)
6680 case $LD in
6681 *-32|*"-32 ") libmagic=32-bit;;
6682 *-n32|*"-n32 ") libmagic=N32;;
6683 *-64|*"-64 ") libmagic=64-bit;;
6684 *) libmagic=never-match;;
6685 esac
6686 lt_cv_deplibs_check_method=pass_all
6687 ;;
6688
6689 # This must be Linux ELF.
6690 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6691 lt_cv_deplibs_check_method=pass_all
6692 ;;
6693
6694 netbsd*)
6695 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6697 else
6698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6699 fi
6700 ;;
6701
6702 newos6*)
6703 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6704 lt_cv_file_magic_cmd=/usr/bin/file
6705 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6706 ;;
6707
6708 *nto* | *qnx*)
6709 lt_cv_deplibs_check_method=pass_all
6710 ;;
6711
6712 openbsd*)
6713 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6714 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6715 else
6716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6717 fi
6718 ;;
6719
6720 osf3* | osf4* | osf5*)
6721 lt_cv_deplibs_check_method=pass_all
6722 ;;
6723
6724 rdos*)
6725 lt_cv_deplibs_check_method=pass_all
6726 ;;
6727
6728 solaris*)
6729 lt_cv_deplibs_check_method=pass_all
6730 ;;
6731
6732 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6733 lt_cv_deplibs_check_method=pass_all
6734 ;;
6735
6736 sysv4 | sysv4.3*)
6737 case $host_vendor in
6738 motorola)
6739 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]'
6740 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6741 ;;
6742 ncr)
6743 lt_cv_deplibs_check_method=pass_all
6744 ;;
6745 sequent)
6746 lt_cv_file_magic_cmd='/bin/file'
6747 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6748 ;;
6749 sni)
6750 lt_cv_file_magic_cmd='/bin/file'
6751 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6752 lt_cv_file_magic_test_file=/lib/libc.so
6753 ;;
6754 siemens)
6755 lt_cv_deplibs_check_method=pass_all
6756 ;;
6757 pc)
6758 lt_cv_deplibs_check_method=pass_all
6759 ;;
6760 esac
6761 ;;
6762
6763 tpf*)
6764 lt_cv_deplibs_check_method=pass_all
6765 ;;
6766 esac
6767
6768 fi
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6770 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6771 file_magic_cmd=$lt_cv_file_magic_cmd
6772 deplibs_check_method=$lt_cv_deplibs_check_method
6773 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786 if test -n "$ac_tool_prefix"; then
6787 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6788 set dummy ${ac_tool_prefix}ar; ac_word=$2
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790 $as_echo_n "checking for $ac_word... " >&6; }
6791 if test "${ac_cv_prog_AR+set}" = set; then :
6792 $as_echo_n "(cached) " >&6
6793 else
6794 if test -n "$AR"; then
6795 ac_cv_prog_AR="$AR" # Let the user override the test.
6796 else
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6799 do
6800 IFS=$as_save_IFS
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_prog_AR="${ac_tool_prefix}ar"
6805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 break 2
6807 fi
6808 done
6809 done
6810 IFS=$as_save_IFS
6811
6812 fi
6813 fi
6814 AR=$ac_cv_prog_AR
6815 if test -n "$AR"; then
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6817 $as_echo "$AR" >&6; }
6818 else
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820 $as_echo "no" >&6; }
6821 fi
6822
6823
6824 fi
6825 if test -z "$ac_cv_prog_AR"; then
6826 ac_ct_AR=$AR
6827 # Extract the first word of "ar", so it can be a program name with args.
6828 set dummy ar; ac_word=$2
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 if test -n "$ac_ct_AR"; then
6835 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6836 else
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6839 do
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844 ac_cv_prog_ac_ct_AR="ar"
6845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6847 fi
6848 done
6849 done
6850 IFS=$as_save_IFS
6851
6852 fi
6853 fi
6854 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6855 if test -n "$ac_ct_AR"; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6857 $as_echo "$ac_ct_AR" >&6; }
6858 else
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 $as_echo "no" >&6; }
6861 fi
6862
6863 if test "x$ac_ct_AR" = x; then
6864 AR="false"
6865 else
6866 case $cross_compiling:$ac_tool_warned in
6867 yes:)
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6870 ac_tool_warned=yes ;;
6871 esac
6872 AR=$ac_ct_AR
6873 fi
6874 else
6875 AR="$ac_cv_prog_AR"
6876 fi
6877
6878 test -z "$AR" && AR=ar
6879 test -z "$AR_FLAGS" && AR_FLAGS=cru
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891 if test -n "$ac_tool_prefix"; then
6892 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6893 set dummy ${ac_tool_prefix}strip; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if test "${ac_cv_prog_STRIP+set}" = set; then :
6897 $as_echo_n "(cached) " >&6
6898 else
6899 if test -n "$STRIP"; then
6900 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6912 fi
6913 done
6914 done
6915 IFS=$as_save_IFS
6916
6917 fi
6918 fi
6919 STRIP=$ac_cv_prog_STRIP
6920 if test -n "$STRIP"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6922 $as_echo "$STRIP" >&6; }
6923 else
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6926 fi
6927
6928
6929 fi
6930 if test -z "$ac_cv_prog_STRIP"; then
6931 ac_ct_STRIP=$STRIP
6932 # Extract the first word of "strip", so it can be a program name with args.
6933 set dummy strip; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 if test -n "$ac_ct_STRIP"; then
6940 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949 ac_cv_prog_ac_ct_STRIP="strip"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6952 fi
6953 done
6954 done
6955 IFS=$as_save_IFS
6956
6957 fi
6958 fi
6959 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6960 if test -n "$ac_ct_STRIP"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6962 $as_echo "$ac_ct_STRIP" >&6; }
6963 else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6966 fi
6967
6968 if test "x$ac_ct_STRIP" = x; then
6969 STRIP=":"
6970 else
6971 case $cross_compiling:$ac_tool_warned in
6972 yes:)
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975 ac_tool_warned=yes ;;
6976 esac
6977 STRIP=$ac_ct_STRIP
6978 fi
6979 else
6980 STRIP="$ac_cv_prog_STRIP"
6981 fi
6982
6983 test -z "$STRIP" && STRIP=:
6984
6985
6986
6987
6988
6989
6990 if test -n "$ac_tool_prefix"; then
6991 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6992 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994 $as_echo_n "checking for $ac_word... " >&6; }
6995 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6998 if test -n "$RANLIB"; then
6999 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7000 else
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7003 do
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7008 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 break 2
7011 fi
7012 done
7013 done
7014 IFS=$as_save_IFS
7015
7016 fi
7017 fi
7018 RANLIB=$ac_cv_prog_RANLIB
7019 if test -n "$RANLIB"; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7021 $as_echo "$RANLIB" >&6; }
7022 else
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7025 fi
7026
7027
7028 fi
7029 if test -z "$ac_cv_prog_RANLIB"; then
7030 ac_ct_RANLIB=$RANLIB
7031 # Extract the first word of "ranlib", so it can be a program name with args.
7032 set dummy ranlib; ac_word=$2
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 if test -n "$ac_ct_RANLIB"; then
7039 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7040 else
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7043 do
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_prog_ac_ct_RANLIB="ranlib"
7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 break 2
7051 fi
7052 done
7053 done
7054 IFS=$as_save_IFS
7055
7056 fi
7057 fi
7058 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7059 if test -n "$ac_ct_RANLIB"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7061 $as_echo "$ac_ct_RANLIB" >&6; }
7062 else
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7065 fi
7066
7067 if test "x$ac_ct_RANLIB" = x; then
7068 RANLIB=":"
7069 else
7070 case $cross_compiling:$ac_tool_warned in
7071 yes:)
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7074 ac_tool_warned=yes ;;
7075 esac
7076 RANLIB=$ac_ct_RANLIB
7077 fi
7078 else
7079 RANLIB="$ac_cv_prog_RANLIB"
7080 fi
7081
7082 test -z "$RANLIB" && RANLIB=:
7083
7084
7085
7086
7087
7088
7089 # Determine commands to create old-style static archives.
7090 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7091 old_postinstall_cmds='chmod 644 $oldlib'
7092 old_postuninstall_cmds=
7093
7094 if test -n "$RANLIB"; then
7095 case $host_os in
7096 openbsd*)
7097 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7098 ;;
7099 *)
7100 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7101 ;;
7102 esac
7103 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7104 fi
7105
7106 case $host_os in
7107 darwin*)
7108 lock_old_archive_extraction=yes ;;
7109 *)
7110 lock_old_archive_extraction=no ;;
7111 esac
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151 # If no C compiler was specified, use CC.
7152 LTCC=${LTCC-"$CC"}
7153
7154 # If no C compiler flags were specified, use CFLAGS.
7155 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7156
7157 # Allow CC to be a program name with arguments.
7158 compiler=$CC
7159
7160
7161 # Check for command to grab the raw symbol name followed by C symbol from nm.
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7163 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7164 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167
7168 # These are sane defaults that work on at least a few old systems.
7169 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7170
7171 # Character class describing NM global symbol codes.
7172 symcode='[BCDEGRST]'
7173
7174 # Regexp to match symbols that can be accessed directly from C.
7175 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7176
7177 # Define system-specific variables.
7178 case $host_os in
7179 aix*)
7180 symcode='[BCDT]'
7181 ;;
7182 cygwin* | mingw* | pw32* | cegcc*)
7183 symcode='[ABCDGISTW]'
7184 ;;
7185 hpux*)
7186 if test "$host_cpu" = ia64; then
7187 symcode='[ABCDEGRST]'
7188 fi
7189 ;;
7190 irix* | nonstopux*)
7191 symcode='[BCDEGRST]'
7192 ;;
7193 osf*)
7194 symcode='[BCDEGQRST]'
7195 ;;
7196 solaris*)
7197 symcode='[BDRT]'
7198 ;;
7199 sco3.2v5*)
7200 symcode='[DT]'
7201 ;;
7202 sysv4.2uw2*)
7203 symcode='[DT]'
7204 ;;
7205 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7206 symcode='[ABDT]'
7207 ;;
7208 sysv4)
7209 symcode='[DFNSTU]'
7210 ;;
7211 esac
7212
7213 # If we're using GNU nm, then use its standard symbol codes.
7214 case `$NM -V 2>&1` in
7215 *GNU* | *'with BFD'*)
7216 symcode='[ABCDGIRSTW]' ;;
7217 esac
7218
7219 # Transform an extracted symbol line into a proper C declaration.
7220 # Some systems (esp. on ia64) link data and code symbols differently,
7221 # so use this general approach.
7222 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7223
7224 # Transform an extracted symbol line into symbol name and symbol address
7225 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7226 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'"
7227
7228 # Handle CRLF in mingw tool chain
7229 opt_cr=
7230 case $build_os in
7231 mingw*)
7232 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7233 ;;
7234 esac
7235
7236 # Try without a prefix underscore, then with it.
7237 for ac_symprfx in "" "_"; do
7238
7239 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7240 symxfrm="\\1 $ac_symprfx\\2 \\2"
7241
7242 # Write the raw and C identifiers.
7243 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7244 # Fake it for dumpbin and say T for any non-static function
7245 # and D for any global variable.
7246 # Also find C++ and __fastcall symbols from MSVC++,
7247 # which start with @ or ?.
7248 lt_cv_sys_global_symbol_pipe="$AWK '"\
7249 " {last_section=section; section=\$ 3};"\
7250 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7251 " \$ 0!~/External *\|/{next};"\
7252 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7253 " {if(hide[section]) next};"\
7254 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7255 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7256 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7257 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7258 " ' prfx=^$ac_symprfx"
7259 else
7260 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7261 fi
7262
7263 # Check to see that the pipe works correctly.
7264 pipe_works=no
7265
7266 rm -f conftest*
7267 cat > conftest.$ac_ext <<_LT_EOF
7268 #ifdef __cplusplus
7269 extern "C" {
7270 #endif
7271 char nm_test_var;
7272 void nm_test_func(void);
7273 void nm_test_func(void){}
7274 #ifdef __cplusplus
7275 }
7276 #endif
7277 int main(){nm_test_var='a';nm_test_func();return(0);}
7278 _LT_EOF
7279
7280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7281 (eval $ac_compile) 2>&5
7282 ac_status=$?
7283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7284 test $ac_status = 0; }; then
7285 # Now try to grab the symbols.
7286 nlist=conftest.nm
7287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7288 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7289 ac_status=$?
7290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7291 test $ac_status = 0; } && test -s "$nlist"; then
7292 # Try sorting and uniquifying the output.
7293 if sort "$nlist" | uniq > "$nlist"T; then
7294 mv -f "$nlist"T "$nlist"
7295 else
7296 rm -f "$nlist"T
7297 fi
7298
7299 # Make sure that we snagged all the symbols we need.
7300 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7301 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7302 cat <<_LT_EOF > conftest.$ac_ext
7303 #ifdef __cplusplus
7304 extern "C" {
7305 #endif
7306
7307 _LT_EOF
7308 # Now generate the symbol file.
7309 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7310
7311 cat <<_LT_EOF >> conftest.$ac_ext
7312
7313 /* The mapping between symbol names and symbols. */
7314 const struct {
7315 const char *name;
7316 void *address;
7317 }
7318 lt__PROGRAM__LTX_preloaded_symbols[] =
7319 {
7320 { "@PROGRAM@", (void *) 0 },
7321 _LT_EOF
7322 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7323 cat <<\_LT_EOF >> conftest.$ac_ext
7324 {0, (void *) 0}
7325 };
7326
7327 /* This works around a problem in FreeBSD linker */
7328 #ifdef FREEBSD_WORKAROUND
7329 static const void *lt_preloaded_setup() {
7330 return lt__PROGRAM__LTX_preloaded_symbols;
7331 }
7332 #endif
7333
7334 #ifdef __cplusplus
7335 }
7336 #endif
7337 _LT_EOF
7338 # Now try linking the two files.
7339 mv conftest.$ac_objext conftstm.$ac_objext
7340 lt_save_LIBS="$LIBS"
7341 lt_save_CFLAGS="$CFLAGS"
7342 LIBS="conftstm.$ac_objext"
7343 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7345 (eval $ac_link) 2>&5
7346 ac_status=$?
7347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7348 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7349 pipe_works=yes
7350 fi
7351 LIBS="$lt_save_LIBS"
7352 CFLAGS="$lt_save_CFLAGS"
7353 else
7354 echo "cannot find nm_test_func in $nlist" >&5
7355 fi
7356 else
7357 echo "cannot find nm_test_var in $nlist" >&5
7358 fi
7359 else
7360 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7361 fi
7362 else
7363 echo "$progname: failed program was:" >&5
7364 cat conftest.$ac_ext >&5
7365 fi
7366 rm -rf conftest* conftst*
7367
7368 # Do not use the global_symbol_pipe unless it works.
7369 if test "$pipe_works" = yes; then
7370 break
7371 else
7372 lt_cv_sys_global_symbol_pipe=
7373 fi
7374 done
7375
7376 fi
7377
7378 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7379 lt_cv_sys_global_symbol_to_cdecl=
7380 fi
7381 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7383 $as_echo "failed" >&6; }
7384 else
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7386 $as_echo "ok" >&6; }
7387 fi
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410 # Check whether --enable-libtool-lock was given.
7411 if test "${enable_libtool_lock+set}" = set; then :
7412 enableval=$enable_libtool_lock;
7413 fi
7414
7415 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7416
7417 # Some flags need to be propagated to the compiler or linker for good
7418 # libtool support.
7419 case $host in
7420 ia64-*-hpux*)
7421 # Find out which ABI we are using.
7422 echo 'int i;' > conftest.$ac_ext
7423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7424 (eval $ac_compile) 2>&5
7425 ac_status=$?
7426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7427 test $ac_status = 0; }; then
7428 case `/usr/bin/file conftest.$ac_objext` in
7429 *ELF-32*)
7430 HPUX_IA64_MODE="32"
7431 ;;
7432 *ELF-64*)
7433 HPUX_IA64_MODE="64"
7434 ;;
7435 esac
7436 fi
7437 rm -rf conftest*
7438 ;;
7439 *-*-irix6*)
7440 # Find out which ABI we are using.
7441 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7443 (eval $ac_compile) 2>&5
7444 ac_status=$?
7445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7446 test $ac_status = 0; }; then
7447 if test "$lt_cv_prog_gnu_ld" = yes; then
7448 case `/usr/bin/file conftest.$ac_objext` in
7449 *32-bit*)
7450 LD="${LD-ld} -melf32bsmip"
7451 ;;
7452 *N32*)
7453 LD="${LD-ld} -melf32bmipn32"
7454 ;;
7455 *64-bit*)
7456 LD="${LD-ld} -melf64bmip"
7457 ;;
7458 esac
7459 else
7460 case `/usr/bin/file conftest.$ac_objext` in
7461 *32-bit*)
7462 LD="${LD-ld} -32"
7463 ;;
7464 *N32*)
7465 LD="${LD-ld} -n32"
7466 ;;
7467 *64-bit*)
7468 LD="${LD-ld} -64"
7469 ;;
7470 esac
7471 fi
7472 fi
7473 rm -rf conftest*
7474 ;;
7475
7476 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7477 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7478 # Find out which ABI we are using.
7479 echo 'int i;' > conftest.$ac_ext
7480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7481 (eval $ac_compile) 2>&5
7482 ac_status=$?
7483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7484 test $ac_status = 0; }; then
7485 case `/usr/bin/file conftest.o` in
7486 *32-bit*)
7487 case $host in
7488 x86_64-*kfreebsd*-gnu)
7489 LD="${LD-ld} -m elf_i386_fbsd"
7490 ;;
7491 x86_64-*linux*)
7492 case `/usr/bin/file conftest.o` in
7493 *x86-64*)
7494 LD="${LD-ld} -m elf32_x86_64"
7495 ;;
7496 *)
7497 LD="${LD-ld} -m elf_i386"
7498 ;;
7499 esac
7500 ;;
7501 powerpc64le-*linux*)
7502 LD="${LD-ld} -m elf32lppclinux"
7503 ;;
7504 powerpc64-*linux*)
7505 LD="${LD-ld} -m elf32ppclinux"
7506 ;;
7507 s390x-*linux*)
7508 LD="${LD-ld} -m elf_s390"
7509 ;;
7510 sparc64-*linux*)
7511 LD="${LD-ld} -m elf32_sparc"
7512 ;;
7513 esac
7514 ;;
7515 *64-bit*)
7516 case $host in
7517 x86_64-*kfreebsd*-gnu)
7518 LD="${LD-ld} -m elf_x86_64_fbsd"
7519 ;;
7520 x86_64-*linux*)
7521 LD="${LD-ld} -m elf_x86_64"
7522 ;;
7523 powerpcle-*linux*)
7524 LD="${LD-ld} -m elf64lppc"
7525 ;;
7526 powerpc-*linux*)
7527 LD="${LD-ld} -m elf64ppc"
7528 ;;
7529 s390*-*linux*|s390*-*tpf*)
7530 LD="${LD-ld} -m elf64_s390"
7531 ;;
7532 sparc*-*linux*)
7533 LD="${LD-ld} -m elf64_sparc"
7534 ;;
7535 esac
7536 ;;
7537 esac
7538 fi
7539 rm -rf conftest*
7540 ;;
7541
7542 *-*-sco3.2v5*)
7543 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7544 SAVE_CFLAGS="$CFLAGS"
7545 CFLAGS="$CFLAGS -belf"
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7547 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7548 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7549 $as_echo_n "(cached) " >&6
7550 else
7551 ac_ext=c
7552 ac_cpp='$CPP $CPPFLAGS'
7553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7556
7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h. */
7559
7560 int
7561 main ()
7562 {
7563
7564 ;
7565 return 0;
7566 }
7567 _ACEOF
7568 if ac_fn_c_try_link "$LINENO"; then :
7569 lt_cv_cc_needs_belf=yes
7570 else
7571 lt_cv_cc_needs_belf=no
7572 fi
7573 rm -f core conftest.err conftest.$ac_objext \
7574 conftest$ac_exeext conftest.$ac_ext
7575 ac_ext=c
7576 ac_cpp='$CPP $CPPFLAGS'
7577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7580
7581 fi
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7583 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7584 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7585 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7586 CFLAGS="$SAVE_CFLAGS"
7587 fi
7588 ;;
7589 sparc*-*solaris*)
7590 # Find out which ABI we are using.
7591 echo 'int i;' > conftest.$ac_ext
7592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7593 (eval $ac_compile) 2>&5
7594 ac_status=$?
7595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7596 test $ac_status = 0; }; then
7597 case `/usr/bin/file conftest.o` in
7598 *64-bit*)
7599 case $lt_cv_prog_gnu_ld in
7600 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7601 *)
7602 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7603 LD="${LD-ld} -64"
7604 fi
7605 ;;
7606 esac
7607 ;;
7608 esac
7609 fi
7610 rm -rf conftest*
7611 ;;
7612 esac
7613
7614 need_locks="$enable_libtool_lock"
7615
7616
7617 case $host_os in
7618 rhapsody* | darwin*)
7619 if test -n "$ac_tool_prefix"; then
7620 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7621 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 $as_echo_n "checking for $ac_word... " >&6; }
7624 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7625 $as_echo_n "(cached) " >&6
7626 else
7627 if test -n "$DSYMUTIL"; then
7628 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7629 else
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 for as_dir in $PATH
7632 do
7633 IFS=$as_save_IFS
7634 test -z "$as_dir" && as_dir=.
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7637 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 break 2
7640 fi
7641 done
7642 done
7643 IFS=$as_save_IFS
7644
7645 fi
7646 fi
7647 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7648 if test -n "$DSYMUTIL"; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7650 $as_echo "$DSYMUTIL" >&6; }
7651 else
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653 $as_echo "no" >&6; }
7654 fi
7655
7656
7657 fi
7658 if test -z "$ac_cv_prog_DSYMUTIL"; then
7659 ac_ct_DSYMUTIL=$DSYMUTIL
7660 # Extract the first word of "dsymutil", so it can be a program name with args.
7661 set dummy dsymutil; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7665 $as_echo_n "(cached) " >&6
7666 else
7667 if test -n "$ac_ct_DSYMUTIL"; then
7668 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7669 else
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 for as_dir in $PATH
7672 do
7673 IFS=$as_save_IFS
7674 test -z "$as_dir" && as_dir=.
7675 for ac_exec_ext in '' $ac_executable_extensions; do
7676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7677 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7679 break 2
7680 fi
7681 done
7682 done
7683 IFS=$as_save_IFS
7684
7685 fi
7686 fi
7687 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7688 if test -n "$ac_ct_DSYMUTIL"; then
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7690 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7691 else
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693 $as_echo "no" >&6; }
7694 fi
7695
7696 if test "x$ac_ct_DSYMUTIL" = x; then
7697 DSYMUTIL=":"
7698 else
7699 case $cross_compiling:$ac_tool_warned in
7700 yes:)
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7703 ac_tool_warned=yes ;;
7704 esac
7705 DSYMUTIL=$ac_ct_DSYMUTIL
7706 fi
7707 else
7708 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7709 fi
7710
7711 if test -n "$ac_tool_prefix"; then
7712 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7713 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715 $as_echo_n "checking for $ac_word... " >&6; }
7716 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7717 $as_echo_n "(cached) " >&6
7718 else
7719 if test -n "$NMEDIT"; then
7720 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7721 else
7722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723 for as_dir in $PATH
7724 do
7725 IFS=$as_save_IFS
7726 test -z "$as_dir" && as_dir=.
7727 for ac_exec_ext in '' $ac_executable_extensions; do
7728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7729 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 break 2
7732 fi
7733 done
7734 done
7735 IFS=$as_save_IFS
7736
7737 fi
7738 fi
7739 NMEDIT=$ac_cv_prog_NMEDIT
7740 if test -n "$NMEDIT"; then
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7742 $as_echo "$NMEDIT" >&6; }
7743 else
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745 $as_echo "no" >&6; }
7746 fi
7747
7748
7749 fi
7750 if test -z "$ac_cv_prog_NMEDIT"; then
7751 ac_ct_NMEDIT=$NMEDIT
7752 # Extract the first word of "nmedit", so it can be a program name with args.
7753 set dummy nmedit; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7757 $as_echo_n "(cached) " >&6
7758 else
7759 if test -n "$ac_ct_NMEDIT"; then
7760 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7764 do
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7772 fi
7773 done
7774 done
7775 IFS=$as_save_IFS
7776
7777 fi
7778 fi
7779 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7780 if test -n "$ac_ct_NMEDIT"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7782 $as_echo "$ac_ct_NMEDIT" >&6; }
7783 else
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7786 fi
7787
7788 if test "x$ac_ct_NMEDIT" = x; then
7789 NMEDIT=":"
7790 else
7791 case $cross_compiling:$ac_tool_warned in
7792 yes:)
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7795 ac_tool_warned=yes ;;
7796 esac
7797 NMEDIT=$ac_ct_NMEDIT
7798 fi
7799 else
7800 NMEDIT="$ac_cv_prog_NMEDIT"
7801 fi
7802
7803 if test -n "$ac_tool_prefix"; then
7804 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7805 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if test "${ac_cv_prog_LIPO+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 if test -n "$LIPO"; then
7812 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7813 else
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7816 do
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7821 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7824 fi
7825 done
7826 done
7827 IFS=$as_save_IFS
7828
7829 fi
7830 fi
7831 LIPO=$ac_cv_prog_LIPO
7832 if test -n "$LIPO"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7834 $as_echo "$LIPO" >&6; }
7835 else
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7838 fi
7839
7840
7841 fi
7842 if test -z "$ac_cv_prog_LIPO"; then
7843 ac_ct_LIPO=$LIPO
7844 # Extract the first word of "lipo", so it can be a program name with args.
7845 set dummy lipo; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 if test -n "$ac_ct_LIPO"; then
7852 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7853 else
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 for as_dir in $PATH
7856 do
7857 IFS=$as_save_IFS
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7861 ac_cv_prog_ac_ct_LIPO="lipo"
7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 break 2
7864 fi
7865 done
7866 done
7867 IFS=$as_save_IFS
7868
7869 fi
7870 fi
7871 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7872 if test -n "$ac_ct_LIPO"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7874 $as_echo "$ac_ct_LIPO" >&6; }
7875 else
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7878 fi
7879
7880 if test "x$ac_ct_LIPO" = x; then
7881 LIPO=":"
7882 else
7883 case $cross_compiling:$ac_tool_warned in
7884 yes:)
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7887 ac_tool_warned=yes ;;
7888 esac
7889 LIPO=$ac_ct_LIPO
7890 fi
7891 else
7892 LIPO="$ac_cv_prog_LIPO"
7893 fi
7894
7895 if test -n "$ac_tool_prefix"; then
7896 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7897 set dummy ${ac_tool_prefix}otool; ac_word=$2
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899 $as_echo_n "checking for $ac_word... " >&6; }
7900 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7901 $as_echo_n "(cached) " >&6
7902 else
7903 if test -n "$OTOOL"; then
7904 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7905 else
7906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 for as_dir in $PATH
7908 do
7909 IFS=$as_save_IFS
7910 test -z "$as_dir" && as_dir=.
7911 for ac_exec_ext in '' $ac_executable_extensions; do
7912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7913 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 break 2
7916 fi
7917 done
7918 done
7919 IFS=$as_save_IFS
7920
7921 fi
7922 fi
7923 OTOOL=$ac_cv_prog_OTOOL
7924 if test -n "$OTOOL"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7926 $as_echo "$OTOOL" >&6; }
7927 else
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7930 fi
7931
7932
7933 fi
7934 if test -z "$ac_cv_prog_OTOOL"; then
7935 ac_ct_OTOOL=$OTOOL
7936 # Extract the first word of "otool", so it can be a program name with args.
7937 set dummy otool; ac_word=$2
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7939 $as_echo_n "checking for $ac_word... " >&6; }
7940 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7941 $as_echo_n "(cached) " >&6
7942 else
7943 if test -n "$ac_ct_OTOOL"; then
7944 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7945 else
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 for as_dir in $PATH
7948 do
7949 IFS=$as_save_IFS
7950 test -z "$as_dir" && as_dir=.
7951 for ac_exec_ext in '' $ac_executable_extensions; do
7952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7953 ac_cv_prog_ac_ct_OTOOL="otool"
7954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 break 2
7956 fi
7957 done
7958 done
7959 IFS=$as_save_IFS
7960
7961 fi
7962 fi
7963 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7964 if test -n "$ac_ct_OTOOL"; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7966 $as_echo "$ac_ct_OTOOL" >&6; }
7967 else
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969 $as_echo "no" >&6; }
7970 fi
7971
7972 if test "x$ac_ct_OTOOL" = x; then
7973 OTOOL=":"
7974 else
7975 case $cross_compiling:$ac_tool_warned in
7976 yes:)
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7979 ac_tool_warned=yes ;;
7980 esac
7981 OTOOL=$ac_ct_OTOOL
7982 fi
7983 else
7984 OTOOL="$ac_cv_prog_OTOOL"
7985 fi
7986
7987 if test -n "$ac_tool_prefix"; then
7988 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7989 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991 $as_echo_n "checking for $ac_word... " >&6; }
7992 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 if test -n "$OTOOL64"; then
7996 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7997 else
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8000 do
8001 IFS=$as_save_IFS
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8005 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007 break 2
8008 fi
8009 done
8010 done
8011 IFS=$as_save_IFS
8012
8013 fi
8014 fi
8015 OTOOL64=$ac_cv_prog_OTOOL64
8016 if test -n "$OTOOL64"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8018 $as_echo "$OTOOL64" >&6; }
8019 else
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8022 fi
8023
8024
8025 fi
8026 if test -z "$ac_cv_prog_OTOOL64"; then
8027 ac_ct_OTOOL64=$OTOOL64
8028 # Extract the first word of "otool64", so it can be a program name with args.
8029 set dummy otool64; ac_word=$2
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031 $as_echo_n "checking for $ac_word... " >&6; }
8032 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8033 $as_echo_n "(cached) " >&6
8034 else
8035 if test -n "$ac_ct_OTOOL64"; then
8036 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8037 else
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8040 do
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8045 ac_cv_prog_ac_ct_OTOOL64="otool64"
8046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 break 2
8048 fi
8049 done
8050 done
8051 IFS=$as_save_IFS
8052
8053 fi
8054 fi
8055 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8056 if test -n "$ac_ct_OTOOL64"; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8058 $as_echo "$ac_ct_OTOOL64" >&6; }
8059 else
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061 $as_echo "no" >&6; }
8062 fi
8063
8064 if test "x$ac_ct_OTOOL64" = x; then
8065 OTOOL64=":"
8066 else
8067 case $cross_compiling:$ac_tool_warned in
8068 yes:)
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8071 ac_tool_warned=yes ;;
8072 esac
8073 OTOOL64=$ac_ct_OTOOL64
8074 fi
8075 else
8076 OTOOL64="$ac_cv_prog_OTOOL64"
8077 fi
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8106 $as_echo_n "checking for -single_module linker flag... " >&6; }
8107 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 lt_cv_apple_cc_single_mod=no
8111 if test -z "${LT_MULTI_MODULE}"; then
8112 # By default we will add the -single_module flag. You can override
8113 # by either setting the environment variable LT_MULTI_MODULE
8114 # non-empty at configure time, or by adding -multi_module to the
8115 # link flags.
8116 rm -rf libconftest.dylib*
8117 echo "int foo(void){return 1;}" > conftest.c
8118 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8119 -dynamiclib -Wl,-single_module conftest.c" >&5
8120 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8121 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8122 _lt_result=$?
8123 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8124 lt_cv_apple_cc_single_mod=yes
8125 else
8126 cat conftest.err >&5
8127 fi
8128 rm -rf libconftest.dylib*
8129 rm -f conftest.*
8130 fi
8131 fi
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8133 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8135 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8136 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8137 $as_echo_n "(cached) " >&6
8138 else
8139 lt_cv_ld_exported_symbols_list=no
8140 save_LDFLAGS=$LDFLAGS
8141 echo "_main" > conftest.sym
8142 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8145
8146 int
8147 main ()
8148 {
8149
8150 ;
8151 return 0;
8152 }
8153 _ACEOF
8154 if ac_fn_c_try_link "$LINENO"; then :
8155 lt_cv_ld_exported_symbols_list=yes
8156 else
8157 lt_cv_ld_exported_symbols_list=no
8158 fi
8159 rm -f core conftest.err conftest.$ac_objext \
8160 conftest$ac_exeext conftest.$ac_ext
8161 LDFLAGS="$save_LDFLAGS"
8162
8163 fi
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8165 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8167 $as_echo_n "checking for -force_load linker flag... " >&6; }
8168 if test "${lt_cv_ld_force_load+set}" = set; then :
8169 $as_echo_n "(cached) " >&6
8170 else
8171 lt_cv_ld_force_load=no
8172 cat > conftest.c << _LT_EOF
8173 int forced_loaded() { return 2;}
8174 _LT_EOF
8175 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8176 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8177 echo "$AR cru libconftest.a conftest.o" >&5
8178 $AR cru libconftest.a conftest.o 2>&5
8179 cat > conftest.c << _LT_EOF
8180 int main() { return 0;}
8181 _LT_EOF
8182 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8183 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8184 _lt_result=$?
8185 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8186 lt_cv_ld_force_load=yes
8187 else
8188 cat conftest.err >&5
8189 fi
8190 rm -f conftest.err libconftest.a conftest conftest.c
8191 rm -rf conftest.dSYM
8192
8193 fi
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8195 $as_echo "$lt_cv_ld_force_load" >&6; }
8196 case $host_os in
8197 rhapsody* | darwin1.[012])
8198 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8199 darwin1.*)
8200 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8201 darwin*) # darwin 5.x on
8202 # if running on 10.5 or later, the deployment target defaults
8203 # to the OS version, if on x86, and 10.4, the deployment
8204 # target defaults to 10.4. Don't you love it?
8205 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8206 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8207 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8208 10.[012][,.]*)
8209 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8210 10.*)
8211 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8212 esac
8213 ;;
8214 esac
8215 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8216 _lt_dar_single_mod='$single_module'
8217 fi
8218 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8219 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8220 else
8221 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8222 fi
8223 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8224 _lt_dsymutil='~$DSYMUTIL $lib || :'
8225 else
8226 _lt_dsymutil=
8227 fi
8228 ;;
8229 esac
8230
8231 for ac_header in dlfcn.h
8232 do :
8233 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8234 "
8235 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8236 cat >>confdefs.h <<_ACEOF
8237 #define HAVE_DLFCN_H 1
8238 _ACEOF
8239
8240 fi
8241
8242 done
8243
8244
8245
8246
8247
8248
8249 # Set options
8250
8251
8252
8253 enable_dlopen=no
8254
8255
8256 enable_win32_dll=no
8257
8258
8259 # Check whether --enable-shared was given.
8260 if test "${enable_shared+set}" = set; then :
8261 enableval=$enable_shared; p=${PACKAGE-default}
8262 case $enableval in
8263 yes) enable_shared=yes ;;
8264 no) enable_shared=no ;;
8265 *)
8266 enable_shared=no
8267 # Look at the argument we got. We use all the common list separators.
8268 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8269 for pkg in $enableval; do
8270 IFS="$lt_save_ifs"
8271 if test "X$pkg" = "X$p"; then
8272 enable_shared=yes
8273 fi
8274 done
8275 IFS="$lt_save_ifs"
8276 ;;
8277 esac
8278 else
8279 enable_shared=yes
8280 fi
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290 # Check whether --enable-static was given.
8291 if test "${enable_static+set}" = set; then :
8292 enableval=$enable_static; p=${PACKAGE-default}
8293 case $enableval in
8294 yes) enable_static=yes ;;
8295 no) enable_static=no ;;
8296 *)
8297 enable_static=no
8298 # Look at the argument we got. We use all the common list separators.
8299 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8300 for pkg in $enableval; do
8301 IFS="$lt_save_ifs"
8302 if test "X$pkg" = "X$p"; then
8303 enable_static=yes
8304 fi
8305 done
8306 IFS="$lt_save_ifs"
8307 ;;
8308 esac
8309 else
8310 enable_static=yes
8311 fi
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322 # Check whether --with-pic was given.
8323 if test "${with_pic+set}" = set; then :
8324 withval=$with_pic; pic_mode="$withval"
8325 else
8326 pic_mode=default
8327 fi
8328
8329
8330 test -z "$pic_mode" && pic_mode=default
8331
8332
8333
8334
8335
8336
8337
8338 # Check whether --enable-fast-install was given.
8339 if test "${enable_fast_install+set}" = set; then :
8340 enableval=$enable_fast_install; p=${PACKAGE-default}
8341 case $enableval in
8342 yes) enable_fast_install=yes ;;
8343 no) enable_fast_install=no ;;
8344 *)
8345 enable_fast_install=no
8346 # Look at the argument we got. We use all the common list separators.
8347 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8348 for pkg in $enableval; do
8349 IFS="$lt_save_ifs"
8350 if test "X$pkg" = "X$p"; then
8351 enable_fast_install=yes
8352 fi
8353 done
8354 IFS="$lt_save_ifs"
8355 ;;
8356 esac
8357 else
8358 enable_fast_install=yes
8359 fi
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371 # This can be used to rebuild libtool when needed
8372 LIBTOOL_DEPS="$ltmain"
8373
8374 # Always use our own libtool.
8375 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402 test -z "$LN_S" && LN_S="ln -s"
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417 if test -n "${ZSH_VERSION+set}" ; then
8418 setopt NO_GLOB_SUBST
8419 fi
8420
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8422 $as_echo_n "checking for objdir... " >&6; }
8423 if test "${lt_cv_objdir+set}" = set; then :
8424 $as_echo_n "(cached) " >&6
8425 else
8426 rm -f .libs 2>/dev/null
8427 mkdir .libs 2>/dev/null
8428 if test -d .libs; then
8429 lt_cv_objdir=.libs
8430 else
8431 # MS-DOS does not allow filenames that begin with a dot.
8432 lt_cv_objdir=_libs
8433 fi
8434 rmdir .libs 2>/dev/null
8435 fi
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8437 $as_echo "$lt_cv_objdir" >&6; }
8438 objdir=$lt_cv_objdir
8439
8440
8441
8442
8443
8444 cat >>confdefs.h <<_ACEOF
8445 #define LT_OBJDIR "$lt_cv_objdir/"
8446 _ACEOF
8447
8448
8449
8450
8451 case $host_os in
8452 aix3*)
8453 # AIX sometimes has problems with the GCC collect2 program. For some
8454 # reason, if we set the COLLECT_NAMES environment variable, the problems
8455 # vanish in a puff of smoke.
8456 if test "X${COLLECT_NAMES+set}" != Xset; then
8457 COLLECT_NAMES=
8458 export COLLECT_NAMES
8459 fi
8460 ;;
8461 esac
8462
8463 # Global variables:
8464 ofile=libtool
8465 can_build_shared=yes
8466
8467 # All known linkers require a `.a' archive for static linking (except MSVC,
8468 # which needs '.lib').
8469 libext=a
8470
8471 with_gnu_ld="$lt_cv_prog_gnu_ld"
8472
8473 old_CC="$CC"
8474 old_CFLAGS="$CFLAGS"
8475
8476 # Set sane defaults for various variables
8477 test -z "$CC" && CC=cc
8478 test -z "$LTCC" && LTCC=$CC
8479 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8480 test -z "$LD" && LD=ld
8481 test -z "$ac_objext" && ac_objext=o
8482
8483 for cc_temp in $compiler""; do
8484 case $cc_temp in
8485 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8486 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8487 \-*) ;;
8488 *) break;;
8489 esac
8490 done
8491 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8492
8493
8494 # Only perform the check for file, if the check method requires it
8495 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8496 case $deplibs_check_method in
8497 file_magic*)
8498 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8500 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8501 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 case $MAGIC_CMD in
8505 [\\/*] | ?:[\\/]*)
8506 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8507 ;;
8508 *)
8509 lt_save_MAGIC_CMD="$MAGIC_CMD"
8510 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8511 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8512 for ac_dir in $ac_dummy; do
8513 IFS="$lt_save_ifs"
8514 test -z "$ac_dir" && ac_dir=.
8515 if test -f $ac_dir/${ac_tool_prefix}file; then
8516 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8517 if test -n "$file_magic_test_file"; then
8518 case $deplibs_check_method in
8519 "file_magic "*)
8520 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8521 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8522 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8523 $EGREP "$file_magic_regex" > /dev/null; then
8524 :
8525 else
8526 cat <<_LT_EOF 1>&2
8527
8528 *** Warning: the command libtool uses to detect shared libraries,
8529 *** $file_magic_cmd, produces output that libtool cannot recognize.
8530 *** The result is that libtool may fail to recognize shared libraries
8531 *** as such. This will affect the creation of libtool libraries that
8532 *** depend on shared libraries, but programs linked with such libtool
8533 *** libraries will work regardless of this problem. Nevertheless, you
8534 *** may want to report the problem to your system manager and/or to
8535 *** bug-libtool@gnu.org
8536
8537 _LT_EOF
8538 fi ;;
8539 esac
8540 fi
8541 break
8542 fi
8543 done
8544 IFS="$lt_save_ifs"
8545 MAGIC_CMD="$lt_save_MAGIC_CMD"
8546 ;;
8547 esac
8548 fi
8549
8550 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8551 if test -n "$MAGIC_CMD"; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8553 $as_echo "$MAGIC_CMD" >&6; }
8554 else
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556 $as_echo "no" >&6; }
8557 fi
8558
8559
8560
8561
8562
8563 if test -z "$lt_cv_path_MAGIC_CMD"; then
8564 if test -n "$ac_tool_prefix"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8566 $as_echo_n "checking for file... " >&6; }
8567 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8568 $as_echo_n "(cached) " >&6
8569 else
8570 case $MAGIC_CMD in
8571 [\\/*] | ?:[\\/]*)
8572 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8573 ;;
8574 *)
8575 lt_save_MAGIC_CMD="$MAGIC_CMD"
8576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8577 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8578 for ac_dir in $ac_dummy; do
8579 IFS="$lt_save_ifs"
8580 test -z "$ac_dir" && ac_dir=.
8581 if test -f $ac_dir/file; then
8582 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8583 if test -n "$file_magic_test_file"; then
8584 case $deplibs_check_method in
8585 "file_magic "*)
8586 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8587 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8588 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8589 $EGREP "$file_magic_regex" > /dev/null; then
8590 :
8591 else
8592 cat <<_LT_EOF 1>&2
8593
8594 *** Warning: the command libtool uses to detect shared libraries,
8595 *** $file_magic_cmd, produces output that libtool cannot recognize.
8596 *** The result is that libtool may fail to recognize shared libraries
8597 *** as such. This will affect the creation of libtool libraries that
8598 *** depend on shared libraries, but programs linked with such libtool
8599 *** libraries will work regardless of this problem. Nevertheless, you
8600 *** may want to report the problem to your system manager and/or to
8601 *** bug-libtool@gnu.org
8602
8603 _LT_EOF
8604 fi ;;
8605 esac
8606 fi
8607 break
8608 fi
8609 done
8610 IFS="$lt_save_ifs"
8611 MAGIC_CMD="$lt_save_MAGIC_CMD"
8612 ;;
8613 esac
8614 fi
8615
8616 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8617 if test -n "$MAGIC_CMD"; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8619 $as_echo "$MAGIC_CMD" >&6; }
8620 else
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622 $as_echo "no" >&6; }
8623 fi
8624
8625
8626 else
8627 MAGIC_CMD=:
8628 fi
8629 fi
8630
8631 fi
8632 ;;
8633 esac
8634
8635 # Use C for the default configuration in the libtool script
8636
8637 lt_save_CC="$CC"
8638 ac_ext=c
8639 ac_cpp='$CPP $CPPFLAGS'
8640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8643
8644
8645 # Source file extension for C test sources.
8646 ac_ext=c
8647
8648 # Object file extension for compiled C test sources.
8649 objext=o
8650 objext=$objext
8651
8652 # Code to be used in simple compile tests
8653 lt_simple_compile_test_code="int some_variable = 0;"
8654
8655 # Code to be used in simple link tests
8656 lt_simple_link_test_code='int main(){return(0);}'
8657
8658
8659
8660
8661
8662
8663
8664 # If no C compiler was specified, use CC.
8665 LTCC=${LTCC-"$CC"}
8666
8667 # If no C compiler flags were specified, use CFLAGS.
8668 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8669
8670 # Allow CC to be a program name with arguments.
8671 compiler=$CC
8672
8673 # Save the default compiler, since it gets overwritten when the other
8674 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8675 compiler_DEFAULT=$CC
8676
8677 # save warnings/boilerplate of simple test code
8678 ac_outfile=conftest.$ac_objext
8679 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8680 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8681 _lt_compiler_boilerplate=`cat conftest.err`
8682 $RM conftest*
8683
8684 ac_outfile=conftest.$ac_objext
8685 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8686 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8687 _lt_linker_boilerplate=`cat conftest.err`
8688 $RM -r conftest*
8689
8690
8691 ## CAVEAT EMPTOR:
8692 ## There is no encapsulation within the following macros, do not change
8693 ## the running order or otherwise move them around unless you know exactly
8694 ## what you are doing...
8695 if test -n "$compiler"; then
8696
8697 lt_prog_compiler_no_builtin_flag=
8698
8699 if test "$GCC" = yes; then
8700 case $cc_basename in
8701 nvcc*)
8702 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8703 *)
8704 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8705 esac
8706
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8708 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8709 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 lt_cv_prog_compiler_rtti_exceptions=no
8713 ac_outfile=conftest.$ac_objext
8714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8715 lt_compiler_flag="-fno-rtti -fno-exceptions"
8716 # Insert the option either (1) after the last *FLAGS variable, or
8717 # (2) before a word containing "conftest.", or (3) at the end.
8718 # Note that $ac_compile itself does not contain backslashes and begins
8719 # with a dollar sign (not a hyphen), so the echo should work correctly.
8720 # The option is referenced via a variable to avoid confusing sed.
8721 lt_compile=`echo "$ac_compile" | $SED \
8722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8724 -e 's:$: $lt_compiler_flag:'`
8725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8726 (eval "$lt_compile" 2>conftest.err)
8727 ac_status=$?
8728 cat conftest.err >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 if (exit $ac_status) && test -s "$ac_outfile"; then
8731 # The compiler can only warn and ignore the option if not recognized
8732 # So say no if there are warnings other than the usual output.
8733 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8735 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8736 lt_cv_prog_compiler_rtti_exceptions=yes
8737 fi
8738 fi
8739 $RM conftest*
8740
8741 fi
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8743 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8744
8745 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8746 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8747 else
8748 :
8749 fi
8750
8751 fi
8752
8753
8754
8755
8756
8757
8758 lt_prog_compiler_wl=
8759 lt_prog_compiler_pic=
8760 lt_prog_compiler_static=
8761
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8763 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8764
8765 if test "$GCC" = yes; then
8766 lt_prog_compiler_wl='-Wl,'
8767 lt_prog_compiler_static='-static'
8768
8769 case $host_os in
8770 aix*)
8771 # All AIX code is PIC.
8772 if test "$host_cpu" = ia64; then
8773 # AIX 5 now supports IA64 processor
8774 lt_prog_compiler_static='-Bstatic'
8775 fi
8776 lt_prog_compiler_pic='-fPIC'
8777 ;;
8778
8779 amigaos*)
8780 case $host_cpu in
8781 powerpc)
8782 # see comment about AmigaOS4 .so support
8783 lt_prog_compiler_pic='-fPIC'
8784 ;;
8785 m68k)
8786 # FIXME: we need at least 68020 code to build shared libraries, but
8787 # adding the `-m68020' flag to GCC prevents building anything better,
8788 # like `-m68040'.
8789 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8790 ;;
8791 esac
8792 ;;
8793
8794 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8795 # PIC is the default for these OSes.
8796 ;;
8797
8798 mingw* | cygwin* | pw32* | os2* | cegcc*)
8799 # This hack is so that the source file can tell whether it is being
8800 # built for inclusion in a dll (and should export symbols for example).
8801 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8802 # (--disable-auto-import) libraries
8803 lt_prog_compiler_pic='-DDLL_EXPORT'
8804 ;;
8805
8806 darwin* | rhapsody*)
8807 # PIC is the default on this platform
8808 # Common symbols not allowed in MH_DYLIB files
8809 lt_prog_compiler_pic='-fno-common'
8810 ;;
8811
8812 haiku*)
8813 # PIC is the default for Haiku.
8814 # The "-static" flag exists, but is broken.
8815 lt_prog_compiler_static=
8816 ;;
8817
8818 hpux*)
8819 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8820 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8821 # sets the default TLS model and affects inlining.
8822 case $host_cpu in
8823 hppa*64*)
8824 # +Z the default
8825 ;;
8826 *)
8827 lt_prog_compiler_pic='-fPIC'
8828 ;;
8829 esac
8830 ;;
8831
8832 interix[3-9]*)
8833 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8834 # Instead, we relocate shared libraries at runtime.
8835 ;;
8836
8837 msdosdjgpp*)
8838 # Just because we use GCC doesn't mean we suddenly get shared libraries
8839 # on systems that don't support them.
8840 lt_prog_compiler_can_build_shared=no
8841 enable_shared=no
8842 ;;
8843
8844 *nto* | *qnx*)
8845 # QNX uses GNU C++, but need to define -shared option too, otherwise
8846 # it will coredump.
8847 lt_prog_compiler_pic='-fPIC -shared'
8848 ;;
8849
8850 sysv4*MP*)
8851 if test -d /usr/nec; then
8852 lt_prog_compiler_pic=-Kconform_pic
8853 fi
8854 ;;
8855
8856 *)
8857 lt_prog_compiler_pic='-fPIC'
8858 ;;
8859 esac
8860
8861 case $cc_basename in
8862 nvcc*) # Cuda Compiler Driver 2.2
8863 lt_prog_compiler_wl='-Xlinker '
8864 lt_prog_compiler_pic='-Xcompiler -fPIC'
8865 ;;
8866 esac
8867 else
8868 # PORTME Check for flag to pass linker flags through the system compiler.
8869 case $host_os in
8870 aix*)
8871 lt_prog_compiler_wl='-Wl,'
8872 if test "$host_cpu" = ia64; then
8873 # AIX 5 now supports IA64 processor
8874 lt_prog_compiler_static='-Bstatic'
8875 else
8876 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8877 fi
8878 ;;
8879
8880 mingw* | cygwin* | pw32* | os2* | cegcc*)
8881 # This hack is so that the source file can tell whether it is being
8882 # built for inclusion in a dll (and should export symbols for example).
8883 lt_prog_compiler_pic='-DDLL_EXPORT'
8884 ;;
8885
8886 hpux9* | hpux10* | hpux11*)
8887 lt_prog_compiler_wl='-Wl,'
8888 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8889 # not for PA HP-UX.
8890 case $host_cpu in
8891 hppa*64*|ia64*)
8892 # +Z the default
8893 ;;
8894 *)
8895 lt_prog_compiler_pic='+Z'
8896 ;;
8897 esac
8898 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8899 lt_prog_compiler_static='${wl}-a ${wl}archive'
8900 ;;
8901
8902 irix5* | irix6* | nonstopux*)
8903 lt_prog_compiler_wl='-Wl,'
8904 # PIC (with -KPIC) is the default.
8905 lt_prog_compiler_static='-non_shared'
8906 ;;
8907
8908 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8909 case $cc_basename in
8910 # old Intel for x86_64 which still supported -KPIC.
8911 ecc*)
8912 lt_prog_compiler_wl='-Wl,'
8913 lt_prog_compiler_pic='-KPIC'
8914 lt_prog_compiler_static='-static'
8915 ;;
8916 # icc used to be incompatible with GCC.
8917 # ICC 10 doesn't accept -KPIC any more.
8918 icc* | ifort*)
8919 lt_prog_compiler_wl='-Wl,'
8920 lt_prog_compiler_pic='-fPIC'
8921 lt_prog_compiler_static='-static'
8922 ;;
8923 # Lahey Fortran 8.1.
8924 lf95*)
8925 lt_prog_compiler_wl='-Wl,'
8926 lt_prog_compiler_pic='--shared'
8927 lt_prog_compiler_static='--static'
8928 ;;
8929 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8930 # Portland Group compilers (*not* the Pentium gcc compiler,
8931 # which looks to be a dead project)
8932 lt_prog_compiler_wl='-Wl,'
8933 lt_prog_compiler_pic='-fpic'
8934 lt_prog_compiler_static='-Bstatic'
8935 ;;
8936 ccc*)
8937 lt_prog_compiler_wl='-Wl,'
8938 # All Alpha code is PIC.
8939 lt_prog_compiler_static='-non_shared'
8940 ;;
8941 xl* | bgxl* | bgf* | mpixl*)
8942 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8943 lt_prog_compiler_wl='-Wl,'
8944 lt_prog_compiler_pic='-qpic'
8945 lt_prog_compiler_static='-qstaticlink'
8946 ;;
8947 *)
8948 case `$CC -V 2>&1 | sed 5q` in
8949 *Sun\ F* | *Sun*Fortran*)
8950 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8951 lt_prog_compiler_pic='-KPIC'
8952 lt_prog_compiler_static='-Bstatic'
8953 lt_prog_compiler_wl=''
8954 ;;
8955 *Sun\ C*)
8956 # Sun C 5.9
8957 lt_prog_compiler_pic='-KPIC'
8958 lt_prog_compiler_static='-Bstatic'
8959 lt_prog_compiler_wl='-Wl,'
8960 ;;
8961 esac
8962 ;;
8963 esac
8964 ;;
8965
8966 newsos6)
8967 lt_prog_compiler_pic='-KPIC'
8968 lt_prog_compiler_static='-Bstatic'
8969 ;;
8970
8971 *nto* | *qnx*)
8972 # QNX uses GNU C++, but need to define -shared option too, otherwise
8973 # it will coredump.
8974 lt_prog_compiler_pic='-fPIC -shared'
8975 ;;
8976
8977 osf3* | osf4* | osf5*)
8978 lt_prog_compiler_wl='-Wl,'
8979 # All OSF/1 code is PIC.
8980 lt_prog_compiler_static='-non_shared'
8981 ;;
8982
8983 rdos*)
8984 lt_prog_compiler_static='-non_shared'
8985 ;;
8986
8987 solaris*)
8988 lt_prog_compiler_pic='-KPIC'
8989 lt_prog_compiler_static='-Bstatic'
8990 case $cc_basename in
8991 f77* | f90* | f95*)
8992 lt_prog_compiler_wl='-Qoption ld ';;
8993 *)
8994 lt_prog_compiler_wl='-Wl,';;
8995 esac
8996 ;;
8997
8998 sunos4*)
8999 lt_prog_compiler_wl='-Qoption ld '
9000 lt_prog_compiler_pic='-PIC'
9001 lt_prog_compiler_static='-Bstatic'
9002 ;;
9003
9004 sysv4 | sysv4.2uw2* | sysv4.3*)
9005 lt_prog_compiler_wl='-Wl,'
9006 lt_prog_compiler_pic='-KPIC'
9007 lt_prog_compiler_static='-Bstatic'
9008 ;;
9009
9010 sysv4*MP*)
9011 if test -d /usr/nec ;then
9012 lt_prog_compiler_pic='-Kconform_pic'
9013 lt_prog_compiler_static='-Bstatic'
9014 fi
9015 ;;
9016
9017 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9018 lt_prog_compiler_wl='-Wl,'
9019 lt_prog_compiler_pic='-KPIC'
9020 lt_prog_compiler_static='-Bstatic'
9021 ;;
9022
9023 unicos*)
9024 lt_prog_compiler_wl='-Wl,'
9025 lt_prog_compiler_can_build_shared=no
9026 ;;
9027
9028 uts4*)
9029 lt_prog_compiler_pic='-pic'
9030 lt_prog_compiler_static='-Bstatic'
9031 ;;
9032
9033 *)
9034 lt_prog_compiler_can_build_shared=no
9035 ;;
9036 esac
9037 fi
9038
9039 case $host_os in
9040 # For platforms which do not support PIC, -DPIC is meaningless:
9041 *djgpp*)
9042 lt_prog_compiler_pic=
9043 ;;
9044 *)
9045 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9046 ;;
9047 esac
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9049 $as_echo "$lt_prog_compiler_pic" >&6; }
9050
9051
9052
9053
9054
9055
9056 #
9057 # Check to make sure the PIC flag actually works.
9058 #
9059 if test -n "$lt_prog_compiler_pic"; then
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9061 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9062 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9063 $as_echo_n "(cached) " >&6
9064 else
9065 lt_cv_prog_compiler_pic_works=no
9066 ac_outfile=conftest.$ac_objext
9067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9068 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9069 # Insert the option either (1) after the last *FLAGS variable, or
9070 # (2) before a word containing "conftest.", or (3) at the end.
9071 # Note that $ac_compile itself does not contain backslashes and begins
9072 # with a dollar sign (not a hyphen), so the echo should work correctly.
9073 # The option is referenced via a variable to avoid confusing sed.
9074 lt_compile=`echo "$ac_compile" | $SED \
9075 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9077 -e 's:$: $lt_compiler_flag:'`
9078 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9079 (eval "$lt_compile" 2>conftest.err)
9080 ac_status=$?
9081 cat conftest.err >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 if (exit $ac_status) && test -s "$ac_outfile"; then
9084 # The compiler can only warn and ignore the option if not recognized
9085 # So say no if there are warnings other than the usual output.
9086 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9087 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9088 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9089 lt_cv_prog_compiler_pic_works=yes
9090 fi
9091 fi
9092 $RM conftest*
9093
9094 fi
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9096 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9097
9098 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9099 case $lt_prog_compiler_pic in
9100 "" | " "*) ;;
9101 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9102 esac
9103 else
9104 lt_prog_compiler_pic=
9105 lt_prog_compiler_can_build_shared=no
9106 fi
9107
9108 fi
9109
9110
9111
9112
9113
9114
9115 #
9116 # Check to make sure the static flag actually works.
9117 #
9118 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9120 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9121 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9122 $as_echo_n "(cached) " >&6
9123 else
9124 lt_cv_prog_compiler_static_works=no
9125 save_LDFLAGS="$LDFLAGS"
9126 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9127 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9128 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9129 # The linker can only warn and ignore the option if not recognized
9130 # So say no if there are warnings
9131 if test -s conftest.err; then
9132 # Append any errors to the config.log.
9133 cat conftest.err 1>&5
9134 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9136 if diff conftest.exp conftest.er2 >/dev/null; then
9137 lt_cv_prog_compiler_static_works=yes
9138 fi
9139 else
9140 lt_cv_prog_compiler_static_works=yes
9141 fi
9142 fi
9143 $RM -r conftest*
9144 LDFLAGS="$save_LDFLAGS"
9145
9146 fi
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9148 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9149
9150 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9151 :
9152 else
9153 lt_prog_compiler_static=
9154 fi
9155
9156
9157
9158
9159
9160
9161
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9163 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9164 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9165 $as_echo_n "(cached) " >&6
9166 else
9167 lt_cv_prog_compiler_c_o=no
9168 $RM -r conftest 2>/dev/null
9169 mkdir conftest
9170 cd conftest
9171 mkdir out
9172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9173
9174 lt_compiler_flag="-o out/conftest2.$ac_objext"
9175 # Insert the option either (1) after the last *FLAGS variable, or
9176 # (2) before a word containing "conftest.", or (3) at the end.
9177 # Note that $ac_compile itself does not contain backslashes and begins
9178 # with a dollar sign (not a hyphen), so the echo should work correctly.
9179 lt_compile=`echo "$ac_compile" | $SED \
9180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9182 -e 's:$: $lt_compiler_flag:'`
9183 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9184 (eval "$lt_compile" 2>out/conftest.err)
9185 ac_status=$?
9186 cat out/conftest.err >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9189 then
9190 # The compiler can only warn and ignore the option if not recognized
9191 # So say no if there are warnings
9192 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9193 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9194 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9195 lt_cv_prog_compiler_c_o=yes
9196 fi
9197 fi
9198 chmod u+w . 2>&5
9199 $RM conftest*
9200 # SGI C++ compiler will create directory out/ii_files/ for
9201 # template instantiation
9202 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9203 $RM out/* && rmdir out
9204 cd ..
9205 $RM -r conftest
9206 $RM conftest*
9207
9208 fi
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9210 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9211
9212
9213
9214
9215
9216
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9218 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9219 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
9221 else
9222 lt_cv_prog_compiler_c_o=no
9223 $RM -r conftest 2>/dev/null
9224 mkdir conftest
9225 cd conftest
9226 mkdir out
9227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9228
9229 lt_compiler_flag="-o out/conftest2.$ac_objext"
9230 # Insert the option either (1) after the last *FLAGS variable, or
9231 # (2) before a word containing "conftest.", or (3) at the end.
9232 # Note that $ac_compile itself does not contain backslashes and begins
9233 # with a dollar sign (not a hyphen), so the echo should work correctly.
9234 lt_compile=`echo "$ac_compile" | $SED \
9235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9237 -e 's:$: $lt_compiler_flag:'`
9238 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9239 (eval "$lt_compile" 2>out/conftest.err)
9240 ac_status=$?
9241 cat out/conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9244 then
9245 # The compiler can only warn and ignore the option if not recognized
9246 # So say no if there are warnings
9247 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9248 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9249 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9250 lt_cv_prog_compiler_c_o=yes
9251 fi
9252 fi
9253 chmod u+w . 2>&5
9254 $RM conftest*
9255 # SGI C++ compiler will create directory out/ii_files/ for
9256 # template instantiation
9257 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9258 $RM out/* && rmdir out
9259 cd ..
9260 $RM -r conftest
9261 $RM conftest*
9262
9263 fi
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9265 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9266
9267
9268
9269
9270 hard_links="nottested"
9271 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9272 # do not overwrite the value of need_locks provided by the user
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9274 $as_echo_n "checking if we can lock with hard links... " >&6; }
9275 hard_links=yes
9276 $RM conftest*
9277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9278 touch conftest.a
9279 ln conftest.a conftest.b 2>&5 || hard_links=no
9280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9282 $as_echo "$hard_links" >&6; }
9283 if test "$hard_links" = no; then
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9285 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9286 need_locks=warn
9287 fi
9288 else
9289 need_locks=no
9290 fi
9291
9292
9293
9294
9295
9296
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9298 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9299
9300 runpath_var=
9301 allow_undefined_flag=
9302 always_export_symbols=no
9303 archive_cmds=
9304 archive_expsym_cmds=
9305 compiler_needs_object=no
9306 enable_shared_with_static_runtimes=no
9307 export_dynamic_flag_spec=
9308 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9309 hardcode_automatic=no
9310 hardcode_direct=no
9311 hardcode_direct_absolute=no
9312 hardcode_libdir_flag_spec=
9313 hardcode_libdir_flag_spec_ld=
9314 hardcode_libdir_separator=
9315 hardcode_minus_L=no
9316 hardcode_shlibpath_var=unsupported
9317 inherit_rpath=no
9318 link_all_deplibs=unknown
9319 module_cmds=
9320 module_expsym_cmds=
9321 old_archive_from_new_cmds=
9322 old_archive_from_expsyms_cmds=
9323 thread_safe_flag_spec=
9324 whole_archive_flag_spec=
9325 # include_expsyms should be a list of space-separated symbols to be *always*
9326 # included in the symbol list
9327 include_expsyms=
9328 # exclude_expsyms can be an extended regexp of symbols to exclude
9329 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9330 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9331 # as well as any symbol that contains `d'.
9332 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9333 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9334 # platforms (ab)use it in PIC code, but their linkers get confused if
9335 # the symbol is explicitly referenced. Since portable code cannot
9336 # rely on this symbol name, it's probably fine to never include it in
9337 # preloaded symbol tables.
9338 # Exclude shared library initialization/finalization symbols.
9339 extract_expsyms_cmds=
9340
9341 case $host_os in
9342 cygwin* | mingw* | pw32* | cegcc*)
9343 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9344 # When not using gcc, we currently assume that we are using
9345 # Microsoft Visual C++.
9346 if test "$GCC" != yes; then
9347 with_gnu_ld=no
9348 fi
9349 ;;
9350 interix*)
9351 # we just hope/assume this is gcc and not c89 (= MSVC++)
9352 with_gnu_ld=yes
9353 ;;
9354 openbsd*)
9355 with_gnu_ld=no
9356 ;;
9357 esac
9358
9359 ld_shlibs=yes
9360
9361 # On some targets, GNU ld is compatible enough with the native linker
9362 # that we're better off using the native interface for both.
9363 lt_use_gnu_ld_interface=no
9364 if test "$with_gnu_ld" = yes; then
9365 case $host_os in
9366 aix*)
9367 # The AIX port of GNU ld has always aspired to compatibility
9368 # with the native linker. However, as the warning in the GNU ld
9369 # block says, versions before 2.19.5* couldn't really create working
9370 # shared libraries, regardless of the interface used.
9371 case `$LD -v 2>&1` in
9372 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9373 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9374 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9375 *)
9376 lt_use_gnu_ld_interface=yes
9377 ;;
9378 esac
9379 ;;
9380 *)
9381 lt_use_gnu_ld_interface=yes
9382 ;;
9383 esac
9384 fi
9385
9386 if test "$lt_use_gnu_ld_interface" = yes; then
9387 # If archive_cmds runs LD, not CC, wlarc should be empty
9388 wlarc='${wl}'
9389
9390 # Set some defaults for GNU ld with shared library support. These
9391 # are reset later if shared libraries are not supported. Putting them
9392 # here allows them to be overridden if necessary.
9393 runpath_var=LD_RUN_PATH
9394 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9395 export_dynamic_flag_spec='${wl}--export-dynamic'
9396 # ancient GNU ld didn't support --whole-archive et. al.
9397 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9398 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9399 else
9400 whole_archive_flag_spec=
9401 fi
9402 supports_anon_versioning=no
9403 case `$LD -v 2>&1` in
9404 *GNU\ gold*) supports_anon_versioning=yes ;;
9405 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9406 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9407 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9408 *\ 2.11.*) ;; # other 2.11 versions
9409 *) supports_anon_versioning=yes ;;
9410 esac
9411
9412 # See if GNU ld supports shared libraries.
9413 case $host_os in
9414 aix[3-9]*)
9415 # On AIX/PPC, the GNU linker is very broken
9416 if test "$host_cpu" != ia64; then
9417 ld_shlibs=no
9418 cat <<_LT_EOF 1>&2
9419
9420 *** Warning: the GNU linker, at least up to release 2.19, is reported
9421 *** to be unable to reliably create shared libraries on AIX.
9422 *** Therefore, libtool is disabling shared libraries support. If you
9423 *** really care for shared libraries, you may want to install binutils
9424 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9425 *** You will then need to restart the configuration process.
9426
9427 _LT_EOF
9428 fi
9429 ;;
9430
9431 amigaos*)
9432 case $host_cpu in
9433 powerpc)
9434 # see comment about AmigaOS4 .so support
9435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9436 archive_expsym_cmds=''
9437 ;;
9438 m68k)
9439 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)'
9440 hardcode_libdir_flag_spec='-L$libdir'
9441 hardcode_minus_L=yes
9442 ;;
9443 esac
9444 ;;
9445
9446 beos*)
9447 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9448 allow_undefined_flag=unsupported
9449 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9450 # support --undefined. This deserves some investigation. FIXME
9451 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9452 else
9453 ld_shlibs=no
9454 fi
9455 ;;
9456
9457 cygwin* | mingw* | pw32* | cegcc*)
9458 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9459 # as there is no search path for DLLs.
9460 hardcode_libdir_flag_spec='-L$libdir'
9461 export_dynamic_flag_spec='${wl}--export-all-symbols'
9462 allow_undefined_flag=unsupported
9463 always_export_symbols=no
9464 enable_shared_with_static_runtimes=yes
9465 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9466
9467 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9469 # If the export-symbols file already is a .def file (1st line
9470 # is EXPORTS), use it as is; otherwise, prepend...
9471 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9472 cp $export_symbols $output_objdir/$soname.def;
9473 else
9474 echo EXPORTS > $output_objdir/$soname.def;
9475 cat $export_symbols >> $output_objdir/$soname.def;
9476 fi~
9477 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9478 else
9479 ld_shlibs=no
9480 fi
9481 ;;
9482
9483 haiku*)
9484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9485 link_all_deplibs=yes
9486 ;;
9487
9488 interix[3-9]*)
9489 hardcode_direct=no
9490 hardcode_shlibpath_var=no
9491 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9492 export_dynamic_flag_spec='${wl}-E'
9493 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9494 # Instead, shared libraries are loaded at an image base (0x10000000 by
9495 # default) and relocated if they conflict, which is a slow very memory
9496 # consuming and fragmenting process. To avoid this, we pick a random,
9497 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9498 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9499 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9500 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'
9501 ;;
9502
9503 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9504 tmp_diet=no
9505 if test "$host_os" = linux-dietlibc; then
9506 case $cc_basename in
9507 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9508 esac
9509 fi
9510 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9511 && test "$tmp_diet" = no
9512 then
9513 tmp_addflag=' $pic_flag'
9514 tmp_sharedflag='-shared'
9515 case $cc_basename,$host_cpu in
9516 pgcc*) # Portland Group C compiler
9517 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'
9518 tmp_addflag=' $pic_flag'
9519 ;;
9520 pgf77* | pgf90* | pgf95* | pgfortran*)
9521 # Portland Group f77 and f90 compilers
9522 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'
9523 tmp_addflag=' $pic_flag -Mnomain' ;;
9524 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9525 tmp_addflag=' -i_dynamic' ;;
9526 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9527 tmp_addflag=' -i_dynamic -nofor_main' ;;
9528 ifc* | ifort*) # Intel Fortran compiler
9529 tmp_addflag=' -nofor_main' ;;
9530 lf95*) # Lahey Fortran 8.1
9531 whole_archive_flag_spec=
9532 tmp_sharedflag='--shared' ;;
9533 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9534 tmp_sharedflag='-qmkshrobj'
9535 tmp_addflag= ;;
9536 nvcc*) # Cuda Compiler Driver 2.2
9537 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'
9538 compiler_needs_object=yes
9539 ;;
9540 esac
9541 case `$CC -V 2>&1 | sed 5q` in
9542 *Sun\ C*) # Sun C 5.9
9543 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'
9544 compiler_needs_object=yes
9545 tmp_sharedflag='-G' ;;
9546 *Sun\ F*) # Sun Fortran 8.3
9547 tmp_sharedflag='-G' ;;
9548 esac
9549 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9550
9551 if test "x$supports_anon_versioning" = xyes; then
9552 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9553 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9554 echo "local: *; };" >> $output_objdir/$libname.ver~
9555 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9556 fi
9557
9558 case $cc_basename in
9559 xlf* | bgf* | bgxlf* | mpixlf*)
9560 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9561 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9562 hardcode_libdir_flag_spec=
9563 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9564 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9565 if test "x$supports_anon_versioning" = xyes; then
9566 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9567 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9568 echo "local: *; };" >> $output_objdir/$libname.ver~
9569 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9570 fi
9571 ;;
9572 esac
9573 else
9574 ld_shlibs=no
9575 fi
9576 ;;
9577
9578 netbsd*)
9579 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9580 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9581 wlarc=
9582 else
9583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9585 fi
9586 ;;
9587
9588 solaris*)
9589 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9590 ld_shlibs=no
9591 cat <<_LT_EOF 1>&2
9592
9593 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9594 *** create shared libraries on Solaris systems. Therefore, libtool
9595 *** is disabling shared libraries support. We urge you to upgrade GNU
9596 *** binutils to release 2.9.1 or newer. Another option is to modify
9597 *** your PATH or compiler configuration so that the native linker is
9598 *** used, and then restart.
9599
9600 _LT_EOF
9601 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9603 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9604 else
9605 ld_shlibs=no
9606 fi
9607 ;;
9608
9609 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9610 case `$LD -v 2>&1` in
9611 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9612 ld_shlibs=no
9613 cat <<_LT_EOF 1>&2
9614
9615 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9616 *** reliably create shared libraries on SCO systems. Therefore, libtool
9617 *** is disabling shared libraries support. We urge you to upgrade GNU
9618 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9619 *** your PATH or compiler configuration so that the native linker is
9620 *** used, and then restart.
9621
9622 _LT_EOF
9623 ;;
9624 *)
9625 # For security reasons, it is highly recommended that you always
9626 # use absolute paths for naming shared libraries, and exclude the
9627 # DT_RUNPATH tag from executables and libraries. But doing so
9628 # requires that you compile everything twice, which is a pain.
9629 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9630 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9632 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9633 else
9634 ld_shlibs=no
9635 fi
9636 ;;
9637 esac
9638 ;;
9639
9640 sunos4*)
9641 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9642 wlarc=
9643 hardcode_direct=yes
9644 hardcode_shlibpath_var=no
9645 ;;
9646
9647 *)
9648 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9650 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9651 else
9652 ld_shlibs=no
9653 fi
9654 ;;
9655 esac
9656
9657 if test "$ld_shlibs" = no; then
9658 runpath_var=
9659 hardcode_libdir_flag_spec=
9660 export_dynamic_flag_spec=
9661 whole_archive_flag_spec=
9662 fi
9663 else
9664 # PORTME fill in a description of your system's linker (not GNU ld)
9665 case $host_os in
9666 aix3*)
9667 allow_undefined_flag=unsupported
9668 always_export_symbols=yes
9669 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'
9670 # Note: this linker hardcodes the directories in LIBPATH if there
9671 # are no directories specified by -L.
9672 hardcode_minus_L=yes
9673 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9674 # Neither direct hardcoding nor static linking is supported with a
9675 # broken collect2.
9676 hardcode_direct=unsupported
9677 fi
9678 ;;
9679
9680 aix[4-9]*)
9681 if test "$host_cpu" = ia64; then
9682 # On IA64, the linker does run time linking by default, so we don't
9683 # have to do anything special.
9684 aix_use_runtimelinking=no
9685 exp_sym_flag='-Bexport'
9686 no_entry_flag=""
9687 else
9688 # If we're using GNU nm, then we don't want the "-C" option.
9689 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9690 # Also, AIX nm treats weak defined symbols like other global
9691 # defined symbols, whereas GNU nm marks them as "W".
9692 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9693 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'
9694 else
9695 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9696 fi
9697 aix_use_runtimelinking=no
9698
9699 # Test if we are trying to use run time linking or normal
9700 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9701 # need to do runtime linking.
9702 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9703 for ld_flag in $LDFLAGS; do
9704 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9705 aix_use_runtimelinking=yes
9706 break
9707 fi
9708 done
9709 ;;
9710 esac
9711
9712 exp_sym_flag='-bexport'
9713 no_entry_flag='-bnoentry'
9714 fi
9715
9716 # When large executables or shared objects are built, AIX ld can
9717 # have problems creating the table of contents. If linking a library
9718 # or program results in "error TOC overflow" add -mminimal-toc to
9719 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9720 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9721
9722 archive_cmds=''
9723 hardcode_direct=yes
9724 hardcode_direct_absolute=yes
9725 hardcode_libdir_separator=':'
9726 link_all_deplibs=yes
9727 file_list_spec='${wl}-f,'
9728
9729 if test "$GCC" = yes; then
9730 case $host_os in aix4.[012]|aix4.[012].*)
9731 # We only want to do this on AIX 4.2 and lower, the check
9732 # below for broken collect2 doesn't work under 4.3+
9733 collect2name=`${CC} -print-prog-name=collect2`
9734 if test -f "$collect2name" &&
9735 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9736 then
9737 # We have reworked collect2
9738 :
9739 else
9740 # We have old collect2
9741 hardcode_direct=unsupported
9742 # It fails to find uninstalled libraries when the uninstalled
9743 # path is not listed in the libpath. Setting hardcode_minus_L
9744 # to unsupported forces relinking
9745 hardcode_minus_L=yes
9746 hardcode_libdir_flag_spec='-L$libdir'
9747 hardcode_libdir_separator=
9748 fi
9749 ;;
9750 esac
9751 shared_flag='-shared'
9752 if test "$aix_use_runtimelinking" = yes; then
9753 shared_flag="$shared_flag "'${wl}-G'
9754 fi
9755 else
9756 # not using gcc
9757 if test "$host_cpu" = ia64; then
9758 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9759 # chokes on -Wl,-G. The following line is correct:
9760 shared_flag='-G'
9761 else
9762 if test "$aix_use_runtimelinking" = yes; then
9763 shared_flag='${wl}-G'
9764 else
9765 shared_flag='${wl}-bM:SRE'
9766 fi
9767 fi
9768 fi
9769
9770 export_dynamic_flag_spec='${wl}-bexpall'
9771 # It seems that -bexpall does not export symbols beginning with
9772 # underscore (_), so it is better to generate a list of symbols to export.
9773 always_export_symbols=yes
9774 if test "$aix_use_runtimelinking" = yes; then
9775 # Warning - without using the other runtime loading flags (-brtl),
9776 # -berok will link without error, but may produce a broken library.
9777 allow_undefined_flag='-berok'
9778 # Determine the default libpath from the value encoded in an
9779 # empty executable.
9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h. */
9782
9783 int
9784 main ()
9785 {
9786
9787 ;
9788 return 0;
9789 }
9790 _ACEOF
9791 if ac_fn_c_try_link "$LINENO"; then :
9792
9793 lt_aix_libpath_sed='
9794 /Import File Strings/,/^$/ {
9795 /^0/ {
9796 s/^0 *\(.*\)$/\1/
9797 p
9798 }
9799 }'
9800 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9801 # Check for a 64-bit object if we didn't find anything.
9802 if test -z "$aix_libpath"; then
9803 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9804 fi
9805 fi
9806 rm -f core conftest.err conftest.$ac_objext \
9807 conftest$ac_exeext conftest.$ac_ext
9808 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9809
9810 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9811 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"
9812 else
9813 if test "$host_cpu" = ia64; then
9814 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9815 allow_undefined_flag="-z nodefs"
9816 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"
9817 else
9818 # Determine the default libpath from the value encoded in an
9819 # empty executable.
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9822
9823 int
9824 main ()
9825 {
9826
9827 ;
9828 return 0;
9829 }
9830 _ACEOF
9831 if ac_fn_c_try_link "$LINENO"; then :
9832
9833 lt_aix_libpath_sed='
9834 /Import File Strings/,/^$/ {
9835 /^0/ {
9836 s/^0 *\(.*\)$/\1/
9837 p
9838 }
9839 }'
9840 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9841 # Check for a 64-bit object if we didn't find anything.
9842 if test -z "$aix_libpath"; then
9843 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9844 fi
9845 fi
9846 rm -f core conftest.err conftest.$ac_objext \
9847 conftest$ac_exeext conftest.$ac_ext
9848 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9849
9850 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9851 # Warning - without using the other run time loading flags,
9852 # -berok will link without error, but may produce a broken library.
9853 no_undefined_flag=' ${wl}-bernotok'
9854 allow_undefined_flag=' ${wl}-berok'
9855 if test "$with_gnu_ld" = yes; then
9856 # We only use this code for GNU lds that support --whole-archive.
9857 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9858 else
9859 # Exported symbols can be pulled into shared objects from archives
9860 whole_archive_flag_spec='$convenience'
9861 fi
9862 archive_cmds_need_lc=yes
9863 # This is similar to how AIX traditionally builds its shared libraries.
9864 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'
9865 fi
9866 fi
9867 ;;
9868
9869 amigaos*)
9870 case $host_cpu in
9871 powerpc)
9872 # see comment about AmigaOS4 .so support
9873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9874 archive_expsym_cmds=''
9875 ;;
9876 m68k)
9877 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)'
9878 hardcode_libdir_flag_spec='-L$libdir'
9879 hardcode_minus_L=yes
9880 ;;
9881 esac
9882 ;;
9883
9884 bsdi[45]*)
9885 export_dynamic_flag_spec=-rdynamic
9886 ;;
9887
9888 cygwin* | mingw* | pw32* | cegcc*)
9889 # When not using gcc, we currently assume that we are using
9890 # Microsoft Visual C++.
9891 # hardcode_libdir_flag_spec is actually meaningless, as there is
9892 # no search path for DLLs.
9893 hardcode_libdir_flag_spec=' '
9894 allow_undefined_flag=unsupported
9895 # Tell ltmain to make .lib files, not .a files.
9896 libext=lib
9897 # Tell ltmain to make .dll files, not .so files.
9898 shrext_cmds=".dll"
9899 # FIXME: Setting linknames here is a bad hack.
9900 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9901 # The linker will automatically build a .lib file if we build a DLL.
9902 old_archive_from_new_cmds='true'
9903 # FIXME: Should let the user specify the lib program.
9904 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9905 fix_srcfile_path='`cygpath -w "$srcfile"`'
9906 enable_shared_with_static_runtimes=yes
9907 ;;
9908
9909 darwin* | rhapsody*)
9910
9911
9912 archive_cmds_need_lc=no
9913 hardcode_direct=no
9914 hardcode_automatic=yes
9915 hardcode_shlibpath_var=unsupported
9916 if test "$lt_cv_ld_force_load" = "yes"; then
9917 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\"`'
9918 else
9919 whole_archive_flag_spec=''
9920 fi
9921 link_all_deplibs=yes
9922 allow_undefined_flag="$_lt_dar_allow_undefined"
9923 case $cc_basename in
9924 ifort*) _lt_dar_can_shared=yes ;;
9925 *) _lt_dar_can_shared=$GCC ;;
9926 esac
9927 if test "$_lt_dar_can_shared" = "yes"; then
9928 output_verbose_link_cmd=func_echo_all
9929 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9930 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9931 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}"
9932 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}"
9933
9934 else
9935 ld_shlibs=no
9936 fi
9937
9938 ;;
9939
9940 dgux*)
9941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9942 hardcode_libdir_flag_spec='-L$libdir'
9943 hardcode_shlibpath_var=no
9944 ;;
9945
9946 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9947 # support. Future versions do this automatically, but an explicit c++rt0.o
9948 # does not break anything, and helps significantly (at the cost of a little
9949 # extra space).
9950 freebsd2.2*)
9951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9952 hardcode_libdir_flag_spec='-R$libdir'
9953 hardcode_direct=yes
9954 hardcode_shlibpath_var=no
9955 ;;
9956
9957 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9958 freebsd2.*)
9959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9960 hardcode_direct=yes
9961 hardcode_minus_L=yes
9962 hardcode_shlibpath_var=no
9963 ;;
9964
9965 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9966 freebsd* | dragonfly*)
9967 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9968 hardcode_libdir_flag_spec='-R$libdir'
9969 hardcode_direct=yes
9970 hardcode_shlibpath_var=no
9971 ;;
9972
9973 hpux9*)
9974 if test "$GCC" = yes; then
9975 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'
9976 else
9977 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'
9978 fi
9979 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9980 hardcode_libdir_separator=:
9981 hardcode_direct=yes
9982
9983 # hardcode_minus_L: Not really in the search PATH,
9984 # but as the default location of the library.
9985 hardcode_minus_L=yes
9986 export_dynamic_flag_spec='${wl}-E'
9987 ;;
9988
9989 hpux10*)
9990 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9991 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9992 else
9993 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9994 fi
9995 if test "$with_gnu_ld" = no; then
9996 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9997 hardcode_libdir_flag_spec_ld='+b $libdir'
9998 hardcode_libdir_separator=:
9999 hardcode_direct=yes
10000 hardcode_direct_absolute=yes
10001 export_dynamic_flag_spec='${wl}-E'
10002 # hardcode_minus_L: Not really in the search PATH,
10003 # but as the default location of the library.
10004 hardcode_minus_L=yes
10005 fi
10006 ;;
10007
10008 hpux11*)
10009 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10010 case $host_cpu in
10011 hppa*64*)
10012 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10013 ;;
10014 ia64*)
10015 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10016 ;;
10017 *)
10018 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10019 ;;
10020 esac
10021 else
10022 case $host_cpu in
10023 hppa*64*)
10024 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 ;;
10026 ia64*)
10027 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10028 ;;
10029 *)
10030
10031 # Older versions of the 11.00 compiler do not understand -b yet
10032 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10034 $as_echo_n "checking if $CC understands -b... " >&6; }
10035 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10036 $as_echo_n "(cached) " >&6
10037 else
10038 lt_cv_prog_compiler__b=no
10039 save_LDFLAGS="$LDFLAGS"
10040 LDFLAGS="$LDFLAGS -b"
10041 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10042 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10043 # The linker can only warn and ignore the option if not recognized
10044 # So say no if there are warnings
10045 if test -s conftest.err; then
10046 # Append any errors to the config.log.
10047 cat conftest.err 1>&5
10048 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10049 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10050 if diff conftest.exp conftest.er2 >/dev/null; then
10051 lt_cv_prog_compiler__b=yes
10052 fi
10053 else
10054 lt_cv_prog_compiler__b=yes
10055 fi
10056 fi
10057 $RM -r conftest*
10058 LDFLAGS="$save_LDFLAGS"
10059
10060 fi
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10062 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10063
10064 if test x"$lt_cv_prog_compiler__b" = xyes; then
10065 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10066 else
10067 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10068 fi
10069
10070 ;;
10071 esac
10072 fi
10073 if test "$with_gnu_ld" = no; then
10074 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10075 hardcode_libdir_separator=:
10076
10077 case $host_cpu in
10078 hppa*64*|ia64*)
10079 hardcode_direct=no
10080 hardcode_shlibpath_var=no
10081 ;;
10082 *)
10083 hardcode_direct=yes
10084 hardcode_direct_absolute=yes
10085 export_dynamic_flag_spec='${wl}-E'
10086
10087 # hardcode_minus_L: Not really in the search PATH,
10088 # but as the default location of the library.
10089 hardcode_minus_L=yes
10090 ;;
10091 esac
10092 fi
10093 ;;
10094
10095 irix5* | irix6* | nonstopux*)
10096 if test "$GCC" = yes; then
10097 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'
10098 # Try to use the -exported_symbol ld option, if it does not
10099 # work, assume that -exports_file does not work either and
10100 # implicitly export all symbols.
10101 save_LDFLAGS="$LDFLAGS"
10102 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104 /* end confdefs.h. */
10105 int foo(void) {}
10106 _ACEOF
10107 if ac_fn_c_try_link "$LINENO"; then :
10108 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'
10109
10110 fi
10111 rm -f core conftest.err conftest.$ac_objext \
10112 conftest$ac_exeext conftest.$ac_ext
10113 LDFLAGS="$save_LDFLAGS"
10114 else
10115 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'
10116 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'
10117 fi
10118 archive_cmds_need_lc='no'
10119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10120 hardcode_libdir_separator=:
10121 inherit_rpath=yes
10122 link_all_deplibs=yes
10123 ;;
10124
10125 netbsd*)
10126 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10127 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10128 else
10129 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10130 fi
10131 hardcode_libdir_flag_spec='-R$libdir'
10132 hardcode_direct=yes
10133 hardcode_shlibpath_var=no
10134 ;;
10135
10136 newsos6)
10137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10138 hardcode_direct=yes
10139 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10140 hardcode_libdir_separator=:
10141 hardcode_shlibpath_var=no
10142 ;;
10143
10144 *nto* | *qnx*)
10145 ;;
10146
10147 openbsd*)
10148 if test -f /usr/libexec/ld.so; then
10149 hardcode_direct=yes
10150 hardcode_shlibpath_var=no
10151 hardcode_direct_absolute=yes
10152 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10153 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10154 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10155 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10156 export_dynamic_flag_spec='${wl}-E'
10157 else
10158 case $host_os in
10159 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10161 hardcode_libdir_flag_spec='-R$libdir'
10162 ;;
10163 *)
10164 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10165 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10166 ;;
10167 esac
10168 fi
10169 else
10170 ld_shlibs=no
10171 fi
10172 ;;
10173
10174 os2*)
10175 hardcode_libdir_flag_spec='-L$libdir'
10176 hardcode_minus_L=yes
10177 allow_undefined_flag=unsupported
10178 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'
10179 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10180 ;;
10181
10182 osf3*)
10183 if test "$GCC" = yes; then
10184 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10185 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'
10186 else
10187 allow_undefined_flag=' -expect_unresolved \*'
10188 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'
10189 fi
10190 archive_cmds_need_lc='no'
10191 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10192 hardcode_libdir_separator=:
10193 ;;
10194
10195 osf4* | osf5*) # as osf3* with the addition of -msym flag
10196 if test "$GCC" = yes; then
10197 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10198 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'
10199 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10200 else
10201 allow_undefined_flag=' -expect_unresolved \*'
10202 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'
10203 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~
10204 $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'
10205
10206 # Both c and cxx compiler support -rpath directly
10207 hardcode_libdir_flag_spec='-rpath $libdir'
10208 fi
10209 archive_cmds_need_lc='no'
10210 hardcode_libdir_separator=:
10211 ;;
10212
10213 solaris*)
10214 no_undefined_flag=' -z defs'
10215 if test "$GCC" = yes; then
10216 wlarc='${wl}'
10217 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10219 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10220 else
10221 case `$CC -V 2>&1` in
10222 *"Compilers 5.0"*)
10223 wlarc=''
10224 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10225 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10226 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10227 ;;
10228 *)
10229 wlarc='${wl}'
10230 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10231 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10232 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10233 ;;
10234 esac
10235 fi
10236 hardcode_libdir_flag_spec='-R$libdir'
10237 hardcode_shlibpath_var=no
10238 case $host_os in
10239 solaris2.[0-5] | solaris2.[0-5].*) ;;
10240 *)
10241 # The compiler driver will combine and reorder linker options,
10242 # but understands `-z linker_flag'. GCC discards it without `$wl',
10243 # but is careful enough not to reorder.
10244 # Supported since Solaris 2.6 (maybe 2.5.1?)
10245 if test "$GCC" = yes; then
10246 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10247 else
10248 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10249 fi
10250 ;;
10251 esac
10252 link_all_deplibs=yes
10253 ;;
10254
10255 sunos4*)
10256 if test "x$host_vendor" = xsequent; then
10257 # Use $CC to link under sequent, because it throws in some extra .o
10258 # files that make .init and .fini sections work.
10259 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10260 else
10261 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10262 fi
10263 hardcode_libdir_flag_spec='-L$libdir'
10264 hardcode_direct=yes
10265 hardcode_minus_L=yes
10266 hardcode_shlibpath_var=no
10267 ;;
10268
10269 sysv4)
10270 case $host_vendor in
10271 sni)
10272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10273 hardcode_direct=yes # is this really true???
10274 ;;
10275 siemens)
10276 ## LD is ld it makes a PLAMLIB
10277 ## CC just makes a GrossModule.
10278 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10279 reload_cmds='$CC -r -o $output$reload_objs'
10280 hardcode_direct=no
10281 ;;
10282 motorola)
10283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10284 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10285 ;;
10286 esac
10287 runpath_var='LD_RUN_PATH'
10288 hardcode_shlibpath_var=no
10289 ;;
10290
10291 sysv4.3*)
10292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10293 hardcode_shlibpath_var=no
10294 export_dynamic_flag_spec='-Bexport'
10295 ;;
10296
10297 sysv4*MP*)
10298 if test -d /usr/nec; then
10299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10300 hardcode_shlibpath_var=no
10301 runpath_var=LD_RUN_PATH
10302 hardcode_runpath_var=yes
10303 ld_shlibs=yes
10304 fi
10305 ;;
10306
10307 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10308 no_undefined_flag='${wl}-z,text'
10309 archive_cmds_need_lc=no
10310 hardcode_shlibpath_var=no
10311 runpath_var='LD_RUN_PATH'
10312
10313 if test "$GCC" = yes; then
10314 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10315 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10316 else
10317 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10318 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10319 fi
10320 ;;
10321
10322 sysv5* | sco3.2v5* | sco5v6*)
10323 # Note: We can NOT use -z defs as we might desire, because we do not
10324 # link with -lc, and that would cause any symbols used from libc to
10325 # always be unresolved, which means just about no library would
10326 # ever link correctly. If we're not using GNU ld we use -z text
10327 # though, which does catch some bad symbols but isn't as heavy-handed
10328 # as -z defs.
10329 no_undefined_flag='${wl}-z,text'
10330 allow_undefined_flag='${wl}-z,nodefs'
10331 archive_cmds_need_lc=no
10332 hardcode_shlibpath_var=no
10333 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10334 hardcode_libdir_separator=':'
10335 link_all_deplibs=yes
10336 export_dynamic_flag_spec='${wl}-Bexport'
10337 runpath_var='LD_RUN_PATH'
10338
10339 if test "$GCC" = yes; then
10340 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10341 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10342 else
10343 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10344 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10345 fi
10346 ;;
10347
10348 uts4*)
10349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10350 hardcode_libdir_flag_spec='-L$libdir'
10351 hardcode_shlibpath_var=no
10352 ;;
10353
10354 *)
10355 ld_shlibs=no
10356 ;;
10357 esac
10358
10359 if test x$host_vendor = xsni; then
10360 case $host in
10361 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10362 export_dynamic_flag_spec='${wl}-Blargedynsym'
10363 ;;
10364 esac
10365 fi
10366 fi
10367
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10369 $as_echo "$ld_shlibs" >&6; }
10370 test "$ld_shlibs" = no && can_build_shared=no
10371
10372 with_gnu_ld=$with_gnu_ld
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388 #
10389 # Do we need to explicitly link libc?
10390 #
10391 case "x$archive_cmds_need_lc" in
10392 x|xyes)
10393 # Assume -lc should be added
10394 archive_cmds_need_lc=yes
10395
10396 if test "$enable_shared" = yes && test "$GCC" = yes; then
10397 case $archive_cmds in
10398 *'~'*)
10399 # FIXME: we may have to deal with multi-command sequences.
10400 ;;
10401 '$CC '*)
10402 # Test whether the compiler implicitly links with -lc since on some
10403 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10404 # to ld, don't add -lc before -lgcc.
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10406 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10407 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10408 $as_echo_n "(cached) " >&6
10409 else
10410 $RM conftest*
10411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10412
10413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10414 (eval $ac_compile) 2>&5
10415 ac_status=$?
10416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10417 test $ac_status = 0; } 2>conftest.err; then
10418 soname=conftest
10419 lib=conftest
10420 libobjs=conftest.$ac_objext
10421 deplibs=
10422 wl=$lt_prog_compiler_wl
10423 pic_flag=$lt_prog_compiler_pic
10424 compiler_flags=-v
10425 linker_flags=-v
10426 verstring=
10427 output_objdir=.
10428 libname=conftest
10429 lt_save_allow_undefined_flag=$allow_undefined_flag
10430 allow_undefined_flag=
10431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10432 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10433 ac_status=$?
10434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10435 test $ac_status = 0; }
10436 then
10437 lt_cv_archive_cmds_need_lc=no
10438 else
10439 lt_cv_archive_cmds_need_lc=yes
10440 fi
10441 allow_undefined_flag=$lt_save_allow_undefined_flag
10442 else
10443 cat conftest.err 1>&5
10444 fi
10445 $RM conftest*
10446
10447 fi
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10449 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10450 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10451 ;;
10452 esac
10453 fi
10454 ;;
10455 esac
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10614 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10615
10616 if test "$GCC" = yes; then
10617 case $host_os in
10618 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10619 *) lt_awk_arg="/^libraries:/" ;;
10620 esac
10621 case $host_os in
10622 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10623 *) lt_sed_strip_eq="s,=/,/,g" ;;
10624 esac
10625 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10626 case $lt_search_path_spec in
10627 *\;*)
10628 # if the path contains ";" then we assume it to be the separator
10629 # otherwise default to the standard path separator (i.e. ":") - it is
10630 # assumed that no part of a normal pathname contains ";" but that should
10631 # okay in the real world where ";" in dirpaths is itself problematic.
10632 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10633 ;;
10634 *)
10635 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10636 ;;
10637 esac
10638 # Ok, now we have the path, separated by spaces, we can step through it
10639 # and add multilib dir if necessary.
10640 lt_tmp_lt_search_path_spec=
10641 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10642 for lt_sys_path in $lt_search_path_spec; do
10643 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10644 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10645 else
10646 test -d "$lt_sys_path" && \
10647 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10648 fi
10649 done
10650 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10651 BEGIN {RS=" "; FS="/|\n";} {
10652 lt_foo="";
10653 lt_count=0;
10654 for (lt_i = NF; lt_i > 0; lt_i--) {
10655 if ($lt_i != "" && $lt_i != ".") {
10656 if ($lt_i == "..") {
10657 lt_count++;
10658 } else {
10659 if (lt_count == 0) {
10660 lt_foo="/" $lt_i lt_foo;
10661 } else {
10662 lt_count--;
10663 }
10664 }
10665 }
10666 }
10667 if (lt_foo != "") { lt_freq[lt_foo]++; }
10668 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10669 }'`
10670 # AWK program above erroneously prepends '/' to C:/dos/paths
10671 # for these hosts.
10672 case $host_os in
10673 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10674 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10675 esac
10676 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10677 else
10678 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10679 fi
10680 library_names_spec=
10681 libname_spec='lib$name'
10682 soname_spec=
10683 shrext_cmds=".so"
10684 postinstall_cmds=
10685 postuninstall_cmds=
10686 finish_cmds=
10687 finish_eval=
10688 shlibpath_var=
10689 shlibpath_overrides_runpath=unknown
10690 version_type=none
10691 dynamic_linker="$host_os ld.so"
10692 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10693 need_lib_prefix=unknown
10694 hardcode_into_libs=no
10695
10696 # when you set need_version to no, make sure it does not cause -set_version
10697 # flags to be left without arguments
10698 need_version=unknown
10699
10700 case $host_os in
10701 aix3*)
10702 version_type=linux
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10704 shlibpath_var=LIBPATH
10705
10706 # AIX 3 has no versioning support, so we append a major version to the name.
10707 soname_spec='${libname}${release}${shared_ext}$major'
10708 ;;
10709
10710 aix[4-9]*)
10711 version_type=linux
10712 need_lib_prefix=no
10713 need_version=no
10714 hardcode_into_libs=yes
10715 if test "$host_cpu" = ia64; then
10716 # AIX 5 supports IA64
10717 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10718 shlibpath_var=LD_LIBRARY_PATH
10719 else
10720 # With GCC up to 2.95.x, collect2 would create an import file
10721 # for dependence libraries. The import file would start with
10722 # the line `#! .'. This would cause the generated library to
10723 # depend on `.', always an invalid library. This was fixed in
10724 # development snapshots of GCC prior to 3.0.
10725 case $host_os in
10726 aix4 | aix4.[01] | aix4.[01].*)
10727 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10728 echo ' yes '
10729 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10730 :
10731 else
10732 can_build_shared=no
10733 fi
10734 ;;
10735 esac
10736 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10737 # soname into executable. Probably we can add versioning support to
10738 # collect2, so additional links can be useful in future.
10739 if test "$aix_use_runtimelinking" = yes; then
10740 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10741 # instead of lib<name>.a to let people know that these are not
10742 # typical AIX shared libraries.
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744 else
10745 # We preserve .a as extension for shared libraries through AIX4.2
10746 # and later when we are not doing run time linking.
10747 library_names_spec='${libname}${release}.a $libname.a'
10748 soname_spec='${libname}${release}${shared_ext}$major'
10749 fi
10750 shlibpath_var=LIBPATH
10751 fi
10752 ;;
10753
10754 amigaos*)
10755 case $host_cpu in
10756 powerpc)
10757 # Since July 2007 AmigaOS4 officially supports .so libraries.
10758 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10760 ;;
10761 m68k)
10762 library_names_spec='$libname.ixlibrary $libname.a'
10763 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10764 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'
10765 ;;
10766 esac
10767 ;;
10768
10769 beos*)
10770 library_names_spec='${libname}${shared_ext}'
10771 dynamic_linker="$host_os ld.so"
10772 shlibpath_var=LIBRARY_PATH
10773 ;;
10774
10775 bsdi[45]*)
10776 version_type=linux
10777 need_version=no
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10779 soname_spec='${libname}${release}${shared_ext}$major'
10780 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10781 shlibpath_var=LD_LIBRARY_PATH
10782 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10783 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10784 # the default ld.so.conf also contains /usr/contrib/lib and
10785 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10786 # libtool to hard-code these into programs
10787 ;;
10788
10789 cygwin* | mingw* | pw32* | cegcc*)
10790 version_type=windows
10791 shrext_cmds=".dll"
10792 need_version=no
10793 need_lib_prefix=no
10794
10795 case $GCC,$host_os in
10796 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10797 library_names_spec='$libname.dll.a'
10798 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10799 postinstall_cmds='base_file=`basename \${file}`~
10800 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10801 dldir=$destdir/`dirname \$dlpath`~
10802 test -d \$dldir || mkdir -p \$dldir~
10803 $install_prog $dir/$dlname \$dldir/$dlname~
10804 chmod a+x \$dldir/$dlname~
10805 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10806 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10807 fi'
10808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10809 dlpath=$dir/\$dldll~
10810 $RM \$dlpath'
10811 shlibpath_overrides_runpath=yes
10812
10813 case $host_os in
10814 cygwin*)
10815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10817
10818 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10819 ;;
10820 mingw* | cegcc*)
10821 # MinGW DLLs use traditional 'lib' prefix
10822 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10823 ;;
10824 pw32*)
10825 # pw32 DLLs use 'pw' prefix rather than 'lib'
10826 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10827 ;;
10828 esac
10829 ;;
10830
10831 *)
10832 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10833 ;;
10834 esac
10835 dynamic_linker='Win32 ld.exe'
10836 # FIXME: first we should search . and the directory the executable is in
10837 shlibpath_var=PATH
10838 ;;
10839
10840 darwin* | rhapsody*)
10841 dynamic_linker="$host_os dyld"
10842 version_type=darwin
10843 need_lib_prefix=no
10844 need_version=no
10845 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10846 soname_spec='${libname}${release}${major}$shared_ext'
10847 shlibpath_overrides_runpath=yes
10848 shlibpath_var=DYLD_LIBRARY_PATH
10849 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10850
10851 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10852 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10853 ;;
10854
10855 dgux*)
10856 version_type=linux
10857 need_lib_prefix=no
10858 need_version=no
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10860 soname_spec='${libname}${release}${shared_ext}$major'
10861 shlibpath_var=LD_LIBRARY_PATH
10862 ;;
10863
10864 freebsd* | dragonfly*)
10865 # DragonFly does not have aout. When/if they implement a new
10866 # versioning mechanism, adjust this.
10867 if test -x /usr/bin/objformat; then
10868 objformat=`/usr/bin/objformat`
10869 else
10870 case $host_os in
10871 freebsd[23].*) objformat=aout ;;
10872 *) objformat=elf ;;
10873 esac
10874 fi
10875 version_type=freebsd-$objformat
10876 case $version_type in
10877 freebsd-elf*)
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10879 need_version=no
10880 need_lib_prefix=no
10881 ;;
10882 freebsd-*)
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10884 need_version=yes
10885 ;;
10886 esac
10887 shlibpath_var=LD_LIBRARY_PATH
10888 case $host_os in
10889 freebsd2.*)
10890 shlibpath_overrides_runpath=yes
10891 ;;
10892 freebsd3.[01]* | freebsdelf3.[01]*)
10893 shlibpath_overrides_runpath=yes
10894 hardcode_into_libs=yes
10895 ;;
10896 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10897 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10898 shlibpath_overrides_runpath=no
10899 hardcode_into_libs=yes
10900 ;;
10901 *) # from 4.6 on, and DragonFly
10902 shlibpath_overrides_runpath=yes
10903 hardcode_into_libs=yes
10904 ;;
10905 esac
10906 ;;
10907
10908 gnu*)
10909 version_type=linux
10910 need_lib_prefix=no
10911 need_version=no
10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10913 soname_spec='${libname}${release}${shared_ext}$major'
10914 shlibpath_var=LD_LIBRARY_PATH
10915 hardcode_into_libs=yes
10916 ;;
10917
10918 haiku*)
10919 version_type=linux
10920 need_lib_prefix=no
10921 need_version=no
10922 dynamic_linker="$host_os runtime_loader"
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10924 soname_spec='${libname}${release}${shared_ext}$major'
10925 shlibpath_var=LIBRARY_PATH
10926 shlibpath_overrides_runpath=yes
10927 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10928 hardcode_into_libs=yes
10929 ;;
10930
10931 hpux9* | hpux10* | hpux11*)
10932 # Give a soname corresponding to the major version so that dld.sl refuses to
10933 # link against other versions.
10934 version_type=sunos
10935 need_lib_prefix=no
10936 need_version=no
10937 case $host_cpu in
10938 ia64*)
10939 shrext_cmds='.so'
10940 hardcode_into_libs=yes
10941 dynamic_linker="$host_os dld.so"
10942 shlibpath_var=LD_LIBRARY_PATH
10943 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945 soname_spec='${libname}${release}${shared_ext}$major'
10946 if test "X$HPUX_IA64_MODE" = X32; then
10947 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10948 else
10949 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10950 fi
10951 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10952 ;;
10953 hppa*64*)
10954 shrext_cmds='.sl'
10955 hardcode_into_libs=yes
10956 dynamic_linker="$host_os dld.sl"
10957 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10962 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10963 ;;
10964 *)
10965 shrext_cmds='.sl'
10966 dynamic_linker="$host_os dld.sl"
10967 shlibpath_var=SHLIB_PATH
10968 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10970 soname_spec='${libname}${release}${shared_ext}$major'
10971 ;;
10972 esac
10973 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10974 postinstall_cmds='chmod 555 $lib'
10975 # or fails outright, so override atomically:
10976 install_override_mode=555
10977 ;;
10978
10979 interix[3-9]*)
10980 version_type=linux
10981 need_lib_prefix=no
10982 need_version=no
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10984 soname_spec='${libname}${release}${shared_ext}$major'
10985 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10986 shlibpath_var=LD_LIBRARY_PATH
10987 shlibpath_overrides_runpath=no
10988 hardcode_into_libs=yes
10989 ;;
10990
10991 irix5* | irix6* | nonstopux*)
10992 case $host_os in
10993 nonstopux*) version_type=nonstopux ;;
10994 *)
10995 if test "$lt_cv_prog_gnu_ld" = yes; then
10996 version_type=linux
10997 else
10998 version_type=irix
10999 fi ;;
11000 esac
11001 need_lib_prefix=no
11002 need_version=no
11003 soname_spec='${libname}${release}${shared_ext}$major'
11004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11005 case $host_os in
11006 irix5* | nonstopux*)
11007 libsuff= shlibsuff=
11008 ;;
11009 *)
11010 case $LD in # libtool.m4 will add one of these switches to LD
11011 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11012 libsuff= shlibsuff= libmagic=32-bit;;
11013 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11014 libsuff=32 shlibsuff=N32 libmagic=N32;;
11015 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11016 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11017 *) libsuff= shlibsuff= libmagic=never-match;;
11018 esac
11019 ;;
11020 esac
11021 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11022 shlibpath_overrides_runpath=no
11023 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11024 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11025 hardcode_into_libs=yes
11026 ;;
11027
11028 # No shared lib support for Linux oldld, aout, or coff.
11029 linux*oldld* | linux*aout* | linux*coff*)
11030 dynamic_linker=no
11031 ;;
11032
11033 # This must be Linux ELF.
11034 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11035 version_type=linux
11036 need_lib_prefix=no
11037 need_version=no
11038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11039 soname_spec='${libname}${release}${shared_ext}$major'
11040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11041 shlibpath_var=LD_LIBRARY_PATH
11042 shlibpath_overrides_runpath=no
11043
11044 # Some binutils ld are patched to set DT_RUNPATH
11045 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11046 $as_echo_n "(cached) " >&6
11047 else
11048 lt_cv_shlibpath_overrides_runpath=no
11049 save_LDFLAGS=$LDFLAGS
11050 save_libdir=$libdir
11051 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11052 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h. */
11055
11056 int
11057 main ()
11058 {
11059
11060 ;
11061 return 0;
11062 }
11063 _ACEOF
11064 if ac_fn_c_try_link "$LINENO"; then :
11065 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11066 lt_cv_shlibpath_overrides_runpath=yes
11067 fi
11068 fi
11069 rm -f core conftest.err conftest.$ac_objext \
11070 conftest$ac_exeext conftest.$ac_ext
11071 LDFLAGS=$save_LDFLAGS
11072 libdir=$save_libdir
11073
11074 fi
11075
11076 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11077
11078 # This implies no fast_install, which is unacceptable.
11079 # Some rework will be needed to allow for fast_install
11080 # before this can be enabled.
11081 hardcode_into_libs=yes
11082
11083 # Append ld.so.conf contents to the search path
11084 if test -f /etc/ld.so.conf; then
11085 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' ' '`
11086 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11087 fi
11088
11089 # We used to test for /lib/ld.so.1 and disable shared libraries on
11090 # powerpc, because MkLinux only supported shared libraries with the
11091 # GNU dynamic linker. Since this was broken with cross compilers,
11092 # most powerpc-linux boxes support dynamic linking these days and
11093 # people can always --disable-shared, the test was removed, and we
11094 # assume the GNU/Linux dynamic linker is in use.
11095 dynamic_linker='GNU/Linux ld.so'
11096 ;;
11097
11098 netbsd*)
11099 version_type=sunos
11100 need_lib_prefix=no
11101 need_version=no
11102 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11105 dynamic_linker='NetBSD (a.out) ld.so'
11106 else
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11108 soname_spec='${libname}${release}${shared_ext}$major'
11109 dynamic_linker='NetBSD ld.elf_so'
11110 fi
11111 shlibpath_var=LD_LIBRARY_PATH
11112 shlibpath_overrides_runpath=yes
11113 hardcode_into_libs=yes
11114 ;;
11115
11116 newsos6)
11117 version_type=linux
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119 shlibpath_var=LD_LIBRARY_PATH
11120 shlibpath_overrides_runpath=yes
11121 ;;
11122
11123 *nto* | *qnx*)
11124 version_type=qnx
11125 need_lib_prefix=no
11126 need_version=no
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128 soname_spec='${libname}${release}${shared_ext}$major'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 shlibpath_overrides_runpath=no
11131 hardcode_into_libs=yes
11132 dynamic_linker='ldqnx.so'
11133 ;;
11134
11135 openbsd*)
11136 version_type=sunos
11137 sys_lib_dlsearch_path_spec="/usr/lib"
11138 need_lib_prefix=no
11139 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11140 case $host_os in
11141 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11142 *) need_version=no ;;
11143 esac
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11148 case $host_os in
11149 openbsd2.[89] | openbsd2.[89].*)
11150 shlibpath_overrides_runpath=no
11151 ;;
11152 *)
11153 shlibpath_overrides_runpath=yes
11154 ;;
11155 esac
11156 else
11157 shlibpath_overrides_runpath=yes
11158 fi
11159 ;;
11160
11161 os2*)
11162 libname_spec='$name'
11163 shrext_cmds=".dll"
11164 need_lib_prefix=no
11165 library_names_spec='$libname${shared_ext} $libname.a'
11166 dynamic_linker='OS/2 ld.exe'
11167 shlibpath_var=LIBPATH
11168 ;;
11169
11170 osf3* | osf4* | osf5*)
11171 version_type=osf
11172 need_lib_prefix=no
11173 need_version=no
11174 soname_spec='${libname}${release}${shared_ext}$major'
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176 shlibpath_var=LD_LIBRARY_PATH
11177 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11178 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11179 ;;
11180
11181 rdos*)
11182 dynamic_linker=no
11183 ;;
11184
11185 solaris*)
11186 version_type=linux
11187 need_lib_prefix=no
11188 need_version=no
11189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190 soname_spec='${libname}${release}${shared_ext}$major'
11191 shlibpath_var=LD_LIBRARY_PATH
11192 shlibpath_overrides_runpath=yes
11193 hardcode_into_libs=yes
11194 # ldd complains unless libraries are executable
11195 postinstall_cmds='chmod +x $lib'
11196 ;;
11197
11198 sunos4*)
11199 version_type=sunos
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11201 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 shlibpath_overrides_runpath=yes
11204 if test "$with_gnu_ld" = yes; then
11205 need_lib_prefix=no
11206 fi
11207 need_version=yes
11208 ;;
11209
11210 sysv4 | sysv4.3*)
11211 version_type=linux
11212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11213 soname_spec='${libname}${release}${shared_ext}$major'
11214 shlibpath_var=LD_LIBRARY_PATH
11215 case $host_vendor in
11216 sni)
11217 shlibpath_overrides_runpath=no
11218 need_lib_prefix=no
11219 runpath_var=LD_RUN_PATH
11220 ;;
11221 siemens)
11222 need_lib_prefix=no
11223 ;;
11224 motorola)
11225 need_lib_prefix=no
11226 need_version=no
11227 shlibpath_overrides_runpath=no
11228 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11229 ;;
11230 esac
11231 ;;
11232
11233 sysv4*MP*)
11234 if test -d /usr/nec ;then
11235 version_type=linux
11236 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11237 soname_spec='$libname${shared_ext}.$major'
11238 shlibpath_var=LD_LIBRARY_PATH
11239 fi
11240 ;;
11241
11242 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11243 version_type=freebsd-elf
11244 need_lib_prefix=no
11245 need_version=no
11246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11247 soname_spec='${libname}${release}${shared_ext}$major'
11248 shlibpath_var=LD_LIBRARY_PATH
11249 shlibpath_overrides_runpath=yes
11250 hardcode_into_libs=yes
11251 if test "$with_gnu_ld" = yes; then
11252 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11253 else
11254 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11255 case $host_os in
11256 sco3.2v5*)
11257 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11258 ;;
11259 esac
11260 fi
11261 sys_lib_dlsearch_path_spec='/usr/lib'
11262 ;;
11263
11264 tpf*)
11265 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11266 version_type=linux
11267 need_lib_prefix=no
11268 need_version=no
11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11270 shlibpath_var=LD_LIBRARY_PATH
11271 shlibpath_overrides_runpath=no
11272 hardcode_into_libs=yes
11273 ;;
11274
11275 uts4*)
11276 version_type=linux
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11278 soname_spec='${libname}${release}${shared_ext}$major'
11279 shlibpath_var=LD_LIBRARY_PATH
11280 ;;
11281
11282 *)
11283 dynamic_linker=no
11284 ;;
11285 esac
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11287 $as_echo "$dynamic_linker" >&6; }
11288 test "$dynamic_linker" = no && can_build_shared=no
11289
11290 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11291 if test "$GCC" = yes; then
11292 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11293 fi
11294
11295 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11296 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11297 fi
11298 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11299 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11300 fi
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11394 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11395 hardcode_action=
11396 if test -n "$hardcode_libdir_flag_spec" ||
11397 test -n "$runpath_var" ||
11398 test "X$hardcode_automatic" = "Xyes" ; then
11399
11400 # We can hardcode non-existent directories.
11401 if test "$hardcode_direct" != no &&
11402 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11403 # have to relink, otherwise we might link with an installed library
11404 # when we should be linking with a yet-to-be-installed one
11405 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11406 test "$hardcode_minus_L" != no; then
11407 # Linking always hardcodes the temporary library directory.
11408 hardcode_action=relink
11409 else
11410 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11411 hardcode_action=immediate
11412 fi
11413 else
11414 # We cannot hardcode anything, or else we can only hardcode existing
11415 # directories.
11416 hardcode_action=unsupported
11417 fi
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11419 $as_echo "$hardcode_action" >&6; }
11420
11421 if test "$hardcode_action" = relink ||
11422 test "$inherit_rpath" = yes; then
11423 # Fast installation is not supported
11424 enable_fast_install=no
11425 elif test "$shlibpath_overrides_runpath" = yes ||
11426 test "$enable_shared" = no; then
11427 # Fast installation is not necessary
11428 enable_fast_install=needless
11429 fi
11430
11431
11432
11433
11434
11435
11436 if test "x$enable_dlopen" != xyes; then
11437 enable_dlopen=unknown
11438 enable_dlopen_self=unknown
11439 enable_dlopen_self_static=unknown
11440 else
11441 lt_cv_dlopen=no
11442 lt_cv_dlopen_libs=
11443
11444 case $host_os in
11445 beos*)
11446 lt_cv_dlopen="load_add_on"
11447 lt_cv_dlopen_libs=
11448 lt_cv_dlopen_self=yes
11449 ;;
11450
11451 mingw* | pw32* | cegcc*)
11452 lt_cv_dlopen="LoadLibrary"
11453 lt_cv_dlopen_libs=
11454 ;;
11455
11456 cygwin*)
11457 lt_cv_dlopen="dlopen"
11458 lt_cv_dlopen_libs=
11459 ;;
11460
11461 darwin*)
11462 # if libdl is installed we need to link against it
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11464 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11465 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11466 $as_echo_n "(cached) " >&6
11467 else
11468 ac_check_lib_save_LIBS=$LIBS
11469 LIBS="-ldl $LIBS"
11470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11471 /* end confdefs.h. */
11472
11473 /* Override any GCC internal prototype to avoid an error.
11474 Use char because int might match the return type of a GCC
11475 builtin and then its argument prototype would still apply. */
11476 #ifdef __cplusplus
11477 extern "C"
11478 #endif
11479 char dlopen ();
11480 int
11481 main ()
11482 {
11483 return dlopen ();
11484 ;
11485 return 0;
11486 }
11487 _ACEOF
11488 if ac_fn_c_try_link "$LINENO"; then :
11489 ac_cv_lib_dl_dlopen=yes
11490 else
11491 ac_cv_lib_dl_dlopen=no
11492 fi
11493 rm -f core conftest.err conftest.$ac_objext \
11494 conftest$ac_exeext conftest.$ac_ext
11495 LIBS=$ac_check_lib_save_LIBS
11496 fi
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11498 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11499 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11500 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11501 else
11502
11503 lt_cv_dlopen="dyld"
11504 lt_cv_dlopen_libs=
11505 lt_cv_dlopen_self=yes
11506
11507 fi
11508
11509 ;;
11510
11511 *)
11512 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11513 if test "x$ac_cv_func_shl_load" = x""yes; then :
11514 lt_cv_dlopen="shl_load"
11515 else
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11517 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11518 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11519 $as_echo_n "(cached) " >&6
11520 else
11521 ac_check_lib_save_LIBS=$LIBS
11522 LIBS="-ldld $LIBS"
11523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11524 /* end confdefs.h. */
11525
11526 /* Override any GCC internal prototype to avoid an error.
11527 Use char because int might match the return type of a GCC
11528 builtin and then its argument prototype would still apply. */
11529 #ifdef __cplusplus
11530 extern "C"
11531 #endif
11532 char shl_load ();
11533 int
11534 main ()
11535 {
11536 return shl_load ();
11537 ;
11538 return 0;
11539 }
11540 _ACEOF
11541 if ac_fn_c_try_link "$LINENO"; then :
11542 ac_cv_lib_dld_shl_load=yes
11543 else
11544 ac_cv_lib_dld_shl_load=no
11545 fi
11546 rm -f core conftest.err conftest.$ac_objext \
11547 conftest$ac_exeext conftest.$ac_ext
11548 LIBS=$ac_check_lib_save_LIBS
11549 fi
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11551 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11552 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11553 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11554 else
11555 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11556 if test "x$ac_cv_func_dlopen" = x""yes; then :
11557 lt_cv_dlopen="dlopen"
11558 else
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11560 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11561 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11562 $as_echo_n "(cached) " >&6
11563 else
11564 ac_check_lib_save_LIBS=$LIBS
11565 LIBS="-ldl $LIBS"
11566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11567 /* end confdefs.h. */
11568
11569 /* Override any GCC internal prototype to avoid an error.
11570 Use char because int might match the return type of a GCC
11571 builtin and then its argument prototype would still apply. */
11572 #ifdef __cplusplus
11573 extern "C"
11574 #endif
11575 char dlopen ();
11576 int
11577 main ()
11578 {
11579 return dlopen ();
11580 ;
11581 return 0;
11582 }
11583 _ACEOF
11584 if ac_fn_c_try_link "$LINENO"; then :
11585 ac_cv_lib_dl_dlopen=yes
11586 else
11587 ac_cv_lib_dl_dlopen=no
11588 fi
11589 rm -f core conftest.err conftest.$ac_objext \
11590 conftest$ac_exeext conftest.$ac_ext
11591 LIBS=$ac_check_lib_save_LIBS
11592 fi
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11594 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11595 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11596 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11597 else
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11599 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11600 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11601 $as_echo_n "(cached) " >&6
11602 else
11603 ac_check_lib_save_LIBS=$LIBS
11604 LIBS="-lsvld $LIBS"
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11607
11608 /* Override any GCC internal prototype to avoid an error.
11609 Use char because int might match the return type of a GCC
11610 builtin and then its argument prototype would still apply. */
11611 #ifdef __cplusplus
11612 extern "C"
11613 #endif
11614 char dlopen ();
11615 int
11616 main ()
11617 {
11618 return dlopen ();
11619 ;
11620 return 0;
11621 }
11622 _ACEOF
11623 if ac_fn_c_try_link "$LINENO"; then :
11624 ac_cv_lib_svld_dlopen=yes
11625 else
11626 ac_cv_lib_svld_dlopen=no
11627 fi
11628 rm -f core conftest.err conftest.$ac_objext \
11629 conftest$ac_exeext conftest.$ac_ext
11630 LIBS=$ac_check_lib_save_LIBS
11631 fi
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11633 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11634 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11635 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11636 else
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11638 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11639 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11640 $as_echo_n "(cached) " >&6
11641 else
11642 ac_check_lib_save_LIBS=$LIBS
11643 LIBS="-ldld $LIBS"
11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h. */
11646
11647 /* Override any GCC internal prototype to avoid an error.
11648 Use char because int might match the return type of a GCC
11649 builtin and then its argument prototype would still apply. */
11650 #ifdef __cplusplus
11651 extern "C"
11652 #endif
11653 char dld_link ();
11654 int
11655 main ()
11656 {
11657 return dld_link ();
11658 ;
11659 return 0;
11660 }
11661 _ACEOF
11662 if ac_fn_c_try_link "$LINENO"; then :
11663 ac_cv_lib_dld_dld_link=yes
11664 else
11665 ac_cv_lib_dld_dld_link=no
11666 fi
11667 rm -f core conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669 LIBS=$ac_check_lib_save_LIBS
11670 fi
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11672 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11673 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11674 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11675 fi
11676
11677
11678 fi
11679
11680
11681 fi
11682
11683
11684 fi
11685
11686
11687 fi
11688
11689
11690 fi
11691
11692 ;;
11693 esac
11694
11695 if test "x$lt_cv_dlopen" != xno; then
11696 enable_dlopen=yes
11697 else
11698 enable_dlopen=no
11699 fi
11700
11701 case $lt_cv_dlopen in
11702 dlopen)
11703 save_CPPFLAGS="$CPPFLAGS"
11704 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11705
11706 save_LDFLAGS="$LDFLAGS"
11707 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11708
11709 save_LIBS="$LIBS"
11710 LIBS="$lt_cv_dlopen_libs $LIBS"
11711
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11713 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11714 if test "${lt_cv_dlopen_self+set}" = set; then :
11715 $as_echo_n "(cached) " >&6
11716 else
11717 if test "$cross_compiling" = yes; then :
11718 lt_cv_dlopen_self=cross
11719 else
11720 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11721 lt_status=$lt_dlunknown
11722 cat > conftest.$ac_ext <<_LT_EOF
11723 #line 11723 "configure"
11724 #include "confdefs.h"
11725
11726 #if HAVE_DLFCN_H
11727 #include <dlfcn.h>
11728 #endif
11729
11730 #include <stdio.h>
11731
11732 #ifdef RTLD_GLOBAL
11733 # define LT_DLGLOBAL RTLD_GLOBAL
11734 #else
11735 # ifdef DL_GLOBAL
11736 # define LT_DLGLOBAL DL_GLOBAL
11737 # else
11738 # define LT_DLGLOBAL 0
11739 # endif
11740 #endif
11741
11742 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11743 find out it does not work in some platform. */
11744 #ifndef LT_DLLAZY_OR_NOW
11745 # ifdef RTLD_LAZY
11746 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11747 # else
11748 # ifdef DL_LAZY
11749 # define LT_DLLAZY_OR_NOW DL_LAZY
11750 # else
11751 # ifdef RTLD_NOW
11752 # define LT_DLLAZY_OR_NOW RTLD_NOW
11753 # else
11754 # ifdef DL_NOW
11755 # define LT_DLLAZY_OR_NOW DL_NOW
11756 # else
11757 # define LT_DLLAZY_OR_NOW 0
11758 # endif
11759 # endif
11760 # endif
11761 # endif
11762 #endif
11763
11764 /* When -fvisbility=hidden is used, assume the code has been annotated
11765 correspondingly for the symbols needed. */
11766 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11767 void fnord () __attribute__((visibility("default")));
11768 #endif
11769
11770 void fnord () { int i=42; }
11771 int main ()
11772 {
11773 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11774 int status = $lt_dlunknown;
11775
11776 if (self)
11777 {
11778 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11779 else
11780 {
11781 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11782 else puts (dlerror ());
11783 }
11784 /* dlclose (self); */
11785 }
11786 else
11787 puts (dlerror ());
11788
11789 return status;
11790 }
11791 _LT_EOF
11792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11793 (eval $ac_link) 2>&5
11794 ac_status=$?
11795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11796 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11797 (./conftest; exit; ) >&5 2>/dev/null
11798 lt_status=$?
11799 case x$lt_status in
11800 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11801 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11802 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11803 esac
11804 else :
11805 # compilation failed
11806 lt_cv_dlopen_self=no
11807 fi
11808 fi
11809 rm -fr conftest*
11810
11811
11812 fi
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11814 $as_echo "$lt_cv_dlopen_self" >&6; }
11815
11816 if test "x$lt_cv_dlopen_self" = xyes; then
11817 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11819 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11820 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11821 $as_echo_n "(cached) " >&6
11822 else
11823 if test "$cross_compiling" = yes; then :
11824 lt_cv_dlopen_self_static=cross
11825 else
11826 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11827 lt_status=$lt_dlunknown
11828 cat > conftest.$ac_ext <<_LT_EOF
11829 #line 11829 "configure"
11830 #include "confdefs.h"
11831
11832 #if HAVE_DLFCN_H
11833 #include <dlfcn.h>
11834 #endif
11835
11836 #include <stdio.h>
11837
11838 #ifdef RTLD_GLOBAL
11839 # define LT_DLGLOBAL RTLD_GLOBAL
11840 #else
11841 # ifdef DL_GLOBAL
11842 # define LT_DLGLOBAL DL_GLOBAL
11843 # else
11844 # define LT_DLGLOBAL 0
11845 # endif
11846 #endif
11847
11848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11849 find out it does not work in some platform. */
11850 #ifndef LT_DLLAZY_OR_NOW
11851 # ifdef RTLD_LAZY
11852 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11853 # else
11854 # ifdef DL_LAZY
11855 # define LT_DLLAZY_OR_NOW DL_LAZY
11856 # else
11857 # ifdef RTLD_NOW
11858 # define LT_DLLAZY_OR_NOW RTLD_NOW
11859 # else
11860 # ifdef DL_NOW
11861 # define LT_DLLAZY_OR_NOW DL_NOW
11862 # else
11863 # define LT_DLLAZY_OR_NOW 0
11864 # endif
11865 # endif
11866 # endif
11867 # endif
11868 #endif
11869
11870 /* When -fvisbility=hidden is used, assume the code has been annotated
11871 correspondingly for the symbols needed. */
11872 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11873 void fnord () __attribute__((visibility("default")));
11874 #endif
11875
11876 void fnord () { int i=42; }
11877 int main ()
11878 {
11879 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11880 int status = $lt_dlunknown;
11881
11882 if (self)
11883 {
11884 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11885 else
11886 {
11887 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11888 else puts (dlerror ());
11889 }
11890 /* dlclose (self); */
11891 }
11892 else
11893 puts (dlerror ());
11894
11895 return status;
11896 }
11897 _LT_EOF
11898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11899 (eval $ac_link) 2>&5
11900 ac_status=$?
11901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11902 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11903 (./conftest; exit; ) >&5 2>/dev/null
11904 lt_status=$?
11905 case x$lt_status in
11906 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11907 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11908 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11909 esac
11910 else :
11911 # compilation failed
11912 lt_cv_dlopen_self_static=no
11913 fi
11914 fi
11915 rm -fr conftest*
11916
11917
11918 fi
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11920 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11921 fi
11922
11923 CPPFLAGS="$save_CPPFLAGS"
11924 LDFLAGS="$save_LDFLAGS"
11925 LIBS="$save_LIBS"
11926 ;;
11927 esac
11928
11929 case $lt_cv_dlopen_self in
11930 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11931 *) enable_dlopen_self=unknown ;;
11932 esac
11933
11934 case $lt_cv_dlopen_self_static in
11935 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11936 *) enable_dlopen_self_static=unknown ;;
11937 esac
11938 fi
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956 striplib=
11957 old_striplib=
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11959 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11960 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11961 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11962 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11964 $as_echo "yes" >&6; }
11965 else
11966 # FIXME - insert some real tests, host_os isn't really good enough
11967 case $host_os in
11968 darwin*)
11969 if test -n "$STRIP" ; then
11970 striplib="$STRIP -x"
11971 old_striplib="$STRIP -S"
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11973 $as_echo "yes" >&6; }
11974 else
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976 $as_echo "no" >&6; }
11977 fi
11978 ;;
11979 *)
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981 $as_echo "no" >&6; }
11982 ;;
11983 esac
11984 fi
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997 # Report which library types will actually be built
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11999 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12001 $as_echo "$can_build_shared" >&6; }
12002
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12004 $as_echo_n "checking whether to build shared libraries... " >&6; }
12005 test "$can_build_shared" = "no" && enable_shared=no
12006
12007 # On AIX, shared libraries and static libraries use the same namespace, and
12008 # are all built from PIC.
12009 case $host_os in
12010 aix3*)
12011 test "$enable_shared" = yes && enable_static=no
12012 if test -n "$RANLIB"; then
12013 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12014 postinstall_cmds='$RANLIB $lib'
12015 fi
12016 ;;
12017
12018 aix[4-9]*)
12019 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12020 test "$enable_shared" = yes && enable_static=no
12021 fi
12022 ;;
12023 esac
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12025 $as_echo "$enable_shared" >&6; }
12026
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12028 $as_echo_n "checking whether to build static libraries... " >&6; }
12029 # Make sure either enable_shared or enable_static is yes.
12030 test "$enable_shared" = yes || enable_static=yes
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12032 $as_echo "$enable_static" >&6; }
12033
12034
12035
12036
12037 fi
12038 ac_ext=c
12039 ac_cpp='$CPP $CPPFLAGS'
12040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12043
12044 CC="$lt_save_CC"
12045
12046 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12047 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12048 (test "X$CXX" != "Xg++"))) ; then
12049 ac_ext=cpp
12050 ac_cpp='$CXXCPP $CPPFLAGS'
12051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12055 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12056 if test -z "$CXXCPP"; then
12057 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12058 $as_echo_n "(cached) " >&6
12059 else
12060 # Double quotes because CXXCPP needs to be expanded
12061 for CXXCPP in "$CXX -E" "/lib/cpp"
12062 do
12063 ac_preproc_ok=false
12064 for ac_cxx_preproc_warn_flag in '' yes
12065 do
12066 # Use a header file that comes with gcc, so configuring glibc
12067 # with a fresh cross-compiler works.
12068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12069 # <limits.h> exists even on freestanding compilers.
12070 # On the NeXT, cc -E runs the code through the compiler's parser,
12071 # not just through cpp. "Syntax error" is here to catch this case.
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074 #ifdef __STDC__
12075 # include <limits.h>
12076 #else
12077 # include <assert.h>
12078 #endif
12079 Syntax error
12080 _ACEOF
12081 if ac_fn_cxx_try_cpp "$LINENO"; then :
12082
12083 else
12084 # Broken: fails on valid input.
12085 continue
12086 fi
12087 rm -f conftest.err conftest.$ac_ext
12088
12089 # OK, works on sane cases. Now check whether nonexistent headers
12090 # can be detected and how.
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12093 #include <ac_nonexistent.h>
12094 _ACEOF
12095 if ac_fn_cxx_try_cpp "$LINENO"; then :
12096 # Broken: success on invalid input.
12097 continue
12098 else
12099 # Passes both tests.
12100 ac_preproc_ok=:
12101 break
12102 fi
12103 rm -f conftest.err conftest.$ac_ext
12104
12105 done
12106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12107 rm -f conftest.err conftest.$ac_ext
12108 if $ac_preproc_ok; then :
12109 break
12110 fi
12111
12112 done
12113 ac_cv_prog_CXXCPP=$CXXCPP
12114
12115 fi
12116 CXXCPP=$ac_cv_prog_CXXCPP
12117 else
12118 ac_cv_prog_CXXCPP=$CXXCPP
12119 fi
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12121 $as_echo "$CXXCPP" >&6; }
12122 ac_preproc_ok=false
12123 for ac_cxx_preproc_warn_flag in '' yes
12124 do
12125 # Use a header file that comes with gcc, so configuring glibc
12126 # with a fresh cross-compiler works.
12127 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12128 # <limits.h> exists even on freestanding compilers.
12129 # On the NeXT, cc -E runs the code through the compiler's parser,
12130 # not just through cpp. "Syntax error" is here to catch this case.
12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h. */
12133 #ifdef __STDC__
12134 # include <limits.h>
12135 #else
12136 # include <assert.h>
12137 #endif
12138 Syntax error
12139 _ACEOF
12140 if ac_fn_cxx_try_cpp "$LINENO"; then :
12141
12142 else
12143 # Broken: fails on valid input.
12144 continue
12145 fi
12146 rm -f conftest.err conftest.$ac_ext
12147
12148 # OK, works on sane cases. Now check whether nonexistent headers
12149 # can be detected and how.
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12152 #include <ac_nonexistent.h>
12153 _ACEOF
12154 if ac_fn_cxx_try_cpp "$LINENO"; then :
12155 # Broken: success on invalid input.
12156 continue
12157 else
12158 # Passes both tests.
12159 ac_preproc_ok=:
12160 break
12161 fi
12162 rm -f conftest.err conftest.$ac_ext
12163
12164 done
12165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12166 rm -f conftest.err conftest.$ac_ext
12167 if $ac_preproc_ok; then :
12168
12169 else
12170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12172 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12173 See \`config.log' for more details." "$LINENO" 5; }
12174 fi
12175
12176 ac_ext=c
12177 ac_cpp='$CPP $CPPFLAGS'
12178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12181
12182 else
12183 _lt_caught_CXX_error=yes
12184 fi
12185
12186 ac_ext=cpp
12187 ac_cpp='$CXXCPP $CPPFLAGS'
12188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12191
12192 archive_cmds_need_lc_CXX=no
12193 allow_undefined_flag_CXX=
12194 always_export_symbols_CXX=no
12195 archive_expsym_cmds_CXX=
12196 compiler_needs_object_CXX=no
12197 export_dynamic_flag_spec_CXX=
12198 hardcode_direct_CXX=no
12199 hardcode_direct_absolute_CXX=no
12200 hardcode_libdir_flag_spec_CXX=
12201 hardcode_libdir_flag_spec_ld_CXX=
12202 hardcode_libdir_separator_CXX=
12203 hardcode_minus_L_CXX=no
12204 hardcode_shlibpath_var_CXX=unsupported
12205 hardcode_automatic_CXX=no
12206 inherit_rpath_CXX=no
12207 module_cmds_CXX=
12208 module_expsym_cmds_CXX=
12209 link_all_deplibs_CXX=unknown
12210 old_archive_cmds_CXX=$old_archive_cmds
12211 reload_flag_CXX=$reload_flag
12212 reload_cmds_CXX=$reload_cmds
12213 no_undefined_flag_CXX=
12214 whole_archive_flag_spec_CXX=
12215 enable_shared_with_static_runtimes_CXX=no
12216
12217 # Source file extension for C++ test sources.
12218 ac_ext=cpp
12219
12220 # Object file extension for compiled C++ test sources.
12221 objext=o
12222 objext_CXX=$objext
12223
12224 # No sense in running all these tests if we already determined that
12225 # the CXX compiler isn't working. Some variables (like enable_shared)
12226 # are currently assumed to apply to all compilers on this platform,
12227 # and will be corrupted by setting them based on a non-working compiler.
12228 if test "$_lt_caught_CXX_error" != yes; then
12229 # Code to be used in simple compile tests
12230 lt_simple_compile_test_code="int some_variable = 0;"
12231
12232 # Code to be used in simple link tests
12233 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12234
12235 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12236
12237
12238
12239
12240
12241
12242 # If no C compiler was specified, use CC.
12243 LTCC=${LTCC-"$CC"}
12244
12245 # If no C compiler flags were specified, use CFLAGS.
12246 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12247
12248 # Allow CC to be a program name with arguments.
12249 compiler=$CC
12250
12251
12252 # save warnings/boilerplate of simple test code
12253 ac_outfile=conftest.$ac_objext
12254 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12255 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12256 _lt_compiler_boilerplate=`cat conftest.err`
12257 $RM conftest*
12258
12259 ac_outfile=conftest.$ac_objext
12260 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12261 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12262 _lt_linker_boilerplate=`cat conftest.err`
12263 $RM -r conftest*
12264
12265
12266 # Allow CC to be a program name with arguments.
12267 lt_save_CC=$CC
12268 lt_save_LD=$LD
12269 lt_save_GCC=$GCC
12270 GCC=$GXX
12271 lt_save_with_gnu_ld=$with_gnu_ld
12272 lt_save_path_LD=$lt_cv_path_LD
12273 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12274 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12275 else
12276 $as_unset lt_cv_prog_gnu_ld
12277 fi
12278 if test -n "${lt_cv_path_LDCXX+set}"; then
12279 lt_cv_path_LD=$lt_cv_path_LDCXX
12280 else
12281 $as_unset lt_cv_path_LD
12282 fi
12283 test -z "${LDCXX+set}" || LD=$LDCXX
12284 CC=${CXX-"c++"}
12285 compiler=$CC
12286 compiler_CXX=$CC
12287 for cc_temp in $compiler""; do
12288 case $cc_temp in
12289 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12290 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12291 \-*) ;;
12292 *) break;;
12293 esac
12294 done
12295 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12296
12297
12298 if test -n "$compiler"; then
12299 # We don't want -fno-exception when compiling C++ code, so set the
12300 # no_builtin_flag separately
12301 if test "$GXX" = yes; then
12302 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12303 else
12304 lt_prog_compiler_no_builtin_flag_CXX=
12305 fi
12306
12307 if test "$GXX" = yes; then
12308 # Set up default GNU C++ configuration
12309
12310
12311
12312 # Check whether --with-gnu-ld was given.
12313 if test "${with_gnu_ld+set}" = set; then :
12314 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12315 else
12316 with_gnu_ld=no
12317 fi
12318
12319 ac_prog=ld
12320 if test "$GCC" = yes; then
12321 # Check if gcc -print-prog-name=ld gives a path.
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12323 $as_echo_n "checking for ld used by $CC... " >&6; }
12324 case $host in
12325 *-*-mingw*)
12326 # gcc leaves a trailing carriage return which upsets mingw
12327 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12328 *)
12329 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12330 esac
12331 case $ac_prog in
12332 # Accept absolute paths.
12333 [\\/]* | ?:[\\/]*)
12334 re_direlt='/[^/][^/]*/\.\./'
12335 # Canonicalize the pathname of ld
12336 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12337 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12338 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12339 done
12340 test -z "$LD" && LD="$ac_prog"
12341 ;;
12342 "")
12343 # If it fails, then pretend we aren't using GCC.
12344 ac_prog=ld
12345 ;;
12346 *)
12347 # If it is relative, then search for the first ld in PATH.
12348 with_gnu_ld=unknown
12349 ;;
12350 esac
12351 elif test "$with_gnu_ld" = yes; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12353 $as_echo_n "checking for GNU ld... " >&6; }
12354 else
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12356 $as_echo_n "checking for non-GNU ld... " >&6; }
12357 fi
12358 if test "${lt_cv_path_LD+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 if test -z "$LD"; then
12362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12363 for ac_dir in $PATH; do
12364 IFS="$lt_save_ifs"
12365 test -z "$ac_dir" && ac_dir=.
12366 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12367 lt_cv_path_LD="$ac_dir/$ac_prog"
12368 # Check to see if the program is GNU ld. I'd rather use --version,
12369 # but apparently some variants of GNU ld only accept -v.
12370 # Break only if it was the GNU/non-GNU ld that we prefer.
12371 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12372 *GNU* | *'with BFD'*)
12373 test "$with_gnu_ld" != no && break
12374 ;;
12375 *)
12376 test "$with_gnu_ld" != yes && break
12377 ;;
12378 esac
12379 fi
12380 done
12381 IFS="$lt_save_ifs"
12382 else
12383 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12384 fi
12385 fi
12386
12387 LD="$lt_cv_path_LD"
12388 if test -n "$LD"; then
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12390 $as_echo "$LD" >&6; }
12391 else
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393 $as_echo "no" >&6; }
12394 fi
12395 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12397 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12398 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12399 $as_echo_n "(cached) " >&6
12400 else
12401 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12402 case `$LD -v 2>&1 </dev/null` in
12403 *GNU* | *'with BFD'*)
12404 lt_cv_prog_gnu_ld=yes
12405 ;;
12406 *)
12407 lt_cv_prog_gnu_ld=no
12408 ;;
12409 esac
12410 fi
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12412 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12413 with_gnu_ld=$lt_cv_prog_gnu_ld
12414
12415
12416
12417
12418
12419
12420
12421 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12422 # archiving commands below assume that GNU ld is being used.
12423 if test "$with_gnu_ld" = yes; then
12424 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12425 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12426
12427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12428 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12429
12430 # If archive_cmds runs LD, not CC, wlarc should be empty
12431 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12432 # investigate it a little bit more. (MM)
12433 wlarc='${wl}'
12434
12435 # ancient GNU ld didn't support --whole-archive et. al.
12436 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12437 $GREP 'no-whole-archive' > /dev/null; then
12438 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12439 else
12440 whole_archive_flag_spec_CXX=
12441 fi
12442 else
12443 with_gnu_ld=no
12444 wlarc=
12445
12446 # A generic and very simple default shared library creation
12447 # command for GNU C++ for the case where it uses the native
12448 # linker, instead of GNU ld. If possible, this setting should
12449 # overridden to take advantage of the native linker features on
12450 # the platform it is being used on.
12451 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12452 fi
12453
12454 # Commands to make compiler produce verbose output that lists
12455 # what "hidden" libraries, object files and flags are used when
12456 # linking a shared library.
12457 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12458
12459 else
12460 GXX=no
12461 with_gnu_ld=no
12462 wlarc=
12463 fi
12464
12465 # PORTME: fill in a description of your system's C++ link characteristics
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12467 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12468 ld_shlibs_CXX=yes
12469 case $host_os in
12470 aix3*)
12471 # FIXME: insert proper C++ library support
12472 ld_shlibs_CXX=no
12473 ;;
12474 aix[4-9]*)
12475 if test "$host_cpu" = ia64; then
12476 # On IA64, the linker does run time linking by default, so we don't
12477 # have to do anything special.
12478 aix_use_runtimelinking=no
12479 exp_sym_flag='-Bexport'
12480 no_entry_flag=""
12481 else
12482 aix_use_runtimelinking=no
12483
12484 # Test if we are trying to use run time linking or normal
12485 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12486 # need to do runtime linking.
12487 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12488 for ld_flag in $LDFLAGS; do
12489 case $ld_flag in
12490 *-brtl*)
12491 aix_use_runtimelinking=yes
12492 break
12493 ;;
12494 esac
12495 done
12496 ;;
12497 esac
12498
12499 exp_sym_flag='-bexport'
12500 no_entry_flag='-bnoentry'
12501 fi
12502
12503 # When large executables or shared objects are built, AIX ld can
12504 # have problems creating the table of contents. If linking a library
12505 # or program results in "error TOC overflow" add -mminimal-toc to
12506 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12507 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12508
12509 archive_cmds_CXX=''
12510 hardcode_direct_CXX=yes
12511 hardcode_direct_absolute_CXX=yes
12512 hardcode_libdir_separator_CXX=':'
12513 link_all_deplibs_CXX=yes
12514 file_list_spec_CXX='${wl}-f,'
12515
12516 if test "$GXX" = yes; then
12517 case $host_os in aix4.[012]|aix4.[012].*)
12518 # We only want to do this on AIX 4.2 and lower, the check
12519 # below for broken collect2 doesn't work under 4.3+
12520 collect2name=`${CC} -print-prog-name=collect2`
12521 if test -f "$collect2name" &&
12522 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12523 then
12524 # We have reworked collect2
12525 :
12526 else
12527 # We have old collect2
12528 hardcode_direct_CXX=unsupported
12529 # It fails to find uninstalled libraries when the uninstalled
12530 # path is not listed in the libpath. Setting hardcode_minus_L
12531 # to unsupported forces relinking
12532 hardcode_minus_L_CXX=yes
12533 hardcode_libdir_flag_spec_CXX='-L$libdir'
12534 hardcode_libdir_separator_CXX=
12535 fi
12536 esac
12537 shared_flag='-shared'
12538 if test "$aix_use_runtimelinking" = yes; then
12539 shared_flag="$shared_flag "'${wl}-G'
12540 fi
12541 else
12542 # not using gcc
12543 if test "$host_cpu" = ia64; then
12544 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12545 # chokes on -Wl,-G. The following line is correct:
12546 shared_flag='-G'
12547 else
12548 if test "$aix_use_runtimelinking" = yes; then
12549 shared_flag='${wl}-G'
12550 else
12551 shared_flag='${wl}-bM:SRE'
12552 fi
12553 fi
12554 fi
12555
12556 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12557 # It seems that -bexpall does not export symbols beginning with
12558 # underscore (_), so it is better to generate a list of symbols to
12559 # export.
12560 always_export_symbols_CXX=yes
12561 if test "$aix_use_runtimelinking" = yes; then
12562 # Warning - without using the other runtime loading flags (-brtl),
12563 # -berok will link without error, but may produce a broken library.
12564 allow_undefined_flag_CXX='-berok'
12565 # Determine the default libpath from the value encoded in an empty
12566 # executable.
12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h. */
12569
12570 int
12571 main ()
12572 {
12573
12574 ;
12575 return 0;
12576 }
12577 _ACEOF
12578 if ac_fn_cxx_try_link "$LINENO"; then :
12579
12580 lt_aix_libpath_sed='
12581 /Import File Strings/,/^$/ {
12582 /^0/ {
12583 s/^0 *\(.*\)$/\1/
12584 p
12585 }
12586 }'
12587 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12588 # Check for a 64-bit object if we didn't find anything.
12589 if test -z "$aix_libpath"; then
12590 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12591 fi
12592 fi
12593 rm -f core conftest.err conftest.$ac_objext \
12594 conftest$ac_exeext conftest.$ac_ext
12595 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12596
12597 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12598
12599 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"
12600 else
12601 if test "$host_cpu" = ia64; then
12602 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12603 allow_undefined_flag_CXX="-z nodefs"
12604 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"
12605 else
12606 # Determine the default libpath from the value encoded in an
12607 # empty executable.
12608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h. */
12610
12611 int
12612 main ()
12613 {
12614
12615 ;
12616 return 0;
12617 }
12618 _ACEOF
12619 if ac_fn_cxx_try_link "$LINENO"; then :
12620
12621 lt_aix_libpath_sed='
12622 /Import File Strings/,/^$/ {
12623 /^0/ {
12624 s/^0 *\(.*\)$/\1/
12625 p
12626 }
12627 }'
12628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12629 # Check for a 64-bit object if we didn't find anything.
12630 if test -z "$aix_libpath"; then
12631 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12632 fi
12633 fi
12634 rm -f core conftest.err conftest.$ac_objext \
12635 conftest$ac_exeext conftest.$ac_ext
12636 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12637
12638 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12639 # Warning - without using the other run time loading flags,
12640 # -berok will link without error, but may produce a broken library.
12641 no_undefined_flag_CXX=' ${wl}-bernotok'
12642 allow_undefined_flag_CXX=' ${wl}-berok'
12643 if test "$with_gnu_ld" = yes; then
12644 # We only use this code for GNU lds that support --whole-archive.
12645 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12646 else
12647 # Exported symbols can be pulled into shared objects from archives
12648 whole_archive_flag_spec_CXX='$convenience'
12649 fi
12650 archive_cmds_need_lc_CXX=yes
12651 # This is similar to how AIX traditionally builds its shared
12652 # libraries.
12653 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'
12654 fi
12655 fi
12656 ;;
12657
12658 beos*)
12659 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12660 allow_undefined_flag_CXX=unsupported
12661 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12662 # support --undefined. This deserves some investigation. FIXME
12663 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12664 else
12665 ld_shlibs_CXX=no
12666 fi
12667 ;;
12668
12669 chorus*)
12670 case $cc_basename in
12671 *)
12672 # FIXME: insert proper C++ library support
12673 ld_shlibs_CXX=no
12674 ;;
12675 esac
12676 ;;
12677
12678 cygwin* | mingw* | pw32* | cegcc*)
12679 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12680 # as there is no search path for DLLs.
12681 hardcode_libdir_flag_spec_CXX='-L$libdir'
12682 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12683 allow_undefined_flag_CXX=unsupported
12684 always_export_symbols_CXX=no
12685 enable_shared_with_static_runtimes_CXX=yes
12686
12687 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12688 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'
12689 # If the export-symbols file already is a .def file (1st line
12690 # is EXPORTS), use it as is; otherwise, prepend...
12691 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12692 cp $export_symbols $output_objdir/$soname.def;
12693 else
12694 echo EXPORTS > $output_objdir/$soname.def;
12695 cat $export_symbols >> $output_objdir/$soname.def;
12696 fi~
12697 $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'
12698 else
12699 ld_shlibs_CXX=no
12700 fi
12701 ;;
12702 darwin* | rhapsody*)
12703
12704
12705 archive_cmds_need_lc_CXX=no
12706 hardcode_direct_CXX=no
12707 hardcode_automatic_CXX=yes
12708 hardcode_shlibpath_var_CXX=unsupported
12709 if test "$lt_cv_ld_force_load" = "yes"; then
12710 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\"`'
12711 else
12712 whole_archive_flag_spec_CXX=''
12713 fi
12714 link_all_deplibs_CXX=yes
12715 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12716 case $cc_basename in
12717 ifort*) _lt_dar_can_shared=yes ;;
12718 *) _lt_dar_can_shared=$GCC ;;
12719 esac
12720 if test "$_lt_dar_can_shared" = "yes"; then
12721 output_verbose_link_cmd=func_echo_all
12722 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}"
12723 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12724 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}"
12725 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}"
12726 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12727 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}"
12728 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}"
12729 fi
12730
12731 else
12732 ld_shlibs_CXX=no
12733 fi
12734
12735 ;;
12736
12737 dgux*)
12738 case $cc_basename in
12739 ec++*)
12740 # FIXME: insert proper C++ library support
12741 ld_shlibs_CXX=no
12742 ;;
12743 ghcx*)
12744 # Green Hills C++ Compiler
12745 # FIXME: insert proper C++ library support
12746 ld_shlibs_CXX=no
12747 ;;
12748 *)
12749 # FIXME: insert proper C++ library support
12750 ld_shlibs_CXX=no
12751 ;;
12752 esac
12753 ;;
12754
12755 freebsd2.*)
12756 # C++ shared libraries reported to be fairly broken before
12757 # switch to ELF
12758 ld_shlibs_CXX=no
12759 ;;
12760
12761 freebsd-elf*)
12762 archive_cmds_need_lc_CXX=no
12763 ;;
12764
12765 freebsd* | dragonfly*)
12766 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12767 # conventions
12768 ld_shlibs_CXX=yes
12769 ;;
12770
12771 gnu*)
12772 ;;
12773
12774 haiku*)
12775 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12776 link_all_deplibs_CXX=yes
12777 ;;
12778
12779 hpux9*)
12780 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12781 hardcode_libdir_separator_CXX=:
12782 export_dynamic_flag_spec_CXX='${wl}-E'
12783 hardcode_direct_CXX=yes
12784 hardcode_minus_L_CXX=yes # Not in the search PATH,
12785 # but as the default
12786 # location of the library.
12787
12788 case $cc_basename in
12789 CC*)
12790 # FIXME: insert proper C++ library support
12791 ld_shlibs_CXX=no
12792 ;;
12793 aCC*)
12794 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'
12795 # Commands to make compiler produce verbose output that lists
12796 # what "hidden" libraries, object files and flags are used when
12797 # linking a shared library.
12798 #
12799 # There doesn't appear to be a way to prevent this compiler from
12800 # explicitly linking system object files so we need to strip them
12801 # from the output so that they don't get included in the library
12802 # dependencies.
12803 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"'
12804 ;;
12805 *)
12806 if test "$GXX" = yes; then
12807 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'
12808 else
12809 # FIXME: insert proper C++ library support
12810 ld_shlibs_CXX=no
12811 fi
12812 ;;
12813 esac
12814 ;;
12815
12816 hpux10*|hpux11*)
12817 if test $with_gnu_ld = no; then
12818 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12819 hardcode_libdir_separator_CXX=:
12820
12821 case $host_cpu in
12822 hppa*64*|ia64*)
12823 ;;
12824 *)
12825 export_dynamic_flag_spec_CXX='${wl}-E'
12826 ;;
12827 esac
12828 fi
12829 case $host_cpu in
12830 hppa*64*|ia64*)
12831 hardcode_direct_CXX=no
12832 hardcode_shlibpath_var_CXX=no
12833 ;;
12834 *)
12835 hardcode_direct_CXX=yes
12836 hardcode_direct_absolute_CXX=yes
12837 hardcode_minus_L_CXX=yes # Not in the search PATH,
12838 # but as the default
12839 # location of the library.
12840 ;;
12841 esac
12842
12843 case $cc_basename in
12844 CC*)
12845 # FIXME: insert proper C++ library support
12846 ld_shlibs_CXX=no
12847 ;;
12848 aCC*)
12849 case $host_cpu in
12850 hppa*64*)
12851 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12852 ;;
12853 ia64*)
12854 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12855 ;;
12856 *)
12857 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12858 ;;
12859 esac
12860 # Commands to make compiler produce verbose output that lists
12861 # what "hidden" libraries, object files and flags are used when
12862 # linking a shared library.
12863 #
12864 # There doesn't appear to be a way to prevent this compiler from
12865 # explicitly linking system object files so we need to strip them
12866 # from the output so that they don't get included in the library
12867 # dependencies.
12868 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"'
12869 ;;
12870 *)
12871 if test "$GXX" = yes; then
12872 if test $with_gnu_ld = no; then
12873 case $host_cpu in
12874 hppa*64*)
12875 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12876 ;;
12877 ia64*)
12878 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12879 ;;
12880 *)
12881 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'
12882 ;;
12883 esac
12884 fi
12885 else
12886 # FIXME: insert proper C++ library support
12887 ld_shlibs_CXX=no
12888 fi
12889 ;;
12890 esac
12891 ;;
12892
12893 interix[3-9]*)
12894 hardcode_direct_CXX=no
12895 hardcode_shlibpath_var_CXX=no
12896 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12897 export_dynamic_flag_spec_CXX='${wl}-E'
12898 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12899 # Instead, shared libraries are loaded at an image base (0x10000000 by
12900 # default) and relocated if they conflict, which is a slow very memory
12901 # consuming and fragmenting process. To avoid this, we pick a random,
12902 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12903 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12904 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'
12905 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'
12906 ;;
12907 irix5* | irix6*)
12908 case $cc_basename in
12909 CC*)
12910 # SGI C++
12911 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'
12912
12913 # Archives containing C++ object files must be created using
12914 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12915 # necessary to make sure instantiated templates are included
12916 # in the archive.
12917 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12918 ;;
12919 *)
12920 if test "$GXX" = yes; then
12921 if test "$with_gnu_ld" = no; then
12922 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'
12923 else
12924 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'
12925 fi
12926 fi
12927 link_all_deplibs_CXX=yes
12928 ;;
12929 esac
12930 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12931 hardcode_libdir_separator_CXX=:
12932 inherit_rpath_CXX=yes
12933 ;;
12934
12935 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12936 case $cc_basename in
12937 KCC*)
12938 # Kuck and Associates, Inc. (KAI) C++ Compiler
12939
12940 # KCC will only create a shared library if the output file
12941 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12942 # to its proper name (with version) after linking.
12943 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'
12944 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'
12945 # Commands to make compiler produce verbose output that lists
12946 # what "hidden" libraries, object files and flags are used when
12947 # linking a shared library.
12948 #
12949 # There doesn't appear to be a way to prevent this compiler from
12950 # explicitly linking system object files so we need to strip them
12951 # from the output so that they don't get included in the library
12952 # dependencies.
12953 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"'
12954
12955 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12956 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12957
12958 # Archives containing C++ object files must be created using
12959 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12960 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12961 ;;
12962 icpc* | ecpc* )
12963 # Intel C++
12964 with_gnu_ld=yes
12965 # version 8.0 and above of icpc choke on multiply defined symbols
12966 # if we add $predep_objects and $postdep_objects, however 7.1 and
12967 # earlier do not add the objects themselves.
12968 case `$CC -V 2>&1` in
12969 *"Version 7."*)
12970 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12971 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'
12972 ;;
12973 *) # Version 8.0 or newer
12974 tmp_idyn=
12975 case $host_cpu in
12976 ia64*) tmp_idyn=' -i_dynamic';;
12977 esac
12978 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12979 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'
12980 ;;
12981 esac
12982 archive_cmds_need_lc_CXX=no
12983 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12984 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12985 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12986 ;;
12987 pgCC* | pgcpp*)
12988 # Portland Group C++ compiler
12989 case `$CC -V` in
12990 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12991 prelink_cmds_CXX='tpldir=Template.dir~
12992 rm -rf $tpldir~
12993 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12994 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12995 old_archive_cmds_CXX='tpldir=Template.dir~
12996 rm -rf $tpldir~
12997 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12998 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12999 $RANLIB $oldlib'
13000 archive_cmds_CXX='tpldir=Template.dir~
13001 rm -rf $tpldir~
13002 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13003 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13004 archive_expsym_cmds_CXX='tpldir=Template.dir~
13005 rm -rf $tpldir~
13006 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13007 $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'
13008 ;;
13009 *) # Version 6 and above use weak symbols
13010 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13011 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'
13012 ;;
13013 esac
13014
13015 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13016 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13017 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'
13018 ;;
13019 cxx*)
13020 # Compaq C++
13021 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13022 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'
13023
13024 runpath_var=LD_RUN_PATH
13025 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13026 hardcode_libdir_separator_CXX=:
13027
13028 # Commands to make compiler produce verbose output that lists
13029 # what "hidden" libraries, object files and flags are used when
13030 # linking a shared library.
13031 #
13032 # There doesn't appear to be a way to prevent this compiler from
13033 # explicitly linking system object files so we need to strip them
13034 # from the output so that they don't get included in the library
13035 # dependencies.
13036 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'
13037 ;;
13038 xl* | mpixl* | bgxl*)
13039 # IBM XL 8.0 on PPC, with GNU ld
13040 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13041 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13042 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13043 if test "x$supports_anon_versioning" = xyes; then
13044 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13045 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13046 echo "local: *; };" >> $output_objdir/$libname.ver~
13047 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13048 fi
13049 ;;
13050 *)
13051 case `$CC -V 2>&1 | sed 5q` in
13052 *Sun\ C*)
13053 # Sun C++ 5.9
13054 no_undefined_flag_CXX=' -zdefs'
13055 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13056 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'
13057 hardcode_libdir_flag_spec_CXX='-R$libdir'
13058 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'
13059 compiler_needs_object_CXX=yes
13060
13061 # Not sure whether something based on
13062 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13063 # would be better.
13064 output_verbose_link_cmd='func_echo_all'
13065
13066 # Archives containing C++ object files must be created using
13067 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13068 # necessary to make sure instantiated templates are included
13069 # in the archive.
13070 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13071 ;;
13072 esac
13073 ;;
13074 esac
13075 ;;
13076
13077 lynxos*)
13078 # FIXME: insert proper C++ library support
13079 ld_shlibs_CXX=no
13080 ;;
13081
13082 m88k*)
13083 # FIXME: insert proper C++ library support
13084 ld_shlibs_CXX=no
13085 ;;
13086
13087 mvs*)
13088 case $cc_basename in
13089 cxx*)
13090 # FIXME: insert proper C++ library support
13091 ld_shlibs_CXX=no
13092 ;;
13093 *)
13094 # FIXME: insert proper C++ library support
13095 ld_shlibs_CXX=no
13096 ;;
13097 esac
13098 ;;
13099
13100 netbsd*)
13101 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13102 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13103 wlarc=
13104 hardcode_libdir_flag_spec_CXX='-R$libdir'
13105 hardcode_direct_CXX=yes
13106 hardcode_shlibpath_var_CXX=no
13107 fi
13108 # Workaround some broken pre-1.5 toolchains
13109 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13110 ;;
13111
13112 *nto* | *qnx*)
13113 ld_shlibs_CXX=yes
13114 ;;
13115
13116 openbsd2*)
13117 # C++ shared libraries are fairly broken
13118 ld_shlibs_CXX=no
13119 ;;
13120
13121 openbsd*)
13122 if test -f /usr/libexec/ld.so; then
13123 hardcode_direct_CXX=yes
13124 hardcode_shlibpath_var_CXX=no
13125 hardcode_direct_absolute_CXX=yes
13126 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13127 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13128 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13129 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13130 export_dynamic_flag_spec_CXX='${wl}-E'
13131 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13132 fi
13133 output_verbose_link_cmd=func_echo_all
13134 else
13135 ld_shlibs_CXX=no
13136 fi
13137 ;;
13138
13139 osf3* | osf4* | osf5*)
13140 case $cc_basename in
13141 KCC*)
13142 # Kuck and Associates, Inc. (KAI) C++ Compiler
13143
13144 # KCC will only create a shared library if the output file
13145 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13146 # to its proper name (with version) after linking.
13147 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'
13148
13149 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13150 hardcode_libdir_separator_CXX=:
13151
13152 # Archives containing C++ object files must be created using
13153 # the KAI C++ compiler.
13154 case $host in
13155 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13156 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13157 esac
13158 ;;
13159 RCC*)
13160 # Rational C++ 2.4.1
13161 # FIXME: insert proper C++ library support
13162 ld_shlibs_CXX=no
13163 ;;
13164 cxx*)
13165 case $host in
13166 osf3*)
13167 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13168 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'
13169 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13170 ;;
13171 *)
13172 allow_undefined_flag_CXX=' -expect_unresolved \*'
13173 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'
13174 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13175 echo "-hidden">> $lib.exp~
13176 $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~
13177 $RM $lib.exp'
13178 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13179 ;;
13180 esac
13181
13182 hardcode_libdir_separator_CXX=:
13183
13184 # Commands to make compiler produce verbose output that lists
13185 # what "hidden" libraries, object files and flags are used when
13186 # linking a shared library.
13187 #
13188 # There doesn't appear to be a way to prevent this compiler from
13189 # explicitly linking system object files so we need to strip them
13190 # from the output so that they don't get included in the library
13191 # dependencies.
13192 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"'
13193 ;;
13194 *)
13195 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13196 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13197 case $host in
13198 osf3*)
13199 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'
13200 ;;
13201 *)
13202 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'
13203 ;;
13204 esac
13205
13206 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13207 hardcode_libdir_separator_CXX=:
13208
13209 # Commands to make compiler produce verbose output that lists
13210 # what "hidden" libraries, object files and flags are used when
13211 # linking a shared library.
13212 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13213
13214 else
13215 # FIXME: insert proper C++ library support
13216 ld_shlibs_CXX=no
13217 fi
13218 ;;
13219 esac
13220 ;;
13221
13222 psos*)
13223 # FIXME: insert proper C++ library support
13224 ld_shlibs_CXX=no
13225 ;;
13226
13227 sunos4*)
13228 case $cc_basename in
13229 CC*)
13230 # Sun C++ 4.x
13231 # FIXME: insert proper C++ library support
13232 ld_shlibs_CXX=no
13233 ;;
13234 lcc*)
13235 # Lucid
13236 # FIXME: insert proper C++ library support
13237 ld_shlibs_CXX=no
13238 ;;
13239 *)
13240 # FIXME: insert proper C++ library support
13241 ld_shlibs_CXX=no
13242 ;;
13243 esac
13244 ;;
13245
13246 solaris*)
13247 case $cc_basename in
13248 CC*)
13249 # Sun C++ 4.2, 5.x and Centerline C++
13250 archive_cmds_need_lc_CXX=yes
13251 no_undefined_flag_CXX=' -zdefs'
13252 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13253 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13254 $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'
13255
13256 hardcode_libdir_flag_spec_CXX='-R$libdir'
13257 hardcode_shlibpath_var_CXX=no
13258 case $host_os in
13259 solaris2.[0-5] | solaris2.[0-5].*) ;;
13260 *)
13261 # The compiler driver will combine and reorder linker options,
13262 # but understands `-z linker_flag'.
13263 # Supported since Solaris 2.6 (maybe 2.5.1?)
13264 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13265 ;;
13266 esac
13267 link_all_deplibs_CXX=yes
13268
13269 output_verbose_link_cmd='func_echo_all'
13270
13271 # Archives containing C++ object files must be created using
13272 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13273 # necessary to make sure instantiated templates are included
13274 # in the archive.
13275 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13276 ;;
13277 gcx*)
13278 # Green Hills C++ Compiler
13279 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13280
13281 # The C++ compiler must be used to create the archive.
13282 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13283 ;;
13284 *)
13285 # GNU C++ compiler with Solaris linker
13286 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13287 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13288 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13289 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13290 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13291 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13292
13293 # Commands to make compiler produce verbose output that lists
13294 # what "hidden" libraries, object files and flags are used when
13295 # linking a shared library.
13296 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13297 else
13298 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13299 # platform.
13300 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13301 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13302 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13303
13304 # Commands to make compiler produce verbose output that lists
13305 # what "hidden" libraries, object files and flags are used when
13306 # linking a shared library.
13307 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13308 fi
13309
13310 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13311 case $host_os in
13312 solaris2.[0-5] | solaris2.[0-5].*) ;;
13313 *)
13314 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13315 ;;
13316 esac
13317 fi
13318 ;;
13319 esac
13320 ;;
13321
13322 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13323 no_undefined_flag_CXX='${wl}-z,text'
13324 archive_cmds_need_lc_CXX=no
13325 hardcode_shlibpath_var_CXX=no
13326 runpath_var='LD_RUN_PATH'
13327
13328 case $cc_basename in
13329 CC*)
13330 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13331 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13332 ;;
13333 *)
13334 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13335 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13336 ;;
13337 esac
13338 ;;
13339
13340 sysv5* | sco3.2v5* | sco5v6*)
13341 # Note: We can NOT use -z defs as we might desire, because we do not
13342 # link with -lc, and that would cause any symbols used from libc to
13343 # always be unresolved, which means just about no library would
13344 # ever link correctly. If we're not using GNU ld we use -z text
13345 # though, which does catch some bad symbols but isn't as heavy-handed
13346 # as -z defs.
13347 no_undefined_flag_CXX='${wl}-z,text'
13348 allow_undefined_flag_CXX='${wl}-z,nodefs'
13349 archive_cmds_need_lc_CXX=no
13350 hardcode_shlibpath_var_CXX=no
13351 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13352 hardcode_libdir_separator_CXX=':'
13353 link_all_deplibs_CXX=yes
13354 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13355 runpath_var='LD_RUN_PATH'
13356
13357 case $cc_basename in
13358 CC*)
13359 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13360 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13361 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13362 '"$old_archive_cmds_CXX"
13363 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13364 '"$reload_cmds_CXX"
13365 ;;
13366 *)
13367 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13368 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13369 ;;
13370 esac
13371 ;;
13372
13373 tandem*)
13374 case $cc_basename in
13375 NCC*)
13376 # NonStop-UX NCC 3.20
13377 # FIXME: insert proper C++ library support
13378 ld_shlibs_CXX=no
13379 ;;
13380 *)
13381 # FIXME: insert proper C++ library support
13382 ld_shlibs_CXX=no
13383 ;;
13384 esac
13385 ;;
13386
13387 vxworks*)
13388 # FIXME: insert proper C++ library support
13389 ld_shlibs_CXX=no
13390 ;;
13391
13392 *)
13393 # FIXME: insert proper C++ library support
13394 ld_shlibs_CXX=no
13395 ;;
13396 esac
13397
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13399 $as_echo "$ld_shlibs_CXX" >&6; }
13400 test "$ld_shlibs_CXX" = no && can_build_shared=no
13401
13402 GCC_CXX="$GXX"
13403 LD_CXX="$LD"
13404
13405 ## CAVEAT EMPTOR:
13406 ## There is no encapsulation within the following macros, do not change
13407 ## the running order or otherwise move them around unless you know exactly
13408 ## what you are doing...
13409 # Dependencies to place before and after the object being linked:
13410 predep_objects_CXX=
13411 postdep_objects_CXX=
13412 predeps_CXX=
13413 postdeps_CXX=
13414 compiler_lib_search_path_CXX=
13415
13416 cat > conftest.$ac_ext <<_LT_EOF
13417 class Foo
13418 {
13419 public:
13420 Foo (void) { a = 0; }
13421 private:
13422 int a;
13423 };
13424 _LT_EOF
13425
13426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13427 (eval $ac_compile) 2>&5
13428 ac_status=$?
13429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13430 test $ac_status = 0; }; then
13431 # Parse the compiler output and extract the necessary
13432 # objects, libraries and library flags.
13433
13434 # Sentinel used to keep track of whether or not we are before
13435 # the conftest object file.
13436 pre_test_object_deps_done=no
13437
13438 for p in `eval "$output_verbose_link_cmd"`; do
13439 case $p in
13440
13441 -L* | -R* | -l*)
13442 # Some compilers place space between "-{L,R}" and the path.
13443 # Remove the space.
13444 if test $p = "-L" ||
13445 test $p = "-R"; then
13446 prev=$p
13447 continue
13448 else
13449 prev=
13450 fi
13451
13452 if test "$pre_test_object_deps_done" = no; then
13453 case $p in
13454 -L* | -R*)
13455 # Internal compiler library paths should come after those
13456 # provided the user. The postdeps already come after the
13457 # user supplied libs so there is no need to process them.
13458 if test -z "$compiler_lib_search_path_CXX"; then
13459 compiler_lib_search_path_CXX="${prev}${p}"
13460 else
13461 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13462 fi
13463 ;;
13464 # The "-l" case would never come before the object being
13465 # linked, so don't bother handling this case.
13466 esac
13467 else
13468 if test -z "$postdeps_CXX"; then
13469 postdeps_CXX="${prev}${p}"
13470 else
13471 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13472 fi
13473 fi
13474 ;;
13475
13476 *.$objext)
13477 # This assumes that the test object file only shows up
13478 # once in the compiler output.
13479 if test "$p" = "conftest.$objext"; then
13480 pre_test_object_deps_done=yes
13481 continue
13482 fi
13483
13484 if test "$pre_test_object_deps_done" = no; then
13485 if test -z "$predep_objects_CXX"; then
13486 predep_objects_CXX="$p"
13487 else
13488 predep_objects_CXX="$predep_objects_CXX $p"
13489 fi
13490 else
13491 if test -z "$postdep_objects_CXX"; then
13492 postdep_objects_CXX="$p"
13493 else
13494 postdep_objects_CXX="$postdep_objects_CXX $p"
13495 fi
13496 fi
13497 ;;
13498
13499 *) ;; # Ignore the rest.
13500
13501 esac
13502 done
13503
13504 # Clean up.
13505 rm -f a.out a.exe
13506 else
13507 echo "libtool.m4: error: problem compiling CXX test program"
13508 fi
13509
13510 $RM -f confest.$objext
13511
13512 # PORTME: override above test on systems where it is broken
13513 case $host_os in
13514 interix[3-9]*)
13515 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13516 # hack all around it, let's just trust "g++" to DTRT.
13517 predep_objects_CXX=
13518 postdep_objects_CXX=
13519 postdeps_CXX=
13520 ;;
13521
13522 linux*)
13523 case `$CC -V 2>&1 | sed 5q` in
13524 *Sun\ C*)
13525 # Sun C++ 5.9
13526
13527 # The more standards-conforming stlport4 library is
13528 # incompatible with the Cstd library. Avoid specifying
13529 # it if it's in CXXFLAGS. Ignore libCrun as
13530 # -library=stlport4 depends on it.
13531 case " $CXX $CXXFLAGS " in
13532 *" -library=stlport4 "*)
13533 solaris_use_stlport4=yes
13534 ;;
13535 esac
13536
13537 if test "$solaris_use_stlport4" != yes; then
13538 postdeps_CXX='-library=Cstd -library=Crun'
13539 fi
13540 ;;
13541 esac
13542 ;;
13543
13544 solaris*)
13545 case $cc_basename in
13546 CC*)
13547 # The more standards-conforming stlport4 library is
13548 # incompatible with the Cstd library. Avoid specifying
13549 # it if it's in CXXFLAGS. Ignore libCrun as
13550 # -library=stlport4 depends on it.
13551 case " $CXX $CXXFLAGS " in
13552 *" -library=stlport4 "*)
13553 solaris_use_stlport4=yes
13554 ;;
13555 esac
13556
13557 # Adding this requires a known-good setup of shared libraries for
13558 # Sun compiler versions before 5.6, else PIC objects from an old
13559 # archive will be linked into the output, leading to subtle bugs.
13560 if test "$solaris_use_stlport4" != yes; then
13561 postdeps_CXX='-library=Cstd -library=Crun'
13562 fi
13563 ;;
13564 esac
13565 ;;
13566 esac
13567
13568
13569 case " $postdeps_CXX " in
13570 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13571 esac
13572 compiler_lib_search_dirs_CXX=
13573 if test -n "${compiler_lib_search_path_CXX}"; then
13574 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13575 fi
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607 lt_prog_compiler_wl_CXX=
13608 lt_prog_compiler_pic_CXX=
13609 lt_prog_compiler_static_CXX=
13610
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13612 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13613
13614 # C++ specific cases for pic, static, wl, etc.
13615 if test "$GXX" = yes; then
13616 lt_prog_compiler_wl_CXX='-Wl,'
13617 lt_prog_compiler_static_CXX='-static'
13618
13619 case $host_os in
13620 aix*)
13621 # All AIX code is PIC.
13622 if test "$host_cpu" = ia64; then
13623 # AIX 5 now supports IA64 processor
13624 lt_prog_compiler_static_CXX='-Bstatic'
13625 fi
13626 lt_prog_compiler_pic_CXX='-fPIC'
13627 ;;
13628
13629 amigaos*)
13630 case $host_cpu in
13631 powerpc)
13632 # see comment about AmigaOS4 .so support
13633 lt_prog_compiler_pic_CXX='-fPIC'
13634 ;;
13635 m68k)
13636 # FIXME: we need at least 68020 code to build shared libraries, but
13637 # adding the `-m68020' flag to GCC prevents building anything better,
13638 # like `-m68040'.
13639 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13640 ;;
13641 esac
13642 ;;
13643
13644 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13645 # PIC is the default for these OSes.
13646 ;;
13647 mingw* | cygwin* | os2* | pw32* | cegcc*)
13648 # This hack is so that the source file can tell whether it is being
13649 # built for inclusion in a dll (and should export symbols for example).
13650 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13651 # (--disable-auto-import) libraries
13652 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13653 ;;
13654 darwin* | rhapsody*)
13655 # PIC is the default on this platform
13656 # Common symbols not allowed in MH_DYLIB files
13657 lt_prog_compiler_pic_CXX='-fno-common'
13658 ;;
13659 *djgpp*)
13660 # DJGPP does not support shared libraries at all
13661 lt_prog_compiler_pic_CXX=
13662 ;;
13663 haiku*)
13664 # PIC is the default for Haiku.
13665 # The "-static" flag exists, but is broken.
13666 lt_prog_compiler_static_CXX=
13667 ;;
13668 interix[3-9]*)
13669 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13670 # Instead, we relocate shared libraries at runtime.
13671 ;;
13672 sysv4*MP*)
13673 if test -d /usr/nec; then
13674 lt_prog_compiler_pic_CXX=-Kconform_pic
13675 fi
13676 ;;
13677 hpux*)
13678 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13679 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13680 # sets the default TLS model and affects inlining.
13681 case $host_cpu in
13682 hppa*64*)
13683 ;;
13684 *)
13685 lt_prog_compiler_pic_CXX='-fPIC'
13686 ;;
13687 esac
13688 ;;
13689 *qnx* | *nto*)
13690 # QNX uses GNU C++, but need to define -shared option too, otherwise
13691 # it will coredump.
13692 lt_prog_compiler_pic_CXX='-fPIC -shared'
13693 ;;
13694 *)
13695 lt_prog_compiler_pic_CXX='-fPIC'
13696 ;;
13697 esac
13698 else
13699 case $host_os in
13700 aix[4-9]*)
13701 # All AIX code is PIC.
13702 if test "$host_cpu" = ia64; then
13703 # AIX 5 now supports IA64 processor
13704 lt_prog_compiler_static_CXX='-Bstatic'
13705 else
13706 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13707 fi
13708 ;;
13709 chorus*)
13710 case $cc_basename in
13711 cxch68*)
13712 # Green Hills C++ Compiler
13713 # _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"
13714 ;;
13715 esac
13716 ;;
13717 dgux*)
13718 case $cc_basename in
13719 ec++*)
13720 lt_prog_compiler_pic_CXX='-KPIC'
13721 ;;
13722 ghcx*)
13723 # Green Hills C++ Compiler
13724 lt_prog_compiler_pic_CXX='-pic'
13725 ;;
13726 *)
13727 ;;
13728 esac
13729 ;;
13730 freebsd* | dragonfly*)
13731 # FreeBSD uses GNU C++
13732 ;;
13733 hpux9* | hpux10* | hpux11*)
13734 case $cc_basename in
13735 CC*)
13736 lt_prog_compiler_wl_CXX='-Wl,'
13737 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13738 if test "$host_cpu" != ia64; then
13739 lt_prog_compiler_pic_CXX='+Z'
13740 fi
13741 ;;
13742 aCC*)
13743 lt_prog_compiler_wl_CXX='-Wl,'
13744 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13745 case $host_cpu in
13746 hppa*64*|ia64*)
13747 # +Z the default
13748 ;;
13749 *)
13750 lt_prog_compiler_pic_CXX='+Z'
13751 ;;
13752 esac
13753 ;;
13754 *)
13755 ;;
13756 esac
13757 ;;
13758 interix*)
13759 # This is c89, which is MS Visual C++ (no shared libs)
13760 # Anyone wants to do a port?
13761 ;;
13762 irix5* | irix6* | nonstopux*)
13763 case $cc_basename in
13764 CC*)
13765 lt_prog_compiler_wl_CXX='-Wl,'
13766 lt_prog_compiler_static_CXX='-non_shared'
13767 # CC pic flag -KPIC is the default.
13768 ;;
13769 *)
13770 ;;
13771 esac
13772 ;;
13773 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13774 case $cc_basename in
13775 KCC*)
13776 # KAI C++ Compiler
13777 lt_prog_compiler_wl_CXX='--backend -Wl,'
13778 lt_prog_compiler_pic_CXX='-fPIC'
13779 ;;
13780 ecpc* )
13781 # old Intel C++ for x86_64 which still supported -KPIC.
13782 lt_prog_compiler_wl_CXX='-Wl,'
13783 lt_prog_compiler_pic_CXX='-KPIC'
13784 lt_prog_compiler_static_CXX='-static'
13785 ;;
13786 icpc* )
13787 # Intel C++, used to be incompatible with GCC.
13788 # ICC 10 doesn't accept -KPIC any more.
13789 lt_prog_compiler_wl_CXX='-Wl,'
13790 lt_prog_compiler_pic_CXX='-fPIC'
13791 lt_prog_compiler_static_CXX='-static'
13792 ;;
13793 pgCC* | pgcpp*)
13794 # Portland Group C++ compiler
13795 lt_prog_compiler_wl_CXX='-Wl,'
13796 lt_prog_compiler_pic_CXX='-fpic'
13797 lt_prog_compiler_static_CXX='-Bstatic'
13798 ;;
13799 cxx*)
13800 # Compaq C++
13801 # Make sure the PIC flag is empty. It appears that all Alpha
13802 # Linux and Compaq Tru64 Unix objects are PIC.
13803 lt_prog_compiler_pic_CXX=
13804 lt_prog_compiler_static_CXX='-non_shared'
13805 ;;
13806 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13807 # IBM XL 8.0, 9.0 on PPC and BlueGene
13808 lt_prog_compiler_wl_CXX='-Wl,'
13809 lt_prog_compiler_pic_CXX='-qpic'
13810 lt_prog_compiler_static_CXX='-qstaticlink'
13811 ;;
13812 *)
13813 case `$CC -V 2>&1 | sed 5q` in
13814 *Sun\ C*)
13815 # Sun C++ 5.9
13816 lt_prog_compiler_pic_CXX='-KPIC'
13817 lt_prog_compiler_static_CXX='-Bstatic'
13818 lt_prog_compiler_wl_CXX='-Qoption ld '
13819 ;;
13820 esac
13821 ;;
13822 esac
13823 ;;
13824 lynxos*)
13825 ;;
13826 m88k*)
13827 ;;
13828 mvs*)
13829 case $cc_basename in
13830 cxx*)
13831 lt_prog_compiler_pic_CXX='-W c,exportall'
13832 ;;
13833 *)
13834 ;;
13835 esac
13836 ;;
13837 netbsd*)
13838 ;;
13839 *qnx* | *nto*)
13840 # QNX uses GNU C++, but need to define -shared option too, otherwise
13841 # it will coredump.
13842 lt_prog_compiler_pic_CXX='-fPIC -shared'
13843 ;;
13844 osf3* | osf4* | osf5*)
13845 case $cc_basename in
13846 KCC*)
13847 lt_prog_compiler_wl_CXX='--backend -Wl,'
13848 ;;
13849 RCC*)
13850 # Rational C++ 2.4.1
13851 lt_prog_compiler_pic_CXX='-pic'
13852 ;;
13853 cxx*)
13854 # Digital/Compaq C++
13855 lt_prog_compiler_wl_CXX='-Wl,'
13856 # Make sure the PIC flag is empty. It appears that all Alpha
13857 # Linux and Compaq Tru64 Unix objects are PIC.
13858 lt_prog_compiler_pic_CXX=
13859 lt_prog_compiler_static_CXX='-non_shared'
13860 ;;
13861 *)
13862 ;;
13863 esac
13864 ;;
13865 psos*)
13866 ;;
13867 solaris*)
13868 case $cc_basename in
13869 CC*)
13870 # Sun C++ 4.2, 5.x and Centerline C++
13871 lt_prog_compiler_pic_CXX='-KPIC'
13872 lt_prog_compiler_static_CXX='-Bstatic'
13873 lt_prog_compiler_wl_CXX='-Qoption ld '
13874 ;;
13875 gcx*)
13876 # Green Hills C++ Compiler
13877 lt_prog_compiler_pic_CXX='-PIC'
13878 ;;
13879 *)
13880 ;;
13881 esac
13882 ;;
13883 sunos4*)
13884 case $cc_basename in
13885 CC*)
13886 # Sun C++ 4.x
13887 lt_prog_compiler_pic_CXX='-pic'
13888 lt_prog_compiler_static_CXX='-Bstatic'
13889 ;;
13890 lcc*)
13891 # Lucid
13892 lt_prog_compiler_pic_CXX='-pic'
13893 ;;
13894 *)
13895 ;;
13896 esac
13897 ;;
13898 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13899 case $cc_basename in
13900 CC*)
13901 lt_prog_compiler_wl_CXX='-Wl,'
13902 lt_prog_compiler_pic_CXX='-KPIC'
13903 lt_prog_compiler_static_CXX='-Bstatic'
13904 ;;
13905 esac
13906 ;;
13907 tandem*)
13908 case $cc_basename in
13909 NCC*)
13910 # NonStop-UX NCC 3.20
13911 lt_prog_compiler_pic_CXX='-KPIC'
13912 ;;
13913 *)
13914 ;;
13915 esac
13916 ;;
13917 vxworks*)
13918 ;;
13919 *)
13920 lt_prog_compiler_can_build_shared_CXX=no
13921 ;;
13922 esac
13923 fi
13924
13925 case $host_os in
13926 # For platforms which do not support PIC, -DPIC is meaningless:
13927 *djgpp*)
13928 lt_prog_compiler_pic_CXX=
13929 ;;
13930 *)
13931 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13932 ;;
13933 esac
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13935 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13936
13937
13938
13939 #
13940 # Check to make sure the PIC flag actually works.
13941 #
13942 if test -n "$lt_prog_compiler_pic_CXX"; then
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13944 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13945 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13946 $as_echo_n "(cached) " >&6
13947 else
13948 lt_cv_prog_compiler_pic_works_CXX=no
13949 ac_outfile=conftest.$ac_objext
13950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13951 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13952 # Insert the option either (1) after the last *FLAGS variable, or
13953 # (2) before a word containing "conftest.", or (3) at the end.
13954 # Note that $ac_compile itself does not contain backslashes and begins
13955 # with a dollar sign (not a hyphen), so the echo should work correctly.
13956 # The option is referenced via a variable to avoid confusing sed.
13957 lt_compile=`echo "$ac_compile" | $SED \
13958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13960 -e 's:$: $lt_compiler_flag:'`
13961 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13962 (eval "$lt_compile" 2>conftest.err)
13963 ac_status=$?
13964 cat conftest.err >&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 if (exit $ac_status) && test -s "$ac_outfile"; then
13967 # The compiler can only warn and ignore the option if not recognized
13968 # So say no if there are warnings other than the usual output.
13969 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13970 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13971 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13972 lt_cv_prog_compiler_pic_works_CXX=yes
13973 fi
13974 fi
13975 $RM conftest*
13976
13977 fi
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13979 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13980
13981 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13982 case $lt_prog_compiler_pic_CXX in
13983 "" | " "*) ;;
13984 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13985 esac
13986 else
13987 lt_prog_compiler_pic_CXX=
13988 lt_prog_compiler_can_build_shared_CXX=no
13989 fi
13990
13991 fi
13992
13993
13994
13995 #
13996 # Check to make sure the static flag actually works.
13997 #
13998 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14000 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14001 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14002 $as_echo_n "(cached) " >&6
14003 else
14004 lt_cv_prog_compiler_static_works_CXX=no
14005 save_LDFLAGS="$LDFLAGS"
14006 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14007 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14008 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14009 # The linker can only warn and ignore the option if not recognized
14010 # So say no if there are warnings
14011 if test -s conftest.err; then
14012 # Append any errors to the config.log.
14013 cat conftest.err 1>&5
14014 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14016 if diff conftest.exp conftest.er2 >/dev/null; then
14017 lt_cv_prog_compiler_static_works_CXX=yes
14018 fi
14019 else
14020 lt_cv_prog_compiler_static_works_CXX=yes
14021 fi
14022 fi
14023 $RM -r conftest*
14024 LDFLAGS="$save_LDFLAGS"
14025
14026 fi
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14028 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14029
14030 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14031 :
14032 else
14033 lt_prog_compiler_static_CXX=
14034 fi
14035
14036
14037
14038
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14040 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14041 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14042 $as_echo_n "(cached) " >&6
14043 else
14044 lt_cv_prog_compiler_c_o_CXX=no
14045 $RM -r conftest 2>/dev/null
14046 mkdir conftest
14047 cd conftest
14048 mkdir out
14049 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14050
14051 lt_compiler_flag="-o out/conftest2.$ac_objext"
14052 # Insert the option either (1) after the last *FLAGS variable, or
14053 # (2) before a word containing "conftest.", or (3) at the end.
14054 # Note that $ac_compile itself does not contain backslashes and begins
14055 # with a dollar sign (not a hyphen), so the echo should work correctly.
14056 lt_compile=`echo "$ac_compile" | $SED \
14057 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14059 -e 's:$: $lt_compiler_flag:'`
14060 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14061 (eval "$lt_compile" 2>out/conftest.err)
14062 ac_status=$?
14063 cat out/conftest.err >&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14066 then
14067 # The compiler can only warn and ignore the option if not recognized
14068 # So say no if there are warnings
14069 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14070 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14071 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14072 lt_cv_prog_compiler_c_o_CXX=yes
14073 fi
14074 fi
14075 chmod u+w . 2>&5
14076 $RM conftest*
14077 # SGI C++ compiler will create directory out/ii_files/ for
14078 # template instantiation
14079 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14080 $RM out/* && rmdir out
14081 cd ..
14082 $RM -r conftest
14083 $RM conftest*
14084
14085 fi
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14087 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14088
14089
14090
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14092 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14093 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14094 $as_echo_n "(cached) " >&6
14095 else
14096 lt_cv_prog_compiler_c_o_CXX=no
14097 $RM -r conftest 2>/dev/null
14098 mkdir conftest
14099 cd conftest
14100 mkdir out
14101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14102
14103 lt_compiler_flag="-o out/conftest2.$ac_objext"
14104 # Insert the option either (1) after the last *FLAGS variable, or
14105 # (2) before a word containing "conftest.", or (3) at the end.
14106 # Note that $ac_compile itself does not contain backslashes and begins
14107 # with a dollar sign (not a hyphen), so the echo should work correctly.
14108 lt_compile=`echo "$ac_compile" | $SED \
14109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14111 -e 's:$: $lt_compiler_flag:'`
14112 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14113 (eval "$lt_compile" 2>out/conftest.err)
14114 ac_status=$?
14115 cat out/conftest.err >&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14118 then
14119 # The compiler can only warn and ignore the option if not recognized
14120 # So say no if there are warnings
14121 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14122 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14123 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14124 lt_cv_prog_compiler_c_o_CXX=yes
14125 fi
14126 fi
14127 chmod u+w . 2>&5
14128 $RM conftest*
14129 # SGI C++ compiler will create directory out/ii_files/ for
14130 # template instantiation
14131 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14132 $RM out/* && rmdir out
14133 cd ..
14134 $RM -r conftest
14135 $RM conftest*
14136
14137 fi
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14139 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14140
14141
14142
14143
14144 hard_links="nottested"
14145 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14146 # do not overwrite the value of need_locks provided by the user
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14148 $as_echo_n "checking if we can lock with hard links... " >&6; }
14149 hard_links=yes
14150 $RM conftest*
14151 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14152 touch conftest.a
14153 ln conftest.a conftest.b 2>&5 || hard_links=no
14154 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14156 $as_echo "$hard_links" >&6; }
14157 if test "$hard_links" = no; then
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14159 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14160 need_locks=warn
14161 fi
14162 else
14163 need_locks=no
14164 fi
14165
14166
14167
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14169 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14170
14171 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14172 case $host_os in
14173 aix[4-9]*)
14174 # If we're using GNU nm, then we don't want the "-C" option.
14175 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14176 # Also, AIX nm treats weak defined symbols like other global defined
14177 # symbols, whereas GNU nm marks them as "W".
14178 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14179 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'
14180 else
14181 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14182 fi
14183 ;;
14184 pw32*)
14185 export_symbols_cmds_CXX="$ltdll_cmds"
14186 ;;
14187 cygwin* | mingw* | cegcc*)
14188 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'
14189 ;;
14190 *)
14191 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14192 ;;
14193 esac
14194 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14195
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14197 $as_echo "$ld_shlibs_CXX" >&6; }
14198 test "$ld_shlibs_CXX" = no && can_build_shared=no
14199
14200 with_gnu_ld_CXX=$with_gnu_ld
14201
14202
14203
14204
14205
14206
14207 #
14208 # Do we need to explicitly link libc?
14209 #
14210 case "x$archive_cmds_need_lc_CXX" in
14211 x|xyes)
14212 # Assume -lc should be added
14213 archive_cmds_need_lc_CXX=yes
14214
14215 if test "$enable_shared" = yes && test "$GCC" = yes; then
14216 case $archive_cmds_CXX in
14217 *'~'*)
14218 # FIXME: we may have to deal with multi-command sequences.
14219 ;;
14220 '$CC '*)
14221 # Test whether the compiler implicitly links with -lc since on some
14222 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14223 # to ld, don't add -lc before -lgcc.
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14225 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14226 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14227 $as_echo_n "(cached) " >&6
14228 else
14229 $RM conftest*
14230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14231
14232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14233 (eval $ac_compile) 2>&5
14234 ac_status=$?
14235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14236 test $ac_status = 0; } 2>conftest.err; then
14237 soname=conftest
14238 lib=conftest
14239 libobjs=conftest.$ac_objext
14240 deplibs=
14241 wl=$lt_prog_compiler_wl_CXX
14242 pic_flag=$lt_prog_compiler_pic_CXX
14243 compiler_flags=-v
14244 linker_flags=-v
14245 verstring=
14246 output_objdir=.
14247 libname=conftest
14248 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14249 allow_undefined_flag_CXX=
14250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14251 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14252 ac_status=$?
14253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14254 test $ac_status = 0; }
14255 then
14256 lt_cv_archive_cmds_need_lc_CXX=no
14257 else
14258 lt_cv_archive_cmds_need_lc_CXX=yes
14259 fi
14260 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14261 else
14262 cat conftest.err 1>&5
14263 fi
14264 $RM conftest*
14265
14266 fi
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14268 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14269 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14270 ;;
14271 esac
14272 fi
14273 ;;
14274 esac
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14340 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14341
14342 library_names_spec=
14343 libname_spec='lib$name'
14344 soname_spec=
14345 shrext_cmds=".so"
14346 postinstall_cmds=
14347 postuninstall_cmds=
14348 finish_cmds=
14349 finish_eval=
14350 shlibpath_var=
14351 shlibpath_overrides_runpath=unknown
14352 version_type=none
14353 dynamic_linker="$host_os ld.so"
14354 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14355 need_lib_prefix=unknown
14356 hardcode_into_libs=no
14357
14358 # when you set need_version to no, make sure it does not cause -set_version
14359 # flags to be left without arguments
14360 need_version=unknown
14361
14362 case $host_os in
14363 aix3*)
14364 version_type=linux
14365 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14366 shlibpath_var=LIBPATH
14367
14368 # AIX 3 has no versioning support, so we append a major version to the name.
14369 soname_spec='${libname}${release}${shared_ext}$major'
14370 ;;
14371
14372 aix[4-9]*)
14373 version_type=linux
14374 need_lib_prefix=no
14375 need_version=no
14376 hardcode_into_libs=yes
14377 if test "$host_cpu" = ia64; then
14378 # AIX 5 supports IA64
14379 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14380 shlibpath_var=LD_LIBRARY_PATH
14381 else
14382 # With GCC up to 2.95.x, collect2 would create an import file
14383 # for dependence libraries. The import file would start with
14384 # the line `#! .'. This would cause the generated library to
14385 # depend on `.', always an invalid library. This was fixed in
14386 # development snapshots of GCC prior to 3.0.
14387 case $host_os in
14388 aix4 | aix4.[01] | aix4.[01].*)
14389 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14390 echo ' yes '
14391 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14392 :
14393 else
14394 can_build_shared=no
14395 fi
14396 ;;
14397 esac
14398 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14399 # soname into executable. Probably we can add versioning support to
14400 # collect2, so additional links can be useful in future.
14401 if test "$aix_use_runtimelinking" = yes; then
14402 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14403 # instead of lib<name>.a to let people know that these are not
14404 # typical AIX shared libraries.
14405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14406 else
14407 # We preserve .a as extension for shared libraries through AIX4.2
14408 # and later when we are not doing run time linking.
14409 library_names_spec='${libname}${release}.a $libname.a'
14410 soname_spec='${libname}${release}${shared_ext}$major'
14411 fi
14412 shlibpath_var=LIBPATH
14413 fi
14414 ;;
14415
14416 amigaos*)
14417 case $host_cpu in
14418 powerpc)
14419 # Since July 2007 AmigaOS4 officially supports .so libraries.
14420 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14422 ;;
14423 m68k)
14424 library_names_spec='$libname.ixlibrary $libname.a'
14425 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14426 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'
14427 ;;
14428 esac
14429 ;;
14430
14431 beos*)
14432 library_names_spec='${libname}${shared_ext}'
14433 dynamic_linker="$host_os ld.so"
14434 shlibpath_var=LIBRARY_PATH
14435 ;;
14436
14437 bsdi[45]*)
14438 version_type=linux
14439 need_version=no
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14441 soname_spec='${libname}${release}${shared_ext}$major'
14442 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14443 shlibpath_var=LD_LIBRARY_PATH
14444 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14445 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14446 # the default ld.so.conf also contains /usr/contrib/lib and
14447 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14448 # libtool to hard-code these into programs
14449 ;;
14450
14451 cygwin* | mingw* | pw32* | cegcc*)
14452 version_type=windows
14453 shrext_cmds=".dll"
14454 need_version=no
14455 need_lib_prefix=no
14456
14457 case $GCC,$host_os in
14458 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14459 library_names_spec='$libname.dll.a'
14460 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14461 postinstall_cmds='base_file=`basename \${file}`~
14462 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14463 dldir=$destdir/`dirname \$dlpath`~
14464 test -d \$dldir || mkdir -p \$dldir~
14465 $install_prog $dir/$dlname \$dldir/$dlname~
14466 chmod a+x \$dldir/$dlname~
14467 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14468 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14469 fi'
14470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14471 dlpath=$dir/\$dldll~
14472 $RM \$dlpath'
14473 shlibpath_overrides_runpath=yes
14474
14475 case $host_os in
14476 cygwin*)
14477 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14478 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14479
14480 ;;
14481 mingw* | cegcc*)
14482 # MinGW DLLs use traditional 'lib' prefix
14483 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14484 ;;
14485 pw32*)
14486 # pw32 DLLs use 'pw' prefix rather than 'lib'
14487 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14488 ;;
14489 esac
14490 ;;
14491
14492 *)
14493 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14494 ;;
14495 esac
14496 dynamic_linker='Win32 ld.exe'
14497 # FIXME: first we should search . and the directory the executable is in
14498 shlibpath_var=PATH
14499 ;;
14500
14501 darwin* | rhapsody*)
14502 dynamic_linker="$host_os dyld"
14503 version_type=darwin
14504 need_lib_prefix=no
14505 need_version=no
14506 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14507 soname_spec='${libname}${release}${major}$shared_ext'
14508 shlibpath_overrides_runpath=yes
14509 shlibpath_var=DYLD_LIBRARY_PATH
14510 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14511
14512 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14513 ;;
14514
14515 dgux*)
14516 version_type=linux
14517 need_lib_prefix=no
14518 need_version=no
14519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14520 soname_spec='${libname}${release}${shared_ext}$major'
14521 shlibpath_var=LD_LIBRARY_PATH
14522 ;;
14523
14524 freebsd* | dragonfly*)
14525 # DragonFly does not have aout. When/if they implement a new
14526 # versioning mechanism, adjust this.
14527 if test -x /usr/bin/objformat; then
14528 objformat=`/usr/bin/objformat`
14529 else
14530 case $host_os in
14531 freebsd[23].*) objformat=aout ;;
14532 *) objformat=elf ;;
14533 esac
14534 fi
14535 version_type=freebsd-$objformat
14536 case $version_type in
14537 freebsd-elf*)
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14539 need_version=no
14540 need_lib_prefix=no
14541 ;;
14542 freebsd-*)
14543 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14544 need_version=yes
14545 ;;
14546 esac
14547 shlibpath_var=LD_LIBRARY_PATH
14548 case $host_os in
14549 freebsd2.*)
14550 shlibpath_overrides_runpath=yes
14551 ;;
14552 freebsd3.[01]* | freebsdelf3.[01]*)
14553 shlibpath_overrides_runpath=yes
14554 hardcode_into_libs=yes
14555 ;;
14556 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14557 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14558 shlibpath_overrides_runpath=no
14559 hardcode_into_libs=yes
14560 ;;
14561 *) # from 4.6 on, and DragonFly
14562 shlibpath_overrides_runpath=yes
14563 hardcode_into_libs=yes
14564 ;;
14565 esac
14566 ;;
14567
14568 gnu*)
14569 version_type=linux
14570 need_lib_prefix=no
14571 need_version=no
14572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14573 soname_spec='${libname}${release}${shared_ext}$major'
14574 shlibpath_var=LD_LIBRARY_PATH
14575 hardcode_into_libs=yes
14576 ;;
14577
14578 haiku*)
14579 version_type=linux
14580 need_lib_prefix=no
14581 need_version=no
14582 dynamic_linker="$host_os runtime_loader"
14583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14584 soname_spec='${libname}${release}${shared_ext}$major'
14585 shlibpath_var=LIBRARY_PATH
14586 shlibpath_overrides_runpath=yes
14587 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14588 hardcode_into_libs=yes
14589 ;;
14590
14591 hpux9* | hpux10* | hpux11*)
14592 # Give a soname corresponding to the major version so that dld.sl refuses to
14593 # link against other versions.
14594 version_type=sunos
14595 need_lib_prefix=no
14596 need_version=no
14597 case $host_cpu in
14598 ia64*)
14599 shrext_cmds='.so'
14600 hardcode_into_libs=yes
14601 dynamic_linker="$host_os dld.so"
14602 shlibpath_var=LD_LIBRARY_PATH
14603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14605 soname_spec='${libname}${release}${shared_ext}$major'
14606 if test "X$HPUX_IA64_MODE" = X32; then
14607 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14608 else
14609 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14610 fi
14611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14612 ;;
14613 hppa*64*)
14614 shrext_cmds='.sl'
14615 hardcode_into_libs=yes
14616 dynamic_linker="$host_os dld.sl"
14617 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14620 soname_spec='${libname}${release}${shared_ext}$major'
14621 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14623 ;;
14624 *)
14625 shrext_cmds='.sl'
14626 dynamic_linker="$host_os dld.sl"
14627 shlibpath_var=SHLIB_PATH
14628 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630 soname_spec='${libname}${release}${shared_ext}$major'
14631 ;;
14632 esac
14633 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14634 postinstall_cmds='chmod 555 $lib'
14635 # or fails outright, so override atomically:
14636 install_override_mode=555
14637 ;;
14638
14639 interix[3-9]*)
14640 version_type=linux
14641 need_lib_prefix=no
14642 need_version=no
14643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14644 soname_spec='${libname}${release}${shared_ext}$major'
14645 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14646 shlibpath_var=LD_LIBRARY_PATH
14647 shlibpath_overrides_runpath=no
14648 hardcode_into_libs=yes
14649 ;;
14650
14651 irix5* | irix6* | nonstopux*)
14652 case $host_os in
14653 nonstopux*) version_type=nonstopux ;;
14654 *)
14655 if test "$lt_cv_prog_gnu_ld" = yes; then
14656 version_type=linux
14657 else
14658 version_type=irix
14659 fi ;;
14660 esac
14661 need_lib_prefix=no
14662 need_version=no
14663 soname_spec='${libname}${release}${shared_ext}$major'
14664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14665 case $host_os in
14666 irix5* | nonstopux*)
14667 libsuff= shlibsuff=
14668 ;;
14669 *)
14670 case $LD in # libtool.m4 will add one of these switches to LD
14671 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14672 libsuff= shlibsuff= libmagic=32-bit;;
14673 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14674 libsuff=32 shlibsuff=N32 libmagic=N32;;
14675 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14676 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14677 *) libsuff= shlibsuff= libmagic=never-match;;
14678 esac
14679 ;;
14680 esac
14681 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14682 shlibpath_overrides_runpath=no
14683 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14684 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14685 hardcode_into_libs=yes
14686 ;;
14687
14688 # No shared lib support for Linux oldld, aout, or coff.
14689 linux*oldld* | linux*aout* | linux*coff*)
14690 dynamic_linker=no
14691 ;;
14692
14693 # This must be Linux ELF.
14694 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14695 version_type=linux
14696 need_lib_prefix=no
14697 need_version=no
14698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14699 soname_spec='${libname}${release}${shared_ext}$major'
14700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14701 shlibpath_var=LD_LIBRARY_PATH
14702 shlibpath_overrides_runpath=no
14703
14704 # Some binutils ld are patched to set DT_RUNPATH
14705 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14706 $as_echo_n "(cached) " >&6
14707 else
14708 lt_cv_shlibpath_overrides_runpath=no
14709 save_LDFLAGS=$LDFLAGS
14710 save_libdir=$libdir
14711 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14712 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14714 /* end confdefs.h. */
14715
14716 int
14717 main ()
14718 {
14719
14720 ;
14721 return 0;
14722 }
14723 _ACEOF
14724 if ac_fn_cxx_try_link "$LINENO"; then :
14725 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14726 lt_cv_shlibpath_overrides_runpath=yes
14727 fi
14728 fi
14729 rm -f core conftest.err conftest.$ac_objext \
14730 conftest$ac_exeext conftest.$ac_ext
14731 LDFLAGS=$save_LDFLAGS
14732 libdir=$save_libdir
14733
14734 fi
14735
14736 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14737
14738 # This implies no fast_install, which is unacceptable.
14739 # Some rework will be needed to allow for fast_install
14740 # before this can be enabled.
14741 hardcode_into_libs=yes
14742
14743 # Append ld.so.conf contents to the search path
14744 if test -f /etc/ld.so.conf; then
14745 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' ' '`
14746 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14747 fi
14748
14749 # We used to test for /lib/ld.so.1 and disable shared libraries on
14750 # powerpc, because MkLinux only supported shared libraries with the
14751 # GNU dynamic linker. Since this was broken with cross compilers,
14752 # most powerpc-linux boxes support dynamic linking these days and
14753 # people can always --disable-shared, the test was removed, and we
14754 # assume the GNU/Linux dynamic linker is in use.
14755 dynamic_linker='GNU/Linux ld.so'
14756 ;;
14757
14758 netbsd*)
14759 version_type=sunos
14760 need_lib_prefix=no
14761 need_version=no
14762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14765 dynamic_linker='NetBSD (a.out) ld.so'
14766 else
14767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14768 soname_spec='${libname}${release}${shared_ext}$major'
14769 dynamic_linker='NetBSD ld.elf_so'
14770 fi
14771 shlibpath_var=LD_LIBRARY_PATH
14772 shlibpath_overrides_runpath=yes
14773 hardcode_into_libs=yes
14774 ;;
14775
14776 newsos6)
14777 version_type=linux
14778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14779 shlibpath_var=LD_LIBRARY_PATH
14780 shlibpath_overrides_runpath=yes
14781 ;;
14782
14783 *nto* | *qnx*)
14784 version_type=qnx
14785 need_lib_prefix=no
14786 need_version=no
14787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14788 soname_spec='${libname}${release}${shared_ext}$major'
14789 shlibpath_var=LD_LIBRARY_PATH
14790 shlibpath_overrides_runpath=no
14791 hardcode_into_libs=yes
14792 dynamic_linker='ldqnx.so'
14793 ;;
14794
14795 openbsd*)
14796 version_type=sunos
14797 sys_lib_dlsearch_path_spec="/usr/lib"
14798 need_lib_prefix=no
14799 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14800 case $host_os in
14801 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14802 *) need_version=no ;;
14803 esac
14804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14806 shlibpath_var=LD_LIBRARY_PATH
14807 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14808 case $host_os in
14809 openbsd2.[89] | openbsd2.[89].*)
14810 shlibpath_overrides_runpath=no
14811 ;;
14812 *)
14813 shlibpath_overrides_runpath=yes
14814 ;;
14815 esac
14816 else
14817 shlibpath_overrides_runpath=yes
14818 fi
14819 ;;
14820
14821 os2*)
14822 libname_spec='$name'
14823 shrext_cmds=".dll"
14824 need_lib_prefix=no
14825 library_names_spec='$libname${shared_ext} $libname.a'
14826 dynamic_linker='OS/2 ld.exe'
14827 shlibpath_var=LIBPATH
14828 ;;
14829
14830 osf3* | osf4* | osf5*)
14831 version_type=osf
14832 need_lib_prefix=no
14833 need_version=no
14834 soname_spec='${libname}${release}${shared_ext}$major'
14835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14836 shlibpath_var=LD_LIBRARY_PATH
14837 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14838 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14839 ;;
14840
14841 rdos*)
14842 dynamic_linker=no
14843 ;;
14844
14845 solaris*)
14846 version_type=linux
14847 need_lib_prefix=no
14848 need_version=no
14849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14850 soname_spec='${libname}${release}${shared_ext}$major'
14851 shlibpath_var=LD_LIBRARY_PATH
14852 shlibpath_overrides_runpath=yes
14853 hardcode_into_libs=yes
14854 # ldd complains unless libraries are executable
14855 postinstall_cmds='chmod +x $lib'
14856 ;;
14857
14858 sunos4*)
14859 version_type=sunos
14860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14861 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14862 shlibpath_var=LD_LIBRARY_PATH
14863 shlibpath_overrides_runpath=yes
14864 if test "$with_gnu_ld" = yes; then
14865 need_lib_prefix=no
14866 fi
14867 need_version=yes
14868 ;;
14869
14870 sysv4 | sysv4.3*)
14871 version_type=linux
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873 soname_spec='${libname}${release}${shared_ext}$major'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 case $host_vendor in
14876 sni)
14877 shlibpath_overrides_runpath=no
14878 need_lib_prefix=no
14879 runpath_var=LD_RUN_PATH
14880 ;;
14881 siemens)
14882 need_lib_prefix=no
14883 ;;
14884 motorola)
14885 need_lib_prefix=no
14886 need_version=no
14887 shlibpath_overrides_runpath=no
14888 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14889 ;;
14890 esac
14891 ;;
14892
14893 sysv4*MP*)
14894 if test -d /usr/nec ;then
14895 version_type=linux
14896 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14897 soname_spec='$libname${shared_ext}.$major'
14898 shlibpath_var=LD_LIBRARY_PATH
14899 fi
14900 ;;
14901
14902 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14903 version_type=freebsd-elf
14904 need_lib_prefix=no
14905 need_version=no
14906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14907 soname_spec='${libname}${release}${shared_ext}$major'
14908 shlibpath_var=LD_LIBRARY_PATH
14909 shlibpath_overrides_runpath=yes
14910 hardcode_into_libs=yes
14911 if test "$with_gnu_ld" = yes; then
14912 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14913 else
14914 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14915 case $host_os in
14916 sco3.2v5*)
14917 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14918 ;;
14919 esac
14920 fi
14921 sys_lib_dlsearch_path_spec='/usr/lib'
14922 ;;
14923
14924 tpf*)
14925 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14926 version_type=linux
14927 need_lib_prefix=no
14928 need_version=no
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930 shlibpath_var=LD_LIBRARY_PATH
14931 shlibpath_overrides_runpath=no
14932 hardcode_into_libs=yes
14933 ;;
14934
14935 uts4*)
14936 version_type=linux
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938 soname_spec='${libname}${release}${shared_ext}$major'
14939 shlibpath_var=LD_LIBRARY_PATH
14940 ;;
14941
14942 *)
14943 dynamic_linker=no
14944 ;;
14945 esac
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14947 $as_echo "$dynamic_linker" >&6; }
14948 test "$dynamic_linker" = no && can_build_shared=no
14949
14950 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14951 if test "$GCC" = yes; then
14952 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14953 fi
14954
14955 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14956 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14957 fi
14958 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14959 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14960 fi
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15000 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15001 hardcode_action_CXX=
15002 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15003 test -n "$runpath_var_CXX" ||
15004 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15005
15006 # We can hardcode non-existent directories.
15007 if test "$hardcode_direct_CXX" != no &&
15008 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15009 # have to relink, otherwise we might link with an installed library
15010 # when we should be linking with a yet-to-be-installed one
15011 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15012 test "$hardcode_minus_L_CXX" != no; then
15013 # Linking always hardcodes the temporary library directory.
15014 hardcode_action_CXX=relink
15015 else
15016 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15017 hardcode_action_CXX=immediate
15018 fi
15019 else
15020 # We cannot hardcode anything, or else we can only hardcode existing
15021 # directories.
15022 hardcode_action_CXX=unsupported
15023 fi
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15025 $as_echo "$hardcode_action_CXX" >&6; }
15026
15027 if test "$hardcode_action_CXX" = relink ||
15028 test "$inherit_rpath_CXX" = yes; then
15029 # Fast installation is not supported
15030 enable_fast_install=no
15031 elif test "$shlibpath_overrides_runpath" = yes ||
15032 test "$enable_shared" = no; then
15033 # Fast installation is not necessary
15034 enable_fast_install=needless
15035 fi
15036
15037
15038
15039
15040
15041
15042
15043 fi # test -n "$compiler"
15044
15045 CC=$lt_save_CC
15046 LDCXX=$LD
15047 LD=$lt_save_LD
15048 GCC=$lt_save_GCC
15049 with_gnu_ld=$lt_save_with_gnu_ld
15050 lt_cv_path_LDCXX=$lt_cv_path_LD
15051 lt_cv_path_LD=$lt_save_path_LD
15052 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15053 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15054 fi # test "$_lt_caught_CXX_error" != yes
15055
15056 ac_ext=c
15057 ac_cpp='$CPP $CPPFLAGS'
15058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074 ac_config_commands="$ac_config_commands libtool"
15075
15076
15077
15078
15079 # Only expand once:
15080
15081
15082
15083 # The tests for host and target for $enable_largefile require
15084 # canonical names.
15085
15086
15087
15088 # As the $enable_largefile decision depends on --enable-plugins we must set it
15089 # even in directories otherwise not depending on the $plugins option.
15090
15091
15092 maybe_plugins=no
15093 for ac_header in dlfcn.h
15094 do :
15095 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15096 "
15097 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15098 cat >>confdefs.h <<_ACEOF
15099 #define HAVE_DLFCN_H 1
15100 _ACEOF
15101 maybe_plugins=yes
15102 fi
15103
15104 done
15105
15106 for ac_header in windows.h
15107 do :
15108 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15109 "
15110 if test "x$ac_cv_header_windows_h" = x""yes; then :
15111 cat >>confdefs.h <<_ACEOF
15112 #define HAVE_WINDOWS_H 1
15113 _ACEOF
15114 maybe_plugins=yes
15115 fi
15116
15117 done
15118
15119
15120 # Check whether --enable-plugins was given.
15121 if test "${enable_plugins+set}" = set; then :
15122 enableval=$enable_plugins; case "${enableval}" in
15123 no) plugins=no ;;
15124 *) plugins=yes
15125 if test "$maybe_plugins" != "yes" ; then
15126 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15127 fi ;;
15128 esac
15129 else
15130 plugins=$maybe_plugins
15131
15132 fi
15133
15134 if test "$plugins" = "yes"; then
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15136 $as_echo_n "checking for library containing dlopen... " >&6; }
15137 if test "${ac_cv_search_dlopen+set}" = set; then :
15138 $as_echo_n "(cached) " >&6
15139 else
15140 ac_func_search_save_LIBS=$LIBS
15141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15142 /* end confdefs.h. */
15143
15144 /* Override any GCC internal prototype to avoid an error.
15145 Use char because int might match the return type of a GCC
15146 builtin and then its argument prototype would still apply. */
15147 #ifdef __cplusplus
15148 extern "C"
15149 #endif
15150 char dlopen ();
15151 int
15152 main ()
15153 {
15154 return dlopen ();
15155 ;
15156 return 0;
15157 }
15158 _ACEOF
15159 for ac_lib in '' dl; do
15160 if test -z "$ac_lib"; then
15161 ac_res="none required"
15162 else
15163 ac_res=-l$ac_lib
15164 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15165 fi
15166 if ac_fn_c_try_link "$LINENO"; then :
15167 ac_cv_search_dlopen=$ac_res
15168 fi
15169 rm -f core conftest.err conftest.$ac_objext \
15170 conftest$ac_exeext
15171 if test "${ac_cv_search_dlopen+set}" = set; then :
15172 break
15173 fi
15174 done
15175 if test "${ac_cv_search_dlopen+set}" = set; then :
15176
15177 else
15178 ac_cv_search_dlopen=no
15179 fi
15180 rm conftest.$ac_ext
15181 LIBS=$ac_func_search_save_LIBS
15182 fi
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15184 $as_echo "$ac_cv_search_dlopen" >&6; }
15185 ac_res=$ac_cv_search_dlopen
15186 if test "$ac_res" != no; then :
15187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15188
15189 fi
15190
15191 fi
15192
15193
15194 case "${host}" in
15195 sparc-*-solaris*|i[3-7]86-*-solaris*)
15196 # On native 32bit sparc and ia32 solaris, large-file and procfs support
15197 # are mutually exclusive; and without procfs support, the bfd/ elf module
15198 # cannot provide certain routines such as elfcore_write_prpsinfo
15199 # or elfcore_write_prstatus. So unless the user explicitly requested
15200 # large-file support through the --enable-largefile switch, disable
15201 # large-file support in favor of procfs support.
15202 test "${target}" = "${host}" -a "x$plugins" = xno \
15203 && : ${enable_largefile="no"}
15204 ;;
15205 esac
15206
15207 # Check whether --enable-largefile was given.
15208 if test "${enable_largefile+set}" = set; then :
15209 enableval=$enable_largefile;
15210 fi
15211
15212 if test "$enable_largefile" != no; then
15213
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15215 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15216 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15217 $as_echo_n "(cached) " >&6
15218 else
15219 ac_cv_sys_largefile_CC=no
15220 if test "$GCC" != yes; then
15221 ac_save_CC=$CC
15222 while :; do
15223 # IRIX 6.2 and later do not support large files by default,
15224 # so use the C compiler's -n32 option if that helps.
15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h. */
15227 #include <sys/types.h>
15228 /* Check that off_t can represent 2**63 - 1 correctly.
15229 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15230 since some C++ compilers masquerading as C compilers
15231 incorrectly reject 9223372036854775807. */
15232 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15233 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15234 && LARGE_OFF_T % 2147483647 == 1)
15235 ? 1 : -1];
15236 int
15237 main ()
15238 {
15239
15240 ;
15241 return 0;
15242 }
15243 _ACEOF
15244 if ac_fn_c_try_compile "$LINENO"; then :
15245 break
15246 fi
15247 rm -f core conftest.err conftest.$ac_objext
15248 CC="$CC -n32"
15249 if ac_fn_c_try_compile "$LINENO"; then :
15250 ac_cv_sys_largefile_CC=' -n32'; break
15251 fi
15252 rm -f core conftest.err conftest.$ac_objext
15253 break
15254 done
15255 CC=$ac_save_CC
15256 rm -f conftest.$ac_ext
15257 fi
15258 fi
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15260 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15261 if test "$ac_cv_sys_largefile_CC" != no; then
15262 CC=$CC$ac_cv_sys_largefile_CC
15263 fi
15264
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15266 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15267 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15268 $as_echo_n "(cached) " >&6
15269 else
15270 while :; do
15271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15272 /* end confdefs.h. */
15273 #include <sys/types.h>
15274 /* Check that off_t can represent 2**63 - 1 correctly.
15275 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15276 since some C++ compilers masquerading as C compilers
15277 incorrectly reject 9223372036854775807. */
15278 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15279 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15280 && LARGE_OFF_T % 2147483647 == 1)
15281 ? 1 : -1];
15282 int
15283 main ()
15284 {
15285
15286 ;
15287 return 0;
15288 }
15289 _ACEOF
15290 if ac_fn_c_try_compile "$LINENO"; then :
15291 ac_cv_sys_file_offset_bits=no; break
15292 fi
15293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15295 /* end confdefs.h. */
15296 #define _FILE_OFFSET_BITS 64
15297 #include <sys/types.h>
15298 /* Check that off_t can represent 2**63 - 1 correctly.
15299 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15300 since some C++ compilers masquerading as C compilers
15301 incorrectly reject 9223372036854775807. */
15302 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15303 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15304 && LARGE_OFF_T % 2147483647 == 1)
15305 ? 1 : -1];
15306 int
15307 main ()
15308 {
15309
15310 ;
15311 return 0;
15312 }
15313 _ACEOF
15314 if ac_fn_c_try_compile "$LINENO"; then :
15315 ac_cv_sys_file_offset_bits=64; break
15316 fi
15317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15318 ac_cv_sys_file_offset_bits=unknown
15319 break
15320 done
15321 fi
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15323 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15324 case $ac_cv_sys_file_offset_bits in #(
15325 no | unknown) ;;
15326 *)
15327 cat >>confdefs.h <<_ACEOF
15328 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15329 _ACEOF
15330 ;;
15331 esac
15332 rm -rf conftest*
15333 if test $ac_cv_sys_file_offset_bits = unknown; then
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15335 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15336 if test "${ac_cv_sys_large_files+set}" = set; then :
15337 $as_echo_n "(cached) " >&6
15338 else
15339 while :; do
15340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341 /* end confdefs.h. */
15342 #include <sys/types.h>
15343 /* Check that off_t can represent 2**63 - 1 correctly.
15344 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15345 since some C++ compilers masquerading as C compilers
15346 incorrectly reject 9223372036854775807. */
15347 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15348 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15349 && LARGE_OFF_T % 2147483647 == 1)
15350 ? 1 : -1];
15351 int
15352 main ()
15353 {
15354
15355 ;
15356 return 0;
15357 }
15358 _ACEOF
15359 if ac_fn_c_try_compile "$LINENO"; then :
15360 ac_cv_sys_large_files=no; break
15361 fi
15362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h. */
15365 #define _LARGE_FILES 1
15366 #include <sys/types.h>
15367 /* Check that off_t can represent 2**63 - 1 correctly.
15368 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15369 since some C++ compilers masquerading as C compilers
15370 incorrectly reject 9223372036854775807. */
15371 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15372 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15373 && LARGE_OFF_T % 2147483647 == 1)
15374 ? 1 : -1];
15375 int
15376 main ()
15377 {
15378
15379 ;
15380 return 0;
15381 }
15382 _ACEOF
15383 if ac_fn_c_try_compile "$LINENO"; then :
15384 ac_cv_sys_large_files=1; break
15385 fi
15386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15387 ac_cv_sys_large_files=unknown
15388 break
15389 done
15390 fi
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15392 $as_echo "$ac_cv_sys_large_files" >&6; }
15393 case $ac_cv_sys_large_files in #(
15394 no | unknown) ;;
15395 *)
15396 cat >>confdefs.h <<_ACEOF
15397 #define _LARGE_FILES $ac_cv_sys_large_files
15398 _ACEOF
15399 ;;
15400 esac
15401 rm -rf conftest*
15402 fi
15403 fi
15404
15405
15406
15407
15408 # Check whether --with-lib-path was given.
15409 if test "${with_lib_path+set}" = set; then :
15410 withval=$with_lib_path; LIB_PATH=$withval
15411 fi
15412
15413 # Check whether --enable-targets was given.
15414 if test "${enable_targets+set}" = set; then :
15415 enableval=$enable_targets; case "${enableval}" in
15416 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
15417 ;;
15418 no) enable_targets= ;;
15419 *) enable_targets=$enableval ;;
15420 esac
15421 fi
15422 # Check whether --enable-64-bit-bfd was given.
15423 if test "${enable_64_bit_bfd+set}" = set; then :
15424 enableval=$enable_64_bit_bfd; case "${enableval}" in
15425 yes) want64=true ;;
15426 no) want64=false ;;
15427 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
15428 esac
15429 else
15430 want64=false
15431 fi
15432
15433
15434 # Check whether --with-sysroot was given.
15435 if test "${with_sysroot+set}" = set; then :
15436 withval=$with_sysroot;
15437 case ${with_sysroot} in
15438 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15439 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15440 esac
15441
15442 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15443 use_sysroot=yes
15444
15445 if test "x$prefix" = xNONE; then
15446 test_prefix=/usr/local
15447 else
15448 test_prefix=$prefix
15449 fi
15450 if test "x$exec_prefix" = xNONE; then
15451 test_exec_prefix=$test_prefix
15452 else
15453 test_exec_prefix=$exec_prefix
15454 fi
15455 case ${TARGET_SYSTEM_ROOT} in
15456 "${test_prefix}"|"${test_prefix}/"*|\
15457 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15458 '${prefix}'|'${prefix}/'*|\
15459 '${exec_prefix}'|'${exec_prefix}/'*)
15460 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15461 TARGET_SYSTEM_ROOT_DEFINE="$t"
15462 ;;
15463 esac
15464
15465 else
15466
15467 use_sysroot=no
15468 TARGET_SYSTEM_ROOT=
15469 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15470
15471 fi
15472
15473
15474
15475
15476
15477 # Check whether --enable-gold was given.
15478 if test "${enable_gold+set}" = set; then :
15479 enableval=$enable_gold; case "${enableval}" in
15480 default)
15481 install_as_default=no
15482 installed_linker=ld.bfd
15483 ;;
15484 yes|no)
15485 install_as_default=yes
15486 installed_linker=ld.bfd
15487 ;;
15488 *)
15489 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
15490 ;;
15491 esac
15492 else
15493 install_as_default=yes
15494 installed_linker=ld.bfd
15495 fi
15496
15497
15498
15499
15500 # Check whether --enable-got was given.
15501 if test "${enable_got+set}" = set; then :
15502 enableval=$enable_got; case "${enableval}" in
15503 target | single | negative | multigot) got_handling=$enableval ;;
15504 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15505 esac
15506 else
15507 got_handling=target
15508 fi
15509
15510
15511 case "${got_handling}" in
15512 target)
15513
15514 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15515 ;;
15516 single)
15517
15518 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15519 ;;
15520 negative)
15521
15522 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15523 ;;
15524 multigot)
15525
15526 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15527 ;;
15528 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15529 esac
15530
15531 # PR gas/19109
15532 # Decide the default method for compressing debug sections.
15533 ac_default_compressed_debug_sections=unset
15534 # Provide a configure time option to override our default.
15535 # Check whether --enable-compressed_debug_sections was given.
15536 if test "${enable_compressed_debug_sections+set}" = set; then :
15537 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
15538 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
15539 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
15540 esac
15541 fi
15542
15543 # Decide if -z relro should be enabled in ELF linker by default.
15544 ac_default_ld_z_relro=unset
15545 # Provide a configure time option to override our default.
15546 # Check whether --enable-relro was given.
15547 if test "${enable_relro+set}" = set; then :
15548 enableval=$enable_relro; case "${enableval}" in
15549 yes) ac_default_ld_z_relro=1 ;;
15550 no) ac_default_ld_z_relro=0 ;;
15551 esac
15552 fi
15553
15554
15555 # Set the 'development' global.
15556 . $srcdir/../bfd/development.sh
15557
15558 # Set acp_cpp_for_build variable
15559 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
15560
15561 # Default set of GCC warnings to enable.
15562 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15563 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15564
15565 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15567 /* end confdefs.h. */
15568 __GNUC__
15569 _ACEOF
15570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15571 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15572
15573 else
15574 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
15575 fi
15576 rm -f conftest*
15577
15578
15579 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15581 /* end confdefs.h. */
15582 __GNUC__
15583 _ACEOF
15584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15585 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
15586
15587 else
15588 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15589 fi
15590 rm -f conftest*
15591
15592
15593 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15594 WARN_WRITE_STRINGS=""
15595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15596 /* end confdefs.h. */
15597 __GNUC__
15598 _ACEOF
15599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15600 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15601
15602 else
15603 WARN_WRITE_STRINGS="-Wwrite-strings"
15604 fi
15605 rm -f conftest*
15606
15607
15608 # Verify CC_FOR_BUILD to be compatible with warning flags
15609
15610 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15612 /* end confdefs.h. */
15613 __GNUC__
15614 _ACEOF
15615 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
15616 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15617
15618 else
15619 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
15620 fi
15621 rm -f conftest*
15622
15623
15624 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h. */
15627 __GNUC__
15628 _ACEOF
15629 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
15630 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
15631
15632 else
15633 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
15634 fi
15635 rm -f conftest*
15636
15637
15638 # Check whether --enable-werror was given.
15639 if test "${enable_werror+set}" = set; then :
15640 enableval=$enable_werror; case "${enableval}" in
15641 yes | y) ERROR_ON_WARNING="yes" ;;
15642 no | n) ERROR_ON_WARNING="no" ;;
15643 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15644 esac
15645 fi
15646
15647
15648 # Disable -Wformat by default when using gcc on mingw
15649 case "${host}" in
15650 *-*-mingw32*)
15651 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15652 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
15653 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
15654 fi
15655 ;;
15656 *) ;;
15657 esac
15658
15659 # Enable -Werror by default when using gcc. Turn it off for releases.
15660 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
15661 ERROR_ON_WARNING=yes
15662 fi
15663
15664 NO_WERROR=
15665 if test "${ERROR_ON_WARNING}" = yes ; then
15666 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
15667 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
15668 NO_WERROR="-Wno-error"
15669 fi
15670
15671 if test "${GCC}" = yes ; then
15672 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15673 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
15674 fi
15675
15676 # Check whether --enable-build-warnings was given.
15677 if test "${enable_build_warnings+set}" = set; then :
15678 enableval=$enable_build_warnings; case "${enableval}" in
15679 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15680 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
15681 no) if test "${GCC}" = yes ; then
15682 WARN_CFLAGS="-w"
15683 WARN_CFLAGS_FOR_BUILD="-w"
15684 fi;;
15685 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15686 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
15687 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
15688 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15689 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
15690 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
15691 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
15692 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15693 esac
15694 fi
15695
15696
15697 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
15698 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
15699 fi
15700
15701
15702
15703
15704
15705
15706
15707
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15709 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15710 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
15711 $as_echo_n "(cached) " >&6
15712 else
15713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15714 /* end confdefs.h. */
15715 #include <locale.h>
15716 int
15717 main ()
15718 {
15719 return LC_MESSAGES
15720 ;
15721 return 0;
15722 }
15723 _ACEOF
15724 if ac_fn_c_try_link "$LINENO"; then :
15725 am_cv_val_LC_MESSAGES=yes
15726 else
15727 am_cv_val_LC_MESSAGES=no
15728 fi
15729 rm -f core conftest.err conftest.$ac_objext \
15730 conftest$ac_exeext conftest.$ac_ext
15731 fi
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15733 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15734 if test $am_cv_val_LC_MESSAGES = yes; then
15735
15736 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15737
15738 fi
15739
15740
15741 ac_config_headers="$ac_config_headers config.h:config.in"
15742
15743
15744 # PR 14072
15745
15746
15747 if test -z "$target" ; then
15748 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
15749 fi
15750 if test -z "$host" ; then
15751 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
15752 fi
15753
15754 # host-specific stuff:
15755
15756 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk"
15757 # If we haven't got the data from the intl directory,
15758 # assume NLS is disabled.
15759 USE_NLS=no
15760 LIBINTL=
15761 LIBINTL_DEP=
15762 INCINTL=
15763 XGETTEXT=
15764 GMSGFMT=
15765 POSUB=
15766
15767 if test -f ../intl/config.intl; then
15768 . ../intl/config.intl
15769 fi
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15771 $as_echo_n "checking whether NLS is requested... " >&6; }
15772 if test x"$USE_NLS" != xyes; then
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15774 $as_echo "no" >&6; }
15775 else
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15777 $as_echo "yes" >&6; }
15778
15779 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15780
15781
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15783 $as_echo_n "checking for catalogs to be installed... " >&6; }
15784 # Look for .po and .gmo files in the source directory.
15785 CATALOGS=
15786 XLINGUAS=
15787 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15788 # If there aren't any .gmo files the shell will give us the
15789 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15790 # weeded out.
15791 case "$cat" in *\**)
15792 continue;;
15793 esac
15794 # The quadruple backslash is collapsed to a double backslash
15795 # by the backticks, then collapsed again by the double quotes,
15796 # leaving us with one backslash in the sed expression (right
15797 # before the dot that mustn't act as a wildcard).
15798 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15799 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15800 # The user is allowed to set LINGUAS to a list of languages to
15801 # install catalogs for. If it's empty that means "all of them."
15802 if test "x$LINGUAS" = x; then
15803 CATALOGS="$CATALOGS $cat"
15804 XLINGUAS="$XLINGUAS $lang"
15805 else
15806 case "$LINGUAS" in *$lang*)
15807 CATALOGS="$CATALOGS $cat"
15808 XLINGUAS="$XLINGUAS $lang"
15809 ;;
15810 esac
15811 fi
15812 done
15813 LINGUAS="$XLINGUAS"
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15815 $as_echo "$LINGUAS" >&6; }
15816
15817
15818 DATADIRNAME=share
15819
15820 INSTOBJEXT=.mo
15821
15822 GENCAT=gencat
15823
15824 CATOBJEXT=.gmo
15825
15826 fi
15827
15828 MKINSTALLDIRS=
15829 if test -n "$ac_aux_dir"; then
15830 case "$ac_aux_dir" in
15831 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15832 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15833 esac
15834 fi
15835 if test -z "$MKINSTALLDIRS"; then
15836 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15837 fi
15838
15839
15840
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15842 $as_echo_n "checking whether NLS is requested... " >&6; }
15843 # Check whether --enable-nls was given.
15844 if test "${enable_nls+set}" = set; then :
15845 enableval=$enable_nls; USE_NLS=$enableval
15846 else
15847 USE_NLS=yes
15848 fi
15849
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15851 $as_echo "$USE_NLS" >&6; }
15852
15853
15854
15855
15856
15857
15858 # Prepare PATH_SEPARATOR.
15859 # The user is always right.
15860 if test "${PATH_SEPARATOR+set}" != set; then
15861 echo "#! /bin/sh" >conf$$.sh
15862 echo "exit 0" >>conf$$.sh
15863 chmod +x conf$$.sh
15864 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15865 PATH_SEPARATOR=';'
15866 else
15867 PATH_SEPARATOR=:
15868 fi
15869 rm -f conf$$.sh
15870 fi
15871
15872 # Find out how to test for executable files. Don't use a zero-byte file,
15873 # as systems may use methods other than mode bits to determine executability.
15874 cat >conf$$.file <<_ASEOF
15875 #! /bin/sh
15876 exit 0
15877 _ASEOF
15878 chmod +x conf$$.file
15879 if test -x conf$$.file >/dev/null 2>&1; then
15880 ac_executable_p="test -x"
15881 else
15882 ac_executable_p="test -f"
15883 fi
15884 rm -f conf$$.file
15885
15886 # Extract the first word of "msgfmt", so it can be a program name with args.
15887 set dummy msgfmt; ac_word=$2
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15889 $as_echo_n "checking for $ac_word... " >&6; }
15890 if test "${ac_cv_path_MSGFMT+set}" = set; then :
15891 $as_echo_n "(cached) " >&6
15892 else
15893 case "$MSGFMT" in
15894 [\\/]* | ?:[\\/]*)
15895 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15896 ;;
15897 *)
15898 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15899 for ac_dir in $PATH; do
15900 IFS="$ac_save_IFS"
15901 test -z "$ac_dir" && ac_dir=.
15902 for ac_exec_ext in '' $ac_executable_extensions; do
15903 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15904 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15905 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15906 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15907 break 2
15908 fi
15909 fi
15910 done
15911 done
15912 IFS="$ac_save_IFS"
15913 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15914 ;;
15915 esac
15916 fi
15917 MSGFMT="$ac_cv_path_MSGFMT"
15918 if test "$MSGFMT" != ":"; then
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15920 $as_echo "$MSGFMT" >&6; }
15921 else
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15923 $as_echo "no" >&6; }
15924 fi
15925
15926 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15927 set dummy gmsgfmt; ac_word=$2
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15929 $as_echo_n "checking for $ac_word... " >&6; }
15930 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15931 $as_echo_n "(cached) " >&6
15932 else
15933 case $GMSGFMT in
15934 [\\/]* | ?:[\\/]*)
15935 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15936 ;;
15937 *)
15938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15939 for as_dir in $PATH
15940 do
15941 IFS=$as_save_IFS
15942 test -z "$as_dir" && as_dir=.
15943 for ac_exec_ext in '' $ac_executable_extensions; do
15944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15945 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15947 break 2
15948 fi
15949 done
15950 done
15951 IFS=$as_save_IFS
15952
15953 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15954 ;;
15955 esac
15956 fi
15957 GMSGFMT=$ac_cv_path_GMSGFMT
15958 if test -n "$GMSGFMT"; then
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15960 $as_echo "$GMSGFMT" >&6; }
15961 else
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15963 $as_echo "no" >&6; }
15964 fi
15965
15966
15967
15968
15969 # Prepare PATH_SEPARATOR.
15970 # The user is always right.
15971 if test "${PATH_SEPARATOR+set}" != set; then
15972 echo "#! /bin/sh" >conf$$.sh
15973 echo "exit 0" >>conf$$.sh
15974 chmod +x conf$$.sh
15975 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15976 PATH_SEPARATOR=';'
15977 else
15978 PATH_SEPARATOR=:
15979 fi
15980 rm -f conf$$.sh
15981 fi
15982
15983 # Find out how to test for executable files. Don't use a zero-byte file,
15984 # as systems may use methods other than mode bits to determine executability.
15985 cat >conf$$.file <<_ASEOF
15986 #! /bin/sh
15987 exit 0
15988 _ASEOF
15989 chmod +x conf$$.file
15990 if test -x conf$$.file >/dev/null 2>&1; then
15991 ac_executable_p="test -x"
15992 else
15993 ac_executable_p="test -f"
15994 fi
15995 rm -f conf$$.file
15996
15997 # Extract the first word of "xgettext", so it can be a program name with args.
15998 set dummy xgettext; ac_word=$2
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16000 $as_echo_n "checking for $ac_word... " >&6; }
16001 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16002 $as_echo_n "(cached) " >&6
16003 else
16004 case "$XGETTEXT" in
16005 [\\/]* | ?:[\\/]*)
16006 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16007 ;;
16008 *)
16009 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16010 for ac_dir in $PATH; do
16011 IFS="$ac_save_IFS"
16012 test -z "$ac_dir" && ac_dir=.
16013 for ac_exec_ext in '' $ac_executable_extensions; do
16014 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16015 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16016 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16017 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16018 break 2
16019 fi
16020 fi
16021 done
16022 done
16023 IFS="$ac_save_IFS"
16024 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16025 ;;
16026 esac
16027 fi
16028 XGETTEXT="$ac_cv_path_XGETTEXT"
16029 if test "$XGETTEXT" != ":"; then
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16031 $as_echo "$XGETTEXT" >&6; }
16032 else
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16034 $as_echo "no" >&6; }
16035 fi
16036
16037 rm -f messages.po
16038
16039
16040 # Prepare PATH_SEPARATOR.
16041 # The user is always right.
16042 if test "${PATH_SEPARATOR+set}" != set; then
16043 echo "#! /bin/sh" >conf$$.sh
16044 echo "exit 0" >>conf$$.sh
16045 chmod +x conf$$.sh
16046 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16047 PATH_SEPARATOR=';'
16048 else
16049 PATH_SEPARATOR=:
16050 fi
16051 rm -f conf$$.sh
16052 fi
16053
16054 # Find out how to test for executable files. Don't use a zero-byte file,
16055 # as systems may use methods other than mode bits to determine executability.
16056 cat >conf$$.file <<_ASEOF
16057 #! /bin/sh
16058 exit 0
16059 _ASEOF
16060 chmod +x conf$$.file
16061 if test -x conf$$.file >/dev/null 2>&1; then
16062 ac_executable_p="test -x"
16063 else
16064 ac_executable_p="test -f"
16065 fi
16066 rm -f conf$$.file
16067
16068 # Extract the first word of "msgmerge", so it can be a program name with args.
16069 set dummy msgmerge; ac_word=$2
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16071 $as_echo_n "checking for $ac_word... " >&6; }
16072 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16073 $as_echo_n "(cached) " >&6
16074 else
16075 case "$MSGMERGE" in
16076 [\\/]* | ?:[\\/]*)
16077 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16078 ;;
16079 *)
16080 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16081 for ac_dir in $PATH; do
16082 IFS="$ac_save_IFS"
16083 test -z "$ac_dir" && ac_dir=.
16084 for ac_exec_ext in '' $ac_executable_extensions; do
16085 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16086 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16087 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16088 break 2
16089 fi
16090 fi
16091 done
16092 done
16093 IFS="$ac_save_IFS"
16094 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16095 ;;
16096 esac
16097 fi
16098 MSGMERGE="$ac_cv_path_MSGMERGE"
16099 if test "$MSGMERGE" != ":"; then
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16101 $as_echo "$MSGMERGE" >&6; }
16102 else
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16104 $as_echo "no" >&6; }
16105 fi
16106
16107
16108 if test "$GMSGFMT" != ":"; then
16109 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16110 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16111 : ;
16112 else
16113 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16115 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16116 GMSGFMT=":"
16117 fi
16118 fi
16119
16120 if test "$XGETTEXT" != ":"; then
16121 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16122 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16123 : ;
16124 else
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16126 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16127 XGETTEXT=":"
16128 fi
16129 rm -f messages.po
16130 fi
16131
16132 ac_config_commands="$ac_config_commands default-1"
16133
16134
16135
16136
16137
16138 for ac_prog in 'bison -y' byacc
16139 do
16140 # Extract the first word of "$ac_prog", so it can be a program name with args.
16141 set dummy $ac_prog; ac_word=$2
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16143 $as_echo_n "checking for $ac_word... " >&6; }
16144 if test "${ac_cv_prog_YACC+set}" = set; then :
16145 $as_echo_n "(cached) " >&6
16146 else
16147 if test -n "$YACC"; then
16148 ac_cv_prog_YACC="$YACC" # Let the user override the test.
16149 else
16150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16151 for as_dir in $PATH
16152 do
16153 IFS=$as_save_IFS
16154 test -z "$as_dir" && as_dir=.
16155 for ac_exec_ext in '' $ac_executable_extensions; do
16156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16157 ac_cv_prog_YACC="$ac_prog"
16158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16159 break 2
16160 fi
16161 done
16162 done
16163 IFS=$as_save_IFS
16164
16165 fi
16166 fi
16167 YACC=$ac_cv_prog_YACC
16168 if test -n "$YACC"; then
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16170 $as_echo "$YACC" >&6; }
16171 else
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16173 $as_echo "no" >&6; }
16174 fi
16175
16176
16177 test -n "$YACC" && break
16178 done
16179 test -n "$YACC" || YACC="yacc"
16180
16181 for ac_prog in flex lex
16182 do
16183 # Extract the first word of "$ac_prog", so it can be a program name with args.
16184 set dummy $ac_prog; ac_word=$2
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16186 $as_echo_n "checking for $ac_word... " >&6; }
16187 if test "${ac_cv_prog_LEX+set}" = set; then :
16188 $as_echo_n "(cached) " >&6
16189 else
16190 if test -n "$LEX"; then
16191 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16192 else
16193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16194 for as_dir in $PATH
16195 do
16196 IFS=$as_save_IFS
16197 test -z "$as_dir" && as_dir=.
16198 for ac_exec_ext in '' $ac_executable_extensions; do
16199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16200 ac_cv_prog_LEX="$ac_prog"
16201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16202 break 2
16203 fi
16204 done
16205 done
16206 IFS=$as_save_IFS
16207
16208 fi
16209 fi
16210 LEX=$ac_cv_prog_LEX
16211 if test -n "$LEX"; then
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16213 $as_echo "$LEX" >&6; }
16214 else
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16216 $as_echo "no" >&6; }
16217 fi
16218
16219
16220 test -n "$LEX" && break
16221 done
16222 test -n "$LEX" || LEX=":"
16223
16224 case "$LEX" in
16225 :|*"missing "*) ;;
16226 *) cat >conftest.l <<_ACEOF
16227 %%
16228 a { ECHO; }
16229 b { REJECT; }
16230 c { yymore (); }
16231 d { yyless (1); }
16232 e { yyless (input () != 0); }
16233 f { unput (yytext[0]); }
16234 . { BEGIN INITIAL; }
16235 %%
16236 #ifdef YYTEXT_POINTER
16237 extern char *yytext;
16238 #endif
16239 int
16240 main (void)
16241 {
16242 return ! yylex () + ! yywrap ();
16243 }
16244 _ACEOF
16245 { { ac_try="$LEX conftest.l"
16246 case "(($ac_try" in
16247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16248 *) ac_try_echo=$ac_try;;
16249 esac
16250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16251 $as_echo "$ac_try_echo"; } >&5
16252 (eval "$LEX conftest.l") 2>&5
16253 ac_status=$?
16254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16255 test $ac_status = 0; }
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16257 $as_echo_n "checking lex output file root... " >&6; }
16258 if test "${ac_cv_prog_lex_root+set}" = set; then :
16259 $as_echo_n "(cached) " >&6
16260 else
16261
16262 if test -f lex.yy.c; then
16263 ac_cv_prog_lex_root=lex.yy
16264 elif test -f lexyy.c; then
16265 ac_cv_prog_lex_root=lexyy
16266 else
16267 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
16268 fi
16269 fi
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16271 $as_echo "$ac_cv_prog_lex_root" >&6; }
16272 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16273
16274 if test -z "${LEXLIB+set}"; then
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16276 $as_echo_n "checking lex library... " >&6; }
16277 if test "${ac_cv_lib_lex+set}" = set; then :
16278 $as_echo_n "(cached) " >&6
16279 else
16280
16281 ac_save_LIBS=$LIBS
16282 ac_cv_lib_lex='none needed'
16283 for ac_lib in '' -lfl -ll; do
16284 LIBS="$ac_lib $ac_save_LIBS"
16285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286 /* end confdefs.h. */
16287 `cat $LEX_OUTPUT_ROOT.c`
16288 _ACEOF
16289 if ac_fn_c_try_link "$LINENO"; then :
16290 ac_cv_lib_lex=$ac_lib
16291 fi
16292 rm -f core conftest.err conftest.$ac_objext \
16293 conftest$ac_exeext conftest.$ac_ext
16294 test "$ac_cv_lib_lex" != 'none needed' && break
16295 done
16296 LIBS=$ac_save_LIBS
16297
16298 fi
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16300 $as_echo "$ac_cv_lib_lex" >&6; }
16301 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16302 fi
16303
16304
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16306 $as_echo_n "checking whether yytext is a pointer... " >&6; }
16307 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16308 $as_echo_n "(cached) " >&6
16309 else
16310 # POSIX says lex can declare yytext either as a pointer or an array; the
16311 # default is implementation-dependent. Figure out which it is, since
16312 # not all implementations provide the %pointer and %array declarations.
16313 ac_cv_prog_lex_yytext_pointer=no
16314 ac_save_LIBS=$LIBS
16315 LIBS="$LEXLIB $ac_save_LIBS"
16316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16317 /* end confdefs.h. */
16318 #define YYTEXT_POINTER 1
16319 `cat $LEX_OUTPUT_ROOT.c`
16320 _ACEOF
16321 if ac_fn_c_try_link "$LINENO"; then :
16322 ac_cv_prog_lex_yytext_pointer=yes
16323 fi
16324 rm -f core conftest.err conftest.$ac_objext \
16325 conftest$ac_exeext conftest.$ac_ext
16326 LIBS=$ac_save_LIBS
16327
16328 fi
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16330 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16331 if test $ac_cv_prog_lex_yytext_pointer = yes; then
16332
16333 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16334
16335 fi
16336 rm -f conftest.l $LEX_OUTPUT_ROOT.c
16337 ;;
16338 esac
16339 if test "$LEX" = :; then
16340 LEX=${am_missing_run}flex
16341 fi
16342
16343
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16345 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16346 # Check whether --enable-maintainer-mode was given.
16347 if test "${enable_maintainer_mode+set}" = set; then :
16348 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16349 else
16350 USE_MAINTAINER_MODE=no
16351 fi
16352
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16354 $as_echo "$USE_MAINTAINER_MODE" >&6; }
16355 if test $USE_MAINTAINER_MODE = yes; then
16356 MAINTAINER_MODE_TRUE=
16357 MAINTAINER_MODE_FALSE='#'
16358 else
16359 MAINTAINER_MODE_TRUE='#'
16360 MAINTAINER_MODE_FALSE=
16361 fi
16362
16363 MAINT=$MAINTAINER_MODE_TRUE
16364
16365
16366 if false; then
16367 GENINSRC_NEVER_TRUE=
16368 GENINSRC_NEVER_FALSE='#'
16369 else
16370 GENINSRC_NEVER_TRUE='#'
16371 GENINSRC_NEVER_FALSE=
16372 fi
16373
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16375 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16376 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16377 $as_echo_n "(cached) " >&6
16378 else
16379 echo abfoo >t1
16380 echo cdfoo >t2
16381 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16382 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16383 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16384 :
16385 else
16386 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16387 fi
16388 fi
16389 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16390 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16391 :
16392 else
16393 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16394 fi
16395 fi
16396 rm t1 t2
16397
16398 fi
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16400 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
16401 do_compare="$gcc_cv_prog_cmp_skip"
16402
16403
16404
16405 . ${srcdir}/configure.host
16406
16407
16408
16409
16410 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
16411 do :
16412 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16413 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16414 eval as_val=\$$as_ac_Header
16415 if test "x$as_val" = x""yes; then :
16416 cat >>confdefs.h <<_ACEOF
16417 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16418 _ACEOF
16419
16420 fi
16421
16422 done
16423
16424 for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16425 do :
16426 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16427 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16428 eval as_val=\$$as_ac_Header
16429 if test "x$as_val" = x""yes; then :
16430 cat >>confdefs.h <<_ACEOF
16431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16432 _ACEOF
16433
16434 fi
16435
16436 done
16437
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16439 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
16440 if test "${gcc_cv_header_string+set}" = set; then :
16441 $as_echo_n "(cached) " >&6
16442 else
16443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16444 /* end confdefs.h. */
16445 #include <string.h>
16446 #include <strings.h>
16447 int
16448 main ()
16449 {
16450
16451 ;
16452 return 0;
16453 }
16454 _ACEOF
16455 if ac_fn_c_try_compile "$LINENO"; then :
16456 gcc_cv_header_string=yes
16457 else
16458 gcc_cv_header_string=no
16459 fi
16460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16461 fi
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16463 $as_echo "$gcc_cv_header_string" >&6; }
16464 if test $gcc_cv_header_string = yes; then
16465
16466 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16467
16468 fi
16469
16470 for ac_func in glob mkstemp realpath sbrk setlocale waitpid
16471 do :
16472 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16473 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16474 eval as_val=\$$as_ac_var
16475 if test "x$as_val" = x""yes; then :
16476 cat >>confdefs.h <<_ACEOF
16477 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16478 _ACEOF
16479
16480 fi
16481 done
16482
16483 for ac_func in open lseek close
16484 do :
16485 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16486 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16487 eval as_val=\$$as_ac_var
16488 if test "x$as_val" = x""yes; then :
16489 cat >>confdefs.h <<_ACEOF
16490 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16491 _ACEOF
16492
16493 fi
16494 done
16495
16496 ac_header_dirent=no
16497 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16498 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16500 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16502 $as_echo_n "(cached) " >&6
16503 else
16504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16505 /* end confdefs.h. */
16506 #include <sys/types.h>
16507 #include <$ac_hdr>
16508
16509 int
16510 main ()
16511 {
16512 if ((DIR *) 0)
16513 return 0;
16514 ;
16515 return 0;
16516 }
16517 _ACEOF
16518 if ac_fn_c_try_compile "$LINENO"; then :
16519 eval "$as_ac_Header=yes"
16520 else
16521 eval "$as_ac_Header=no"
16522 fi
16523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16524 fi
16525 eval ac_res=\$$as_ac_Header
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16527 $as_echo "$ac_res" >&6; }
16528 eval as_val=\$$as_ac_Header
16529 if test "x$as_val" = x""yes; then :
16530 cat >>confdefs.h <<_ACEOF
16531 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16532 _ACEOF
16533
16534 ac_header_dirent=$ac_hdr; break
16535 fi
16536
16537 done
16538 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16539 if test $ac_header_dirent = dirent.h; then
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16541 $as_echo_n "checking for library containing opendir... " >&6; }
16542 if test "${ac_cv_search_opendir+set}" = set; then :
16543 $as_echo_n "(cached) " >&6
16544 else
16545 ac_func_search_save_LIBS=$LIBS
16546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16547 /* end confdefs.h. */
16548
16549 /* Override any GCC internal prototype to avoid an error.
16550 Use char because int might match the return type of a GCC
16551 builtin and then its argument prototype would still apply. */
16552 #ifdef __cplusplus
16553 extern "C"
16554 #endif
16555 char opendir ();
16556 int
16557 main ()
16558 {
16559 return opendir ();
16560 ;
16561 return 0;
16562 }
16563 _ACEOF
16564 for ac_lib in '' dir; do
16565 if test -z "$ac_lib"; then
16566 ac_res="none required"
16567 else
16568 ac_res=-l$ac_lib
16569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16570 fi
16571 if ac_fn_c_try_link "$LINENO"; then :
16572 ac_cv_search_opendir=$ac_res
16573 fi
16574 rm -f core conftest.err conftest.$ac_objext \
16575 conftest$ac_exeext
16576 if test "${ac_cv_search_opendir+set}" = set; then :
16577 break
16578 fi
16579 done
16580 if test "${ac_cv_search_opendir+set}" = set; then :
16581
16582 else
16583 ac_cv_search_opendir=no
16584 fi
16585 rm conftest.$ac_ext
16586 LIBS=$ac_func_search_save_LIBS
16587 fi
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16589 $as_echo "$ac_cv_search_opendir" >&6; }
16590 ac_res=$ac_cv_search_opendir
16591 if test "$ac_res" != no; then :
16592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16593
16594 fi
16595
16596 else
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16598 $as_echo_n "checking for library containing opendir... " >&6; }
16599 if test "${ac_cv_search_opendir+set}" = set; then :
16600 $as_echo_n "(cached) " >&6
16601 else
16602 ac_func_search_save_LIBS=$LIBS
16603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16604 /* end confdefs.h. */
16605
16606 /* Override any GCC internal prototype to avoid an error.
16607 Use char because int might match the return type of a GCC
16608 builtin and then its argument prototype would still apply. */
16609 #ifdef __cplusplus
16610 extern "C"
16611 #endif
16612 char opendir ();
16613 int
16614 main ()
16615 {
16616 return opendir ();
16617 ;
16618 return 0;
16619 }
16620 _ACEOF
16621 for ac_lib in '' x; do
16622 if test -z "$ac_lib"; then
16623 ac_res="none required"
16624 else
16625 ac_res=-l$ac_lib
16626 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16627 fi
16628 if ac_fn_c_try_link "$LINENO"; then :
16629 ac_cv_search_opendir=$ac_res
16630 fi
16631 rm -f core conftest.err conftest.$ac_objext \
16632 conftest$ac_exeext
16633 if test "${ac_cv_search_opendir+set}" = set; then :
16634 break
16635 fi
16636 done
16637 if test "${ac_cv_search_opendir+set}" = set; then :
16638
16639 else
16640 ac_cv_search_opendir=no
16641 fi
16642 rm conftest.$ac_ext
16643 LIBS=$ac_func_search_save_LIBS
16644 fi
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16646 $as_echo "$ac_cv_search_opendir" >&6; }
16647 ac_res=$ac_cv_search_opendir
16648 if test "$ac_res" != no; then :
16649 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16650
16651 fi
16652
16653 fi
16654
16655
16656 for ac_header in stdlib.h unistd.h
16657 do :
16658 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16659 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16660 eval as_val=\$$as_ac_Header
16661 if test "x$as_val" = x""yes; then :
16662 cat >>confdefs.h <<_ACEOF
16663 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16664 _ACEOF
16665
16666 fi
16667
16668 done
16669
16670 for ac_func in getpagesize
16671 do :
16672 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16673 if test "x$ac_cv_func_getpagesize" = x""yes; then :
16674 cat >>confdefs.h <<_ACEOF
16675 #define HAVE_GETPAGESIZE 1
16676 _ACEOF
16677
16678 fi
16679 done
16680
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16682 $as_echo_n "checking for working mmap... " >&6; }
16683 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
16684 $as_echo_n "(cached) " >&6
16685 else
16686 if test "$cross_compiling" = yes; then :
16687 ac_cv_func_mmap_fixed_mapped=no
16688 else
16689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16690 /* end confdefs.h. */
16691 $ac_includes_default
16692 /* malloc might have been renamed as rpl_malloc. */
16693 #undef malloc
16694
16695 /* Thanks to Mike Haertel and Jim Avera for this test.
16696 Here is a matrix of mmap possibilities:
16697 mmap private not fixed
16698 mmap private fixed at somewhere currently unmapped
16699 mmap private fixed at somewhere already mapped
16700 mmap shared not fixed
16701 mmap shared fixed at somewhere currently unmapped
16702 mmap shared fixed at somewhere already mapped
16703 For private mappings, we should verify that changes cannot be read()
16704 back from the file, nor mmap's back from the file at a different
16705 address. (There have been systems where private was not correctly
16706 implemented like the infamous i386 svr4.0, and systems where the
16707 VM page cache was not coherent with the file system buffer cache
16708 like early versions of FreeBSD and possibly contemporary NetBSD.)
16709 For shared mappings, we should conversely verify that changes get
16710 propagated back to all the places they're supposed to be.
16711
16712 Grep wants private fixed already mapped.
16713 The main things grep needs to know about mmap are:
16714 * does it exist and is it safe to write into the mmap'd area
16715 * how to use it (BSD variants) */
16716
16717 #include <fcntl.h>
16718 #include <sys/mman.h>
16719
16720 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16721 char *malloc ();
16722 #endif
16723
16724 /* This mess was copied from the GNU getpagesize.h. */
16725 #ifndef HAVE_GETPAGESIZE
16726 /* Assume that all systems that can run configure have sys/param.h. */
16727 # ifndef HAVE_SYS_PARAM_H
16728 # define HAVE_SYS_PARAM_H 1
16729 # endif
16730
16731 # ifdef _SC_PAGESIZE
16732 # define getpagesize() sysconf(_SC_PAGESIZE)
16733 # else /* no _SC_PAGESIZE */
16734 # ifdef HAVE_SYS_PARAM_H
16735 # include <sys/param.h>
16736 # ifdef EXEC_PAGESIZE
16737 # define getpagesize() EXEC_PAGESIZE
16738 # else /* no EXEC_PAGESIZE */
16739 # ifdef NBPG
16740 # define getpagesize() NBPG * CLSIZE
16741 # ifndef CLSIZE
16742 # define CLSIZE 1
16743 # endif /* no CLSIZE */
16744 # else /* no NBPG */
16745 # ifdef NBPC
16746 # define getpagesize() NBPC
16747 # else /* no NBPC */
16748 # ifdef PAGESIZE
16749 # define getpagesize() PAGESIZE
16750 # endif /* PAGESIZE */
16751 # endif /* no NBPC */
16752 # endif /* no NBPG */
16753 # endif /* no EXEC_PAGESIZE */
16754 # else /* no HAVE_SYS_PARAM_H */
16755 # define getpagesize() 8192 /* punt totally */
16756 # endif /* no HAVE_SYS_PARAM_H */
16757 # endif /* no _SC_PAGESIZE */
16758
16759 #endif /* no HAVE_GETPAGESIZE */
16760
16761 int
16762 main ()
16763 {
16764 char *data, *data2, *data3;
16765 int i, pagesize;
16766 int fd;
16767
16768 pagesize = getpagesize ();
16769
16770 /* First, make a file with some known garbage in it. */
16771 data = (char *) malloc (pagesize);
16772 if (!data)
16773 return 1;
16774 for (i = 0; i < pagesize; ++i)
16775 *(data + i) = rand ();
16776 umask (0);
16777 fd = creat ("conftest.mmap", 0600);
16778 if (fd < 0)
16779 return 1;
16780 if (write (fd, data, pagesize) != pagesize)
16781 return 1;
16782 close (fd);
16783
16784 /* Next, try to mmap the file at a fixed address which already has
16785 something else allocated at it. If we can, also make sure that
16786 we see the same garbage. */
16787 fd = open ("conftest.mmap", O_RDWR);
16788 if (fd < 0)
16789 return 1;
16790 data2 = (char *) malloc (2 * pagesize);
16791 if (!data2)
16792 return 1;
16793 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16794 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16795 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16796 return 1;
16797 for (i = 0; i < pagesize; ++i)
16798 if (*(data + i) != *(data2 + i))
16799 return 1;
16800
16801 /* Finally, make sure that changes to the mapped area do not
16802 percolate back to the file as seen by read(). (This is a bug on
16803 some variants of i386 svr4.0.) */
16804 for (i = 0; i < pagesize; ++i)
16805 *(data2 + i) = *(data2 + i) + 1;
16806 data3 = (char *) malloc (pagesize);
16807 if (!data3)
16808 return 1;
16809 if (read (fd, data3, pagesize) != pagesize)
16810 return 1;
16811 for (i = 0; i < pagesize; ++i)
16812 if (*(data + i) != *(data3 + i))
16813 return 1;
16814 close (fd);
16815 return 0;
16816 }
16817 _ACEOF
16818 if ac_fn_c_try_run "$LINENO"; then :
16819 ac_cv_func_mmap_fixed_mapped=yes
16820 else
16821 ac_cv_func_mmap_fixed_mapped=no
16822 fi
16823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16824 conftest.$ac_objext conftest.beam conftest.$ac_ext
16825 fi
16826
16827 fi
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16829 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16830 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16831
16832 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16833
16834 fi
16835 rm -f conftest.mmap
16836
16837
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16839 $as_echo_n "checking for library containing dlopen... " >&6; }
16840 if test "${ac_cv_search_dlopen+set}" = set; then :
16841 $as_echo_n "(cached) " >&6
16842 else
16843 ac_func_search_save_LIBS=$LIBS
16844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16845 /* end confdefs.h. */
16846
16847 /* Override any GCC internal prototype to avoid an error.
16848 Use char because int might match the return type of a GCC
16849 builtin and then its argument prototype would still apply. */
16850 #ifdef __cplusplus
16851 extern "C"
16852 #endif
16853 char dlopen ();
16854 int
16855 main ()
16856 {
16857 return dlopen ();
16858 ;
16859 return 0;
16860 }
16861 _ACEOF
16862 for ac_lib in '' dl; do
16863 if test -z "$ac_lib"; then
16864 ac_res="none required"
16865 else
16866 ac_res=-l$ac_lib
16867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16868 fi
16869 if ac_fn_c_try_link "$LINENO"; then :
16870 ac_cv_search_dlopen=$ac_res
16871 fi
16872 rm -f core conftest.err conftest.$ac_objext \
16873 conftest$ac_exeext
16874 if test "${ac_cv_search_dlopen+set}" = set; then :
16875 break
16876 fi
16877 done
16878 if test "${ac_cv_search_dlopen+set}" = set; then :
16879
16880 else
16881 ac_cv_search_dlopen=no
16882 fi
16883 rm conftest.$ac_ext
16884 LIBS=$ac_func_search_save_LIBS
16885 fi
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16887 $as_echo "$ac_cv_search_dlopen" >&6; }
16888 ac_res=$ac_cv_search_dlopen
16889 if test "$ac_res" != no; then :
16890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16891
16892 fi
16893
16894 if test x$plugins = xyes; then
16895 ENABLE_PLUGINS_TRUE=
16896 ENABLE_PLUGINS_FALSE='#'
16897 else
16898 ENABLE_PLUGINS_TRUE='#'
16899 ENABLE_PLUGINS_FALSE=
16900 fi
16901
16902
16903 # Check whether --enable-initfini-array was given.
16904 if test "${enable_initfini_array+set}" = set; then :
16905 enableval=$enable_initfini_array; case "${enableval}" in
16906 yes|no) ;;
16907 *) as_fn_error "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
16908 esac
16909 else
16910 enable_initfini_array=yes
16911 fi
16912
16913
16914 if test $enable_initfini_array = yes; then
16915
16916 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16917
16918 fi
16919
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16921 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16922 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16923 $as_echo_n "(cached) " >&6
16924 else
16925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16926 /* end confdefs.h. */
16927 #include <unistd.h>
16928 int
16929 main ()
16930 {
16931 extern int getopt (int, char *const*, const char *);
16932 ;
16933 return 0;
16934 }
16935 _ACEOF
16936 if ac_fn_c_try_compile "$LINENO"; then :
16937 ld_cv_decl_getopt_unistd_h=yes
16938 else
16939 ld_cv_decl_getopt_unistd_h=no
16940 fi
16941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16942 fi
16943
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16945 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
16946 if test $ld_cv_decl_getopt_unistd_h = yes; then
16947
16948 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
16949
16950 fi
16951
16952
16953 case "${host}" in
16954 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16955
16956 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
16957 ;;
16958 esac
16959
16960 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16961 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16962 ac_have_decl=1
16963 else
16964 ac_have_decl=0
16965 fi
16966
16967 cat >>confdefs.h <<_ACEOF
16968 #define HAVE_DECL_STRSTR $ac_have_decl
16969 _ACEOF
16970 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16971 if test "x$ac_cv_have_decl_free" = x""yes; then :
16972 ac_have_decl=1
16973 else
16974 ac_have_decl=0
16975 fi
16976
16977 cat >>confdefs.h <<_ACEOF
16978 #define HAVE_DECL_FREE $ac_have_decl
16979 _ACEOF
16980 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16981 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16982 ac_have_decl=1
16983 else
16984 ac_have_decl=0
16985 fi
16986
16987 cat >>confdefs.h <<_ACEOF
16988 #define HAVE_DECL_SBRK $ac_have_decl
16989 _ACEOF
16990 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16991 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16992 ac_have_decl=1
16993 else
16994 ac_have_decl=0
16995 fi
16996
16997 cat >>confdefs.h <<_ACEOF
16998 #define HAVE_DECL_GETENV $ac_have_decl
16999 _ACEOF
17000 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
17001 if test "x$ac_cv_have_decl_environ" = x""yes; then :
17002 ac_have_decl=1
17003 else
17004 ac_have_decl=0
17005 fi
17006
17007 cat >>confdefs.h <<_ACEOF
17008 #define HAVE_DECL_ENVIRON $ac_have_decl
17009 _ACEOF
17010
17011
17012 # When converting linker scripts into strings for use in emulation
17013 # files, use astring.sed if the compiler supports ANSI string
17014 # concatenation, or ostring.sed otherwise. This is to support the
17015 # broken Microsoft MSVC compiler, which limits the length of string
17016 # constants, while still supporting pre-ANSI compilers which do not
17017 # support string concatenation.
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
17019 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
17020 if test "${ld_cv_string_concatenation+set}" = set; then :
17021 $as_echo_n "(cached) " >&6
17022 else
17023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17024 /* end confdefs.h. */
17025
17026 int
17027 main ()
17028 {
17029 char *a = "a" "a";
17030 ;
17031 return 0;
17032 }
17033 _ACEOF
17034 if ac_fn_c_try_compile "$LINENO"; then :
17035 ld_cv_string_concatenation=yes
17036 else
17037 ld_cv_string_concatenation=no
17038 fi
17039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17040 fi
17041
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
17043 $as_echo "$ld_cv_string_concatenation" >&6; }
17044 if test "$ld_cv_string_concatenation" = "yes"; then
17045 STRINGIFY=astring.sed
17046 else
17047 STRINGIFY=ostring.sed
17048 fi
17049
17050
17051 # target-specific stuff:
17052
17053 all_targets=
17054 EMUL=
17055 all_emuls=
17056 all_emul_extras=
17057 all_libpath=
17058
17059 rm -f tdirs
17060
17061 # If the host is 64-bit, then we enable 64-bit targets by default.
17062 # This is consistent with what ../bfd/configure.ac does.
17063 if test x${want64} = xfalse; then
17064 # The cast to long int works around a bug in the HP C Compiler
17065 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17066 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17067 # This bug is HP SR number 8606223364.
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17069 $as_echo_n "checking size of void *... " >&6; }
17070 if test "${ac_cv_sizeof_void_p+set}" = set; then :
17071 $as_echo_n "(cached) " >&6
17072 else
17073 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
17074
17075 else
17076 if test "$ac_cv_type_void_p" = yes; then
17077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17079 { as_fn_set_status 77
17080 as_fn_error "cannot compute sizeof (void *)
17081 See \`config.log' for more details." "$LINENO" 5; }; }
17082 else
17083 ac_cv_sizeof_void_p=0
17084 fi
17085 fi
17086
17087 fi
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17089 $as_echo "$ac_cv_sizeof_void_p" >&6; }
17090
17091
17092
17093 cat >>confdefs.h <<_ACEOF
17094 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17095 _ACEOF
17096
17097
17098 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
17099 want64=true
17100 fi
17101 fi
17102
17103 elf_list_options=FALSE
17104 elf_shlib_list_options=FALSE
17105 elf_plt_unwind_list_options=FALSE
17106 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17107 do
17108 if test "$targ_alias" = "all"; then
17109 all_targets=true
17110 elf_list_options=TRUE
17111 elf_shlib_list_options=TRUE
17112 elf_plt_unwind_list_options=TRUE
17113 else
17114 # Canonicalize the secondary target names.
17115 result=`$ac_config_sub $targ_alias 2>/dev/null`
17116 if test -n "$result"; then
17117 targ=$result
17118 else
17119 targ=$targ_alias
17120 fi
17121
17122 . ${srcdir}/configure.tgt
17123
17124 if test "$targ" = "$target"; then
17125 EMUL=$targ_emul
17126 fi
17127
17128 if test x${want64} = xfalse; then
17129 . ${srcdir}/../bfd/config.bfd
17130 fi
17131
17132 if test x${want64} = xtrue; then
17133 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17134 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17135 fi
17136
17137 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17138 case " $all_emuls " in
17139 *" e${i}.o "*) ;;
17140 *)
17141 all_emuls="$all_emuls e${i}.o"
17142 eval result=\$tdir_$i
17143 test -z "$result" && result=$targ_alias
17144 echo tdir_$i=$result >> tdirs
17145 case "${i}" in
17146 *elf*)
17147 elf_list_options=TRUE
17148 ;;
17149 *)
17150 if $GREP "TEMPLATE_NAME=elf32" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
17151 elf_list_options=TRUE
17152 fi
17153 ;;
17154 esac
17155 if test "$elf_list_options" = "TRUE"; then
17156 . ${srcdir}/emulparams/${i}.sh
17157 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17158 elf_shlib_list_options=TRUE
17159 fi
17160 if test x${PLT_UNWIND} = xyes; then
17161 elf_plt_unwind_list_options=TRUE
17162 fi
17163 fi
17164 ;;
17165 esac
17166 done
17167
17168 for i in $targ_emul $targ_extra_libpath; do
17169 case " $all_libpath " in
17170 *" ${i} "*) ;;
17171 *)
17172 if test -z "$all_libpath"; then
17173 all_libpath=${i}
17174 else
17175 all_libpath="$all_libpath ${i}"
17176 fi
17177 ;;
17178 esac
17179 done
17180
17181 for i in $targ_extra_ofiles; do
17182 case " $all_emul_extras " in
17183 *" ${i} "*) ;;
17184 *)
17185 all_emul_extras="$all_emul_extras ${i}"
17186 ;;
17187 esac
17188 done
17189
17190 fi
17191 done
17192
17193 if test x$ac_default_compressed_debug_sections = xyes ; then
17194
17195 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17196
17197 fi
17198
17199 if test "${ac_default_ld_z_relro}" = unset; then
17200 ac_default_ld_z_relro=0
17201 fi
17202
17203 cat >>confdefs.h <<_ACEOF
17204 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
17205 _ACEOF
17206
17207
17208
17209
17210
17211
17212
17213 TDIRS=tdirs
17214
17215
17216 if test x${all_targets} = xtrue; then
17217 if test x${want64} = xtrue; then
17218 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
17219 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
17220 else
17221 EMULATION_OFILES='$(ALL_EMULATIONS)'
17222 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
17223 fi
17224 else
17225 EMULATION_OFILES=$all_emuls
17226 EMUL_EXTRA_OFILES=$all_emul_extras
17227 fi
17228
17229
17230
17231
17232 EMULATION_LIBPATH=$all_libpath
17233
17234
17235 if test x${enable_static} = xno; then
17236 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
17237 else
17238 TESTBFDLIB="../bfd/.libs/libbfd.a"
17239 fi
17240
17241
17242 target_vendor=${target_vendor=$host_vendor}
17243 case "$target_vendor" in
17244 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17245 *) EXTRA_SHLIB_EXTENSION= ;;
17246 esac
17247
17248 case "$target_os" in
17249 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17250 esac
17251
17252 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17253
17254 cat >>confdefs.h <<_ACEOF
17255 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17256 _ACEOF
17257
17258 fi
17259
17260
17261
17262
17263
17264
17265 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
17266
17267 cat >confcache <<\_ACEOF
17268 # This file is a shell script that caches the results of configure
17269 # tests run on this system so they can be shared between configure
17270 # scripts and configure runs, see configure's option --config-cache.
17271 # It is not useful on other systems. If it contains results you don't
17272 # want to keep, you may remove or edit it.
17273 #
17274 # config.status only pays attention to the cache file if you give it
17275 # the --recheck option to rerun configure.
17276 #
17277 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17279 # following values.
17280
17281 _ACEOF
17282
17283 # The following way of writing the cache mishandles newlines in values,
17284 # but we know of no workaround that is simple, portable, and efficient.
17285 # So, we kill variables containing newlines.
17286 # Ultrix sh set writes to stderr and can't be redirected directly,
17287 # and sets the high bit in the cache file unless we assign to the vars.
17288 (
17289 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17290 eval ac_val=\$$ac_var
17291 case $ac_val in #(
17292 *${as_nl}*)
17293 case $ac_var in #(
17294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17295 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17296 esac
17297 case $ac_var in #(
17298 _ | IFS | as_nl) ;; #(
17299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17300 *) { eval $ac_var=; unset $ac_var;} ;;
17301 esac ;;
17302 esac
17303 done
17304
17305 (set) 2>&1 |
17306 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17307 *${as_nl}ac_space=\ *)
17308 # `set' does not quote correctly, so add quotes: double-quote
17309 # substitution turns \\\\ into \\, and sed turns \\ into \.
17310 sed -n \
17311 "s/'/'\\\\''/g;
17312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17313 ;; #(
17314 *)
17315 # `set' quotes correctly as required by POSIX, so do not add quotes.
17316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17317 ;;
17318 esac |
17319 sort
17320 ) |
17321 sed '
17322 /^ac_cv_env_/b end
17323 t clear
17324 :clear
17325 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17326 t end
17327 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17328 :end' >>confcache
17329 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17330 if test -w "$cache_file"; then
17331 test "x$cache_file" != "x/dev/null" &&
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17333 $as_echo "$as_me: updating cache $cache_file" >&6;}
17334 cat confcache >$cache_file
17335 else
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17337 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17338 fi
17339 fi
17340 rm -f confcache
17341
17342 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17343 # Let make expand exec_prefix.
17344 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17345
17346 DEFS=-DHAVE_CONFIG_H
17347
17348 ac_libobjs=
17349 ac_ltlibobjs=
17350 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17351 # 1. Remove the extension, and $U if already installed.
17352 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17353 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17354 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17355 # will be set to the directory where LIBOBJS objects are built.
17356 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17357 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17358 done
17359 LIBOBJS=$ac_libobjs
17360
17361 LTLIBOBJS=$ac_ltlibobjs
17362
17363
17364 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17365 as_fn_error "conditional \"AMDEP\" was never defined.
17366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17367 fi
17368 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17369 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17371 fi
17372 if test -n "$EXEEXT"; then
17373 am__EXEEXT_TRUE=
17374 am__EXEEXT_FALSE='#'
17375 else
17376 am__EXEEXT_TRUE='#'
17377 am__EXEEXT_FALSE=
17378 fi
17379
17380 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17381 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17383 fi
17384 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17385 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17387 fi
17388 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17389 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17391 fi
17392 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
17393 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17395 fi
17396 if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17397 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17399 fi
17400
17401 : ${CONFIG_STATUS=./config.status}
17402 ac_write_fail=0
17403 ac_clean_files_save=$ac_clean_files
17404 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17406 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17407 as_write_fail=0
17408 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17409 #! $SHELL
17410 # Generated by $as_me.
17411 # Run this file to recreate the current configuration.
17412 # Compiler output produced by configure, useful for debugging
17413 # configure, is in config.log if it exists.
17414
17415 debug=false
17416 ac_cs_recheck=false
17417 ac_cs_silent=false
17418
17419 SHELL=\${CONFIG_SHELL-$SHELL}
17420 export SHELL
17421 _ASEOF
17422 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17423 ## -------------------- ##
17424 ## M4sh Initialization. ##
17425 ## -------------------- ##
17426
17427 # Be more Bourne compatible
17428 DUALCASE=1; export DUALCASE # for MKS sh
17429 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17430 emulate sh
17431 NULLCMD=:
17432 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17433 # is contrary to our usage. Disable this feature.
17434 alias -g '${1+"$@"}'='"$@"'
17435 setopt NO_GLOB_SUBST
17436 else
17437 case `(set -o) 2>/dev/null` in #(
17438 *posix*) :
17439 set -o posix ;; #(
17440 *) :
17441 ;;
17442 esac
17443 fi
17444
17445
17446 as_nl='
17447 '
17448 export as_nl
17449 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17450 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17451 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17452 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17453 # Prefer a ksh shell builtin over an external printf program on Solaris,
17454 # but without wasting forks for bash or zsh.
17455 if test -z "$BASH_VERSION$ZSH_VERSION" \
17456 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17457 as_echo='print -r --'
17458 as_echo_n='print -rn --'
17459 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17460 as_echo='printf %s\n'
17461 as_echo_n='printf %s'
17462 else
17463 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17464 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17465 as_echo_n='/usr/ucb/echo -n'
17466 else
17467 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17468 as_echo_n_body='eval
17469 arg=$1;
17470 case $arg in #(
17471 *"$as_nl"*)
17472 expr "X$arg" : "X\\(.*\\)$as_nl";
17473 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17474 esac;
17475 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17476 '
17477 export as_echo_n_body
17478 as_echo_n='sh -c $as_echo_n_body as_echo'
17479 fi
17480 export as_echo_body
17481 as_echo='sh -c $as_echo_body as_echo'
17482 fi
17483
17484 # The user is always right.
17485 if test "${PATH_SEPARATOR+set}" != set; then
17486 PATH_SEPARATOR=:
17487 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17488 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17489 PATH_SEPARATOR=';'
17490 }
17491 fi
17492
17493
17494 # IFS
17495 # We need space, tab and new line, in precisely that order. Quoting is
17496 # there to prevent editors from complaining about space-tab.
17497 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17498 # splitting by setting IFS to empty value.)
17499 IFS=" "" $as_nl"
17500
17501 # Find who we are. Look in the path if we contain no directory separator.
17502 case $0 in #((
17503 *[\\/]* ) as_myself=$0 ;;
17504 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17505 for as_dir in $PATH
17506 do
17507 IFS=$as_save_IFS
17508 test -z "$as_dir" && as_dir=.
17509 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17510 done
17511 IFS=$as_save_IFS
17512
17513 ;;
17514 esac
17515 # We did not find ourselves, most probably we were run as `sh COMMAND'
17516 # in which case we are not to be found in the path.
17517 if test "x$as_myself" = x; then
17518 as_myself=$0
17519 fi
17520 if test ! -f "$as_myself"; then
17521 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17522 exit 1
17523 fi
17524
17525 # Unset variables that we do not need and which cause bugs (e.g. in
17526 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17527 # suppresses any "Segmentation fault" message there. '((' could
17528 # trigger a bug in pdksh 5.2.14.
17529 for as_var in BASH_ENV ENV MAIL MAILPATH
17530 do eval test x\${$as_var+set} = xset \
17531 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17532 done
17533 PS1='$ '
17534 PS2='> '
17535 PS4='+ '
17536
17537 # NLS nuisances.
17538 LC_ALL=C
17539 export LC_ALL
17540 LANGUAGE=C
17541 export LANGUAGE
17542
17543 # CDPATH.
17544 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17545
17546
17547 # as_fn_error ERROR [LINENO LOG_FD]
17548 # ---------------------------------
17549 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17550 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17551 # script with status $?, using 1 if that was 0.
17552 as_fn_error ()
17553 {
17554 as_status=$?; test $as_status -eq 0 && as_status=1
17555 if test "$3"; then
17556 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17557 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17558 fi
17559 $as_echo "$as_me: error: $1" >&2
17560 as_fn_exit $as_status
17561 } # as_fn_error
17562
17563
17564 # as_fn_set_status STATUS
17565 # -----------------------
17566 # Set $? to STATUS, without forking.
17567 as_fn_set_status ()
17568 {
17569 return $1
17570 } # as_fn_set_status
17571
17572 # as_fn_exit STATUS
17573 # -----------------
17574 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17575 as_fn_exit ()
17576 {
17577 set +e
17578 as_fn_set_status $1
17579 exit $1
17580 } # as_fn_exit
17581
17582 # as_fn_unset VAR
17583 # ---------------
17584 # Portably unset VAR.
17585 as_fn_unset ()
17586 {
17587 { eval $1=; unset $1;}
17588 }
17589 as_unset=as_fn_unset
17590 # as_fn_append VAR VALUE
17591 # ----------------------
17592 # Append the text in VALUE to the end of the definition contained in VAR. Take
17593 # advantage of any shell optimizations that allow amortized linear growth over
17594 # repeated appends, instead of the typical quadratic growth present in naive
17595 # implementations.
17596 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17597 eval 'as_fn_append ()
17598 {
17599 eval $1+=\$2
17600 }'
17601 else
17602 as_fn_append ()
17603 {
17604 eval $1=\$$1\$2
17605 }
17606 fi # as_fn_append
17607
17608 # as_fn_arith ARG...
17609 # ------------------
17610 # Perform arithmetic evaluation on the ARGs, and store the result in the
17611 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17612 # must be portable across $(()) and expr.
17613 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17614 eval 'as_fn_arith ()
17615 {
17616 as_val=$(( $* ))
17617 }'
17618 else
17619 as_fn_arith ()
17620 {
17621 as_val=`expr "$@" || test $? -eq 1`
17622 }
17623 fi # as_fn_arith
17624
17625
17626 if expr a : '\(a\)' >/dev/null 2>&1 &&
17627 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17628 as_expr=expr
17629 else
17630 as_expr=false
17631 fi
17632
17633 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17634 as_basename=basename
17635 else
17636 as_basename=false
17637 fi
17638
17639 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17640 as_dirname=dirname
17641 else
17642 as_dirname=false
17643 fi
17644
17645 as_me=`$as_basename -- "$0" ||
17646 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17647 X"$0" : 'X\(//\)$' \| \
17648 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17649 $as_echo X/"$0" |
17650 sed '/^.*\/\([^/][^/]*\)\/*$/{
17651 s//\1/
17652 q
17653 }
17654 /^X\/\(\/\/\)$/{
17655 s//\1/
17656 q
17657 }
17658 /^X\/\(\/\).*/{
17659 s//\1/
17660 q
17661 }
17662 s/.*/./; q'`
17663
17664 # Avoid depending upon Character Ranges.
17665 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17666 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17667 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17668 as_cr_digits='0123456789'
17669 as_cr_alnum=$as_cr_Letters$as_cr_digits
17670
17671 ECHO_C= ECHO_N= ECHO_T=
17672 case `echo -n x` in #(((((
17673 -n*)
17674 case `echo 'xy\c'` in
17675 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17676 xy) ECHO_C='\c';;
17677 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17678 ECHO_T=' ';;
17679 esac;;
17680 *)
17681 ECHO_N='-n';;
17682 esac
17683
17684 rm -f conf$$ conf$$.exe conf$$.file
17685 if test -d conf$$.dir; then
17686 rm -f conf$$.dir/conf$$.file
17687 else
17688 rm -f conf$$.dir
17689 mkdir conf$$.dir 2>/dev/null
17690 fi
17691 if (echo >conf$$.file) 2>/dev/null; then
17692 if ln -s conf$$.file conf$$ 2>/dev/null; then
17693 as_ln_s='ln -s'
17694 # ... but there are two gotchas:
17695 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17696 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17697 # In both cases, we have to default to `cp -p'.
17698 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17699 as_ln_s='cp -p'
17700 elif ln conf$$.file conf$$ 2>/dev/null; then
17701 as_ln_s=ln
17702 else
17703 as_ln_s='cp -p'
17704 fi
17705 else
17706 as_ln_s='cp -p'
17707 fi
17708 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17709 rmdir conf$$.dir 2>/dev/null
17710
17711
17712 # as_fn_mkdir_p
17713 # -------------
17714 # Create "$as_dir" as a directory, including parents if necessary.
17715 as_fn_mkdir_p ()
17716 {
17717
17718 case $as_dir in #(
17719 -*) as_dir=./$as_dir;;
17720 esac
17721 test -d "$as_dir" || eval $as_mkdir_p || {
17722 as_dirs=
17723 while :; do
17724 case $as_dir in #(
17725 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17726 *) as_qdir=$as_dir;;
17727 esac
17728 as_dirs="'$as_qdir' $as_dirs"
17729 as_dir=`$as_dirname -- "$as_dir" ||
17730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17731 X"$as_dir" : 'X\(//\)[^/]' \| \
17732 X"$as_dir" : 'X\(//\)$' \| \
17733 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17734 $as_echo X"$as_dir" |
17735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17736 s//\1/
17737 q
17738 }
17739 /^X\(\/\/\)[^/].*/{
17740 s//\1/
17741 q
17742 }
17743 /^X\(\/\/\)$/{
17744 s//\1/
17745 q
17746 }
17747 /^X\(\/\).*/{
17748 s//\1/
17749 q
17750 }
17751 s/.*/./; q'`
17752 test -d "$as_dir" && break
17753 done
17754 test -z "$as_dirs" || eval "mkdir $as_dirs"
17755 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17756
17757
17758 } # as_fn_mkdir_p
17759 if mkdir -p . 2>/dev/null; then
17760 as_mkdir_p='mkdir -p "$as_dir"'
17761 else
17762 test -d ./-p && rmdir ./-p
17763 as_mkdir_p=false
17764 fi
17765
17766 if test -x / >/dev/null 2>&1; then
17767 as_test_x='test -x'
17768 else
17769 if ls -dL / >/dev/null 2>&1; then
17770 as_ls_L_option=L
17771 else
17772 as_ls_L_option=
17773 fi
17774 as_test_x='
17775 eval sh -c '\''
17776 if test -d "$1"; then
17777 test -d "$1/.";
17778 else
17779 case $1 in #(
17780 -*)set "./$1";;
17781 esac;
17782 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17783 ???[sx]*):;;*)false;;esac;fi
17784 '\'' sh
17785 '
17786 fi
17787 as_executable_p=$as_test_x
17788
17789 # Sed expression to map a string onto a valid CPP name.
17790 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17791
17792 # Sed expression to map a string onto a valid variable name.
17793 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17794
17795
17796 exec 6>&1
17797 ## ----------------------------------- ##
17798 ## Main body of $CONFIG_STATUS script. ##
17799 ## ----------------------------------- ##
17800 _ASEOF
17801 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17802
17803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17804 # Save the log message, to keep $0 and so on meaningful, and to
17805 # report actual input values of CONFIG_FILES etc. instead of their
17806 # values after options handling.
17807 ac_log="
17808 This file was extended by ld $as_me 2.28.51, which was
17809 generated by GNU Autoconf 2.64. Invocation command line was
17810
17811 CONFIG_FILES = $CONFIG_FILES
17812 CONFIG_HEADERS = $CONFIG_HEADERS
17813 CONFIG_LINKS = $CONFIG_LINKS
17814 CONFIG_COMMANDS = $CONFIG_COMMANDS
17815 $ $0 $@
17816
17817 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17818 "
17819
17820 _ACEOF
17821
17822 case $ac_config_files in *"
17823 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17824 esac
17825
17826 case $ac_config_headers in *"
17827 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17828 esac
17829
17830
17831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17832 # Files that config.status was made for.
17833 config_files="$ac_config_files"
17834 config_headers="$ac_config_headers"
17835 config_commands="$ac_config_commands"
17836
17837 _ACEOF
17838
17839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17840 ac_cs_usage="\
17841 \`$as_me' instantiates files and other configuration actions
17842 from templates according to the current configuration. Unless the files
17843 and actions are specified as TAGs, all are instantiated by default.
17844
17845 Usage: $0 [OPTION]... [TAG]...
17846
17847 -h, --help print this help, then exit
17848 -V, --version print version number and configuration settings, then exit
17849 -q, --quiet, --silent
17850 do not print progress messages
17851 -d, --debug don't remove temporary files
17852 --recheck update $as_me by reconfiguring in the same conditions
17853 --file=FILE[:TEMPLATE]
17854 instantiate the configuration file FILE
17855 --header=FILE[:TEMPLATE]
17856 instantiate the configuration header FILE
17857
17858 Configuration files:
17859 $config_files
17860
17861 Configuration headers:
17862 $config_headers
17863
17864 Configuration commands:
17865 $config_commands
17866
17867 Report bugs to the package provider."
17868
17869 _ACEOF
17870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17871 ac_cs_version="\\
17872 ld config.status 2.28.51
17873 configured by $0, generated by GNU Autoconf 2.64,
17874 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17875
17876 Copyright (C) 2009 Free Software Foundation, Inc.
17877 This config.status script is free software; the Free Software Foundation
17878 gives unlimited permission to copy, distribute and modify it."
17879
17880 ac_pwd='$ac_pwd'
17881 srcdir='$srcdir'
17882 INSTALL='$INSTALL'
17883 MKDIR_P='$MKDIR_P'
17884 AWK='$AWK'
17885 test -n "\$AWK" || AWK=awk
17886 _ACEOF
17887
17888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17889 # The default lists apply if the user does not specify any file.
17890 ac_need_defaults=:
17891 while test $# != 0
17892 do
17893 case $1 in
17894 --*=*)
17895 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17896 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17897 ac_shift=:
17898 ;;
17899 *)
17900 ac_option=$1
17901 ac_optarg=$2
17902 ac_shift=shift
17903 ;;
17904 esac
17905
17906 case $ac_option in
17907 # Handling of the options.
17908 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17909 ac_cs_recheck=: ;;
17910 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17911 $as_echo "$ac_cs_version"; exit ;;
17912 --debug | --debu | --deb | --de | --d | -d )
17913 debug=: ;;
17914 --file | --fil | --fi | --f )
17915 $ac_shift
17916 case $ac_optarg in
17917 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17918 esac
17919 as_fn_append CONFIG_FILES " '$ac_optarg'"
17920 ac_need_defaults=false;;
17921 --header | --heade | --head | --hea )
17922 $ac_shift
17923 case $ac_optarg in
17924 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17925 esac
17926 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17927 ac_need_defaults=false;;
17928 --he | --h)
17929 # Conflict between --help and --header
17930 as_fn_error "ambiguous option: \`$1'
17931 Try \`$0 --help' for more information.";;
17932 --help | --hel | -h )
17933 $as_echo "$ac_cs_usage"; exit ;;
17934 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17935 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17936 ac_cs_silent=: ;;
17937
17938 # This is an error.
17939 -*) as_fn_error "unrecognized option: \`$1'
17940 Try \`$0 --help' for more information." ;;
17941
17942 *) as_fn_append ac_config_targets " $1"
17943 ac_need_defaults=false ;;
17944
17945 esac
17946 shift
17947 done
17948
17949 ac_configure_extra_args=
17950
17951 if $ac_cs_silent; then
17952 exec 6>/dev/null
17953 ac_configure_extra_args="$ac_configure_extra_args --silent"
17954 fi
17955
17956 _ACEOF
17957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17958 if \$ac_cs_recheck; then
17959 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17960 shift
17961 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17962 CONFIG_SHELL='$SHELL'
17963 export CONFIG_SHELL
17964 exec "\$@"
17965 fi
17966
17967 _ACEOF
17968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17969 exec 5>>config.log
17970 {
17971 echo
17972 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17973 ## Running $as_me. ##
17974 _ASBOX
17975 $as_echo "$ac_log"
17976 } >&5
17977
17978 _ACEOF
17979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17980 #
17981 # INIT-COMMANDS
17982 #
17983 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17984
17985
17986 # The HP-UX ksh and POSIX shell print the target directory to stdout
17987 # if CDPATH is set.
17988 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17989
17990 sed_quote_subst='$sed_quote_subst'
17991 double_quote_subst='$double_quote_subst'
17992 delay_variable_subst='$delay_variable_subst'
17993 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17994 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17995 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17996 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17997 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17998 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17999 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18000 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18001 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18002 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18003 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18004 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18005 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18006 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18007 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18008 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18009 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18010 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18011 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18012 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18013 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18014 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18015 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18016 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18017 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18018 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18019 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18020 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18021 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18022 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18023 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18024 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18025 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18026 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18027 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18028 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18029 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18030 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18031 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18032 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18033 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18034 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18035 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18036 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18037 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18038 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18039 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18040 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18041 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"`'
18042 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18043 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18044 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18045 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18046 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18047 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18048 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18049 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18050 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18051 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18052 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18053 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18054 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18055 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18056 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18057 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18058 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18059 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18060 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18061 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18062 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18063 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18064 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18065 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18066 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18067 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18068 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18069 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18070 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18071 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18072 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18073 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18074 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18075 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18076 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18077 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18078 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18079 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18080 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18081 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18082 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18083 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18084 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18085 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18086 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18087 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18088 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18089 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18090 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18091 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18092 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18093 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18094 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18095 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18096 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18097 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18098 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18099 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18100 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18101 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18102 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18103 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18104 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18105 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18106 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18107 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18108 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18109 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18110 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18111 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18112 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18113 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18114 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18115 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18116 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18117 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18118 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18119 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18120 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18121 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18122 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18123 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18124 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18125 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18126 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18127 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18128 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18129 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18130 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18131 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18132 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18133 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18134 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18135 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18136 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18137 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18138 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18139 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18140 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18141 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18142 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18143 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18144 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18145 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18146 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18147 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18148 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18149 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18150 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18151 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18152 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18153 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18154 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18155 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18156 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18157 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18158 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18159 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18160 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18161 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18162 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18163 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18164 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18165 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18166 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18167 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18168
18169 LTCC='$LTCC'
18170 LTCFLAGS='$LTCFLAGS'
18171 compiler='$compiler_DEFAULT'
18172
18173 # A function that is used when there is no print builtin or printf.
18174 func_fallback_echo ()
18175 {
18176 eval 'cat <<_LTECHO_EOF
18177 \$1
18178 _LTECHO_EOF'
18179 }
18180
18181 # Quote evaled strings.
18182 for var in SHELL \
18183 ECHO \
18184 SED \
18185 GREP \
18186 EGREP \
18187 FGREP \
18188 LD \
18189 NM \
18190 LN_S \
18191 lt_SP2NL \
18192 lt_NL2SP \
18193 reload_flag \
18194 OBJDUMP \
18195 deplibs_check_method \
18196 file_magic_cmd \
18197 AR \
18198 AR_FLAGS \
18199 STRIP \
18200 RANLIB \
18201 CC \
18202 CFLAGS \
18203 compiler \
18204 lt_cv_sys_global_symbol_pipe \
18205 lt_cv_sys_global_symbol_to_cdecl \
18206 lt_cv_sys_global_symbol_to_c_name_address \
18207 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18208 lt_prog_compiler_no_builtin_flag \
18209 lt_prog_compiler_wl \
18210 lt_prog_compiler_pic \
18211 lt_prog_compiler_static \
18212 lt_cv_prog_compiler_c_o \
18213 need_locks \
18214 DSYMUTIL \
18215 NMEDIT \
18216 LIPO \
18217 OTOOL \
18218 OTOOL64 \
18219 shrext_cmds \
18220 export_dynamic_flag_spec \
18221 whole_archive_flag_spec \
18222 compiler_needs_object \
18223 with_gnu_ld \
18224 allow_undefined_flag \
18225 no_undefined_flag \
18226 hardcode_libdir_flag_spec \
18227 hardcode_libdir_flag_spec_ld \
18228 hardcode_libdir_separator \
18229 fix_srcfile_path \
18230 exclude_expsyms \
18231 include_expsyms \
18232 file_list_spec \
18233 variables_saved_for_relink \
18234 libname_spec \
18235 library_names_spec \
18236 soname_spec \
18237 install_override_mode \
18238 finish_eval \
18239 old_striplib \
18240 striplib \
18241 compiler_lib_search_dirs \
18242 predep_objects \
18243 postdep_objects \
18244 predeps \
18245 postdeps \
18246 compiler_lib_search_path \
18247 LD_CXX \
18248 reload_flag_CXX \
18249 compiler_CXX \
18250 lt_prog_compiler_no_builtin_flag_CXX \
18251 lt_prog_compiler_wl_CXX \
18252 lt_prog_compiler_pic_CXX \
18253 lt_prog_compiler_static_CXX \
18254 lt_cv_prog_compiler_c_o_CXX \
18255 export_dynamic_flag_spec_CXX \
18256 whole_archive_flag_spec_CXX \
18257 compiler_needs_object_CXX \
18258 with_gnu_ld_CXX \
18259 allow_undefined_flag_CXX \
18260 no_undefined_flag_CXX \
18261 hardcode_libdir_flag_spec_CXX \
18262 hardcode_libdir_flag_spec_ld_CXX \
18263 hardcode_libdir_separator_CXX \
18264 fix_srcfile_path_CXX \
18265 exclude_expsyms_CXX \
18266 include_expsyms_CXX \
18267 file_list_spec_CXX \
18268 compiler_lib_search_dirs_CXX \
18269 predep_objects_CXX \
18270 postdep_objects_CXX \
18271 predeps_CXX \
18272 postdeps_CXX \
18273 compiler_lib_search_path_CXX; do
18274 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18275 *[\\\\\\\`\\"\\\$]*)
18276 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18277 ;;
18278 *)
18279 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18280 ;;
18281 esac
18282 done
18283
18284 # Double-quote double-evaled strings.
18285 for var in reload_cmds \
18286 old_postinstall_cmds \
18287 old_postuninstall_cmds \
18288 old_archive_cmds \
18289 extract_expsyms_cmds \
18290 old_archive_from_new_cmds \
18291 old_archive_from_expsyms_cmds \
18292 archive_cmds \
18293 archive_expsym_cmds \
18294 module_cmds \
18295 module_expsym_cmds \
18296 export_symbols_cmds \
18297 prelink_cmds \
18298 postinstall_cmds \
18299 postuninstall_cmds \
18300 finish_cmds \
18301 sys_lib_search_path_spec \
18302 sys_lib_dlsearch_path_spec \
18303 reload_cmds_CXX \
18304 old_archive_cmds_CXX \
18305 old_archive_from_new_cmds_CXX \
18306 old_archive_from_expsyms_cmds_CXX \
18307 archive_cmds_CXX \
18308 archive_expsym_cmds_CXX \
18309 module_cmds_CXX \
18310 module_expsym_cmds_CXX \
18311 export_symbols_cmds_CXX \
18312 prelink_cmds_CXX; do
18313 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18314 *[\\\\\\\`\\"\\\$]*)
18315 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18316 ;;
18317 *)
18318 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18319 ;;
18320 esac
18321 done
18322
18323 ac_aux_dir='$ac_aux_dir'
18324 xsi_shell='$xsi_shell'
18325 lt_shell_append='$lt_shell_append'
18326
18327 # See if we are running on zsh, and set the options which allow our
18328 # commands through without removal of \ escapes INIT.
18329 if test -n "\${ZSH_VERSION+set}" ; then
18330 setopt NO_GLOB_SUBST
18331 fi
18332
18333
18334 PACKAGE='$PACKAGE'
18335 VERSION='$VERSION'
18336 TIMESTAMP='$TIMESTAMP'
18337 RM='$RM'
18338 ofile='$ofile'
18339
18340
18341
18342
18343
18344 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18345 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18346 # from automake.
18347 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18348 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18349 LINGUAS="${LINGUAS-%UNSET%}"
18350
18351
18352 _ACEOF
18353
18354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18355
18356 # Handling of arguments.
18357 for ac_config_target in $ac_config_targets
18358 do
18359 case $ac_config_target in
18360 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18361 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18362 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18363 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18364 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18365 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18366
18367 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18368 esac
18369 done
18370
18371
18372 # If the user did not use the arguments to specify the items to instantiate,
18373 # then the envvar interface is used. Set only those that are not.
18374 # We use the long form for the default assignment because of an extremely
18375 # bizarre bug on SunOS 4.1.3.
18376 if $ac_need_defaults; then
18377 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18378 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18379 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18380 fi
18381
18382 # Have a temporary directory for convenience. Make it in the build tree
18383 # simply because there is no reason against having it here, and in addition,
18384 # creating and moving files from /tmp can sometimes cause problems.
18385 # Hook for its removal unless debugging.
18386 # Note that there is a small window in which the directory will not be cleaned:
18387 # after its creation but before its name has been assigned to `$tmp'.
18388 $debug ||
18389 {
18390 tmp=
18391 trap 'exit_status=$?
18392 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18393 ' 0
18394 trap 'as_fn_exit 1' 1 2 13 15
18395 }
18396 # Create a (secure) tmp directory for tmp files.
18397
18398 {
18399 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18400 test -n "$tmp" && test -d "$tmp"
18401 } ||
18402 {
18403 tmp=./conf$$-$RANDOM
18404 (umask 077 && mkdir "$tmp")
18405 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18406
18407 # Set up the scripts for CONFIG_FILES section.
18408 # No need to generate them if there are no CONFIG_FILES.
18409 # This happens for instance with `./config.status config.h'.
18410 if test -n "$CONFIG_FILES"; then
18411
18412 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18413 ac_cs_awk_getline=:
18414 ac_cs_awk_pipe_init=
18415 ac_cs_awk_read_file='
18416 while ((getline aline < (F[key])) > 0)
18417 print(aline)
18418 close(F[key])'
18419 ac_cs_awk_pipe_fini=
18420 else
18421 ac_cs_awk_getline=false
18422 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18423 ac_cs_awk_read_file='
18424 print "|#_!!_#|"
18425 print "cat " F[key] " &&"
18426 '$ac_cs_awk_pipe_init
18427 # The final `:' finishes the AND list.
18428 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18429 fi
18430 ac_cr=`echo X | tr X '\015'`
18431 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18432 # But we know of no other shell where ac_cr would be empty at this
18433 # point, so we can use a bashism as a fallback.
18434 if test "x$ac_cr" = x; then
18435 eval ac_cr=\$\'\\r\'
18436 fi
18437 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18438 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18439 ac_cs_awk_cr='\r'
18440 else
18441 ac_cs_awk_cr=$ac_cr
18442 fi
18443
18444 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18445 _ACEOF
18446
18447 # Create commands to substitute file output variables.
18448 {
18449 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18450 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18451 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18452 echo "_ACAWK" &&
18453 echo "_ACEOF"
18454 } >conf$$files.sh &&
18455 . ./conf$$files.sh ||
18456 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18457 rm -f conf$$files.sh
18458
18459 {
18460 echo "cat >conf$$subs.awk <<_ACEOF" &&
18461 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18462 echo "_ACEOF"
18463 } >conf$$subs.sh ||
18464 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18465 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18466 ac_delim='%!_!# '
18467 for ac_last_try in false false false false false :; do
18468 . ./conf$$subs.sh ||
18469 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18470
18471 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18472 if test $ac_delim_n = $ac_delim_num; then
18473 break
18474 elif $ac_last_try; then
18475 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18476 else
18477 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18478 fi
18479 done
18480 rm -f conf$$subs.sh
18481
18482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18483 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18484 _ACEOF
18485 sed -n '
18486 h
18487 s/^/S["/; s/!.*/"]=/
18488 p
18489 g
18490 s/^[^!]*!//
18491 :repl
18492 t repl
18493 s/'"$ac_delim"'$//
18494 t delim
18495 :nl
18496 h
18497 s/\(.\{148\}\).*/\1/
18498 t more1
18499 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18500 p
18501 n
18502 b repl
18503 :more1
18504 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18505 p
18506 g
18507 s/.\{148\}//
18508 t nl
18509 :delim
18510 h
18511 s/\(.\{148\}\).*/\1/
18512 t more2
18513 s/["\\]/\\&/g; s/^/"/; s/$/"/
18514 p
18515 b
18516 :more2
18517 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18518 p
18519 g
18520 s/.\{148\}//
18521 t delim
18522 ' <conf$$subs.awk | sed '
18523 /^[^""]/{
18524 N
18525 s/\n//
18526 }
18527 ' >>$CONFIG_STATUS || ac_write_fail=1
18528 rm -f conf$$subs.awk
18529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18530 _ACAWK
18531 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18532 for (key in S) S_is_set[key] = 1
18533 FS = "\a"
18534 \$ac_cs_awk_pipe_init
18535 }
18536 {
18537 line = $ 0
18538 nfields = split(line, field, "@")
18539 substed = 0
18540 len = length(field[1])
18541 for (i = 2; i < nfields; i++) {
18542 key = field[i]
18543 keylen = length(key)
18544 if (S_is_set[key]) {
18545 value = S[key]
18546 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18547 len += length(value) + length(field[++i])
18548 substed = 1
18549 } else
18550 len += 1 + keylen
18551 }
18552 if (nfields == 3 && !substed) {
18553 key = field[2]
18554 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18555 \$ac_cs_awk_read_file
18556 next
18557 }
18558 }
18559 print line
18560 }
18561 \$ac_cs_awk_pipe_fini
18562 _ACAWK
18563 _ACEOF
18564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18565 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18566 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18567 else
18568 cat
18569 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18570 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18571 _ACEOF
18572
18573 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18574 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18575 # trailing colons and then remove the whole line if VPATH becomes empty
18576 # (actually we leave an empty line to preserve line numbers).
18577 if test "x$srcdir" = x.; then
18578 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18579 s/:*\$(srcdir):*/:/
18580 s/:*\${srcdir}:*/:/
18581 s/:*@srcdir@:*/:/
18582 s/^\([^=]*=[ ]*\):*/\1/
18583 s/:*$//
18584 s/^[^=]*=[ ]*$//
18585 }'
18586 fi
18587
18588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18589 fi # test -n "$CONFIG_FILES"
18590
18591 # Set up the scripts for CONFIG_HEADERS section.
18592 # No need to generate them if there are no CONFIG_HEADERS.
18593 # This happens for instance with `./config.status Makefile'.
18594 if test -n "$CONFIG_HEADERS"; then
18595 cat >"$tmp/defines.awk" <<\_ACAWK ||
18596 BEGIN {
18597 _ACEOF
18598
18599 # Transform confdefs.h into an awk script `defines.awk', embedded as
18600 # here-document in config.status, that substitutes the proper values into
18601 # config.h.in to produce config.h.
18602
18603 # Create a delimiter string that does not exist in confdefs.h, to ease
18604 # handling of long lines.
18605 ac_delim='%!_!# '
18606 for ac_last_try in false false :; do
18607 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18608 if test -z "$ac_t"; then
18609 break
18610 elif $ac_last_try; then
18611 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18612 else
18613 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18614 fi
18615 done
18616
18617 # For the awk script, D is an array of macro values keyed by name,
18618 # likewise P contains macro parameters if any. Preserve backslash
18619 # newline sequences.
18620
18621 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18622 sed -n '
18623 s/.\{148\}/&'"$ac_delim"'/g
18624 t rset
18625 :rset
18626 s/^[ ]*#[ ]*define[ ][ ]*/ /
18627 t def
18628 d
18629 :def
18630 s/\\$//
18631 t bsnl
18632 s/["\\]/\\&/g
18633 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18634 D["\1"]=" \3"/p
18635 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18636 d
18637 :bsnl
18638 s/["\\]/\\&/g
18639 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18640 D["\1"]=" \3\\\\\\n"\\/p
18641 t cont
18642 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18643 t cont
18644 d
18645 :cont
18646 n
18647 s/.\{148\}/&'"$ac_delim"'/g
18648 t clear
18649 :clear
18650 s/\\$//
18651 t bsnlc
18652 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18653 d
18654 :bsnlc
18655 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18656 b cont
18657 ' <confdefs.h | sed '
18658 s/'"$ac_delim"'/"\\\
18659 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18660
18661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18662 for (key in D) D_is_set[key] = 1
18663 FS = "\a"
18664 }
18665 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18666 line = \$ 0
18667 split(line, arg, " ")
18668 if (arg[1] == "#") {
18669 defundef = arg[2]
18670 mac1 = arg[3]
18671 } else {
18672 defundef = substr(arg[1], 2)
18673 mac1 = arg[2]
18674 }
18675 split(mac1, mac2, "(") #)
18676 macro = mac2[1]
18677 prefix = substr(line, 1, index(line, defundef) - 1)
18678 if (D_is_set[macro]) {
18679 # Preserve the white space surrounding the "#".
18680 print prefix "define", macro P[macro] D[macro]
18681 next
18682 } else {
18683 # Replace #undef with comments. This is necessary, for example,
18684 # in the case of _POSIX_SOURCE, which is predefined and required
18685 # on some systems where configure will not decide to define it.
18686 if (defundef == "undef") {
18687 print "/*", prefix defundef, macro, "*/"
18688 next
18689 }
18690 }
18691 }
18692 { print }
18693 _ACAWK
18694 _ACEOF
18695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18696 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18697 fi # test -n "$CONFIG_HEADERS"
18698
18699
18700 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18701 shift
18702 for ac_tag
18703 do
18704 case $ac_tag in
18705 :[FHLC]) ac_mode=$ac_tag; continue;;
18706 esac
18707 case $ac_mode$ac_tag in
18708 :[FHL]*:*);;
18709 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18710 :[FH]-) ac_tag=-:-;;
18711 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18712 esac
18713 ac_save_IFS=$IFS
18714 IFS=:
18715 set x $ac_tag
18716 IFS=$ac_save_IFS
18717 shift
18718 ac_file=$1
18719 shift
18720
18721 case $ac_mode in
18722 :L) ac_source=$1;;
18723 :[FH])
18724 ac_file_inputs=
18725 for ac_f
18726 do
18727 case $ac_f in
18728 -) ac_f="$tmp/stdin";;
18729 *) # Look for the file first in the build tree, then in the source tree
18730 # (if the path is not absolute). The absolute path cannot be DOS-style,
18731 # because $ac_f cannot contain `:'.
18732 test -f "$ac_f" ||
18733 case $ac_f in
18734 [\\/$]*) false;;
18735 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18736 esac ||
18737 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18738 esac
18739 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18740 as_fn_append ac_file_inputs " '$ac_f'"
18741 done
18742
18743 # Let's still pretend it is `configure' which instantiates (i.e., don't
18744 # use $as_me), people would be surprised to read:
18745 # /* config.h. Generated by config.status. */
18746 configure_input='Generated from '`
18747 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18748 `' by configure.'
18749 if test x"$ac_file" != x-; then
18750 configure_input="$ac_file. $configure_input"
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18752 $as_echo "$as_me: creating $ac_file" >&6;}
18753 fi
18754 # Neutralize special characters interpreted by sed in replacement strings.
18755 case $configure_input in #(
18756 *\&* | *\|* | *\\* )
18757 ac_sed_conf_input=`$as_echo "$configure_input" |
18758 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18759 *) ac_sed_conf_input=$configure_input;;
18760 esac
18761
18762 case $ac_tag in
18763 *:-:* | *:-) cat >"$tmp/stdin" \
18764 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18765 esac
18766 ;;
18767 esac
18768
18769 ac_dir=`$as_dirname -- "$ac_file" ||
18770 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18771 X"$ac_file" : 'X\(//\)[^/]' \| \
18772 X"$ac_file" : 'X\(//\)$' \| \
18773 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18774 $as_echo X"$ac_file" |
18775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18776 s//\1/
18777 q
18778 }
18779 /^X\(\/\/\)[^/].*/{
18780 s//\1/
18781 q
18782 }
18783 /^X\(\/\/\)$/{
18784 s//\1/
18785 q
18786 }
18787 /^X\(\/\).*/{
18788 s//\1/
18789 q
18790 }
18791 s/.*/./; q'`
18792 as_dir="$ac_dir"; as_fn_mkdir_p
18793 ac_builddir=.
18794
18795 case "$ac_dir" in
18796 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18797 *)
18798 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18799 # A ".." for each directory in $ac_dir_suffix.
18800 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18801 case $ac_top_builddir_sub in
18802 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18803 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18804 esac ;;
18805 esac
18806 ac_abs_top_builddir=$ac_pwd
18807 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18808 # for backward compatibility:
18809 ac_top_builddir=$ac_top_build_prefix
18810
18811 case $srcdir in
18812 .) # We are building in place.
18813 ac_srcdir=.
18814 ac_top_srcdir=$ac_top_builddir_sub
18815 ac_abs_top_srcdir=$ac_pwd ;;
18816 [\\/]* | ?:[\\/]* ) # Absolute name.
18817 ac_srcdir=$srcdir$ac_dir_suffix;
18818 ac_top_srcdir=$srcdir
18819 ac_abs_top_srcdir=$srcdir ;;
18820 *) # Relative name.
18821 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18822 ac_top_srcdir=$ac_top_build_prefix$srcdir
18823 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18824 esac
18825 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18826
18827
18828 case $ac_mode in
18829 :F)
18830 #
18831 # CONFIG_FILE
18832 #
18833
18834 case $INSTALL in
18835 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18836 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18837 esac
18838 ac_MKDIR_P=$MKDIR_P
18839 case $MKDIR_P in
18840 [\\/$]* | ?:[\\/]* ) ;;
18841 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18842 esac
18843 _ACEOF
18844
18845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18846 # If the template does not know about datarootdir, expand it.
18847 # FIXME: This hack should be removed a few years after 2.60.
18848 ac_datarootdir_hack=; ac_datarootdir_seen=
18849 ac_sed_dataroot='
18850 /datarootdir/ {
18851 p
18852 q
18853 }
18854 /@datadir@/p
18855 /@docdir@/p
18856 /@infodir@/p
18857 /@localedir@/p
18858 /@mandir@/p'
18859 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18860 *datarootdir*) ac_datarootdir_seen=yes;;
18861 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18863 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18864 _ACEOF
18865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18866 ac_datarootdir_hack='
18867 s&@datadir@&$datadir&g
18868 s&@docdir@&$docdir&g
18869 s&@infodir@&$infodir&g
18870 s&@localedir@&$localedir&g
18871 s&@mandir@&$mandir&g
18872 s&\\\${datarootdir}&$datarootdir&g' ;;
18873 esac
18874 _ACEOF
18875
18876 # Neutralize VPATH when `$srcdir' = `.'.
18877 # Shell code in configure.ac might set extrasub.
18878 # FIXME: do we really want to maintain this feature?
18879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18880 ac_sed_extra="$ac_vpsub
18881 $extrasub
18882 _ACEOF
18883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18884 :t
18885 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18886 s|@configure_input@|$ac_sed_conf_input|;t t
18887 s&@top_builddir@&$ac_top_builddir_sub&;t t
18888 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18889 s&@srcdir@&$ac_srcdir&;t t
18890 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18891 s&@top_srcdir@&$ac_top_srcdir&;t t
18892 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18893 s&@builddir@&$ac_builddir&;t t
18894 s&@abs_builddir@&$ac_abs_builddir&;t t
18895 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18896 s&@INSTALL@&$ac_INSTALL&;t t
18897 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18898 $ac_datarootdir_hack
18899 "
18900 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18901 if $ac_cs_awk_getline; then
18902 $AWK -f "$tmp/subs.awk"
18903 else
18904 $AWK -f "$tmp/subs.awk" | $SHELL
18905 fi >$tmp/out \
18906 || as_fn_error "could not create $ac_file" "$LINENO" 5
18907
18908 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18909 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18910 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18912 which seems to be undefined. Please make sure it is defined." >&5
18913 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18914 which seems to be undefined. Please make sure it is defined." >&2;}
18915
18916 rm -f "$tmp/stdin"
18917 case $ac_file in
18918 -) cat "$tmp/out" && rm -f "$tmp/out";;
18919 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18920 esac \
18921 || as_fn_error "could not create $ac_file" "$LINENO" 5
18922 ;;
18923 :H)
18924 #
18925 # CONFIG_HEADER
18926 #
18927 if test x"$ac_file" != x-; then
18928 {
18929 $as_echo "/* $configure_input */" \
18930 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18931 } >"$tmp/config.h" \
18932 || as_fn_error "could not create $ac_file" "$LINENO" 5
18933 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18935 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18936 else
18937 rm -f "$ac_file"
18938 mv "$tmp/config.h" "$ac_file" \
18939 || as_fn_error "could not create $ac_file" "$LINENO" 5
18940 fi
18941 else
18942 $as_echo "/* $configure_input */" \
18943 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18944 || as_fn_error "could not create -" "$LINENO" 5
18945 fi
18946 # Compute "$ac_file"'s index in $config_headers.
18947 _am_arg="$ac_file"
18948 _am_stamp_count=1
18949 for _am_header in $config_headers :; do
18950 case $_am_header in
18951 $_am_arg | $_am_arg:* )
18952 break ;;
18953 * )
18954 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18955 esac
18956 done
18957 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18958 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18959 X"$_am_arg" : 'X\(//\)[^/]' \| \
18960 X"$_am_arg" : 'X\(//\)$' \| \
18961 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18962 $as_echo X"$_am_arg" |
18963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18964 s//\1/
18965 q
18966 }
18967 /^X\(\/\/\)[^/].*/{
18968 s//\1/
18969 q
18970 }
18971 /^X\(\/\/\)$/{
18972 s//\1/
18973 q
18974 }
18975 /^X\(\/\).*/{
18976 s//\1/
18977 q
18978 }
18979 s/.*/./; q'`/stamp-h$_am_stamp_count
18980 ;;
18981
18982 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18983 $as_echo "$as_me: executing $ac_file commands" >&6;}
18984 ;;
18985 esac
18986
18987
18988 case $ac_file$ac_mode in
18989 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18990 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18991 # are listed without --file. Let's play safe and only enable the eval
18992 # if we detect the quoting.
18993 case $CONFIG_FILES in
18994 *\'*) eval set x "$CONFIG_FILES" ;;
18995 *) set x $CONFIG_FILES ;;
18996 esac
18997 shift
18998 for mf
18999 do
19000 # Strip MF so we end up with the name of the file.
19001 mf=`echo "$mf" | sed -e 's/:.*$//'`
19002 # Check whether this is an Automake generated Makefile or not.
19003 # We used to match only the files named `Makefile.in', but
19004 # some people rename them; so instead we look at the file content.
19005 # Grep'ing the first line is not enough: some people post-process
19006 # each Makefile.in and add a new line on top of each file to say so.
19007 # Grep'ing the whole file is not good either: AIX grep has a line
19008 # limit of 2048, but all sed's we know have understand at least 4000.
19009 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19010 dirpart=`$as_dirname -- "$mf" ||
19011 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19012 X"$mf" : 'X\(//\)[^/]' \| \
19013 X"$mf" : 'X\(//\)$' \| \
19014 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19015 $as_echo X"$mf" |
19016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19017 s//\1/
19018 q
19019 }
19020 /^X\(\/\/\)[^/].*/{
19021 s//\1/
19022 q
19023 }
19024 /^X\(\/\/\)$/{
19025 s//\1/
19026 q
19027 }
19028 /^X\(\/\).*/{
19029 s//\1/
19030 q
19031 }
19032 s/.*/./; q'`
19033 else
19034 continue
19035 fi
19036 # Extract the definition of DEPDIR, am__include, and am__quote
19037 # from the Makefile without running `make'.
19038 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19039 test -z "$DEPDIR" && continue
19040 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19041 test -z "am__include" && continue
19042 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19043 # When using ansi2knr, U may be empty or an underscore; expand it
19044 U=`sed -n 's/^U = //p' < "$mf"`
19045 # Find all dependency output files, they are included files with
19046 # $(DEPDIR) in their names. We invoke sed twice because it is the
19047 # simplest approach to changing $(DEPDIR) to its actual value in the
19048 # expansion.
19049 for file in `sed -n "
19050 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19051 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19052 # Make sure the directory exists.
19053 test -f "$dirpart/$file" && continue
19054 fdir=`$as_dirname -- "$file" ||
19055 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19056 X"$file" : 'X\(//\)[^/]' \| \
19057 X"$file" : 'X\(//\)$' \| \
19058 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19059 $as_echo X"$file" |
19060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19061 s//\1/
19062 q
19063 }
19064 /^X\(\/\/\)[^/].*/{
19065 s//\1/
19066 q
19067 }
19068 /^X\(\/\/\)$/{
19069 s//\1/
19070 q
19071 }
19072 /^X\(\/\).*/{
19073 s//\1/
19074 q
19075 }
19076 s/.*/./; q'`
19077 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19078 # echo "creating $dirpart/$file"
19079 echo '# dummy' > "$dirpart/$file"
19080 done
19081 done
19082 }
19083 ;;
19084 "libtool":C)
19085
19086 # See if we are running on zsh, and set the options which allow our
19087 # commands through without removal of \ escapes.
19088 if test -n "${ZSH_VERSION+set}" ; then
19089 setopt NO_GLOB_SUBST
19090 fi
19091
19092 cfgfile="${ofile}T"
19093 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19094 $RM "$cfgfile"
19095
19096 cat <<_LT_EOF >> "$cfgfile"
19097 #! $SHELL
19098
19099 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19100 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19101 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19102 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19103 #
19104 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19105 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19106 # Written by Gordon Matzigkeit, 1996
19107 #
19108 # This file is part of GNU Libtool.
19109 #
19110 # GNU Libtool is free software; you can redistribute it and/or
19111 # modify it under the terms of the GNU General Public License as
19112 # published by the Free Software Foundation; either version 2 of
19113 # the License, or (at your option) any later version.
19114 #
19115 # As a special exception to the GNU General Public License,
19116 # if you distribute this file as part of a program or library that
19117 # is built using GNU Libtool, you may include this file under the
19118 # same distribution terms that you use for the rest of that program.
19119 #
19120 # GNU Libtool is distributed in the hope that it will be useful,
19121 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19122 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19123 # GNU General Public License for more details.
19124 #
19125 # You should have received a copy of the GNU General Public License
19126 # along with GNU Libtool; see the file COPYING. If not, a copy
19127 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19128 # obtained by writing to the Free Software Foundation, Inc.,
19129 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19130
19131
19132 # The names of the tagged configurations supported by this script.
19133 available_tags="CXX "
19134
19135 # ### BEGIN LIBTOOL CONFIG
19136
19137 # Which release of libtool.m4 was used?
19138 macro_version=$macro_version
19139 macro_revision=$macro_revision
19140
19141 # Whether or not to build shared libraries.
19142 build_libtool_libs=$enable_shared
19143
19144 # Whether or not to build static libraries.
19145 build_old_libs=$enable_static
19146
19147 # What type of objects to build.
19148 pic_mode=$pic_mode
19149
19150 # Whether or not to optimize for fast installation.
19151 fast_install=$enable_fast_install
19152
19153 # Shell to use when invoking shell scripts.
19154 SHELL=$lt_SHELL
19155
19156 # An echo program that protects backslashes.
19157 ECHO=$lt_ECHO
19158
19159 # The host system.
19160 host_alias=$host_alias
19161 host=$host
19162 host_os=$host_os
19163
19164 # The build system.
19165 build_alias=$build_alias
19166 build=$build
19167 build_os=$build_os
19168
19169 # A sed program that does not truncate output.
19170 SED=$lt_SED
19171
19172 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19173 Xsed="\$SED -e 1s/^X//"
19174
19175 # A grep program that handles long lines.
19176 GREP=$lt_GREP
19177
19178 # An ERE matcher.
19179 EGREP=$lt_EGREP
19180
19181 # A literal string matcher.
19182 FGREP=$lt_FGREP
19183
19184 # A BSD- or MS-compatible name lister.
19185 NM=$lt_NM
19186
19187 # Whether we need soft or hard links.
19188 LN_S=$lt_LN_S
19189
19190 # What is the maximum length of a command?
19191 max_cmd_len=$max_cmd_len
19192
19193 # Object file suffix (normally "o").
19194 objext=$ac_objext
19195
19196 # Executable file suffix (normally "").
19197 exeext=$exeext
19198
19199 # whether the shell understands "unset".
19200 lt_unset=$lt_unset
19201
19202 # turn spaces into newlines.
19203 SP2NL=$lt_lt_SP2NL
19204
19205 # turn newlines into spaces.
19206 NL2SP=$lt_lt_NL2SP
19207
19208 # An object symbol dumper.
19209 OBJDUMP=$lt_OBJDUMP
19210
19211 # Method to check whether dependent libraries are shared objects.
19212 deplibs_check_method=$lt_deplibs_check_method
19213
19214 # Command to use when deplibs_check_method == "file_magic".
19215 file_magic_cmd=$lt_file_magic_cmd
19216
19217 # The archiver.
19218 AR=$lt_AR
19219 AR_FLAGS=$lt_AR_FLAGS
19220
19221 # A symbol stripping program.
19222 STRIP=$lt_STRIP
19223
19224 # Commands used to install an old-style archive.
19225 RANLIB=$lt_RANLIB
19226 old_postinstall_cmds=$lt_old_postinstall_cmds
19227 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19228
19229 # Whether to use a lock for old archive extraction.
19230 lock_old_archive_extraction=$lock_old_archive_extraction
19231
19232 # A C compiler.
19233 LTCC=$lt_CC
19234
19235 # LTCC compiler flags.
19236 LTCFLAGS=$lt_CFLAGS
19237
19238 # Take the output of nm and produce a listing of raw symbols and C names.
19239 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19240
19241 # Transform the output of nm in a proper C declaration.
19242 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19243
19244 # Transform the output of nm in a C name address pair.
19245 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19246
19247 # Transform the output of nm in a C name address pair when lib prefix is needed.
19248 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19249
19250 # The name of the directory that contains temporary libtool files.
19251 objdir=$objdir
19252
19253 # Used to examine libraries when file_magic_cmd begins with "file".
19254 MAGIC_CMD=$MAGIC_CMD
19255
19256 # Must we lock files when doing compilation?
19257 need_locks=$lt_need_locks
19258
19259 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19260 DSYMUTIL=$lt_DSYMUTIL
19261
19262 # Tool to change global to local symbols on Mac OS X.
19263 NMEDIT=$lt_NMEDIT
19264
19265 # Tool to manipulate fat objects and archives on Mac OS X.
19266 LIPO=$lt_LIPO
19267
19268 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19269 OTOOL=$lt_OTOOL
19270
19271 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19272 OTOOL64=$lt_OTOOL64
19273
19274 # Old archive suffix (normally "a").
19275 libext=$libext
19276
19277 # Shared library suffix (normally ".so").
19278 shrext_cmds=$lt_shrext_cmds
19279
19280 # The commands to extract the exported symbol list from a shared archive.
19281 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19282
19283 # Variables whose values should be saved in libtool wrapper scripts and
19284 # restored at link time.
19285 variables_saved_for_relink=$lt_variables_saved_for_relink
19286
19287 # Do we need the "lib" prefix for modules?
19288 need_lib_prefix=$need_lib_prefix
19289
19290 # Do we need a version for libraries?
19291 need_version=$need_version
19292
19293 # Library versioning type.
19294 version_type=$version_type
19295
19296 # Shared library runtime path variable.
19297 runpath_var=$runpath_var
19298
19299 # Shared library path variable.
19300 shlibpath_var=$shlibpath_var
19301
19302 # Is shlibpath searched before the hard-coded library search path?
19303 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19304
19305 # Format of library name prefix.
19306 libname_spec=$lt_libname_spec
19307
19308 # List of archive names. First name is the real one, the rest are links.
19309 # The last name is the one that the linker finds with -lNAME
19310 library_names_spec=$lt_library_names_spec
19311
19312 # The coded name of the library, if different from the real name.
19313 soname_spec=$lt_soname_spec
19314
19315 # Permission mode override for installation of shared libraries.
19316 install_override_mode=$lt_install_override_mode
19317
19318 # Command to use after installation of a shared archive.
19319 postinstall_cmds=$lt_postinstall_cmds
19320
19321 # Command to use after uninstallation of a shared archive.
19322 postuninstall_cmds=$lt_postuninstall_cmds
19323
19324 # Commands used to finish a libtool library installation in a directory.
19325 finish_cmds=$lt_finish_cmds
19326
19327 # As "finish_cmds", except a single script fragment to be evaled but
19328 # not shown.
19329 finish_eval=$lt_finish_eval
19330
19331 # Whether we should hardcode library paths into libraries.
19332 hardcode_into_libs=$hardcode_into_libs
19333
19334 # Compile-time system search path for libraries.
19335 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19336
19337 # Run-time system search path for libraries.
19338 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19339
19340 # Whether dlopen is supported.
19341 dlopen_support=$enable_dlopen
19342
19343 # Whether dlopen of programs is supported.
19344 dlopen_self=$enable_dlopen_self
19345
19346 # Whether dlopen of statically linked programs is supported.
19347 dlopen_self_static=$enable_dlopen_self_static
19348
19349 # Commands to strip libraries.
19350 old_striplib=$lt_old_striplib
19351 striplib=$lt_striplib
19352
19353
19354 # The linker used to build libraries.
19355 LD=$lt_LD
19356
19357 # How to create reloadable object files.
19358 reload_flag=$lt_reload_flag
19359 reload_cmds=$lt_reload_cmds
19360
19361 # Commands used to build an old-style archive.
19362 old_archive_cmds=$lt_old_archive_cmds
19363
19364 # A language specific compiler.
19365 CC=$lt_compiler
19366
19367 # Is the compiler the GNU compiler?
19368 with_gcc=$GCC
19369
19370 # Compiler flag to turn off builtin functions.
19371 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19372
19373 # How to pass a linker flag through the compiler.
19374 wl=$lt_lt_prog_compiler_wl
19375
19376 # Additional compiler flags for building library objects.
19377 pic_flag=$lt_lt_prog_compiler_pic
19378
19379 # Compiler flag to prevent dynamic linking.
19380 link_static_flag=$lt_lt_prog_compiler_static
19381
19382 # Does compiler simultaneously support -c and -o options?
19383 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19384
19385 # Whether or not to add -lc for building shared libraries.
19386 build_libtool_need_lc=$archive_cmds_need_lc
19387
19388 # Whether or not to disallow shared libs when runtime libs are static.
19389 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19390
19391 # Compiler flag to allow reflexive dlopens.
19392 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19393
19394 # Compiler flag to generate shared objects directly from archives.
19395 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19396
19397 # Whether the compiler copes with passing no objects directly.
19398 compiler_needs_object=$lt_compiler_needs_object
19399
19400 # Create an old-style archive from a shared archive.
19401 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19402
19403 # Create a temporary old-style archive to link instead of a shared archive.
19404 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19405
19406 # Commands used to build a shared archive.
19407 archive_cmds=$lt_archive_cmds
19408 archive_expsym_cmds=$lt_archive_expsym_cmds
19409
19410 # Commands used to build a loadable module if different from building
19411 # a shared archive.
19412 module_cmds=$lt_module_cmds
19413 module_expsym_cmds=$lt_module_expsym_cmds
19414
19415 # Whether we are building with GNU ld or not.
19416 with_gnu_ld=$lt_with_gnu_ld
19417
19418 # Flag that allows shared libraries with undefined symbols to be built.
19419 allow_undefined_flag=$lt_allow_undefined_flag
19420
19421 # Flag that enforces no undefined symbols.
19422 no_undefined_flag=$lt_no_undefined_flag
19423
19424 # Flag to hardcode \$libdir into a binary during linking.
19425 # This must work even if \$libdir does not exist
19426 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19427
19428 # If ld is used when linking, flag to hardcode \$libdir into a binary
19429 # during linking. This must work even if \$libdir does not exist.
19430 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19431
19432 # Whether we need a single "-rpath" flag with a separated argument.
19433 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19434
19435 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19436 # DIR into the resulting binary.
19437 hardcode_direct=$hardcode_direct
19438
19439 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19440 # DIR into the resulting binary and the resulting library dependency is
19441 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19442 # library is relocated.
19443 hardcode_direct_absolute=$hardcode_direct_absolute
19444
19445 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19446 # into the resulting binary.
19447 hardcode_minus_L=$hardcode_minus_L
19448
19449 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19450 # into the resulting binary.
19451 hardcode_shlibpath_var=$hardcode_shlibpath_var
19452
19453 # Set to "yes" if building a shared library automatically hardcodes DIR
19454 # into the library and all subsequent libraries and executables linked
19455 # against it.
19456 hardcode_automatic=$hardcode_automatic
19457
19458 # Set to yes if linker adds runtime paths of dependent libraries
19459 # to runtime path list.
19460 inherit_rpath=$inherit_rpath
19461
19462 # Whether libtool must link a program against all its dependency libraries.
19463 link_all_deplibs=$link_all_deplibs
19464
19465 # Fix the shell variable \$srcfile for the compiler.
19466 fix_srcfile_path=$lt_fix_srcfile_path
19467
19468 # Set to "yes" if exported symbols are required.
19469 always_export_symbols=$always_export_symbols
19470
19471 # The commands to list exported symbols.
19472 export_symbols_cmds=$lt_export_symbols_cmds
19473
19474 # Symbols that should not be listed in the preloaded symbols.
19475 exclude_expsyms=$lt_exclude_expsyms
19476
19477 # Symbols that must always be exported.
19478 include_expsyms=$lt_include_expsyms
19479
19480 # Commands necessary for linking programs (against libraries) with templates.
19481 prelink_cmds=$lt_prelink_cmds
19482
19483 # Specify filename containing input files.
19484 file_list_spec=$lt_file_list_spec
19485
19486 # How to hardcode a shared library path into an executable.
19487 hardcode_action=$hardcode_action
19488
19489 # The directories searched by this compiler when creating a shared library.
19490 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19491
19492 # Dependencies to place before and after the objects being linked to
19493 # create a shared library.
19494 predep_objects=$lt_predep_objects
19495 postdep_objects=$lt_postdep_objects
19496 predeps=$lt_predeps
19497 postdeps=$lt_postdeps
19498
19499 # The library search path used internally by the compiler when linking
19500 # a shared library.
19501 compiler_lib_search_path=$lt_compiler_lib_search_path
19502
19503 # ### END LIBTOOL CONFIG
19504
19505 _LT_EOF
19506
19507 case $host_os in
19508 aix3*)
19509 cat <<\_LT_EOF >> "$cfgfile"
19510 # AIX sometimes has problems with the GCC collect2 program. For some
19511 # reason, if we set the COLLECT_NAMES environment variable, the problems
19512 # vanish in a puff of smoke.
19513 if test "X${COLLECT_NAMES+set}" != Xset; then
19514 COLLECT_NAMES=
19515 export COLLECT_NAMES
19516 fi
19517 _LT_EOF
19518 ;;
19519 esac
19520
19521
19522 ltmain="$ac_aux_dir/ltmain.sh"
19523
19524
19525 # We use sed instead of cat because bash on DJGPP gets confused if
19526 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19527 # text mode, it properly converts lines to CR/LF. This bash problem
19528 # is reportedly fixed, but why not run on old versions too?
19529 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19530 || (rm -f "$cfgfile"; exit 1)
19531
19532 case $xsi_shell in
19533 yes)
19534 cat << \_LT_EOF >> "$cfgfile"
19535
19536 # func_dirname file append nondir_replacement
19537 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19538 # otherwise set result to NONDIR_REPLACEMENT.
19539 func_dirname ()
19540 {
19541 case ${1} in
19542 */*) func_dirname_result="${1%/*}${2}" ;;
19543 * ) func_dirname_result="${3}" ;;
19544 esac
19545 }
19546
19547 # func_basename file
19548 func_basename ()
19549 {
19550 func_basename_result="${1##*/}"
19551 }
19552
19553 # func_dirname_and_basename file append nondir_replacement
19554 # perform func_basename and func_dirname in a single function
19555 # call:
19556 # dirname: Compute the dirname of FILE. If nonempty,
19557 # add APPEND to the result, otherwise set result
19558 # to NONDIR_REPLACEMENT.
19559 # value returned in "$func_dirname_result"
19560 # basename: Compute filename of FILE.
19561 # value retuned in "$func_basename_result"
19562 # Implementation must be kept synchronized with func_dirname
19563 # and func_basename. For efficiency, we do not delegate to
19564 # those functions but instead duplicate the functionality here.
19565 func_dirname_and_basename ()
19566 {
19567 case ${1} in
19568 */*) func_dirname_result="${1%/*}${2}" ;;
19569 * ) func_dirname_result="${3}" ;;
19570 esac
19571 func_basename_result="${1##*/}"
19572 }
19573
19574 # func_stripname prefix suffix name
19575 # strip PREFIX and SUFFIX off of NAME.
19576 # PREFIX and SUFFIX must not contain globbing or regex special
19577 # characters, hashes, percent signs, but SUFFIX may contain a leading
19578 # dot (in which case that matches only a dot).
19579 func_stripname ()
19580 {
19581 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19582 # positional parameters, so assign one to ordinary parameter first.
19583 func_stripname_result=${3}
19584 func_stripname_result=${func_stripname_result#"${1}"}
19585 func_stripname_result=${func_stripname_result%"${2}"}
19586 }
19587
19588 # func_opt_split
19589 func_opt_split ()
19590 {
19591 func_opt_split_opt=${1%%=*}
19592 func_opt_split_arg=${1#*=}
19593 }
19594
19595 # func_lo2o object
19596 func_lo2o ()
19597 {
19598 case ${1} in
19599 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19600 *) func_lo2o_result=${1} ;;
19601 esac
19602 }
19603
19604 # func_xform libobj-or-source
19605 func_xform ()
19606 {
19607 func_xform_result=${1%.*}.lo
19608 }
19609
19610 # func_arith arithmetic-term...
19611 func_arith ()
19612 {
19613 func_arith_result=$(( $* ))
19614 }
19615
19616 # func_len string
19617 # STRING may not start with a hyphen.
19618 func_len ()
19619 {
19620 func_len_result=${#1}
19621 }
19622
19623 _LT_EOF
19624 ;;
19625 *) # Bourne compatible functions.
19626 cat << \_LT_EOF >> "$cfgfile"
19627
19628 # func_dirname file append nondir_replacement
19629 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19630 # otherwise set result to NONDIR_REPLACEMENT.
19631 func_dirname ()
19632 {
19633 # Extract subdirectory from the argument.
19634 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19635 if test "X$func_dirname_result" = "X${1}"; then
19636 func_dirname_result="${3}"
19637 else
19638 func_dirname_result="$func_dirname_result${2}"
19639 fi
19640 }
19641
19642 # func_basename file
19643 func_basename ()
19644 {
19645 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19646 }
19647
19648
19649 # func_stripname prefix suffix name
19650 # strip PREFIX and SUFFIX off of NAME.
19651 # PREFIX and SUFFIX must not contain globbing or regex special
19652 # characters, hashes, percent signs, but SUFFIX may contain a leading
19653 # dot (in which case that matches only a dot).
19654 # func_strip_suffix prefix name
19655 func_stripname ()
19656 {
19657 case ${2} in
19658 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19659 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19660 esac
19661 }
19662
19663 # sed scripts:
19664 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19665 my_sed_long_arg='1s/^-[^=]*=//'
19666
19667 # func_opt_split
19668 func_opt_split ()
19669 {
19670 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19671 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19672 }
19673
19674 # func_lo2o object
19675 func_lo2o ()
19676 {
19677 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19678 }
19679
19680 # func_xform libobj-or-source
19681 func_xform ()
19682 {
19683 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19684 }
19685
19686 # func_arith arithmetic-term...
19687 func_arith ()
19688 {
19689 func_arith_result=`expr "$@"`
19690 }
19691
19692 # func_len string
19693 # STRING may not start with a hyphen.
19694 func_len ()
19695 {
19696 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19697 }
19698
19699 _LT_EOF
19700 esac
19701
19702 case $lt_shell_append in
19703 yes)
19704 cat << \_LT_EOF >> "$cfgfile"
19705
19706 # func_append var value
19707 # Append VALUE to the end of shell variable VAR.
19708 func_append ()
19709 {
19710 eval "$1+=\$2"
19711 }
19712 _LT_EOF
19713 ;;
19714 *)
19715 cat << \_LT_EOF >> "$cfgfile"
19716
19717 # func_append var value
19718 # Append VALUE to the end of shell variable VAR.
19719 func_append ()
19720 {
19721 eval "$1=\$$1\$2"
19722 }
19723
19724 _LT_EOF
19725 ;;
19726 esac
19727
19728
19729 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19730 || (rm -f "$cfgfile"; exit 1)
19731
19732 mv -f "$cfgfile" "$ofile" ||
19733 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19734 chmod +x "$ofile"
19735
19736
19737 cat <<_LT_EOF >> "$ofile"
19738
19739 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19740
19741 # The linker used to build libraries.
19742 LD=$lt_LD_CXX
19743
19744 # How to create reloadable object files.
19745 reload_flag=$lt_reload_flag_CXX
19746 reload_cmds=$lt_reload_cmds_CXX
19747
19748 # Commands used to build an old-style archive.
19749 old_archive_cmds=$lt_old_archive_cmds_CXX
19750
19751 # A language specific compiler.
19752 CC=$lt_compiler_CXX
19753
19754 # Is the compiler the GNU compiler?
19755 with_gcc=$GCC_CXX
19756
19757 # Compiler flag to turn off builtin functions.
19758 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19759
19760 # How to pass a linker flag through the compiler.
19761 wl=$lt_lt_prog_compiler_wl_CXX
19762
19763 # Additional compiler flags for building library objects.
19764 pic_flag=$lt_lt_prog_compiler_pic_CXX
19765
19766 # Compiler flag to prevent dynamic linking.
19767 link_static_flag=$lt_lt_prog_compiler_static_CXX
19768
19769 # Does compiler simultaneously support -c and -o options?
19770 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19771
19772 # Whether or not to add -lc for building shared libraries.
19773 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19774
19775 # Whether or not to disallow shared libs when runtime libs are static.
19776 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19777
19778 # Compiler flag to allow reflexive dlopens.
19779 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19780
19781 # Compiler flag to generate shared objects directly from archives.
19782 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19783
19784 # Whether the compiler copes with passing no objects directly.
19785 compiler_needs_object=$lt_compiler_needs_object_CXX
19786
19787 # Create an old-style archive from a shared archive.
19788 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19789
19790 # Create a temporary old-style archive to link instead of a shared archive.
19791 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19792
19793 # Commands used to build a shared archive.
19794 archive_cmds=$lt_archive_cmds_CXX
19795 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19796
19797 # Commands used to build a loadable module if different from building
19798 # a shared archive.
19799 module_cmds=$lt_module_cmds_CXX
19800 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19801
19802 # Whether we are building with GNU ld or not.
19803 with_gnu_ld=$lt_with_gnu_ld_CXX
19804
19805 # Flag that allows shared libraries with undefined symbols to be built.
19806 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19807
19808 # Flag that enforces no undefined symbols.
19809 no_undefined_flag=$lt_no_undefined_flag_CXX
19810
19811 # Flag to hardcode \$libdir into a binary during linking.
19812 # This must work even if \$libdir does not exist
19813 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19814
19815 # If ld is used when linking, flag to hardcode \$libdir into a binary
19816 # during linking. This must work even if \$libdir does not exist.
19817 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19818
19819 # Whether we need a single "-rpath" flag with a separated argument.
19820 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19821
19822 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19823 # DIR into the resulting binary.
19824 hardcode_direct=$hardcode_direct_CXX
19825
19826 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19827 # DIR into the resulting binary and the resulting library dependency is
19828 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19829 # library is relocated.
19830 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19831
19832 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19833 # into the resulting binary.
19834 hardcode_minus_L=$hardcode_minus_L_CXX
19835
19836 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19837 # into the resulting binary.
19838 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19839
19840 # Set to "yes" if building a shared library automatically hardcodes DIR
19841 # into the library and all subsequent libraries and executables linked
19842 # against it.
19843 hardcode_automatic=$hardcode_automatic_CXX
19844
19845 # Set to yes if linker adds runtime paths of dependent libraries
19846 # to runtime path list.
19847 inherit_rpath=$inherit_rpath_CXX
19848
19849 # Whether libtool must link a program against all its dependency libraries.
19850 link_all_deplibs=$link_all_deplibs_CXX
19851
19852 # Fix the shell variable \$srcfile for the compiler.
19853 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19854
19855 # Set to "yes" if exported symbols are required.
19856 always_export_symbols=$always_export_symbols_CXX
19857
19858 # The commands to list exported symbols.
19859 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19860
19861 # Symbols that should not be listed in the preloaded symbols.
19862 exclude_expsyms=$lt_exclude_expsyms_CXX
19863
19864 # Symbols that must always be exported.
19865 include_expsyms=$lt_include_expsyms_CXX
19866
19867 # Commands necessary for linking programs (against libraries) with templates.
19868 prelink_cmds=$lt_prelink_cmds_CXX
19869
19870 # Specify filename containing input files.
19871 file_list_spec=$lt_file_list_spec_CXX
19872
19873 # How to hardcode a shared library path into an executable.
19874 hardcode_action=$hardcode_action_CXX
19875
19876 # The directories searched by this compiler when creating a shared library.
19877 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19878
19879 # Dependencies to place before and after the objects being linked to
19880 # create a shared library.
19881 predep_objects=$lt_predep_objects_CXX
19882 postdep_objects=$lt_postdep_objects_CXX
19883 predeps=$lt_predeps_CXX
19884 postdeps=$lt_postdeps_CXX
19885
19886 # The library search path used internally by the compiler when linking
19887 # a shared library.
19888 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19889
19890 # ### END LIBTOOL TAG CONFIG: CXX
19891 _LT_EOF
19892
19893 ;;
19894 "default-1":C)
19895 for ac_file in $CONFIG_FILES; do
19896 # Support "outfile[:infile[:infile...]]"
19897 case "$ac_file" in
19898 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19899 esac
19900 # PO directories have a Makefile.in generated from Makefile.in.in.
19901 case "$ac_file" in */Makefile.in)
19902 # Adjust a relative srcdir.
19903 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19904 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19905 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19906 # In autoconf-2.13 it is called $ac_given_srcdir.
19907 # In autoconf-2.50 it is called $srcdir.
19908 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19909 case "$ac_given_srcdir" in
19910 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19911 /*) top_srcdir="$ac_given_srcdir" ;;
19912 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19913 esac
19914 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19915 rm -f "$ac_dir/POTFILES"
19916 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19917 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19918 POMAKEFILEDEPS="POTFILES.in"
19919 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19920 # on $ac_dir but don't depend on user-specified configuration
19921 # parameters.
19922 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19923 # The LINGUAS file contains the set of available languages.
19924 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19925 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
19926 fi
19927 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19928 # Hide the ALL_LINGUAS assigment from automake.
19929 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19930 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19931 else
19932 # The set of available languages was given in configure.ac.
19933 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19934 fi
19935 case "$ac_given_srcdir" in
19936 .) srcdirpre= ;;
19937 *) srcdirpre='$(srcdir)/' ;;
19938 esac
19939 POFILES=
19940 GMOFILES=
19941 UPDATEPOFILES=
19942 DUMMYPOFILES=
19943 for lang in $ALL_LINGUAS; do
19944 POFILES="$POFILES $srcdirpre$lang.po"
19945 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19946 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19947 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19948 done
19949 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19950 # environment variable.
19951 INST_LINGUAS=
19952 if test -n "$ALL_LINGUAS"; then
19953 for presentlang in $ALL_LINGUAS; do
19954 useit=no
19955 if test "%UNSET%" != "$LINGUAS"; then
19956 desiredlanguages="$LINGUAS"
19957 else
19958 desiredlanguages="$ALL_LINGUAS"
19959 fi
19960 for desiredlang in $desiredlanguages; do
19961 # Use the presentlang catalog if desiredlang is
19962 # a. equal to presentlang, or
19963 # b. a variant of presentlang (because in this case,
19964 # presentlang can be used as a fallback for messages
19965 # which are not translated in the desiredlang catalog).
19966 case "$desiredlang" in
19967 "$presentlang"*) useit=yes;;
19968 esac
19969 done
19970 if test $useit = yes; then
19971 INST_LINGUAS="$INST_LINGUAS $presentlang"
19972 fi
19973 done
19974 fi
19975 CATALOGS=
19976 if test -n "$INST_LINGUAS"; then
19977 for lang in $INST_LINGUAS; do
19978 CATALOGS="$CATALOGS $lang.gmo"
19979 done
19980 fi
19981 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19982 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
19983 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19984 if test -f "$f"; then
19985 case "$f" in
19986 *.orig | *.bak | *~) ;;
19987 *) cat "$f" >> "$ac_dir/Makefile" ;;
19988 esac
19989 fi
19990 done
19991 fi
19992 ;;
19993 esac
19994 done ;;
19995
19996 esac
19997 done # for ac_tag
19998
19999
20000 as_fn_exit 0
20001 _ACEOF
20002 ac_clean_files=$ac_clean_files_save
20003
20004 test $ac_write_fail = 0 ||
20005 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20006
20007
20008 # configure is writing to config.log, and then calls config.status.
20009 # config.status does its own redirection, appending to config.log.
20010 # Unfortunately, on DOS this fails, as config.log is still kept open
20011 # by configure, so config.status won't be able to write to it; its
20012 # output is simply discarded. So we exec the FD to /dev/null,
20013 # effectively closing config.log, so it can be properly (re)opened and
20014 # appended to by config.status. When coming back to configure, we
20015 # need to make the FD available again.
20016 if test "$no_create" != yes; then
20017 ac_cs_success=:
20018 ac_config_status_args=
20019 test "$silent" = yes &&
20020 ac_config_status_args="$ac_config_status_args --quiet"
20021 exec 5>/dev/null
20022 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20023 exec 5>>config.log
20024 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20025 # would make configure fail if this is the last instruction.
20026 $ac_cs_success || as_fn_exit $?
20027 fi
20028 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20030 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20031 fi
20032