]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/configure
ld: regenerate configure after recent misgeneration
[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.69 for ld 2.38.50.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='ld'
589 PACKAGE_TARNAME='ld'
590 PACKAGE_VERSION='2.38.50'
591 PACKAGE_STRING='ld 2.38.50'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="ldmain.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_header_list=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 TESTCTFLIB
638 TESTBFDLIB
639 EMULATION_LIBPATH
640 LIB_PATH
641 EMUL_EXTRA_OFILES
642 EMULATION_OFILES
643 TDIRS
644 EMUL
645 elf_plt_unwind_list_options
646 elf_shlib_list_options
647 elf_list_options
648 STRINGIFY
649 zlibinc
650 zlibdir
651 NATIVE_LIB_DIRS
652 HDEFINES
653 do_compare
654 GENINSRC_NEVER_FALSE
655 GENINSRC_NEVER_TRUE
656 LEXLIB
657 LEX_OUTPUT_ROOT
658 LEX
659 YFLAGS
660 YACC
661 MSGMERGE
662 MSGFMT
663 MKINSTALLDIRS
664 CATOBJEXT
665 GENCAT
666 INSTOBJEXT
667 DATADIRNAME
668 CATALOGS
669 POSUB
670 GMSGFMT
671 XGETTEXT
672 INCINTL
673 LIBINTL_DEP
674 LIBINTL
675 USE_NLS
676 WARN_WRITE_STRINGS
677 NO_WERROR
678 WARN_CFLAGS_FOR_BUILD
679 WARN_CFLAGS
680 JANSSON_LIBS
681 JANSSON_CFLAGS
682 PKG_CONFIG_LIBDIR
683 PKG_CONFIG_PATH
684 PKG_CONFIG
685 enable_libctf
686 ENABLE_LIBCTF_FALSE
687 ENABLE_LIBCTF_TRUE
688 enable_initfini_array
689 installed_linker
690 install_as_default
691 TARGET_SYSTEM_ROOT_DEFINE
692 TARGET_SYSTEM_ROOT
693 use_sysroot
694 ENABLE_BFD_64_BIT_FALSE
695 ENABLE_BFD_64_BIT_TRUE
696 LARGEFILE_CPPFLAGS
697 CXXCPP
698 OTOOL64
699 OTOOL
700 LIPO
701 NMEDIT
702 DSYMUTIL
703 RANLIB
704 AR
705 OBJDUMP
706 LN_S
707 NM
708 ac_ct_DUMPBIN
709 DUMPBIN
710 LD
711 FGREP
712 SED
713 LIBTOOL
714 EGREP
715 CPP
716 GREP
717 am__fastdepCXX_FALSE
718 am__fastdepCXX_TRUE
719 CXXDEPMODE
720 ac_ct_CXX
721 CXXFLAGS
722 CXX
723 am__fastdepCC_FALSE
724 am__fastdepCC_TRUE
725 CCDEPMODE
726 am__nodep
727 AMDEPBACKSLASH
728 AMDEP_FALSE
729 AMDEP_TRUE
730 am__quote
731 am__include
732 DEPDIR
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 MAINT
741 MAINTAINER_MODE_FALSE
742 MAINTAINER_MODE_TRUE
743 AM_BACKSLASH
744 AM_DEFAULT_VERBOSITY
745 AM_DEFAULT_V
746 AM_V
747 am__untar
748 am__tar
749 AMTAR
750 am__leading_dot
751 SET_MAKE
752 AWK
753 mkdir_p
754 MKDIR_P
755 INSTALL_STRIP_PROGRAM
756 STRIP
757 install_sh
758 MAKEINFO
759 AUTOHEADER
760 AUTOMAKE
761 AUTOCONF
762 ACLOCAL
763 VERSION
764 PACKAGE
765 CYGPATH_W
766 am__isrc
767 INSTALL_DATA
768 INSTALL_SCRIPT
769 INSTALL_PROGRAM
770 target_os
771 target_vendor
772 target_cpu
773 target
774 host_os
775 host_vendor
776 host_cpu
777 host
778 build_os
779 build_vendor
780 build_cpu
781 build
782 target_alias
783 host_alias
784 build_alias
785 LIBS
786 ECHO_T
787 ECHO_N
788 ECHO_C
789 DEFS
790 mandir
791 localedir
792 libdir
793 psdir
794 pdfdir
795 dvidir
796 htmldir
797 infodir
798 docdir
799 oldincludedir
800 includedir
801 localstatedir
802 sharedstatedir
803 sysconfdir
804 datadir
805 datarootdir
806 libexecdir
807 sbindir
808 bindir
809 program_transform_name
810 prefix
811 exec_prefix
812 PACKAGE_URL
813 PACKAGE_BUGREPORT
814 PACKAGE_STRING
815 PACKAGE_VERSION
816 PACKAGE_TARNAME
817 PACKAGE_NAME
818 PATH_SEPARATOR
819 SHELL'
820 ac_subst_files=''
821 ac_user_opts='
822 enable_option_checking
823 enable_silent_rules
824 enable_maintainer_mode
825 enable_dependency_tracking
826 enable_shared
827 enable_static
828 with_pic
829 enable_fast_install
830 with_gnu_ld
831 enable_libtool_lock
832 enable_plugins
833 enable_largefile
834 enable_checking
835 with_lib_path
836 enable_targets
837 enable_64_bit_bfd
838 with_sysroot
839 enable_gold
840 enable_got
841 enable_compressed_debug_sections
842 enable_new_dtags
843 enable_relro
844 enable_textrel_check
845 enable_separate_code
846 enable_warn_execstack
847 enable_warn_rwx_segments
848 enable_default_execstack
849 enable_error_handling_script
850 enable_default_hash_style
851 enable_initfini_array
852 enable_libctf
853 enable_jansson
854 enable_werror
855 enable_build_warnings
856 enable_nls
857 with_system_zlib
858 '
859 ac_precious_vars='build_alias
860 host_alias
861 target_alias
862 CC
863 CFLAGS
864 LDFLAGS
865 LIBS
866 CPPFLAGS
867 CXX
868 CXXFLAGS
869 CCC
870 CPP
871 CXXCPP
872 PKG_CONFIG
873 PKG_CONFIG_PATH
874 PKG_CONFIG_LIBDIR
875 JANSSON_CFLAGS
876 JANSSON_LIBS
877 YACC
878 YFLAGS'
879
880
881 # Initialize some variables set by options.
882 ac_init_help=
883 ac_init_version=false
884 ac_unrecognized_opts=
885 ac_unrecognized_sep=
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
888 cache_file=/dev/null
889 exec_prefix=NONE
890 no_create=
891 no_recursion=
892 prefix=NONE
893 program_prefix=NONE
894 program_suffix=NONE
895 program_transform_name=s,x,x,
896 silent=
897 site=
898 srcdir=
899 verbose=
900 x_includes=NONE
901 x_libraries=NONE
902
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir='${exec_prefix}/bin'
910 sbindir='${exec_prefix}/sbin'
911 libexecdir='${exec_prefix}/libexec'
912 datarootdir='${prefix}/share'
913 datadir='${datarootdir}'
914 sysconfdir='${prefix}/etc'
915 sharedstatedir='${prefix}/com'
916 localstatedir='${prefix}/var'
917 includedir='${prefix}/include'
918 oldincludedir='/usr/include'
919 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
920 infodir='${datarootdir}/info'
921 htmldir='${docdir}'
922 dvidir='${docdir}'
923 pdfdir='${docdir}'
924 psdir='${docdir}'
925 libdir='${exec_prefix}/lib'
926 localedir='${datarootdir}/locale'
927 mandir='${datarootdir}/man'
928
929 ac_prev=
930 ac_dashdash=
931 for ac_option
932 do
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
935 eval $ac_prev=\$ac_option
936 ac_prev=
937 continue
938 fi
939
940 case $ac_option in
941 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 *=) ac_optarg= ;;
943 *) ac_optarg=yes ;;
944 esac
945
946 # Accept the important Cygnus configure options, so we can diagnose typos.
947
948 case $ac_dashdash$ac_option in
949 --)
950 ac_dashdash=yes ;;
951
952 -bindir | --bindir | --bindi | --bind | --bin | --bi)
953 ac_prev=bindir ;;
954 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
955 bindir=$ac_optarg ;;
956
957 -build | --build | --buil | --bui | --bu)
958 ac_prev=build_alias ;;
959 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
960 build_alias=$ac_optarg ;;
961
962 -cache-file | --cache-file | --cache-fil | --cache-fi \
963 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
964 ac_prev=cache_file ;;
965 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
966 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
967 cache_file=$ac_optarg ;;
968
969 --config-cache | -C)
970 cache_file=config.cache ;;
971
972 -datadir | --datadir | --datadi | --datad)
973 ac_prev=datadir ;;
974 -datadir=* | --datadir=* | --datadi=* | --datad=*)
975 datadir=$ac_optarg ;;
976
977 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
978 | --dataroo | --dataro | --datar)
979 ac_prev=datarootdir ;;
980 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
981 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
982 datarootdir=$ac_optarg ;;
983
984 -disable-* | --disable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error $? "invalid feature name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=no ;;
999
1000 -docdir | --docdir | --docdi | --doc | --do)
1001 ac_prev=docdir ;;
1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003 docdir=$ac_optarg ;;
1004
1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006 ac_prev=dvidir ;;
1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008 dvidir=$ac_optarg ;;
1009
1010 -enable-* | --enable-*)
1011 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014 as_fn_error $? "invalid feature name: $ac_useropt"
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1018 *"
1019 "enable_$ac_useropt"
1020 "*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval enable_$ac_useropt=\$ac_optarg ;;
1025
1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028 | --exec | --exe | --ex)
1029 ac_prev=exec_prefix ;;
1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032 | --exec=* | --exe=* | --ex=*)
1033 exec_prefix=$ac_optarg ;;
1034
1035 -gas | --gas | --ga | --g)
1036 # Obsolete; use --with-gas.
1037 with_gas=yes ;;
1038
1039 -help | --help | --hel | --he | -h)
1040 ac_init_help=long ;;
1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042 ac_init_help=recursive ;;
1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044 ac_init_help=short ;;
1045
1046 -host | --host | --hos | --ho)
1047 ac_prev=host_alias ;;
1048 -host=* | --host=* | --hos=* | --ho=*)
1049 host_alias=$ac_optarg ;;
1050
1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 ac_prev=htmldir ;;
1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 | --ht=*)
1055 htmldir=$ac_optarg ;;
1056
1057 -includedir | --includedir | --includedi | --included | --include \
1058 | --includ | --inclu | --incl | --inc)
1059 ac_prev=includedir ;;
1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061 | --includ=* | --inclu=* | --incl=* | --inc=*)
1062 includedir=$ac_optarg ;;
1063
1064 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 ac_prev=infodir ;;
1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067 infodir=$ac_optarg ;;
1068
1069 -libdir | --libdir | --libdi | --libd)
1070 ac_prev=libdir ;;
1071 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072 libdir=$ac_optarg ;;
1073
1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075 | --libexe | --libex | --libe)
1076 ac_prev=libexecdir ;;
1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078 | --libexe=* | --libex=* | --libe=*)
1079 libexecdir=$ac_optarg ;;
1080
1081 -localedir | --localedir | --localedi | --localed | --locale)
1082 ac_prev=localedir ;;
1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084 localedir=$ac_optarg ;;
1085
1086 -localstatedir | --localstatedir | --localstatedi | --localstated \
1087 | --localstate | --localstat | --localsta | --localst | --locals)
1088 ac_prev=localstatedir ;;
1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091 localstatedir=$ac_optarg ;;
1092
1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 ac_prev=mandir ;;
1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096 mandir=$ac_optarg ;;
1097
1098 -nfp | --nfp | --nf)
1099 # Obsolete; use --without-fp.
1100 with_fp=no ;;
1101
1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103 | --no-cr | --no-c | -n)
1104 no_create=yes ;;
1105
1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 no_recursion=yes ;;
1109
1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112 | --oldin | --oldi | --old | --ol | --o)
1113 ac_prev=oldincludedir ;;
1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117 oldincludedir=$ac_optarg ;;
1118
1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 ac_prev=prefix ;;
1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122 prefix=$ac_optarg ;;
1123
1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125 | --program-pre | --program-pr | --program-p)
1126 ac_prev=program_prefix ;;
1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129 program_prefix=$ac_optarg ;;
1130
1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132 | --program-suf | --program-su | --program-s)
1133 ac_prev=program_suffix ;;
1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136 program_suffix=$ac_optarg ;;
1137
1138 -program-transform-name | --program-transform-name \
1139 | --program-transform-nam | --program-transform-na \
1140 | --program-transform-n | --program-transform- \
1141 | --program-transform | --program-transfor \
1142 | --program-transfo | --program-transf \
1143 | --program-trans | --program-tran \
1144 | --progr-tra | --program-tr | --program-t)
1145 ac_prev=program_transform_name ;;
1146 -program-transform-name=* | --program-transform-name=* \
1147 | --program-transform-nam=* | --program-transform-na=* \
1148 | --program-transform-n=* | --program-transform-=* \
1149 | --program-transform=* | --program-transfor=* \
1150 | --program-transfo=* | --program-transf=* \
1151 | --program-trans=* | --program-tran=* \
1152 | --progr-tra=* | --program-tr=* | --program-t=*)
1153 program_transform_name=$ac_optarg ;;
1154
1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 ac_prev=pdfdir ;;
1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158 pdfdir=$ac_optarg ;;
1159
1160 -psdir | --psdir | --psdi | --psd | --ps)
1161 ac_prev=psdir ;;
1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 psdir=$ac_optarg ;;
1164
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1167 silent=yes ;;
1168
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 ac_prev=sbindir ;;
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 | --sbi=* | --sb=*)
1173 sbindir=$ac_optarg ;;
1174
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1178 | --sha | --sh)
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 | --sha=* | --sh=*)
1184 sharedstatedir=$ac_optarg ;;
1185
1186 -site | --site | --sit)
1187 ac_prev=site ;;
1188 -site=* | --site=* | --sit=*)
1189 site=$ac_optarg ;;
1190
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 ac_prev=srcdir ;;
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1195
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1202
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1207
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 verbose=yes ;;
1210
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1213
1214 -with-* | --with-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 as_fn_error $? "invalid package name: $ac_useropt"
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1222 *"
1223 "with_$ac_useropt"
1224 "*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=\$ac_optarg ;;
1229
1230 -without-* | --without-*)
1231 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234 as_fn_error $? "invalid package name: $ac_useropt"
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1238 *"
1239 "with_$ac_useropt"
1240 "*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval with_$ac_useropt=no ;;
1245
1246 --x)
1247 # Obsolete; use --with-x.
1248 with_x=yes ;;
1249
1250 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1251 | --x-incl | --x-inc | --x-in | --x-i)
1252 ac_prev=x_includes ;;
1253 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1254 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1255 x_includes=$ac_optarg ;;
1256
1257 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1258 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1259 ac_prev=x_libraries ;;
1260 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1261 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1262 x_libraries=$ac_optarg ;;
1263
1264 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1265 Try \`$0 --help' for more information"
1266 ;;
1267
1268 *=*)
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 case $ac_envvar in #(
1272 '' | [0-9]* | *[!_$as_cr_alnum]* )
1273 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1274 esac
1275 eval $ac_envvar=\$ac_optarg
1276 export $ac_envvar ;;
1277
1278 *)
1279 # FIXME: should be removed in autoconf 3.0.
1280 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1283 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1284 ;;
1285
1286 esac
1287 done
1288
1289 if test -n "$ac_prev"; then
1290 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1291 as_fn_error $? "missing argument to $ac_option"
1292 fi
1293
1294 if test -n "$ac_unrecognized_opts"; then
1295 case $enable_option_checking in
1296 no) ;;
1297 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1298 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1299 esac
1300 fi
1301
1302 # Check all directory arguments for consistency.
1303 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1304 datadir sysconfdir sharedstatedir localstatedir includedir \
1305 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1306 libdir localedir mandir
1307 do
1308 eval ac_val=\$$ac_var
1309 # Remove trailing slashes.
1310 case $ac_val in
1311 */ )
1312 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1313 eval $ac_var=\$ac_val;;
1314 esac
1315 # Be sure to have absolute directory names.
1316 case $ac_val in
1317 [\\/$]* | ?:[\\/]* ) continue;;
1318 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1319 esac
1320 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1321 done
1322
1323 # There might be people who depend on the old broken behavior: `$host'
1324 # used to hold the argument of --host etc.
1325 # FIXME: To remove some day.
1326 build=$build_alias
1327 host=$host_alias
1328 target=$target_alias
1329
1330 # FIXME: To remove some day.
1331 if test "x$host_alias" != x; then
1332 if test "x$build_alias" = x; then
1333 cross_compiling=maybe
1334 elif test "x$build_alias" != "x$host_alias"; then
1335 cross_compiling=yes
1336 fi
1337 fi
1338
1339 ac_tool_prefix=
1340 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342 test "$silent" = yes && exec 6>/dev/null
1343
1344
1345 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346 ac_ls_di=`ls -di .` &&
1347 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348 as_fn_error $? "working directory cannot be determined"
1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350 as_fn_error $? "pwd does not report name of working directory"
1351
1352
1353 # Find the source files, if location was not specified.
1354 if test -z "$srcdir"; then
1355 ac_srcdir_defaulted=yes
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir=`$as_dirname -- "$as_myself" ||
1358 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$as_myself" : 'X\(//\)[^/]' \| \
1360 X"$as_myself" : 'X\(//\)$' \| \
1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362 $as_echo X"$as_myself" |
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)[^/].*/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\).*/{
1376 s//\1/
1377 q
1378 }
1379 s/.*/./; q'`
1380 srcdir=$ac_confdir
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 srcdir=..
1383 fi
1384 else
1385 ac_srcdir_defaulted=no
1386 fi
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1390 fi
1391 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 ac_abs_confdir=`(
1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1394 pwd)`
1395 # When building in place, set srcdir=.
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 srcdir=.
1398 fi
1399 # Remove unnecessary trailing slashes from srcdir.
1400 # Double slashes in file names in object file debugging info
1401 # mess up M-x gdb in Emacs.
1402 case $srcdir in
1403 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 esac
1405 for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410 done
1411
1412 #
1413 # Report the --help message.
1414 #
1415 if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1418 cat <<_ACEOF
1419 \`configure' configures ld 2.38.50 to adapt to many kinds of systems.
1420
1421 Usage: $0 [OPTION]... [VAR=VALUE]...
1422
1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424 VAR=VALUE. See below for descriptions of some of the useful variables.
1425
1426 Defaults for the options are specified in brackets.
1427
1428 Configuration:
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
1433 -q, --quiet, --silent do not print \`checking ...' messages
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438
1439 Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
1441 [$ac_default_prefix]
1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 [PREFIX]
1444
1445 By default, \`make install' will install all the files in
1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448 for instance \`--prefix=\$HOME'.
1449
1450 For better control, use the options below.
1451
1452 Fine tuning of the installation directories:
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
1472 _ACEOF
1473
1474 cat <<\_ACEOF
1475
1476 Program names:
1477 --program-prefix=PREFIX prepend PREFIX to installed program names
1478 --program-suffix=SUFFIX append SUFFIX to installed program names
1479 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1480
1481 System types:
1482 --build=BUILD configure for building on BUILD [guessed]
1483 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1484 --target=TARGET configure for building compilers for TARGET [HOST]
1485 _ACEOF
1486 fi
1487
1488 if test -n "$ac_init_help"; then
1489 case $ac_init_help in
1490 short | recursive ) echo "Configuration of ld 2.38.50:";;
1491 esac
1492 cat <<\_ACEOF
1493
1494 Optional Features:
1495 --disable-option-checking ignore unrecognized --enable/--with options
1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1498 --enable-silent-rules less verbose build output (undo: "make V=1")
1499 --disable-silent-rules verbose build output (undo: "make V=0")
1500 --enable-maintainer-mode
1501 enable make rules and dependencies not useful (and
1502 sometimes confusing) to the casual installer
1503 --enable-dependency-tracking
1504 do not reject slow dependency extractors
1505 --disable-dependency-tracking
1506 speeds up one-time build
1507 --enable-shared[=PKGS] build shared libraries [default=yes]
1508 --enable-static[=PKGS] build static libraries [default=yes]
1509 --enable-fast-install[=PKGS]
1510 optimize for fast installation [default=yes]
1511 --disable-libtool-lock avoid locking (might break parallel builds)
1512 --enable-plugins Enable support for plugins
1513 --disable-largefile omit support for large files
1514 --enable-checking enable run-time checks
1515 --enable-targets alternative target configurations
1516 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1517 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1518 --enable-got=<type> GOT handling scheme (target, single, negative,
1519 multigot)
1520 --enable-compressed-debug-sections={all,ld,none}
1521 compress debug sections by default]
1522 --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default]
1523 --enable-relro enable -z relro in ELF linker by default
1524 --enable-textrel-check=[yes|no|warning|error]
1525 enable DT_TEXTREL check in ELF linker
1526 --enable-separate-code enable -z separate-code in ELF linker by default
1527 --enable-warn-execstack enable warnings when creating an executable stack
1528 --enable-warn-rwx-segments
1529 enable warnings when creating segements with RWX
1530 permissions
1531 --enable-default-execstack
1532 create an executable stack if an input file is
1533 missing a .note.GNU-stack section
1534 --enable-error-handling-script
1535 enable/disable support for the
1536 --error-handling-script option
1537 --enable-default-hash-style={sysv,gnu,both}
1538 use this default hash style
1539 --disable-initfini-array do not use .init_array/.fini_array sections
1540 --enable-libctf Handle .ctf type-info sections [default=yes]
1541 --enable-jansson enable jansson [default=no]
1542 --enable-werror treat compile warnings as errors
1543 --enable-build-warnings enable build-time compiler warnings
1544 --disable-nls do not use Native Language Support
1545
1546 Optional Packages:
1547 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1548 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1549 --with-pic try to use only PIC/non-PIC objects [default=use
1550 both]
1551 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1552 --with-lib-path=dir1:dir2... set default LIB_PATH
1553 --with-sysroot=DIR Search for usr/lib et al within DIR.
1554 --with-system-zlib use installed libz
1555
1556 Some influential environment variables:
1557 CC C compiler command
1558 CFLAGS C compiler flags
1559 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1560 nonstandard directory <lib dir>
1561 LIBS libraries to pass to the linker, e.g. -l<library>
1562 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1563 you have headers in a nonstandard directory <include dir>
1564 CXX C++ compiler command
1565 CXXFLAGS C++ compiler flags
1566 CPP C preprocessor
1567 CXXCPP C++ preprocessor
1568 PKG_CONFIG path to pkg-config utility
1569 PKG_CONFIG_PATH
1570 directories to add to pkg-config's search path
1571 PKG_CONFIG_LIBDIR
1572 path overriding pkg-config's built-in search path
1573 JANSSON_CFLAGS
1574 C compiler flags for JANSSON, overriding pkg-config
1575 JANSSON_LIBS
1576 linker flags for JANSSON, overriding pkg-config
1577 YACC The `Yet Another Compiler Compiler' implementation to use.
1578 Defaults to the first program found out of: `bison -y', `byacc',
1579 `yacc'.
1580 YFLAGS The list of arguments that will be passed by default to $YACC.
1581 This script will default YFLAGS to the empty string to avoid a
1582 default value of `-d' given by some make applications.
1583
1584 Use these variables to override the choices made by `configure' or to help
1585 it to find libraries and programs with nonstandard names/locations.
1586
1587 Report bugs to the package provider.
1588 _ACEOF
1589 ac_status=$?
1590 fi
1591
1592 if test "$ac_init_help" = "recursive"; then
1593 # If there are subdirs, report their specific --help.
1594 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1595 test -d "$ac_dir" ||
1596 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1597 continue
1598 ac_builddir=.
1599
1600 case "$ac_dir" in
1601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602 *)
1603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1604 # A ".." for each directory in $ac_dir_suffix.
1605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1606 case $ac_top_builddir_sub in
1607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1609 esac ;;
1610 esac
1611 ac_abs_top_builddir=$ac_pwd
1612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1613 # for backward compatibility:
1614 ac_top_builddir=$ac_top_build_prefix
1615
1616 case $srcdir in
1617 .) # We are building in place.
1618 ac_srcdir=.
1619 ac_top_srcdir=$ac_top_builddir_sub
1620 ac_abs_top_srcdir=$ac_pwd ;;
1621 [\\/]* | ?:[\\/]* ) # Absolute name.
1622 ac_srcdir=$srcdir$ac_dir_suffix;
1623 ac_top_srcdir=$srcdir
1624 ac_abs_top_srcdir=$srcdir ;;
1625 *) # Relative name.
1626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1627 ac_top_srcdir=$ac_top_build_prefix$srcdir
1628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1629 esac
1630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1631
1632 cd "$ac_dir" || { ac_status=$?; continue; }
1633 # Check for guested configure.
1634 if test -f "$ac_srcdir/configure.gnu"; then
1635 echo &&
1636 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1637 elif test -f "$ac_srcdir/configure"; then
1638 echo &&
1639 $SHELL "$ac_srcdir/configure" --help=recursive
1640 else
1641 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1642 fi || ac_status=$?
1643 cd "$ac_pwd" || { ac_status=$?; break; }
1644 done
1645 fi
1646
1647 test -n "$ac_init_help" && exit $ac_status
1648 if $ac_init_version; then
1649 cat <<\_ACEOF
1650 ld configure 2.38.50
1651 generated by GNU Autoconf 2.69
1652
1653 Copyright (C) 2012 Free Software Foundation, Inc.
1654 This configure script is free software; the Free Software Foundation
1655 gives unlimited permission to copy, distribute and modify it.
1656 _ACEOF
1657 exit
1658 fi
1659
1660 ## ------------------------ ##
1661 ## Autoconf initialization. ##
1662 ## ------------------------ ##
1663
1664 # ac_fn_c_try_compile LINENO
1665 # --------------------------
1666 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_compile ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext
1671 if { { ac_try="$ac_compile"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_compile") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest.$ac_objext; then :
1690 ac_retval=0
1691 else
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696 fi
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1699
1700 } # ac_fn_c_try_compile
1701
1702 # ac_fn_cxx_try_compile LINENO
1703 # ----------------------------
1704 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_cxx_try_compile ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext
1709 if { { ac_try="$ac_compile"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_compile") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_cxx_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest.$ac_objext; then :
1728 ac_retval=0
1729 else
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1
1734 fi
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1737
1738 } # ac_fn_cxx_try_compile
1739
1740 # ac_fn_c_try_cpp LINENO
1741 # ----------------------
1742 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_c_try_cpp ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if { { ac_try="$ac_cpp conftest.$ac_ext"
1747 case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1754 ac_status=$?
1755 if test -s conftest.err; then
1756 grep -v '^ *+' conftest.err >conftest.er1
1757 cat conftest.er1 >&5
1758 mv -f conftest.er1 conftest.err
1759 fi
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } > conftest.i && {
1762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1763 test ! -s conftest.err
1764 }; then :
1765 ac_retval=0
1766 else
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 ac_retval=1
1771 fi
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1774
1775 } # ac_fn_c_try_cpp
1776
1777 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1778 # -------------------------------------------------------
1779 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1780 # the include files in INCLUDES and setting the cache variable VAR
1781 # accordingly.
1782 ac_fn_c_check_header_mongrel ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if eval \${$3+:} false; then :
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1790 fi
1791 eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 $as_echo "$ac_res" >&6; }
1794 else
1795 # Is the header compilable?
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1797 $as_echo_n "checking $2 usability... " >&6; }
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 $4
1801 #include <$2>
1802 _ACEOF
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804 ac_header_compiler=yes
1805 else
1806 ac_header_compiler=no
1807 fi
1808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1810 $as_echo "$ac_header_compiler" >&6; }
1811
1812 # Is the header present?
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1814 $as_echo_n "checking $2 presence... " >&6; }
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1817 #include <$2>
1818 _ACEOF
1819 if ac_fn_c_try_cpp "$LINENO"; then :
1820 ac_header_preproc=yes
1821 else
1822 ac_header_preproc=no
1823 fi
1824 rm -f conftest.err conftest.i conftest.$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1826 $as_echo "$ac_header_preproc" >&6; }
1827
1828 # So? What about this header?
1829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1830 yes:no: )
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1832 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 ;;
1836 no:yes:* )
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1838 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1840 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1842 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1844 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847 ;;
1848 esac
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1853 else
1854 eval "$3=\$ac_header_compiler"
1855 fi
1856 eval ac_res=\$$3
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 fi
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862 } # ac_fn_c_check_header_mongrel
1863
1864 # ac_fn_c_try_run LINENO
1865 # ----------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867 # that executables *can* be run.
1868 ac_fn_c_try_run ()
1869 {
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 if { { ac_try="$ac_link"
1872 case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_link") 2>&5
1879 ac_status=$?
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1882 { { case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_try") 2>&5
1889 ac_status=$?
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; }; }; then :
1892 ac_retval=0
1893 else
1894 $as_echo "$as_me: program exited with status $ac_status" >&5
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1897
1898 ac_retval=$ac_status
1899 fi
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1903
1904 } # ac_fn_c_try_run
1905
1906 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1907 # -------------------------------------------------------
1908 # Tests whether HEADER exists and can be compiled using the include files in
1909 # INCLUDES, setting the cache variable VAR accordingly.
1910 ac_fn_c_check_header_compile ()
1911 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if eval \${$3+:} false; then :
1916 $as_echo_n "(cached) " >&6
1917 else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 $4
1921 #include <$2>
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924 eval "$3=yes"
1925 else
1926 eval "$3=no"
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929 fi
1930 eval ac_res=\$$3
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934
1935 } # ac_fn_c_check_header_compile
1936
1937 # ac_fn_c_try_link LINENO
1938 # -----------------------
1939 # Try to link conftest.$ac_ext, and return whether this succeeded.
1940 ac_fn_c_try_link ()
1941 {
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 rm -f conftest.$ac_objext conftest$ac_exeext
1944 if { { ac_try="$ac_link"
1945 case "(($ac_try" in
1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947 *) ac_try_echo=$ac_try;;
1948 esac
1949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_link") 2>conftest.err
1952 ac_status=$?
1953 if test -s conftest.err; then
1954 grep -v '^ *+' conftest.err >conftest.er1
1955 cat conftest.er1 >&5
1956 mv -f conftest.er1 conftest.err
1957 fi
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } && {
1960 test -z "$ac_c_werror_flag" ||
1961 test ! -s conftest.err
1962 } && test -s conftest$ac_exeext && {
1963 test "$cross_compiling" = yes ||
1964 test -x conftest$ac_exeext
1965 }; then :
1966 ac_retval=0
1967 else
1968 $as_echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1970
1971 ac_retval=1
1972 fi
1973 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1974 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1975 # interfere with the next link command; also delete a directory that is
1976 # left behind by Apple's compiler. We do this before executing the actions.
1977 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 as_fn_set_status $ac_retval
1980
1981 } # ac_fn_c_try_link
1982
1983 # ac_fn_c_check_func LINENO FUNC VAR
1984 # ----------------------------------
1985 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1986 ac_fn_c_check_func ()
1987 {
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if eval \${$3+:} false; then :
1992 $as_echo_n "(cached) " >&6
1993 else
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
1996 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1998 #define $2 innocuous_$2
1999
2000 /* System header to define __stub macros and hopefully few prototypes,
2001 which can conflict with char $2 (); below.
2002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2003 <limits.h> exists even on freestanding compilers. */
2004
2005 #ifdef __STDC__
2006 # include <limits.h>
2007 #else
2008 # include <assert.h>
2009 #endif
2010
2011 #undef $2
2012
2013 /* Override any GCC internal prototype to avoid an error.
2014 Use char because int might match the return type of a GCC
2015 builtin and then its argument prototype would still apply. */
2016 #ifdef __cplusplus
2017 extern "C"
2018 #endif
2019 char $2 ();
2020 /* The GNU C library defines this for functions which it implements
2021 to always fail with ENOSYS. Some functions are actually named
2022 something starting with __ and the normal name is an alias. */
2023 #if defined __stub_$2 || defined __stub___$2
2024 choke me
2025 #endif
2026
2027 int
2028 main ()
2029 {
2030 return $2 ();
2031 ;
2032 return 0;
2033 }
2034 _ACEOF
2035 if ac_fn_c_try_link "$LINENO"; then :
2036 eval "$3=yes"
2037 else
2038 eval "$3=no"
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext \
2041 conftest$ac_exeext conftest.$ac_ext
2042 fi
2043 eval ac_res=\$$3
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047
2048 } # ac_fn_c_check_func
2049
2050 # ac_fn_cxx_try_cpp LINENO
2051 # ------------------------
2052 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2053 ac_fn_cxx_try_cpp ()
2054 {
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 if { { ac_try="$ac_cpp conftest.$ac_ext"
2057 case "(($ac_try" in
2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2060 esac
2061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2064 ac_status=$?
2065 if test -s conftest.err; then
2066 grep -v '^ *+' conftest.err >conftest.er1
2067 cat conftest.er1 >&5
2068 mv -f conftest.er1 conftest.err
2069 fi
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } > conftest.i && {
2072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2073 test ! -s conftest.err
2074 }; then :
2075 ac_retval=0
2076 else
2077 $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2079
2080 ac_retval=1
2081 fi
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status $ac_retval
2084
2085 } # ac_fn_cxx_try_cpp
2086
2087 # ac_fn_cxx_try_link LINENO
2088 # -------------------------
2089 # Try to link conftest.$ac_ext, and return whether this succeeded.
2090 ac_fn_cxx_try_link ()
2091 {
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 rm -f conftest.$ac_objext conftest$ac_exeext
2094 if { { ac_try="$ac_link"
2095 case "(($ac_try" in
2096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097 *) ac_try_echo=$ac_try;;
2098 esac
2099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100 $as_echo "$ac_try_echo"; } >&5
2101 (eval "$ac_link") 2>conftest.err
2102 ac_status=$?
2103 if test -s conftest.err; then
2104 grep -v '^ *+' conftest.err >conftest.er1
2105 cat conftest.er1 >&5
2106 mv -f conftest.er1 conftest.err
2107 fi
2108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2109 test $ac_status = 0; } && {
2110 test -z "$ac_cxx_werror_flag" ||
2111 test ! -s conftest.err
2112 } && test -s conftest$ac_exeext && {
2113 test "$cross_compiling" = yes ||
2114 test -x conftest$ac_exeext
2115 }; then :
2116 ac_retval=0
2117 else
2118 $as_echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.$ac_ext >&5
2120
2121 ac_retval=1
2122 fi
2123 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2124 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2125 # interfere with the next link command; also delete a directory that is
2126 # left behind by Apple's compiler. We do this before executing the actions.
2127 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129 as_fn_set_status $ac_retval
2130
2131 } # ac_fn_cxx_try_link
2132
2133 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2134 # --------------------------------------------
2135 # Tries to find the compile-time value of EXPR in a program that includes
2136 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2137 # computed
2138 ac_fn_c_compute_int ()
2139 {
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 if test "$cross_compiling" = yes; then
2142 # Depending upon the size, compute the lo and hi bounds.
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2145 $4
2146 int
2147 main ()
2148 {
2149 static int test_array [1 - 2 * !(($2) >= 0)];
2150 test_array [0] = 0;
2151 return test_array [0];
2152
2153 ;
2154 return 0;
2155 }
2156 _ACEOF
2157 if ac_fn_c_try_compile "$LINENO"; then :
2158 ac_lo=0 ac_mid=0
2159 while :; do
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2162 $4
2163 int
2164 main ()
2165 {
2166 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2167 test_array [0] = 0;
2168 return test_array [0];
2169
2170 ;
2171 return 0;
2172 }
2173 _ACEOF
2174 if ac_fn_c_try_compile "$LINENO"; then :
2175 ac_hi=$ac_mid; break
2176 else
2177 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2178 if test $ac_lo -le $ac_mid; then
2179 ac_lo= ac_hi=
2180 break
2181 fi
2182 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2183 fi
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 done
2186 else
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2189 $4
2190 int
2191 main ()
2192 {
2193 static int test_array [1 - 2 * !(($2) < 0)];
2194 test_array [0] = 0;
2195 return test_array [0];
2196
2197 ;
2198 return 0;
2199 }
2200 _ACEOF
2201 if ac_fn_c_try_compile "$LINENO"; then :
2202 ac_hi=-1 ac_mid=-1
2203 while :; do
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2206 $4
2207 int
2208 main ()
2209 {
2210 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2211 test_array [0] = 0;
2212 return test_array [0];
2213
2214 ;
2215 return 0;
2216 }
2217 _ACEOF
2218 if ac_fn_c_try_compile "$LINENO"; then :
2219 ac_lo=$ac_mid; break
2220 else
2221 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2222 if test $ac_mid -le $ac_hi; then
2223 ac_lo= ac_hi=
2224 break
2225 fi
2226 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2227 fi
2228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 done
2230 else
2231 ac_lo= ac_hi=
2232 fi
2233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 fi
2235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2236 # Binary search between lo and hi bounds.
2237 while test "x$ac_lo" != "x$ac_hi"; do
2238 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2241 $4
2242 int
2243 main ()
2244 {
2245 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2246 test_array [0] = 0;
2247 return test_array [0];
2248
2249 ;
2250 return 0;
2251 }
2252 _ACEOF
2253 if ac_fn_c_try_compile "$LINENO"; then :
2254 ac_hi=$ac_mid
2255 else
2256 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2257 fi
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 done
2260 case $ac_lo in #((
2261 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2262 '') ac_retval=1 ;;
2263 esac
2264 else
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2267 $4
2268 static long int longval () { return $2; }
2269 static unsigned long int ulongval () { return $2; }
2270 #include <stdio.h>
2271 #include <stdlib.h>
2272 int
2273 main ()
2274 {
2275
2276 FILE *f = fopen ("conftest.val", "w");
2277 if (! f)
2278 return 1;
2279 if (($2) < 0)
2280 {
2281 long int i = longval ();
2282 if (i != ($2))
2283 return 1;
2284 fprintf (f, "%ld", i);
2285 }
2286 else
2287 {
2288 unsigned long int i = ulongval ();
2289 if (i != ($2))
2290 return 1;
2291 fprintf (f, "%lu", i);
2292 }
2293 /* Do not output a trailing newline, as this causes \r\n confusion
2294 on some platforms. */
2295 return ferror (f) || fclose (f) != 0;
2296
2297 ;
2298 return 0;
2299 }
2300 _ACEOF
2301 if ac_fn_c_try_run "$LINENO"; then :
2302 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2303 else
2304 ac_retval=1
2305 fi
2306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2307 conftest.$ac_objext conftest.beam conftest.$ac_ext
2308 rm -f conftest.val
2309
2310 fi
2311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312 as_fn_set_status $ac_retval
2313
2314 } # ac_fn_c_compute_int
2315
2316 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2317 # ---------------------------------------------
2318 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2319 # accordingly.
2320 ac_fn_c_check_decl ()
2321 {
2322 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2323 as_decl_name=`echo $2|sed 's/ *(.*//'`
2324 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2326 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2327 if eval \${$3+:} false; then :
2328 $as_echo_n "(cached) " >&6
2329 else
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2332 $4
2333 int
2334 main ()
2335 {
2336 #ifndef $as_decl_name
2337 #ifdef __cplusplus
2338 (void) $as_decl_use;
2339 #else
2340 (void) $as_decl_name;
2341 #endif
2342 #endif
2343
2344 ;
2345 return 0;
2346 }
2347 _ACEOF
2348 if ac_fn_c_try_compile "$LINENO"; then :
2349 eval "$3=yes"
2350 else
2351 eval "$3=no"
2352 fi
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354 fi
2355 eval ac_res=\$$3
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2357 $as_echo "$ac_res" >&6; }
2358 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2359
2360 } # ac_fn_c_check_decl
2361 cat >config.log <<_ACEOF
2362 This file contains any messages produced by compilers while
2363 running configure, to aid debugging if configure makes a mistake.
2364
2365 It was created by ld $as_me 2.38.50, which was
2366 generated by GNU Autoconf 2.69. Invocation command line was
2367
2368 $ $0 $@
2369
2370 _ACEOF
2371 exec 5>>config.log
2372 {
2373 cat <<_ASUNAME
2374 ## --------- ##
2375 ## Platform. ##
2376 ## --------- ##
2377
2378 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2379 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2380 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2381 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2382 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2383
2384 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2385 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2386
2387 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2388 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2389 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2390 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2391 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2392 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2393 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2394
2395 _ASUNAME
2396
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2399 do
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
2402 $as_echo "PATH: $as_dir"
2403 done
2404 IFS=$as_save_IFS
2405
2406 } >&5
2407
2408 cat >&5 <<_ACEOF
2409
2410
2411 ## ----------- ##
2412 ## Core tests. ##
2413 ## ----------- ##
2414
2415 _ACEOF
2416
2417
2418 # Keep a trace of the command line.
2419 # Strip out --no-create and --no-recursion so they do not pile up.
2420 # Strip out --silent because we don't want to record it for future runs.
2421 # Also quote any args containing shell meta-characters.
2422 # Make two passes to allow for proper duplicate-argument suppression.
2423 ac_configure_args=
2424 ac_configure_args0=
2425 ac_configure_args1=
2426 ac_must_keep_next=false
2427 for ac_pass in 1 2
2428 do
2429 for ac_arg
2430 do
2431 case $ac_arg in
2432 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2433 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2434 | -silent | --silent | --silen | --sile | --sil)
2435 continue ;;
2436 *\'*)
2437 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2438 esac
2439 case $ac_pass in
2440 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2441 2)
2442 as_fn_append ac_configure_args1 " '$ac_arg'"
2443 if test $ac_must_keep_next = true; then
2444 ac_must_keep_next=false # Got value, back to normal.
2445 else
2446 case $ac_arg in
2447 *=* | --config-cache | -C | -disable-* | --disable-* \
2448 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2449 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2450 | -with-* | --with-* | -without-* | --without-* | --x)
2451 case "$ac_configure_args0 " in
2452 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2453 esac
2454 ;;
2455 -* ) ac_must_keep_next=true ;;
2456 esac
2457 fi
2458 as_fn_append ac_configure_args " '$ac_arg'"
2459 ;;
2460 esac
2461 done
2462 done
2463 { ac_configure_args0=; unset ac_configure_args0;}
2464 { ac_configure_args1=; unset ac_configure_args1;}
2465
2466 # When interrupted or exit'd, cleanup temporary files, and complete
2467 # config.log. We remove comments because anyway the quotes in there
2468 # would cause problems or look ugly.
2469 # WARNING: Use '\'' to represent an apostrophe within the trap.
2470 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2471 trap 'exit_status=$?
2472 # Save into config.log some information that might help in debugging.
2473 {
2474 echo
2475
2476 $as_echo "## ---------------- ##
2477 ## Cache variables. ##
2478 ## ---------------- ##"
2479 echo
2480 # The following way of writing the cache mishandles newlines in values,
2481 (
2482 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2483 eval ac_val=\$$ac_var
2484 case $ac_val in #(
2485 *${as_nl}*)
2486 case $ac_var in #(
2487 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2488 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2489 esac
2490 case $ac_var in #(
2491 _ | IFS | as_nl) ;; #(
2492 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2493 *) { eval $ac_var=; unset $ac_var;} ;;
2494 esac ;;
2495 esac
2496 done
2497 (set) 2>&1 |
2498 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2499 *${as_nl}ac_space=\ *)
2500 sed -n \
2501 "s/'\''/'\''\\\\'\'''\''/g;
2502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2503 ;; #(
2504 *)
2505 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2506 ;;
2507 esac |
2508 sort
2509 )
2510 echo
2511
2512 $as_echo "## ----------------- ##
2513 ## Output variables. ##
2514 ## ----------------- ##"
2515 echo
2516 for ac_var in $ac_subst_vars
2517 do
2518 eval ac_val=\$$ac_var
2519 case $ac_val in
2520 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2521 esac
2522 $as_echo "$ac_var='\''$ac_val'\''"
2523 done | sort
2524 echo
2525
2526 if test -n "$ac_subst_files"; then
2527 $as_echo "## ------------------- ##
2528 ## File substitutions. ##
2529 ## ------------------- ##"
2530 echo
2531 for ac_var in $ac_subst_files
2532 do
2533 eval ac_val=\$$ac_var
2534 case $ac_val in
2535 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2536 esac
2537 $as_echo "$ac_var='\''$ac_val'\''"
2538 done | sort
2539 echo
2540 fi
2541
2542 if test -s confdefs.h; then
2543 $as_echo "## ----------- ##
2544 ## confdefs.h. ##
2545 ## ----------- ##"
2546 echo
2547 cat confdefs.h
2548 echo
2549 fi
2550 test "$ac_signal" != 0 &&
2551 $as_echo "$as_me: caught signal $ac_signal"
2552 $as_echo "$as_me: exit $exit_status"
2553 } >&5
2554 rm -f core *.core core.conftest.* &&
2555 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2556 exit $exit_status
2557 ' 0
2558 for ac_signal in 1 2 13 15; do
2559 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2560 done
2561 ac_signal=0
2562
2563 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2564 rm -f -r conftest* confdefs.h
2565
2566 $as_echo "/* confdefs.h */" > confdefs.h
2567
2568 # Predefined preprocessor variables.
2569
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_NAME "$PACKAGE_NAME"
2572 _ACEOF
2573
2574 cat >>confdefs.h <<_ACEOF
2575 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2576 _ACEOF
2577
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2580 _ACEOF
2581
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_STRING "$PACKAGE_STRING"
2584 _ACEOF
2585
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2588 _ACEOF
2589
2590 cat >>confdefs.h <<_ACEOF
2591 #define PACKAGE_URL "$PACKAGE_URL"
2592 _ACEOF
2593
2594
2595 # Let the site file select an alternate cache file if it wants to.
2596 # Prefer an explicitly selected file to automatically selected ones.
2597 ac_site_file1=NONE
2598 ac_site_file2=NONE
2599 if test -n "$CONFIG_SITE"; then
2600 # We do not want a PATH search for config.site.
2601 case $CONFIG_SITE in #((
2602 -*) ac_site_file1=./$CONFIG_SITE;;
2603 */*) ac_site_file1=$CONFIG_SITE;;
2604 *) ac_site_file1=./$CONFIG_SITE;;
2605 esac
2606 elif test "x$prefix" != xNONE; then
2607 ac_site_file1=$prefix/share/config.site
2608 ac_site_file2=$prefix/etc/config.site
2609 else
2610 ac_site_file1=$ac_default_prefix/share/config.site
2611 ac_site_file2=$ac_default_prefix/etc/config.site
2612 fi
2613 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2614 do
2615 test "x$ac_site_file" = xNONE && continue
2616 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2618 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2619 sed 's/^/| /' "$ac_site_file" >&5
2620 . "$ac_site_file" \
2621 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2623 as_fn_error $? "failed to load site script $ac_site_file
2624 See \`config.log' for more details" "$LINENO" 5; }
2625 fi
2626 done
2627
2628 if test -r "$cache_file"; then
2629 # Some versions of bash will fail to source /dev/null (special files
2630 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2631 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2633 $as_echo "$as_me: loading cache $cache_file" >&6;}
2634 case $cache_file in
2635 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2636 *) . "./$cache_file";;
2637 esac
2638 fi
2639 else
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2641 $as_echo "$as_me: creating cache $cache_file" >&6;}
2642 >$cache_file
2643 fi
2644
2645 as_fn_append ac_header_list " stdlib.h"
2646 as_fn_append ac_header_list " unistd.h"
2647 as_fn_append ac_header_list " sys/param.h"
2648 # Check that the precious variables saved in the cache have kept the same
2649 # value.
2650 ac_cache_corrupted=false
2651 for ac_var in $ac_precious_vars; do
2652 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2653 eval ac_new_set=\$ac_env_${ac_var}_set
2654 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2655 eval ac_new_val=\$ac_env_${ac_var}_value
2656 case $ac_old_set,$ac_new_set in
2657 set,)
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2659 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2660 ac_cache_corrupted=: ;;
2661 ,set)
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2663 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2664 ac_cache_corrupted=: ;;
2665 ,);;
2666 *)
2667 if test "x$ac_old_val" != "x$ac_new_val"; then
2668 # differences in whitespace do not lead to failure.
2669 ac_old_val_w=`echo x $ac_old_val`
2670 ac_new_val_w=`echo x $ac_new_val`
2671 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2673 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2674 ac_cache_corrupted=:
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2677 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2678 eval $ac_var=\$ac_old_val
2679 fi
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2681 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2683 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2684 fi;;
2685 esac
2686 # Pass precious variables to config.status.
2687 if test "$ac_new_set" = set; then
2688 case $ac_new_val in
2689 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2690 *) ac_arg=$ac_var=$ac_new_val ;;
2691 esac
2692 case " $ac_configure_args " in
2693 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2694 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2695 esac
2696 fi
2697 done
2698 if $ac_cache_corrupted; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2702 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2703 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2704 fi
2705 ## -------------------- ##
2706 ## Main body of script. ##
2707 ## -------------------- ##
2708
2709 ac_ext=c
2710 ac_cpp='$CPP $CPPFLAGS'
2711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714
2715
2716
2717
2718
2719
2720
2721 ac_aux_dir=
2722 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2723 if test -f "$ac_dir/install-sh"; then
2724 ac_aux_dir=$ac_dir
2725 ac_install_sh="$ac_aux_dir/install-sh -c"
2726 break
2727 elif test -f "$ac_dir/install.sh"; then
2728 ac_aux_dir=$ac_dir
2729 ac_install_sh="$ac_aux_dir/install.sh -c"
2730 break
2731 elif test -f "$ac_dir/shtool"; then
2732 ac_aux_dir=$ac_dir
2733 ac_install_sh="$ac_aux_dir/shtool install -c"
2734 break
2735 fi
2736 done
2737 if test -z "$ac_aux_dir"; then
2738 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2739 fi
2740
2741 # These three variables are undocumented and unsupported,
2742 # and are intended to be withdrawn in a future Autoconf release.
2743 # They can cause serious problems if a builder's source tree is in a directory
2744 # whose full name contains unusual characters.
2745 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2746 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2747 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2748
2749
2750 # Make sure we can run config.sub.
2751 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2752 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2753
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2755 $as_echo_n "checking build system type... " >&6; }
2756 if ${ac_cv_build+:} false; then :
2757 $as_echo_n "(cached) " >&6
2758 else
2759 ac_build_alias=$build_alias
2760 test "x$ac_build_alias" = x &&
2761 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2762 test "x$ac_build_alias" = x &&
2763 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2764 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2765 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2766
2767 fi
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2769 $as_echo "$ac_cv_build" >&6; }
2770 case $ac_cv_build in
2771 *-*-*) ;;
2772 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2773 esac
2774 build=$ac_cv_build
2775 ac_save_IFS=$IFS; IFS='-'
2776 set x $ac_cv_build
2777 shift
2778 build_cpu=$1
2779 build_vendor=$2
2780 shift; shift
2781 # Remember, the first character of IFS is used to create $*,
2782 # except with old shells:
2783 build_os=$*
2784 IFS=$ac_save_IFS
2785 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2786
2787
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2789 $as_echo_n "checking host system type... " >&6; }
2790 if ${ac_cv_host+:} false; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 if test "x$host_alias" = x; then
2794 ac_cv_host=$ac_cv_build
2795 else
2796 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2797 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2798 fi
2799
2800 fi
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2802 $as_echo "$ac_cv_host" >&6; }
2803 case $ac_cv_host in
2804 *-*-*) ;;
2805 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2806 esac
2807 host=$ac_cv_host
2808 ac_save_IFS=$IFS; IFS='-'
2809 set x $ac_cv_host
2810 shift
2811 host_cpu=$1
2812 host_vendor=$2
2813 shift; shift
2814 # Remember, the first character of IFS is used to create $*,
2815 # except with old shells:
2816 host_os=$*
2817 IFS=$ac_save_IFS
2818 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2819
2820
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2822 $as_echo_n "checking target system type... " >&6; }
2823 if ${ac_cv_target+:} false; then :
2824 $as_echo_n "(cached) " >&6
2825 else
2826 if test "x$target_alias" = x; then
2827 ac_cv_target=$ac_cv_host
2828 else
2829 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2830 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2831 fi
2832
2833 fi
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2835 $as_echo "$ac_cv_target" >&6; }
2836 case $ac_cv_target in
2837 *-*-*) ;;
2838 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2839 esac
2840 target=$ac_cv_target
2841 ac_save_IFS=$IFS; IFS='-'
2842 set x $ac_cv_target
2843 shift
2844 target_cpu=$1
2845 target_vendor=$2
2846 shift; shift
2847 # Remember, the first character of IFS is used to create $*,
2848 # except with old shells:
2849 target_os=$*
2850 IFS=$ac_save_IFS
2851 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2852
2853
2854 # The aliases save the names the user supplied, while $host etc.
2855 # will get canonicalized.
2856 test -n "$target_alias" &&
2857 test "$program_prefix$program_suffix$program_transform_name" = \
2858 NONENONEs,x,x, &&
2859 program_prefix=${target_alias}-
2860
2861
2862 am__api_version='1.15'
2863
2864 # Find a good install program. We prefer a C program (faster),
2865 # so one script is as good as another. But avoid the broken or
2866 # incompatible versions:
2867 # SysV /etc/install, /usr/sbin/install
2868 # SunOS /usr/etc/install
2869 # IRIX /sbin/install
2870 # AIX /bin/install
2871 # AmigaOS /C/install, which installs bootblocks on floppy discs
2872 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2873 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2874 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2875 # OS/2's system install, which has a completely different semantic
2876 # ./install, which can be erroneously created by make from ./install.sh.
2877 # Reject install programs that cannot install multiple files.
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2879 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2880 if test -z "$INSTALL"; then
2881 if ${ac_cv_path_install+:} false; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 # Account for people who put trailing slashes in PATH elements.
2890 case $as_dir/ in #((
2891 ./ | .// | /[cC]/* | \
2892 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2893 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2894 /usr/ucb/* ) ;;
2895 *)
2896 # OSF1 and SCO ODT 3.0 have their own names for install.
2897 # Don't use installbsd from OSF since it installs stuff as root
2898 # by default.
2899 for ac_prog in ginstall scoinst install; do
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2902 if test $ac_prog = install &&
2903 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2904 # AIX install. It has an incompatible calling convention.
2905 :
2906 elif test $ac_prog = install &&
2907 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2908 # program-specific install script used by HP pwplus--don't use.
2909 :
2910 else
2911 rm -rf conftest.one conftest.two conftest.dir
2912 echo one > conftest.one
2913 echo two > conftest.two
2914 mkdir conftest.dir
2915 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2916 test -s conftest.one && test -s conftest.two &&
2917 test -s conftest.dir/conftest.one &&
2918 test -s conftest.dir/conftest.two
2919 then
2920 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2921 break 3
2922 fi
2923 fi
2924 fi
2925 done
2926 done
2927 ;;
2928 esac
2929
2930 done
2931 IFS=$as_save_IFS
2932
2933 rm -rf conftest.one conftest.two conftest.dir
2934
2935 fi
2936 if test "${ac_cv_path_install+set}" = set; then
2937 INSTALL=$ac_cv_path_install
2938 else
2939 # As a last resort, use the slow shell script. Don't cache a
2940 # value for INSTALL within a source directory, because that will
2941 # break other packages using the cache if that directory is
2942 # removed, or if the value is a relative name.
2943 INSTALL=$ac_install_sh
2944 fi
2945 fi
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2947 $as_echo "$INSTALL" >&6; }
2948
2949 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2950 # It thinks the first close brace ends the variable substitution.
2951 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2952
2953 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2954
2955 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2956
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2958 $as_echo_n "checking whether build environment is sane... " >&6; }
2959 # Reject unsafe characters in $srcdir or the absolute working directory
2960 # name. Accept space and tab only in the latter.
2961 am_lf='
2962 '
2963 case `pwd` in
2964 *[\\\"\#\$\&\'\`$am_lf]*)
2965 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2966 esac
2967 case $srcdir in
2968 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2969 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2970 esac
2971
2972 # Do 'set' in a subshell so we don't clobber the current shell's
2973 # arguments. Must try -L first in case configure is actually a
2974 # symlink; some systems play weird games with the mod time of symlinks
2975 # (eg FreeBSD returns the mod time of the symlink's containing
2976 # directory).
2977 if (
2978 am_has_slept=no
2979 for am_try in 1 2; do
2980 echo "timestamp, slept: $am_has_slept" > conftest.file
2981 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2982 if test "$*" = "X"; then
2983 # -L didn't work.
2984 set X `ls -t "$srcdir/configure" conftest.file`
2985 fi
2986 if test "$*" != "X $srcdir/configure conftest.file" \
2987 && test "$*" != "X conftest.file $srcdir/configure"; then
2988
2989 # If neither matched, then we have a broken ls. This can happen
2990 # if, for instance, CONFIG_SHELL is bash and it inherits a
2991 # broken ls alias from the environment. This has actually
2992 # happened. Such a system could not be considered "sane".
2993 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2994 alias in your environment" "$LINENO" 5
2995 fi
2996 if test "$2" = conftest.file || test $am_try -eq 2; then
2997 break
2998 fi
2999 # Just in case.
3000 sleep 1
3001 am_has_slept=yes
3002 done
3003 test "$2" = conftest.file
3004 )
3005 then
3006 # Ok.
3007 :
3008 else
3009 as_fn_error $? "newly created file is older than distributed files!
3010 Check your system clock" "$LINENO" 5
3011 fi
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3013 $as_echo "yes" >&6; }
3014 # If we didn't sleep, we still need to ensure time stamps of config.status and
3015 # generated files are strictly newer.
3016 am_sleep_pid=
3017 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3018 ( sleep 1 ) &
3019 am_sleep_pid=$!
3020 fi
3021
3022 rm -f conftest.file
3023
3024 test "$program_prefix" != NONE &&
3025 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3026 # Use a double $ so make ignores it.
3027 test "$program_suffix" != NONE &&
3028 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3029 # Double any \ or $.
3030 # By default was `s,x,x', remove it if useless.
3031 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3032 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3033
3034 # Expand $ac_aux_dir to an absolute path.
3035 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3036
3037 if test x"${MISSING+set}" != xset; then
3038 case $am_aux_dir in
3039 *\ * | *\ *)
3040 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3041 *)
3042 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3043 esac
3044 fi
3045 # Use eval to expand $SHELL
3046 if eval "$MISSING --is-lightweight"; then
3047 am_missing_run="$MISSING "
3048 else
3049 am_missing_run=
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3051 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3052 fi
3053
3054 if test x"${install_sh+set}" != xset; then
3055 case $am_aux_dir in
3056 *\ * | *\ *)
3057 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3058 *)
3059 install_sh="\${SHELL} $am_aux_dir/install-sh"
3060 esac
3061 fi
3062
3063 # Installed binaries are usually stripped using 'strip' when the user
3064 # run "make install-strip". However 'strip' might not be the right
3065 # tool to use in cross-compilation environments, therefore Automake
3066 # will honor the 'STRIP' environment variable to overrule this program.
3067 if test "$cross_compiling" != no; then
3068 if test -n "$ac_tool_prefix"; then
3069 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3070 set dummy ${ac_tool_prefix}strip; ac_word=$2
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 $as_echo_n "checking for $ac_word... " >&6; }
3073 if ${ac_cv_prog_STRIP+:} false; then :
3074 $as_echo_n "(cached) " >&6
3075 else
3076 if test -n "$STRIP"; then
3077 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3078 else
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3086 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 break 2
3089 fi
3090 done
3091 done
3092 IFS=$as_save_IFS
3093
3094 fi
3095 fi
3096 STRIP=$ac_cv_prog_STRIP
3097 if test -n "$STRIP"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3099 $as_echo "$STRIP" >&6; }
3100 else
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3103 fi
3104
3105
3106 fi
3107 if test -z "$ac_cv_prog_STRIP"; then
3108 ac_ct_STRIP=$STRIP
3109 # Extract the first word of "strip", so it can be a program name with args.
3110 set dummy strip; ac_word=$2
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3114 $as_echo_n "(cached) " >&6
3115 else
3116 if test -n "$ac_ct_STRIP"; then
3117 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3121 do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126 ac_cv_prog_ac_ct_STRIP="strip"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3129 fi
3130 done
3131 done
3132 IFS=$as_save_IFS
3133
3134 fi
3135 fi
3136 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3137 if test -n "$ac_ct_STRIP"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3139 $as_echo "$ac_ct_STRIP" >&6; }
3140 else
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3143 fi
3144
3145 if test "x$ac_ct_STRIP" = x; then
3146 STRIP=":"
3147 else
3148 case $cross_compiling:$ac_tool_warned in
3149 yes:)
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152 ac_tool_warned=yes ;;
3153 esac
3154 STRIP=$ac_ct_STRIP
3155 fi
3156 else
3157 STRIP="$ac_cv_prog_STRIP"
3158 fi
3159
3160 fi
3161 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3162
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3164 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3165 if test -z "$MKDIR_P"; then
3166 if ${ac_cv_path_mkdir+:} false; then :
3167 $as_echo_n "(cached) " >&6
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3171 do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_prog in mkdir gmkdir; do
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3177 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3178 'mkdir (GNU coreutils) '* | \
3179 'mkdir (coreutils) '* | \
3180 'mkdir (fileutils) '4.1*)
3181 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3182 break 3;;
3183 esac
3184 done
3185 done
3186 done
3187 IFS=$as_save_IFS
3188
3189 fi
3190
3191 test -d ./--version && rmdir ./--version
3192 if test "${ac_cv_path_mkdir+set}" = set; then
3193 MKDIR_P="$ac_cv_path_mkdir -p"
3194 else
3195 # As a last resort, use the slow shell script. Don't cache a
3196 # value for MKDIR_P within a source directory, because that will
3197 # break other packages using the cache if that directory is
3198 # removed, or if the value is a relative name.
3199 MKDIR_P="$ac_install_sh -d"
3200 fi
3201 fi
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3203 $as_echo "$MKDIR_P" >&6; }
3204
3205 for ac_prog in gawk mawk nawk awk
3206 do
3207 # Extract the first word of "$ac_prog", so it can be a program name with args.
3208 set dummy $ac_prog; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_AWK+:} false; then :
3212 $as_echo_n "(cached) " >&6
3213 else
3214 if test -n "$AWK"; then
3215 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3216 else
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH
3219 do
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224 ac_cv_prog_AWK="$ac_prog"
3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 break 2
3227 fi
3228 done
3229 done
3230 IFS=$as_save_IFS
3231
3232 fi
3233 fi
3234 AWK=$ac_cv_prog_AWK
3235 if test -n "$AWK"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3237 $as_echo "$AWK" >&6; }
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 fi
3242
3243
3244 test -n "$AWK" && break
3245 done
3246
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3248 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3249 set x ${MAKE-make}
3250 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3251 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3252 $as_echo_n "(cached) " >&6
3253 else
3254 cat >conftest.make <<\_ACEOF
3255 SHELL = /bin/sh
3256 all:
3257 @echo '@@@%%%=$(MAKE)=@@@%%%'
3258 _ACEOF
3259 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3260 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3261 *@@@%%%=?*=@@@%%%*)
3262 eval ac_cv_prog_make_${ac_make}_set=yes;;
3263 *)
3264 eval ac_cv_prog_make_${ac_make}_set=no;;
3265 esac
3266 rm -f conftest.make
3267 fi
3268 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270 $as_echo "yes" >&6; }
3271 SET_MAKE=
3272 else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 SET_MAKE="MAKE=${MAKE-make}"
3276 fi
3277
3278 rm -rf .tst 2>/dev/null
3279 mkdir .tst 2>/dev/null
3280 if test -d .tst; then
3281 am__leading_dot=.
3282 else
3283 am__leading_dot=_
3284 fi
3285 rmdir .tst 2>/dev/null
3286
3287 # Check whether --enable-silent-rules was given.
3288 if test "${enable_silent_rules+set}" = set; then :
3289 enableval=$enable_silent_rules;
3290 fi
3291
3292 case $enable_silent_rules in # (((
3293 yes) AM_DEFAULT_VERBOSITY=0;;
3294 no) AM_DEFAULT_VERBOSITY=1;;
3295 *) AM_DEFAULT_VERBOSITY=1;;
3296 esac
3297 am_make=${MAKE-make}
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3299 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3300 if ${am_cv_make_support_nested_variables+:} false; then :
3301 $as_echo_n "(cached) " >&6
3302 else
3303 if $as_echo 'TRUE=$(BAR$(V))
3304 BAR0=false
3305 BAR1=true
3306 V=1
3307 am__doit:
3308 @$(TRUE)
3309 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3310 am_cv_make_support_nested_variables=yes
3311 else
3312 am_cv_make_support_nested_variables=no
3313 fi
3314 fi
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3316 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3317 if test $am_cv_make_support_nested_variables = yes; then
3318 AM_V='$(V)'
3319 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3320 else
3321 AM_V=$AM_DEFAULT_VERBOSITY
3322 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3323 fi
3324 AM_BACKSLASH='\'
3325
3326 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3327 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3328 # is not polluted with repeated "-I."
3329 am__isrc=' -I$(srcdir)'
3330 # test to see if srcdir already configured
3331 if test -f $srcdir/config.status; then
3332 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3333 fi
3334 fi
3335
3336 # test whether we have cygpath
3337 if test -z "$CYGPATH_W"; then
3338 if (cygpath --version) >/dev/null 2>/dev/null; then
3339 CYGPATH_W='cygpath -w'
3340 else
3341 CYGPATH_W=echo
3342 fi
3343 fi
3344
3345
3346 # Define the identity of the package.
3347 PACKAGE='ld'
3348 VERSION='2.38.50'
3349
3350
3351 cat >>confdefs.h <<_ACEOF
3352 #define PACKAGE "$PACKAGE"
3353 _ACEOF
3354
3355
3356 cat >>confdefs.h <<_ACEOF
3357 #define VERSION "$VERSION"
3358 _ACEOF
3359
3360 # Some tools Automake needs.
3361
3362 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3363
3364
3365 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3366
3367
3368 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3369
3370
3371 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3372
3373
3374 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3375
3376 # For better backward compatibility. To be removed once Automake 1.9.x
3377 # dies out for good. For more background, see:
3378 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3379 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3380 mkdir_p='$(MKDIR_P)'
3381
3382 # We need awk for the "check" target (and possibly the TAP driver). The
3383 # system "awk" is bad on some platforms.
3384 # Always define AMTAR for backward compatibility. Yes, it's still used
3385 # in the wild :-( We should find a proper way to deprecate it ...
3386 AMTAR='$${TAR-tar}'
3387
3388
3389 # We'll loop over all known methods to create a tar archive until one works.
3390 _am_tools='gnutar pax cpio none'
3391
3392 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3393
3394
3395
3396
3397
3398
3399 # POSIX will say in a future version that running "rm -f" with no argument
3400 # is OK; and we want to be able to make that assumption in our Makefile
3401 # recipes. So use an aggressive probe to check that the usage we want is
3402 # actually supported "in the wild" to an acceptable degree.
3403 # See automake bug#10828.
3404 # To make any issue more visible, cause the running configure to be aborted
3405 # by default if the 'rm' program in use doesn't match our expectations; the
3406 # user can still override this though.
3407 if rm -f && rm -fr && rm -rf; then : OK; else
3408 cat >&2 <<'END'
3409 Oops!
3410
3411 Your 'rm' program seems unable to run without file operands specified
3412 on the command line, even when the '-f' option is present. This is contrary
3413 to the behaviour of most rm programs out there, and not conforming with
3414 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3415
3416 Please tell bug-automake@gnu.org about your system, including the value
3417 of your $PATH and any error possibly output before this message. This
3418 can help us improve future automake versions.
3419
3420 END
3421 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3422 echo 'Configuration will proceed anyway, since you have set the' >&2
3423 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3424 echo >&2
3425 else
3426 cat >&2 <<'END'
3427 Aborting the configuration process, to ensure you take notice of the issue.
3428
3429 You can download and install GNU coreutils to get an 'rm' implementation
3430 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3431
3432 If you want to complete the configuration process using your problematic
3433 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3434 to "yes", and re-run configure.
3435
3436 END
3437 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3438 fi
3439 fi
3440
3441 # Check whether --enable-silent-rules was given.
3442 if test "${enable_silent_rules+set}" = set; then :
3443 enableval=$enable_silent_rules;
3444 fi
3445
3446 case $enable_silent_rules in # (((
3447 yes) AM_DEFAULT_VERBOSITY=0;;
3448 no) AM_DEFAULT_VERBOSITY=1;;
3449 *) AM_DEFAULT_VERBOSITY=0;;
3450 esac
3451 am_make=${MAKE-make}
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3453 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3454 if ${am_cv_make_support_nested_variables+:} false; then :
3455 $as_echo_n "(cached) " >&6
3456 else
3457 if $as_echo 'TRUE=$(BAR$(V))
3458 BAR0=false
3459 BAR1=true
3460 V=1
3461 am__doit:
3462 @$(TRUE)
3463 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3464 am_cv_make_support_nested_variables=yes
3465 else
3466 am_cv_make_support_nested_variables=no
3467 fi
3468 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3470 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3471 if test $am_cv_make_support_nested_variables = yes; then
3472 AM_V='$(V)'
3473 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3474 else
3475 AM_V=$AM_DEFAULT_VERBOSITY
3476 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3477 fi
3478 AM_BACKSLASH='\'
3479
3480
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3482 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3483 # Check whether --enable-maintainer-mode was given.
3484 if test "${enable_maintainer_mode+set}" = set; then :
3485 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3486 else
3487 USE_MAINTAINER_MODE=no
3488 fi
3489
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3491 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3492 if test $USE_MAINTAINER_MODE = yes; then
3493 MAINTAINER_MODE_TRUE=
3494 MAINTAINER_MODE_FALSE='#'
3495 else
3496 MAINTAINER_MODE_TRUE='#'
3497 MAINTAINER_MODE_FALSE=
3498 fi
3499
3500 MAINT=$MAINTAINER_MODE_TRUE
3501
3502
3503
3504 ac_ext=c
3505 ac_cpp='$CPP $CPPFLAGS'
3506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509 if test -n "$ac_tool_prefix"; then
3510 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3511 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513 $as_echo_n "checking for $ac_word... " >&6; }
3514 if ${ac_cv_prog_CC+:} false; then :
3515 $as_echo_n "(cached) " >&6
3516 else
3517 if test -n "$CC"; then
3518 ac_cv_prog_CC="$CC" # Let the user override the test.
3519 else
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3522 do
3523 IFS=$as_save_IFS
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 break 2
3530 fi
3531 done
3532 done
3533 IFS=$as_save_IFS
3534
3535 fi
3536 fi
3537 CC=$ac_cv_prog_CC
3538 if test -n "$CC"; then
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3540 $as_echo "$CC" >&6; }
3541 else
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3544 fi
3545
3546
3547 fi
3548 if test -z "$ac_cv_prog_CC"; then
3549 ac_ct_CC=$CC
3550 # Extract the first word of "gcc", so it can be a program name with args.
3551 set dummy gcc; ac_word=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; }
3554 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3555 $as_echo_n "(cached) " >&6
3556 else
3557 if test -n "$ac_ct_CC"; then
3558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3559 else
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3562 do
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567 ac_cv_prog_ac_ct_CC="gcc"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 break 2
3570 fi
3571 done
3572 done
3573 IFS=$as_save_IFS
3574
3575 fi
3576 fi
3577 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3578 if test -n "$ac_ct_CC"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3580 $as_echo "$ac_ct_CC" >&6; }
3581 else
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3584 fi
3585
3586 if test "x$ac_ct_CC" = x; then
3587 CC=""
3588 else
3589 case $cross_compiling:$ac_tool_warned in
3590 yes:)
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3593 ac_tool_warned=yes ;;
3594 esac
3595 CC=$ac_ct_CC
3596 fi
3597 else
3598 CC="$ac_cv_prog_CC"
3599 fi
3600
3601 if test -z "$CC"; then
3602 if test -n "$ac_tool_prefix"; then
3603 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3604 set dummy ${ac_tool_prefix}cc; ac_word=$2
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 $as_echo_n "checking for $ac_word... " >&6; }
3607 if ${ac_cv_prog_CC+:} false; then :
3608 $as_echo_n "(cached) " >&6
3609 else
3610 if test -n "$CC"; then
3611 ac_cv_prog_CC="$CC" # Let the user override the test.
3612 else
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3615 do
3616 IFS=$as_save_IFS
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620 ac_cv_prog_CC="${ac_tool_prefix}cc"
3621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 break 2
3623 fi
3624 done
3625 done
3626 IFS=$as_save_IFS
3627
3628 fi
3629 fi
3630 CC=$ac_cv_prog_CC
3631 if test -n "$CC"; then
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3633 $as_echo "$CC" >&6; }
3634 else
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3637 fi
3638
3639
3640 fi
3641 fi
3642 if test -z "$CC"; then
3643 # Extract the first word of "cc", so it can be a program name with args.
3644 set dummy cc; ac_word=$2
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646 $as_echo_n "checking for $ac_word... " >&6; }
3647 if ${ac_cv_prog_CC+:} false; then :
3648 $as_echo_n "(cached) " >&6
3649 else
3650 if test -n "$CC"; then
3651 ac_cv_prog_CC="$CC" # Let the user override the test.
3652 else
3653 ac_prog_rejected=no
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3656 do
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3662 ac_prog_rejected=yes
3663 continue
3664 fi
3665 ac_cv_prog_CC="cc"
3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 break 2
3668 fi
3669 done
3670 done
3671 IFS=$as_save_IFS
3672
3673 if test $ac_prog_rejected = yes; then
3674 # We found a bogon in the path, so make sure we never use it.
3675 set dummy $ac_cv_prog_CC
3676 shift
3677 if test $# != 0; then
3678 # We chose a different compiler from the bogus one.
3679 # However, it has the same basename, so the bogon will be chosen
3680 # first if we set CC to just the basename; use the full file name.
3681 shift
3682 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3683 fi
3684 fi
3685 fi
3686 fi
3687 CC=$ac_cv_prog_CC
3688 if test -n "$CC"; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3690 $as_echo "$CC" >&6; }
3691 else
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 $as_echo "no" >&6; }
3694 fi
3695
3696
3697 fi
3698 if test -z "$CC"; then
3699 if test -n "$ac_tool_prefix"; then
3700 for ac_prog in cl.exe
3701 do
3702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3703 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3705 $as_echo_n "checking for $ac_word... " >&6; }
3706 if ${ac_cv_prog_CC+:} false; then :
3707 $as_echo_n "(cached) " >&6
3708 else
3709 if test -n "$CC"; then
3710 ac_cv_prog_CC="$CC" # Let the user override the test.
3711 else
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 for as_dir in $PATH
3714 do
3715 IFS=$as_save_IFS
3716 test -z "$as_dir" && as_dir=.
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3719 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 break 2
3722 fi
3723 done
3724 done
3725 IFS=$as_save_IFS
3726
3727 fi
3728 fi
3729 CC=$ac_cv_prog_CC
3730 if test -n "$CC"; then
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3732 $as_echo "$CC" >&6; }
3733 else
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735 $as_echo "no" >&6; }
3736 fi
3737
3738
3739 test -n "$CC" && break
3740 done
3741 fi
3742 if test -z "$CC"; then
3743 ac_ct_CC=$CC
3744 for ac_prog in cl.exe
3745 do
3746 # Extract the first word of "$ac_prog", so it can be a program name with args.
3747 set dummy $ac_prog; ac_word=$2
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3749 $as_echo_n "checking for $ac_word... " >&6; }
3750 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3751 $as_echo_n "(cached) " >&6
3752 else
3753 if test -n "$ac_ct_CC"; then
3754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3755 else
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 for as_dir in $PATH
3758 do
3759 IFS=$as_save_IFS
3760 test -z "$as_dir" && as_dir=.
3761 for ac_exec_ext in '' $ac_executable_extensions; do
3762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3763 ac_cv_prog_ac_ct_CC="$ac_prog"
3764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 break 2
3766 fi
3767 done
3768 done
3769 IFS=$as_save_IFS
3770
3771 fi
3772 fi
3773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3774 if test -n "$ac_ct_CC"; then
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3776 $as_echo "$ac_ct_CC" >&6; }
3777 else
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 $as_echo "no" >&6; }
3780 fi
3781
3782
3783 test -n "$ac_ct_CC" && break
3784 done
3785
3786 if test "x$ac_ct_CC" = x; then
3787 CC=""
3788 else
3789 case $cross_compiling:$ac_tool_warned in
3790 yes:)
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3793 ac_tool_warned=yes ;;
3794 esac
3795 CC=$ac_ct_CC
3796 fi
3797 fi
3798
3799 fi
3800
3801
3802 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3804 as_fn_error $? "no acceptable C compiler found in \$PATH
3805 See \`config.log' for more details" "$LINENO" 5; }
3806
3807 # Provide some information about the compiler.
3808 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3809 set X $ac_compile
3810 ac_compiler=$2
3811 for ac_option in --version -v -V -qversion; do
3812 { { ac_try="$ac_compiler $ac_option >&5"
3813 case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3816 esac
3817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818 $as_echo "$ac_try_echo"; } >&5
3819 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3820 ac_status=$?
3821 if test -s conftest.err; then
3822 sed '10a\
3823 ... rest of stderr output deleted ...
3824 10q' conftest.err >conftest.er1
3825 cat conftest.er1 >&5
3826 fi
3827 rm -f conftest.er1 conftest.err
3828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829 test $ac_status = 0; }
3830 done
3831
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3834
3835 int
3836 main ()
3837 {
3838
3839 ;
3840 return 0;
3841 }
3842 _ACEOF
3843 ac_clean_files_save=$ac_clean_files
3844 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3845 # Try to create an executable without -o first, disregard a.out.
3846 # It will help us diagnose broken compilers, and finding out an intuition
3847 # of exeext.
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3849 $as_echo_n "checking whether the C compiler works... " >&6; }
3850 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3851
3852 # The possible output files:
3853 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3854
3855 ac_rmfiles=
3856 for ac_file in $ac_files
3857 do
3858 case $ac_file in
3859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3860 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3861 esac
3862 done
3863 rm -f $ac_rmfiles
3864
3865 if { { ac_try="$ac_link_default"
3866 case "(($ac_try" in
3867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3869 esac
3870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3871 $as_echo "$ac_try_echo"; } >&5
3872 (eval "$ac_link_default") 2>&5
3873 ac_status=$?
3874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875 test $ac_status = 0; }; then :
3876 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3877 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3878 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3879 # so that the user can short-circuit this test for compilers unknown to
3880 # Autoconf.
3881 for ac_file in $ac_files ''
3882 do
3883 test -f "$ac_file" || continue
3884 case $ac_file in
3885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3886 ;;
3887 [ab].out )
3888 # We found the default executable, but exeext='' is most
3889 # certainly right.
3890 break;;
3891 *.* )
3892 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3893 then :; else
3894 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3895 fi
3896 # We set ac_cv_exeext here because the later test for it is not
3897 # safe: cross compilers may not add the suffix if given an `-o'
3898 # argument, so we may need to know it at that point already.
3899 # Even if this section looks crufty: it has the advantage of
3900 # actually working.
3901 break;;
3902 * )
3903 break;;
3904 esac
3905 done
3906 test "$ac_cv_exeext" = no && ac_cv_exeext=
3907
3908 else
3909 ac_file=''
3910 fi
3911 if test -z "$ac_file"; then :
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 $as_echo "no" >&6; }
3914 $as_echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3916
3917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3919 as_fn_error 77 "C compiler cannot create executables
3920 See \`config.log' for more details" "$LINENO" 5; }
3921 else
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3923 $as_echo "yes" >&6; }
3924 fi
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3926 $as_echo_n "checking for C compiler default output file name... " >&6; }
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3928 $as_echo "$ac_file" >&6; }
3929 ac_exeext=$ac_cv_exeext
3930
3931 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3932 ac_clean_files=$ac_clean_files_save
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3934 $as_echo_n "checking for suffix of executables... " >&6; }
3935 if { { ac_try="$ac_link"
3936 case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939 esac
3940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3941 $as_echo "$ac_try_echo"; } >&5
3942 (eval "$ac_link") 2>&5
3943 ac_status=$?
3944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3945 test $ac_status = 0; }; then :
3946 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3947 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3948 # work properly (i.e., refer to `conftest.exe'), while it won't with
3949 # `rm'.
3950 for ac_file in conftest.exe conftest conftest.*; do
3951 test -f "$ac_file" || continue
3952 case $ac_file in
3953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3954 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3955 break;;
3956 * ) break;;
3957 esac
3958 done
3959 else
3960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3962 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3963 See \`config.log' for more details" "$LINENO" 5; }
3964 fi
3965 rm -f conftest conftest$ac_cv_exeext
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3967 $as_echo "$ac_cv_exeext" >&6; }
3968
3969 rm -f conftest.$ac_ext
3970 EXEEXT=$ac_cv_exeext
3971 ac_exeext=$EXEEXT
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3974 #include <stdio.h>
3975 int
3976 main ()
3977 {
3978 FILE *f = fopen ("conftest.out", "w");
3979 return ferror (f) || fclose (f) != 0;
3980
3981 ;
3982 return 0;
3983 }
3984 _ACEOF
3985 ac_clean_files="$ac_clean_files conftest.out"
3986 # Check that the compiler produces executables we can run. If not, either
3987 # the compiler is broken, or we cross compile.
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3989 $as_echo_n "checking whether we are cross compiling... " >&6; }
3990 if test "$cross_compiling" != yes; then
3991 { { ac_try="$ac_link"
3992 case "(($ac_try" in
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3995 esac
3996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3997 $as_echo "$ac_try_echo"; } >&5
3998 (eval "$ac_link") 2>&5
3999 ac_status=$?
4000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4001 test $ac_status = 0; }
4002 if { ac_try='./conftest$ac_cv_exeext'
4003 { { case "(($ac_try" in
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4006 esac
4007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008 $as_echo "$ac_try_echo"; } >&5
4009 (eval "$ac_try") 2>&5
4010 ac_status=$?
4011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012 test $ac_status = 0; }; }; then
4013 cross_compiling=no
4014 else
4015 if test "$cross_compiling" = maybe; then
4016 cross_compiling=yes
4017 else
4018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4020 as_fn_error $? "cannot run C compiled programs.
4021 If you meant to cross compile, use \`--host'.
4022 See \`config.log' for more details" "$LINENO" 5; }
4023 fi
4024 fi
4025 fi
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4027 $as_echo "$cross_compiling" >&6; }
4028
4029 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4030 ac_clean_files=$ac_clean_files_save
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4032 $as_echo_n "checking for suffix of object files... " >&6; }
4033 if ${ac_cv_objext+:} false; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038
4039 int
4040 main ()
4041 {
4042
4043 ;
4044 return 0;
4045 }
4046 _ACEOF
4047 rm -f conftest.o conftest.obj
4048 if { { ac_try="$ac_compile"
4049 case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052 esac
4053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054 $as_echo "$ac_try_echo"; } >&5
4055 (eval "$ac_compile") 2>&5
4056 ac_status=$?
4057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }; then :
4059 for ac_file in conftest.o conftest.obj conftest.*; do
4060 test -f "$ac_file" || continue;
4061 case $ac_file in
4062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4063 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4064 break;;
4065 esac
4066 done
4067 else
4068 $as_echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4070
4071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4073 as_fn_error $? "cannot compute suffix of object files: cannot compile
4074 See \`config.log' for more details" "$LINENO" 5; }
4075 fi
4076 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4077 fi
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4079 $as_echo "$ac_cv_objext" >&6; }
4080 OBJEXT=$ac_cv_objext
4081 ac_objext=$OBJEXT
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4083 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4084 if ${ac_cv_c_compiler_gnu+:} false; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089
4090 int
4091 main ()
4092 {
4093 #ifndef __GNUC__
4094 choke me
4095 #endif
4096
4097 ;
4098 return 0;
4099 }
4100 _ACEOF
4101 if ac_fn_c_try_compile "$LINENO"; then :
4102 ac_compiler_gnu=yes
4103 else
4104 ac_compiler_gnu=no
4105 fi
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4108
4109 fi
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4111 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4112 if test $ac_compiler_gnu = yes; then
4113 GCC=yes
4114 else
4115 GCC=
4116 fi
4117 ac_test_CFLAGS=${CFLAGS+set}
4118 ac_save_CFLAGS=$CFLAGS
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4120 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4121 if ${ac_cv_prog_cc_g+:} false; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 ac_save_c_werror_flag=$ac_c_werror_flag
4125 ac_c_werror_flag=yes
4126 ac_cv_prog_cc_g=no
4127 CFLAGS="-g"
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4130
4131 int
4132 main ()
4133 {
4134
4135 ;
4136 return 0;
4137 }
4138 _ACEOF
4139 if ac_fn_c_try_compile "$LINENO"; then :
4140 ac_cv_prog_cc_g=yes
4141 else
4142 CFLAGS=""
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4145
4146 int
4147 main ()
4148 {
4149
4150 ;
4151 return 0;
4152 }
4153 _ACEOF
4154 if ac_fn_c_try_compile "$LINENO"; then :
4155
4156 else
4157 ac_c_werror_flag=$ac_save_c_werror_flag
4158 CFLAGS="-g"
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4161
4162 int
4163 main ()
4164 {
4165
4166 ;
4167 return 0;
4168 }
4169 _ACEOF
4170 if ac_fn_c_try_compile "$LINENO"; then :
4171 ac_cv_prog_cc_g=yes
4172 fi
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 fi
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 fi
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 ac_c_werror_flag=$ac_save_c_werror_flag
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4181 $as_echo "$ac_cv_prog_cc_g" >&6; }
4182 if test "$ac_test_CFLAGS" = set; then
4183 CFLAGS=$ac_save_CFLAGS
4184 elif test $ac_cv_prog_cc_g = yes; then
4185 if test "$GCC" = yes; then
4186 CFLAGS="-g -O2"
4187 else
4188 CFLAGS="-g"
4189 fi
4190 else
4191 if test "$GCC" = yes; then
4192 CFLAGS="-O2"
4193 else
4194 CFLAGS=
4195 fi
4196 fi
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4198 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4199 if ${ac_cv_prog_cc_c89+:} false; then :
4200 $as_echo_n "(cached) " >&6
4201 else
4202 ac_cv_prog_cc_c89=no
4203 ac_save_CC=$CC
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4206 #include <stdarg.h>
4207 #include <stdio.h>
4208 struct stat;
4209 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4210 struct buf { int x; };
4211 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4212 static char *e (p, i)
4213 char **p;
4214 int i;
4215 {
4216 return p[i];
4217 }
4218 static char *f (char * (*g) (char **, int), char **p, ...)
4219 {
4220 char *s;
4221 va_list v;
4222 va_start (v,p);
4223 s = g (p, va_arg (v,int));
4224 va_end (v);
4225 return s;
4226 }
4227
4228 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4229 function prototypes and stuff, but not '\xHH' hex character constants.
4230 These don't provoke an error unfortunately, instead are silently treated
4231 as 'x'. The following induces an error, until -std is added to get
4232 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4233 array size at least. It's necessary to write '\x00'==0 to get something
4234 that's true only with -std. */
4235 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4236
4237 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4238 inside strings and character constants. */
4239 #define FOO(x) 'x'
4240 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4241
4242 int test (int i, double x);
4243 struct s1 {int (*f) (int a);};
4244 struct s2 {int (*f) (double a);};
4245 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4246 int argc;
4247 char **argv;
4248 int
4249 main ()
4250 {
4251 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4252 ;
4253 return 0;
4254 }
4255 _ACEOF
4256 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4257 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4258 do
4259 CC="$ac_save_CC $ac_arg"
4260 if ac_fn_c_try_compile "$LINENO"; then :
4261 ac_cv_prog_cc_c89=$ac_arg
4262 fi
4263 rm -f core conftest.err conftest.$ac_objext
4264 test "x$ac_cv_prog_cc_c89" != "xno" && break
4265 done
4266 rm -f conftest.$ac_ext
4267 CC=$ac_save_CC
4268
4269 fi
4270 # AC_CACHE_VAL
4271 case "x$ac_cv_prog_cc_c89" in
4272 x)
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4274 $as_echo "none needed" >&6; } ;;
4275 xno)
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4277 $as_echo "unsupported" >&6; } ;;
4278 *)
4279 CC="$CC $ac_cv_prog_cc_c89"
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4281 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4282 esac
4283 if test "x$ac_cv_prog_cc_c89" != xno; then :
4284
4285 fi
4286
4287 ac_ext=c
4288 ac_cpp='$CPP $CPPFLAGS'
4289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4292
4293 ac_ext=c
4294 ac_cpp='$CPP $CPPFLAGS'
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4299 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4300 if ${am_cv_prog_cc_c_o+:} false; then :
4301 $as_echo_n "(cached) " >&6
4302 else
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4305
4306 int
4307 main ()
4308 {
4309
4310 ;
4311 return 0;
4312 }
4313 _ACEOF
4314 # Make sure it works both with $CC and with simple cc.
4315 # Following AC_PROG_CC_C_O, we do the test twice because some
4316 # compilers refuse to overwrite an existing .o file with -o,
4317 # though they will create one.
4318 am_cv_prog_cc_c_o=yes
4319 for am_i in 1 2; do
4320 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4321 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } \
4325 && test -f conftest2.$ac_objext; then
4326 : OK
4327 else
4328 am_cv_prog_cc_c_o=no
4329 break
4330 fi
4331 done
4332 rm -f core conftest*
4333 unset am_i
4334 fi
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4336 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4337 if test "$am_cv_prog_cc_c_o" != yes; then
4338 # Losing compiler, so override with the script.
4339 # FIXME: It is wrong to rewrite CC.
4340 # But if we don't then we get into trouble of one sort or another.
4341 # A longer-term fix would be to have automake use am__CC in this case,
4342 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4343 CC="$am_aux_dir/compile $CC"
4344 fi
4345 ac_ext=c
4346 ac_cpp='$CPP $CPPFLAGS'
4347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350
4351 DEPDIR="${am__leading_dot}deps"
4352
4353 ac_config_commands="$ac_config_commands depfiles"
4354
4355
4356 am_make=${MAKE-make}
4357 cat > confinc << 'END'
4358 am__doit:
4359 @echo this is the am__doit target
4360 .PHONY: am__doit
4361 END
4362 # If we don't find an include directive, just comment out the code.
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4364 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4365 am__include="#"
4366 am__quote=
4367 _am_result=none
4368 # First try GNU make style include.
4369 echo "include confinc" > confmf
4370 # Ignore all kinds of additional output from 'make'.
4371 case `$am_make -s -f confmf 2> /dev/null` in #(
4372 *the\ am__doit\ target*)
4373 am__include=include
4374 am__quote=
4375 _am_result=GNU
4376 ;;
4377 esac
4378 # Now try BSD make style include.
4379 if test "$am__include" = "#"; then
4380 echo '.include "confinc"' > confmf
4381 case `$am_make -s -f confmf 2> /dev/null` in #(
4382 *the\ am__doit\ target*)
4383 am__include=.include
4384 am__quote="\""
4385 _am_result=BSD
4386 ;;
4387 esac
4388 fi
4389
4390
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4392 $as_echo "$_am_result" >&6; }
4393 rm -f confinc confmf
4394
4395 # Check whether --enable-dependency-tracking was given.
4396 if test "${enable_dependency_tracking+set}" = set; then :
4397 enableval=$enable_dependency_tracking;
4398 fi
4399
4400 if test "x$enable_dependency_tracking" != xno; then
4401 am_depcomp="$ac_aux_dir/depcomp"
4402 AMDEPBACKSLASH='\'
4403 am__nodep='_no'
4404 fi
4405 if test "x$enable_dependency_tracking" != xno; then
4406 AMDEP_TRUE=
4407 AMDEP_FALSE='#'
4408 else
4409 AMDEP_TRUE='#'
4410 AMDEP_FALSE=
4411 fi
4412
4413
4414
4415 depcc="$CC" am_compiler_list=
4416
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4418 $as_echo_n "checking dependency style of $depcc... " >&6; }
4419 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4423 # We make a subdir and do the tests there. Otherwise we can end up
4424 # making bogus files that we don't know about and never remove. For
4425 # instance it was reported that on HP-UX the gcc test will end up
4426 # making a dummy file named 'D' -- because '-MD' means "put the output
4427 # in D".
4428 rm -rf conftest.dir
4429 mkdir conftest.dir
4430 # Copy depcomp to subdir because otherwise we won't find it if we're
4431 # using a relative directory.
4432 cp "$am_depcomp" conftest.dir
4433 cd conftest.dir
4434 # We will build objects and dependencies in a subdirectory because
4435 # it helps to detect inapplicable dependency modes. For instance
4436 # both Tru64's cc and ICC support -MD to output dependencies as a
4437 # side effect of compilation, but ICC will put the dependencies in
4438 # the current directory while Tru64 will put them in the object
4439 # directory.
4440 mkdir sub
4441
4442 am_cv_CC_dependencies_compiler_type=none
4443 if test "$am_compiler_list" = ""; then
4444 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4445 fi
4446 am__universal=false
4447 case " $depcc " in #(
4448 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4449 esac
4450
4451 for depmode in $am_compiler_list; do
4452 # Setup a source with many dependencies, because some compilers
4453 # like to wrap large dependency lists on column 80 (with \), and
4454 # we should not choose a depcomp mode which is confused by this.
4455 #
4456 # We need to recreate these files for each test, as the compiler may
4457 # overwrite some of them when testing with obscure command lines.
4458 # This happens at least with the AIX C compiler.
4459 : > sub/conftest.c
4460 for i in 1 2 3 4 5 6; do
4461 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4462 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4463 # Solaris 10 /bin/sh.
4464 echo '/* dummy */' > sub/conftst$i.h
4465 done
4466 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4467
4468 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4469 # mode. It turns out that the SunPro C++ compiler does not properly
4470 # handle '-M -o', and we need to detect this. Also, some Intel
4471 # versions had trouble with output in subdirs.
4472 am__obj=sub/conftest.${OBJEXT-o}
4473 am__minus_obj="-o $am__obj"
4474 case $depmode in
4475 gcc)
4476 # This depmode causes a compiler race in universal mode.
4477 test "$am__universal" = false || continue
4478 ;;
4479 nosideeffect)
4480 # After this tag, mechanisms are not by side-effect, so they'll
4481 # only be used when explicitly requested.
4482 if test "x$enable_dependency_tracking" = xyes; then
4483 continue
4484 else
4485 break
4486 fi
4487 ;;
4488 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4489 # This compiler won't grok '-c -o', but also, the minuso test has
4490 # not run yet. These depmodes are late enough in the game, and
4491 # so weak that their functioning should not be impacted.
4492 am__obj=conftest.${OBJEXT-o}
4493 am__minus_obj=
4494 ;;
4495 none) break ;;
4496 esac
4497 if depmode=$depmode \
4498 source=sub/conftest.c object=$am__obj \
4499 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4500 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4501 >/dev/null 2>conftest.err &&
4502 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4503 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4504 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4505 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4506 # icc doesn't choke on unknown options, it will just issue warnings
4507 # or remarks (even with -Werror). So we grep stderr for any message
4508 # that says an option was ignored or not supported.
4509 # When given -MP, icc 7.0 and 7.1 complain thusly:
4510 # icc: Command line warning: ignoring option '-M'; no argument required
4511 # The diagnosis changed in icc 8.0:
4512 # icc: Command line remark: option '-MP' not supported
4513 if (grep 'ignoring option' conftest.err ||
4514 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4515 am_cv_CC_dependencies_compiler_type=$depmode
4516 break
4517 fi
4518 fi
4519 done
4520
4521 cd ..
4522 rm -rf conftest.dir
4523 else
4524 am_cv_CC_dependencies_compiler_type=none
4525 fi
4526
4527 fi
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4529 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4530 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4531
4532 if
4533 test "x$enable_dependency_tracking" != xno \
4534 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4535 am__fastdepCC_TRUE=
4536 am__fastdepCC_FALSE='#'
4537 else
4538 am__fastdepCC_TRUE='#'
4539 am__fastdepCC_FALSE=
4540 fi
4541
4542
4543 ac_ext=cpp
4544 ac_cpp='$CXXCPP $CPPFLAGS'
4545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4548 if test -z "$CXX"; then
4549 if test -n "$CCC"; then
4550 CXX=$CCC
4551 else
4552 if test -n "$ac_tool_prefix"; then
4553 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4554 do
4555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4556 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if ${ac_cv_prog_CXX+:} false; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 if test -n "$CXX"; then
4563 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4567 do
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4575 fi
4576 done
4577 done
4578 IFS=$as_save_IFS
4579
4580 fi
4581 fi
4582 CXX=$ac_cv_prog_CXX
4583 if test -n "$CXX"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4585 $as_echo "$CXX" >&6; }
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4589 fi
4590
4591
4592 test -n "$CXX" && break
4593 done
4594 fi
4595 if test -z "$CXX"; then
4596 ac_ct_CXX=$CXX
4597 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4598 do
4599 # Extract the first word of "$ac_prog", so it can be a program name with args.
4600 set dummy $ac_prog; ac_word=$2
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602 $as_echo_n "checking for $ac_word... " >&6; }
4603 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4604 $as_echo_n "(cached) " >&6
4605 else
4606 if test -n "$ac_ct_CXX"; then
4607 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4608 else
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4611 do
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4616 ac_cv_prog_ac_ct_CXX="$ac_prog"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 break 2
4619 fi
4620 done
4621 done
4622 IFS=$as_save_IFS
4623
4624 fi
4625 fi
4626 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4627 if test -n "$ac_ct_CXX"; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4629 $as_echo "$ac_ct_CXX" >&6; }
4630 else
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4633 fi
4634
4635
4636 test -n "$ac_ct_CXX" && break
4637 done
4638
4639 if test "x$ac_ct_CXX" = x; then
4640 CXX="g++"
4641 else
4642 case $cross_compiling:$ac_tool_warned in
4643 yes:)
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4646 ac_tool_warned=yes ;;
4647 esac
4648 CXX=$ac_ct_CXX
4649 fi
4650 fi
4651
4652 fi
4653 fi
4654 # Provide some information about the compiler.
4655 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4656 set X $ac_compile
4657 ac_compiler=$2
4658 for ac_option in --version -v -V -qversion; do
4659 { { ac_try="$ac_compiler $ac_option >&5"
4660 case "(($ac_try" in
4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4663 esac
4664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4665 $as_echo "$ac_try_echo"; } >&5
4666 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4667 ac_status=$?
4668 if test -s conftest.err; then
4669 sed '10a\
4670 ... rest of stderr output deleted ...
4671 10q' conftest.err >conftest.er1
4672 cat conftest.er1 >&5
4673 fi
4674 rm -f conftest.er1 conftest.err
4675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4676 test $ac_status = 0; }
4677 done
4678
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4680 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4681 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4686
4687 int
4688 main ()
4689 {
4690 #ifndef __GNUC__
4691 choke me
4692 #endif
4693
4694 ;
4695 return 0;
4696 }
4697 _ACEOF
4698 if ac_fn_cxx_try_compile "$LINENO"; then :
4699 ac_compiler_gnu=yes
4700 else
4701 ac_compiler_gnu=no
4702 fi
4703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4705
4706 fi
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4708 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4709 if test $ac_compiler_gnu = yes; then
4710 GXX=yes
4711 else
4712 GXX=
4713 fi
4714 ac_test_CXXFLAGS=${CXXFLAGS+set}
4715 ac_save_CXXFLAGS=$CXXFLAGS
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4717 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4718 if ${ac_cv_prog_cxx_g+:} false; then :
4719 $as_echo_n "(cached) " >&6
4720 else
4721 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4722 ac_cxx_werror_flag=yes
4723 ac_cv_prog_cxx_g=no
4724 CXXFLAGS="-g"
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4727
4728 int
4729 main ()
4730 {
4731
4732 ;
4733 return 0;
4734 }
4735 _ACEOF
4736 if ac_fn_cxx_try_compile "$LINENO"; then :
4737 ac_cv_prog_cxx_g=yes
4738 else
4739 CXXFLAGS=""
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4742
4743 int
4744 main ()
4745 {
4746
4747 ;
4748 return 0;
4749 }
4750 _ACEOF
4751 if ac_fn_cxx_try_compile "$LINENO"; then :
4752
4753 else
4754 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4755 CXXFLAGS="-g"
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4758
4759 int
4760 main ()
4761 {
4762
4763 ;
4764 return 0;
4765 }
4766 _ACEOF
4767 if ac_fn_cxx_try_compile "$LINENO"; then :
4768 ac_cv_prog_cxx_g=yes
4769 fi
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 fi
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773 fi
4774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4776 fi
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4778 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4779 if test "$ac_test_CXXFLAGS" = set; then
4780 CXXFLAGS=$ac_save_CXXFLAGS
4781 elif test $ac_cv_prog_cxx_g = yes; then
4782 if test "$GXX" = yes; then
4783 CXXFLAGS="-g -O2"
4784 else
4785 CXXFLAGS="-g"
4786 fi
4787 else
4788 if test "$GXX" = yes; then
4789 CXXFLAGS="-O2"
4790 else
4791 CXXFLAGS=
4792 fi
4793 fi
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 depcc="$CXX" am_compiler_list=
4801
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4803 $as_echo_n "checking dependency style of $depcc... " >&6; }
4804 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4808 # We make a subdir and do the tests there. Otherwise we can end up
4809 # making bogus files that we don't know about and never remove. For
4810 # instance it was reported that on HP-UX the gcc test will end up
4811 # making a dummy file named 'D' -- because '-MD' means "put the output
4812 # in D".
4813 rm -rf conftest.dir
4814 mkdir conftest.dir
4815 # Copy depcomp to subdir because otherwise we won't find it if we're
4816 # using a relative directory.
4817 cp "$am_depcomp" conftest.dir
4818 cd conftest.dir
4819 # We will build objects and dependencies in a subdirectory because
4820 # it helps to detect inapplicable dependency modes. For instance
4821 # both Tru64's cc and ICC support -MD to output dependencies as a
4822 # side effect of compilation, but ICC will put the dependencies in
4823 # the current directory while Tru64 will put them in the object
4824 # directory.
4825 mkdir sub
4826
4827 am_cv_CXX_dependencies_compiler_type=none
4828 if test "$am_compiler_list" = ""; then
4829 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4830 fi
4831 am__universal=false
4832 case " $depcc " in #(
4833 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4834 esac
4835
4836 for depmode in $am_compiler_list; do
4837 # Setup a source with many dependencies, because some compilers
4838 # like to wrap large dependency lists on column 80 (with \), and
4839 # we should not choose a depcomp mode which is confused by this.
4840 #
4841 # We need to recreate these files for each test, as the compiler may
4842 # overwrite some of them when testing with obscure command lines.
4843 # This happens at least with the AIX C compiler.
4844 : > sub/conftest.c
4845 for i in 1 2 3 4 5 6; do
4846 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4847 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4848 # Solaris 10 /bin/sh.
4849 echo '/* dummy */' > sub/conftst$i.h
4850 done
4851 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4852
4853 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4854 # mode. It turns out that the SunPro C++ compiler does not properly
4855 # handle '-M -o', and we need to detect this. Also, some Intel
4856 # versions had trouble with output in subdirs.
4857 am__obj=sub/conftest.${OBJEXT-o}
4858 am__minus_obj="-o $am__obj"
4859 case $depmode in
4860 gcc)
4861 # This depmode causes a compiler race in universal mode.
4862 test "$am__universal" = false || continue
4863 ;;
4864 nosideeffect)
4865 # After this tag, mechanisms are not by side-effect, so they'll
4866 # only be used when explicitly requested.
4867 if test "x$enable_dependency_tracking" = xyes; then
4868 continue
4869 else
4870 break
4871 fi
4872 ;;
4873 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4874 # This compiler won't grok '-c -o', but also, the minuso test has
4875 # not run yet. These depmodes are late enough in the game, and
4876 # so weak that their functioning should not be impacted.
4877 am__obj=conftest.${OBJEXT-o}
4878 am__minus_obj=
4879 ;;
4880 none) break ;;
4881 esac
4882 if depmode=$depmode \
4883 source=sub/conftest.c object=$am__obj \
4884 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4885 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4886 >/dev/null 2>conftest.err &&
4887 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4888 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4889 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4890 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4891 # icc doesn't choke on unknown options, it will just issue warnings
4892 # or remarks (even with -Werror). So we grep stderr for any message
4893 # that says an option was ignored or not supported.
4894 # When given -MP, icc 7.0 and 7.1 complain thusly:
4895 # icc: Command line warning: ignoring option '-M'; no argument required
4896 # The diagnosis changed in icc 8.0:
4897 # icc: Command line remark: option '-MP' not supported
4898 if (grep 'ignoring option' conftest.err ||
4899 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4900 am_cv_CXX_dependencies_compiler_type=$depmode
4901 break
4902 fi
4903 fi
4904 done
4905
4906 cd ..
4907 rm -rf conftest.dir
4908 else
4909 am_cv_CXX_dependencies_compiler_type=none
4910 fi
4911
4912 fi
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4914 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4915 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4916
4917 if
4918 test "x$enable_dependency_tracking" != xno \
4919 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4920 am__fastdepCXX_TRUE=
4921 am__fastdepCXX_FALSE='#'
4922 else
4923 am__fastdepCXX_TRUE='#'
4924 am__fastdepCXX_FALSE=
4925 fi
4926
4927
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4929 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4930 if ${ac_cv_path_GREP+:} false; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 if test -z "$GREP"; then
4934 ac_path_GREP_found=false
4935 # Loop through the user's path and test for each of PROGNAME-LIST
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4938 do
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_prog in grep ggrep; do
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4944 as_fn_executable_p "$ac_path_GREP" || continue
4945 # Check for GNU ac_path_GREP and select it if it is found.
4946 # Check for GNU $ac_path_GREP
4947 case `"$ac_path_GREP" --version 2>&1` in
4948 *GNU*)
4949 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4950 *)
4951 ac_count=0
4952 $as_echo_n 0123456789 >"conftest.in"
4953 while :
4954 do
4955 cat "conftest.in" "conftest.in" >"conftest.tmp"
4956 mv "conftest.tmp" "conftest.in"
4957 cp "conftest.in" "conftest.nl"
4958 $as_echo 'GREP' >> "conftest.nl"
4959 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4961 as_fn_arith $ac_count + 1 && ac_count=$as_val
4962 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4963 # Best one so far, save it but keep looking for a better one
4964 ac_cv_path_GREP="$ac_path_GREP"
4965 ac_path_GREP_max=$ac_count
4966 fi
4967 # 10*(2^10) chars as input seems more than enough
4968 test $ac_count -gt 10 && break
4969 done
4970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4971 esac
4972
4973 $ac_path_GREP_found && break 3
4974 done
4975 done
4976 done
4977 IFS=$as_save_IFS
4978 if test -z "$ac_cv_path_GREP"; then
4979 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4980 fi
4981 else
4982 ac_cv_path_GREP=$GREP
4983 fi
4984
4985 fi
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4987 $as_echo "$ac_cv_path_GREP" >&6; }
4988 GREP="$ac_cv_path_GREP"
4989
4990
4991
4992 ac_ext=c
4993 ac_cpp='$CPP $CPPFLAGS'
4994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4998 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4999 # On Suns, sometimes $CPP names a directory.
5000 if test -n "$CPP" && test -d "$CPP"; then
5001 CPP=
5002 fi
5003 if test -z "$CPP"; then
5004 if ${ac_cv_prog_CPP+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 # Double quotes because CPP needs to be expanded
5008 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5009 do
5010 ac_preproc_ok=false
5011 for ac_c_preproc_warn_flag in '' yes
5012 do
5013 # Use a header file that comes with gcc, so configuring glibc
5014 # with a fresh cross-compiler works.
5015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5016 # <limits.h> exists even on freestanding compilers.
5017 # On the NeXT, cc -E runs the code through the compiler's parser,
5018 # not just through cpp. "Syntax error" is here to catch this case.
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5021 #ifdef __STDC__
5022 # include <limits.h>
5023 #else
5024 # include <assert.h>
5025 #endif
5026 Syntax error
5027 _ACEOF
5028 if ac_fn_c_try_cpp "$LINENO"; then :
5029
5030 else
5031 # Broken: fails on valid input.
5032 continue
5033 fi
5034 rm -f conftest.err conftest.i conftest.$ac_ext
5035
5036 # OK, works on sane cases. Now check whether nonexistent headers
5037 # can be detected and how.
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5040 #include <ac_nonexistent.h>
5041 _ACEOF
5042 if ac_fn_c_try_cpp "$LINENO"; then :
5043 # Broken: success on invalid input.
5044 continue
5045 else
5046 # Passes both tests.
5047 ac_preproc_ok=:
5048 break
5049 fi
5050 rm -f conftest.err conftest.i conftest.$ac_ext
5051
5052 done
5053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5054 rm -f conftest.i conftest.err conftest.$ac_ext
5055 if $ac_preproc_ok; then :
5056 break
5057 fi
5058
5059 done
5060 ac_cv_prog_CPP=$CPP
5061
5062 fi
5063 CPP=$ac_cv_prog_CPP
5064 else
5065 ac_cv_prog_CPP=$CPP
5066 fi
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5068 $as_echo "$CPP" >&6; }
5069 ac_preproc_ok=false
5070 for ac_c_preproc_warn_flag in '' yes
5071 do
5072 # Use a header file that comes with gcc, so configuring glibc
5073 # with a fresh cross-compiler works.
5074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5075 # <limits.h> exists even on freestanding compilers.
5076 # On the NeXT, cc -E runs the code through the compiler's parser,
5077 # not just through cpp. "Syntax error" is here to catch this case.
5078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079 /* end confdefs.h. */
5080 #ifdef __STDC__
5081 # include <limits.h>
5082 #else
5083 # include <assert.h>
5084 #endif
5085 Syntax error
5086 _ACEOF
5087 if ac_fn_c_try_cpp "$LINENO"; then :
5088
5089 else
5090 # Broken: fails on valid input.
5091 continue
5092 fi
5093 rm -f conftest.err conftest.i conftest.$ac_ext
5094
5095 # OK, works on sane cases. Now check whether nonexistent headers
5096 # can be detected and how.
5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098 /* end confdefs.h. */
5099 #include <ac_nonexistent.h>
5100 _ACEOF
5101 if ac_fn_c_try_cpp "$LINENO"; then :
5102 # Broken: success on invalid input.
5103 continue
5104 else
5105 # Passes both tests.
5106 ac_preproc_ok=:
5107 break
5108 fi
5109 rm -f conftest.err conftest.i conftest.$ac_ext
5110
5111 done
5112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5113 rm -f conftest.i conftest.err conftest.$ac_ext
5114 if $ac_preproc_ok; then :
5115
5116 else
5117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5119 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5120 See \`config.log' for more details" "$LINENO" 5; }
5121 fi
5122
5123 ac_ext=c
5124 ac_cpp='$CPP $CPPFLAGS'
5125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5128
5129
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5131 $as_echo_n "checking for egrep... " >&6; }
5132 if ${ac_cv_path_EGREP+:} false; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5136 then ac_cv_path_EGREP="$GREP -E"
5137 else
5138 if test -z "$EGREP"; then
5139 ac_path_EGREP_found=false
5140 # Loop through the user's path and test for each of PROGNAME-LIST
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5143 do
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_prog in egrep; do
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5149 as_fn_executable_p "$ac_path_EGREP" || continue
5150 # Check for GNU ac_path_EGREP and select it if it is found.
5151 # Check for GNU $ac_path_EGREP
5152 case `"$ac_path_EGREP" --version 2>&1` in
5153 *GNU*)
5154 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5155 *)
5156 ac_count=0
5157 $as_echo_n 0123456789 >"conftest.in"
5158 while :
5159 do
5160 cat "conftest.in" "conftest.in" >"conftest.tmp"
5161 mv "conftest.tmp" "conftest.in"
5162 cp "conftest.in" "conftest.nl"
5163 $as_echo 'EGREP' >> "conftest.nl"
5164 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5166 as_fn_arith $ac_count + 1 && ac_count=$as_val
5167 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5168 # Best one so far, save it but keep looking for a better one
5169 ac_cv_path_EGREP="$ac_path_EGREP"
5170 ac_path_EGREP_max=$ac_count
5171 fi
5172 # 10*(2^10) chars as input seems more than enough
5173 test $ac_count -gt 10 && break
5174 done
5175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5176 esac
5177
5178 $ac_path_EGREP_found && break 3
5179 done
5180 done
5181 done
5182 IFS=$as_save_IFS
5183 if test -z "$ac_cv_path_EGREP"; then
5184 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5185 fi
5186 else
5187 ac_cv_path_EGREP=$EGREP
5188 fi
5189
5190 fi
5191 fi
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5193 $as_echo "$ac_cv_path_EGREP" >&6; }
5194 EGREP="$ac_cv_path_EGREP"
5195
5196
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5198 $as_echo_n "checking for ANSI C header files... " >&6; }
5199 if ${ac_cv_header_stdc+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5204 #include <stdlib.h>
5205 #include <stdarg.h>
5206 #include <string.h>
5207 #include <float.h>
5208
5209 int
5210 main ()
5211 {
5212
5213 ;
5214 return 0;
5215 }
5216 _ACEOF
5217 if ac_fn_c_try_compile "$LINENO"; then :
5218 ac_cv_header_stdc=yes
5219 else
5220 ac_cv_header_stdc=no
5221 fi
5222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223
5224 if test $ac_cv_header_stdc = yes; then
5225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5228 #include <string.h>
5229
5230 _ACEOF
5231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5232 $EGREP "memchr" >/dev/null 2>&1; then :
5233
5234 else
5235 ac_cv_header_stdc=no
5236 fi
5237 rm -f conftest*
5238
5239 fi
5240
5241 if test $ac_cv_header_stdc = yes; then
5242 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5245 #include <stdlib.h>
5246
5247 _ACEOF
5248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5249 $EGREP "free" >/dev/null 2>&1; then :
5250
5251 else
5252 ac_cv_header_stdc=no
5253 fi
5254 rm -f conftest*
5255
5256 fi
5257
5258 if test $ac_cv_header_stdc = yes; then
5259 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5260 if test "$cross_compiling" = yes; then :
5261 :
5262 else
5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5265 #include <ctype.h>
5266 #include <stdlib.h>
5267 #if ((' ' & 0x0FF) == 0x020)
5268 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5269 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5270 #else
5271 # define ISLOWER(c) \
5272 (('a' <= (c) && (c) <= 'i') \
5273 || ('j' <= (c) && (c) <= 'r') \
5274 || ('s' <= (c) && (c) <= 'z'))
5275 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5276 #endif
5277
5278 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5279 int
5280 main ()
5281 {
5282 int i;
5283 for (i = 0; i < 256; i++)
5284 if (XOR (islower (i), ISLOWER (i))
5285 || toupper (i) != TOUPPER (i))
5286 return 2;
5287 return 0;
5288 }
5289 _ACEOF
5290 if ac_fn_c_try_run "$LINENO"; then :
5291
5292 else
5293 ac_cv_header_stdc=no
5294 fi
5295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5296 conftest.$ac_objext conftest.beam conftest.$ac_ext
5297 fi
5298
5299 fi
5300 fi
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5302 $as_echo "$ac_cv_header_stdc" >&6; }
5303 if test $ac_cv_header_stdc = yes; then
5304
5305 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5306
5307 fi
5308
5309 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5310 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5311 inttypes.h stdint.h unistd.h
5312 do :
5313 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5314 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5315 "
5316 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5317 cat >>confdefs.h <<_ACEOF
5318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5319 _ACEOF
5320
5321 fi
5322
5323 done
5324
5325
5326
5327 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5328 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5329 MINIX=yes
5330 else
5331 MINIX=
5332 fi
5333
5334
5335 if test "$MINIX" = yes; then
5336
5337 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5338
5339
5340 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5341
5342
5343 $as_echo "#define _MINIX 1" >>confdefs.h
5344
5345 fi
5346
5347
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5349 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5350 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5355
5356 # define __EXTENSIONS__ 1
5357 $ac_includes_default
5358 int
5359 main ()
5360 {
5361
5362 ;
5363 return 0;
5364 }
5365 _ACEOF
5366 if ac_fn_c_try_compile "$LINENO"; then :
5367 ac_cv_safe_to_define___extensions__=yes
5368 else
5369 ac_cv_safe_to_define___extensions__=no
5370 fi
5371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372 fi
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5374 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5375 test $ac_cv_safe_to_define___extensions__ = yes &&
5376 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5377
5378 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5379
5380 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5381
5382 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5383
5384 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5385
5386
5387
5388
5389
5390
5391 case `pwd` in
5392 *\ * | *\ *)
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5394 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5395 esac
5396
5397
5398
5399 macro_version='2.2.7a'
5400 macro_revision='1.3134'
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414 ltmain="$ac_aux_dir/ltmain.sh"
5415
5416 # Backslashify metacharacters that are still active within
5417 # double-quoted strings.
5418 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5419
5420 # Same as above, but do not quote variable references.
5421 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5422
5423 # Sed substitution to delay expansion of an escaped shell variable in a
5424 # double_quote_subst'ed string.
5425 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5426
5427 # Sed substitution to delay expansion of an escaped single quote.
5428 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5429
5430 # Sed substitution to avoid accidental globbing in evaled expressions
5431 no_glob_subst='s/\*/\\\*/g'
5432
5433 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5434 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5435 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5436
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5438 $as_echo_n "checking how to print strings... " >&6; }
5439 # Test print first, because it will be a builtin if present.
5440 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5441 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5442 ECHO='print -r --'
5443 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5444 ECHO='printf %s\n'
5445 else
5446 # Use this function as a fallback that always works.
5447 func_fallback_echo ()
5448 {
5449 eval 'cat <<_LTECHO_EOF
5450 $1
5451 _LTECHO_EOF'
5452 }
5453 ECHO='func_fallback_echo'
5454 fi
5455
5456 # func_echo_all arg...
5457 # Invoke $ECHO with all args, space-separated.
5458 func_echo_all ()
5459 {
5460 $ECHO ""
5461 }
5462
5463 case "$ECHO" in
5464 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5465 $as_echo "printf" >&6; } ;;
5466 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5467 $as_echo "print -r" >&6; } ;;
5468 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5469 $as_echo "cat" >&6; } ;;
5470 esac
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5486 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5487 if ${ac_cv_path_SED+:} false; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5491 for ac_i in 1 2 3 4 5 6 7; do
5492 ac_script="$ac_script$as_nl$ac_script"
5493 done
5494 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5495 { ac_script=; unset ac_script;}
5496 if test -z "$SED"; then
5497 ac_path_SED_found=false
5498 # Loop through the user's path and test for each of PROGNAME-LIST
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 for as_dir in $PATH
5501 do
5502 IFS=$as_save_IFS
5503 test -z "$as_dir" && as_dir=.
5504 for ac_prog in sed gsed; do
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5507 as_fn_executable_p "$ac_path_SED" || continue
5508 # Check for GNU ac_path_SED and select it if it is found.
5509 # Check for GNU $ac_path_SED
5510 case `"$ac_path_SED" --version 2>&1` in
5511 *GNU*)
5512 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5513 *)
5514 ac_count=0
5515 $as_echo_n 0123456789 >"conftest.in"
5516 while :
5517 do
5518 cat "conftest.in" "conftest.in" >"conftest.tmp"
5519 mv "conftest.tmp" "conftest.in"
5520 cp "conftest.in" "conftest.nl"
5521 $as_echo '' >> "conftest.nl"
5522 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5524 as_fn_arith $ac_count + 1 && ac_count=$as_val
5525 if test $ac_count -gt ${ac_path_SED_max-0}; then
5526 # Best one so far, save it but keep looking for a better one
5527 ac_cv_path_SED="$ac_path_SED"
5528 ac_path_SED_max=$ac_count
5529 fi
5530 # 10*(2^10) chars as input seems more than enough
5531 test $ac_count -gt 10 && break
5532 done
5533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5534 esac
5535
5536 $ac_path_SED_found && break 3
5537 done
5538 done
5539 done
5540 IFS=$as_save_IFS
5541 if test -z "$ac_cv_path_SED"; then
5542 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5543 fi
5544 else
5545 ac_cv_path_SED=$SED
5546 fi
5547
5548 fi
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5550 $as_echo "$ac_cv_path_SED" >&6; }
5551 SED="$ac_cv_path_SED"
5552 rm -f conftest.sed
5553
5554 test -z "$SED" && SED=sed
5555 Xsed="$SED -e 1s/^X//"
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5568 $as_echo_n "checking for fgrep... " >&6; }
5569 if ${ac_cv_path_FGREP+:} false; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5573 then ac_cv_path_FGREP="$GREP -F"
5574 else
5575 if test -z "$FGREP"; then
5576 ac_path_FGREP_found=false
5577 # Loop through the user's path and test for each of PROGNAME-LIST
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5580 do
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
5583 for ac_prog in fgrep; do
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5586 as_fn_executable_p "$ac_path_FGREP" || continue
5587 # Check for GNU ac_path_FGREP and select it if it is found.
5588 # Check for GNU $ac_path_FGREP
5589 case `"$ac_path_FGREP" --version 2>&1` in
5590 *GNU*)
5591 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5592 *)
5593 ac_count=0
5594 $as_echo_n 0123456789 >"conftest.in"
5595 while :
5596 do
5597 cat "conftest.in" "conftest.in" >"conftest.tmp"
5598 mv "conftest.tmp" "conftest.in"
5599 cp "conftest.in" "conftest.nl"
5600 $as_echo 'FGREP' >> "conftest.nl"
5601 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5603 as_fn_arith $ac_count + 1 && ac_count=$as_val
5604 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5605 # Best one so far, save it but keep looking for a better one
5606 ac_cv_path_FGREP="$ac_path_FGREP"
5607 ac_path_FGREP_max=$ac_count
5608 fi
5609 # 10*(2^10) chars as input seems more than enough
5610 test $ac_count -gt 10 && break
5611 done
5612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5613 esac
5614
5615 $ac_path_FGREP_found && break 3
5616 done
5617 done
5618 done
5619 IFS=$as_save_IFS
5620 if test -z "$ac_cv_path_FGREP"; then
5621 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5622 fi
5623 else
5624 ac_cv_path_FGREP=$FGREP
5625 fi
5626
5627 fi
5628 fi
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5630 $as_echo "$ac_cv_path_FGREP" >&6; }
5631 FGREP="$ac_cv_path_FGREP"
5632
5633
5634 test -z "$GREP" && GREP=grep
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654 # Check whether --with-gnu-ld was given.
5655 if test "${with_gnu_ld+set}" = set; then :
5656 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5657 else
5658 with_gnu_ld=no
5659 fi
5660
5661 ac_prog=ld
5662 if test "$GCC" = yes; then
5663 # Check if gcc -print-prog-name=ld gives a path.
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5665 $as_echo_n "checking for ld used by $CC... " >&6; }
5666 case $host in
5667 *-*-mingw*)
5668 # gcc leaves a trailing carriage return which upsets mingw
5669 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5670 *)
5671 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5672 esac
5673 case $ac_prog in
5674 # Accept absolute paths.
5675 [\\/]* | ?:[\\/]*)
5676 re_direlt='/[^/][^/]*/\.\./'
5677 # Canonicalize the pathname of ld
5678 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5679 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5680 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5681 done
5682 test -z "$LD" && LD="$ac_prog"
5683 ;;
5684 "")
5685 # If it fails, then pretend we aren't using GCC.
5686 ac_prog=ld
5687 ;;
5688 *)
5689 # If it is relative, then search for the first ld in PATH.
5690 with_gnu_ld=unknown
5691 ;;
5692 esac
5693 elif test "$with_gnu_ld" = yes; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5695 $as_echo_n "checking for GNU ld... " >&6; }
5696 else
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5698 $as_echo_n "checking for non-GNU ld... " >&6; }
5699 fi
5700 if ${lt_cv_path_LD+:} false; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 if test -z "$LD"; then
5704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5705 for ac_dir in $PATH; do
5706 IFS="$lt_save_ifs"
5707 test -z "$ac_dir" && ac_dir=.
5708 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5709 lt_cv_path_LD="$ac_dir/$ac_prog"
5710 # Check to see if the program is GNU ld. I'd rather use --version,
5711 # but apparently some variants of GNU ld only accept -v.
5712 # Break only if it was the GNU/non-GNU ld that we prefer.
5713 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5714 *GNU* | *'with BFD'*)
5715 test "$with_gnu_ld" != no && break
5716 ;;
5717 *)
5718 test "$with_gnu_ld" != yes && break
5719 ;;
5720 esac
5721 fi
5722 done
5723 IFS="$lt_save_ifs"
5724 else
5725 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5726 fi
5727 fi
5728
5729 LD="$lt_cv_path_LD"
5730 if test -n "$LD"; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5732 $as_echo "$LD" >&6; }
5733 else
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 $as_echo "no" >&6; }
5736 fi
5737 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5739 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5740 if ${lt_cv_prog_gnu_ld+:} false; then :
5741 $as_echo_n "(cached) " >&6
5742 else
5743 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5744 case `$LD -v 2>&1 </dev/null` in
5745 *GNU* | *'with BFD'*)
5746 lt_cv_prog_gnu_ld=yes
5747 ;;
5748 *)
5749 lt_cv_prog_gnu_ld=no
5750 ;;
5751 esac
5752 fi
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5754 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5755 with_gnu_ld=$lt_cv_prog_gnu_ld
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5766 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5767 if ${lt_cv_path_NM+:} false; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 if test -n "$NM"; then
5771 # Let the user override the nm to test.
5772 lt_nm_to_check="$NM"
5773 else
5774 lt_nm_to_check="${ac_tool_prefix}nm"
5775 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5776 lt_nm_to_check="$lt_nm_to_check nm"
5777 fi
5778 fi
5779 for lt_tmp_nm in "$lt_nm_to_check"; do
5780 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5781 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5782 IFS="$lt_save_ifs"
5783 test -z "$ac_dir" && ac_dir=.
5784 # Strip out any user-provided options from the nm to test twice,
5785 # the first time to test to see if nm (rather than its options) has
5786 # an explicit path, the second time to yield a file which can be
5787 # nm'ed itself.
5788 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5789 case "$tmp_nm_path" in
5790 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5791 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5792 esac
5793 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5794 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5795 # Check to see if the nm accepts a BSD-compat flag.
5796 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5797 # nm: unknown option "B" ignored
5798 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5799 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5800 break
5801 ;;
5802 *)
5803 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5804 *$tmp_nm*)
5805 lt_cv_path_NM="$tmp_nm -p"
5806 break
5807 ;;
5808 *)
5809 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5810 continue # so that we can try to find one that supports BSD flags
5811 ;;
5812 esac
5813 ;;
5814 esac
5815 fi
5816 done
5817 IFS="$lt_save_ifs"
5818 done
5819 : ${lt_cv_path_NM=no}
5820 fi
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5822 $as_echo "$lt_cv_path_NM" >&6; }
5823 if test "$lt_cv_path_NM" != "no"; then
5824 NM="$lt_cv_path_NM"
5825 else
5826 # Didn't find any BSD compatible name lister, look for dumpbin.
5827 if test -n "$DUMPBIN"; then :
5828 # Let the user override the test.
5829 else
5830 if test -n "$ac_tool_prefix"; then
5831 for ac_prog in dumpbin "link -dump"
5832 do
5833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5834 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if ${ac_cv_prog_DUMPBIN+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 if test -n "$DUMPBIN"; then
5841 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854 done
5855 done
5856 IFS=$as_save_IFS
5857
5858 fi
5859 fi
5860 DUMPBIN=$ac_cv_prog_DUMPBIN
5861 if test -n "$DUMPBIN"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5863 $as_echo "$DUMPBIN" >&6; }
5864 else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5867 fi
5868
5869
5870 test -n "$DUMPBIN" && break
5871 done
5872 fi
5873 if test -z "$DUMPBIN"; then
5874 ac_ct_DUMPBIN=$DUMPBIN
5875 for ac_prog in dumpbin "link -dump"
5876 do
5877 # Extract the first word of "$ac_prog", so it can be a program name with args.
5878 set dummy $ac_prog; ac_word=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 if test -n "$ac_ct_DUMPBIN"; then
5885 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898 done
5899 done
5900 IFS=$as_save_IFS
5901
5902 fi
5903 fi
5904 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5905 if test -n "$ac_ct_DUMPBIN"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5907 $as_echo "$ac_ct_DUMPBIN" >&6; }
5908 else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5911 fi
5912
5913
5914 test -n "$ac_ct_DUMPBIN" && break
5915 done
5916
5917 if test "x$ac_ct_DUMPBIN" = x; then
5918 DUMPBIN=":"
5919 else
5920 case $cross_compiling:$ac_tool_warned in
5921 yes:)
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5924 ac_tool_warned=yes ;;
5925 esac
5926 DUMPBIN=$ac_ct_DUMPBIN
5927 fi
5928 fi
5929
5930 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5931 *COFF*)
5932 DUMPBIN="$DUMPBIN -symbols"
5933 ;;
5934 *)
5935 DUMPBIN=:
5936 ;;
5937 esac
5938 fi
5939
5940 if test "$DUMPBIN" != ":"; then
5941 NM="$DUMPBIN"
5942 fi
5943 fi
5944 test -z "$NM" && NM=nm
5945
5946
5947
5948
5949
5950
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5952 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5953 if ${lt_cv_nm_interface+:} false; then :
5954 $as_echo_n "(cached) " >&6
5955 else
5956 lt_cv_nm_interface="BSD nm"
5957 echo "int some_variable = 0;" > conftest.$ac_ext
5958 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5959 (eval "$ac_compile" 2>conftest.err)
5960 cat conftest.err >&5
5961 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5962 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5963 cat conftest.err >&5
5964 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5965 cat conftest.out >&5
5966 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5967 lt_cv_nm_interface="MS dumpbin"
5968 fi
5969 rm -f conftest*
5970 fi
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5972 $as_echo "$lt_cv_nm_interface" >&6; }
5973
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5975 $as_echo_n "checking whether ln -s works... " >&6; }
5976 LN_S=$as_ln_s
5977 if test "$LN_S" = "ln -s"; then
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5979 $as_echo "yes" >&6; }
5980 else
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5982 $as_echo "no, using $LN_S" >&6; }
5983 fi
5984
5985 # find the maximum length of command line arguments
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5987 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5988 if ${lt_cv_sys_max_cmd_len+:} false; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 i=0
5992 teststring="ABCD"
5993
5994 case $build_os in
5995 msdosdjgpp*)
5996 # On DJGPP, this test can blow up pretty badly due to problems in libc
5997 # (any single argument exceeding 2000 bytes causes a buffer overrun
5998 # during glob expansion). Even if it were fixed, the result of this
5999 # check would be larger than it should be.
6000 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6001 ;;
6002
6003 gnu*)
6004 # Under GNU Hurd, this test is not required because there is
6005 # no limit to the length of command line arguments.
6006 # Libtool will interpret -1 as no limit whatsoever
6007 lt_cv_sys_max_cmd_len=-1;
6008 ;;
6009
6010 cygwin* | mingw* | cegcc*)
6011 # On Win9x/ME, this test blows up -- it succeeds, but takes
6012 # about 5 minutes as the teststring grows exponentially.
6013 # Worse, since 9x/ME are not pre-emptively multitasking,
6014 # you end up with a "frozen" computer, even though with patience
6015 # the test eventually succeeds (with a max line length of 256k).
6016 # Instead, let's just punt: use the minimum linelength reported by
6017 # all of the supported platforms: 8192 (on NT/2K/XP).
6018 lt_cv_sys_max_cmd_len=8192;
6019 ;;
6020
6021 mint*)
6022 # On MiNT this can take a long time and run out of memory.
6023 lt_cv_sys_max_cmd_len=8192;
6024 ;;
6025
6026 amigaos*)
6027 # On AmigaOS with pdksh, this test takes hours, literally.
6028 # So we just punt and use a minimum line length of 8192.
6029 lt_cv_sys_max_cmd_len=8192;
6030 ;;
6031
6032 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6033 # This has been around since 386BSD, at least. Likely further.
6034 if test -x /sbin/sysctl; then
6035 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6036 elif test -x /usr/sbin/sysctl; then
6037 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6038 else
6039 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6040 fi
6041 # And add a safety zone
6042 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6043 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6044 ;;
6045
6046 interix*)
6047 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6048 lt_cv_sys_max_cmd_len=196608
6049 ;;
6050
6051 osf*)
6052 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6053 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6054 # nice to cause kernel panics so lets avoid the loop below.
6055 # First set a reasonable default.
6056 lt_cv_sys_max_cmd_len=16384
6057 #
6058 if test -x /sbin/sysconfig; then
6059 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6060 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6061 esac
6062 fi
6063 ;;
6064 sco3.2v5*)
6065 lt_cv_sys_max_cmd_len=102400
6066 ;;
6067 sysv5* | sco5v6* | sysv4.2uw2*)
6068 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6069 if test -n "$kargmax"; then
6070 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6071 else
6072 lt_cv_sys_max_cmd_len=32768
6073 fi
6074 ;;
6075 *)
6076 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6077 if test -n "$lt_cv_sys_max_cmd_len"; then
6078 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6079 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6080 else
6081 # Make teststring a little bigger before we do anything with it.
6082 # a 1K string should be a reasonable start.
6083 for i in 1 2 3 4 5 6 7 8 ; do
6084 teststring=$teststring$teststring
6085 done
6086 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6087 # If test is not a shell built-in, we'll probably end up computing a
6088 # maximum length that is only half of the actual maximum length, but
6089 # we can't tell.
6090 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6091 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6092 test $i != 17 # 1/2 MB should be enough
6093 do
6094 i=`expr $i + 1`
6095 teststring=$teststring$teststring
6096 done
6097 # Only check the string length outside the loop.
6098 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6099 teststring=
6100 # Add a significant safety factor because C++ compilers can tack on
6101 # massive amounts of additional arguments before passing them to the
6102 # linker. It appears as though 1/2 is a usable value.
6103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6104 fi
6105 ;;
6106 esac
6107
6108 fi
6109
6110 if test -n $lt_cv_sys_max_cmd_len ; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6112 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6113 else
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6115 $as_echo "none" >&6; }
6116 fi
6117 max_cmd_len=$lt_cv_sys_max_cmd_len
6118
6119
6120
6121
6122
6123
6124 : ${CP="cp -f"}
6125 : ${MV="mv -f"}
6126 : ${RM="rm -f"}
6127
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6129 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6130 # Try some XSI features
6131 xsi_shell=no
6132 ( _lt_dummy="a/b/c"
6133 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6134 = c,a/b,, \
6135 && eval 'test $(( 1 + 1 )) -eq 2 \
6136 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6137 && xsi_shell=yes
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6139 $as_echo "$xsi_shell" >&6; }
6140
6141
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6143 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6144 lt_shell_append=no
6145 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6146 >/dev/null 2>&1 \
6147 && lt_shell_append=yes
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6149 $as_echo "$lt_shell_append" >&6; }
6150
6151
6152 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6153 lt_unset=unset
6154 else
6155 lt_unset=false
6156 fi
6157
6158
6159
6160
6161
6162 # test EBCDIC or ASCII
6163 case `echo X|tr X '\101'` in
6164 A) # ASCII based system
6165 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6166 lt_SP2NL='tr \040 \012'
6167 lt_NL2SP='tr \015\012 \040\040'
6168 ;;
6169 *) # EBCDIC based system
6170 lt_SP2NL='tr \100 \n'
6171 lt_NL2SP='tr \r\n \100\100'
6172 ;;
6173 esac
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6184 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6185 if ${lt_cv_ld_reload_flag+:} false; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 lt_cv_ld_reload_flag='-r'
6189 fi
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6191 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6192 reload_flag=$lt_cv_ld_reload_flag
6193 case $reload_flag in
6194 "" | " "*) ;;
6195 *) reload_flag=" $reload_flag" ;;
6196 esac
6197 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6198 case $host_os in
6199 darwin*)
6200 if test "$GCC" = yes; then
6201 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6202 else
6203 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6204 fi
6205 ;;
6206 esac
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216 if test -n "$ac_tool_prefix"; then
6217 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6218 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220 $as_echo_n "checking for $ac_word... " >&6; }
6221 if ${ac_cv_prog_OBJDUMP+:} false; then :
6222 $as_echo_n "(cached) " >&6
6223 else
6224 if test -n "$OBJDUMP"; then
6225 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6226 else
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 for as_dir in $PATH
6229 do
6230 IFS=$as_save_IFS
6231 test -z "$as_dir" && as_dir=.
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6234 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 break 2
6237 fi
6238 done
6239 done
6240 IFS=$as_save_IFS
6241
6242 fi
6243 fi
6244 OBJDUMP=$ac_cv_prog_OBJDUMP
6245 if test -n "$OBJDUMP"; then
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6247 $as_echo "$OBJDUMP" >&6; }
6248 else
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250 $as_echo "no" >&6; }
6251 fi
6252
6253
6254 fi
6255 if test -z "$ac_cv_prog_OBJDUMP"; then
6256 ac_ct_OBJDUMP=$OBJDUMP
6257 # Extract the first word of "objdump", so it can be a program name with args.
6258 set dummy objdump; ac_word=$2
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6262 $as_echo_n "(cached) " >&6
6263 else
6264 if test -n "$ac_ct_OBJDUMP"; then
6265 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6266 else
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH
6269 do
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6274 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 break 2
6277 fi
6278 done
6279 done
6280 IFS=$as_save_IFS
6281
6282 fi
6283 fi
6284 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6285 if test -n "$ac_ct_OBJDUMP"; then
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6287 $as_echo "$ac_ct_OBJDUMP" >&6; }
6288 else
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 $as_echo "no" >&6; }
6291 fi
6292
6293 if test "x$ac_ct_OBJDUMP" = x; then
6294 OBJDUMP="false"
6295 else
6296 case $cross_compiling:$ac_tool_warned in
6297 yes:)
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6300 ac_tool_warned=yes ;;
6301 esac
6302 OBJDUMP=$ac_ct_OBJDUMP
6303 fi
6304 else
6305 OBJDUMP="$ac_cv_prog_OBJDUMP"
6306 fi
6307
6308 test -z "$OBJDUMP" && OBJDUMP=objdump
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6319 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6320 if ${lt_cv_deplibs_check_method+:} false; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 lt_cv_file_magic_cmd='$MAGIC_CMD'
6324 lt_cv_file_magic_test_file=
6325 lt_cv_deplibs_check_method='unknown'
6326 # Need to set the preceding variable on all platforms that support
6327 # interlibrary dependencies.
6328 # 'none' -- dependencies not supported.
6329 # `unknown' -- same as none, but documents that we really don't know.
6330 # 'pass_all' -- all dependencies passed with no checks.
6331 # 'test_compile' -- check by making test program.
6332 # 'file_magic [[regex]]' -- check by looking for files in library path
6333 # which responds to the $file_magic_cmd with a given extended regex.
6334 # If you have `file' or equivalent on your system and you're not sure
6335 # whether `pass_all' will *always* work, you probably want this one.
6336
6337 case $host_os in
6338 aix[4-9]*)
6339 lt_cv_deplibs_check_method=pass_all
6340 ;;
6341
6342 beos*)
6343 lt_cv_deplibs_check_method=pass_all
6344 ;;
6345
6346 bsdi[45]*)
6347 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6348 lt_cv_file_magic_cmd='/usr/bin/file -L'
6349 lt_cv_file_magic_test_file=/shlib/libc.so
6350 ;;
6351
6352 cygwin*)
6353 # func_win32_libid is a shell function defined in ltmain.sh
6354 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6355 lt_cv_file_magic_cmd='func_win32_libid'
6356 ;;
6357
6358 mingw* | pw32*)
6359 # Base MSYS/MinGW do not provide the 'file' command needed by
6360 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6361 # unless we find 'file', for example because we are cross-compiling.
6362 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6363 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6364 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6365 lt_cv_file_magic_cmd='func_win32_libid'
6366 else
6367 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6368 lt_cv_file_magic_cmd='$OBJDUMP -f'
6369 fi
6370 ;;
6371
6372 cegcc*)
6373 # use the weaker test based on 'objdump'. See mingw*.
6374 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6375 lt_cv_file_magic_cmd='$OBJDUMP -f'
6376 ;;
6377
6378 darwin* | rhapsody*)
6379 lt_cv_deplibs_check_method=pass_all
6380 ;;
6381
6382 freebsd* | dragonfly*)
6383 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6384 case $host_cpu in
6385 i*86 )
6386 # Not sure whether the presence of OpenBSD here was a mistake.
6387 # Let's accept both of them until this is cleared up.
6388 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6389 lt_cv_file_magic_cmd=/usr/bin/file
6390 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6391 ;;
6392 esac
6393 else
6394 lt_cv_deplibs_check_method=pass_all
6395 fi
6396 ;;
6397
6398 gnu*)
6399 lt_cv_deplibs_check_method=pass_all
6400 ;;
6401
6402 haiku*)
6403 lt_cv_deplibs_check_method=pass_all
6404 ;;
6405
6406 hpux10.20* | hpux11*)
6407 lt_cv_file_magic_cmd=/usr/bin/file
6408 case $host_cpu in
6409 ia64*)
6410 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6411 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6412 ;;
6413 hppa*64*)
6414 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]'
6415 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6416 ;;
6417 *)
6418 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6419 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6420 ;;
6421 esac
6422 ;;
6423
6424 interix[3-9]*)
6425 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6427 ;;
6428
6429 irix5* | irix6* | nonstopux*)
6430 case $LD in
6431 *-32|*"-32 ") libmagic=32-bit;;
6432 *-n32|*"-n32 ") libmagic=N32;;
6433 *-64|*"-64 ") libmagic=64-bit;;
6434 *) libmagic=never-match;;
6435 esac
6436 lt_cv_deplibs_check_method=pass_all
6437 ;;
6438
6439 # This must be Linux ELF.
6440 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6441 lt_cv_deplibs_check_method=pass_all
6442 ;;
6443
6444 netbsd*)
6445 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6446 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6447 else
6448 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6449 fi
6450 ;;
6451
6452 newos6*)
6453 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6454 lt_cv_file_magic_cmd=/usr/bin/file
6455 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6456 ;;
6457
6458 *nto* | *qnx*)
6459 lt_cv_deplibs_check_method=pass_all
6460 ;;
6461
6462 openbsd*)
6463 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6464 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6465 else
6466 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6467 fi
6468 ;;
6469
6470 osf3* | osf4* | osf5*)
6471 lt_cv_deplibs_check_method=pass_all
6472 ;;
6473
6474 rdos*)
6475 lt_cv_deplibs_check_method=pass_all
6476 ;;
6477
6478 solaris*)
6479 lt_cv_deplibs_check_method=pass_all
6480 ;;
6481
6482 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6483 lt_cv_deplibs_check_method=pass_all
6484 ;;
6485
6486 sysv4 | sysv4.3*)
6487 case $host_vendor in
6488 motorola)
6489 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]'
6490 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6491 ;;
6492 ncr)
6493 lt_cv_deplibs_check_method=pass_all
6494 ;;
6495 sequent)
6496 lt_cv_file_magic_cmd='/bin/file'
6497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6498 ;;
6499 sni)
6500 lt_cv_file_magic_cmd='/bin/file'
6501 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6502 lt_cv_file_magic_test_file=/lib/libc.so
6503 ;;
6504 siemens)
6505 lt_cv_deplibs_check_method=pass_all
6506 ;;
6507 pc)
6508 lt_cv_deplibs_check_method=pass_all
6509 ;;
6510 esac
6511 ;;
6512
6513 tpf*)
6514 lt_cv_deplibs_check_method=pass_all
6515 ;;
6516 esac
6517
6518 fi
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6520 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6521 file_magic_cmd=$lt_cv_file_magic_cmd
6522 deplibs_check_method=$lt_cv_deplibs_check_method
6523 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536 plugin_option=
6537 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6538 for plugin in $plugin_names; do
6539 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6540 if test x$plugin_so = x$plugin; then
6541 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6542 fi
6543 if test x$plugin_so != x$plugin; then
6544 plugin_option="--plugin $plugin_so"
6545 break
6546 fi
6547 done
6548
6549 if test -n "$ac_tool_prefix"; then
6550 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6551 set dummy ${ac_tool_prefix}ar; ac_word=$2
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553 $as_echo_n "checking for $ac_word... " >&6; }
6554 if ${ac_cv_prog_AR+:} false; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 if test -n "$AR"; then
6558 ac_cv_prog_AR="$AR" # Let the user override the test.
6559 else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563 IFS=$as_save_IFS
6564 test -z "$as_dir" && as_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6567 ac_cv_prog_AR="${ac_tool_prefix}ar"
6568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569 break 2
6570 fi
6571 done
6572 done
6573 IFS=$as_save_IFS
6574
6575 fi
6576 fi
6577 AR=$ac_cv_prog_AR
6578 if test -n "$AR"; then
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6580 $as_echo "$AR" >&6; }
6581 else
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583 $as_echo "no" >&6; }
6584 fi
6585
6586
6587 fi
6588 if test -z "$ac_cv_prog_AR"; then
6589 ac_ct_AR=$AR
6590 # Extract the first word of "ar", so it can be a program name with args.
6591 set dummy ar; ac_word=$2
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593 $as_echo_n "checking for $ac_word... " >&6; }
6594 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6595 $as_echo_n "(cached) " >&6
6596 else
6597 if test -n "$ac_ct_AR"; then
6598 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6599 else
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6602 do
6603 IFS=$as_save_IFS
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6607 ac_cv_prog_ac_ct_AR="ar"
6608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 break 2
6610 fi
6611 done
6612 done
6613 IFS=$as_save_IFS
6614
6615 fi
6616 fi
6617 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6618 if test -n "$ac_ct_AR"; then
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6620 $as_echo "$ac_ct_AR" >&6; }
6621 else
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6624 fi
6625
6626 if test "x$ac_ct_AR" = x; then
6627 AR="false"
6628 else
6629 case $cross_compiling:$ac_tool_warned in
6630 yes:)
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6633 ac_tool_warned=yes ;;
6634 esac
6635 AR=$ac_ct_AR
6636 fi
6637 else
6638 AR="$ac_cv_prog_AR"
6639 fi
6640
6641 test -z "$AR" && AR=ar
6642 if test -n "$plugin_option"; then
6643 if $AR --help 2>&1 | grep -q "\--plugin"; then
6644 touch conftest.c
6645 $AR $plugin_option rc conftest.a conftest.c
6646 if test "$?" != 0; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6648 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6649 else
6650 AR="$AR $plugin_option"
6651 fi
6652 rm -f conftest.*
6653 fi
6654 fi
6655 test -z "$AR_FLAGS" && AR_FLAGS=cru
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667 if test -n "$ac_tool_prefix"; then
6668 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6669 set dummy ${ac_tool_prefix}strip; ac_word=$2
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671 $as_echo_n "checking for $ac_word... " >&6; }
6672 if ${ac_cv_prog_STRIP+:} false; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675 if test -n "$STRIP"; then
6676 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6685 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 break 2
6688 fi
6689 done
6690 done
6691 IFS=$as_save_IFS
6692
6693 fi
6694 fi
6695 STRIP=$ac_cv_prog_STRIP
6696 if test -n "$STRIP"; then
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6698 $as_echo "$STRIP" >&6; }
6699 else
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 $as_echo "no" >&6; }
6702 fi
6703
6704
6705 fi
6706 if test -z "$ac_cv_prog_STRIP"; then
6707 ac_ct_STRIP=$STRIP
6708 # Extract the first word of "strip", so it can be a program name with args.
6709 set dummy strip; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 if test -n "$ac_ct_STRIP"; then
6716 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725 ac_cv_prog_ac_ct_STRIP="strip"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6736 if test -n "$ac_ct_STRIP"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6738 $as_echo "$ac_ct_STRIP" >&6; }
6739 else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6742 fi
6743
6744 if test "x$ac_ct_STRIP" = x; then
6745 STRIP=":"
6746 else
6747 case $cross_compiling:$ac_tool_warned in
6748 yes:)
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6751 ac_tool_warned=yes ;;
6752 esac
6753 STRIP=$ac_ct_STRIP
6754 fi
6755 else
6756 STRIP="$ac_cv_prog_STRIP"
6757 fi
6758
6759 test -z "$STRIP" && STRIP=:
6760
6761
6762
6763
6764
6765
6766 if test -n "$ac_tool_prefix"; then
6767 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6768 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770 $as_echo_n "checking for $ac_word... " >&6; }
6771 if ${ac_cv_prog_RANLIB+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 if test -n "$RANLIB"; then
6775 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6776 else
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6779 do
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6784 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 break 2
6787 fi
6788 done
6789 done
6790 IFS=$as_save_IFS
6791
6792 fi
6793 fi
6794 RANLIB=$ac_cv_prog_RANLIB
6795 if test -n "$RANLIB"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6797 $as_echo "$RANLIB" >&6; }
6798 else
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800 $as_echo "no" >&6; }
6801 fi
6802
6803
6804 fi
6805 if test -z "$ac_cv_prog_RANLIB"; then
6806 ac_ct_RANLIB=$RANLIB
6807 # Extract the first word of "ranlib", so it can be a program name with args.
6808 set dummy ranlib; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 if test -n "$ac_ct_RANLIB"; then
6815 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6816 else
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6824 ac_cv_prog_ac_ct_RANLIB="ranlib"
6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 break 2
6827 fi
6828 done
6829 done
6830 IFS=$as_save_IFS
6831
6832 fi
6833 fi
6834 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6835 if test -n "$ac_ct_RANLIB"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6837 $as_echo "$ac_ct_RANLIB" >&6; }
6838 else
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6841 fi
6842
6843 if test "x$ac_ct_RANLIB" = x; then
6844 RANLIB=":"
6845 else
6846 case $cross_compiling:$ac_tool_warned in
6847 yes:)
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6850 ac_tool_warned=yes ;;
6851 esac
6852 RANLIB=$ac_ct_RANLIB
6853 fi
6854 else
6855 RANLIB="$ac_cv_prog_RANLIB"
6856 fi
6857
6858 test -z "$RANLIB" && RANLIB=:
6859 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6860 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6861 RANLIB="$RANLIB $plugin_option"
6862 fi
6863 fi
6864
6865
6866
6867
6868
6869
6870 # Determine commands to create old-style static archives.
6871 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6872 old_postinstall_cmds='chmod 644 $oldlib'
6873 old_postuninstall_cmds=
6874
6875 if test -n "$RANLIB"; then
6876 case $host_os in
6877 openbsd*)
6878 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6879 ;;
6880 *)
6881 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6882 ;;
6883 esac
6884 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6885 fi
6886
6887 case $host_os in
6888 darwin*)
6889 lock_old_archive_extraction=yes ;;
6890 *)
6891 lock_old_archive_extraction=no ;;
6892 esac
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932 # If no C compiler was specified, use CC.
6933 LTCC=${LTCC-"$CC"}
6934
6935 # If no C compiler flags were specified, use CFLAGS.
6936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6937
6938 # Allow CC to be a program name with arguments.
6939 compiler=$CC
6940
6941
6942 # Check for command to grab the raw symbol name followed by C symbol from nm.
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6944 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6945 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948
6949 # These are sane defaults that work on at least a few old systems.
6950 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6951
6952 # Character class describing NM global symbol codes.
6953 symcode='[BCDEGRST]'
6954
6955 # Regexp to match symbols that can be accessed directly from C.
6956 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6957
6958 # Define system-specific variables.
6959 case $host_os in
6960 aix*)
6961 symcode='[BCDT]'
6962 ;;
6963 cygwin* | mingw* | pw32* | cegcc*)
6964 symcode='[ABCDGISTW]'
6965 ;;
6966 hpux*)
6967 if test "$host_cpu" = ia64; then
6968 symcode='[ABCDEGRST]'
6969 fi
6970 ;;
6971 irix* | nonstopux*)
6972 symcode='[BCDEGRST]'
6973 ;;
6974 osf*)
6975 symcode='[BCDEGQRST]'
6976 ;;
6977 solaris*)
6978 symcode='[BCDRT]'
6979 ;;
6980 sco3.2v5*)
6981 symcode='[DT]'
6982 ;;
6983 sysv4.2uw2*)
6984 symcode='[DT]'
6985 ;;
6986 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6987 symcode='[ABDT]'
6988 ;;
6989 sysv4)
6990 symcode='[DFNSTU]'
6991 ;;
6992 esac
6993
6994 # If we're using GNU nm, then use its standard symbol codes.
6995 case `$NM -V 2>&1` in
6996 *GNU* | *'with BFD'*)
6997 symcode='[ABCDGIRSTW]' ;;
6998 esac
6999
7000 # Transform an extracted symbol line into a proper C declaration.
7001 # Some systems (esp. on ia64) link data and code symbols differently,
7002 # so use this general approach.
7003 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7004
7005 # Transform an extracted symbol line into symbol name and symbol address
7006 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7007 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'"
7008
7009 # Handle CRLF in mingw tool chain
7010 opt_cr=
7011 case $build_os in
7012 mingw*)
7013 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7014 ;;
7015 esac
7016
7017 # Try without a prefix underscore, then with it.
7018 for ac_symprfx in "" "_"; do
7019
7020 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7021 symxfrm="\\1 $ac_symprfx\\2 \\2"
7022
7023 # Write the raw and C identifiers.
7024 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7025 # Fake it for dumpbin and say T for any non-static function
7026 # and D for any global variable.
7027 # Also find C++ and __fastcall symbols from MSVC++,
7028 # which start with @ or ?.
7029 lt_cv_sys_global_symbol_pipe="$AWK '"\
7030 " {last_section=section; section=\$ 3};"\
7031 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7032 " \$ 0!~/External *\|/{next};"\
7033 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7034 " {if(hide[section]) next};"\
7035 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7036 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7037 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7038 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7039 " ' prfx=^$ac_symprfx"
7040 else
7041 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7042 fi
7043
7044 # Check to see that the pipe works correctly.
7045 pipe_works=no
7046
7047 rm -f conftest*
7048 cat > conftest.$ac_ext <<_LT_EOF
7049 #ifdef __cplusplus
7050 extern "C" {
7051 #endif
7052 char nm_test_var;
7053 void nm_test_func(void);
7054 void nm_test_func(void){}
7055 #ifdef __cplusplus
7056 }
7057 #endif
7058 int main(){nm_test_var='a';nm_test_func();return(0);}
7059 _LT_EOF
7060
7061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7062 (eval $ac_compile) 2>&5
7063 ac_status=$?
7064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7065 test $ac_status = 0; }; then
7066 # Now try to grab the symbols.
7067 nlist=conftest.nm
7068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7069 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7070 ac_status=$?
7071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7072 test $ac_status = 0; } && test -s "$nlist"; then
7073 # Try sorting and uniquifying the output.
7074 if sort "$nlist" | uniq > "$nlist"T; then
7075 mv -f "$nlist"T "$nlist"
7076 else
7077 rm -f "$nlist"T
7078 fi
7079
7080 # Make sure that we snagged all the symbols we need.
7081 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7082 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7083 cat <<_LT_EOF > conftest.$ac_ext
7084 #ifdef __cplusplus
7085 extern "C" {
7086 #endif
7087
7088 _LT_EOF
7089 # Now generate the symbol file.
7090 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7091
7092 cat <<_LT_EOF >> conftest.$ac_ext
7093
7094 /* The mapping between symbol names and symbols. */
7095 const struct {
7096 const char *name;
7097 void *address;
7098 }
7099 lt__PROGRAM__LTX_preloaded_symbols[] =
7100 {
7101 { "@PROGRAM@", (void *) 0 },
7102 _LT_EOF
7103 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7104 cat <<\_LT_EOF >> conftest.$ac_ext
7105 {0, (void *) 0}
7106 };
7107
7108 /* This works around a problem in FreeBSD linker */
7109 #ifdef FREEBSD_WORKAROUND
7110 static const void *lt_preloaded_setup() {
7111 return lt__PROGRAM__LTX_preloaded_symbols;
7112 }
7113 #endif
7114
7115 #ifdef __cplusplus
7116 }
7117 #endif
7118 _LT_EOF
7119 # Now try linking the two files.
7120 mv conftest.$ac_objext conftstm.$ac_objext
7121 lt_save_LIBS="$LIBS"
7122 lt_save_CFLAGS="$CFLAGS"
7123 LIBS="conftstm.$ac_objext"
7124 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7126 (eval $ac_link) 2>&5
7127 ac_status=$?
7128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7129 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7130 pipe_works=yes
7131 fi
7132 LIBS="$lt_save_LIBS"
7133 CFLAGS="$lt_save_CFLAGS"
7134 else
7135 echo "cannot find nm_test_func in $nlist" >&5
7136 fi
7137 else
7138 echo "cannot find nm_test_var in $nlist" >&5
7139 fi
7140 else
7141 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7142 fi
7143 else
7144 echo "$progname: failed program was:" >&5
7145 cat conftest.$ac_ext >&5
7146 fi
7147 rm -rf conftest* conftst*
7148
7149 # Do not use the global_symbol_pipe unless it works.
7150 if test "$pipe_works" = yes; then
7151 break
7152 else
7153 lt_cv_sys_global_symbol_pipe=
7154 fi
7155 done
7156
7157 fi
7158
7159 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7160 lt_cv_sys_global_symbol_to_cdecl=
7161 fi
7162 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7164 $as_echo "failed" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7167 $as_echo "ok" >&6; }
7168 fi
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191 # Check whether --enable-libtool-lock was given.
7192 if test "${enable_libtool_lock+set}" = set; then :
7193 enableval=$enable_libtool_lock;
7194 fi
7195
7196 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7197
7198 # Some flags need to be propagated to the compiler or linker for good
7199 # libtool support.
7200 case $host in
7201 ia64-*-hpux*)
7202 # Find out which ABI we are using.
7203 echo 'int i;' > conftest.$ac_ext
7204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7205 (eval $ac_compile) 2>&5
7206 ac_status=$?
7207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7208 test $ac_status = 0; }; then
7209 case `/usr/bin/file conftest.$ac_objext` in
7210 *ELF-32*)
7211 HPUX_IA64_MODE="32"
7212 ;;
7213 *ELF-64*)
7214 HPUX_IA64_MODE="64"
7215 ;;
7216 esac
7217 fi
7218 rm -rf conftest*
7219 ;;
7220 *-*-irix6*)
7221 # Find out which ABI we are using.
7222 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7224 (eval $ac_compile) 2>&5
7225 ac_status=$?
7226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227 test $ac_status = 0; }; then
7228 if test "$lt_cv_prog_gnu_ld" = yes; then
7229 case `/usr/bin/file conftest.$ac_objext` in
7230 *32-bit*)
7231 LD="${LD-ld} -melf32bsmip"
7232 ;;
7233 *N32*)
7234 LD="${LD-ld} -melf32bmipn32"
7235 ;;
7236 *64-bit*)
7237 LD="${LD-ld} -melf64bmip"
7238 ;;
7239 esac
7240 else
7241 case `/usr/bin/file conftest.$ac_objext` in
7242 *32-bit*)
7243 LD="${LD-ld} -32"
7244 ;;
7245 *N32*)
7246 LD="${LD-ld} -n32"
7247 ;;
7248 *64-bit*)
7249 LD="${LD-ld} -64"
7250 ;;
7251 esac
7252 fi
7253 fi
7254 rm -rf conftest*
7255 ;;
7256
7257 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7258 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7259 # Find out which ABI we are using.
7260 echo 'int i;' > conftest.$ac_ext
7261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7262 (eval $ac_compile) 2>&5
7263 ac_status=$?
7264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7265 test $ac_status = 0; }; then
7266 case `/usr/bin/file conftest.o` in
7267 *32-bit*)
7268 case $host in
7269 x86_64-*kfreebsd*-gnu)
7270 LD="${LD-ld} -m elf_i386_fbsd"
7271 ;;
7272 x86_64-*linux*)
7273 case `/usr/bin/file conftest.o` in
7274 *x86-64*)
7275 LD="${LD-ld} -m elf32_x86_64"
7276 ;;
7277 *)
7278 LD="${LD-ld} -m elf_i386"
7279 ;;
7280 esac
7281 ;;
7282 powerpc64le-*linux*)
7283 LD="${LD-ld} -m elf32lppclinux"
7284 ;;
7285 powerpc64-*linux*)
7286 LD="${LD-ld} -m elf32ppclinux"
7287 ;;
7288 s390x-*linux*)
7289 LD="${LD-ld} -m elf_s390"
7290 ;;
7291 sparc64-*linux*)
7292 LD="${LD-ld} -m elf32_sparc"
7293 ;;
7294 esac
7295 ;;
7296 *64-bit*)
7297 case $host in
7298 x86_64-*kfreebsd*-gnu)
7299 LD="${LD-ld} -m elf_x86_64_fbsd"
7300 ;;
7301 x86_64-*linux*)
7302 LD="${LD-ld} -m elf_x86_64"
7303 ;;
7304 powerpcle-*linux*)
7305 LD="${LD-ld} -m elf64lppc"
7306 ;;
7307 powerpc-*linux*)
7308 LD="${LD-ld} -m elf64ppc"
7309 ;;
7310 s390*-*linux*|s390*-*tpf*)
7311 LD="${LD-ld} -m elf64_s390"
7312 ;;
7313 sparc*-*linux*)
7314 LD="${LD-ld} -m elf64_sparc"
7315 ;;
7316 esac
7317 ;;
7318 esac
7319 fi
7320 rm -rf conftest*
7321 ;;
7322
7323 *-*-sco3.2v5*)
7324 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7325 SAVE_CFLAGS="$CFLAGS"
7326 CFLAGS="$CFLAGS -belf"
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7328 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7329 if ${lt_cv_cc_needs_belf+:} false; then :
7330 $as_echo_n "(cached) " >&6
7331 else
7332 ac_ext=c
7333 ac_cpp='$CPP $CPPFLAGS'
7334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7337
7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339 /* end confdefs.h. */
7340
7341 int
7342 main ()
7343 {
7344
7345 ;
7346 return 0;
7347 }
7348 _ACEOF
7349 if ac_fn_c_try_link "$LINENO"; then :
7350 lt_cv_cc_needs_belf=yes
7351 else
7352 lt_cv_cc_needs_belf=no
7353 fi
7354 rm -f core conftest.err conftest.$ac_objext \
7355 conftest$ac_exeext conftest.$ac_ext
7356 ac_ext=c
7357 ac_cpp='$CPP $CPPFLAGS'
7358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7361
7362 fi
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7364 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7365 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7366 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7367 CFLAGS="$SAVE_CFLAGS"
7368 fi
7369 ;;
7370 sparc*-*solaris*)
7371 # Find out which ABI we are using.
7372 echo 'int i;' > conftest.$ac_ext
7373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7374 (eval $ac_compile) 2>&5
7375 ac_status=$?
7376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7377 test $ac_status = 0; }; then
7378 case `/usr/bin/file conftest.o` in
7379 *64-bit*)
7380 case $lt_cv_prog_gnu_ld in
7381 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7382 *)
7383 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7384 LD="${LD-ld} -64"
7385 fi
7386 ;;
7387 esac
7388 ;;
7389 esac
7390 fi
7391 rm -rf conftest*
7392 ;;
7393 esac
7394
7395 need_locks="$enable_libtool_lock"
7396
7397
7398 case $host_os in
7399 rhapsody* | darwin*)
7400 if test -n "$ac_tool_prefix"; then
7401 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 if test -n "$DSYMUTIL"; then
7409 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414 IFS=$as_save_IFS
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 break 2
7421 fi
7422 done
7423 done
7424 IFS=$as_save_IFS
7425
7426 fi
7427 fi
7428 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7429 if test -n "$DSYMUTIL"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7431 $as_echo "$DSYMUTIL" >&6; }
7432 else
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 fi
7436
7437
7438 fi
7439 if test -z "$ac_cv_prog_DSYMUTIL"; then
7440 ac_ct_DSYMUTIL=$DSYMUTIL
7441 # Extract the first word of "dsymutil", so it can be a program name with args.
7442 set dummy dsymutil; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7446 $as_echo_n "(cached) " >&6
7447 else
7448 if test -n "$ac_ct_DSYMUTIL"; then
7449 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7453 do
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 break 2
7461 fi
7462 done
7463 done
7464 IFS=$as_save_IFS
7465
7466 fi
7467 fi
7468 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7469 if test -n "$ac_ct_DSYMUTIL"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7471 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7472 else
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7475 fi
7476
7477 if test "x$ac_ct_DSYMUTIL" = x; then
7478 DSYMUTIL=":"
7479 else
7480 case $cross_compiling:$ac_tool_warned in
7481 yes:)
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484 ac_tool_warned=yes ;;
7485 esac
7486 DSYMUTIL=$ac_ct_DSYMUTIL
7487 fi
7488 else
7489 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7490 fi
7491
7492 if test -n "$ac_tool_prefix"; then
7493 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7494 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if ${ac_cv_prog_NMEDIT+:} false; then :
7498 $as_echo_n "(cached) " >&6
7499 else
7500 if test -n "$NMEDIT"; then
7501 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7502 else
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 break 2
7513 fi
7514 done
7515 done
7516 IFS=$as_save_IFS
7517
7518 fi
7519 fi
7520 NMEDIT=$ac_cv_prog_NMEDIT
7521 if test -n "$NMEDIT"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7523 $as_echo "$NMEDIT" >&6; }
7524 else
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7527 fi
7528
7529
7530 fi
7531 if test -z "$ac_cv_prog_NMEDIT"; then
7532 ac_ct_NMEDIT=$NMEDIT
7533 # Extract the first word of "nmedit", so it can be a program name with args.
7534 set dummy nmedit; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 if test -n "$ac_ct_NMEDIT"; then
7541 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7542 else
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7553 fi
7554 done
7555 done
7556 IFS=$as_save_IFS
7557
7558 fi
7559 fi
7560 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7561 if test -n "$ac_ct_NMEDIT"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7563 $as_echo "$ac_ct_NMEDIT" >&6; }
7564 else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7567 fi
7568
7569 if test "x$ac_ct_NMEDIT" = x; then
7570 NMEDIT=":"
7571 else
7572 case $cross_compiling:$ac_tool_warned in
7573 yes:)
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7576 ac_tool_warned=yes ;;
7577 esac
7578 NMEDIT=$ac_ct_NMEDIT
7579 fi
7580 else
7581 NMEDIT="$ac_cv_prog_NMEDIT"
7582 fi
7583
7584 if test -n "$ac_tool_prefix"; then
7585 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7586 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if ${ac_cv_prog_LIPO+:} false; then :
7590 $as_echo_n "(cached) " >&6
7591 else
7592 if test -n "$LIPO"; then
7593 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7594 else
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 break 2
7605 fi
7606 done
7607 done
7608 IFS=$as_save_IFS
7609
7610 fi
7611 fi
7612 LIPO=$ac_cv_prog_LIPO
7613 if test -n "$LIPO"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7615 $as_echo "$LIPO" >&6; }
7616 else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620
7621
7622 fi
7623 if test -z "$ac_cv_prog_LIPO"; then
7624 ac_ct_LIPO=$LIPO
7625 # Extract the first word of "lipo", so it can be a program name with args.
7626 set dummy lipo; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7630 $as_echo_n "(cached) " >&6
7631 else
7632 if test -n "$ac_ct_LIPO"; then
7633 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638 IFS=$as_save_IFS
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7642 ac_cv_prog_ac_ct_LIPO="lipo"
7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 break 2
7645 fi
7646 done
7647 done
7648 IFS=$as_save_IFS
7649
7650 fi
7651 fi
7652 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7653 if test -n "$ac_ct_LIPO"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7655 $as_echo "$ac_ct_LIPO" >&6; }
7656 else
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7659 fi
7660
7661 if test "x$ac_ct_LIPO" = x; then
7662 LIPO=":"
7663 else
7664 case $cross_compiling:$ac_tool_warned in
7665 yes:)
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7668 ac_tool_warned=yes ;;
7669 esac
7670 LIPO=$ac_ct_LIPO
7671 fi
7672 else
7673 LIPO="$ac_cv_prog_LIPO"
7674 fi
7675
7676 if test -n "$ac_tool_prefix"; then
7677 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7678 set dummy ${ac_tool_prefix}otool; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if ${ac_cv_prog_OTOOL+:} false; then :
7682 $as_echo_n "(cached) " >&6
7683 else
7684 if test -n "$OTOOL"; then
7685 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7686 else
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7689 do
7690 IFS=$as_save_IFS
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 break 2
7697 fi
7698 done
7699 done
7700 IFS=$as_save_IFS
7701
7702 fi
7703 fi
7704 OTOOL=$ac_cv_prog_OTOOL
7705 if test -n "$OTOOL"; then
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7707 $as_echo "$OTOOL" >&6; }
7708 else
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7711 fi
7712
7713
7714 fi
7715 if test -z "$ac_cv_prog_OTOOL"; then
7716 ac_ct_OTOOL=$OTOOL
7717 # Extract the first word of "otool", so it can be a program name with args.
7718 set dummy otool; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 if test -n "$ac_ct_OTOOL"; then
7725 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734 ac_cv_prog_ac_ct_OTOOL="otool"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 break 2
7737 fi
7738 done
7739 done
7740 IFS=$as_save_IFS
7741
7742 fi
7743 fi
7744 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7745 if test -n "$ac_ct_OTOOL"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7747 $as_echo "$ac_ct_OTOOL" >&6; }
7748 else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753 if test "x$ac_ct_OTOOL" = x; then
7754 OTOOL=":"
7755 else
7756 case $cross_compiling:$ac_tool_warned in
7757 yes:)
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7760 ac_tool_warned=yes ;;
7761 esac
7762 OTOOL=$ac_ct_OTOOL
7763 fi
7764 else
7765 OTOOL="$ac_cv_prog_OTOOL"
7766 fi
7767
7768 if test -n "$ac_tool_prefix"; then
7769 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7770 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if ${ac_cv_prog_OTOOL64+:} false; then :
7774 $as_echo_n "(cached) " >&6
7775 else
7776 if test -n "$OTOOL64"; then
7777 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7778 else
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH
7781 do
7782 IFS=$as_save_IFS
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 break 2
7789 fi
7790 done
7791 done
7792 IFS=$as_save_IFS
7793
7794 fi
7795 fi
7796 OTOOL64=$ac_cv_prog_OTOOL64
7797 if test -n "$OTOOL64"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7799 $as_echo "$OTOOL64" >&6; }
7800 else
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7803 fi
7804
7805
7806 fi
7807 if test -z "$ac_cv_prog_OTOOL64"; then
7808 ac_ct_OTOOL64=$OTOOL64
7809 # Extract the first word of "otool64", so it can be a program name with args.
7810 set dummy otool64; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 if test -n "$ac_ct_OTOOL64"; then
7817 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7818 else
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7821 do
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7826 ac_cv_prog_ac_ct_OTOOL64="otool64"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 break 2
7829 fi
7830 done
7831 done
7832 IFS=$as_save_IFS
7833
7834 fi
7835 fi
7836 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7837 if test -n "$ac_ct_OTOOL64"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7839 $as_echo "$ac_ct_OTOOL64" >&6; }
7840 else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7843 fi
7844
7845 if test "x$ac_ct_OTOOL64" = x; then
7846 OTOOL64=":"
7847 else
7848 case $cross_compiling:$ac_tool_warned in
7849 yes:)
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7852 ac_tool_warned=yes ;;
7853 esac
7854 OTOOL64=$ac_ct_OTOOL64
7855 fi
7856 else
7857 OTOOL64="$ac_cv_prog_OTOOL64"
7858 fi
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7887 $as_echo_n "checking for -single_module linker flag... " >&6; }
7888 if ${lt_cv_apple_cc_single_mod+:} false; then :
7889 $as_echo_n "(cached) " >&6
7890 else
7891 lt_cv_apple_cc_single_mod=no
7892 if test -z "${LT_MULTI_MODULE}"; then
7893 # By default we will add the -single_module flag. You can override
7894 # by either setting the environment variable LT_MULTI_MODULE
7895 # non-empty at configure time, or by adding -multi_module to the
7896 # link flags.
7897 rm -rf libconftest.dylib*
7898 echo "int foo(void){return 1;}" > conftest.c
7899 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7900 -dynamiclib -Wl,-single_module conftest.c" >&5
7901 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7902 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7903 _lt_result=$?
7904 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7905 lt_cv_apple_cc_single_mod=yes
7906 else
7907 cat conftest.err >&5
7908 fi
7909 rm -rf libconftest.dylib*
7910 rm -f conftest.*
7911 fi
7912 fi
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7914 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7916 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7917 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7918 $as_echo_n "(cached) " >&6
7919 else
7920 lt_cv_ld_exported_symbols_list=no
7921 save_LDFLAGS=$LDFLAGS
7922 echo "_main" > conftest.sym
7923 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7926
7927 int
7928 main ()
7929 {
7930
7931 ;
7932 return 0;
7933 }
7934 _ACEOF
7935 if ac_fn_c_try_link "$LINENO"; then :
7936 lt_cv_ld_exported_symbols_list=yes
7937 else
7938 lt_cv_ld_exported_symbols_list=no
7939 fi
7940 rm -f core conftest.err conftest.$ac_objext \
7941 conftest$ac_exeext conftest.$ac_ext
7942 LDFLAGS="$save_LDFLAGS"
7943
7944 fi
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7946 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7948 $as_echo_n "checking for -force_load linker flag... " >&6; }
7949 if ${lt_cv_ld_force_load+:} false; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 lt_cv_ld_force_load=no
7953 cat > conftest.c << _LT_EOF
7954 int forced_loaded() { return 2;}
7955 _LT_EOF
7956 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7957 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7958 echo "$AR cru libconftest.a conftest.o" >&5
7959 $AR cru libconftest.a conftest.o 2>&5
7960 cat > conftest.c << _LT_EOF
7961 int main() { return 0;}
7962 _LT_EOF
7963 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7964 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7965 _lt_result=$?
7966 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7967 lt_cv_ld_force_load=yes
7968 else
7969 cat conftest.err >&5
7970 fi
7971 rm -f conftest.err libconftest.a conftest conftest.c
7972 rm -rf conftest.dSYM
7973
7974 fi
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7976 $as_echo "$lt_cv_ld_force_load" >&6; }
7977 case $host_os in
7978 rhapsody* | darwin1.[012])
7979 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7980 darwin1.*)
7981 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7982 darwin*) # darwin 5.x on
7983 # if running on 10.5 or later, the deployment target defaults
7984 # to the OS version, if on x86, and 10.4, the deployment
7985 # target defaults to 10.4. Don't you love it?
7986 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7987 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7988 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7989 10.[012][,.]*)
7990 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7991 10.*)
7992 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7993 esac
7994 ;;
7995 esac
7996 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7997 _lt_dar_single_mod='$single_module'
7998 fi
7999 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8000 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8001 else
8002 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8003 fi
8004 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8005 _lt_dsymutil='~$DSYMUTIL $lib || :'
8006 else
8007 _lt_dsymutil=
8008 fi
8009 ;;
8010 esac
8011
8012 for ac_header in dlfcn.h
8013 do :
8014 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8015 "
8016 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8017 cat >>confdefs.h <<_ACEOF
8018 #define HAVE_DLFCN_H 1
8019 _ACEOF
8020
8021 fi
8022
8023 done
8024
8025
8026
8027
8028
8029
8030 # Set options
8031
8032
8033
8034 enable_dlopen=no
8035
8036
8037 enable_win32_dll=no
8038
8039
8040 # Check whether --enable-shared was given.
8041 if test "${enable_shared+set}" = set; then :
8042 enableval=$enable_shared; p=${PACKAGE-default}
8043 case $enableval in
8044 yes) enable_shared=yes ;;
8045 no) enable_shared=no ;;
8046 *)
8047 enable_shared=no
8048 # Look at the argument we got. We use all the common list separators.
8049 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8050 for pkg in $enableval; do
8051 IFS="$lt_save_ifs"
8052 if test "X$pkg" = "X$p"; then
8053 enable_shared=yes
8054 fi
8055 done
8056 IFS="$lt_save_ifs"
8057 ;;
8058 esac
8059 else
8060 enable_shared=yes
8061 fi
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071 # Check whether --enable-static was given.
8072 if test "${enable_static+set}" = set; then :
8073 enableval=$enable_static; p=${PACKAGE-default}
8074 case $enableval in
8075 yes) enable_static=yes ;;
8076 no) enable_static=no ;;
8077 *)
8078 enable_static=no
8079 # Look at the argument we got. We use all the common list separators.
8080 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8081 for pkg in $enableval; do
8082 IFS="$lt_save_ifs"
8083 if test "X$pkg" = "X$p"; then
8084 enable_static=yes
8085 fi
8086 done
8087 IFS="$lt_save_ifs"
8088 ;;
8089 esac
8090 else
8091 enable_static=yes
8092 fi
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103 # Check whether --with-pic was given.
8104 if test "${with_pic+set}" = set; then :
8105 withval=$with_pic; pic_mode="$withval"
8106 else
8107 pic_mode=default
8108 fi
8109
8110
8111 test -z "$pic_mode" && pic_mode=default
8112
8113
8114
8115
8116
8117
8118
8119 # Check whether --enable-fast-install was given.
8120 if test "${enable_fast_install+set}" = set; then :
8121 enableval=$enable_fast_install; p=${PACKAGE-default}
8122 case $enableval in
8123 yes) enable_fast_install=yes ;;
8124 no) enable_fast_install=no ;;
8125 *)
8126 enable_fast_install=no
8127 # Look at the argument we got. We use all the common list separators.
8128 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8129 for pkg in $enableval; do
8130 IFS="$lt_save_ifs"
8131 if test "X$pkg" = "X$p"; then
8132 enable_fast_install=yes
8133 fi
8134 done
8135 IFS="$lt_save_ifs"
8136 ;;
8137 esac
8138 else
8139 enable_fast_install=yes
8140 fi
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152 # This can be used to rebuild libtool when needed
8153 LIBTOOL_DEPS="$ltmain"
8154
8155 # Always use our own libtool.
8156 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183 test -z "$LN_S" && LN_S="ln -s"
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198 if test -n "${ZSH_VERSION+set}" ; then
8199 setopt NO_GLOB_SUBST
8200 fi
8201
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8203 $as_echo_n "checking for objdir... " >&6; }
8204 if ${lt_cv_objdir+:} false; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 rm -f .libs 2>/dev/null
8208 mkdir .libs 2>/dev/null
8209 if test -d .libs; then
8210 lt_cv_objdir=.libs
8211 else
8212 # MS-DOS does not allow filenames that begin with a dot.
8213 lt_cv_objdir=_libs
8214 fi
8215 rmdir .libs 2>/dev/null
8216 fi
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8218 $as_echo "$lt_cv_objdir" >&6; }
8219 objdir=$lt_cv_objdir
8220
8221
8222
8223
8224
8225 cat >>confdefs.h <<_ACEOF
8226 #define LT_OBJDIR "$lt_cv_objdir/"
8227 _ACEOF
8228
8229
8230
8231
8232 case $host_os in
8233 aix3*)
8234 # AIX sometimes has problems with the GCC collect2 program. For some
8235 # reason, if we set the COLLECT_NAMES environment variable, the problems
8236 # vanish in a puff of smoke.
8237 if test "X${COLLECT_NAMES+set}" != Xset; then
8238 COLLECT_NAMES=
8239 export COLLECT_NAMES
8240 fi
8241 ;;
8242 esac
8243
8244 # Global variables:
8245 ofile=libtool
8246 can_build_shared=yes
8247
8248 # All known linkers require a `.a' archive for static linking (except MSVC,
8249 # which needs '.lib').
8250 libext=a
8251
8252 with_gnu_ld="$lt_cv_prog_gnu_ld"
8253
8254 old_CC="$CC"
8255 old_CFLAGS="$CFLAGS"
8256
8257 # Set sane defaults for various variables
8258 test -z "$CC" && CC=cc
8259 test -z "$LTCC" && LTCC=$CC
8260 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8261 test -z "$LD" && LD=ld
8262 test -z "$ac_objext" && ac_objext=o
8263
8264 for cc_temp in $compiler""; do
8265 case $cc_temp in
8266 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8267 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8268 \-*) ;;
8269 *) break;;
8270 esac
8271 done
8272 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8273
8274
8275 # Only perform the check for file, if the check method requires it
8276 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8277 case $deplibs_check_method in
8278 file_magic*)
8279 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8281 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8282 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8283 $as_echo_n "(cached) " >&6
8284 else
8285 case $MAGIC_CMD in
8286 [\\/*] | ?:[\\/]*)
8287 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8288 ;;
8289 *)
8290 lt_save_MAGIC_CMD="$MAGIC_CMD"
8291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8292 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8293 for ac_dir in $ac_dummy; do
8294 IFS="$lt_save_ifs"
8295 test -z "$ac_dir" && ac_dir=.
8296 if test -f $ac_dir/${ac_tool_prefix}file; then
8297 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8298 if test -n "$file_magic_test_file"; then
8299 case $deplibs_check_method in
8300 "file_magic "*)
8301 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8303 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8304 $EGREP "$file_magic_regex" > /dev/null; then
8305 :
8306 else
8307 cat <<_LT_EOF 1>&2
8308
8309 *** Warning: the command libtool uses to detect shared libraries,
8310 *** $file_magic_cmd, produces output that libtool cannot recognize.
8311 *** The result is that libtool may fail to recognize shared libraries
8312 *** as such. This will affect the creation of libtool libraries that
8313 *** depend on shared libraries, but programs linked with such libtool
8314 *** libraries will work regardless of this problem. Nevertheless, you
8315 *** may want to report the problem to your system manager and/or to
8316 *** bug-libtool@gnu.org
8317
8318 _LT_EOF
8319 fi ;;
8320 esac
8321 fi
8322 break
8323 fi
8324 done
8325 IFS="$lt_save_ifs"
8326 MAGIC_CMD="$lt_save_MAGIC_CMD"
8327 ;;
8328 esac
8329 fi
8330
8331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8332 if test -n "$MAGIC_CMD"; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8334 $as_echo "$MAGIC_CMD" >&6; }
8335 else
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 $as_echo "no" >&6; }
8338 fi
8339
8340
8341
8342
8343
8344 if test -z "$lt_cv_path_MAGIC_CMD"; then
8345 if test -n "$ac_tool_prefix"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8347 $as_echo_n "checking for file... " >&6; }
8348 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8349 $as_echo_n "(cached) " >&6
8350 else
8351 case $MAGIC_CMD in
8352 [\\/*] | ?:[\\/]*)
8353 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8354 ;;
8355 *)
8356 lt_save_MAGIC_CMD="$MAGIC_CMD"
8357 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8358 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8359 for ac_dir in $ac_dummy; do
8360 IFS="$lt_save_ifs"
8361 test -z "$ac_dir" && ac_dir=.
8362 if test -f $ac_dir/file; then
8363 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8364 if test -n "$file_magic_test_file"; then
8365 case $deplibs_check_method in
8366 "file_magic "*)
8367 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8368 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8369 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8370 $EGREP "$file_magic_regex" > /dev/null; then
8371 :
8372 else
8373 cat <<_LT_EOF 1>&2
8374
8375 *** Warning: the command libtool uses to detect shared libraries,
8376 *** $file_magic_cmd, produces output that libtool cannot recognize.
8377 *** The result is that libtool may fail to recognize shared libraries
8378 *** as such. This will affect the creation of libtool libraries that
8379 *** depend on shared libraries, but programs linked with such libtool
8380 *** libraries will work regardless of this problem. Nevertheless, you
8381 *** may want to report the problem to your system manager and/or to
8382 *** bug-libtool@gnu.org
8383
8384 _LT_EOF
8385 fi ;;
8386 esac
8387 fi
8388 break
8389 fi
8390 done
8391 IFS="$lt_save_ifs"
8392 MAGIC_CMD="$lt_save_MAGIC_CMD"
8393 ;;
8394 esac
8395 fi
8396
8397 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8398 if test -n "$MAGIC_CMD"; then
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8400 $as_echo "$MAGIC_CMD" >&6; }
8401 else
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403 $as_echo "no" >&6; }
8404 fi
8405
8406
8407 else
8408 MAGIC_CMD=:
8409 fi
8410 fi
8411
8412 fi
8413 ;;
8414 esac
8415
8416 # Use C for the default configuration in the libtool script
8417
8418 lt_save_CC="$CC"
8419 ac_ext=c
8420 ac_cpp='$CPP $CPPFLAGS'
8421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8424
8425
8426 # Source file extension for C test sources.
8427 ac_ext=c
8428
8429 # Object file extension for compiled C test sources.
8430 objext=o
8431 objext=$objext
8432
8433 # Code to be used in simple compile tests
8434 lt_simple_compile_test_code="int some_variable = 0;"
8435
8436 # Code to be used in simple link tests
8437 lt_simple_link_test_code='int main(){return(0);}'
8438
8439
8440
8441
8442
8443
8444
8445 # If no C compiler was specified, use CC.
8446 LTCC=${LTCC-"$CC"}
8447
8448 # If no C compiler flags were specified, use CFLAGS.
8449 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8450
8451 # Allow CC to be a program name with arguments.
8452 compiler=$CC
8453
8454 # Save the default compiler, since it gets overwritten when the other
8455 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8456 compiler_DEFAULT=$CC
8457
8458 # save warnings/boilerplate of simple test code
8459 ac_outfile=conftest.$ac_objext
8460 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8461 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8462 _lt_compiler_boilerplate=`cat conftest.err`
8463 $RM conftest*
8464
8465 ac_outfile=conftest.$ac_objext
8466 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8467 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8468 _lt_linker_boilerplate=`cat conftest.err`
8469 $RM -r conftest*
8470
8471
8472 ## CAVEAT EMPTOR:
8473 ## There is no encapsulation within the following macros, do not change
8474 ## the running order or otherwise move them around unless you know exactly
8475 ## what you are doing...
8476 if test -n "$compiler"; then
8477
8478 lt_prog_compiler_no_builtin_flag=
8479
8480 if test "$GCC" = yes; then
8481 case $cc_basename in
8482 nvcc*)
8483 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8484 *)
8485 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8486 esac
8487
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8489 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8490 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 lt_cv_prog_compiler_rtti_exceptions=no
8494 ac_outfile=conftest.$ac_objext
8495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8496 lt_compiler_flag="-fno-rtti -fno-exceptions"
8497 # Insert the option either (1) after the last *FLAGS variable, or
8498 # (2) before a word containing "conftest.", or (3) at the end.
8499 # Note that $ac_compile itself does not contain backslashes and begins
8500 # with a dollar sign (not a hyphen), so the echo should work correctly.
8501 # The option is referenced via a variable to avoid confusing sed.
8502 lt_compile=`echo "$ac_compile" | $SED \
8503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8505 -e 's:$: $lt_compiler_flag:'`
8506 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8507 (eval "$lt_compile" 2>conftest.err)
8508 ac_status=$?
8509 cat conftest.err >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 if (exit $ac_status) && test -s "$ac_outfile"; then
8512 # The compiler can only warn and ignore the option if not recognized
8513 # So say no if there are warnings other than the usual output.
8514 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8516 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8517 lt_cv_prog_compiler_rtti_exceptions=yes
8518 fi
8519 fi
8520 $RM conftest*
8521
8522 fi
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8524 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8525
8526 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8527 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8528 else
8529 :
8530 fi
8531
8532 fi
8533
8534
8535
8536
8537
8538
8539 lt_prog_compiler_wl=
8540 lt_prog_compiler_pic=
8541 lt_prog_compiler_static=
8542
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8544 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8545
8546 if test "$GCC" = yes; then
8547 lt_prog_compiler_wl='-Wl,'
8548 lt_prog_compiler_static='-static'
8549
8550 case $host_os in
8551 aix*)
8552 # All AIX code is PIC.
8553 if test "$host_cpu" = ia64; then
8554 # AIX 5 now supports IA64 processor
8555 lt_prog_compiler_static='-Bstatic'
8556 fi
8557 lt_prog_compiler_pic='-fPIC'
8558 ;;
8559
8560 amigaos*)
8561 case $host_cpu in
8562 powerpc)
8563 # see comment about AmigaOS4 .so support
8564 lt_prog_compiler_pic='-fPIC'
8565 ;;
8566 m68k)
8567 # FIXME: we need at least 68020 code to build shared libraries, but
8568 # adding the `-m68020' flag to GCC prevents building anything better,
8569 # like `-m68040'.
8570 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8571 ;;
8572 esac
8573 ;;
8574
8575 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8576 # PIC is the default for these OSes.
8577 ;;
8578
8579 mingw* | cygwin* | pw32* | os2* | cegcc*)
8580 # This hack is so that the source file can tell whether it is being
8581 # built for inclusion in a dll (and should export symbols for example).
8582 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8583 # (--disable-auto-import) libraries
8584 lt_prog_compiler_pic='-DDLL_EXPORT'
8585 ;;
8586
8587 darwin* | rhapsody*)
8588 # PIC is the default on this platform
8589 # Common symbols not allowed in MH_DYLIB files
8590 lt_prog_compiler_pic='-fno-common'
8591 ;;
8592
8593 haiku*)
8594 # PIC is the default for Haiku.
8595 # The "-static" flag exists, but is broken.
8596 lt_prog_compiler_static=
8597 ;;
8598
8599 hpux*)
8600 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8601 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8602 # sets the default TLS model and affects inlining.
8603 case $host_cpu in
8604 hppa*64*)
8605 # +Z the default
8606 ;;
8607 *)
8608 lt_prog_compiler_pic='-fPIC'
8609 ;;
8610 esac
8611 ;;
8612
8613 interix[3-9]*)
8614 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8615 # Instead, we relocate shared libraries at runtime.
8616 ;;
8617
8618 msdosdjgpp*)
8619 # Just because we use GCC doesn't mean we suddenly get shared libraries
8620 # on systems that don't support them.
8621 lt_prog_compiler_can_build_shared=no
8622 enable_shared=no
8623 ;;
8624
8625 *nto* | *qnx*)
8626 # QNX uses GNU C++, but need to define -shared option too, otherwise
8627 # it will coredump.
8628 lt_prog_compiler_pic='-fPIC -shared'
8629 ;;
8630
8631 sysv4*MP*)
8632 if test -d /usr/nec; then
8633 lt_prog_compiler_pic=-Kconform_pic
8634 fi
8635 ;;
8636
8637 *)
8638 lt_prog_compiler_pic='-fPIC'
8639 ;;
8640 esac
8641
8642 case $cc_basename in
8643 nvcc*) # Cuda Compiler Driver 2.2
8644 lt_prog_compiler_wl='-Xlinker '
8645 lt_prog_compiler_pic='-Xcompiler -fPIC'
8646 ;;
8647 esac
8648 else
8649 # PORTME Check for flag to pass linker flags through the system compiler.
8650 case $host_os in
8651 aix*)
8652 lt_prog_compiler_wl='-Wl,'
8653 if test "$host_cpu" = ia64; then
8654 # AIX 5 now supports IA64 processor
8655 lt_prog_compiler_static='-Bstatic'
8656 else
8657 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8658 fi
8659 ;;
8660
8661 mingw* | cygwin* | pw32* | os2* | cegcc*)
8662 # This hack is so that the source file can tell whether it is being
8663 # built for inclusion in a dll (and should export symbols for example).
8664 lt_prog_compiler_pic='-DDLL_EXPORT'
8665 ;;
8666
8667 hpux9* | hpux10* | hpux11*)
8668 lt_prog_compiler_wl='-Wl,'
8669 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8670 # not for PA HP-UX.
8671 case $host_cpu in
8672 hppa*64*|ia64*)
8673 # +Z the default
8674 ;;
8675 *)
8676 lt_prog_compiler_pic='+Z'
8677 ;;
8678 esac
8679 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8680 lt_prog_compiler_static='${wl}-a ${wl}archive'
8681 ;;
8682
8683 irix5* | irix6* | nonstopux*)
8684 lt_prog_compiler_wl='-Wl,'
8685 # PIC (with -KPIC) is the default.
8686 lt_prog_compiler_static='-non_shared'
8687 ;;
8688
8689 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8690 case $cc_basename in
8691 # old Intel for x86_64 which still supported -KPIC.
8692 ecc*)
8693 lt_prog_compiler_wl='-Wl,'
8694 lt_prog_compiler_pic='-KPIC'
8695 lt_prog_compiler_static='-static'
8696 ;;
8697 # icc used to be incompatible with GCC.
8698 # ICC 10 doesn't accept -KPIC any more.
8699 icc* | ifort*)
8700 lt_prog_compiler_wl='-Wl,'
8701 lt_prog_compiler_pic='-fPIC'
8702 lt_prog_compiler_static='-static'
8703 ;;
8704 # Lahey Fortran 8.1.
8705 lf95*)
8706 lt_prog_compiler_wl='-Wl,'
8707 lt_prog_compiler_pic='--shared'
8708 lt_prog_compiler_static='--static'
8709 ;;
8710 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8711 # Portland Group compilers (*not* the Pentium gcc compiler,
8712 # which looks to be a dead project)
8713 lt_prog_compiler_wl='-Wl,'
8714 lt_prog_compiler_pic='-fpic'
8715 lt_prog_compiler_static='-Bstatic'
8716 ;;
8717 ccc*)
8718 lt_prog_compiler_wl='-Wl,'
8719 # All Alpha code is PIC.
8720 lt_prog_compiler_static='-non_shared'
8721 ;;
8722 xl* | bgxl* | bgf* | mpixl*)
8723 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8724 lt_prog_compiler_wl='-Wl,'
8725 lt_prog_compiler_pic='-qpic'
8726 lt_prog_compiler_static='-qstaticlink'
8727 ;;
8728 *)
8729 case `$CC -V 2>&1 | sed 5q` in
8730 *Sun\ F* | *Sun*Fortran*)
8731 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8732 lt_prog_compiler_pic='-KPIC'
8733 lt_prog_compiler_static='-Bstatic'
8734 lt_prog_compiler_wl=''
8735 ;;
8736 *Sun\ C*)
8737 # Sun C 5.9
8738 lt_prog_compiler_pic='-KPIC'
8739 lt_prog_compiler_static='-Bstatic'
8740 lt_prog_compiler_wl='-Wl,'
8741 ;;
8742 esac
8743 ;;
8744 esac
8745 ;;
8746
8747 newsos6)
8748 lt_prog_compiler_pic='-KPIC'
8749 lt_prog_compiler_static='-Bstatic'
8750 ;;
8751
8752 *nto* | *qnx*)
8753 # QNX uses GNU C++, but need to define -shared option too, otherwise
8754 # it will coredump.
8755 lt_prog_compiler_pic='-fPIC -shared'
8756 ;;
8757
8758 osf3* | osf4* | osf5*)
8759 lt_prog_compiler_wl='-Wl,'
8760 # All OSF/1 code is PIC.
8761 lt_prog_compiler_static='-non_shared'
8762 ;;
8763
8764 rdos*)
8765 lt_prog_compiler_static='-non_shared'
8766 ;;
8767
8768 solaris*)
8769 lt_prog_compiler_pic='-KPIC'
8770 lt_prog_compiler_static='-Bstatic'
8771 case $cc_basename in
8772 f77* | f90* | f95*)
8773 lt_prog_compiler_wl='-Qoption ld ';;
8774 *)
8775 lt_prog_compiler_wl='-Wl,';;
8776 esac
8777 ;;
8778
8779 sunos4*)
8780 lt_prog_compiler_wl='-Qoption ld '
8781 lt_prog_compiler_pic='-PIC'
8782 lt_prog_compiler_static='-Bstatic'
8783 ;;
8784
8785 sysv4 | sysv4.2uw2* | sysv4.3*)
8786 lt_prog_compiler_wl='-Wl,'
8787 lt_prog_compiler_pic='-KPIC'
8788 lt_prog_compiler_static='-Bstatic'
8789 ;;
8790
8791 sysv4*MP*)
8792 if test -d /usr/nec ;then
8793 lt_prog_compiler_pic='-Kconform_pic'
8794 lt_prog_compiler_static='-Bstatic'
8795 fi
8796 ;;
8797
8798 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8799 lt_prog_compiler_wl='-Wl,'
8800 lt_prog_compiler_pic='-KPIC'
8801 lt_prog_compiler_static='-Bstatic'
8802 ;;
8803
8804 unicos*)
8805 lt_prog_compiler_wl='-Wl,'
8806 lt_prog_compiler_can_build_shared=no
8807 ;;
8808
8809 uts4*)
8810 lt_prog_compiler_pic='-pic'
8811 lt_prog_compiler_static='-Bstatic'
8812 ;;
8813
8814 *)
8815 lt_prog_compiler_can_build_shared=no
8816 ;;
8817 esac
8818 fi
8819
8820 case $host_os in
8821 # For platforms which do not support PIC, -DPIC is meaningless:
8822 *djgpp*)
8823 lt_prog_compiler_pic=
8824 ;;
8825 *)
8826 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8827 ;;
8828 esac
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8830 $as_echo "$lt_prog_compiler_pic" >&6; }
8831
8832
8833
8834
8835
8836
8837 #
8838 # Check to make sure the PIC flag actually works.
8839 #
8840 if test -n "$lt_prog_compiler_pic"; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8842 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8843 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8844 $as_echo_n "(cached) " >&6
8845 else
8846 lt_cv_prog_compiler_pic_works=no
8847 ac_outfile=conftest.$ac_objext
8848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8849 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8850 # Insert the option either (1) after the last *FLAGS variable, or
8851 # (2) before a word containing "conftest.", or (3) at the end.
8852 # Note that $ac_compile itself does not contain backslashes and begins
8853 # with a dollar sign (not a hyphen), so the echo should work correctly.
8854 # The option is referenced via a variable to avoid confusing sed.
8855 lt_compile=`echo "$ac_compile" | $SED \
8856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8858 -e 's:$: $lt_compiler_flag:'`
8859 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8860 (eval "$lt_compile" 2>conftest.err)
8861 ac_status=$?
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 if (exit $ac_status) && test -s "$ac_outfile"; then
8865 # The compiler can only warn and ignore the option if not recognized
8866 # So say no if there are warnings other than the usual output.
8867 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8869 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8870 lt_cv_prog_compiler_pic_works=yes
8871 fi
8872 fi
8873 $RM conftest*
8874
8875 fi
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8877 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8878
8879 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8880 case $lt_prog_compiler_pic in
8881 "" | " "*) ;;
8882 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8883 esac
8884 else
8885 lt_prog_compiler_pic=
8886 lt_prog_compiler_can_build_shared=no
8887 fi
8888
8889 fi
8890
8891
8892
8893
8894
8895
8896 #
8897 # Check to make sure the static flag actually works.
8898 #
8899 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8901 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8902 if ${lt_cv_prog_compiler_static_works+:} false; then :
8903 $as_echo_n "(cached) " >&6
8904 else
8905 lt_cv_prog_compiler_static_works=no
8906 save_LDFLAGS="$LDFLAGS"
8907 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8908 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8909 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8910 # The linker can only warn and ignore the option if not recognized
8911 # So say no if there are warnings
8912 if test -s conftest.err; then
8913 # Append any errors to the config.log.
8914 cat conftest.err 1>&5
8915 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8917 if diff conftest.exp conftest.er2 >/dev/null; then
8918 lt_cv_prog_compiler_static_works=yes
8919 fi
8920 else
8921 lt_cv_prog_compiler_static_works=yes
8922 fi
8923 fi
8924 $RM -r conftest*
8925 LDFLAGS="$save_LDFLAGS"
8926
8927 fi
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8929 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8930
8931 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8932 :
8933 else
8934 lt_prog_compiler_static=
8935 fi
8936
8937
8938
8939
8940
8941
8942
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8944 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8945 if ${lt_cv_prog_compiler_c_o+:} false; then :
8946 $as_echo_n "(cached) " >&6
8947 else
8948 lt_cv_prog_compiler_c_o=no
8949 $RM -r conftest 2>/dev/null
8950 mkdir conftest
8951 cd conftest
8952 mkdir out
8953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8954
8955 lt_compiler_flag="-o out/conftest2.$ac_objext"
8956 # Insert the option either (1) after the last *FLAGS variable, or
8957 # (2) before a word containing "conftest.", or (3) at the end.
8958 # Note that $ac_compile itself does not contain backslashes and begins
8959 # with a dollar sign (not a hyphen), so the echo should work correctly.
8960 lt_compile=`echo "$ac_compile" | $SED \
8961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8963 -e 's:$: $lt_compiler_flag:'`
8964 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8965 (eval "$lt_compile" 2>out/conftest.err)
8966 ac_status=$?
8967 cat out/conftest.err >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8970 then
8971 # The compiler can only warn and ignore the option if not recognized
8972 # So say no if there are warnings
8973 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8974 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8975 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8976 lt_cv_prog_compiler_c_o=yes
8977 fi
8978 fi
8979 chmod u+w . 2>&5
8980 $RM conftest*
8981 # SGI C++ compiler will create directory out/ii_files/ for
8982 # template instantiation
8983 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8984 $RM out/* && rmdir out
8985 cd ..
8986 $RM -r conftest
8987 $RM conftest*
8988
8989 fi
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8991 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8992
8993
8994
8995
8996
8997
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8999 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9000 if ${lt_cv_prog_compiler_c_o+:} false; then :
9001 $as_echo_n "(cached) " >&6
9002 else
9003 lt_cv_prog_compiler_c_o=no
9004 $RM -r conftest 2>/dev/null
9005 mkdir conftest
9006 cd conftest
9007 mkdir out
9008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9009
9010 lt_compiler_flag="-o out/conftest2.$ac_objext"
9011 # Insert the option either (1) after the last *FLAGS variable, or
9012 # (2) before a word containing "conftest.", or (3) at the end.
9013 # Note that $ac_compile itself does not contain backslashes and begins
9014 # with a dollar sign (not a hyphen), so the echo should work correctly.
9015 lt_compile=`echo "$ac_compile" | $SED \
9016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9018 -e 's:$: $lt_compiler_flag:'`
9019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9020 (eval "$lt_compile" 2>out/conftest.err)
9021 ac_status=$?
9022 cat out/conftest.err >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9025 then
9026 # The compiler can only warn and ignore the option if not recognized
9027 # So say no if there are warnings
9028 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9029 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9030 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9031 lt_cv_prog_compiler_c_o=yes
9032 fi
9033 fi
9034 chmod u+w . 2>&5
9035 $RM conftest*
9036 # SGI C++ compiler will create directory out/ii_files/ for
9037 # template instantiation
9038 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9039 $RM out/* && rmdir out
9040 cd ..
9041 $RM -r conftest
9042 $RM conftest*
9043
9044 fi
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9046 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9047
9048
9049
9050
9051 hard_links="nottested"
9052 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9053 # do not overwrite the value of need_locks provided by the user
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9055 $as_echo_n "checking if we can lock with hard links... " >&6; }
9056 hard_links=yes
9057 $RM conftest*
9058 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9059 touch conftest.a
9060 ln conftest.a conftest.b 2>&5 || hard_links=no
9061 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9063 $as_echo "$hard_links" >&6; }
9064 if test "$hard_links" = no; then
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9066 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9067 need_locks=warn
9068 fi
9069 else
9070 need_locks=no
9071 fi
9072
9073
9074
9075
9076
9077
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9079 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9080
9081 runpath_var=
9082 allow_undefined_flag=
9083 always_export_symbols=no
9084 archive_cmds=
9085 archive_expsym_cmds=
9086 compiler_needs_object=no
9087 enable_shared_with_static_runtimes=no
9088 export_dynamic_flag_spec=
9089 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9090 hardcode_automatic=no
9091 hardcode_direct=no
9092 hardcode_direct_absolute=no
9093 hardcode_libdir_flag_spec=
9094 hardcode_libdir_flag_spec_ld=
9095 hardcode_libdir_separator=
9096 hardcode_minus_L=no
9097 hardcode_shlibpath_var=unsupported
9098 inherit_rpath=no
9099 link_all_deplibs=unknown
9100 module_cmds=
9101 module_expsym_cmds=
9102 old_archive_from_new_cmds=
9103 old_archive_from_expsyms_cmds=
9104 thread_safe_flag_spec=
9105 whole_archive_flag_spec=
9106 # include_expsyms should be a list of space-separated symbols to be *always*
9107 # included in the symbol list
9108 include_expsyms=
9109 # exclude_expsyms can be an extended regexp of symbols to exclude
9110 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9111 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9112 # as well as any symbol that contains `d'.
9113 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9114 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9115 # platforms (ab)use it in PIC code, but their linkers get confused if
9116 # the symbol is explicitly referenced. Since portable code cannot
9117 # rely on this symbol name, it's probably fine to never include it in
9118 # preloaded symbol tables.
9119 # Exclude shared library initialization/finalization symbols.
9120 extract_expsyms_cmds=
9121
9122 case $host_os in
9123 cygwin* | mingw* | pw32* | cegcc*)
9124 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9125 # When not using gcc, we currently assume that we are using
9126 # Microsoft Visual C++.
9127 if test "$GCC" != yes; then
9128 with_gnu_ld=no
9129 fi
9130 ;;
9131 interix*)
9132 # we just hope/assume this is gcc and not c89 (= MSVC++)
9133 with_gnu_ld=yes
9134 ;;
9135 openbsd*)
9136 with_gnu_ld=no
9137 ;;
9138 esac
9139
9140 ld_shlibs=yes
9141
9142 # On some targets, GNU ld is compatible enough with the native linker
9143 # that we're better off using the native interface for both.
9144 lt_use_gnu_ld_interface=no
9145 if test "$with_gnu_ld" = yes; then
9146 case $host_os in
9147 aix*)
9148 # The AIX port of GNU ld has always aspired to compatibility
9149 # with the native linker. However, as the warning in the GNU ld
9150 # block says, versions before 2.19.5* couldn't really create working
9151 # shared libraries, regardless of the interface used.
9152 case `$LD -v 2>&1` in
9153 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9154 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9155 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9156 *)
9157 lt_use_gnu_ld_interface=yes
9158 ;;
9159 esac
9160 ;;
9161 *)
9162 lt_use_gnu_ld_interface=yes
9163 ;;
9164 esac
9165 fi
9166
9167 if test "$lt_use_gnu_ld_interface" = yes; then
9168 # If archive_cmds runs LD, not CC, wlarc should be empty
9169 wlarc='${wl}'
9170
9171 # Set some defaults for GNU ld with shared library support. These
9172 # are reset later if shared libraries are not supported. Putting them
9173 # here allows them to be overridden if necessary.
9174 runpath_var=LD_RUN_PATH
9175 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9176 export_dynamic_flag_spec='${wl}--export-dynamic'
9177 # ancient GNU ld didn't support --whole-archive et. al.
9178 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9179 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9180 else
9181 whole_archive_flag_spec=
9182 fi
9183 supports_anon_versioning=no
9184 case `$LD -v 2>&1` in
9185 *GNU\ gold*) supports_anon_versioning=yes ;;
9186 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9187 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9188 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9189 *\ 2.11.*) ;; # other 2.11 versions
9190 *) supports_anon_versioning=yes ;;
9191 esac
9192
9193 # See if GNU ld supports shared libraries.
9194 case $host_os in
9195 aix[3-9]*)
9196 # On AIX/PPC, the GNU linker is very broken
9197 if test "$host_cpu" != ia64; then
9198 ld_shlibs=no
9199 cat <<_LT_EOF 1>&2
9200
9201 *** Warning: the GNU linker, at least up to release 2.19, is reported
9202 *** to be unable to reliably create shared libraries on AIX.
9203 *** Therefore, libtool is disabling shared libraries support. If you
9204 *** really care for shared libraries, you may want to install binutils
9205 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9206 *** You will then need to restart the configuration process.
9207
9208 _LT_EOF
9209 fi
9210 ;;
9211
9212 amigaos*)
9213 case $host_cpu in
9214 powerpc)
9215 # see comment about AmigaOS4 .so support
9216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9217 archive_expsym_cmds=''
9218 ;;
9219 m68k)
9220 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)'
9221 hardcode_libdir_flag_spec='-L$libdir'
9222 hardcode_minus_L=yes
9223 ;;
9224 esac
9225 ;;
9226
9227 beos*)
9228 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9229 allow_undefined_flag=unsupported
9230 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9231 # support --undefined. This deserves some investigation. FIXME
9232 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9233 else
9234 ld_shlibs=no
9235 fi
9236 ;;
9237
9238 cygwin* | mingw* | pw32* | cegcc*)
9239 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9240 # as there is no search path for DLLs.
9241 hardcode_libdir_flag_spec='-L$libdir'
9242 export_dynamic_flag_spec='${wl}--export-all-symbols'
9243 allow_undefined_flag=unsupported
9244 always_export_symbols=no
9245 enable_shared_with_static_runtimes=yes
9246 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9247
9248 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9250 # If the export-symbols file already is a .def file (1st line
9251 # is EXPORTS), use it as is; otherwise, prepend...
9252 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9253 cp $export_symbols $output_objdir/$soname.def;
9254 else
9255 echo EXPORTS > $output_objdir/$soname.def;
9256 cat $export_symbols >> $output_objdir/$soname.def;
9257 fi~
9258 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9259 else
9260 ld_shlibs=no
9261 fi
9262 ;;
9263
9264 haiku*)
9265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9266 link_all_deplibs=yes
9267 ;;
9268
9269 interix[3-9]*)
9270 hardcode_direct=no
9271 hardcode_shlibpath_var=no
9272 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9273 export_dynamic_flag_spec='${wl}-E'
9274 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9275 # Instead, shared libraries are loaded at an image base (0x10000000 by
9276 # default) and relocated if they conflict, which is a slow very memory
9277 # consuming and fragmenting process. To avoid this, we pick a random,
9278 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9279 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9280 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9281 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'
9282 ;;
9283
9284 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9285 tmp_diet=no
9286 if test "$host_os" = linux-dietlibc; then
9287 case $cc_basename in
9288 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9289 esac
9290 fi
9291 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9292 && test "$tmp_diet" = no
9293 then
9294 tmp_addflag=' $pic_flag'
9295 tmp_sharedflag='-shared'
9296 case $cc_basename,$host_cpu in
9297 pgcc*) # Portland Group C compiler
9298 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'
9299 tmp_addflag=' $pic_flag'
9300 ;;
9301 pgf77* | pgf90* | pgf95* | pgfortran*)
9302 # Portland Group f77 and f90 compilers
9303 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'
9304 tmp_addflag=' $pic_flag -Mnomain' ;;
9305 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9306 tmp_addflag=' -i_dynamic' ;;
9307 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9308 tmp_addflag=' -i_dynamic -nofor_main' ;;
9309 ifc* | ifort*) # Intel Fortran compiler
9310 tmp_addflag=' -nofor_main' ;;
9311 lf95*) # Lahey Fortran 8.1
9312 whole_archive_flag_spec=
9313 tmp_sharedflag='--shared' ;;
9314 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9315 tmp_sharedflag='-qmkshrobj'
9316 tmp_addflag= ;;
9317 nvcc*) # Cuda Compiler Driver 2.2
9318 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'
9319 compiler_needs_object=yes
9320 ;;
9321 esac
9322 case `$CC -V 2>&1 | sed 5q` in
9323 *Sun\ C*) # Sun C 5.9
9324 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'
9325 compiler_needs_object=yes
9326 tmp_sharedflag='-G' ;;
9327 *Sun\ F*) # Sun Fortran 8.3
9328 tmp_sharedflag='-G' ;;
9329 esac
9330 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9331
9332 if test "x$supports_anon_versioning" = xyes; then
9333 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9334 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9335 echo "local: *; };" >> $output_objdir/$libname.ver~
9336 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9337 fi
9338
9339 case $cc_basename in
9340 xlf* | bgf* | bgxlf* | mpixlf*)
9341 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9342 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9343 hardcode_libdir_flag_spec=
9344 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9345 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9346 if test "x$supports_anon_versioning" = xyes; then
9347 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9349 echo "local: *; };" >> $output_objdir/$libname.ver~
9350 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9351 fi
9352 ;;
9353 esac
9354 else
9355 ld_shlibs=no
9356 fi
9357 ;;
9358
9359 netbsd*)
9360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9361 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9362 wlarc=
9363 else
9364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9365 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9366 fi
9367 ;;
9368
9369 solaris*)
9370 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9371 ld_shlibs=no
9372 cat <<_LT_EOF 1>&2
9373
9374 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9375 *** create shared libraries on Solaris systems. Therefore, libtool
9376 *** is disabling shared libraries support. We urge you to upgrade GNU
9377 *** binutils to release 2.9.1 or newer. Another option is to modify
9378 *** your PATH or compiler configuration so that the native linker is
9379 *** used, and then restart.
9380
9381 _LT_EOF
9382 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9384 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9385 else
9386 ld_shlibs=no
9387 fi
9388 ;;
9389
9390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9391 case `$LD -v 2>&1` in
9392 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9393 ld_shlibs=no
9394 cat <<_LT_EOF 1>&2
9395
9396 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9397 *** reliably create shared libraries on SCO systems. Therefore, libtool
9398 *** is disabling shared libraries support. We urge you to upgrade GNU
9399 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9400 *** your PATH or compiler configuration so that the native linker is
9401 *** used, and then restart.
9402
9403 _LT_EOF
9404 ;;
9405 *)
9406 # For security reasons, it is highly recommended that you always
9407 # use absolute paths for naming shared libraries, and exclude the
9408 # DT_RUNPATH tag from executables and libraries. But doing so
9409 # requires that you compile everything twice, which is a pain.
9410 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9413 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9414 else
9415 ld_shlibs=no
9416 fi
9417 ;;
9418 esac
9419 ;;
9420
9421 sunos4*)
9422 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9423 wlarc=
9424 hardcode_direct=yes
9425 hardcode_shlibpath_var=no
9426 ;;
9427
9428 *)
9429 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9431 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9432 else
9433 ld_shlibs=no
9434 fi
9435 ;;
9436 esac
9437
9438 if test "$ld_shlibs" = no; then
9439 runpath_var=
9440 hardcode_libdir_flag_spec=
9441 export_dynamic_flag_spec=
9442 whole_archive_flag_spec=
9443 fi
9444 else
9445 # PORTME fill in a description of your system's linker (not GNU ld)
9446 case $host_os in
9447 aix3*)
9448 allow_undefined_flag=unsupported
9449 always_export_symbols=yes
9450 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'
9451 # Note: this linker hardcodes the directories in LIBPATH if there
9452 # are no directories specified by -L.
9453 hardcode_minus_L=yes
9454 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9455 # Neither direct hardcoding nor static linking is supported with a
9456 # broken collect2.
9457 hardcode_direct=unsupported
9458 fi
9459 ;;
9460
9461 aix[4-9]*)
9462 if test "$host_cpu" = ia64; then
9463 # On IA64, the linker does run time linking by default, so we don't
9464 # have to do anything special.
9465 aix_use_runtimelinking=no
9466 exp_sym_flag='-Bexport'
9467 no_entry_flag=""
9468 else
9469 # If we're using GNU nm, then we don't want the "-C" option.
9470 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9471 # Also, AIX nm treats weak defined symbols like other global
9472 # defined symbols, whereas GNU nm marks them as "W".
9473 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9474 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'
9475 else
9476 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'
9477 fi
9478 aix_use_runtimelinking=no
9479
9480 # Test if we are trying to use run time linking or normal
9481 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9482 # need to do runtime linking.
9483 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9484 for ld_flag in $LDFLAGS; do
9485 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9486 aix_use_runtimelinking=yes
9487 break
9488 fi
9489 done
9490 ;;
9491 esac
9492
9493 exp_sym_flag='-bexport'
9494 no_entry_flag='-bnoentry'
9495 fi
9496
9497 # When large executables or shared objects are built, AIX ld can
9498 # have problems creating the table of contents. If linking a library
9499 # or program results in "error TOC overflow" add -mminimal-toc to
9500 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9501 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9502
9503 archive_cmds=''
9504 hardcode_direct=yes
9505 hardcode_direct_absolute=yes
9506 hardcode_libdir_separator=':'
9507 link_all_deplibs=yes
9508 file_list_spec='${wl}-f,'
9509
9510 if test "$GCC" = yes; then
9511 case $host_os in aix4.[012]|aix4.[012].*)
9512 # We only want to do this on AIX 4.2 and lower, the check
9513 # below for broken collect2 doesn't work under 4.3+
9514 collect2name=`${CC} -print-prog-name=collect2`
9515 if test -f "$collect2name" &&
9516 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9517 then
9518 # We have reworked collect2
9519 :
9520 else
9521 # We have old collect2
9522 hardcode_direct=unsupported
9523 # It fails to find uninstalled libraries when the uninstalled
9524 # path is not listed in the libpath. Setting hardcode_minus_L
9525 # to unsupported forces relinking
9526 hardcode_minus_L=yes
9527 hardcode_libdir_flag_spec='-L$libdir'
9528 hardcode_libdir_separator=
9529 fi
9530 ;;
9531 esac
9532 shared_flag='-shared'
9533 if test "$aix_use_runtimelinking" = yes; then
9534 shared_flag="$shared_flag "'${wl}-G'
9535 fi
9536 else
9537 # not using gcc
9538 if test "$host_cpu" = ia64; then
9539 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9540 # chokes on -Wl,-G. The following line is correct:
9541 shared_flag='-G'
9542 else
9543 if test "$aix_use_runtimelinking" = yes; then
9544 shared_flag='${wl}-G'
9545 else
9546 shared_flag='${wl}-bM:SRE'
9547 fi
9548 fi
9549 fi
9550
9551 export_dynamic_flag_spec='${wl}-bexpall'
9552 # It seems that -bexpall does not export symbols beginning with
9553 # underscore (_), so it is better to generate a list of symbols to export.
9554 always_export_symbols=yes
9555 if test "$aix_use_runtimelinking" = yes; then
9556 # Warning - without using the other runtime loading flags (-brtl),
9557 # -berok will link without error, but may produce a broken library.
9558 allow_undefined_flag='-berok'
9559 # Determine the default libpath from the value encoded in an
9560 # empty executable.
9561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9562 /* end confdefs.h. */
9563
9564 int
9565 main ()
9566 {
9567
9568 ;
9569 return 0;
9570 }
9571 _ACEOF
9572 if ac_fn_c_try_link "$LINENO"; then :
9573
9574 lt_aix_libpath_sed='
9575 /Import File Strings/,/^$/ {
9576 /^0/ {
9577 s/^0 *\(.*\)$/\1/
9578 p
9579 }
9580 }'
9581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9582 # Check for a 64-bit object if we didn't find anything.
9583 if test -z "$aix_libpath"; then
9584 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9585 fi
9586 fi
9587 rm -f core conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext conftest.$ac_ext
9589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9590
9591 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9592 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"
9593 else
9594 if test "$host_cpu" = ia64; then
9595 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9596 allow_undefined_flag="-z nodefs"
9597 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"
9598 else
9599 # Determine the default libpath from the value encoded in an
9600 # empty executable.
9601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9602 /* end confdefs.h. */
9603
9604 int
9605 main ()
9606 {
9607
9608 ;
9609 return 0;
9610 }
9611 _ACEOF
9612 if ac_fn_c_try_link "$LINENO"; then :
9613
9614 lt_aix_libpath_sed='
9615 /Import File Strings/,/^$/ {
9616 /^0/ {
9617 s/^0 *\(.*\)$/\1/
9618 p
9619 }
9620 }'
9621 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9622 # Check for a 64-bit object if we didn't find anything.
9623 if test -z "$aix_libpath"; then
9624 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9625 fi
9626 fi
9627 rm -f core conftest.err conftest.$ac_objext \
9628 conftest$ac_exeext conftest.$ac_ext
9629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9630
9631 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9632 # Warning - without using the other run time loading flags,
9633 # -berok will link without error, but may produce a broken library.
9634 no_undefined_flag=' ${wl}-bernotok'
9635 allow_undefined_flag=' ${wl}-berok'
9636 if test "$with_gnu_ld" = yes; then
9637 # We only use this code for GNU lds that support --whole-archive.
9638 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9639 else
9640 # Exported symbols can be pulled into shared objects from archives
9641 whole_archive_flag_spec='$convenience'
9642 fi
9643 archive_cmds_need_lc=yes
9644 # This is similar to how AIX traditionally builds its shared libraries.
9645 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'
9646 fi
9647 fi
9648 ;;
9649
9650 amigaos*)
9651 case $host_cpu in
9652 powerpc)
9653 # see comment about AmigaOS4 .so support
9654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9655 archive_expsym_cmds=''
9656 ;;
9657 m68k)
9658 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)'
9659 hardcode_libdir_flag_spec='-L$libdir'
9660 hardcode_minus_L=yes
9661 ;;
9662 esac
9663 ;;
9664
9665 bsdi[45]*)
9666 export_dynamic_flag_spec=-rdynamic
9667 ;;
9668
9669 cygwin* | mingw* | pw32* | cegcc*)
9670 # When not using gcc, we currently assume that we are using
9671 # Microsoft Visual C++.
9672 # hardcode_libdir_flag_spec is actually meaningless, as there is
9673 # no search path for DLLs.
9674 hardcode_libdir_flag_spec=' '
9675 allow_undefined_flag=unsupported
9676 # Tell ltmain to make .lib files, not .a files.
9677 libext=lib
9678 # Tell ltmain to make .dll files, not .so files.
9679 shrext_cmds=".dll"
9680 # FIXME: Setting linknames here is a bad hack.
9681 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9682 # The linker will automatically build a .lib file if we build a DLL.
9683 old_archive_from_new_cmds='true'
9684 # FIXME: Should let the user specify the lib program.
9685 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9686 fix_srcfile_path='`cygpath -w "$srcfile"`'
9687 enable_shared_with_static_runtimes=yes
9688 ;;
9689
9690 darwin* | rhapsody*)
9691
9692
9693 archive_cmds_need_lc=no
9694 hardcode_direct=no
9695 hardcode_automatic=yes
9696 hardcode_shlibpath_var=unsupported
9697 if test "$lt_cv_ld_force_load" = "yes"; then
9698 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\"`'
9699 else
9700 whole_archive_flag_spec=''
9701 fi
9702 link_all_deplibs=yes
9703 allow_undefined_flag="$_lt_dar_allow_undefined"
9704 case $cc_basename in
9705 ifort*) _lt_dar_can_shared=yes ;;
9706 *) _lt_dar_can_shared=$GCC ;;
9707 esac
9708 if test "$_lt_dar_can_shared" = "yes"; then
9709 output_verbose_link_cmd=func_echo_all
9710 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9711 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9712 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}"
9713 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}"
9714
9715 else
9716 ld_shlibs=no
9717 fi
9718
9719 ;;
9720
9721 dgux*)
9722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723 hardcode_libdir_flag_spec='-L$libdir'
9724 hardcode_shlibpath_var=no
9725 ;;
9726
9727 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9728 # support. Future versions do this automatically, but an explicit c++rt0.o
9729 # does not break anything, and helps significantly (at the cost of a little
9730 # extra space).
9731 freebsd2.2*)
9732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9733 hardcode_libdir_flag_spec='-R$libdir'
9734 hardcode_direct=yes
9735 hardcode_shlibpath_var=no
9736 ;;
9737
9738 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9739 freebsd2.*)
9740 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9741 hardcode_direct=yes
9742 hardcode_minus_L=yes
9743 hardcode_shlibpath_var=no
9744 ;;
9745
9746 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9747 freebsd* | dragonfly*)
9748 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9749 hardcode_libdir_flag_spec='-R$libdir'
9750 hardcode_direct=yes
9751 hardcode_shlibpath_var=no
9752 ;;
9753
9754 hpux9*)
9755 if test "$GCC" = yes; then
9756 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'
9757 else
9758 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'
9759 fi
9760 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9761 hardcode_libdir_separator=:
9762 hardcode_direct=yes
9763
9764 # hardcode_minus_L: Not really in the search PATH,
9765 # but as the default location of the library.
9766 hardcode_minus_L=yes
9767 export_dynamic_flag_spec='${wl}-E'
9768 ;;
9769
9770 hpux10*)
9771 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9772 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9773 else
9774 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9775 fi
9776 if test "$with_gnu_ld" = no; then
9777 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9778 hardcode_libdir_flag_spec_ld='+b $libdir'
9779 hardcode_libdir_separator=:
9780 hardcode_direct=yes
9781 hardcode_direct_absolute=yes
9782 export_dynamic_flag_spec='${wl}-E'
9783 # hardcode_minus_L: Not really in the search PATH,
9784 # but as the default location of the library.
9785 hardcode_minus_L=yes
9786 fi
9787 ;;
9788
9789 hpux11*)
9790 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9791 case $host_cpu in
9792 hppa*64*)
9793 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9794 ;;
9795 ia64*)
9796 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9797 ;;
9798 *)
9799 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9800 ;;
9801 esac
9802 else
9803 case $host_cpu in
9804 hppa*64*)
9805 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9806 ;;
9807 ia64*)
9808 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9809 ;;
9810 *)
9811
9812 # Older versions of the 11.00 compiler do not understand -b yet
9813 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9815 $as_echo_n "checking if $CC understands -b... " >&6; }
9816 if ${lt_cv_prog_compiler__b+:} false; then :
9817 $as_echo_n "(cached) " >&6
9818 else
9819 lt_cv_prog_compiler__b=no
9820 save_LDFLAGS="$LDFLAGS"
9821 LDFLAGS="$LDFLAGS -b"
9822 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9823 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9824 # The linker can only warn and ignore the option if not recognized
9825 # So say no if there are warnings
9826 if test -s conftest.err; then
9827 # Append any errors to the config.log.
9828 cat conftest.err 1>&5
9829 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9830 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9831 if diff conftest.exp conftest.er2 >/dev/null; then
9832 lt_cv_prog_compiler__b=yes
9833 fi
9834 else
9835 lt_cv_prog_compiler__b=yes
9836 fi
9837 fi
9838 $RM -r conftest*
9839 LDFLAGS="$save_LDFLAGS"
9840
9841 fi
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9843 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9844
9845 if test x"$lt_cv_prog_compiler__b" = xyes; then
9846 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9847 else
9848 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9849 fi
9850
9851 ;;
9852 esac
9853 fi
9854 if test "$with_gnu_ld" = no; then
9855 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9856 hardcode_libdir_separator=:
9857
9858 case $host_cpu in
9859 hppa*64*|ia64*)
9860 hardcode_direct=no
9861 hardcode_shlibpath_var=no
9862 ;;
9863 *)
9864 hardcode_direct=yes
9865 hardcode_direct_absolute=yes
9866 export_dynamic_flag_spec='${wl}-E'
9867
9868 # hardcode_minus_L: Not really in the search PATH,
9869 # but as the default location of the library.
9870 hardcode_minus_L=yes
9871 ;;
9872 esac
9873 fi
9874 ;;
9875
9876 irix5* | irix6* | nonstopux*)
9877 if test "$GCC" = yes; then
9878 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'
9879 # Try to use the -exported_symbol ld option, if it does not
9880 # work, assume that -exports_file does not work either and
9881 # implicitly export all symbols.
9882 save_LDFLAGS="$LDFLAGS"
9883 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885 /* end confdefs.h. */
9886 int foo(void) {}
9887 _ACEOF
9888 if ac_fn_c_try_link "$LINENO"; then :
9889 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'
9890
9891 fi
9892 rm -f core conftest.err conftest.$ac_objext \
9893 conftest$ac_exeext conftest.$ac_ext
9894 LDFLAGS="$save_LDFLAGS"
9895 else
9896 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'
9897 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'
9898 fi
9899 archive_cmds_need_lc='no'
9900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9901 hardcode_libdir_separator=:
9902 inherit_rpath=yes
9903 link_all_deplibs=yes
9904 ;;
9905
9906 netbsd*)
9907 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9908 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9909 else
9910 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9911 fi
9912 hardcode_libdir_flag_spec='-R$libdir'
9913 hardcode_direct=yes
9914 hardcode_shlibpath_var=no
9915 ;;
9916
9917 newsos6)
9918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9919 hardcode_direct=yes
9920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9921 hardcode_libdir_separator=:
9922 hardcode_shlibpath_var=no
9923 ;;
9924
9925 *nto* | *qnx*)
9926 ;;
9927
9928 openbsd*)
9929 if test -f /usr/libexec/ld.so; then
9930 hardcode_direct=yes
9931 hardcode_shlibpath_var=no
9932 hardcode_direct_absolute=yes
9933 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9934 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9935 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9936 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9937 export_dynamic_flag_spec='${wl}-E'
9938 else
9939 case $host_os in
9940 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9941 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9942 hardcode_libdir_flag_spec='-R$libdir'
9943 ;;
9944 *)
9945 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9946 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9947 ;;
9948 esac
9949 fi
9950 else
9951 ld_shlibs=no
9952 fi
9953 ;;
9954
9955 os2*)
9956 hardcode_libdir_flag_spec='-L$libdir'
9957 hardcode_minus_L=yes
9958 allow_undefined_flag=unsupported
9959 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'
9960 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9961 ;;
9962
9963 osf3*)
9964 if test "$GCC" = yes; then
9965 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9966 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'
9967 else
9968 allow_undefined_flag=' -expect_unresolved \*'
9969 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'
9970 fi
9971 archive_cmds_need_lc='no'
9972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9973 hardcode_libdir_separator=:
9974 ;;
9975
9976 osf4* | osf5*) # as osf3* with the addition of -msym flag
9977 if test "$GCC" = yes; then
9978 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9979 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'
9980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9981 else
9982 allow_undefined_flag=' -expect_unresolved \*'
9983 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'
9984 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~
9985 $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'
9986
9987 # Both c and cxx compiler support -rpath directly
9988 hardcode_libdir_flag_spec='-rpath $libdir'
9989 fi
9990 archive_cmds_need_lc='no'
9991 hardcode_libdir_separator=:
9992 ;;
9993
9994 solaris*)
9995 no_undefined_flag=' -z defs'
9996 if test "$GCC" = yes; then
9997 wlarc='${wl}'
9998 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9999 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10000 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10001 else
10002 case `$CC -V 2>&1` in
10003 *"Compilers 5.0"*)
10004 wlarc=''
10005 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10006 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10007 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10008 ;;
10009 *)
10010 wlarc='${wl}'
10011 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10012 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10013 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10014 ;;
10015 esac
10016 fi
10017 hardcode_libdir_flag_spec='-R$libdir'
10018 hardcode_shlibpath_var=no
10019 case $host_os in
10020 solaris2.[0-5] | solaris2.[0-5].*) ;;
10021 *)
10022 # The compiler driver will combine and reorder linker options,
10023 # but understands `-z linker_flag'. GCC discards it without `$wl',
10024 # but is careful enough not to reorder.
10025 # Supported since Solaris 2.6 (maybe 2.5.1?)
10026 if test "$GCC" = yes; then
10027 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10028 else
10029 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10030 fi
10031 ;;
10032 esac
10033 link_all_deplibs=yes
10034 ;;
10035
10036 sunos4*)
10037 if test "x$host_vendor" = xsequent; then
10038 # Use $CC to link under sequent, because it throws in some extra .o
10039 # files that make .init and .fini sections work.
10040 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10041 else
10042 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10043 fi
10044 hardcode_libdir_flag_spec='-L$libdir'
10045 hardcode_direct=yes
10046 hardcode_minus_L=yes
10047 hardcode_shlibpath_var=no
10048 ;;
10049
10050 sysv4)
10051 case $host_vendor in
10052 sni)
10053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10054 hardcode_direct=yes # is this really true???
10055 ;;
10056 siemens)
10057 ## LD is ld it makes a PLAMLIB
10058 ## CC just makes a GrossModule.
10059 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10060 reload_cmds='$CC -r -o $output$reload_objs'
10061 hardcode_direct=no
10062 ;;
10063 motorola)
10064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10065 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10066 ;;
10067 esac
10068 runpath_var='LD_RUN_PATH'
10069 hardcode_shlibpath_var=no
10070 ;;
10071
10072 sysv4.3*)
10073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10074 hardcode_shlibpath_var=no
10075 export_dynamic_flag_spec='-Bexport'
10076 ;;
10077
10078 sysv4*MP*)
10079 if test -d /usr/nec; then
10080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10081 hardcode_shlibpath_var=no
10082 runpath_var=LD_RUN_PATH
10083 hardcode_runpath_var=yes
10084 ld_shlibs=yes
10085 fi
10086 ;;
10087
10088 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10089 no_undefined_flag='${wl}-z,text'
10090 archive_cmds_need_lc=no
10091 hardcode_shlibpath_var=no
10092 runpath_var='LD_RUN_PATH'
10093
10094 if test "$GCC" = yes; then
10095 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10096 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10097 else
10098 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10099 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10100 fi
10101 ;;
10102
10103 sysv5* | sco3.2v5* | sco5v6*)
10104 # Note: We can NOT use -z defs as we might desire, because we do not
10105 # link with -lc, and that would cause any symbols used from libc to
10106 # always be unresolved, which means just about no library would
10107 # ever link correctly. If we're not using GNU ld we use -z text
10108 # though, which does catch some bad symbols but isn't as heavy-handed
10109 # as -z defs.
10110 no_undefined_flag='${wl}-z,text'
10111 allow_undefined_flag='${wl}-z,nodefs'
10112 archive_cmds_need_lc=no
10113 hardcode_shlibpath_var=no
10114 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10115 hardcode_libdir_separator=':'
10116 link_all_deplibs=yes
10117 export_dynamic_flag_spec='${wl}-Bexport'
10118 runpath_var='LD_RUN_PATH'
10119
10120 if test "$GCC" = yes; then
10121 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10123 else
10124 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10126 fi
10127 ;;
10128
10129 uts4*)
10130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10131 hardcode_libdir_flag_spec='-L$libdir'
10132 hardcode_shlibpath_var=no
10133 ;;
10134
10135 *)
10136 ld_shlibs=no
10137 ;;
10138 esac
10139
10140 if test x$host_vendor = xsni; then
10141 case $host in
10142 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10143 export_dynamic_flag_spec='${wl}-Blargedynsym'
10144 ;;
10145 esac
10146 fi
10147 fi
10148
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10150 $as_echo "$ld_shlibs" >&6; }
10151 test "$ld_shlibs" = no && can_build_shared=no
10152
10153 with_gnu_ld=$with_gnu_ld
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169 #
10170 # Do we need to explicitly link libc?
10171 #
10172 case "x$archive_cmds_need_lc" in
10173 x|xyes)
10174 # Assume -lc should be added
10175 archive_cmds_need_lc=yes
10176
10177 if test "$enable_shared" = yes && test "$GCC" = yes; then
10178 case $archive_cmds in
10179 *'~'*)
10180 # FIXME: we may have to deal with multi-command sequences.
10181 ;;
10182 '$CC '*)
10183 # Test whether the compiler implicitly links with -lc since on some
10184 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10185 # to ld, don't add -lc before -lgcc.
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10187 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10188 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 $RM conftest*
10192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10193
10194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10195 (eval $ac_compile) 2>&5
10196 ac_status=$?
10197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10198 test $ac_status = 0; } 2>conftest.err; then
10199 soname=conftest
10200 lib=conftest
10201 libobjs=conftest.$ac_objext
10202 deplibs=
10203 wl=$lt_prog_compiler_wl
10204 pic_flag=$lt_prog_compiler_pic
10205 compiler_flags=-v
10206 linker_flags=-v
10207 verstring=
10208 output_objdir=.
10209 libname=conftest
10210 lt_save_allow_undefined_flag=$allow_undefined_flag
10211 allow_undefined_flag=
10212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10213 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10214 ac_status=$?
10215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10216 test $ac_status = 0; }
10217 then
10218 lt_cv_archive_cmds_need_lc=no
10219 else
10220 lt_cv_archive_cmds_need_lc=yes
10221 fi
10222 allow_undefined_flag=$lt_save_allow_undefined_flag
10223 else
10224 cat conftest.err 1>&5
10225 fi
10226 $RM conftest*
10227
10228 fi
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10230 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10231 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10232 ;;
10233 esac
10234 fi
10235 ;;
10236 esac
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10395 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10396
10397 if test "$GCC" = yes; then
10398 case $host_os in
10399 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10400 *) lt_awk_arg="/^libraries:/" ;;
10401 esac
10402 case $host_os in
10403 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10404 *) lt_sed_strip_eq="s,=/,/,g" ;;
10405 esac
10406 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10407 case $lt_search_path_spec in
10408 *\;*)
10409 # if the path contains ";" then we assume it to be the separator
10410 # otherwise default to the standard path separator (i.e. ":") - it is
10411 # assumed that no part of a normal pathname contains ";" but that should
10412 # okay in the real world where ";" in dirpaths is itself problematic.
10413 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10414 ;;
10415 *)
10416 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10417 ;;
10418 esac
10419 # Ok, now we have the path, separated by spaces, we can step through it
10420 # and add multilib dir if necessary.
10421 lt_tmp_lt_search_path_spec=
10422 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10423 for lt_sys_path in $lt_search_path_spec; do
10424 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10425 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10426 else
10427 test -d "$lt_sys_path" && \
10428 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10429 fi
10430 done
10431 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10432 BEGIN {RS=" "; FS="/|\n";} {
10433 lt_foo="";
10434 lt_count=0;
10435 for (lt_i = NF; lt_i > 0; lt_i--) {
10436 if ($lt_i != "" && $lt_i != ".") {
10437 if ($lt_i == "..") {
10438 lt_count++;
10439 } else {
10440 if (lt_count == 0) {
10441 lt_foo="/" $lt_i lt_foo;
10442 } else {
10443 lt_count--;
10444 }
10445 }
10446 }
10447 }
10448 if (lt_foo != "") { lt_freq[lt_foo]++; }
10449 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10450 }'`
10451 # AWK program above erroneously prepends '/' to C:/dos/paths
10452 # for these hosts.
10453 case $host_os in
10454 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10455 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10456 esac
10457 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10458 else
10459 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10460 fi
10461 library_names_spec=
10462 libname_spec='lib$name'
10463 soname_spec=
10464 shrext_cmds=".so"
10465 postinstall_cmds=
10466 postuninstall_cmds=
10467 finish_cmds=
10468 finish_eval=
10469 shlibpath_var=
10470 shlibpath_overrides_runpath=unknown
10471 version_type=none
10472 dynamic_linker="$host_os ld.so"
10473 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10474 need_lib_prefix=unknown
10475 hardcode_into_libs=no
10476
10477 # when you set need_version to no, make sure it does not cause -set_version
10478 # flags to be left without arguments
10479 need_version=unknown
10480
10481 case $host_os in
10482 aix3*)
10483 version_type=linux
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10485 shlibpath_var=LIBPATH
10486
10487 # AIX 3 has no versioning support, so we append a major version to the name.
10488 soname_spec='${libname}${release}${shared_ext}$major'
10489 ;;
10490
10491 aix[4-9]*)
10492 version_type=linux
10493 need_lib_prefix=no
10494 need_version=no
10495 hardcode_into_libs=yes
10496 if test "$host_cpu" = ia64; then
10497 # AIX 5 supports IA64
10498 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10499 shlibpath_var=LD_LIBRARY_PATH
10500 else
10501 # With GCC up to 2.95.x, collect2 would create an import file
10502 # for dependence libraries. The import file would start with
10503 # the line `#! .'. This would cause the generated library to
10504 # depend on `.', always an invalid library. This was fixed in
10505 # development snapshots of GCC prior to 3.0.
10506 case $host_os in
10507 aix4 | aix4.[01] | aix4.[01].*)
10508 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10509 echo ' yes '
10510 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10511 :
10512 else
10513 can_build_shared=no
10514 fi
10515 ;;
10516 esac
10517 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10518 # soname into executable. Probably we can add versioning support to
10519 # collect2, so additional links can be useful in future.
10520 if test "$aix_use_runtimelinking" = yes; then
10521 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10522 # instead of lib<name>.a to let people know that these are not
10523 # typical AIX shared libraries.
10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10525 else
10526 # We preserve .a as extension for shared libraries through AIX4.2
10527 # and later when we are not doing run time linking.
10528 library_names_spec='${libname}${release}.a $libname.a'
10529 soname_spec='${libname}${release}${shared_ext}$major'
10530 fi
10531 shlibpath_var=LIBPATH
10532 fi
10533 ;;
10534
10535 amigaos*)
10536 case $host_cpu in
10537 powerpc)
10538 # Since July 2007 AmigaOS4 officially supports .so libraries.
10539 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541 ;;
10542 m68k)
10543 library_names_spec='$libname.ixlibrary $libname.a'
10544 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10545 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'
10546 ;;
10547 esac
10548 ;;
10549
10550 beos*)
10551 library_names_spec='${libname}${shared_ext}'
10552 dynamic_linker="$host_os ld.so"
10553 shlibpath_var=LIBRARY_PATH
10554 ;;
10555
10556 bsdi[45]*)
10557 version_type=linux
10558 need_version=no
10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560 soname_spec='${libname}${release}${shared_ext}$major'
10561 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10562 shlibpath_var=LD_LIBRARY_PATH
10563 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10564 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10565 # the default ld.so.conf also contains /usr/contrib/lib and
10566 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10567 # libtool to hard-code these into programs
10568 ;;
10569
10570 cygwin* | mingw* | pw32* | cegcc*)
10571 version_type=windows
10572 shrext_cmds=".dll"
10573 need_version=no
10574 need_lib_prefix=no
10575
10576 case $GCC,$host_os in
10577 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10578 library_names_spec='$libname.dll.a'
10579 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10580 postinstall_cmds='base_file=`basename \${file}`~
10581 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10582 dldir=$destdir/`dirname \$dlpath`~
10583 test -d \$dldir || mkdir -p \$dldir~
10584 $install_prog $dir/$dlname \$dldir/$dlname~
10585 chmod a+x \$dldir/$dlname~
10586 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10587 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10588 fi'
10589 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10590 dlpath=$dir/\$dldll~
10591 $RM \$dlpath'
10592 shlibpath_overrides_runpath=yes
10593
10594 case $host_os in
10595 cygwin*)
10596 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10597 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10598
10599 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10600 ;;
10601 mingw* | cegcc*)
10602 # MinGW DLLs use traditional 'lib' prefix
10603 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10604 ;;
10605 pw32*)
10606 # pw32 DLLs use 'pw' prefix rather than 'lib'
10607 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10608 ;;
10609 esac
10610 ;;
10611
10612 *)
10613 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10614 ;;
10615 esac
10616 dynamic_linker='Win32 ld.exe'
10617 # FIXME: first we should search . and the directory the executable is in
10618 shlibpath_var=PATH
10619 ;;
10620
10621 darwin* | rhapsody*)
10622 dynamic_linker="$host_os dyld"
10623 version_type=darwin
10624 need_lib_prefix=no
10625 need_version=no
10626 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10627 soname_spec='${libname}${release}${major}$shared_ext'
10628 shlibpath_overrides_runpath=yes
10629 shlibpath_var=DYLD_LIBRARY_PATH
10630 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10631
10632 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10633 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10634 ;;
10635
10636 dgux*)
10637 version_type=linux
10638 need_lib_prefix=no
10639 need_version=no
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10641 soname_spec='${libname}${release}${shared_ext}$major'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 ;;
10644
10645 freebsd* | dragonfly*)
10646 # DragonFly does not have aout. When/if they implement a new
10647 # versioning mechanism, adjust this.
10648 if test -x /usr/bin/objformat; then
10649 objformat=`/usr/bin/objformat`
10650 else
10651 case $host_os in
10652 freebsd[23].*) objformat=aout ;;
10653 *) objformat=elf ;;
10654 esac
10655 fi
10656 version_type=freebsd-$objformat
10657 case $version_type in
10658 freebsd-elf*)
10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10660 need_version=no
10661 need_lib_prefix=no
10662 ;;
10663 freebsd-*)
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10665 need_version=yes
10666 ;;
10667 esac
10668 shlibpath_var=LD_LIBRARY_PATH
10669 case $host_os in
10670 freebsd2.*)
10671 shlibpath_overrides_runpath=yes
10672 ;;
10673 freebsd3.[01]* | freebsdelf3.[01]*)
10674 shlibpath_overrides_runpath=yes
10675 hardcode_into_libs=yes
10676 ;;
10677 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10678 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10679 shlibpath_overrides_runpath=no
10680 hardcode_into_libs=yes
10681 ;;
10682 *) # from 4.6 on, and DragonFly
10683 shlibpath_overrides_runpath=yes
10684 hardcode_into_libs=yes
10685 ;;
10686 esac
10687 ;;
10688
10689 haiku*)
10690 version_type=linux
10691 need_lib_prefix=no
10692 need_version=no
10693 dynamic_linker="$host_os runtime_loader"
10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10695 soname_spec='${libname}${release}${shared_ext}$major'
10696 shlibpath_var=LIBRARY_PATH
10697 shlibpath_overrides_runpath=yes
10698 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10699 hardcode_into_libs=yes
10700 ;;
10701
10702 hpux9* | hpux10* | hpux11*)
10703 # Give a soname corresponding to the major version so that dld.sl refuses to
10704 # link against other versions.
10705 version_type=sunos
10706 need_lib_prefix=no
10707 need_version=no
10708 case $host_cpu in
10709 ia64*)
10710 shrext_cmds='.so'
10711 hardcode_into_libs=yes
10712 dynamic_linker="$host_os dld.so"
10713 shlibpath_var=LD_LIBRARY_PATH
10714 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716 soname_spec='${libname}${release}${shared_ext}$major'
10717 if test "X$HPUX_IA64_MODE" = X32; then
10718 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10719 else
10720 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10721 fi
10722 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10723 ;;
10724 hppa*64*)
10725 shrext_cmds='.sl'
10726 hardcode_into_libs=yes
10727 dynamic_linker="$host_os dld.sl"
10728 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10729 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10731 soname_spec='${libname}${release}${shared_ext}$major'
10732 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10733 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10734 ;;
10735 *)
10736 shrext_cmds='.sl'
10737 dynamic_linker="$host_os dld.sl"
10738 shlibpath_var=SHLIB_PATH
10739 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10741 soname_spec='${libname}${release}${shared_ext}$major'
10742 ;;
10743 esac
10744 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10745 postinstall_cmds='chmod 555 $lib'
10746 # or fails outright, so override atomically:
10747 install_override_mode=555
10748 ;;
10749
10750 interix[3-9]*)
10751 version_type=linux
10752 need_lib_prefix=no
10753 need_version=no
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10755 soname_spec='${libname}${release}${shared_ext}$major'
10756 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10757 shlibpath_var=LD_LIBRARY_PATH
10758 shlibpath_overrides_runpath=no
10759 hardcode_into_libs=yes
10760 ;;
10761
10762 irix5* | irix6* | nonstopux*)
10763 case $host_os in
10764 nonstopux*) version_type=nonstopux ;;
10765 *)
10766 if test "$lt_cv_prog_gnu_ld" = yes; then
10767 version_type=linux
10768 else
10769 version_type=irix
10770 fi ;;
10771 esac
10772 need_lib_prefix=no
10773 need_version=no
10774 soname_spec='${libname}${release}${shared_ext}$major'
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10776 case $host_os in
10777 irix5* | nonstopux*)
10778 libsuff= shlibsuff=
10779 ;;
10780 *)
10781 case $LD in # libtool.m4 will add one of these switches to LD
10782 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10783 libsuff= shlibsuff= libmagic=32-bit;;
10784 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10785 libsuff=32 shlibsuff=N32 libmagic=N32;;
10786 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10787 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10788 *) libsuff= shlibsuff= libmagic=never-match;;
10789 esac
10790 ;;
10791 esac
10792 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10793 shlibpath_overrides_runpath=no
10794 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10795 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10796 hardcode_into_libs=yes
10797 ;;
10798
10799 # No shared lib support for Linux oldld, aout, or coff.
10800 linux*oldld* | linux*aout* | linux*coff*)
10801 dynamic_linker=no
10802 ;;
10803
10804 # This must be Linux ELF.
10805 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10806 version_type=linux
10807 need_lib_prefix=no
10808 need_version=no
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810 soname_spec='${libname}${release}${shared_ext}$major'
10811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10812 shlibpath_var=LD_LIBRARY_PATH
10813 shlibpath_overrides_runpath=no
10814
10815 # Some binutils ld are patched to set DT_RUNPATH
10816 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10817 $as_echo_n "(cached) " >&6
10818 else
10819 lt_cv_shlibpath_overrides_runpath=no
10820 save_LDFLAGS=$LDFLAGS
10821 save_libdir=$libdir
10822 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10823 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10826
10827 int
10828 main ()
10829 {
10830
10831 ;
10832 return 0;
10833 }
10834 _ACEOF
10835 if ac_fn_c_try_link "$LINENO"; then :
10836 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10837 lt_cv_shlibpath_overrides_runpath=yes
10838 fi
10839 fi
10840 rm -f core conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
10842 LDFLAGS=$save_LDFLAGS
10843 libdir=$save_libdir
10844
10845 fi
10846
10847 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10848
10849 # This implies no fast_install, which is unacceptable.
10850 # Some rework will be needed to allow for fast_install
10851 # before this can be enabled.
10852 hardcode_into_libs=yes
10853
10854 # Append ld.so.conf contents to the search path
10855 if test -f /etc/ld.so.conf; then
10856 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' ' '`
10857 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10858 fi
10859
10860 # We used to test for /lib/ld.so.1 and disable shared libraries on
10861 # powerpc, because MkLinux only supported shared libraries with the
10862 # GNU dynamic linker. Since this was broken with cross compilers,
10863 # most powerpc-linux boxes support dynamic linking these days and
10864 # people can always --disable-shared, the test was removed, and we
10865 # assume the GNU/Linux dynamic linker is in use.
10866 dynamic_linker='GNU/Linux ld.so'
10867 ;;
10868
10869 netbsd*)
10870 version_type=sunos
10871 need_lib_prefix=no
10872 need_version=no
10873 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10876 dynamic_linker='NetBSD (a.out) ld.so'
10877 else
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10879 soname_spec='${libname}${release}${shared_ext}$major'
10880 dynamic_linker='NetBSD ld.elf_so'
10881 fi
10882 shlibpath_var=LD_LIBRARY_PATH
10883 shlibpath_overrides_runpath=yes
10884 hardcode_into_libs=yes
10885 ;;
10886
10887 newsos6)
10888 version_type=linux
10889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10890 shlibpath_var=LD_LIBRARY_PATH
10891 shlibpath_overrides_runpath=yes
10892 ;;
10893
10894 *nto* | *qnx*)
10895 version_type=qnx
10896 need_lib_prefix=no
10897 need_version=no
10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10899 soname_spec='${libname}${release}${shared_ext}$major'
10900 shlibpath_var=LD_LIBRARY_PATH
10901 shlibpath_overrides_runpath=no
10902 hardcode_into_libs=yes
10903 dynamic_linker='ldqnx.so'
10904 ;;
10905
10906 openbsd*)
10907 version_type=sunos
10908 sys_lib_dlsearch_path_spec="/usr/lib"
10909 need_lib_prefix=no
10910 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10911 case $host_os in
10912 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10913 *) need_version=no ;;
10914 esac
10915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10917 shlibpath_var=LD_LIBRARY_PATH
10918 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10919 case $host_os in
10920 openbsd2.[89] | openbsd2.[89].*)
10921 shlibpath_overrides_runpath=no
10922 ;;
10923 *)
10924 shlibpath_overrides_runpath=yes
10925 ;;
10926 esac
10927 else
10928 shlibpath_overrides_runpath=yes
10929 fi
10930 ;;
10931
10932 os2*)
10933 libname_spec='$name'
10934 shrext_cmds=".dll"
10935 need_lib_prefix=no
10936 library_names_spec='$libname${shared_ext} $libname.a'
10937 dynamic_linker='OS/2 ld.exe'
10938 shlibpath_var=LIBPATH
10939 ;;
10940
10941 osf3* | osf4* | osf5*)
10942 version_type=osf
10943 need_lib_prefix=no
10944 need_version=no
10945 soname_spec='${libname}${release}${shared_ext}$major'
10946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10947 shlibpath_var=LD_LIBRARY_PATH
10948 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10949 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10950 ;;
10951
10952 rdos*)
10953 dynamic_linker=no
10954 ;;
10955
10956 solaris*)
10957 version_type=linux
10958 need_lib_prefix=no
10959 need_version=no
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961 soname_spec='${libname}${release}${shared_ext}$major'
10962 shlibpath_var=LD_LIBRARY_PATH
10963 shlibpath_overrides_runpath=yes
10964 hardcode_into_libs=yes
10965 # ldd complains unless libraries are executable
10966 postinstall_cmds='chmod +x $lib'
10967 ;;
10968
10969 sunos4*)
10970 version_type=sunos
10971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10972 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10973 shlibpath_var=LD_LIBRARY_PATH
10974 shlibpath_overrides_runpath=yes
10975 if test "$with_gnu_ld" = yes; then
10976 need_lib_prefix=no
10977 fi
10978 need_version=yes
10979 ;;
10980
10981 sysv4 | sysv4.3*)
10982 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
10986 case $host_vendor in
10987 sni)
10988 shlibpath_overrides_runpath=no
10989 need_lib_prefix=no
10990 runpath_var=LD_RUN_PATH
10991 ;;
10992 siemens)
10993 need_lib_prefix=no
10994 ;;
10995 motorola)
10996 need_lib_prefix=no
10997 need_version=no
10998 shlibpath_overrides_runpath=no
10999 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11000 ;;
11001 esac
11002 ;;
11003
11004 sysv4*MP*)
11005 if test -d /usr/nec ;then
11006 version_type=linux
11007 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11008 soname_spec='$libname${shared_ext}.$major'
11009 shlibpath_var=LD_LIBRARY_PATH
11010 fi
11011 ;;
11012
11013 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11014 version_type=freebsd-elf
11015 need_lib_prefix=no
11016 need_version=no
11017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11018 soname_spec='${libname}${release}${shared_ext}$major'
11019 shlibpath_var=LD_LIBRARY_PATH
11020 shlibpath_overrides_runpath=yes
11021 hardcode_into_libs=yes
11022 if test "$with_gnu_ld" = yes; then
11023 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11024 else
11025 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11026 case $host_os in
11027 sco3.2v5*)
11028 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11029 ;;
11030 esac
11031 fi
11032 sys_lib_dlsearch_path_spec='/usr/lib'
11033 ;;
11034
11035 tpf*)
11036 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11037 version_type=linux
11038 need_lib_prefix=no
11039 need_version=no
11040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11041 shlibpath_var=LD_LIBRARY_PATH
11042 shlibpath_overrides_runpath=no
11043 hardcode_into_libs=yes
11044 ;;
11045
11046 uts4*)
11047 version_type=linux
11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11049 soname_spec='${libname}${release}${shared_ext}$major'
11050 shlibpath_var=LD_LIBRARY_PATH
11051 ;;
11052
11053 *)
11054 dynamic_linker=no
11055 ;;
11056 esac
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11058 $as_echo "$dynamic_linker" >&6; }
11059 test "$dynamic_linker" = no && can_build_shared=no
11060
11061 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11062 if test "$GCC" = yes; then
11063 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11064 fi
11065
11066 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11067 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11068 fi
11069 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11070 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11071 fi
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11165 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11166 hardcode_action=
11167 if test -n "$hardcode_libdir_flag_spec" ||
11168 test -n "$runpath_var" ||
11169 test "X$hardcode_automatic" = "Xyes" ; then
11170
11171 # We can hardcode non-existent directories.
11172 if test "$hardcode_direct" != no &&
11173 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11174 # have to relink, otherwise we might link with an installed library
11175 # when we should be linking with a yet-to-be-installed one
11176 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11177 test "$hardcode_minus_L" != no; then
11178 # Linking always hardcodes the temporary library directory.
11179 hardcode_action=relink
11180 else
11181 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11182 hardcode_action=immediate
11183 fi
11184 else
11185 # We cannot hardcode anything, or else we can only hardcode existing
11186 # directories.
11187 hardcode_action=unsupported
11188 fi
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11190 $as_echo "$hardcode_action" >&6; }
11191
11192 if test "$hardcode_action" = relink ||
11193 test "$inherit_rpath" = yes; then
11194 # Fast installation is not supported
11195 enable_fast_install=no
11196 elif test "$shlibpath_overrides_runpath" = yes ||
11197 test "$enable_shared" = no; then
11198 # Fast installation is not necessary
11199 enable_fast_install=needless
11200 fi
11201
11202
11203
11204
11205
11206
11207 if test "x$enable_dlopen" != xyes; then
11208 enable_dlopen=unknown
11209 enable_dlopen_self=unknown
11210 enable_dlopen_self_static=unknown
11211 else
11212 lt_cv_dlopen=no
11213 lt_cv_dlopen_libs=
11214
11215 case $host_os in
11216 beos*)
11217 lt_cv_dlopen="load_add_on"
11218 lt_cv_dlopen_libs=
11219 lt_cv_dlopen_self=yes
11220 ;;
11221
11222 mingw* | pw32* | cegcc*)
11223 lt_cv_dlopen="LoadLibrary"
11224 lt_cv_dlopen_libs=
11225 ;;
11226
11227 cygwin*)
11228 lt_cv_dlopen="dlopen"
11229 lt_cv_dlopen_libs=
11230 ;;
11231
11232 darwin*)
11233 # if libdl is installed we need to link against it
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11235 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11236 if ${ac_cv_lib_dl_dlopen+:} false; then :
11237 $as_echo_n "(cached) " >&6
11238 else
11239 ac_check_lib_save_LIBS=$LIBS
11240 LIBS="-ldl $LIBS"
11241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11242 /* end confdefs.h. */
11243
11244 /* Override any GCC internal prototype to avoid an error.
11245 Use char because int might match the return type of a GCC
11246 builtin and then its argument prototype would still apply. */
11247 #ifdef __cplusplus
11248 extern "C"
11249 #endif
11250 char dlopen ();
11251 int
11252 main ()
11253 {
11254 return dlopen ();
11255 ;
11256 return 0;
11257 }
11258 _ACEOF
11259 if ac_fn_c_try_link "$LINENO"; then :
11260 ac_cv_lib_dl_dlopen=yes
11261 else
11262 ac_cv_lib_dl_dlopen=no
11263 fi
11264 rm -f core conftest.err conftest.$ac_objext \
11265 conftest$ac_exeext conftest.$ac_ext
11266 LIBS=$ac_check_lib_save_LIBS
11267 fi
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11269 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11270 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11271 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11272 else
11273
11274 lt_cv_dlopen="dyld"
11275 lt_cv_dlopen_libs=
11276 lt_cv_dlopen_self=yes
11277
11278 fi
11279
11280 ;;
11281
11282 *)
11283 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11284 if test "x$ac_cv_func_shl_load" = xyes; then :
11285 lt_cv_dlopen="shl_load"
11286 else
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11288 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11289 if ${ac_cv_lib_dld_shl_load+:} false; then :
11290 $as_echo_n "(cached) " >&6
11291 else
11292 ac_check_lib_save_LIBS=$LIBS
11293 LIBS="-ldld $LIBS"
11294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h. */
11296
11297 /* Override any GCC internal prototype to avoid an error.
11298 Use char because int might match the return type of a GCC
11299 builtin and then its argument prototype would still apply. */
11300 #ifdef __cplusplus
11301 extern "C"
11302 #endif
11303 char shl_load ();
11304 int
11305 main ()
11306 {
11307 return shl_load ();
11308 ;
11309 return 0;
11310 }
11311 _ACEOF
11312 if ac_fn_c_try_link "$LINENO"; then :
11313 ac_cv_lib_dld_shl_load=yes
11314 else
11315 ac_cv_lib_dld_shl_load=no
11316 fi
11317 rm -f core conftest.err conftest.$ac_objext \
11318 conftest$ac_exeext conftest.$ac_ext
11319 LIBS=$ac_check_lib_save_LIBS
11320 fi
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11322 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11323 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11324 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11325 else
11326 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11327 if test "x$ac_cv_func_dlopen" = xyes; then :
11328 lt_cv_dlopen="dlopen"
11329 else
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11331 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11332 if ${ac_cv_lib_dl_dlopen+:} false; then :
11333 $as_echo_n "(cached) " >&6
11334 else
11335 ac_check_lib_save_LIBS=$LIBS
11336 LIBS="-ldl $LIBS"
11337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11338 /* end confdefs.h. */
11339
11340 /* Override any GCC internal prototype to avoid an error.
11341 Use char because int might match the return type of a GCC
11342 builtin and then its argument prototype would still apply. */
11343 #ifdef __cplusplus
11344 extern "C"
11345 #endif
11346 char dlopen ();
11347 int
11348 main ()
11349 {
11350 return dlopen ();
11351 ;
11352 return 0;
11353 }
11354 _ACEOF
11355 if ac_fn_c_try_link "$LINENO"; then :
11356 ac_cv_lib_dl_dlopen=yes
11357 else
11358 ac_cv_lib_dl_dlopen=no
11359 fi
11360 rm -f core conftest.err conftest.$ac_objext \
11361 conftest$ac_exeext conftest.$ac_ext
11362 LIBS=$ac_check_lib_save_LIBS
11363 fi
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11365 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11366 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11367 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11368 else
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11370 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11371 if ${ac_cv_lib_svld_dlopen+:} false; then :
11372 $as_echo_n "(cached) " >&6
11373 else
11374 ac_check_lib_save_LIBS=$LIBS
11375 LIBS="-lsvld $LIBS"
11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h. */
11378
11379 /* Override any GCC internal prototype to avoid an error.
11380 Use char because int might match the return type of a GCC
11381 builtin and then its argument prototype would still apply. */
11382 #ifdef __cplusplus
11383 extern "C"
11384 #endif
11385 char dlopen ();
11386 int
11387 main ()
11388 {
11389 return dlopen ();
11390 ;
11391 return 0;
11392 }
11393 _ACEOF
11394 if ac_fn_c_try_link "$LINENO"; then :
11395 ac_cv_lib_svld_dlopen=yes
11396 else
11397 ac_cv_lib_svld_dlopen=no
11398 fi
11399 rm -f core conftest.err conftest.$ac_objext \
11400 conftest$ac_exeext conftest.$ac_ext
11401 LIBS=$ac_check_lib_save_LIBS
11402 fi
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11404 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11405 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11406 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11407 else
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11409 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11410 if ${ac_cv_lib_dld_dld_link+:} false; then :
11411 $as_echo_n "(cached) " >&6
11412 else
11413 ac_check_lib_save_LIBS=$LIBS
11414 LIBS="-ldld $LIBS"
11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11417
11418 /* Override any GCC internal prototype to avoid an error.
11419 Use char because int might match the return type of a GCC
11420 builtin and then its argument prototype would still apply. */
11421 #ifdef __cplusplus
11422 extern "C"
11423 #endif
11424 char dld_link ();
11425 int
11426 main ()
11427 {
11428 return dld_link ();
11429 ;
11430 return 0;
11431 }
11432 _ACEOF
11433 if ac_fn_c_try_link "$LINENO"; then :
11434 ac_cv_lib_dld_dld_link=yes
11435 else
11436 ac_cv_lib_dld_dld_link=no
11437 fi
11438 rm -f core conftest.err conftest.$ac_objext \
11439 conftest$ac_exeext conftest.$ac_ext
11440 LIBS=$ac_check_lib_save_LIBS
11441 fi
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11443 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11444 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11445 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11446 fi
11447
11448
11449 fi
11450
11451
11452 fi
11453
11454
11455 fi
11456
11457
11458 fi
11459
11460
11461 fi
11462
11463 ;;
11464 esac
11465
11466 if test "x$lt_cv_dlopen" != xno; then
11467 enable_dlopen=yes
11468 else
11469 enable_dlopen=no
11470 fi
11471
11472 case $lt_cv_dlopen in
11473 dlopen)
11474 save_CPPFLAGS="$CPPFLAGS"
11475 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11476
11477 save_LDFLAGS="$LDFLAGS"
11478 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11479
11480 save_LIBS="$LIBS"
11481 LIBS="$lt_cv_dlopen_libs $LIBS"
11482
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11484 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11485 if ${lt_cv_dlopen_self+:} false; then :
11486 $as_echo_n "(cached) " >&6
11487 else
11488 if test "$cross_compiling" = yes; then :
11489 lt_cv_dlopen_self=cross
11490 else
11491 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11492 lt_status=$lt_dlunknown
11493 cat > conftest.$ac_ext <<_LT_EOF
11494 #line 11494 "configure"
11495 #include "confdefs.h"
11496
11497 #if HAVE_DLFCN_H
11498 #include <dlfcn.h>
11499 #endif
11500
11501 #include <stdio.h>
11502
11503 #ifdef RTLD_GLOBAL
11504 # define LT_DLGLOBAL RTLD_GLOBAL
11505 #else
11506 # ifdef DL_GLOBAL
11507 # define LT_DLGLOBAL DL_GLOBAL
11508 # else
11509 # define LT_DLGLOBAL 0
11510 # endif
11511 #endif
11512
11513 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11514 find out it does not work in some platform. */
11515 #ifndef LT_DLLAZY_OR_NOW
11516 # ifdef RTLD_LAZY
11517 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11518 # else
11519 # ifdef DL_LAZY
11520 # define LT_DLLAZY_OR_NOW DL_LAZY
11521 # else
11522 # ifdef RTLD_NOW
11523 # define LT_DLLAZY_OR_NOW RTLD_NOW
11524 # else
11525 # ifdef DL_NOW
11526 # define LT_DLLAZY_OR_NOW DL_NOW
11527 # else
11528 # define LT_DLLAZY_OR_NOW 0
11529 # endif
11530 # endif
11531 # endif
11532 # endif
11533 #endif
11534
11535 /* When -fvisbility=hidden is used, assume the code has been annotated
11536 correspondingly for the symbols needed. */
11537 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11538 void fnord () __attribute__((visibility("default")));
11539 #endif
11540
11541 void fnord () { int i=42; }
11542 int main ()
11543 {
11544 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11545 int status = $lt_dlunknown;
11546
11547 if (self)
11548 {
11549 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11550 else
11551 {
11552 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11553 else puts (dlerror ());
11554 }
11555 /* dlclose (self); */
11556 }
11557 else
11558 puts (dlerror ());
11559
11560 return status;
11561 }
11562 _LT_EOF
11563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11564 (eval $ac_link) 2>&5
11565 ac_status=$?
11566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11567 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11568 (./conftest; exit; ) >&5 2>/dev/null
11569 lt_status=$?
11570 case x$lt_status in
11571 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11572 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11573 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11574 esac
11575 else :
11576 # compilation failed
11577 lt_cv_dlopen_self=no
11578 fi
11579 fi
11580 rm -fr conftest*
11581
11582
11583 fi
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11585 $as_echo "$lt_cv_dlopen_self" >&6; }
11586
11587 if test "x$lt_cv_dlopen_self" = xyes; then
11588 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11590 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11591 if ${lt_cv_dlopen_self_static+:} false; then :
11592 $as_echo_n "(cached) " >&6
11593 else
11594 if test "$cross_compiling" = yes; then :
11595 lt_cv_dlopen_self_static=cross
11596 else
11597 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11598 lt_status=$lt_dlunknown
11599 cat > conftest.$ac_ext <<_LT_EOF
11600 #line 11600 "configure"
11601 #include "confdefs.h"
11602
11603 #if HAVE_DLFCN_H
11604 #include <dlfcn.h>
11605 #endif
11606
11607 #include <stdio.h>
11608
11609 #ifdef RTLD_GLOBAL
11610 # define LT_DLGLOBAL RTLD_GLOBAL
11611 #else
11612 # ifdef DL_GLOBAL
11613 # define LT_DLGLOBAL DL_GLOBAL
11614 # else
11615 # define LT_DLGLOBAL 0
11616 # endif
11617 #endif
11618
11619 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11620 find out it does not work in some platform. */
11621 #ifndef LT_DLLAZY_OR_NOW
11622 # ifdef RTLD_LAZY
11623 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11624 # else
11625 # ifdef DL_LAZY
11626 # define LT_DLLAZY_OR_NOW DL_LAZY
11627 # else
11628 # ifdef RTLD_NOW
11629 # define LT_DLLAZY_OR_NOW RTLD_NOW
11630 # else
11631 # ifdef DL_NOW
11632 # define LT_DLLAZY_OR_NOW DL_NOW
11633 # else
11634 # define LT_DLLAZY_OR_NOW 0
11635 # endif
11636 # endif
11637 # endif
11638 # endif
11639 #endif
11640
11641 /* When -fvisbility=hidden is used, assume the code has been annotated
11642 correspondingly for the symbols needed. */
11643 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11644 void fnord () __attribute__((visibility("default")));
11645 #endif
11646
11647 void fnord () { int i=42; }
11648 int main ()
11649 {
11650 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11651 int status = $lt_dlunknown;
11652
11653 if (self)
11654 {
11655 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11656 else
11657 {
11658 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11659 else puts (dlerror ());
11660 }
11661 /* dlclose (self); */
11662 }
11663 else
11664 puts (dlerror ());
11665
11666 return status;
11667 }
11668 _LT_EOF
11669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11670 (eval $ac_link) 2>&5
11671 ac_status=$?
11672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11673 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11674 (./conftest; exit; ) >&5 2>/dev/null
11675 lt_status=$?
11676 case x$lt_status in
11677 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11678 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11679 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11680 esac
11681 else :
11682 # compilation failed
11683 lt_cv_dlopen_self_static=no
11684 fi
11685 fi
11686 rm -fr conftest*
11687
11688
11689 fi
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11691 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11692 fi
11693
11694 CPPFLAGS="$save_CPPFLAGS"
11695 LDFLAGS="$save_LDFLAGS"
11696 LIBS="$save_LIBS"
11697 ;;
11698 esac
11699
11700 case $lt_cv_dlopen_self in
11701 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11702 *) enable_dlopen_self=unknown ;;
11703 esac
11704
11705 case $lt_cv_dlopen_self_static in
11706 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11707 *) enable_dlopen_self_static=unknown ;;
11708 esac
11709 fi
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727 striplib=
11728 old_striplib=
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11730 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11731 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11732 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11733 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11735 $as_echo "yes" >&6; }
11736 else
11737 # FIXME - insert some real tests, host_os isn't really good enough
11738 case $host_os in
11739 darwin*)
11740 if test -n "$STRIP" ; then
11741 striplib="$STRIP -x"
11742 old_striplib="$STRIP -S"
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11744 $as_echo "yes" >&6; }
11745 else
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11747 $as_echo "no" >&6; }
11748 fi
11749 ;;
11750 *)
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752 $as_echo "no" >&6; }
11753 ;;
11754 esac
11755 fi
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768 # Report which library types will actually be built
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11770 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11772 $as_echo "$can_build_shared" >&6; }
11773
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11775 $as_echo_n "checking whether to build shared libraries... " >&6; }
11776 test "$can_build_shared" = "no" && enable_shared=no
11777
11778 # On AIX, shared libraries and static libraries use the same namespace, and
11779 # are all built from PIC.
11780 case $host_os in
11781 aix3*)
11782 test "$enable_shared" = yes && enable_static=no
11783 if test -n "$RANLIB"; then
11784 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11785 postinstall_cmds='$RANLIB $lib'
11786 fi
11787 ;;
11788
11789 aix[4-9]*)
11790 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11791 test "$enable_shared" = yes && enable_static=no
11792 fi
11793 ;;
11794 esac
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11796 $as_echo "$enable_shared" >&6; }
11797
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11799 $as_echo_n "checking whether to build static libraries... " >&6; }
11800 # Make sure either enable_shared or enable_static is yes.
11801 test "$enable_shared" = yes || enable_static=yes
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11803 $as_echo "$enable_static" >&6; }
11804
11805
11806
11807
11808 fi
11809 ac_ext=c
11810 ac_cpp='$CPP $CPPFLAGS'
11811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11814
11815 CC="$lt_save_CC"
11816
11817 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11818 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11819 (test "X$CXX" != "Xg++"))) ; then
11820 ac_ext=cpp
11821 ac_cpp='$CXXCPP $CPPFLAGS'
11822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11826 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11827 if test -z "$CXXCPP"; then
11828 if ${ac_cv_prog_CXXCPP+:} false; then :
11829 $as_echo_n "(cached) " >&6
11830 else
11831 # Double quotes because CXXCPP needs to be expanded
11832 for CXXCPP in "$CXX -E" "/lib/cpp"
11833 do
11834 ac_preproc_ok=false
11835 for ac_cxx_preproc_warn_flag in '' yes
11836 do
11837 # Use a header file that comes with gcc, so configuring glibc
11838 # with a fresh cross-compiler works.
11839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11840 # <limits.h> exists even on freestanding compilers.
11841 # On the NeXT, cc -E runs the code through the compiler's parser,
11842 # not just through cpp. "Syntax error" is here to catch this case.
11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844 /* end confdefs.h. */
11845 #ifdef __STDC__
11846 # include <limits.h>
11847 #else
11848 # include <assert.h>
11849 #endif
11850 Syntax error
11851 _ACEOF
11852 if ac_fn_cxx_try_cpp "$LINENO"; then :
11853
11854 else
11855 # Broken: fails on valid input.
11856 continue
11857 fi
11858 rm -f conftest.err conftest.i conftest.$ac_ext
11859
11860 # OK, works on sane cases. Now check whether nonexistent headers
11861 # can be detected and how.
11862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11863 /* end confdefs.h. */
11864 #include <ac_nonexistent.h>
11865 _ACEOF
11866 if ac_fn_cxx_try_cpp "$LINENO"; then :
11867 # Broken: success on invalid input.
11868 continue
11869 else
11870 # Passes both tests.
11871 ac_preproc_ok=:
11872 break
11873 fi
11874 rm -f conftest.err conftest.i conftest.$ac_ext
11875
11876 done
11877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11878 rm -f conftest.i conftest.err conftest.$ac_ext
11879 if $ac_preproc_ok; then :
11880 break
11881 fi
11882
11883 done
11884 ac_cv_prog_CXXCPP=$CXXCPP
11885
11886 fi
11887 CXXCPP=$ac_cv_prog_CXXCPP
11888 else
11889 ac_cv_prog_CXXCPP=$CXXCPP
11890 fi
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11892 $as_echo "$CXXCPP" >&6; }
11893 ac_preproc_ok=false
11894 for ac_cxx_preproc_warn_flag in '' yes
11895 do
11896 # Use a header file that comes with gcc, so configuring glibc
11897 # with a fresh cross-compiler works.
11898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11899 # <limits.h> exists even on freestanding compilers.
11900 # On the NeXT, cc -E runs the code through the compiler's parser,
11901 # not just through cpp. "Syntax error" is here to catch this case.
11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11904 #ifdef __STDC__
11905 # include <limits.h>
11906 #else
11907 # include <assert.h>
11908 #endif
11909 Syntax error
11910 _ACEOF
11911 if ac_fn_cxx_try_cpp "$LINENO"; then :
11912
11913 else
11914 # Broken: fails on valid input.
11915 continue
11916 fi
11917 rm -f conftest.err conftest.i conftest.$ac_ext
11918
11919 # OK, works on sane cases. Now check whether nonexistent headers
11920 # can be detected and how.
11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h. */
11923 #include <ac_nonexistent.h>
11924 _ACEOF
11925 if ac_fn_cxx_try_cpp "$LINENO"; then :
11926 # Broken: success on invalid input.
11927 continue
11928 else
11929 # Passes both tests.
11930 ac_preproc_ok=:
11931 break
11932 fi
11933 rm -f conftest.err conftest.i conftest.$ac_ext
11934
11935 done
11936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11937 rm -f conftest.i conftest.err conftest.$ac_ext
11938 if $ac_preproc_ok; then :
11939
11940 else
11941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11943 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11944 See \`config.log' for more details" "$LINENO" 5; }
11945 fi
11946
11947 ac_ext=c
11948 ac_cpp='$CPP $CPPFLAGS'
11949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11952
11953 else
11954 _lt_caught_CXX_error=yes
11955 fi
11956
11957 ac_ext=cpp
11958 ac_cpp='$CXXCPP $CPPFLAGS'
11959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11962
11963 archive_cmds_need_lc_CXX=no
11964 allow_undefined_flag_CXX=
11965 always_export_symbols_CXX=no
11966 archive_expsym_cmds_CXX=
11967 compiler_needs_object_CXX=no
11968 export_dynamic_flag_spec_CXX=
11969 hardcode_direct_CXX=no
11970 hardcode_direct_absolute_CXX=no
11971 hardcode_libdir_flag_spec_CXX=
11972 hardcode_libdir_flag_spec_ld_CXX=
11973 hardcode_libdir_separator_CXX=
11974 hardcode_minus_L_CXX=no
11975 hardcode_shlibpath_var_CXX=unsupported
11976 hardcode_automatic_CXX=no
11977 inherit_rpath_CXX=no
11978 module_cmds_CXX=
11979 module_expsym_cmds_CXX=
11980 link_all_deplibs_CXX=unknown
11981 old_archive_cmds_CXX=$old_archive_cmds
11982 reload_flag_CXX=$reload_flag
11983 reload_cmds_CXX=$reload_cmds
11984 no_undefined_flag_CXX=
11985 whole_archive_flag_spec_CXX=
11986 enable_shared_with_static_runtimes_CXX=no
11987
11988 # Source file extension for C++ test sources.
11989 ac_ext=cpp
11990
11991 # Object file extension for compiled C++ test sources.
11992 objext=o
11993 objext_CXX=$objext
11994
11995 # No sense in running all these tests if we already determined that
11996 # the CXX compiler isn't working. Some variables (like enable_shared)
11997 # are currently assumed to apply to all compilers on this platform,
11998 # and will be corrupted by setting them based on a non-working compiler.
11999 if test "$_lt_caught_CXX_error" != yes; then
12000 # Code to be used in simple compile tests
12001 lt_simple_compile_test_code="int some_variable = 0;"
12002
12003 # Code to be used in simple link tests
12004 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12005
12006 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12007
12008
12009
12010
12011
12012
12013 # If no C compiler was specified, use CC.
12014 LTCC=${LTCC-"$CC"}
12015
12016 # If no C compiler flags were specified, use CFLAGS.
12017 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12018
12019 # Allow CC to be a program name with arguments.
12020 compiler=$CC
12021
12022
12023 # save warnings/boilerplate of simple test code
12024 ac_outfile=conftest.$ac_objext
12025 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12026 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12027 _lt_compiler_boilerplate=`cat conftest.err`
12028 $RM conftest*
12029
12030 ac_outfile=conftest.$ac_objext
12031 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12032 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12033 _lt_linker_boilerplate=`cat conftest.err`
12034 $RM -r conftest*
12035
12036
12037 # Allow CC to be a program name with arguments.
12038 lt_save_CC=$CC
12039 lt_save_LD=$LD
12040 lt_save_GCC=$GCC
12041 GCC=$GXX
12042 lt_save_with_gnu_ld=$with_gnu_ld
12043 lt_save_path_LD=$lt_cv_path_LD
12044 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12045 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12046 else
12047 $as_unset lt_cv_prog_gnu_ld
12048 fi
12049 if test -n "${lt_cv_path_LDCXX+set}"; then
12050 lt_cv_path_LD=$lt_cv_path_LDCXX
12051 else
12052 $as_unset lt_cv_path_LD
12053 fi
12054 test -z "${LDCXX+set}" || LD=$LDCXX
12055 CC=${CXX-"c++"}
12056 compiler=$CC
12057 compiler_CXX=$CC
12058 for cc_temp in $compiler""; do
12059 case $cc_temp in
12060 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12061 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12062 \-*) ;;
12063 *) break;;
12064 esac
12065 done
12066 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12067
12068
12069 if test -n "$compiler"; then
12070 # We don't want -fno-exception when compiling C++ code, so set the
12071 # no_builtin_flag separately
12072 if test "$GXX" = yes; then
12073 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12074 else
12075 lt_prog_compiler_no_builtin_flag_CXX=
12076 fi
12077
12078 if test "$GXX" = yes; then
12079 # Set up default GNU C++ configuration
12080
12081
12082
12083 # Check whether --with-gnu-ld was given.
12084 if test "${with_gnu_ld+set}" = set; then :
12085 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12086 else
12087 with_gnu_ld=no
12088 fi
12089
12090 ac_prog=ld
12091 if test "$GCC" = yes; then
12092 # Check if gcc -print-prog-name=ld gives a path.
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12094 $as_echo_n "checking for ld used by $CC... " >&6; }
12095 case $host in
12096 *-*-mingw*)
12097 # gcc leaves a trailing carriage return which upsets mingw
12098 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12099 *)
12100 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12101 esac
12102 case $ac_prog in
12103 # Accept absolute paths.
12104 [\\/]* | ?:[\\/]*)
12105 re_direlt='/[^/][^/]*/\.\./'
12106 # Canonicalize the pathname of ld
12107 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12108 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12109 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12110 done
12111 test -z "$LD" && LD="$ac_prog"
12112 ;;
12113 "")
12114 # If it fails, then pretend we aren't using GCC.
12115 ac_prog=ld
12116 ;;
12117 *)
12118 # If it is relative, then search for the first ld in PATH.
12119 with_gnu_ld=unknown
12120 ;;
12121 esac
12122 elif test "$with_gnu_ld" = yes; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12124 $as_echo_n "checking for GNU ld... " >&6; }
12125 else
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12127 $as_echo_n "checking for non-GNU ld... " >&6; }
12128 fi
12129 if ${lt_cv_path_LD+:} false; then :
12130 $as_echo_n "(cached) " >&6
12131 else
12132 if test -z "$LD"; then
12133 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12134 for ac_dir in $PATH; do
12135 IFS="$lt_save_ifs"
12136 test -z "$ac_dir" && ac_dir=.
12137 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12138 lt_cv_path_LD="$ac_dir/$ac_prog"
12139 # Check to see if the program is GNU ld. I'd rather use --version,
12140 # but apparently some variants of GNU ld only accept -v.
12141 # Break only if it was the GNU/non-GNU ld that we prefer.
12142 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12143 *GNU* | *'with BFD'*)
12144 test "$with_gnu_ld" != no && break
12145 ;;
12146 *)
12147 test "$with_gnu_ld" != yes && break
12148 ;;
12149 esac
12150 fi
12151 done
12152 IFS="$lt_save_ifs"
12153 else
12154 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12155 fi
12156 fi
12157
12158 LD="$lt_cv_path_LD"
12159 if test -n "$LD"; then
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12161 $as_echo "$LD" >&6; }
12162 else
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164 $as_echo "no" >&6; }
12165 fi
12166 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12168 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12169 if ${lt_cv_prog_gnu_ld+:} false; then :
12170 $as_echo_n "(cached) " >&6
12171 else
12172 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12173 case `$LD -v 2>&1 </dev/null` in
12174 *GNU* | *'with BFD'*)
12175 lt_cv_prog_gnu_ld=yes
12176 ;;
12177 *)
12178 lt_cv_prog_gnu_ld=no
12179 ;;
12180 esac
12181 fi
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12183 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12184 with_gnu_ld=$lt_cv_prog_gnu_ld
12185
12186
12187
12188
12189
12190
12191
12192 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12193 # archiving commands below assume that GNU ld is being used.
12194 if test "$with_gnu_ld" = yes; then
12195 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12196 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'
12197
12198 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12199 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12200
12201 # If archive_cmds runs LD, not CC, wlarc should be empty
12202 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12203 # investigate it a little bit more. (MM)
12204 wlarc='${wl}'
12205
12206 # ancient GNU ld didn't support --whole-archive et. al.
12207 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12208 $GREP 'no-whole-archive' > /dev/null; then
12209 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12210 else
12211 whole_archive_flag_spec_CXX=
12212 fi
12213 else
12214 with_gnu_ld=no
12215 wlarc=
12216
12217 # A generic and very simple default shared library creation
12218 # command for GNU C++ for the case where it uses the native
12219 # linker, instead of GNU ld. If possible, this setting should
12220 # overridden to take advantage of the native linker features on
12221 # the platform it is being used on.
12222 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12223 fi
12224
12225 # Commands to make compiler produce verbose output that lists
12226 # what "hidden" libraries, object files and flags are used when
12227 # linking a shared library.
12228 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12229
12230 else
12231 GXX=no
12232 with_gnu_ld=no
12233 wlarc=
12234 fi
12235
12236 # PORTME: fill in a description of your system's C++ link characteristics
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12238 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12239 ld_shlibs_CXX=yes
12240 case $host_os in
12241 aix3*)
12242 # FIXME: insert proper C++ library support
12243 ld_shlibs_CXX=no
12244 ;;
12245 aix[4-9]*)
12246 if test "$host_cpu" = ia64; then
12247 # On IA64, the linker does run time linking by default, so we don't
12248 # have to do anything special.
12249 aix_use_runtimelinking=no
12250 exp_sym_flag='-Bexport'
12251 no_entry_flag=""
12252 else
12253 aix_use_runtimelinking=no
12254
12255 # Test if we are trying to use run time linking or normal
12256 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12257 # need to do runtime linking.
12258 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12259 for ld_flag in $LDFLAGS; do
12260 case $ld_flag in
12261 *-brtl*)
12262 aix_use_runtimelinking=yes
12263 break
12264 ;;
12265 esac
12266 done
12267 ;;
12268 esac
12269
12270 exp_sym_flag='-bexport'
12271 no_entry_flag='-bnoentry'
12272 fi
12273
12274 # When large executables or shared objects are built, AIX ld can
12275 # have problems creating the table of contents. If linking a library
12276 # or program results in "error TOC overflow" add -mminimal-toc to
12277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12279
12280 archive_cmds_CXX=''
12281 hardcode_direct_CXX=yes
12282 hardcode_direct_absolute_CXX=yes
12283 hardcode_libdir_separator_CXX=':'
12284 link_all_deplibs_CXX=yes
12285 file_list_spec_CXX='${wl}-f,'
12286
12287 if test "$GXX" = yes; then
12288 case $host_os in aix4.[012]|aix4.[012].*)
12289 # We only want to do this on AIX 4.2 and lower, the check
12290 # below for broken collect2 doesn't work under 4.3+
12291 collect2name=`${CC} -print-prog-name=collect2`
12292 if test -f "$collect2name" &&
12293 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12294 then
12295 # We have reworked collect2
12296 :
12297 else
12298 # We have old collect2
12299 hardcode_direct_CXX=unsupported
12300 # It fails to find uninstalled libraries when the uninstalled
12301 # path is not listed in the libpath. Setting hardcode_minus_L
12302 # to unsupported forces relinking
12303 hardcode_minus_L_CXX=yes
12304 hardcode_libdir_flag_spec_CXX='-L$libdir'
12305 hardcode_libdir_separator_CXX=
12306 fi
12307 esac
12308 shared_flag='-shared'
12309 if test "$aix_use_runtimelinking" = yes; then
12310 shared_flag="$shared_flag "'${wl}-G'
12311 fi
12312 else
12313 # not using gcc
12314 if test "$host_cpu" = ia64; then
12315 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12316 # chokes on -Wl,-G. The following line is correct:
12317 shared_flag='-G'
12318 else
12319 if test "$aix_use_runtimelinking" = yes; then
12320 shared_flag='${wl}-G'
12321 else
12322 shared_flag='${wl}-bM:SRE'
12323 fi
12324 fi
12325 fi
12326
12327 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12328 # It seems that -bexpall does not export symbols beginning with
12329 # underscore (_), so it is better to generate a list of symbols to
12330 # export.
12331 always_export_symbols_CXX=yes
12332 if test "$aix_use_runtimelinking" = yes; then
12333 # Warning - without using the other runtime loading flags (-brtl),
12334 # -berok will link without error, but may produce a broken library.
12335 allow_undefined_flag_CXX='-berok'
12336 # Determine the default libpath from the value encoded in an empty
12337 # executable.
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12340
12341 int
12342 main ()
12343 {
12344
12345 ;
12346 return 0;
12347 }
12348 _ACEOF
12349 if ac_fn_cxx_try_link "$LINENO"; then :
12350
12351 lt_aix_libpath_sed='
12352 /Import File Strings/,/^$/ {
12353 /^0/ {
12354 s/^0 *\(.*\)$/\1/
12355 p
12356 }
12357 }'
12358 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12359 # Check for a 64-bit object if we didn't find anything.
12360 if test -z "$aix_libpath"; then
12361 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12362 fi
12363 fi
12364 rm -f core conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
12366 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12367
12368 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12369
12370 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"
12371 else
12372 if test "$host_cpu" = ia64; then
12373 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12374 allow_undefined_flag_CXX="-z nodefs"
12375 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"
12376 else
12377 # Determine the default libpath from the value encoded in an
12378 # empty executable.
12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12380 /* end confdefs.h. */
12381
12382 int
12383 main ()
12384 {
12385
12386 ;
12387 return 0;
12388 }
12389 _ACEOF
12390 if ac_fn_cxx_try_link "$LINENO"; then :
12391
12392 lt_aix_libpath_sed='
12393 /Import File Strings/,/^$/ {
12394 /^0/ {
12395 s/^0 *\(.*\)$/\1/
12396 p
12397 }
12398 }'
12399 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12400 # Check for a 64-bit object if we didn't find anything.
12401 if test -z "$aix_libpath"; then
12402 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12403 fi
12404 fi
12405 rm -f core conftest.err conftest.$ac_objext \
12406 conftest$ac_exeext conftest.$ac_ext
12407 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12408
12409 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12410 # Warning - without using the other run time loading flags,
12411 # -berok will link without error, but may produce a broken library.
12412 no_undefined_flag_CXX=' ${wl}-bernotok'
12413 allow_undefined_flag_CXX=' ${wl}-berok'
12414 if test "$with_gnu_ld" = yes; then
12415 # We only use this code for GNU lds that support --whole-archive.
12416 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12417 else
12418 # Exported symbols can be pulled into shared objects from archives
12419 whole_archive_flag_spec_CXX='$convenience'
12420 fi
12421 archive_cmds_need_lc_CXX=yes
12422 # This is similar to how AIX traditionally builds its shared
12423 # libraries.
12424 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'
12425 fi
12426 fi
12427 ;;
12428
12429 beos*)
12430 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12431 allow_undefined_flag_CXX=unsupported
12432 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12433 # support --undefined. This deserves some investigation. FIXME
12434 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12435 else
12436 ld_shlibs_CXX=no
12437 fi
12438 ;;
12439
12440 chorus*)
12441 case $cc_basename in
12442 *)
12443 # FIXME: insert proper C++ library support
12444 ld_shlibs_CXX=no
12445 ;;
12446 esac
12447 ;;
12448
12449 cygwin* | mingw* | pw32* | cegcc*)
12450 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12451 # as there is no search path for DLLs.
12452 hardcode_libdir_flag_spec_CXX='-L$libdir'
12453 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12454 allow_undefined_flag_CXX=unsupported
12455 always_export_symbols_CXX=no
12456 enable_shared_with_static_runtimes_CXX=yes
12457
12458 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12459 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'
12460 # If the export-symbols file already is a .def file (1st line
12461 # is EXPORTS), use it as is; otherwise, prepend...
12462 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12463 cp $export_symbols $output_objdir/$soname.def;
12464 else
12465 echo EXPORTS > $output_objdir/$soname.def;
12466 cat $export_symbols >> $output_objdir/$soname.def;
12467 fi~
12468 $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'
12469 else
12470 ld_shlibs_CXX=no
12471 fi
12472 ;;
12473 darwin* | rhapsody*)
12474
12475
12476 archive_cmds_need_lc_CXX=no
12477 hardcode_direct_CXX=no
12478 hardcode_automatic_CXX=yes
12479 hardcode_shlibpath_var_CXX=unsupported
12480 if test "$lt_cv_ld_force_load" = "yes"; then
12481 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\"`'
12482 else
12483 whole_archive_flag_spec_CXX=''
12484 fi
12485 link_all_deplibs_CXX=yes
12486 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12487 case $cc_basename in
12488 ifort*) _lt_dar_can_shared=yes ;;
12489 *) _lt_dar_can_shared=$GCC ;;
12490 esac
12491 if test "$_lt_dar_can_shared" = "yes"; then
12492 output_verbose_link_cmd=func_echo_all
12493 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}"
12494 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12495 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}"
12496 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}"
12497 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12498 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}"
12499 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}"
12500 fi
12501
12502 else
12503 ld_shlibs_CXX=no
12504 fi
12505
12506 ;;
12507
12508 dgux*)
12509 case $cc_basename in
12510 ec++*)
12511 # FIXME: insert proper C++ library support
12512 ld_shlibs_CXX=no
12513 ;;
12514 ghcx*)
12515 # Green Hills C++ Compiler
12516 # FIXME: insert proper C++ library support
12517 ld_shlibs_CXX=no
12518 ;;
12519 *)
12520 # FIXME: insert proper C++ library support
12521 ld_shlibs_CXX=no
12522 ;;
12523 esac
12524 ;;
12525
12526 freebsd2.*)
12527 # C++ shared libraries reported to be fairly broken before
12528 # switch to ELF
12529 ld_shlibs_CXX=no
12530 ;;
12531
12532 freebsd-elf*)
12533 archive_cmds_need_lc_CXX=no
12534 ;;
12535
12536 freebsd* | dragonfly*)
12537 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12538 # conventions
12539 ld_shlibs_CXX=yes
12540 ;;
12541
12542 gnu*)
12543 ;;
12544
12545 haiku*)
12546 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12547 link_all_deplibs_CXX=yes
12548 ;;
12549
12550 hpux9*)
12551 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12552 hardcode_libdir_separator_CXX=:
12553 export_dynamic_flag_spec_CXX='${wl}-E'
12554 hardcode_direct_CXX=yes
12555 hardcode_minus_L_CXX=yes # Not in the search PATH,
12556 # but as the default
12557 # location of the library.
12558
12559 case $cc_basename in
12560 CC*)
12561 # FIXME: insert proper C++ library support
12562 ld_shlibs_CXX=no
12563 ;;
12564 aCC*)
12565 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'
12566 # Commands to make compiler produce verbose output that lists
12567 # what "hidden" libraries, object files and flags are used when
12568 # linking a shared library.
12569 #
12570 # There doesn't appear to be a way to prevent this compiler from
12571 # explicitly linking system object files so we need to strip them
12572 # from the output so that they don't get included in the library
12573 # dependencies.
12574 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"'
12575 ;;
12576 *)
12577 if test "$GXX" = yes; then
12578 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'
12579 else
12580 # FIXME: insert proper C++ library support
12581 ld_shlibs_CXX=no
12582 fi
12583 ;;
12584 esac
12585 ;;
12586
12587 hpux10*|hpux11*)
12588 if test $with_gnu_ld = no; then
12589 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12590 hardcode_libdir_separator_CXX=:
12591
12592 case $host_cpu in
12593 hppa*64*|ia64*)
12594 ;;
12595 *)
12596 export_dynamic_flag_spec_CXX='${wl}-E'
12597 ;;
12598 esac
12599 fi
12600 case $host_cpu in
12601 hppa*64*|ia64*)
12602 hardcode_direct_CXX=no
12603 hardcode_shlibpath_var_CXX=no
12604 ;;
12605 *)
12606 hardcode_direct_CXX=yes
12607 hardcode_direct_absolute_CXX=yes
12608 hardcode_minus_L_CXX=yes # Not in the search PATH,
12609 # but as the default
12610 # location of the library.
12611 ;;
12612 esac
12613
12614 case $cc_basename in
12615 CC*)
12616 # FIXME: insert proper C++ library support
12617 ld_shlibs_CXX=no
12618 ;;
12619 aCC*)
12620 case $host_cpu in
12621 hppa*64*)
12622 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12623 ;;
12624 ia64*)
12625 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12626 ;;
12627 *)
12628 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12629 ;;
12630 esac
12631 # Commands to make compiler produce verbose output that lists
12632 # what "hidden" libraries, object files and flags are used when
12633 # linking a shared library.
12634 #
12635 # There doesn't appear to be a way to prevent this compiler from
12636 # explicitly linking system object files so we need to strip them
12637 # from the output so that they don't get included in the library
12638 # dependencies.
12639 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"'
12640 ;;
12641 *)
12642 if test "$GXX" = yes; then
12643 if test $with_gnu_ld = no; then
12644 case $host_cpu in
12645 hppa*64*)
12646 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12647 ;;
12648 ia64*)
12649 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12650 ;;
12651 *)
12652 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'
12653 ;;
12654 esac
12655 fi
12656 else
12657 # FIXME: insert proper C++ library support
12658 ld_shlibs_CXX=no
12659 fi
12660 ;;
12661 esac
12662 ;;
12663
12664 interix[3-9]*)
12665 hardcode_direct_CXX=no
12666 hardcode_shlibpath_var_CXX=no
12667 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12668 export_dynamic_flag_spec_CXX='${wl}-E'
12669 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12670 # Instead, shared libraries are loaded at an image base (0x10000000 by
12671 # default) and relocated if they conflict, which is a slow very memory
12672 # consuming and fragmenting process. To avoid this, we pick a random,
12673 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12674 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12675 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'
12676 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'
12677 ;;
12678 irix5* | irix6*)
12679 case $cc_basename in
12680 CC*)
12681 # SGI C++
12682 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'
12683
12684 # Archives containing C++ object files must be created using
12685 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12686 # necessary to make sure instantiated templates are included
12687 # in the archive.
12688 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12689 ;;
12690 *)
12691 if test "$GXX" = yes; then
12692 if test "$with_gnu_ld" = no; then
12693 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'
12694 else
12695 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'
12696 fi
12697 fi
12698 link_all_deplibs_CXX=yes
12699 ;;
12700 esac
12701 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12702 hardcode_libdir_separator_CXX=:
12703 inherit_rpath_CXX=yes
12704 ;;
12705
12706 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12707 case $cc_basename in
12708 KCC*)
12709 # Kuck and Associates, Inc. (KAI) C++ Compiler
12710
12711 # KCC will only create a shared library if the output file
12712 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12713 # to its proper name (with version) after linking.
12714 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'
12715 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'
12716 # Commands to make compiler produce verbose output that lists
12717 # what "hidden" libraries, object files and flags are used when
12718 # linking a shared library.
12719 #
12720 # There doesn't appear to be a way to prevent this compiler from
12721 # explicitly linking system object files so we need to strip them
12722 # from the output so that they don't get included in the library
12723 # dependencies.
12724 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"'
12725
12726 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12727 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12728
12729 # Archives containing C++ object files must be created using
12730 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12731 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12732 ;;
12733 icpc* | ecpc* )
12734 # Intel C++
12735 with_gnu_ld=yes
12736 # version 8.0 and above of icpc choke on multiply defined symbols
12737 # if we add $predep_objects and $postdep_objects, however 7.1 and
12738 # earlier do not add the objects themselves.
12739 case `$CC -V 2>&1` in
12740 *"Version 7."*)
12741 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12742 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'
12743 ;;
12744 *) # Version 8.0 or newer
12745 tmp_idyn=
12746 case $host_cpu in
12747 ia64*) tmp_idyn=' -i_dynamic';;
12748 esac
12749 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12750 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'
12751 ;;
12752 esac
12753 archive_cmds_need_lc_CXX=no
12754 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12755 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12756 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12757 ;;
12758 pgCC* | pgcpp*)
12759 # Portland Group C++ compiler
12760 case `$CC -V` in
12761 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12762 prelink_cmds_CXX='tpldir=Template.dir~
12763 rm -rf $tpldir~
12764 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12765 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12766 old_archive_cmds_CXX='tpldir=Template.dir~
12767 rm -rf $tpldir~
12768 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12769 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12770 $RANLIB $oldlib'
12771 archive_cmds_CXX='tpldir=Template.dir~
12772 rm -rf $tpldir~
12773 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12774 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12775 archive_expsym_cmds_CXX='tpldir=Template.dir~
12776 rm -rf $tpldir~
12777 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12778 $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'
12779 ;;
12780 *) # Version 6 and above use weak symbols
12781 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12782 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'
12783 ;;
12784 esac
12785
12786 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12787 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12788 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'
12789 ;;
12790 cxx*)
12791 # Compaq C++
12792 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12793 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'
12794
12795 runpath_var=LD_RUN_PATH
12796 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12797 hardcode_libdir_separator_CXX=:
12798
12799 # Commands to make compiler produce verbose output that lists
12800 # what "hidden" libraries, object files and flags are used when
12801 # linking a shared library.
12802 #
12803 # There doesn't appear to be a way to prevent this compiler from
12804 # explicitly linking system object files so we need to strip them
12805 # from the output so that they don't get included in the library
12806 # dependencies.
12807 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'
12808 ;;
12809 xl* | mpixl* | bgxl*)
12810 # IBM XL 8.0 on PPC, with GNU ld
12811 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12812 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12813 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12814 if test "x$supports_anon_versioning" = xyes; then
12815 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12816 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12817 echo "local: *; };" >> $output_objdir/$libname.ver~
12818 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12819 fi
12820 ;;
12821 *)
12822 case `$CC -V 2>&1 | sed 5q` in
12823 *Sun\ C*)
12824 # Sun C++ 5.9
12825 no_undefined_flag_CXX=' -zdefs'
12826 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12827 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'
12828 hardcode_libdir_flag_spec_CXX='-R$libdir'
12829 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'
12830 compiler_needs_object_CXX=yes
12831
12832 # Not sure whether something based on
12833 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12834 # would be better.
12835 output_verbose_link_cmd='func_echo_all'
12836
12837 # Archives containing C++ object files must be created using
12838 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12839 # necessary to make sure instantiated templates are included
12840 # in the archive.
12841 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12842 ;;
12843 esac
12844 ;;
12845 esac
12846 ;;
12847
12848 lynxos*)
12849 # FIXME: insert proper C++ library support
12850 ld_shlibs_CXX=no
12851 ;;
12852
12853 m88k*)
12854 # FIXME: insert proper C++ library support
12855 ld_shlibs_CXX=no
12856 ;;
12857
12858 mvs*)
12859 case $cc_basename in
12860 cxx*)
12861 # FIXME: insert proper C++ library support
12862 ld_shlibs_CXX=no
12863 ;;
12864 *)
12865 # FIXME: insert proper C++ library support
12866 ld_shlibs_CXX=no
12867 ;;
12868 esac
12869 ;;
12870
12871 netbsd*)
12872 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12873 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12874 wlarc=
12875 hardcode_libdir_flag_spec_CXX='-R$libdir'
12876 hardcode_direct_CXX=yes
12877 hardcode_shlibpath_var_CXX=no
12878 fi
12879 # Workaround some broken pre-1.5 toolchains
12880 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12881 ;;
12882
12883 *nto* | *qnx*)
12884 ld_shlibs_CXX=yes
12885 ;;
12886
12887 openbsd2*)
12888 # C++ shared libraries are fairly broken
12889 ld_shlibs_CXX=no
12890 ;;
12891
12892 openbsd*)
12893 if test -f /usr/libexec/ld.so; then
12894 hardcode_direct_CXX=yes
12895 hardcode_shlibpath_var_CXX=no
12896 hardcode_direct_absolute_CXX=yes
12897 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12898 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12899 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12900 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12901 export_dynamic_flag_spec_CXX='${wl}-E'
12902 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12903 fi
12904 output_verbose_link_cmd=func_echo_all
12905 else
12906 ld_shlibs_CXX=no
12907 fi
12908 ;;
12909
12910 osf3* | osf4* | osf5*)
12911 case $cc_basename in
12912 KCC*)
12913 # Kuck and Associates, Inc. (KAI) C++ Compiler
12914
12915 # KCC will only create a shared library if the output file
12916 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12917 # to its proper name (with version) after linking.
12918 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'
12919
12920 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12921 hardcode_libdir_separator_CXX=:
12922
12923 # Archives containing C++ object files must be created using
12924 # the KAI C++ compiler.
12925 case $host in
12926 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12927 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12928 esac
12929 ;;
12930 RCC*)
12931 # Rational C++ 2.4.1
12932 # FIXME: insert proper C++ library support
12933 ld_shlibs_CXX=no
12934 ;;
12935 cxx*)
12936 case $host in
12937 osf3*)
12938 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12939 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'
12940 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12941 ;;
12942 *)
12943 allow_undefined_flag_CXX=' -expect_unresolved \*'
12944 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'
12945 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12946 echo "-hidden">> $lib.exp~
12947 $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~
12948 $RM $lib.exp'
12949 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12950 ;;
12951 esac
12952
12953 hardcode_libdir_separator_CXX=:
12954
12955 # Commands to make compiler produce verbose output that lists
12956 # what "hidden" libraries, object files and flags are used when
12957 # linking a shared library.
12958 #
12959 # There doesn't appear to be a way to prevent this compiler from
12960 # explicitly linking system object files so we need to strip them
12961 # from the output so that they don't get included in the library
12962 # dependencies.
12963 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"'
12964 ;;
12965 *)
12966 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12967 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12968 case $host in
12969 osf3*)
12970 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'
12971 ;;
12972 *)
12973 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'
12974 ;;
12975 esac
12976
12977 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12978 hardcode_libdir_separator_CXX=:
12979
12980 # Commands to make compiler produce verbose output that lists
12981 # what "hidden" libraries, object files and flags are used when
12982 # linking a shared library.
12983 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12984
12985 else
12986 # FIXME: insert proper C++ library support
12987 ld_shlibs_CXX=no
12988 fi
12989 ;;
12990 esac
12991 ;;
12992
12993 psos*)
12994 # FIXME: insert proper C++ library support
12995 ld_shlibs_CXX=no
12996 ;;
12997
12998 sunos4*)
12999 case $cc_basename in
13000 CC*)
13001 # Sun C++ 4.x
13002 # FIXME: insert proper C++ library support
13003 ld_shlibs_CXX=no
13004 ;;
13005 lcc*)
13006 # Lucid
13007 # FIXME: insert proper C++ library support
13008 ld_shlibs_CXX=no
13009 ;;
13010 *)
13011 # FIXME: insert proper C++ library support
13012 ld_shlibs_CXX=no
13013 ;;
13014 esac
13015 ;;
13016
13017 solaris*)
13018 case $cc_basename in
13019 CC*)
13020 # Sun C++ 4.2, 5.x and Centerline C++
13021 archive_cmds_need_lc_CXX=yes
13022 no_undefined_flag_CXX=' -zdefs'
13023 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13024 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13025 $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'
13026
13027 hardcode_libdir_flag_spec_CXX='-R$libdir'
13028 hardcode_shlibpath_var_CXX=no
13029 case $host_os in
13030 solaris2.[0-5] | solaris2.[0-5].*) ;;
13031 *)
13032 # The compiler driver will combine and reorder linker options,
13033 # but understands `-z linker_flag'.
13034 # Supported since Solaris 2.6 (maybe 2.5.1?)
13035 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13036 ;;
13037 esac
13038 link_all_deplibs_CXX=yes
13039
13040 output_verbose_link_cmd='func_echo_all'
13041
13042 # Archives containing C++ object files must be created using
13043 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13044 # necessary to make sure instantiated templates are included
13045 # in the archive.
13046 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13047 ;;
13048 gcx*)
13049 # Green Hills C++ Compiler
13050 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13051
13052 # The C++ compiler must be used to create the archive.
13053 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13054 ;;
13055 *)
13056 # GNU C++ compiler with Solaris linker
13057 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13058 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13059 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13060 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13061 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13062 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13063
13064 # Commands to make compiler produce verbose output that lists
13065 # what "hidden" libraries, object files and flags are used when
13066 # linking a shared library.
13067 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13068 else
13069 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13070 # platform.
13071 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13072 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13073 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13074
13075 # Commands to make compiler produce verbose output that lists
13076 # what "hidden" libraries, object files and flags are used when
13077 # linking a shared library.
13078 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13079 fi
13080
13081 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13082 case $host_os in
13083 solaris2.[0-5] | solaris2.[0-5].*) ;;
13084 *)
13085 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13086 ;;
13087 esac
13088 fi
13089 ;;
13090 esac
13091 ;;
13092
13093 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13094 no_undefined_flag_CXX='${wl}-z,text'
13095 archive_cmds_need_lc_CXX=no
13096 hardcode_shlibpath_var_CXX=no
13097 runpath_var='LD_RUN_PATH'
13098
13099 case $cc_basename in
13100 CC*)
13101 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13102 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13103 ;;
13104 *)
13105 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13106 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13107 ;;
13108 esac
13109 ;;
13110
13111 sysv5* | sco3.2v5* | sco5v6*)
13112 # Note: We can NOT use -z defs as we might desire, because we do not
13113 # link with -lc, and that would cause any symbols used from libc to
13114 # always be unresolved, which means just about no library would
13115 # ever link correctly. If we're not using GNU ld we use -z text
13116 # though, which does catch some bad symbols but isn't as heavy-handed
13117 # as -z defs.
13118 no_undefined_flag_CXX='${wl}-z,text'
13119 allow_undefined_flag_CXX='${wl}-z,nodefs'
13120 archive_cmds_need_lc_CXX=no
13121 hardcode_shlibpath_var_CXX=no
13122 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13123 hardcode_libdir_separator_CXX=':'
13124 link_all_deplibs_CXX=yes
13125 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13126 runpath_var='LD_RUN_PATH'
13127
13128 case $cc_basename in
13129 CC*)
13130 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13131 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13132 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13133 '"$old_archive_cmds_CXX"
13134 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13135 '"$reload_cmds_CXX"
13136 ;;
13137 *)
13138 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13139 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13140 ;;
13141 esac
13142 ;;
13143
13144 tandem*)
13145 case $cc_basename in
13146 NCC*)
13147 # NonStop-UX NCC 3.20
13148 # FIXME: insert proper C++ library support
13149 ld_shlibs_CXX=no
13150 ;;
13151 *)
13152 # FIXME: insert proper C++ library support
13153 ld_shlibs_CXX=no
13154 ;;
13155 esac
13156 ;;
13157
13158 vxworks*)
13159 # FIXME: insert proper C++ library support
13160 ld_shlibs_CXX=no
13161 ;;
13162
13163 *)
13164 # FIXME: insert proper C++ library support
13165 ld_shlibs_CXX=no
13166 ;;
13167 esac
13168
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13170 $as_echo "$ld_shlibs_CXX" >&6; }
13171 test "$ld_shlibs_CXX" = no && can_build_shared=no
13172
13173 GCC_CXX="$GXX"
13174 LD_CXX="$LD"
13175
13176 ## CAVEAT EMPTOR:
13177 ## There is no encapsulation within the following macros, do not change
13178 ## the running order or otherwise move them around unless you know exactly
13179 ## what you are doing...
13180 # Dependencies to place before and after the object being linked:
13181 predep_objects_CXX=
13182 postdep_objects_CXX=
13183 predeps_CXX=
13184 postdeps_CXX=
13185 compiler_lib_search_path_CXX=
13186
13187 cat > conftest.$ac_ext <<_LT_EOF
13188 class Foo
13189 {
13190 public:
13191 Foo (void) { a = 0; }
13192 private:
13193 int a;
13194 };
13195 _LT_EOF
13196
13197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13198 (eval $ac_compile) 2>&5
13199 ac_status=$?
13200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13201 test $ac_status = 0; }; then
13202 # Parse the compiler output and extract the necessary
13203 # objects, libraries and library flags.
13204
13205 # Sentinel used to keep track of whether or not we are before
13206 # the conftest object file.
13207 pre_test_object_deps_done=no
13208
13209 for p in `eval "$output_verbose_link_cmd"`; do
13210 case $p in
13211
13212 -L* | -R* | -l*)
13213 # Some compilers place space between "-{L,R}" and the path.
13214 # Remove the space.
13215 if test $p = "-L" ||
13216 test $p = "-R"; then
13217 prev=$p
13218 continue
13219 else
13220 prev=
13221 fi
13222
13223 if test "$pre_test_object_deps_done" = no; then
13224 case $p in
13225 -L* | -R*)
13226 # Internal compiler library paths should come after those
13227 # provided the user. The postdeps already come after the
13228 # user supplied libs so there is no need to process them.
13229 if test -z "$compiler_lib_search_path_CXX"; then
13230 compiler_lib_search_path_CXX="${prev}${p}"
13231 else
13232 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13233 fi
13234 ;;
13235 # The "-l" case would never come before the object being
13236 # linked, so don't bother handling this case.
13237 esac
13238 else
13239 if test -z "$postdeps_CXX"; then
13240 postdeps_CXX="${prev}${p}"
13241 else
13242 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13243 fi
13244 fi
13245 ;;
13246
13247 *.$objext)
13248 # This assumes that the test object file only shows up
13249 # once in the compiler output.
13250 if test "$p" = "conftest.$objext"; then
13251 pre_test_object_deps_done=yes
13252 continue
13253 fi
13254
13255 if test "$pre_test_object_deps_done" = no; then
13256 if test -z "$predep_objects_CXX"; then
13257 predep_objects_CXX="$p"
13258 else
13259 predep_objects_CXX="$predep_objects_CXX $p"
13260 fi
13261 else
13262 if test -z "$postdep_objects_CXX"; then
13263 postdep_objects_CXX="$p"
13264 else
13265 postdep_objects_CXX="$postdep_objects_CXX $p"
13266 fi
13267 fi
13268 ;;
13269
13270 *) ;; # Ignore the rest.
13271
13272 esac
13273 done
13274
13275 # Clean up.
13276 rm -f a.out a.exe
13277 else
13278 echo "libtool.m4: error: problem compiling CXX test program"
13279 fi
13280
13281 $RM -f confest.$objext
13282
13283 # PORTME: override above test on systems where it is broken
13284 case $host_os in
13285 interix[3-9]*)
13286 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13287 # hack all around it, let's just trust "g++" to DTRT.
13288 predep_objects_CXX=
13289 postdep_objects_CXX=
13290 postdeps_CXX=
13291 ;;
13292
13293 linux*)
13294 case `$CC -V 2>&1 | sed 5q` in
13295 *Sun\ C*)
13296 # Sun C++ 5.9
13297
13298 # The more standards-conforming stlport4 library is
13299 # incompatible with the Cstd library. Avoid specifying
13300 # it if it's in CXXFLAGS. Ignore libCrun as
13301 # -library=stlport4 depends on it.
13302 case " $CXX $CXXFLAGS " in
13303 *" -library=stlport4 "*)
13304 solaris_use_stlport4=yes
13305 ;;
13306 esac
13307
13308 if test "$solaris_use_stlport4" != yes; then
13309 postdeps_CXX='-library=Cstd -library=Crun'
13310 fi
13311 ;;
13312 esac
13313 ;;
13314
13315 solaris*)
13316 case $cc_basename in
13317 CC*)
13318 # The more standards-conforming stlport4 library is
13319 # incompatible with the Cstd library. Avoid specifying
13320 # it if it's in CXXFLAGS. Ignore libCrun as
13321 # -library=stlport4 depends on it.
13322 case " $CXX $CXXFLAGS " in
13323 *" -library=stlport4 "*)
13324 solaris_use_stlport4=yes
13325 ;;
13326 esac
13327
13328 # Adding this requires a known-good setup of shared libraries for
13329 # Sun compiler versions before 5.6, else PIC objects from an old
13330 # archive will be linked into the output, leading to subtle bugs.
13331 if test "$solaris_use_stlport4" != yes; then
13332 postdeps_CXX='-library=Cstd -library=Crun'
13333 fi
13334 ;;
13335 esac
13336 ;;
13337 esac
13338
13339
13340 case " $postdeps_CXX " in
13341 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13342 esac
13343 compiler_lib_search_dirs_CXX=
13344 if test -n "${compiler_lib_search_path_CXX}"; then
13345 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13346 fi
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378 lt_prog_compiler_wl_CXX=
13379 lt_prog_compiler_pic_CXX=
13380 lt_prog_compiler_static_CXX=
13381
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13383 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13384
13385 # C++ specific cases for pic, static, wl, etc.
13386 if test "$GXX" = yes; then
13387 lt_prog_compiler_wl_CXX='-Wl,'
13388 lt_prog_compiler_static_CXX='-static'
13389
13390 case $host_os in
13391 aix*)
13392 # All AIX code is PIC.
13393 if test "$host_cpu" = ia64; then
13394 # AIX 5 now supports IA64 processor
13395 lt_prog_compiler_static_CXX='-Bstatic'
13396 fi
13397 lt_prog_compiler_pic_CXX='-fPIC'
13398 ;;
13399
13400 amigaos*)
13401 case $host_cpu in
13402 powerpc)
13403 # see comment about AmigaOS4 .so support
13404 lt_prog_compiler_pic_CXX='-fPIC'
13405 ;;
13406 m68k)
13407 # FIXME: we need at least 68020 code to build shared libraries, but
13408 # adding the `-m68020' flag to GCC prevents building anything better,
13409 # like `-m68040'.
13410 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13411 ;;
13412 esac
13413 ;;
13414
13415 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13416 # PIC is the default for these OSes.
13417 ;;
13418 mingw* | cygwin* | os2* | pw32* | cegcc*)
13419 # This hack is so that the source file can tell whether it is being
13420 # built for inclusion in a dll (and should export symbols for example).
13421 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13422 # (--disable-auto-import) libraries
13423 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13424 ;;
13425 darwin* | rhapsody*)
13426 # PIC is the default on this platform
13427 # Common symbols not allowed in MH_DYLIB files
13428 lt_prog_compiler_pic_CXX='-fno-common'
13429 ;;
13430 *djgpp*)
13431 # DJGPP does not support shared libraries at all
13432 lt_prog_compiler_pic_CXX=
13433 ;;
13434 haiku*)
13435 # PIC is the default for Haiku.
13436 # The "-static" flag exists, but is broken.
13437 lt_prog_compiler_static_CXX=
13438 ;;
13439 interix[3-9]*)
13440 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13441 # Instead, we relocate shared libraries at runtime.
13442 ;;
13443 sysv4*MP*)
13444 if test -d /usr/nec; then
13445 lt_prog_compiler_pic_CXX=-Kconform_pic
13446 fi
13447 ;;
13448 hpux*)
13449 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13450 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13451 # sets the default TLS model and affects inlining.
13452 case $host_cpu in
13453 hppa*64*)
13454 ;;
13455 *)
13456 lt_prog_compiler_pic_CXX='-fPIC'
13457 ;;
13458 esac
13459 ;;
13460 *qnx* | *nto*)
13461 # QNX uses GNU C++, but need to define -shared option too, otherwise
13462 # it will coredump.
13463 lt_prog_compiler_pic_CXX='-fPIC -shared'
13464 ;;
13465 *)
13466 lt_prog_compiler_pic_CXX='-fPIC'
13467 ;;
13468 esac
13469 else
13470 case $host_os in
13471 aix[4-9]*)
13472 # All AIX code is PIC.
13473 if test "$host_cpu" = ia64; then
13474 # AIX 5 now supports IA64 processor
13475 lt_prog_compiler_static_CXX='-Bstatic'
13476 else
13477 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13478 fi
13479 ;;
13480 chorus*)
13481 case $cc_basename in
13482 cxch68*)
13483 # Green Hills C++ Compiler
13484 # _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"
13485 ;;
13486 esac
13487 ;;
13488 dgux*)
13489 case $cc_basename in
13490 ec++*)
13491 lt_prog_compiler_pic_CXX='-KPIC'
13492 ;;
13493 ghcx*)
13494 # Green Hills C++ Compiler
13495 lt_prog_compiler_pic_CXX='-pic'
13496 ;;
13497 *)
13498 ;;
13499 esac
13500 ;;
13501 freebsd* | dragonfly*)
13502 # FreeBSD uses GNU C++
13503 ;;
13504 hpux9* | hpux10* | hpux11*)
13505 case $cc_basename in
13506 CC*)
13507 lt_prog_compiler_wl_CXX='-Wl,'
13508 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13509 if test "$host_cpu" != ia64; then
13510 lt_prog_compiler_pic_CXX='+Z'
13511 fi
13512 ;;
13513 aCC*)
13514 lt_prog_compiler_wl_CXX='-Wl,'
13515 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13516 case $host_cpu in
13517 hppa*64*|ia64*)
13518 # +Z the default
13519 ;;
13520 *)
13521 lt_prog_compiler_pic_CXX='+Z'
13522 ;;
13523 esac
13524 ;;
13525 *)
13526 ;;
13527 esac
13528 ;;
13529 interix*)
13530 # This is c89, which is MS Visual C++ (no shared libs)
13531 # Anyone wants to do a port?
13532 ;;
13533 irix5* | irix6* | nonstopux*)
13534 case $cc_basename in
13535 CC*)
13536 lt_prog_compiler_wl_CXX='-Wl,'
13537 lt_prog_compiler_static_CXX='-non_shared'
13538 # CC pic flag -KPIC is the default.
13539 ;;
13540 *)
13541 ;;
13542 esac
13543 ;;
13544 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13545 case $cc_basename in
13546 KCC*)
13547 # KAI C++ Compiler
13548 lt_prog_compiler_wl_CXX='--backend -Wl,'
13549 lt_prog_compiler_pic_CXX='-fPIC'
13550 ;;
13551 ecpc* )
13552 # old Intel C++ for x86_64 which still supported -KPIC.
13553 lt_prog_compiler_wl_CXX='-Wl,'
13554 lt_prog_compiler_pic_CXX='-KPIC'
13555 lt_prog_compiler_static_CXX='-static'
13556 ;;
13557 icpc* )
13558 # Intel C++, used to be incompatible with GCC.
13559 # ICC 10 doesn't accept -KPIC any more.
13560 lt_prog_compiler_wl_CXX='-Wl,'
13561 lt_prog_compiler_pic_CXX='-fPIC'
13562 lt_prog_compiler_static_CXX='-static'
13563 ;;
13564 pgCC* | pgcpp*)
13565 # Portland Group C++ compiler
13566 lt_prog_compiler_wl_CXX='-Wl,'
13567 lt_prog_compiler_pic_CXX='-fpic'
13568 lt_prog_compiler_static_CXX='-Bstatic'
13569 ;;
13570 cxx*)
13571 # Compaq C++
13572 # Make sure the PIC flag is empty. It appears that all Alpha
13573 # Linux and Compaq Tru64 Unix objects are PIC.
13574 lt_prog_compiler_pic_CXX=
13575 lt_prog_compiler_static_CXX='-non_shared'
13576 ;;
13577 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13578 # IBM XL 8.0, 9.0 on PPC and BlueGene
13579 lt_prog_compiler_wl_CXX='-Wl,'
13580 lt_prog_compiler_pic_CXX='-qpic'
13581 lt_prog_compiler_static_CXX='-qstaticlink'
13582 ;;
13583 *)
13584 case `$CC -V 2>&1 | sed 5q` in
13585 *Sun\ C*)
13586 # Sun C++ 5.9
13587 lt_prog_compiler_pic_CXX='-KPIC'
13588 lt_prog_compiler_static_CXX='-Bstatic'
13589 lt_prog_compiler_wl_CXX='-Qoption ld '
13590 ;;
13591 esac
13592 ;;
13593 esac
13594 ;;
13595 lynxos*)
13596 ;;
13597 m88k*)
13598 ;;
13599 mvs*)
13600 case $cc_basename in
13601 cxx*)
13602 lt_prog_compiler_pic_CXX='-W c,exportall'
13603 ;;
13604 *)
13605 ;;
13606 esac
13607 ;;
13608 netbsd*)
13609 ;;
13610 *qnx* | *nto*)
13611 # QNX uses GNU C++, but need to define -shared option too, otherwise
13612 # it will coredump.
13613 lt_prog_compiler_pic_CXX='-fPIC -shared'
13614 ;;
13615 osf3* | osf4* | osf5*)
13616 case $cc_basename in
13617 KCC*)
13618 lt_prog_compiler_wl_CXX='--backend -Wl,'
13619 ;;
13620 RCC*)
13621 # Rational C++ 2.4.1
13622 lt_prog_compiler_pic_CXX='-pic'
13623 ;;
13624 cxx*)
13625 # Digital/Compaq C++
13626 lt_prog_compiler_wl_CXX='-Wl,'
13627 # Make sure the PIC flag is empty. It appears that all Alpha
13628 # Linux and Compaq Tru64 Unix objects are PIC.
13629 lt_prog_compiler_pic_CXX=
13630 lt_prog_compiler_static_CXX='-non_shared'
13631 ;;
13632 *)
13633 ;;
13634 esac
13635 ;;
13636 psos*)
13637 ;;
13638 solaris*)
13639 case $cc_basename in
13640 CC*)
13641 # Sun C++ 4.2, 5.x and Centerline C++
13642 lt_prog_compiler_pic_CXX='-KPIC'
13643 lt_prog_compiler_static_CXX='-Bstatic'
13644 lt_prog_compiler_wl_CXX='-Qoption ld '
13645 ;;
13646 gcx*)
13647 # Green Hills C++ Compiler
13648 lt_prog_compiler_pic_CXX='-PIC'
13649 ;;
13650 *)
13651 ;;
13652 esac
13653 ;;
13654 sunos4*)
13655 case $cc_basename in
13656 CC*)
13657 # Sun C++ 4.x
13658 lt_prog_compiler_pic_CXX='-pic'
13659 lt_prog_compiler_static_CXX='-Bstatic'
13660 ;;
13661 lcc*)
13662 # Lucid
13663 lt_prog_compiler_pic_CXX='-pic'
13664 ;;
13665 *)
13666 ;;
13667 esac
13668 ;;
13669 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13670 case $cc_basename in
13671 CC*)
13672 lt_prog_compiler_wl_CXX='-Wl,'
13673 lt_prog_compiler_pic_CXX='-KPIC'
13674 lt_prog_compiler_static_CXX='-Bstatic'
13675 ;;
13676 esac
13677 ;;
13678 tandem*)
13679 case $cc_basename in
13680 NCC*)
13681 # NonStop-UX NCC 3.20
13682 lt_prog_compiler_pic_CXX='-KPIC'
13683 ;;
13684 *)
13685 ;;
13686 esac
13687 ;;
13688 vxworks*)
13689 ;;
13690 *)
13691 lt_prog_compiler_can_build_shared_CXX=no
13692 ;;
13693 esac
13694 fi
13695
13696 case $host_os in
13697 # For platforms which do not support PIC, -DPIC is meaningless:
13698 *djgpp*)
13699 lt_prog_compiler_pic_CXX=
13700 ;;
13701 *)
13702 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13703 ;;
13704 esac
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13706 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13707
13708
13709
13710 #
13711 # Check to make sure the PIC flag actually works.
13712 #
13713 if test -n "$lt_prog_compiler_pic_CXX"; then
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13715 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13716 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13717 $as_echo_n "(cached) " >&6
13718 else
13719 lt_cv_prog_compiler_pic_works_CXX=no
13720 ac_outfile=conftest.$ac_objext
13721 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13722 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13723 # Insert the option either (1) after the last *FLAGS variable, or
13724 # (2) before a word containing "conftest.", or (3) at the end.
13725 # Note that $ac_compile itself does not contain backslashes and begins
13726 # with a dollar sign (not a hyphen), so the echo should work correctly.
13727 # The option is referenced via a variable to avoid confusing sed.
13728 lt_compile=`echo "$ac_compile" | $SED \
13729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13731 -e 's:$: $lt_compiler_flag:'`
13732 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13733 (eval "$lt_compile" 2>conftest.err)
13734 ac_status=$?
13735 cat conftest.err >&5
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 if (exit $ac_status) && test -s "$ac_outfile"; then
13738 # The compiler can only warn and ignore the option if not recognized
13739 # So say no if there are warnings other than the usual output.
13740 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13741 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13742 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13743 lt_cv_prog_compiler_pic_works_CXX=yes
13744 fi
13745 fi
13746 $RM conftest*
13747
13748 fi
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13750 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13751
13752 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13753 case $lt_prog_compiler_pic_CXX in
13754 "" | " "*) ;;
13755 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13756 esac
13757 else
13758 lt_prog_compiler_pic_CXX=
13759 lt_prog_compiler_can_build_shared_CXX=no
13760 fi
13761
13762 fi
13763
13764
13765
13766 #
13767 # Check to make sure the static flag actually works.
13768 #
13769 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13771 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13772 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13773 $as_echo_n "(cached) " >&6
13774 else
13775 lt_cv_prog_compiler_static_works_CXX=no
13776 save_LDFLAGS="$LDFLAGS"
13777 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13778 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13779 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13780 # The linker can only warn and ignore the option if not recognized
13781 # So say no if there are warnings
13782 if test -s conftest.err; then
13783 # Append any errors to the config.log.
13784 cat conftest.err 1>&5
13785 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13786 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13787 if diff conftest.exp conftest.er2 >/dev/null; then
13788 lt_cv_prog_compiler_static_works_CXX=yes
13789 fi
13790 else
13791 lt_cv_prog_compiler_static_works_CXX=yes
13792 fi
13793 fi
13794 $RM -r conftest*
13795 LDFLAGS="$save_LDFLAGS"
13796
13797 fi
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13799 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13800
13801 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13802 :
13803 else
13804 lt_prog_compiler_static_CXX=
13805 fi
13806
13807
13808
13809
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13811 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13812 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13813 $as_echo_n "(cached) " >&6
13814 else
13815 lt_cv_prog_compiler_c_o_CXX=no
13816 $RM -r conftest 2>/dev/null
13817 mkdir conftest
13818 cd conftest
13819 mkdir out
13820 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13821
13822 lt_compiler_flag="-o out/conftest2.$ac_objext"
13823 # Insert the option either (1) after the last *FLAGS variable, or
13824 # (2) before a word containing "conftest.", or (3) at the end.
13825 # Note that $ac_compile itself does not contain backslashes and begins
13826 # with a dollar sign (not a hyphen), so the echo should work correctly.
13827 lt_compile=`echo "$ac_compile" | $SED \
13828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13830 -e 's:$: $lt_compiler_flag:'`
13831 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13832 (eval "$lt_compile" 2>out/conftest.err)
13833 ac_status=$?
13834 cat out/conftest.err >&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13837 then
13838 # The compiler can only warn and ignore the option if not recognized
13839 # So say no if there are warnings
13840 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13841 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13842 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13843 lt_cv_prog_compiler_c_o_CXX=yes
13844 fi
13845 fi
13846 chmod u+w . 2>&5
13847 $RM conftest*
13848 # SGI C++ compiler will create directory out/ii_files/ for
13849 # template instantiation
13850 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13851 $RM out/* && rmdir out
13852 cd ..
13853 $RM -r conftest
13854 $RM conftest*
13855
13856 fi
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13858 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13859
13860
13861
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13863 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13864 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13865 $as_echo_n "(cached) " >&6
13866 else
13867 lt_cv_prog_compiler_c_o_CXX=no
13868 $RM -r conftest 2>/dev/null
13869 mkdir conftest
13870 cd conftest
13871 mkdir out
13872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13873
13874 lt_compiler_flag="-o out/conftest2.$ac_objext"
13875 # Insert the option either (1) after the last *FLAGS variable, or
13876 # (2) before a word containing "conftest.", or (3) at the end.
13877 # Note that $ac_compile itself does not contain backslashes and begins
13878 # with a dollar sign (not a hyphen), so the echo should work correctly.
13879 lt_compile=`echo "$ac_compile" | $SED \
13880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13882 -e 's:$: $lt_compiler_flag:'`
13883 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13884 (eval "$lt_compile" 2>out/conftest.err)
13885 ac_status=$?
13886 cat out/conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13889 then
13890 # The compiler can only warn and ignore the option if not recognized
13891 # So say no if there are warnings
13892 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13893 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13894 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13895 lt_cv_prog_compiler_c_o_CXX=yes
13896 fi
13897 fi
13898 chmod u+w . 2>&5
13899 $RM conftest*
13900 # SGI C++ compiler will create directory out/ii_files/ for
13901 # template instantiation
13902 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13903 $RM out/* && rmdir out
13904 cd ..
13905 $RM -r conftest
13906 $RM conftest*
13907
13908 fi
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13910 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13911
13912
13913
13914
13915 hard_links="nottested"
13916 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13917 # do not overwrite the value of need_locks provided by the user
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13919 $as_echo_n "checking if we can lock with hard links... " >&6; }
13920 hard_links=yes
13921 $RM conftest*
13922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13923 touch conftest.a
13924 ln conftest.a conftest.b 2>&5 || hard_links=no
13925 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13927 $as_echo "$hard_links" >&6; }
13928 if test "$hard_links" = no; then
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13930 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13931 need_locks=warn
13932 fi
13933 else
13934 need_locks=no
13935 fi
13936
13937
13938
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13940 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13941
13942 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13943 case $host_os in
13944 aix[4-9]*)
13945 # If we're using GNU nm, then we don't want the "-C" option.
13946 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13947 # Also, AIX nm treats weak defined symbols like other global defined
13948 # symbols, whereas GNU nm marks them as "W".
13949 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13950 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'
13951 else
13952 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'
13953 fi
13954 ;;
13955 pw32*)
13956 export_symbols_cmds_CXX="$ltdll_cmds"
13957 ;;
13958 cygwin* | mingw* | cegcc*)
13959 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'
13960 ;;
13961 *)
13962 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13963 ;;
13964 esac
13965 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13966
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13968 $as_echo "$ld_shlibs_CXX" >&6; }
13969 test "$ld_shlibs_CXX" = no && can_build_shared=no
13970
13971 with_gnu_ld_CXX=$with_gnu_ld
13972
13973
13974
13975
13976
13977
13978 #
13979 # Do we need to explicitly link libc?
13980 #
13981 case "x$archive_cmds_need_lc_CXX" in
13982 x|xyes)
13983 # Assume -lc should be added
13984 archive_cmds_need_lc_CXX=yes
13985
13986 if test "$enable_shared" = yes && test "$GCC" = yes; then
13987 case $archive_cmds_CXX in
13988 *'~'*)
13989 # FIXME: we may have to deal with multi-command sequences.
13990 ;;
13991 '$CC '*)
13992 # Test whether the compiler implicitly links with -lc since on some
13993 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13994 # to ld, don't add -lc before -lgcc.
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13996 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13997 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13998 $as_echo_n "(cached) " >&6
13999 else
14000 $RM conftest*
14001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14002
14003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14004 (eval $ac_compile) 2>&5
14005 ac_status=$?
14006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14007 test $ac_status = 0; } 2>conftest.err; then
14008 soname=conftest
14009 lib=conftest
14010 libobjs=conftest.$ac_objext
14011 deplibs=
14012 wl=$lt_prog_compiler_wl_CXX
14013 pic_flag=$lt_prog_compiler_pic_CXX
14014 compiler_flags=-v
14015 linker_flags=-v
14016 verstring=
14017 output_objdir=.
14018 libname=conftest
14019 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14020 allow_undefined_flag_CXX=
14021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14022 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14023 ac_status=$?
14024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14025 test $ac_status = 0; }
14026 then
14027 lt_cv_archive_cmds_need_lc_CXX=no
14028 else
14029 lt_cv_archive_cmds_need_lc_CXX=yes
14030 fi
14031 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14032 else
14033 cat conftest.err 1>&5
14034 fi
14035 $RM conftest*
14036
14037 fi
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14039 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14040 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14041 ;;
14042 esac
14043 fi
14044 ;;
14045 esac
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14111 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14112
14113 library_names_spec=
14114 libname_spec='lib$name'
14115 soname_spec=
14116 shrext_cmds=".so"
14117 postinstall_cmds=
14118 postuninstall_cmds=
14119 finish_cmds=
14120 finish_eval=
14121 shlibpath_var=
14122 shlibpath_overrides_runpath=unknown
14123 version_type=none
14124 dynamic_linker="$host_os ld.so"
14125 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14126 need_lib_prefix=unknown
14127 hardcode_into_libs=no
14128
14129 # when you set need_version to no, make sure it does not cause -set_version
14130 # flags to be left without arguments
14131 need_version=unknown
14132
14133 case $host_os in
14134 aix3*)
14135 version_type=linux
14136 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14137 shlibpath_var=LIBPATH
14138
14139 # AIX 3 has no versioning support, so we append a major version to the name.
14140 soname_spec='${libname}${release}${shared_ext}$major'
14141 ;;
14142
14143 aix[4-9]*)
14144 version_type=linux
14145 need_lib_prefix=no
14146 need_version=no
14147 hardcode_into_libs=yes
14148 if test "$host_cpu" = ia64; then
14149 # AIX 5 supports IA64
14150 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14151 shlibpath_var=LD_LIBRARY_PATH
14152 else
14153 # With GCC up to 2.95.x, collect2 would create an import file
14154 # for dependence libraries. The import file would start with
14155 # the line `#! .'. This would cause the generated library to
14156 # depend on `.', always an invalid library. This was fixed in
14157 # development snapshots of GCC prior to 3.0.
14158 case $host_os in
14159 aix4 | aix4.[01] | aix4.[01].*)
14160 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14161 echo ' yes '
14162 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14163 :
14164 else
14165 can_build_shared=no
14166 fi
14167 ;;
14168 esac
14169 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14170 # soname into executable. Probably we can add versioning support to
14171 # collect2, so additional links can be useful in future.
14172 if test "$aix_use_runtimelinking" = yes; then
14173 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14174 # instead of lib<name>.a to let people know that these are not
14175 # typical AIX shared libraries.
14176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14177 else
14178 # We preserve .a as extension for shared libraries through AIX4.2
14179 # and later when we are not doing run time linking.
14180 library_names_spec='${libname}${release}.a $libname.a'
14181 soname_spec='${libname}${release}${shared_ext}$major'
14182 fi
14183 shlibpath_var=LIBPATH
14184 fi
14185 ;;
14186
14187 amigaos*)
14188 case $host_cpu in
14189 powerpc)
14190 # Since July 2007 AmigaOS4 officially supports .so libraries.
14191 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14193 ;;
14194 m68k)
14195 library_names_spec='$libname.ixlibrary $libname.a'
14196 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14197 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'
14198 ;;
14199 esac
14200 ;;
14201
14202 beos*)
14203 library_names_spec='${libname}${shared_ext}'
14204 dynamic_linker="$host_os ld.so"
14205 shlibpath_var=LIBRARY_PATH
14206 ;;
14207
14208 bsdi[45]*)
14209 version_type=linux
14210 need_version=no
14211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14212 soname_spec='${libname}${release}${shared_ext}$major'
14213 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14214 shlibpath_var=LD_LIBRARY_PATH
14215 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14216 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14217 # the default ld.so.conf also contains /usr/contrib/lib and
14218 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14219 # libtool to hard-code these into programs
14220 ;;
14221
14222 cygwin* | mingw* | pw32* | cegcc*)
14223 version_type=windows
14224 shrext_cmds=".dll"
14225 need_version=no
14226 need_lib_prefix=no
14227
14228 case $GCC,$host_os in
14229 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14230 library_names_spec='$libname.dll.a'
14231 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14232 postinstall_cmds='base_file=`basename \${file}`~
14233 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14234 dldir=$destdir/`dirname \$dlpath`~
14235 test -d \$dldir || mkdir -p \$dldir~
14236 $install_prog $dir/$dlname \$dldir/$dlname~
14237 chmod a+x \$dldir/$dlname~
14238 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14239 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14240 fi'
14241 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14242 dlpath=$dir/\$dldll~
14243 $RM \$dlpath'
14244 shlibpath_overrides_runpath=yes
14245
14246 case $host_os in
14247 cygwin*)
14248 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14249 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14250
14251 ;;
14252 mingw* | cegcc*)
14253 # MinGW DLLs use traditional 'lib' prefix
14254 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14255 ;;
14256 pw32*)
14257 # pw32 DLLs use 'pw' prefix rather than 'lib'
14258 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14259 ;;
14260 esac
14261 ;;
14262
14263 *)
14264 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14265 ;;
14266 esac
14267 dynamic_linker='Win32 ld.exe'
14268 # FIXME: first we should search . and the directory the executable is in
14269 shlibpath_var=PATH
14270 ;;
14271
14272 darwin* | rhapsody*)
14273 dynamic_linker="$host_os dyld"
14274 version_type=darwin
14275 need_lib_prefix=no
14276 need_version=no
14277 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14278 soname_spec='${libname}${release}${major}$shared_ext'
14279 shlibpath_overrides_runpath=yes
14280 shlibpath_var=DYLD_LIBRARY_PATH
14281 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14282
14283 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14284 ;;
14285
14286 dgux*)
14287 version_type=linux
14288 need_lib_prefix=no
14289 need_version=no
14290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14291 soname_spec='${libname}${release}${shared_ext}$major'
14292 shlibpath_var=LD_LIBRARY_PATH
14293 ;;
14294
14295 freebsd* | dragonfly*)
14296 # DragonFly does not have aout. When/if they implement a new
14297 # versioning mechanism, adjust this.
14298 if test -x /usr/bin/objformat; then
14299 objformat=`/usr/bin/objformat`
14300 else
14301 case $host_os in
14302 freebsd[23].*) objformat=aout ;;
14303 *) objformat=elf ;;
14304 esac
14305 fi
14306 version_type=freebsd-$objformat
14307 case $version_type in
14308 freebsd-elf*)
14309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14310 need_version=no
14311 need_lib_prefix=no
14312 ;;
14313 freebsd-*)
14314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14315 need_version=yes
14316 ;;
14317 esac
14318 shlibpath_var=LD_LIBRARY_PATH
14319 case $host_os in
14320 freebsd2.*)
14321 shlibpath_overrides_runpath=yes
14322 ;;
14323 freebsd3.[01]* | freebsdelf3.[01]*)
14324 shlibpath_overrides_runpath=yes
14325 hardcode_into_libs=yes
14326 ;;
14327 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14328 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14329 shlibpath_overrides_runpath=no
14330 hardcode_into_libs=yes
14331 ;;
14332 *) # from 4.6 on, and DragonFly
14333 shlibpath_overrides_runpath=yes
14334 hardcode_into_libs=yes
14335 ;;
14336 esac
14337 ;;
14338
14339 haiku*)
14340 version_type=linux
14341 need_lib_prefix=no
14342 need_version=no
14343 dynamic_linker="$host_os runtime_loader"
14344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14345 soname_spec='${libname}${release}${shared_ext}$major'
14346 shlibpath_var=LIBRARY_PATH
14347 shlibpath_overrides_runpath=yes
14348 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14349 hardcode_into_libs=yes
14350 ;;
14351
14352 hpux9* | hpux10* | hpux11*)
14353 # Give a soname corresponding to the major version so that dld.sl refuses to
14354 # link against other versions.
14355 version_type=sunos
14356 need_lib_prefix=no
14357 need_version=no
14358 case $host_cpu in
14359 ia64*)
14360 shrext_cmds='.so'
14361 hardcode_into_libs=yes
14362 dynamic_linker="$host_os dld.so"
14363 shlibpath_var=LD_LIBRARY_PATH
14364 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14366 soname_spec='${libname}${release}${shared_ext}$major'
14367 if test "X$HPUX_IA64_MODE" = X32; then
14368 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14369 else
14370 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14371 fi
14372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14373 ;;
14374 hppa*64*)
14375 shrext_cmds='.sl'
14376 hardcode_into_libs=yes
14377 dynamic_linker="$host_os dld.sl"
14378 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14379 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14381 soname_spec='${libname}${release}${shared_ext}$major'
14382 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14383 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14384 ;;
14385 *)
14386 shrext_cmds='.sl'
14387 dynamic_linker="$host_os dld.sl"
14388 shlibpath_var=SHLIB_PATH
14389 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14391 soname_spec='${libname}${release}${shared_ext}$major'
14392 ;;
14393 esac
14394 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14395 postinstall_cmds='chmod 555 $lib'
14396 # or fails outright, so override atomically:
14397 install_override_mode=555
14398 ;;
14399
14400 interix[3-9]*)
14401 version_type=linux
14402 need_lib_prefix=no
14403 need_version=no
14404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14405 soname_spec='${libname}${release}${shared_ext}$major'
14406 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14407 shlibpath_var=LD_LIBRARY_PATH
14408 shlibpath_overrides_runpath=no
14409 hardcode_into_libs=yes
14410 ;;
14411
14412 irix5* | irix6* | nonstopux*)
14413 case $host_os in
14414 nonstopux*) version_type=nonstopux ;;
14415 *)
14416 if test "$lt_cv_prog_gnu_ld" = yes; then
14417 version_type=linux
14418 else
14419 version_type=irix
14420 fi ;;
14421 esac
14422 need_lib_prefix=no
14423 need_version=no
14424 soname_spec='${libname}${release}${shared_ext}$major'
14425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14426 case $host_os in
14427 irix5* | nonstopux*)
14428 libsuff= shlibsuff=
14429 ;;
14430 *)
14431 case $LD in # libtool.m4 will add one of these switches to LD
14432 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14433 libsuff= shlibsuff= libmagic=32-bit;;
14434 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14435 libsuff=32 shlibsuff=N32 libmagic=N32;;
14436 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14437 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14438 *) libsuff= shlibsuff= libmagic=never-match;;
14439 esac
14440 ;;
14441 esac
14442 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14443 shlibpath_overrides_runpath=no
14444 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14445 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14446 hardcode_into_libs=yes
14447 ;;
14448
14449 # No shared lib support for Linux oldld, aout, or coff.
14450 linux*oldld* | linux*aout* | linux*coff*)
14451 dynamic_linker=no
14452 ;;
14453
14454 # This must be Linux ELF.
14455 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14456 version_type=linux
14457 need_lib_prefix=no
14458 need_version=no
14459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14460 soname_spec='${libname}${release}${shared_ext}$major'
14461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14462 shlibpath_var=LD_LIBRARY_PATH
14463 shlibpath_overrides_runpath=no
14464
14465 # Some binutils ld are patched to set DT_RUNPATH
14466 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14467 $as_echo_n "(cached) " >&6
14468 else
14469 lt_cv_shlibpath_overrides_runpath=no
14470 save_LDFLAGS=$LDFLAGS
14471 save_libdir=$libdir
14472 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14473 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475 /* end confdefs.h. */
14476
14477 int
14478 main ()
14479 {
14480
14481 ;
14482 return 0;
14483 }
14484 _ACEOF
14485 if ac_fn_cxx_try_link "$LINENO"; then :
14486 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14487 lt_cv_shlibpath_overrides_runpath=yes
14488 fi
14489 fi
14490 rm -f core conftest.err conftest.$ac_objext \
14491 conftest$ac_exeext conftest.$ac_ext
14492 LDFLAGS=$save_LDFLAGS
14493 libdir=$save_libdir
14494
14495 fi
14496
14497 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14498
14499 # This implies no fast_install, which is unacceptable.
14500 # Some rework will be needed to allow for fast_install
14501 # before this can be enabled.
14502 hardcode_into_libs=yes
14503
14504 # Append ld.so.conf contents to the search path
14505 if test -f /etc/ld.so.conf; then
14506 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' ' '`
14507 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14508 fi
14509
14510 # We used to test for /lib/ld.so.1 and disable shared libraries on
14511 # powerpc, because MkLinux only supported shared libraries with the
14512 # GNU dynamic linker. Since this was broken with cross compilers,
14513 # most powerpc-linux boxes support dynamic linking these days and
14514 # people can always --disable-shared, the test was removed, and we
14515 # assume the GNU/Linux dynamic linker is in use.
14516 dynamic_linker='GNU/Linux ld.so'
14517 ;;
14518
14519 netbsd*)
14520 version_type=sunos
14521 need_lib_prefix=no
14522 need_version=no
14523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14526 dynamic_linker='NetBSD (a.out) ld.so'
14527 else
14528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14529 soname_spec='${libname}${release}${shared_ext}$major'
14530 dynamic_linker='NetBSD ld.elf_so'
14531 fi
14532 shlibpath_var=LD_LIBRARY_PATH
14533 shlibpath_overrides_runpath=yes
14534 hardcode_into_libs=yes
14535 ;;
14536
14537 newsos6)
14538 version_type=linux
14539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14540 shlibpath_var=LD_LIBRARY_PATH
14541 shlibpath_overrides_runpath=yes
14542 ;;
14543
14544 *nto* | *qnx*)
14545 version_type=qnx
14546 need_lib_prefix=no
14547 need_version=no
14548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14549 soname_spec='${libname}${release}${shared_ext}$major'
14550 shlibpath_var=LD_LIBRARY_PATH
14551 shlibpath_overrides_runpath=no
14552 hardcode_into_libs=yes
14553 dynamic_linker='ldqnx.so'
14554 ;;
14555
14556 openbsd*)
14557 version_type=sunos
14558 sys_lib_dlsearch_path_spec="/usr/lib"
14559 need_lib_prefix=no
14560 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14561 case $host_os in
14562 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14563 *) need_version=no ;;
14564 esac
14565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14567 shlibpath_var=LD_LIBRARY_PATH
14568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14569 case $host_os in
14570 openbsd2.[89] | openbsd2.[89].*)
14571 shlibpath_overrides_runpath=no
14572 ;;
14573 *)
14574 shlibpath_overrides_runpath=yes
14575 ;;
14576 esac
14577 else
14578 shlibpath_overrides_runpath=yes
14579 fi
14580 ;;
14581
14582 os2*)
14583 libname_spec='$name'
14584 shrext_cmds=".dll"
14585 need_lib_prefix=no
14586 library_names_spec='$libname${shared_ext} $libname.a'
14587 dynamic_linker='OS/2 ld.exe'
14588 shlibpath_var=LIBPATH
14589 ;;
14590
14591 osf3* | osf4* | osf5*)
14592 version_type=osf
14593 need_lib_prefix=no
14594 need_version=no
14595 soname_spec='${libname}${release}${shared_ext}$major'
14596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597 shlibpath_var=LD_LIBRARY_PATH
14598 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14599 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14600 ;;
14601
14602 rdos*)
14603 dynamic_linker=no
14604 ;;
14605
14606 solaris*)
14607 version_type=linux
14608 need_lib_prefix=no
14609 need_version=no
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611 soname_spec='${libname}${release}${shared_ext}$major'
14612 shlibpath_var=LD_LIBRARY_PATH
14613 shlibpath_overrides_runpath=yes
14614 hardcode_into_libs=yes
14615 # ldd complains unless libraries are executable
14616 postinstall_cmds='chmod +x $lib'
14617 ;;
14618
14619 sunos4*)
14620 version_type=sunos
14621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14622 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14623 shlibpath_var=LD_LIBRARY_PATH
14624 shlibpath_overrides_runpath=yes
14625 if test "$with_gnu_ld" = yes; then
14626 need_lib_prefix=no
14627 fi
14628 need_version=yes
14629 ;;
14630
14631 sysv4 | sysv4.3*)
14632 version_type=linux
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14634 soname_spec='${libname}${release}${shared_ext}$major'
14635 shlibpath_var=LD_LIBRARY_PATH
14636 case $host_vendor in
14637 sni)
14638 shlibpath_overrides_runpath=no
14639 need_lib_prefix=no
14640 runpath_var=LD_RUN_PATH
14641 ;;
14642 siemens)
14643 need_lib_prefix=no
14644 ;;
14645 motorola)
14646 need_lib_prefix=no
14647 need_version=no
14648 shlibpath_overrides_runpath=no
14649 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14650 ;;
14651 esac
14652 ;;
14653
14654 sysv4*MP*)
14655 if test -d /usr/nec ;then
14656 version_type=linux
14657 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14658 soname_spec='$libname${shared_ext}.$major'
14659 shlibpath_var=LD_LIBRARY_PATH
14660 fi
14661 ;;
14662
14663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14664 version_type=freebsd-elf
14665 need_lib_prefix=no
14666 need_version=no
14667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14668 soname_spec='${libname}${release}${shared_ext}$major'
14669 shlibpath_var=LD_LIBRARY_PATH
14670 shlibpath_overrides_runpath=yes
14671 hardcode_into_libs=yes
14672 if test "$with_gnu_ld" = yes; then
14673 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14674 else
14675 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14676 case $host_os in
14677 sco3.2v5*)
14678 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14679 ;;
14680 esac
14681 fi
14682 sys_lib_dlsearch_path_spec='/usr/lib'
14683 ;;
14684
14685 tpf*)
14686 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14687 version_type=linux
14688 need_lib_prefix=no
14689 need_version=no
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691 shlibpath_var=LD_LIBRARY_PATH
14692 shlibpath_overrides_runpath=no
14693 hardcode_into_libs=yes
14694 ;;
14695
14696 uts4*)
14697 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
14701 ;;
14702
14703 *)
14704 dynamic_linker=no
14705 ;;
14706 esac
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14708 $as_echo "$dynamic_linker" >&6; }
14709 test "$dynamic_linker" = no && can_build_shared=no
14710
14711 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14712 if test "$GCC" = yes; then
14713 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14714 fi
14715
14716 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14717 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14718 fi
14719 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14720 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14721 fi
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14761 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14762 hardcode_action_CXX=
14763 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14764 test -n "$runpath_var_CXX" ||
14765 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14766
14767 # We can hardcode non-existent directories.
14768 if test "$hardcode_direct_CXX" != no &&
14769 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14770 # have to relink, otherwise we might link with an installed library
14771 # when we should be linking with a yet-to-be-installed one
14772 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14773 test "$hardcode_minus_L_CXX" != no; then
14774 # Linking always hardcodes the temporary library directory.
14775 hardcode_action_CXX=relink
14776 else
14777 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14778 hardcode_action_CXX=immediate
14779 fi
14780 else
14781 # We cannot hardcode anything, or else we can only hardcode existing
14782 # directories.
14783 hardcode_action_CXX=unsupported
14784 fi
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14786 $as_echo "$hardcode_action_CXX" >&6; }
14787
14788 if test "$hardcode_action_CXX" = relink ||
14789 test "$inherit_rpath_CXX" = yes; then
14790 # Fast installation is not supported
14791 enable_fast_install=no
14792 elif test "$shlibpath_overrides_runpath" = yes ||
14793 test "$enable_shared" = no; then
14794 # Fast installation is not necessary
14795 enable_fast_install=needless
14796 fi
14797
14798
14799
14800
14801
14802
14803
14804 fi # test -n "$compiler"
14805
14806 CC=$lt_save_CC
14807 LDCXX=$LD
14808 LD=$lt_save_LD
14809 GCC=$lt_save_GCC
14810 with_gnu_ld=$lt_save_with_gnu_ld
14811 lt_cv_path_LDCXX=$lt_cv_path_LD
14812 lt_cv_path_LD=$lt_save_path_LD
14813 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14814 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14815 fi # test "$_lt_caught_CXX_error" != yes
14816
14817 ac_ext=c
14818 ac_cpp='$CPP $CPPFLAGS'
14819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835 ac_config_commands="$ac_config_commands libtool"
14836
14837
14838
14839
14840 # Only expand once:
14841
14842
14843
14844 # The tests for host and target for $enable_largefile require
14845 # canonical names.
14846
14847
14848
14849 # As the $enable_largefile decision depends on --enable-plugins we must set it
14850 # even in directories otherwise not depending on the $plugins option.
14851
14852
14853 maybe_plugins=no
14854 for ac_header in dlfcn.h
14855 do :
14856 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14857 "
14858 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14859 cat >>confdefs.h <<_ACEOF
14860 #define HAVE_DLFCN_H 1
14861 _ACEOF
14862 maybe_plugins=yes
14863 fi
14864
14865 done
14866
14867 for ac_header in windows.h
14868 do :
14869 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
14870 "
14871 if test "x$ac_cv_header_windows_h" = xyes; then :
14872 cat >>confdefs.h <<_ACEOF
14873 #define HAVE_WINDOWS_H 1
14874 _ACEOF
14875 maybe_plugins=yes
14876 fi
14877
14878 done
14879
14880
14881 # Check whether --enable-plugins was given.
14882 if test "${enable_plugins+set}" = set; then :
14883 enableval=$enable_plugins; case "${enableval}" in
14884 no) plugins=no ;;
14885 *) plugins=yes
14886 if test "$maybe_plugins" != "yes" ; then
14887 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
14888 fi ;;
14889 esac
14890 else
14891 plugins=$maybe_plugins
14892
14893 fi
14894
14895 if test "$plugins" = "yes"; then
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
14897 $as_echo_n "checking for library containing dlsym... " >&6; }
14898 if ${ac_cv_search_dlsym+:} false; then :
14899 $as_echo_n "(cached) " >&6
14900 else
14901 ac_func_search_save_LIBS=$LIBS
14902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14903 /* end confdefs.h. */
14904
14905 /* Override any GCC internal prototype to avoid an error.
14906 Use char because int might match the return type of a GCC
14907 builtin and then its argument prototype would still apply. */
14908 #ifdef __cplusplus
14909 extern "C"
14910 #endif
14911 char dlsym ();
14912 int
14913 main ()
14914 {
14915 return dlsym ();
14916 ;
14917 return 0;
14918 }
14919 _ACEOF
14920 for ac_lib in '' dl; do
14921 if test -z "$ac_lib"; then
14922 ac_res="none required"
14923 else
14924 ac_res=-l$ac_lib
14925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14926 fi
14927 if ac_fn_c_try_link "$LINENO"; then :
14928 ac_cv_search_dlsym=$ac_res
14929 fi
14930 rm -f core conftest.err conftest.$ac_objext \
14931 conftest$ac_exeext
14932 if ${ac_cv_search_dlsym+:} false; then :
14933 break
14934 fi
14935 done
14936 if ${ac_cv_search_dlsym+:} false; then :
14937
14938 else
14939 ac_cv_search_dlsym=no
14940 fi
14941 rm conftest.$ac_ext
14942 LIBS=$ac_func_search_save_LIBS
14943 fi
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
14945 $as_echo "$ac_cv_search_dlsym" >&6; }
14946 ac_res=$ac_cv_search_dlsym
14947 if test "$ac_res" != no; then :
14948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14949
14950 fi
14951
14952 fi
14953
14954
14955 case "${host}" in
14956 sparc-*-solaris*|i?86-*-solaris*)
14957 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
14958 # were mutually exclusive until Solaris 11.3. Without procfs support,
14959 # the bfd/ elf module cannot provide certain routines such as
14960 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
14961 # explicitly requested large-file support through the
14962 # --enable-largefile switch, disable large-file support in favor of
14963 # procfs support.
14964 #
14965 # Check if <sys/procfs.h> is incompatible with large-file support.
14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14968 #define _FILE_OFFSET_BITS 64
14969 #define _STRUCTURED_PROC 1
14970 #include <sys/procfs.h>
14971 int
14972 main ()
14973 {
14974
14975 ;
14976 return 0;
14977 }
14978 _ACEOF
14979 if ac_fn_c_try_compile "$LINENO"; then :
14980 acx_cv_procfs_lfs=yes
14981 else
14982 acx_cv_procfs_lfs=no
14983 fi
14984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14985 #
14986 # Forcefully disable large-file support only if necessary, gdb is in
14987 # tree and enabled.
14988 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
14989 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
14990 : ${enable_largefile="no"}
14991 if test "$plugins" = yes; then
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14993 plugin support disabled; require large-file support which is incompatible with GDB." >&5
14994 $as_echo "$as_me: WARNING:
14995 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
14996 plugins=no
14997 fi
14998 fi
14999 #
15000 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
15001 # benefit of g++ 9+ which predefines it on Solaris.
15002 if test "$enable_largefile" = no; then
15003 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
15004
15005 fi
15006 ;;
15007 esac
15008
15009 # Check whether --enable-largefile was given.
15010 if test "${enable_largefile+set}" = set; then :
15011 enableval=$enable_largefile;
15012 fi
15013
15014 if test "$enable_largefile" != no; then
15015
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15017 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15018 if ${ac_cv_sys_largefile_CC+:} false; then :
15019 $as_echo_n "(cached) " >&6
15020 else
15021 ac_cv_sys_largefile_CC=no
15022 if test "$GCC" != yes; then
15023 ac_save_CC=$CC
15024 while :; do
15025 # IRIX 6.2 and later do not support large files by default,
15026 # so use the C compiler's -n32 option if that helps.
15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15029 #include <sys/types.h>
15030 /* Check that off_t can represent 2**63 - 1 correctly.
15031 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15032 since some C++ compilers masquerading as C compilers
15033 incorrectly reject 9223372036854775807. */
15034 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15035 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15036 && LARGE_OFF_T % 2147483647 == 1)
15037 ? 1 : -1];
15038 int
15039 main ()
15040 {
15041
15042 ;
15043 return 0;
15044 }
15045 _ACEOF
15046 if ac_fn_c_try_compile "$LINENO"; then :
15047 break
15048 fi
15049 rm -f core conftest.err conftest.$ac_objext
15050 CC="$CC -n32"
15051 if ac_fn_c_try_compile "$LINENO"; then :
15052 ac_cv_sys_largefile_CC=' -n32'; break
15053 fi
15054 rm -f core conftest.err conftest.$ac_objext
15055 break
15056 done
15057 CC=$ac_save_CC
15058 rm -f conftest.$ac_ext
15059 fi
15060 fi
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15062 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15063 if test "$ac_cv_sys_largefile_CC" != no; then
15064 CC=$CC$ac_cv_sys_largefile_CC
15065 fi
15066
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15068 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15069 if ${ac_cv_sys_file_offset_bits+:} false; then :
15070 $as_echo_n "(cached) " >&6
15071 else
15072 while :; do
15073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15074 /* end confdefs.h. */
15075 #include <sys/types.h>
15076 /* Check that off_t can represent 2**63 - 1 correctly.
15077 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15078 since some C++ compilers masquerading as C compilers
15079 incorrectly reject 9223372036854775807. */
15080 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15081 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15082 && LARGE_OFF_T % 2147483647 == 1)
15083 ? 1 : -1];
15084 int
15085 main ()
15086 {
15087
15088 ;
15089 return 0;
15090 }
15091 _ACEOF
15092 if ac_fn_c_try_compile "$LINENO"; then :
15093 ac_cv_sys_file_offset_bits=no; break
15094 fi
15095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097 /* end confdefs.h. */
15098 #define _FILE_OFFSET_BITS 64
15099 #include <sys/types.h>
15100 /* Check that off_t can represent 2**63 - 1 correctly.
15101 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15102 since some C++ compilers masquerading as C compilers
15103 incorrectly reject 9223372036854775807. */
15104 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15105 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15106 && LARGE_OFF_T % 2147483647 == 1)
15107 ? 1 : -1];
15108 int
15109 main ()
15110 {
15111
15112 ;
15113 return 0;
15114 }
15115 _ACEOF
15116 if ac_fn_c_try_compile "$LINENO"; then :
15117 ac_cv_sys_file_offset_bits=64; break
15118 fi
15119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120 ac_cv_sys_file_offset_bits=unknown
15121 break
15122 done
15123 fi
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15125 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15126 case $ac_cv_sys_file_offset_bits in #(
15127 no | unknown) ;;
15128 *)
15129 cat >>confdefs.h <<_ACEOF
15130 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15131 _ACEOF
15132 ;;
15133 esac
15134 rm -rf conftest*
15135 if test $ac_cv_sys_file_offset_bits = unknown; then
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15137 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15138 if ${ac_cv_sys_large_files+:} false; then :
15139 $as_echo_n "(cached) " >&6
15140 else
15141 while :; do
15142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15143 /* end confdefs.h. */
15144 #include <sys/types.h>
15145 /* Check that off_t can represent 2**63 - 1 correctly.
15146 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15147 since some C++ compilers masquerading as C compilers
15148 incorrectly reject 9223372036854775807. */
15149 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15150 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15151 && LARGE_OFF_T % 2147483647 == 1)
15152 ? 1 : -1];
15153 int
15154 main ()
15155 {
15156
15157 ;
15158 return 0;
15159 }
15160 _ACEOF
15161 if ac_fn_c_try_compile "$LINENO"; then :
15162 ac_cv_sys_large_files=no; break
15163 fi
15164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15166 /* end confdefs.h. */
15167 #define _LARGE_FILES 1
15168 #include <sys/types.h>
15169 /* Check that off_t can represent 2**63 - 1 correctly.
15170 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15171 since some C++ compilers masquerading as C compilers
15172 incorrectly reject 9223372036854775807. */
15173 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15174 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15175 && LARGE_OFF_T % 2147483647 == 1)
15176 ? 1 : -1];
15177 int
15178 main ()
15179 {
15180
15181 ;
15182 return 0;
15183 }
15184 _ACEOF
15185 if ac_fn_c_try_compile "$LINENO"; then :
15186 ac_cv_sys_large_files=1; break
15187 fi
15188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15189 ac_cv_sys_large_files=unknown
15190 break
15191 done
15192 fi
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15194 $as_echo "$ac_cv_sys_large_files" >&6; }
15195 case $ac_cv_sys_large_files in #(
15196 no | unknown) ;;
15197 *)
15198 cat >>confdefs.h <<_ACEOF
15199 #define _LARGE_FILES $ac_cv_sys_large_files
15200 _ACEOF
15201 ;;
15202 esac
15203 rm -rf conftest*
15204 fi
15205
15206
15207 fi
15208
15209
15210
15211 ac_checking=
15212 . ${srcdir}/../bfd/development.sh
15213 test "$development" = true && ac_checking=yes
15214 # Check whether --enable-checking was given.
15215 if test "${enable_checking+set}" = set; then :
15216 enableval=$enable_checking; case "${enableval}" in
15217 no|none) ac_checking= ;;
15218 *) ac_checking=yes ;;
15219 esac
15220 fi
15221 if test x$ac_checking != x ; then
15222
15223 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
15224
15225 fi
15226
15227
15228 # Check whether --with-lib-path was given.
15229 if test "${with_lib_path+set}" = set; then :
15230 withval=$with_lib_path; LIB_PATH=$withval
15231 fi
15232
15233 # Check whether --enable-targets was given.
15234 if test "${enable_targets+set}" = set; then :
15235 enableval=$enable_targets; case "${enableval}" in
15236 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
15237 ;;
15238 no) enable_targets= ;;
15239 *) enable_targets=$enableval ;;
15240 esac
15241 fi
15242
15243 # Check whether --enable-64-bit-bfd was given.
15244 if test "${enable_64_bit_bfd+set}" = set; then :
15245 enableval=$enable_64_bit_bfd; case $enableval in #(
15246 yes|no) :
15247 ;; #(
15248 *) :
15249 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
15250 *) :
15251 ;;
15252 esac
15253 else
15254 enable_64_bit_bfd=no
15255 fi
15256
15257
15258 if test "x$enable_64_bit_bfd" = "xno"; then :
15259 # The cast to long int works around a bug in the HP C Compiler
15260 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15261 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15262 # This bug is HP SR number 8606223364.
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15264 $as_echo_n "checking size of void *... " >&6; }
15265 if ${ac_cv_sizeof_void_p+:} false; then :
15266 $as_echo_n "(cached) " >&6
15267 else
15268 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15269
15270 else
15271 if test "$ac_cv_type_void_p" = yes; then
15272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15274 as_fn_error 77 "cannot compute sizeof (void *)
15275 See \`config.log' for more details" "$LINENO" 5; }
15276 else
15277 ac_cv_sizeof_void_p=0
15278 fi
15279 fi
15280
15281 fi
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15283 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15284
15285
15286
15287 cat >>confdefs.h <<_ACEOF
15288 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15289 _ACEOF
15290
15291
15292 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
15293 enable_64_bit_bfd=yes
15294 fi
15295
15296 fi
15297
15298 if test "x$enable_64_bit_bfd" = "xyes"; then
15299 ENABLE_BFD_64_BIT_TRUE=
15300 ENABLE_BFD_64_BIT_FALSE='#'
15301 else
15302 ENABLE_BFD_64_BIT_TRUE='#'
15303 ENABLE_BFD_64_BIT_FALSE=
15304 fi
15305
15306
15307
15308
15309 # Check whether --with-sysroot was given.
15310 if test "${with_sysroot+set}" = set; then :
15311 withval=$with_sysroot;
15312 case ${with_sysroot} in
15313 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15314 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15315 esac
15316
15317 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15318 use_sysroot=yes
15319
15320 if test "x$prefix" = xNONE; then
15321 test_prefix=/usr/local
15322 else
15323 test_prefix=$prefix
15324 fi
15325 if test "x$exec_prefix" = xNONE; then
15326 test_exec_prefix=$test_prefix
15327 else
15328 test_exec_prefix=$exec_prefix
15329 fi
15330 case ${TARGET_SYSTEM_ROOT} in
15331 "${test_prefix}"|"${test_prefix}/"*|\
15332 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15333 '${prefix}'|'${prefix}/'*|\
15334 '${exec_prefix}'|'${exec_prefix}/'*)
15335 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15336 TARGET_SYSTEM_ROOT_DEFINE="$t"
15337 ;;
15338 esac
15339
15340 else
15341
15342 use_sysroot=no
15343 TARGET_SYSTEM_ROOT=
15344 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15345
15346 fi
15347
15348
15349
15350
15351
15352 # Check whether --enable-gold was given.
15353 if test "${enable_gold+set}" = set; then :
15354 enableval=$enable_gold; case "${enableval}" in
15355 default)
15356 install_as_default=no
15357 installed_linker=ld.bfd
15358 ;;
15359 yes|no)
15360 install_as_default=yes
15361 installed_linker=ld.bfd
15362 ;;
15363 *)
15364 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
15365 ;;
15366 esac
15367 else
15368 install_as_default=yes
15369 installed_linker=ld.bfd
15370 fi
15371
15372
15373
15374
15375 # Check whether --enable-got was given.
15376 if test "${enable_got+set}" = set; then :
15377 enableval=$enable_got; case "${enableval}" in
15378 target | single | negative | multigot) got_handling=$enableval ;;
15379 *) as_fn_error $? "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15380 esac
15381 else
15382 got_handling=target
15383 fi
15384
15385
15386 case "${got_handling}" in
15387 target)
15388
15389 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15390 ;;
15391 single)
15392
15393 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15394 ;;
15395 negative)
15396
15397 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15398 ;;
15399 multigot)
15400
15401 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15402 ;;
15403 *) as_fn_error $? "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15404 esac
15405
15406 # PR gas/19109
15407 # Decide the default method for compressing debug sections.
15408 ac_default_compressed_debug_sections=unset
15409 # Provide a configure time option to override our default.
15410 # Check whether --enable-compressed_debug_sections was given.
15411 if test "${enable_compressed_debug_sections+set}" = set; then :
15412 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
15413 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
15414 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
15415 esac
15416 fi
15417
15418 # Decide setting DT_RUNPATH instead of DT_RPATH by default
15419 ac_default_new_dtags=unset
15420 # Provide a configure time option to override our default.
15421 # Check whether --enable-new_dtags was given.
15422 if test "${enable_new_dtags+set}" = set; then :
15423 enableval=$enable_new_dtags; case "${enableval}" in
15424 yes) ac_default_new_dtags=1 ;;
15425 no) ac_default_new_dtags=0 ;;
15426 esac
15427 fi
15428
15429 # Decide if -z relro should be enabled in ELF linker by default.
15430 ac_default_ld_z_relro=unset
15431 # Provide a configure time option to override our default.
15432 # Check whether --enable-relro was given.
15433 if test "${enable_relro+set}" = set; then :
15434 enableval=$enable_relro; case "${enableval}" in
15435 yes) ac_default_ld_z_relro=1 ;;
15436 no) ac_default_ld_z_relro=0 ;;
15437 esac
15438 fi
15439
15440 # Decide if DT_TEXTREL check should be enabled in ELF linker.
15441 ac_default_ld_textrel_check=unset
15442 # Check whether --enable-textrel-check was given.
15443 if test "${enable_textrel_check+set}" = set; then :
15444 enableval=$enable_textrel_check; case "${enableval}" in
15445 yes|no|warning|error) ac_default_ld_textrel_check=${enableval} ;;
15446 esac
15447 fi
15448
15449
15450 # Decide if -z separate-code should be enabled in ELF linker by default.
15451 ac_default_ld_z_separate_code=unset
15452 # Check whether --enable-separate-code was given.
15453 if test "${enable_separate_code+set}" = set; then :
15454 enableval=$enable_separate_code; case "${enableval}" in
15455 yes) ac_default_ld_z_separate_code=1 ;;
15456 no) ac_default_ld_z_separate_code=0 ;;
15457 esac
15458 fi
15459
15460
15461
15462 # By default warn when an executable stack is created due to object files
15463 # requesting such, not when the user specifies -z execstack.
15464 case "${target}" in
15465 # The HPPA port needs to support older kernels that use executable stacks
15466 # for signals and syscalls.
15467 hppa*-*-*) ac_default_ld_warn_execstack=0 ;;
15468 *) ac_default_ld_warn_execstack=2 ;;
15469 esac
15470 # Check whether --enable-warn-execstack was given.
15471 if test "${enable_warn_execstack+set}" = set; then :
15472 enableval=$enable_warn_execstack; case "${enableval}" in
15473 yes) ac_default_ld_warn_execstack=1 ;;
15474 no) ac_default_ld_warn_execstack=0 ;;
15475 esac
15476 fi
15477
15478
15479 ac_default_ld_warn_rwx_segments=unset
15480 # Check whether --enable-warn-rwx-segments was given.
15481 if test "${enable_warn_rwx_segments+set}" = set; then :
15482 enableval=$enable_warn_rwx_segments; case "${enableval}" in
15483 yes) ac_default_ld_warn_rwx_segments=1 ;;
15484 no) ac_default_ld_warn_rwx_segments=0 ;;
15485 esac
15486 fi
15487
15488
15489 ac_default_ld_default_execstack=unset
15490 # Check whether --enable-default-execstack was given.
15491 if test "${enable_default_execstack+set}" = set; then :
15492 enableval=$enable_default_execstack; case "${enableval}" in
15493 yes) ac_default_ld_default_execstack=1 ;;
15494 no) ac_default_ld_default_execstack=0 ;;
15495 esac
15496 fi
15497
15498
15499
15500 # Decide if --error-handling-script should be supported.
15501 ac_support_error_handling_script=unset
15502 # Check whether --enable-error-handling-script was given.
15503 if test "${enable_error_handling_script+set}" = set; then :
15504 enableval=$enable_error_handling_script; case "${enableval}" in
15505 yes) ac_support_error_handling_script=1 ;;
15506 no) ac_support_error_handling_script=0 ;;
15507 esac
15508 fi
15509
15510
15511 # Decide which "--hash-style" to use by default
15512 # Provide a configure time option to override our default.
15513 # Check whether --enable-default-hash-style was given.
15514 if test "${enable_default_hash_style+set}" = set; then :
15515 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
15516 sysv | gnu | both) ;;
15517 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
15518 esac
15519 else
15520 case "${target}" in
15521 # Enable gnu hash only on GNU targets, but not mips
15522 mips*-*-*) enable_default_hash_style=sysv ;;
15523 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
15524 *) enable_default_hash_style=sysv ;;
15525 esac
15526 fi
15527
15528
15529 case "${enable_default_hash_style}" in
15530 sysv | both) ac_default_emit_sysv_hash=1 ;;
15531 *) ac_default_emit_sysv_hash=0 ;;
15532 esac
15533
15534 case "${enable_default_hash_style}" in
15535 gnu | both) ac_default_emit_gnu_hash=1 ;;
15536 *) ac_default_emit_gnu_hash=0 ;;
15537 esac
15538
15539 # Check whether --enable-initfini-array was given.
15540 if test "${enable_initfini_array+set}" = set; then :
15541 enableval=$enable_initfini_array; case "${enableval}" in
15542 yes|no) ;;
15543 *) as_fn_error $? "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
15544 esac
15545 else
15546 enable_initfini_array=yes
15547 fi
15548
15549
15550 if test $enable_initfini_array = yes; then
15551
15552 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
15553
15554 fi
15555
15556 # Check whether --enable-libctf was given.
15557 if test "${enable_libctf+set}" = set; then :
15558 enableval=$enable_libctf;
15559 case "$enableval" in
15560 yes|no) ;;
15561 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
15562 esac
15563
15564 else
15565 enable_libctf=yes
15566 fi
15567
15568
15569 if test "${enable_libctf}" = yes; then
15570
15571 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
15572
15573 fi
15574 if test "${enable_libctf}" = yes; then
15575 ENABLE_LIBCTF_TRUE=
15576 ENABLE_LIBCTF_FALSE='#'
15577 else
15578 ENABLE_LIBCTF_TRUE='#'
15579 ENABLE_LIBCTF_FALSE=
15580 fi
15581
15582
15583
15584 # Used to validate --package-metadata= input. Disabled by default.
15585 # Check whether --enable-jansson was given.
15586 if test "${enable_jansson+set}" = set; then :
15587 enableval=$enable_jansson; enable_jansson=$enableval
15588 else
15589 enable_jansson="no"
15590 fi
15591
15592
15593 if test "x$enable_jansson" != "xno"; then
15594
15595
15596
15597
15598
15599
15600
15601 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15602 if test -n "$ac_tool_prefix"; then
15603 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15604 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15606 $as_echo_n "checking for $ac_word... " >&6; }
15607 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15608 $as_echo_n "(cached) " >&6
15609 else
15610 case $PKG_CONFIG in
15611 [\\/]* | ?:[\\/]*)
15612 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15613 ;;
15614 *)
15615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15616 for as_dir in $PATH
15617 do
15618 IFS=$as_save_IFS
15619 test -z "$as_dir" && as_dir=.
15620 for ac_exec_ext in '' $ac_executable_extensions; do
15621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15622 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15624 break 2
15625 fi
15626 done
15627 done
15628 IFS=$as_save_IFS
15629
15630 ;;
15631 esac
15632 fi
15633 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15634 if test -n "$PKG_CONFIG"; then
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15636 $as_echo "$PKG_CONFIG" >&6; }
15637 else
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15639 $as_echo "no" >&6; }
15640 fi
15641
15642
15643 fi
15644 if test -z "$ac_cv_path_PKG_CONFIG"; then
15645 ac_pt_PKG_CONFIG=$PKG_CONFIG
15646 # Extract the first word of "pkg-config", so it can be a program name with args.
15647 set dummy pkg-config; ac_word=$2
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15649 $as_echo_n "checking for $ac_word... " >&6; }
15650 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15651 $as_echo_n "(cached) " >&6
15652 else
15653 case $ac_pt_PKG_CONFIG in
15654 [\\/]* | ?:[\\/]*)
15655 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15656 ;;
15657 *)
15658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15659 for as_dir in $PATH
15660 do
15661 IFS=$as_save_IFS
15662 test -z "$as_dir" && as_dir=.
15663 for ac_exec_ext in '' $ac_executable_extensions; do
15664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15665 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15667 break 2
15668 fi
15669 done
15670 done
15671 IFS=$as_save_IFS
15672
15673 ;;
15674 esac
15675 fi
15676 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15677 if test -n "$ac_pt_PKG_CONFIG"; then
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15679 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15680 else
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15682 $as_echo "no" >&6; }
15683 fi
15684
15685 if test "x$ac_pt_PKG_CONFIG" = x; then
15686 PKG_CONFIG=""
15687 else
15688 case $cross_compiling:$ac_tool_warned in
15689 yes:)
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15692 ac_tool_warned=yes ;;
15693 esac
15694 PKG_CONFIG=$ac_pt_PKG_CONFIG
15695 fi
15696 else
15697 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15698 fi
15699
15700 fi
15701 if test -n "$PKG_CONFIG"; then
15702 _pkg_min_version=0.9.0
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15704 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15705 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15707 $as_echo "yes" >&6; }
15708 else
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15710 $as_echo "no" >&6; }
15711 PKG_CONFIG=""
15712 fi
15713 fi
15714 if test -n "$PKG_CONFIG"; then :
15715
15716
15717 pkg_failed=no
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
15719 $as_echo_n "checking for jansson... " >&6; }
15720
15721 if test -n "$JANSSON_CFLAGS"; then
15722 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
15723 elif test -n "$PKG_CONFIG"; then
15724 if test -n "$PKG_CONFIG" && \
15725 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15726 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15727 ac_status=$?
15728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15729 test $ac_status = 0; }; then
15730 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
15731 test "x$?" != "x0" && pkg_failed=yes
15732 else
15733 pkg_failed=yes
15734 fi
15735 else
15736 pkg_failed=untried
15737 fi
15738 if test -n "$JANSSON_LIBS"; then
15739 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
15740 elif test -n "$PKG_CONFIG"; then
15741 if test -n "$PKG_CONFIG" && \
15742 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15743 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15744 ac_status=$?
15745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15746 test $ac_status = 0; }; then
15747 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
15748 test "x$?" != "x0" && pkg_failed=yes
15749 else
15750 pkg_failed=yes
15751 fi
15752 else
15753 pkg_failed=untried
15754 fi
15755
15756 if test $pkg_failed = no; then
15757 pkg_save_LDFLAGS="$LDFLAGS"
15758 LDFLAGS="$LDFLAGS $pkg_cv_JANSSON_LIBS"
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15761
15762 int
15763 main ()
15764 {
15765
15766 ;
15767 return 0;
15768 }
15769 _ACEOF
15770 if ac_fn_c_try_link "$LINENO"; then :
15771
15772 else
15773 pkg_failed=yes
15774 fi
15775 rm -f core conftest.err conftest.$ac_objext \
15776 conftest$ac_exeext conftest.$ac_ext
15777 LDFLAGS=$pkg_save_LDFLAGS
15778 fi
15779
15780
15781
15782 if test $pkg_failed = yes; then
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15784 $as_echo "no" >&6; }
15785
15786 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15787 _pkg_short_errors_supported=yes
15788 else
15789 _pkg_short_errors_supported=no
15790 fi
15791 if test $_pkg_short_errors_supported = yes; then
15792 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
15793 else
15794 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
15795 fi
15796 # Put the nasty error message in config.log where it belongs
15797 echo "$JANSSON_PKG_ERRORS" >&5
15798
15799
15800 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
15801
15802 elif test $pkg_failed = untried; then
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15804 $as_echo "no" >&6; }
15805
15806 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
15807
15808 else
15809 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
15810 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15812 $as_echo "yes" >&6; }
15813
15814
15815 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
15816
15817
15818
15819
15820 fi
15821
15822 else
15823
15824 as_fn_error $? "Cannot find pkg-config" "$LINENO" 5
15825
15826 fi
15827 fi
15828
15829
15830 # Set the 'development' global.
15831 . $srcdir/../bfd/development.sh
15832
15833 # Set acp_cpp_for_build variable
15834 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
15835
15836 # Default set of GCC warnings to enable.
15837 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15838 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15839
15840 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h. */
15843 __GNUC__
15844 _ACEOF
15845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15846 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
15847
15848 else
15849 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
15850 fi
15851 rm -f conftest*
15852
15853
15854 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15856 /* end confdefs.h. */
15857 __GNUC__
15858 _ACEOF
15859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15860 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
15861
15862 else
15863 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15864 fi
15865 rm -f conftest*
15866
15867
15868 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15869 WARN_WRITE_STRINGS=""
15870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15871 /* end confdefs.h. */
15872 __GNUC__
15873 _ACEOF
15874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15875 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
15876
15877 else
15878 WARN_WRITE_STRINGS="-Wwrite-strings"
15879 fi
15880 rm -f conftest*
15881
15882
15883 # Verify CC_FOR_BUILD to be compatible with warning flags
15884
15885 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h. */
15888 __GNUC__
15889 _ACEOF
15890 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
15891 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
15892
15893 else
15894 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
15895 fi
15896 rm -f conftest*
15897
15898
15899 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901 /* end confdefs.h. */
15902 __GNUC__
15903 _ACEOF
15904 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
15905 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
15906
15907 else
15908 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
15909 fi
15910 rm -f conftest*
15911
15912
15913 # Check whether --enable-werror was given.
15914 if test "${enable_werror+set}" = set; then :
15915 enableval=$enable_werror; case "${enableval}" in
15916 yes | y) ERROR_ON_WARNING="yes" ;;
15917 no | n) ERROR_ON_WARNING="no" ;;
15918 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15919 esac
15920 fi
15921
15922
15923 # Disable -Wformat by default when using gcc on mingw
15924 case "${host}" in
15925 *-*-mingw32*)
15926 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15927 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
15928 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
15929 fi
15930 ;;
15931 *) ;;
15932 esac
15933
15934 # Enable -Werror by default when using gcc. Turn it off for releases.
15935 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
15936 ERROR_ON_WARNING=yes
15937 fi
15938
15939 NO_WERROR=
15940 if test "${ERROR_ON_WARNING}" = yes ; then
15941 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
15942 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
15943 NO_WERROR="-Wno-error"
15944 fi
15945
15946 if test "${GCC}" = yes ; then
15947 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15948 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
15949 fi
15950
15951 # Check whether --enable-build-warnings was given.
15952 if test "${enable_build_warnings+set}" = set; then :
15953 enableval=$enable_build_warnings; case "${enableval}" in
15954 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15955 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
15956 no) if test "${GCC}" = yes ; then
15957 WARN_CFLAGS="-w"
15958 WARN_CFLAGS_FOR_BUILD="-w"
15959 fi;;
15960 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15961 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
15962 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
15963 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15964 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
15965 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
15966 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
15967 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15968 esac
15969 fi
15970
15971
15972 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
15973 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
15974 fi
15975
15976
15977
15978
15979
15980
15981
15982
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15984 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15985 if ${am_cv_val_LC_MESSAGES+:} false; then :
15986 $as_echo_n "(cached) " >&6
15987 else
15988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15989 /* end confdefs.h. */
15990 #include <locale.h>
15991 int
15992 main ()
15993 {
15994 return LC_MESSAGES
15995 ;
15996 return 0;
15997 }
15998 _ACEOF
15999 if ac_fn_c_try_link "$LINENO"; then :
16000 am_cv_val_LC_MESSAGES=yes
16001 else
16002 am_cv_val_LC_MESSAGES=no
16003 fi
16004 rm -f core conftest.err conftest.$ac_objext \
16005 conftest$ac_exeext conftest.$ac_ext
16006 fi
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
16008 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
16009 if test $am_cv_val_LC_MESSAGES = yes; then
16010
16011 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
16012
16013 fi
16014
16015
16016 ac_config_headers="$ac_config_headers config.h:config.in"
16017
16018
16019 # PR 14072
16020
16021
16022 if test -z "$target" ; then
16023 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
16024 fi
16025 if test -z "$host" ; then
16026 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
16027 fi
16028
16029 # host-specific stuff:
16030
16031 ALL_LINGUAS="bg da de es fi fr ga id it ja pt_BR ru sr sv tr uk vi zh_CN zh_TW"
16032 # If we haven't got the data from the intl directory,
16033 # assume NLS is disabled.
16034 USE_NLS=no
16035 LIBINTL=
16036 LIBINTL_DEP=
16037 INCINTL=
16038 XGETTEXT=
16039 GMSGFMT=
16040 POSUB=
16041
16042 if test -f ../intl/config.intl; then
16043 . ../intl/config.intl
16044 fi
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16046 $as_echo_n "checking whether NLS is requested... " >&6; }
16047 if test x"$USE_NLS" != xyes; then
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16049 $as_echo "no" >&6; }
16050 else
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16052 $as_echo "yes" >&6; }
16053
16054 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16055
16056
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
16058 $as_echo_n "checking for catalogs to be installed... " >&6; }
16059 # Look for .po and .gmo files in the source directory.
16060 CATALOGS=
16061 XLINGUAS=
16062 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
16063 # If there aren't any .gmo files the shell will give us the
16064 # literal string "../path/to/srcdir/po/*.gmo" which has to be
16065 # weeded out.
16066 case "$cat" in *\**)
16067 continue;;
16068 esac
16069 # The quadruple backslash is collapsed to a double backslash
16070 # by the backticks, then collapsed again by the double quotes,
16071 # leaving us with one backslash in the sed expression (right
16072 # before the dot that mustn't act as a wildcard).
16073 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
16074 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
16075 # The user is allowed to set LINGUAS to a list of languages to
16076 # install catalogs for. If it's empty that means "all of them."
16077 if test "x$LINGUAS" = x; then
16078 CATALOGS="$CATALOGS $cat"
16079 XLINGUAS="$XLINGUAS $lang"
16080 else
16081 case "$LINGUAS" in *$lang*)
16082 CATALOGS="$CATALOGS $cat"
16083 XLINGUAS="$XLINGUAS $lang"
16084 ;;
16085 esac
16086 fi
16087 done
16088 LINGUAS="$XLINGUAS"
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
16090 $as_echo "$LINGUAS" >&6; }
16091
16092
16093 DATADIRNAME=share
16094
16095 INSTOBJEXT=.mo
16096
16097 GENCAT=gencat
16098
16099 CATOBJEXT=.gmo
16100
16101 fi
16102
16103 MKINSTALLDIRS=
16104 if test -n "$ac_aux_dir"; then
16105 case "$ac_aux_dir" in
16106 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16107 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16108 esac
16109 fi
16110 if test -z "$MKINSTALLDIRS"; then
16111 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16112 fi
16113
16114
16115
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16117 $as_echo_n "checking whether NLS is requested... " >&6; }
16118 # Check whether --enable-nls was given.
16119 if test "${enable_nls+set}" = set; then :
16120 enableval=$enable_nls; USE_NLS=$enableval
16121 else
16122 USE_NLS=yes
16123 fi
16124
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16126 $as_echo "$USE_NLS" >&6; }
16127
16128
16129
16130
16131
16132
16133 # Prepare PATH_SEPARATOR.
16134 # The user is always right.
16135 if test "${PATH_SEPARATOR+set}" != set; then
16136 echo "#! /bin/sh" >conf$$.sh
16137 echo "exit 0" >>conf$$.sh
16138 chmod +x conf$$.sh
16139 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16140 PATH_SEPARATOR=';'
16141 else
16142 PATH_SEPARATOR=:
16143 fi
16144 rm -f conf$$.sh
16145 fi
16146
16147 # Find out how to test for executable files. Don't use a zero-byte file,
16148 # as systems may use methods other than mode bits to determine executability.
16149 cat >conf$$.file <<_ASEOF
16150 #! /bin/sh
16151 exit 0
16152 _ASEOF
16153 chmod +x conf$$.file
16154 if test -x conf$$.file >/dev/null 2>&1; then
16155 ac_executable_p="test -x"
16156 else
16157 ac_executable_p="test -f"
16158 fi
16159 rm -f conf$$.file
16160
16161 # Extract the first word of "msgfmt", so it can be a program name with args.
16162 set dummy msgfmt; ac_word=$2
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16164 $as_echo_n "checking for $ac_word... " >&6; }
16165 if ${ac_cv_path_MSGFMT+:} false; then :
16166 $as_echo_n "(cached) " >&6
16167 else
16168 case "$MSGFMT" in
16169 [\\/]* | ?:[\\/]*)
16170 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16171 ;;
16172 *)
16173 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16174 for ac_dir in $PATH; do
16175 IFS="$ac_save_IFS"
16176 test -z "$ac_dir" && ac_dir=.
16177 for ac_exec_ext in '' $ac_executable_extensions; do
16178 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16179 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
16180 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16181 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16182 break 2
16183 fi
16184 fi
16185 done
16186 done
16187 IFS="$ac_save_IFS"
16188 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16189 ;;
16190 esac
16191 fi
16192 MSGFMT="$ac_cv_path_MSGFMT"
16193 if test "$MSGFMT" != ":"; then
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16195 $as_echo "$MSGFMT" >&6; }
16196 else
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16198 $as_echo "no" >&6; }
16199 fi
16200
16201 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16202 set dummy gmsgfmt; ac_word=$2
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16204 $as_echo_n "checking for $ac_word... " >&6; }
16205 if ${ac_cv_path_GMSGFMT+:} false; then :
16206 $as_echo_n "(cached) " >&6
16207 else
16208 case $GMSGFMT in
16209 [\\/]* | ?:[\\/]*)
16210 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16211 ;;
16212 *)
16213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16214 for as_dir in $PATH
16215 do
16216 IFS=$as_save_IFS
16217 test -z "$as_dir" && as_dir=.
16218 for ac_exec_ext in '' $ac_executable_extensions; do
16219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16220 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16222 break 2
16223 fi
16224 done
16225 done
16226 IFS=$as_save_IFS
16227
16228 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16229 ;;
16230 esac
16231 fi
16232 GMSGFMT=$ac_cv_path_GMSGFMT
16233 if test -n "$GMSGFMT"; then
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16235 $as_echo "$GMSGFMT" >&6; }
16236 else
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16238 $as_echo "no" >&6; }
16239 fi
16240
16241
16242
16243
16244 # Prepare PATH_SEPARATOR.
16245 # The user is always right.
16246 if test "${PATH_SEPARATOR+set}" != set; then
16247 echo "#! /bin/sh" >conf$$.sh
16248 echo "exit 0" >>conf$$.sh
16249 chmod +x conf$$.sh
16250 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16251 PATH_SEPARATOR=';'
16252 else
16253 PATH_SEPARATOR=:
16254 fi
16255 rm -f conf$$.sh
16256 fi
16257
16258 # Find out how to test for executable files. Don't use a zero-byte file,
16259 # as systems may use methods other than mode bits to determine executability.
16260 cat >conf$$.file <<_ASEOF
16261 #! /bin/sh
16262 exit 0
16263 _ASEOF
16264 chmod +x conf$$.file
16265 if test -x conf$$.file >/dev/null 2>&1; then
16266 ac_executable_p="test -x"
16267 else
16268 ac_executable_p="test -f"
16269 fi
16270 rm -f conf$$.file
16271
16272 # Extract the first word of "xgettext", so it can be a program name with args.
16273 set dummy xgettext; ac_word=$2
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16275 $as_echo_n "checking for $ac_word... " >&6; }
16276 if ${ac_cv_path_XGETTEXT+:} false; then :
16277 $as_echo_n "(cached) " >&6
16278 else
16279 case "$XGETTEXT" in
16280 [\\/]* | ?:[\\/]*)
16281 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16282 ;;
16283 *)
16284 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16285 for ac_dir in $PATH; do
16286 IFS="$ac_save_IFS"
16287 test -z "$ac_dir" && ac_dir=.
16288 for ac_exec_ext in '' $ac_executable_extensions; do
16289 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16290 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16291 (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
16292 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16293 break 2
16294 fi
16295 fi
16296 done
16297 done
16298 IFS="$ac_save_IFS"
16299 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16300 ;;
16301 esac
16302 fi
16303 XGETTEXT="$ac_cv_path_XGETTEXT"
16304 if test "$XGETTEXT" != ":"; then
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16306 $as_echo "$XGETTEXT" >&6; }
16307 else
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16309 $as_echo "no" >&6; }
16310 fi
16311
16312 rm -f messages.po
16313
16314
16315 # Prepare PATH_SEPARATOR.
16316 # The user is always right.
16317 if test "${PATH_SEPARATOR+set}" != set; then
16318 echo "#! /bin/sh" >conf$$.sh
16319 echo "exit 0" >>conf$$.sh
16320 chmod +x conf$$.sh
16321 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16322 PATH_SEPARATOR=';'
16323 else
16324 PATH_SEPARATOR=:
16325 fi
16326 rm -f conf$$.sh
16327 fi
16328
16329 # Find out how to test for executable files. Don't use a zero-byte file,
16330 # as systems may use methods other than mode bits to determine executability.
16331 cat >conf$$.file <<_ASEOF
16332 #! /bin/sh
16333 exit 0
16334 _ASEOF
16335 chmod +x conf$$.file
16336 if test -x conf$$.file >/dev/null 2>&1; then
16337 ac_executable_p="test -x"
16338 else
16339 ac_executable_p="test -f"
16340 fi
16341 rm -f conf$$.file
16342
16343 # Extract the first word of "msgmerge", so it can be a program name with args.
16344 set dummy msgmerge; ac_word=$2
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16346 $as_echo_n "checking for $ac_word... " >&6; }
16347 if ${ac_cv_path_MSGMERGE+:} false; then :
16348 $as_echo_n "(cached) " >&6
16349 else
16350 case "$MSGMERGE" in
16351 [\\/]* | ?:[\\/]*)
16352 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16353 ;;
16354 *)
16355 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16356 for ac_dir in $PATH; do
16357 IFS="$ac_save_IFS"
16358 test -z "$ac_dir" && ac_dir=.
16359 for ac_exec_ext in '' $ac_executable_extensions; do
16360 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16361 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16362 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16363 break 2
16364 fi
16365 fi
16366 done
16367 done
16368 IFS="$ac_save_IFS"
16369 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16370 ;;
16371 esac
16372 fi
16373 MSGMERGE="$ac_cv_path_MSGMERGE"
16374 if test "$MSGMERGE" != ":"; then
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16376 $as_echo "$MSGMERGE" >&6; }
16377 else
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16379 $as_echo "no" >&6; }
16380 fi
16381
16382
16383 if test "$GMSGFMT" != ":"; then
16384 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16385 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16386 : ;
16387 else
16388 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16390 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16391 GMSGFMT=":"
16392 fi
16393 fi
16394
16395 if test "$XGETTEXT" != ":"; then
16396 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16397 (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
16398 : ;
16399 else
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16401 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16402 XGETTEXT=":"
16403 fi
16404 rm -f messages.po
16405 fi
16406
16407 ac_config_commands="$ac_config_commands default-1"
16408
16409
16410
16411
16412
16413 for ac_prog in 'bison -y' byacc
16414 do
16415 # Extract the first word of "$ac_prog", so it can be a program name with args.
16416 set dummy $ac_prog; ac_word=$2
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16418 $as_echo_n "checking for $ac_word... " >&6; }
16419 if ${ac_cv_prog_YACC+:} false; then :
16420 $as_echo_n "(cached) " >&6
16421 else
16422 if test -n "$YACC"; then
16423 ac_cv_prog_YACC="$YACC" # Let the user override the test.
16424 else
16425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16426 for as_dir in $PATH
16427 do
16428 IFS=$as_save_IFS
16429 test -z "$as_dir" && as_dir=.
16430 for ac_exec_ext in '' $ac_executable_extensions; do
16431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16432 ac_cv_prog_YACC="$ac_prog"
16433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16434 break 2
16435 fi
16436 done
16437 done
16438 IFS=$as_save_IFS
16439
16440 fi
16441 fi
16442 YACC=$ac_cv_prog_YACC
16443 if test -n "$YACC"; then
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16445 $as_echo "$YACC" >&6; }
16446 else
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16448 $as_echo "no" >&6; }
16449 fi
16450
16451
16452 test -n "$YACC" && break
16453 done
16454 test -n "$YACC" || YACC="yacc"
16455
16456 for ac_prog in flex lex
16457 do
16458 # Extract the first word of "$ac_prog", so it can be a program name with args.
16459 set dummy $ac_prog; ac_word=$2
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16461 $as_echo_n "checking for $ac_word... " >&6; }
16462 if ${ac_cv_prog_LEX+:} false; then :
16463 $as_echo_n "(cached) " >&6
16464 else
16465 if test -n "$LEX"; then
16466 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16467 else
16468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16469 for as_dir in $PATH
16470 do
16471 IFS=$as_save_IFS
16472 test -z "$as_dir" && as_dir=.
16473 for ac_exec_ext in '' $ac_executable_extensions; do
16474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16475 ac_cv_prog_LEX="$ac_prog"
16476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16477 break 2
16478 fi
16479 done
16480 done
16481 IFS=$as_save_IFS
16482
16483 fi
16484 fi
16485 LEX=$ac_cv_prog_LEX
16486 if test -n "$LEX"; then
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16488 $as_echo "$LEX" >&6; }
16489 else
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16491 $as_echo "no" >&6; }
16492 fi
16493
16494
16495 test -n "$LEX" && break
16496 done
16497 test -n "$LEX" || LEX=":"
16498
16499 case "$LEX" in
16500 :|*"missing "*) ;;
16501 *) cat >conftest.l <<_ACEOF
16502 %%
16503 a { ECHO; }
16504 b { REJECT; }
16505 c { yymore (); }
16506 d { yyless (1); }
16507 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
16508 yyless ((input () != 0)); }
16509 f { unput (yytext[0]); }
16510 . { BEGIN INITIAL; }
16511 %%
16512 #ifdef YYTEXT_POINTER
16513 extern char *yytext;
16514 #endif
16515 int
16516 main (void)
16517 {
16518 return ! yylex () + ! yywrap ();
16519 }
16520 _ACEOF
16521 { { ac_try="$LEX conftest.l"
16522 case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16525 esac
16526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16527 $as_echo "$ac_try_echo"; } >&5
16528 (eval "$LEX conftest.l") 2>&5
16529 ac_status=$?
16530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16531 test $ac_status = 0; }
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16533 $as_echo_n "checking lex output file root... " >&6; }
16534 if ${ac_cv_prog_lex_root+:} false; then :
16535 $as_echo_n "(cached) " >&6
16536 else
16537
16538 if test -f lex.yy.c; then
16539 ac_cv_prog_lex_root=lex.yy
16540 elif test -f lexyy.c; then
16541 ac_cv_prog_lex_root=lexyy
16542 else
16543 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
16544 fi
16545 fi
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16547 $as_echo "$ac_cv_prog_lex_root" >&6; }
16548 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16549
16550 if test -z "${LEXLIB+set}"; then
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16552 $as_echo_n "checking lex library... " >&6; }
16553 if ${ac_cv_lib_lex+:} false; then :
16554 $as_echo_n "(cached) " >&6
16555 else
16556
16557 ac_save_LIBS=$LIBS
16558 ac_cv_lib_lex='none needed'
16559 for ac_lib in '' -lfl -ll; do
16560 LIBS="$ac_lib $ac_save_LIBS"
16561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16562 /* end confdefs.h. */
16563 `cat $LEX_OUTPUT_ROOT.c`
16564 _ACEOF
16565 if ac_fn_c_try_link "$LINENO"; then :
16566 ac_cv_lib_lex=$ac_lib
16567 fi
16568 rm -f core conftest.err conftest.$ac_objext \
16569 conftest$ac_exeext conftest.$ac_ext
16570 test "$ac_cv_lib_lex" != 'none needed' && break
16571 done
16572 LIBS=$ac_save_LIBS
16573
16574 fi
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16576 $as_echo "$ac_cv_lib_lex" >&6; }
16577 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16578 fi
16579
16580
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16582 $as_echo_n "checking whether yytext is a pointer... " >&6; }
16583 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
16584 $as_echo_n "(cached) " >&6
16585 else
16586 # POSIX says lex can declare yytext either as a pointer or an array; the
16587 # default is implementation-dependent. Figure out which it is, since
16588 # not all implementations provide the %pointer and %array declarations.
16589 ac_cv_prog_lex_yytext_pointer=no
16590 ac_save_LIBS=$LIBS
16591 LIBS="$LEXLIB $ac_save_LIBS"
16592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16593 /* end confdefs.h. */
16594
16595 #define YYTEXT_POINTER 1
16596 `cat $LEX_OUTPUT_ROOT.c`
16597 _ACEOF
16598 if ac_fn_c_try_link "$LINENO"; then :
16599 ac_cv_prog_lex_yytext_pointer=yes
16600 fi
16601 rm -f core conftest.err conftest.$ac_objext \
16602 conftest$ac_exeext conftest.$ac_ext
16603 LIBS=$ac_save_LIBS
16604
16605 fi
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16607 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16608 if test $ac_cv_prog_lex_yytext_pointer = yes; then
16609
16610 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16611
16612 fi
16613 rm -f conftest.l $LEX_OUTPUT_ROOT.c
16614 ;;
16615 esac
16616 if test "$LEX" = :; then
16617 LEX=${am_missing_run}flex
16618 fi
16619
16620
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16622 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16623 # Check whether --enable-maintainer-mode was given.
16624 if test "${enable_maintainer_mode+set}" = set; then :
16625 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16626 else
16627 USE_MAINTAINER_MODE=no
16628 fi
16629
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16631 $as_echo "$USE_MAINTAINER_MODE" >&6; }
16632 if test $USE_MAINTAINER_MODE = yes; then
16633 MAINTAINER_MODE_TRUE=
16634 MAINTAINER_MODE_FALSE='#'
16635 else
16636 MAINTAINER_MODE_TRUE='#'
16637 MAINTAINER_MODE_FALSE=
16638 fi
16639
16640 MAINT=$MAINTAINER_MODE_TRUE
16641
16642
16643 if false; then
16644 GENINSRC_NEVER_TRUE=
16645 GENINSRC_NEVER_FALSE='#'
16646 else
16647 GENINSRC_NEVER_TRUE='#'
16648 GENINSRC_NEVER_FALSE=
16649 fi
16650
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16652 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16653 if ${gcc_cv_prog_cmp_skip+:} false; then :
16654 $as_echo_n "(cached) " >&6
16655 else
16656 echo abfoo >t1
16657 echo cdfoo >t2
16658 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16659 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16660 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16661 :
16662 else
16663 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16664 fi
16665 fi
16666 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16667 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16668 :
16669 else
16670 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16671 fi
16672 fi
16673 rm t1 t2
16674
16675 fi
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16677 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
16678 do_compare="$gcc_cv_prog_cmp_skip"
16679
16680
16681
16682 . ${srcdir}/configure.host
16683
16684
16685
16686
16687 # We use headers from include/ that check various HAVE_*_H macros, thus
16688 # should ensure they are set by configure. This is true even when C99
16689 # guarantees they are available.
16690 # sha1.h and md4.h test HAVE_LIMITS_H, HAVE_SYS_TYPES_H and HAVE_STDINT_H
16691 # plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
16692 # Besides those, we need to check anything used in ld/ not in C99.
16693 for ac_header in fcntl.h elf-hints.h limits.h inttypes.h stdint.h \
16694 sys/file.h sys/mman.h sys/param.h sys/stat.h sys/time.h \
16695 sys/types.h unistd.h
16696 do :
16697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16698 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16699 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16700 cat >>confdefs.h <<_ACEOF
16701 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16702 _ACEOF
16703
16704 fi
16705
16706 done
16707
16708 for ac_func in close glob lseek mkstemp open realpath sbrk waitpid
16709 do :
16710 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16711 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16712 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16713 cat >>confdefs.h <<_ACEOF
16714 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16715 _ACEOF
16716
16717 fi
16718 done
16719
16720
16721
16722 case "${host}" in
16723 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16724
16725 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
16726 ;;
16727 esac
16728
16729 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
16730 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
16731 ac_have_decl=1
16732 else
16733 ac_have_decl=0
16734 fi
16735
16736 cat >>confdefs.h <<_ACEOF
16737 #define HAVE_DECL_ASPRINTF $ac_have_decl
16738 _ACEOF
16739 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16740 if test "x$ac_cv_have_decl_environ" = xyes; then :
16741 ac_have_decl=1
16742 else
16743 ac_have_decl=0
16744 fi
16745
16746 cat >>confdefs.h <<_ACEOF
16747 #define HAVE_DECL_ENVIRON $ac_have_decl
16748 _ACEOF
16749 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16750 if test "x$ac_cv_have_decl_sbrk" = xyes; then :
16751 ac_have_decl=1
16752 else
16753 ac_have_decl=0
16754 fi
16755
16756 cat >>confdefs.h <<_ACEOF
16757 #define HAVE_DECL_SBRK $ac_have_decl
16758 _ACEOF
16759
16760
16761
16762
16763
16764 for ac_header in $ac_header_list
16765 do :
16766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16767 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16768 "
16769 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16770 cat >>confdefs.h <<_ACEOF
16771 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16772 _ACEOF
16773
16774 fi
16775
16776 done
16777
16778
16779
16780
16781
16782
16783
16784
16785 for ac_func in getpagesize
16786 do :
16787 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16788 if test "x$ac_cv_func_getpagesize" = xyes; then :
16789 cat >>confdefs.h <<_ACEOF
16790 #define HAVE_GETPAGESIZE 1
16791 _ACEOF
16792
16793 fi
16794 done
16795
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16797 $as_echo_n "checking for working mmap... " >&6; }
16798 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16799 $as_echo_n "(cached) " >&6
16800 else
16801 if test "$cross_compiling" = yes; then :
16802 ac_cv_func_mmap_fixed_mapped=no
16803 else
16804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16805 /* end confdefs.h. */
16806 $ac_includes_default
16807 /* malloc might have been renamed as rpl_malloc. */
16808 #undef malloc
16809
16810 /* Thanks to Mike Haertel and Jim Avera for this test.
16811 Here is a matrix of mmap possibilities:
16812 mmap private not fixed
16813 mmap private fixed at somewhere currently unmapped
16814 mmap private fixed at somewhere already mapped
16815 mmap shared not fixed
16816 mmap shared fixed at somewhere currently unmapped
16817 mmap shared fixed at somewhere already mapped
16818 For private mappings, we should verify that changes cannot be read()
16819 back from the file, nor mmap's back from the file at a different
16820 address. (There have been systems where private was not correctly
16821 implemented like the infamous i386 svr4.0, and systems where the
16822 VM page cache was not coherent with the file system buffer cache
16823 like early versions of FreeBSD and possibly contemporary NetBSD.)
16824 For shared mappings, we should conversely verify that changes get
16825 propagated back to all the places they're supposed to be.
16826
16827 Grep wants private fixed already mapped.
16828 The main things grep needs to know about mmap are:
16829 * does it exist and is it safe to write into the mmap'd area
16830 * how to use it (BSD variants) */
16831
16832 #include <fcntl.h>
16833 #include <sys/mman.h>
16834
16835 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16836 char *malloc ();
16837 #endif
16838
16839 /* This mess was copied from the GNU getpagesize.h. */
16840 #ifndef HAVE_GETPAGESIZE
16841 # ifdef _SC_PAGESIZE
16842 # define getpagesize() sysconf(_SC_PAGESIZE)
16843 # else /* no _SC_PAGESIZE */
16844 # ifdef HAVE_SYS_PARAM_H
16845 # include <sys/param.h>
16846 # ifdef EXEC_PAGESIZE
16847 # define getpagesize() EXEC_PAGESIZE
16848 # else /* no EXEC_PAGESIZE */
16849 # ifdef NBPG
16850 # define getpagesize() NBPG * CLSIZE
16851 # ifndef CLSIZE
16852 # define CLSIZE 1
16853 # endif /* no CLSIZE */
16854 # else /* no NBPG */
16855 # ifdef NBPC
16856 # define getpagesize() NBPC
16857 # else /* no NBPC */
16858 # ifdef PAGESIZE
16859 # define getpagesize() PAGESIZE
16860 # endif /* PAGESIZE */
16861 # endif /* no NBPC */
16862 # endif /* no NBPG */
16863 # endif /* no EXEC_PAGESIZE */
16864 # else /* no HAVE_SYS_PARAM_H */
16865 # define getpagesize() 8192 /* punt totally */
16866 # endif /* no HAVE_SYS_PARAM_H */
16867 # endif /* no _SC_PAGESIZE */
16868
16869 #endif /* no HAVE_GETPAGESIZE */
16870
16871 int
16872 main ()
16873 {
16874 char *data, *data2, *data3;
16875 const char *cdata2;
16876 int i, pagesize;
16877 int fd, fd2;
16878
16879 pagesize = getpagesize ();
16880
16881 /* First, make a file with some known garbage in it. */
16882 data = (char *) malloc (pagesize);
16883 if (!data)
16884 return 1;
16885 for (i = 0; i < pagesize; ++i)
16886 *(data + i) = rand ();
16887 umask (0);
16888 fd = creat ("conftest.mmap", 0600);
16889 if (fd < 0)
16890 return 2;
16891 if (write (fd, data, pagesize) != pagesize)
16892 return 3;
16893 close (fd);
16894
16895 /* Next, check that the tail of a page is zero-filled. File must have
16896 non-zero length, otherwise we risk SIGBUS for entire page. */
16897 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16898 if (fd2 < 0)
16899 return 4;
16900 cdata2 = "";
16901 if (write (fd2, cdata2, 1) != 1)
16902 return 5;
16903 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16904 if (data2 == MAP_FAILED)
16905 return 6;
16906 for (i = 0; i < pagesize; ++i)
16907 if (*(data2 + i))
16908 return 7;
16909 close (fd2);
16910 if (munmap (data2, pagesize))
16911 return 8;
16912
16913 /* Next, try to mmap the file at a fixed address which already has
16914 something else allocated at it. If we can, also make sure that
16915 we see the same garbage. */
16916 fd = open ("conftest.mmap", O_RDWR);
16917 if (fd < 0)
16918 return 9;
16919 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16920 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16921 return 10;
16922 for (i = 0; i < pagesize; ++i)
16923 if (*(data + i) != *(data2 + i))
16924 return 11;
16925
16926 /* Finally, make sure that changes to the mapped area do not
16927 percolate back to the file as seen by read(). (This is a bug on
16928 some variants of i386 svr4.0.) */
16929 for (i = 0; i < pagesize; ++i)
16930 *(data2 + i) = *(data2 + i) + 1;
16931 data3 = (char *) malloc (pagesize);
16932 if (!data3)
16933 return 12;
16934 if (read (fd, data3, pagesize) != pagesize)
16935 return 13;
16936 for (i = 0; i < pagesize; ++i)
16937 if (*(data + i) != *(data3 + i))
16938 return 14;
16939 close (fd);
16940 return 0;
16941 }
16942 _ACEOF
16943 if ac_fn_c_try_run "$LINENO"; then :
16944 ac_cv_func_mmap_fixed_mapped=yes
16945 else
16946 ac_cv_func_mmap_fixed_mapped=no
16947 fi
16948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16949 conftest.$ac_objext conftest.beam conftest.$ac_ext
16950 fi
16951
16952 fi
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16954 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16955 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16956
16957 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16958
16959 fi
16960 rm -f conftest.mmap conftest.txt
16961
16962
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16964 $as_echo_n "checking for library containing dlopen... " >&6; }
16965 if ${ac_cv_search_dlopen+:} false; then :
16966 $as_echo_n "(cached) " >&6
16967 else
16968 ac_func_search_save_LIBS=$LIBS
16969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16970 /* end confdefs.h. */
16971
16972 /* Override any GCC internal prototype to avoid an error.
16973 Use char because int might match the return type of a GCC
16974 builtin and then its argument prototype would still apply. */
16975 #ifdef __cplusplus
16976 extern "C"
16977 #endif
16978 char dlopen ();
16979 int
16980 main ()
16981 {
16982 return dlopen ();
16983 ;
16984 return 0;
16985 }
16986 _ACEOF
16987 for ac_lib in '' dl; do
16988 if test -z "$ac_lib"; then
16989 ac_res="none required"
16990 else
16991 ac_res=-l$ac_lib
16992 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16993 fi
16994 if ac_fn_c_try_link "$LINENO"; then :
16995 ac_cv_search_dlopen=$ac_res
16996 fi
16997 rm -f core conftest.err conftest.$ac_objext \
16998 conftest$ac_exeext
16999 if ${ac_cv_search_dlopen+:} false; then :
17000 break
17001 fi
17002 done
17003 if ${ac_cv_search_dlopen+:} false; then :
17004
17005 else
17006 ac_cv_search_dlopen=no
17007 fi
17008 rm conftest.$ac_ext
17009 LIBS=$ac_func_search_save_LIBS
17010 fi
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17012 $as_echo "$ac_cv_search_dlopen" >&6; }
17013 ac_res=$ac_cv_search_dlopen
17014 if test "$ac_res" != no; then :
17015 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17016
17017 fi
17018
17019
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
17021 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
17022 if ${ld_cv_decl_getopt_unistd_h+:} false; then :
17023 $as_echo_n "(cached) " >&6
17024 else
17025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17026 /* end confdefs.h. */
17027 #include <unistd.h>
17028 int
17029 main ()
17030 {
17031 extern int getopt (int, char *const*, const char *);
17032 ;
17033 return 0;
17034 }
17035 _ACEOF
17036 if ac_fn_c_try_compile "$LINENO"; then :
17037 ld_cv_decl_getopt_unistd_h=yes
17038 else
17039 ld_cv_decl_getopt_unistd_h=no
17040 fi
17041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17042 fi
17043
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
17045 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
17046 if test $ld_cv_decl_getopt_unistd_h = yes; then
17047
17048 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
17049
17050 fi
17051
17052 # Link in zlib if we can. This allows us to read and write
17053 # compressed CTF sections.
17054
17055 # Use the system's zlib library.
17056 zlibdir="-L\$(top_builddir)/../zlib"
17057 zlibinc="-I\$(top_srcdir)/../zlib"
17058
17059 # Check whether --with-system-zlib was given.
17060 if test "${with_system_zlib+set}" = set; then :
17061 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
17062 zlibdir=
17063 zlibinc=
17064 fi
17065
17066 fi
17067
17068
17069
17070
17071
17072 # When converting linker scripts into strings for use in emulation
17073 # files, use astring.sed if the compiler supports ANSI string
17074 # concatenation, or ostring.sed otherwise. This is to support the
17075 # broken Microsoft MSVC compiler, which limits the length of string
17076 # constants, while still supporting pre-ANSI compilers which do not
17077 # support string concatenation.
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
17079 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
17080 if ${ld_cv_string_concatenation+:} false; then :
17081 $as_echo_n "(cached) " >&6
17082 else
17083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084 /* end confdefs.h. */
17085
17086 int
17087 main ()
17088 {
17089 char *a = "a" "a";
17090 ;
17091 return 0;
17092 }
17093 _ACEOF
17094 if ac_fn_c_try_compile "$LINENO"; then :
17095 ld_cv_string_concatenation=yes
17096 else
17097 ld_cv_string_concatenation=no
17098 fi
17099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17100 fi
17101
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
17103 $as_echo "$ld_cv_string_concatenation" >&6; }
17104 if test "$ld_cv_string_concatenation" = "yes"; then
17105 STRINGIFY=astring.sed
17106 else
17107 STRINGIFY=ostring.sed
17108 fi
17109
17110
17111 # target-specific stuff:
17112
17113 all_targets=
17114 EMUL=
17115 all_emuls=
17116 all_emul_extras=
17117 all_libpath=
17118 TDIRS=
17119
17120 elf_list_options=false
17121 elf_shlib_list_options=false
17122 elf_plt_unwind_list_options=false
17123 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17124 do
17125 if test "$targ_alias" = "all"; then
17126 all_targets=true
17127 elf_list_options=true
17128 elf_shlib_list_options=true
17129 elf_plt_unwind_list_options=true
17130 else
17131 # Canonicalize the secondary target names.
17132 result=`$ac_config_sub $targ_alias 2>/dev/null`
17133 if test -n "$result"; then
17134 targ=$result
17135 else
17136 targ=$targ_alias
17137 fi
17138
17139 . ${srcdir}/configure.tgt
17140
17141 if test "$targ" = "$target"; then
17142 EMUL=$targ_emul
17143 fi
17144
17145 if test x${enable_64_bit_bfd} = xno; then
17146 . ${srcdir}/../bfd/config.bfd
17147 fi
17148
17149 if test x${enable_64_bit_bfd} = xyes; then
17150 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17151 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17152 fi
17153
17154 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17155 case " $all_emuls " in
17156 *" e${i}.o "*) ;;
17157 *)
17158 all_emuls="$all_emuls e${i}.o"
17159 eval result=\$tdir_$i
17160 test -z "$result" && result=$targ_alias
17161 TDIRS="$TDIRS
17162 tdir_$i=$result"
17163 case "${i}" in
17164 *elf*)
17165 elf_list_options=true
17166 ;;
17167 *)
17168 if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
17169 elf_list_options=true
17170 fi
17171 ;;
17172 esac
17173 if test "$elf_list_options" = "true"; then
17174 source_sh()
17175 {
17176 . $1
17177 }
17178 source_sh ${srcdir}/emulparams/${i}.sh
17179 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17180 elf_shlib_list_options=true
17181 fi
17182 if test x${PLT_UNWIND} = xyes; then
17183 elf_plt_unwind_list_options=true
17184 fi
17185 fi
17186 ;;
17187 esac
17188 done
17189
17190 for i in $targ_emul $targ_extra_libpath; do
17191 case " $all_libpath " in
17192 *" ${i} "*) ;;
17193 *)
17194 if test -z "$all_libpath"; then
17195 all_libpath=${i}
17196 else
17197 all_libpath="$all_libpath ${i}"
17198 fi
17199 ;;
17200 esac
17201 done
17202
17203 for i in $targ_extra_ofiles; do
17204 case " $all_emul_extras " in
17205 *" ${i} "*) ;;
17206 *)
17207 all_emul_extras="$all_emul_extras ${i}"
17208 ;;
17209 esac
17210 done
17211
17212 fi
17213 done
17214
17215 if test x$ac_default_compressed_debug_sections = xyes ; then
17216
17217 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17218
17219 fi
17220
17221 if test "${ac_default_new_dtags}" = unset; then
17222 ac_default_new_dtags=0
17223 fi
17224
17225 cat >>confdefs.h <<_ACEOF
17226 #define DEFAULT_NEW_DTAGS $ac_default_new_dtags
17227 _ACEOF
17228
17229
17230 if test "${ac_default_ld_z_relro}" = unset; then
17231 ac_default_ld_z_relro=0
17232 fi
17233
17234 cat >>confdefs.h <<_ACEOF
17235 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
17236 _ACEOF
17237
17238
17239 ac_default_ld_textrel_check_warning=0
17240 case "${ac_default_ld_textrel_check}" in
17241 unset|no)
17242 ac_default_ld_textrel_check=textrel_check_none
17243 ;;
17244 yes|warning)
17245 ac_default_ld_textrel_check=textrel_check_warning
17246 ac_default_ld_textrel_check_warning=1
17247 ;;
17248 error)
17249 ac_default_ld_textrel_check=textrel_check_error
17250 ;;
17251 esac
17252
17253 cat >>confdefs.h <<_ACEOF
17254 #define DEFAULT_LD_TEXTREL_CHECK $ac_default_ld_textrel_check
17255 _ACEOF
17256
17257
17258 cat >>confdefs.h <<_ACEOF
17259 #define DEFAULT_LD_TEXTREL_CHECK_WARNING $ac_default_ld_textrel_check_warning
17260 _ACEOF
17261
17262
17263 if test "${ac_default_ld_z_separate_code}" = unset; then
17264 ac_default_ld_z_separate_code=0
17265 fi
17266
17267 cat >>confdefs.h <<_ACEOF
17268 #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
17269 _ACEOF
17270
17271
17272
17273
17274 cat >>confdefs.h <<_ACEOF
17275 #define DEFAULT_LD_WARN_EXECSTACK $ac_default_ld_warn_execstack
17276 _ACEOF
17277
17278
17279 if test "${ac_default_ld_warn_rwx_segments}" = unset; then
17280 case "${target}" in
17281 # The HPPA's PLT section uses a constructed trampoline, hence it needs to
17282 # have a RWX segment.
17283 hppa*-*-*) ac_default_ld_warn_rwx_segments=0 ;;
17284 *) ac_default_ld_warn_rwx_segments=1 ;;
17285 esac
17286 fi
17287
17288 cat >>confdefs.h <<_ACEOF
17289 #define DEFAULT_LD_WARN_RWX_SEGMENTS $ac_default_ld_warn_rwx_segments
17290 _ACEOF
17291
17292
17293 if test "${ac_default_ld_default_execstack}" = unset; then
17294 ac_default_ld_default_execstack=1
17295 fi
17296
17297 cat >>confdefs.h <<_ACEOF
17298 #define DEFAULT_LD_EXECSTACK $ac_default_ld_default_execstack
17299 _ACEOF
17300
17301
17302
17303 if test "${ac_support_error_handling_script}" = unset; then
17304 ac_support_error_handling_script=1
17305 fi
17306
17307 cat >>confdefs.h <<_ACEOF
17308 #define SUPPORT_ERROR_HANDLING_SCRIPT $ac_support_error_handling_script
17309 _ACEOF
17310
17311
17312
17313 cat >>confdefs.h <<_ACEOF
17314 #define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash
17315 _ACEOF
17316
17317
17318
17319 cat >>confdefs.h <<_ACEOF
17320 #define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash
17321 _ACEOF
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332 if test x${all_targets} = xtrue; then
17333 if test x${enable_64_bit_bfd} = xyes; then
17334 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
17335 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
17336 else
17337 EMULATION_OFILES='$(ALL_EMULATIONS)'
17338 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
17339 fi
17340 else
17341 EMULATION_OFILES=$all_emuls
17342 EMUL_EXTRA_OFILES=$all_emul_extras
17343 fi
17344
17345
17346
17347
17348 EMULATION_LIBPATH=$all_libpath
17349
17350
17351 if test x${enable_static} = xno; then
17352 TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
17353 TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
17354 else
17355 TESTBFDLIB="../bfd/.libs/libbfd.a"
17356 TESTCTFLIB="../libctf/.libs/libctf.a"
17357 fi
17358 if test "${enable_libctf}" = no; then
17359 TESTCTFLIB=
17360 fi
17361
17362
17363
17364 target_vendor=${target_vendor=$host_vendor}
17365 case "$target_vendor" in
17366 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17367 *) EXTRA_SHLIB_EXTENSION= ;;
17368 esac
17369
17370 case "$target_os" in
17371 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17372 esac
17373
17374 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17375
17376 cat >>confdefs.h <<_ACEOF
17377 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17378 _ACEOF
17379
17380 fi
17381
17382 ac_config_commands="$ac_config_commands default"
17383
17384
17385
17386
17387
17388
17389
17390 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
17391
17392 cat >confcache <<\_ACEOF
17393 # This file is a shell script that caches the results of configure
17394 # tests run on this system so they can be shared between configure
17395 # scripts and configure runs, see configure's option --config-cache.
17396 # It is not useful on other systems. If it contains results you don't
17397 # want to keep, you may remove or edit it.
17398 #
17399 # config.status only pays attention to the cache file if you give it
17400 # the --recheck option to rerun configure.
17401 #
17402 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17403 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17404 # following values.
17405
17406 _ACEOF
17407
17408 # The following way of writing the cache mishandles newlines in values,
17409 # but we know of no workaround that is simple, portable, and efficient.
17410 # So, we kill variables containing newlines.
17411 # Ultrix sh set writes to stderr and can't be redirected directly,
17412 # and sets the high bit in the cache file unless we assign to the vars.
17413 (
17414 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17415 eval ac_val=\$$ac_var
17416 case $ac_val in #(
17417 *${as_nl}*)
17418 case $ac_var in #(
17419 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17420 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17421 esac
17422 case $ac_var in #(
17423 _ | IFS | as_nl) ;; #(
17424 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17425 *) { eval $ac_var=; unset $ac_var;} ;;
17426 esac ;;
17427 esac
17428 done
17429
17430 (set) 2>&1 |
17431 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17432 *${as_nl}ac_space=\ *)
17433 # `set' does not quote correctly, so add quotes: double-quote
17434 # substitution turns \\\\ into \\, and sed turns \\ into \.
17435 sed -n \
17436 "s/'/'\\\\''/g;
17437 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17438 ;; #(
17439 *)
17440 # `set' quotes correctly as required by POSIX, so do not add quotes.
17441 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17442 ;;
17443 esac |
17444 sort
17445 ) |
17446 sed '
17447 /^ac_cv_env_/b end
17448 t clear
17449 :clear
17450 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17451 t end
17452 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17453 :end' >>confcache
17454 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17455 if test -w "$cache_file"; then
17456 if test "x$cache_file" != "x/dev/null"; then
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17458 $as_echo "$as_me: updating cache $cache_file" >&6;}
17459 if test ! -f "$cache_file" || test -h "$cache_file"; then
17460 cat confcache >"$cache_file"
17461 else
17462 case $cache_file in #(
17463 */* | ?:*)
17464 mv -f confcache "$cache_file"$$ &&
17465 mv -f "$cache_file"$$ "$cache_file" ;; #(
17466 *)
17467 mv -f confcache "$cache_file" ;;
17468 esac
17469 fi
17470 fi
17471 else
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17473 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17474 fi
17475 fi
17476 rm -f confcache
17477
17478 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17479 # Let make expand exec_prefix.
17480 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17481
17482 DEFS=-DHAVE_CONFIG_H
17483
17484 ac_libobjs=
17485 ac_ltlibobjs=
17486 U=
17487 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17488 # 1. Remove the extension, and $U if already installed.
17489 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17490 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17491 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17492 # will be set to the directory where LIBOBJS objects are built.
17493 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17494 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17495 done
17496 LIBOBJS=$ac_libobjs
17497
17498 LTLIBOBJS=$ac_ltlibobjs
17499
17500
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17502 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17503 if test -n "$am_sleep_pid"; then
17504 # Hide warnings about reused PIDs.
17505 wait $am_sleep_pid 2>/dev/null
17506 fi
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17508 $as_echo "done" >&6; }
17509 if test -n "$EXEEXT"; then
17510 am__EXEEXT_TRUE=
17511 am__EXEEXT_FALSE='#'
17512 else
17513 am__EXEEXT_TRUE='#'
17514 am__EXEEXT_FALSE=
17515 fi
17516
17517 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17518 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17520 fi
17521 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17522 as_fn_error $? "conditional \"AMDEP\" was never defined.
17523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17524 fi
17525 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17526 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17528 fi
17529 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17530 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17532 fi
17533 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
17534 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
17535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17536 fi
17537 if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
17538 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
17539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17540 fi
17541 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17542 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17544 fi
17545 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
17546 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
17547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17548 fi
17549
17550 : "${CONFIG_STATUS=./config.status}"
17551 ac_write_fail=0
17552 ac_clean_files_save=$ac_clean_files
17553 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17555 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17556 as_write_fail=0
17557 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17558 #! $SHELL
17559 # Generated by $as_me.
17560 # Run this file to recreate the current configuration.
17561 # Compiler output produced by configure, useful for debugging
17562 # configure, is in config.log if it exists.
17563
17564 debug=false
17565 ac_cs_recheck=false
17566 ac_cs_silent=false
17567
17568 SHELL=\${CONFIG_SHELL-$SHELL}
17569 export SHELL
17570 _ASEOF
17571 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17572 ## -------------------- ##
17573 ## M4sh Initialization. ##
17574 ## -------------------- ##
17575
17576 # Be more Bourne compatible
17577 DUALCASE=1; export DUALCASE # for MKS sh
17578 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17579 emulate sh
17580 NULLCMD=:
17581 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17582 # is contrary to our usage. Disable this feature.
17583 alias -g '${1+"$@"}'='"$@"'
17584 setopt NO_GLOB_SUBST
17585 else
17586 case `(set -o) 2>/dev/null` in #(
17587 *posix*) :
17588 set -o posix ;; #(
17589 *) :
17590 ;;
17591 esac
17592 fi
17593
17594
17595 as_nl='
17596 '
17597 export as_nl
17598 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17599 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17600 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17601 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17602 # Prefer a ksh shell builtin over an external printf program on Solaris,
17603 # but without wasting forks for bash or zsh.
17604 if test -z "$BASH_VERSION$ZSH_VERSION" \
17605 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17606 as_echo='print -r --'
17607 as_echo_n='print -rn --'
17608 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17609 as_echo='printf %s\n'
17610 as_echo_n='printf %s'
17611 else
17612 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17613 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17614 as_echo_n='/usr/ucb/echo -n'
17615 else
17616 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17617 as_echo_n_body='eval
17618 arg=$1;
17619 case $arg in #(
17620 *"$as_nl"*)
17621 expr "X$arg" : "X\\(.*\\)$as_nl";
17622 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17623 esac;
17624 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17625 '
17626 export as_echo_n_body
17627 as_echo_n='sh -c $as_echo_n_body as_echo'
17628 fi
17629 export as_echo_body
17630 as_echo='sh -c $as_echo_body as_echo'
17631 fi
17632
17633 # The user is always right.
17634 if test "${PATH_SEPARATOR+set}" != set; then
17635 PATH_SEPARATOR=:
17636 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17637 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17638 PATH_SEPARATOR=';'
17639 }
17640 fi
17641
17642
17643 # IFS
17644 # We need space, tab and new line, in precisely that order. Quoting is
17645 # there to prevent editors from complaining about space-tab.
17646 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17647 # splitting by setting IFS to empty value.)
17648 IFS=" "" $as_nl"
17649
17650 # Find who we are. Look in the path if we contain no directory separator.
17651 as_myself=
17652 case $0 in #((
17653 *[\\/]* ) as_myself=$0 ;;
17654 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17655 for as_dir in $PATH
17656 do
17657 IFS=$as_save_IFS
17658 test -z "$as_dir" && as_dir=.
17659 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17660 done
17661 IFS=$as_save_IFS
17662
17663 ;;
17664 esac
17665 # We did not find ourselves, most probably we were run as `sh COMMAND'
17666 # in which case we are not to be found in the path.
17667 if test "x$as_myself" = x; then
17668 as_myself=$0
17669 fi
17670 if test ! -f "$as_myself"; then
17671 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17672 exit 1
17673 fi
17674
17675 # Unset variables that we do not need and which cause bugs (e.g. in
17676 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17677 # suppresses any "Segmentation fault" message there. '((' could
17678 # trigger a bug in pdksh 5.2.14.
17679 for as_var in BASH_ENV ENV MAIL MAILPATH
17680 do eval test x\${$as_var+set} = xset \
17681 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17682 done
17683 PS1='$ '
17684 PS2='> '
17685 PS4='+ '
17686
17687 # NLS nuisances.
17688 LC_ALL=C
17689 export LC_ALL
17690 LANGUAGE=C
17691 export LANGUAGE
17692
17693 # CDPATH.
17694 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17695
17696
17697 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17698 # ----------------------------------------
17699 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17700 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17701 # script with STATUS, using 1 if that was 0.
17702 as_fn_error ()
17703 {
17704 as_status=$1; test $as_status -eq 0 && as_status=1
17705 if test "$4"; then
17706 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17707 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17708 fi
17709 $as_echo "$as_me: error: $2" >&2
17710 as_fn_exit $as_status
17711 } # as_fn_error
17712
17713
17714 # as_fn_set_status STATUS
17715 # -----------------------
17716 # Set $? to STATUS, without forking.
17717 as_fn_set_status ()
17718 {
17719 return $1
17720 } # as_fn_set_status
17721
17722 # as_fn_exit STATUS
17723 # -----------------
17724 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17725 as_fn_exit ()
17726 {
17727 set +e
17728 as_fn_set_status $1
17729 exit $1
17730 } # as_fn_exit
17731
17732 # as_fn_unset VAR
17733 # ---------------
17734 # Portably unset VAR.
17735 as_fn_unset ()
17736 {
17737 { eval $1=; unset $1;}
17738 }
17739 as_unset=as_fn_unset
17740 # as_fn_append VAR VALUE
17741 # ----------------------
17742 # Append the text in VALUE to the end of the definition contained in VAR. Take
17743 # advantage of any shell optimizations that allow amortized linear growth over
17744 # repeated appends, instead of the typical quadratic growth present in naive
17745 # implementations.
17746 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17747 eval 'as_fn_append ()
17748 {
17749 eval $1+=\$2
17750 }'
17751 else
17752 as_fn_append ()
17753 {
17754 eval $1=\$$1\$2
17755 }
17756 fi # as_fn_append
17757
17758 # as_fn_arith ARG...
17759 # ------------------
17760 # Perform arithmetic evaluation on the ARGs, and store the result in the
17761 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17762 # must be portable across $(()) and expr.
17763 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17764 eval 'as_fn_arith ()
17765 {
17766 as_val=$(( $* ))
17767 }'
17768 else
17769 as_fn_arith ()
17770 {
17771 as_val=`expr "$@" || test $? -eq 1`
17772 }
17773 fi # as_fn_arith
17774
17775
17776 if expr a : '\(a\)' >/dev/null 2>&1 &&
17777 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17778 as_expr=expr
17779 else
17780 as_expr=false
17781 fi
17782
17783 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17784 as_basename=basename
17785 else
17786 as_basename=false
17787 fi
17788
17789 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17790 as_dirname=dirname
17791 else
17792 as_dirname=false
17793 fi
17794
17795 as_me=`$as_basename -- "$0" ||
17796 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17797 X"$0" : 'X\(//\)$' \| \
17798 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17799 $as_echo X/"$0" |
17800 sed '/^.*\/\([^/][^/]*\)\/*$/{
17801 s//\1/
17802 q
17803 }
17804 /^X\/\(\/\/\)$/{
17805 s//\1/
17806 q
17807 }
17808 /^X\/\(\/\).*/{
17809 s//\1/
17810 q
17811 }
17812 s/.*/./; q'`
17813
17814 # Avoid depending upon Character Ranges.
17815 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17816 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17817 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17818 as_cr_digits='0123456789'
17819 as_cr_alnum=$as_cr_Letters$as_cr_digits
17820
17821 ECHO_C= ECHO_N= ECHO_T=
17822 case `echo -n x` in #(((((
17823 -n*)
17824 case `echo 'xy\c'` in
17825 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17826 xy) ECHO_C='\c';;
17827 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17828 ECHO_T=' ';;
17829 esac;;
17830 *)
17831 ECHO_N='-n';;
17832 esac
17833
17834 rm -f conf$$ conf$$.exe conf$$.file
17835 if test -d conf$$.dir; then
17836 rm -f conf$$.dir/conf$$.file
17837 else
17838 rm -f conf$$.dir
17839 mkdir conf$$.dir 2>/dev/null
17840 fi
17841 if (echo >conf$$.file) 2>/dev/null; then
17842 if ln -s conf$$.file conf$$ 2>/dev/null; then
17843 as_ln_s='ln -s'
17844 # ... but there are two gotchas:
17845 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17846 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17847 # In both cases, we have to default to `cp -pR'.
17848 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17849 as_ln_s='cp -pR'
17850 elif ln conf$$.file conf$$ 2>/dev/null; then
17851 as_ln_s=ln
17852 else
17853 as_ln_s='cp -pR'
17854 fi
17855 else
17856 as_ln_s='cp -pR'
17857 fi
17858 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17859 rmdir conf$$.dir 2>/dev/null
17860
17861
17862 # as_fn_mkdir_p
17863 # -------------
17864 # Create "$as_dir" as a directory, including parents if necessary.
17865 as_fn_mkdir_p ()
17866 {
17867
17868 case $as_dir in #(
17869 -*) as_dir=./$as_dir;;
17870 esac
17871 test -d "$as_dir" || eval $as_mkdir_p || {
17872 as_dirs=
17873 while :; do
17874 case $as_dir in #(
17875 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17876 *) as_qdir=$as_dir;;
17877 esac
17878 as_dirs="'$as_qdir' $as_dirs"
17879 as_dir=`$as_dirname -- "$as_dir" ||
17880 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17881 X"$as_dir" : 'X\(//\)[^/]' \| \
17882 X"$as_dir" : 'X\(//\)$' \| \
17883 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17884 $as_echo X"$as_dir" |
17885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17886 s//\1/
17887 q
17888 }
17889 /^X\(\/\/\)[^/].*/{
17890 s//\1/
17891 q
17892 }
17893 /^X\(\/\/\)$/{
17894 s//\1/
17895 q
17896 }
17897 /^X\(\/\).*/{
17898 s//\1/
17899 q
17900 }
17901 s/.*/./; q'`
17902 test -d "$as_dir" && break
17903 done
17904 test -z "$as_dirs" || eval "mkdir $as_dirs"
17905 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17906
17907
17908 } # as_fn_mkdir_p
17909 if mkdir -p . 2>/dev/null; then
17910 as_mkdir_p='mkdir -p "$as_dir"'
17911 else
17912 test -d ./-p && rmdir ./-p
17913 as_mkdir_p=false
17914 fi
17915
17916
17917 # as_fn_executable_p FILE
17918 # -----------------------
17919 # Test if FILE is an executable regular file.
17920 as_fn_executable_p ()
17921 {
17922 test -f "$1" && test -x "$1"
17923 } # as_fn_executable_p
17924 as_test_x='test -x'
17925 as_executable_p=as_fn_executable_p
17926
17927 # Sed expression to map a string onto a valid CPP name.
17928 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17929
17930 # Sed expression to map a string onto a valid variable name.
17931 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17932
17933
17934 exec 6>&1
17935 ## ----------------------------------- ##
17936 ## Main body of $CONFIG_STATUS script. ##
17937 ## ----------------------------------- ##
17938 _ASEOF
17939 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17940
17941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17942 # Save the log message, to keep $0 and so on meaningful, and to
17943 # report actual input values of CONFIG_FILES etc. instead of their
17944 # values after options handling.
17945 ac_log="
17946 This file was extended by ld $as_me 2.38.50, which was
17947 generated by GNU Autoconf 2.69. Invocation command line was
17948
17949 CONFIG_FILES = $CONFIG_FILES
17950 CONFIG_HEADERS = $CONFIG_HEADERS
17951 CONFIG_LINKS = $CONFIG_LINKS
17952 CONFIG_COMMANDS = $CONFIG_COMMANDS
17953 $ $0 $@
17954
17955 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17956 "
17957
17958 _ACEOF
17959
17960 case $ac_config_files in *"
17961 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17962 esac
17963
17964 case $ac_config_headers in *"
17965 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17966 esac
17967
17968
17969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17970 # Files that config.status was made for.
17971 config_files="$ac_config_files"
17972 config_headers="$ac_config_headers"
17973 config_commands="$ac_config_commands"
17974
17975 _ACEOF
17976
17977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17978 ac_cs_usage="\
17979 \`$as_me' instantiates files and other configuration actions
17980 from templates according to the current configuration. Unless the files
17981 and actions are specified as TAGs, all are instantiated by default.
17982
17983 Usage: $0 [OPTION]... [TAG]...
17984
17985 -h, --help print this help, then exit
17986 -V, --version print version number and configuration settings, then exit
17987 --config print configuration, then exit
17988 -q, --quiet, --silent
17989 do not print progress messages
17990 -d, --debug don't remove temporary files
17991 --recheck update $as_me by reconfiguring in the same conditions
17992 --file=FILE[:TEMPLATE]
17993 instantiate the configuration file FILE
17994 --header=FILE[:TEMPLATE]
17995 instantiate the configuration header FILE
17996
17997 Configuration files:
17998 $config_files
17999
18000 Configuration headers:
18001 $config_headers
18002
18003 Configuration commands:
18004 $config_commands
18005
18006 Report bugs to the package provider."
18007
18008 _ACEOF
18009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18010 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18011 ac_cs_version="\\
18012 ld config.status 2.38.50
18013 configured by $0, generated by GNU Autoconf 2.69,
18014 with options \\"\$ac_cs_config\\"
18015
18016 Copyright (C) 2012 Free Software Foundation, Inc.
18017 This config.status script is free software; the Free Software Foundation
18018 gives unlimited permission to copy, distribute and modify it."
18019
18020 ac_pwd='$ac_pwd'
18021 srcdir='$srcdir'
18022 INSTALL='$INSTALL'
18023 MKDIR_P='$MKDIR_P'
18024 AWK='$AWK'
18025 test -n "\$AWK" || AWK=awk
18026 _ACEOF
18027
18028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18029 # The default lists apply if the user does not specify any file.
18030 ac_need_defaults=:
18031 while test $# != 0
18032 do
18033 case $1 in
18034 --*=?*)
18035 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18036 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18037 ac_shift=:
18038 ;;
18039 --*=)
18040 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18041 ac_optarg=
18042 ac_shift=:
18043 ;;
18044 *)
18045 ac_option=$1
18046 ac_optarg=$2
18047 ac_shift=shift
18048 ;;
18049 esac
18050
18051 case $ac_option in
18052 # Handling of the options.
18053 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18054 ac_cs_recheck=: ;;
18055 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18056 $as_echo "$ac_cs_version"; exit ;;
18057 --config | --confi | --conf | --con | --co | --c )
18058 $as_echo "$ac_cs_config"; exit ;;
18059 --debug | --debu | --deb | --de | --d | -d )
18060 debug=: ;;
18061 --file | --fil | --fi | --f )
18062 $ac_shift
18063 case $ac_optarg in
18064 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18065 '') as_fn_error $? "missing file argument" ;;
18066 esac
18067 as_fn_append CONFIG_FILES " '$ac_optarg'"
18068 ac_need_defaults=false;;
18069 --header | --heade | --head | --hea )
18070 $ac_shift
18071 case $ac_optarg in
18072 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18073 esac
18074 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18075 ac_need_defaults=false;;
18076 --he | --h)
18077 # Conflict between --help and --header
18078 as_fn_error $? "ambiguous option: \`$1'
18079 Try \`$0 --help' for more information.";;
18080 --help | --hel | -h )
18081 $as_echo "$ac_cs_usage"; exit ;;
18082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18083 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18084 ac_cs_silent=: ;;
18085
18086 # This is an error.
18087 -*) as_fn_error $? "unrecognized option: \`$1'
18088 Try \`$0 --help' for more information." ;;
18089
18090 *) as_fn_append ac_config_targets " $1"
18091 ac_need_defaults=false ;;
18092
18093 esac
18094 shift
18095 done
18096
18097 ac_configure_extra_args=
18098
18099 if $ac_cs_silent; then
18100 exec 6>/dev/null
18101 ac_configure_extra_args="$ac_configure_extra_args --silent"
18102 fi
18103
18104 _ACEOF
18105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18106 if \$ac_cs_recheck; then
18107 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18108 shift
18109 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18110 CONFIG_SHELL='$SHELL'
18111 export CONFIG_SHELL
18112 exec "\$@"
18113 fi
18114
18115 _ACEOF
18116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18117 exec 5>>config.log
18118 {
18119 echo
18120 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18121 ## Running $as_me. ##
18122 _ASBOX
18123 $as_echo "$ac_log"
18124 } >&5
18125
18126 _ACEOF
18127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18128 #
18129 # INIT-COMMANDS
18130 #
18131 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18132
18133
18134 # The HP-UX ksh and POSIX shell print the target directory to stdout
18135 # if CDPATH is set.
18136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18137
18138 sed_quote_subst='$sed_quote_subst'
18139 double_quote_subst='$double_quote_subst'
18140 delay_variable_subst='$delay_variable_subst'
18141 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18142 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18143 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18144 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18145 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18146 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18147 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18148 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18149 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18150 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18151 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18152 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18153 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18154 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18155 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18156 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18157 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18158 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18159 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18160 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18161 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18162 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18163 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18164 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18165 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18166 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18167 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18168 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18169 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18170 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18171 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18172 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18173 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18174 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18175 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18176 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18177 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18178 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18179 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18180 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18181 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18182 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18183 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18184 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18185 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18186 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18187 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18188 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18189 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"`'
18190 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18191 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18192 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18193 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18194 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18195 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18196 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18197 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18198 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18199 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18200 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18201 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18202 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18203 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18204 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18205 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18206 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18207 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18208 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18209 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18210 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18211 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18212 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18213 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18214 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18215 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18216 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18217 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18218 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18219 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18220 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18221 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18222 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18223 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18224 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18225 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18226 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18227 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18228 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18229 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18230 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18231 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18232 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18233 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18234 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18235 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18236 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18237 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18238 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18239 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18240 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18241 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18242 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18243 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18244 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18245 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18246 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18247 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18248 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18249 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18250 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18251 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18252 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18253 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18254 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18255 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18256 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18257 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18258 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18259 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18260 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18261 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18262 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18263 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18264 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18265 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18266 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18267 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18268 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18269 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18270 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18271 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18272 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18273 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18274 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18275 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18276 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18277 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18278 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18279 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18280 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18281 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18282 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18283 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18284 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18285 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18286 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18287 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18288 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18289 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18290 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18291 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18292 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18293 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18294 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18295 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18296 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18297 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18298 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18299 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18300 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18301 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18302 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18303 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18304 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18305 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18306 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18307 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18308 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18309 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18310 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18311 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18312 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18313 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18314 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18315 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18316
18317 LTCC='$LTCC'
18318 LTCFLAGS='$LTCFLAGS'
18319 compiler='$compiler_DEFAULT'
18320
18321 # A function that is used when there is no print builtin or printf.
18322 func_fallback_echo ()
18323 {
18324 eval 'cat <<_LTECHO_EOF
18325 \$1
18326 _LTECHO_EOF'
18327 }
18328
18329 # Quote evaled strings.
18330 for var in SHELL \
18331 ECHO \
18332 SED \
18333 GREP \
18334 EGREP \
18335 FGREP \
18336 LD \
18337 NM \
18338 LN_S \
18339 lt_SP2NL \
18340 lt_NL2SP \
18341 reload_flag \
18342 OBJDUMP \
18343 deplibs_check_method \
18344 file_magic_cmd \
18345 AR \
18346 AR_FLAGS \
18347 STRIP \
18348 RANLIB \
18349 CC \
18350 CFLAGS \
18351 compiler \
18352 lt_cv_sys_global_symbol_pipe \
18353 lt_cv_sys_global_symbol_to_cdecl \
18354 lt_cv_sys_global_symbol_to_c_name_address \
18355 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18356 lt_prog_compiler_no_builtin_flag \
18357 lt_prog_compiler_wl \
18358 lt_prog_compiler_pic \
18359 lt_prog_compiler_static \
18360 lt_cv_prog_compiler_c_o \
18361 need_locks \
18362 DSYMUTIL \
18363 NMEDIT \
18364 LIPO \
18365 OTOOL \
18366 OTOOL64 \
18367 shrext_cmds \
18368 export_dynamic_flag_spec \
18369 whole_archive_flag_spec \
18370 compiler_needs_object \
18371 with_gnu_ld \
18372 allow_undefined_flag \
18373 no_undefined_flag \
18374 hardcode_libdir_flag_spec \
18375 hardcode_libdir_flag_spec_ld \
18376 hardcode_libdir_separator \
18377 fix_srcfile_path \
18378 exclude_expsyms \
18379 include_expsyms \
18380 file_list_spec \
18381 variables_saved_for_relink \
18382 libname_spec \
18383 library_names_spec \
18384 soname_spec \
18385 install_override_mode \
18386 finish_eval \
18387 old_striplib \
18388 striplib \
18389 compiler_lib_search_dirs \
18390 predep_objects \
18391 postdep_objects \
18392 predeps \
18393 postdeps \
18394 compiler_lib_search_path \
18395 LD_CXX \
18396 reload_flag_CXX \
18397 compiler_CXX \
18398 lt_prog_compiler_no_builtin_flag_CXX \
18399 lt_prog_compiler_wl_CXX \
18400 lt_prog_compiler_pic_CXX \
18401 lt_prog_compiler_static_CXX \
18402 lt_cv_prog_compiler_c_o_CXX \
18403 export_dynamic_flag_spec_CXX \
18404 whole_archive_flag_spec_CXX \
18405 compiler_needs_object_CXX \
18406 with_gnu_ld_CXX \
18407 allow_undefined_flag_CXX \
18408 no_undefined_flag_CXX \
18409 hardcode_libdir_flag_spec_CXX \
18410 hardcode_libdir_flag_spec_ld_CXX \
18411 hardcode_libdir_separator_CXX \
18412 fix_srcfile_path_CXX \
18413 exclude_expsyms_CXX \
18414 include_expsyms_CXX \
18415 file_list_spec_CXX \
18416 compiler_lib_search_dirs_CXX \
18417 predep_objects_CXX \
18418 postdep_objects_CXX \
18419 predeps_CXX \
18420 postdeps_CXX \
18421 compiler_lib_search_path_CXX; do
18422 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18423 *[\\\\\\\`\\"\\\$]*)
18424 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18425 ;;
18426 *)
18427 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18428 ;;
18429 esac
18430 done
18431
18432 # Double-quote double-evaled strings.
18433 for var in reload_cmds \
18434 old_postinstall_cmds \
18435 old_postuninstall_cmds \
18436 old_archive_cmds \
18437 extract_expsyms_cmds \
18438 old_archive_from_new_cmds \
18439 old_archive_from_expsyms_cmds \
18440 archive_cmds \
18441 archive_expsym_cmds \
18442 module_cmds \
18443 module_expsym_cmds \
18444 export_symbols_cmds \
18445 prelink_cmds \
18446 postinstall_cmds \
18447 postuninstall_cmds \
18448 finish_cmds \
18449 sys_lib_search_path_spec \
18450 sys_lib_dlsearch_path_spec \
18451 reload_cmds_CXX \
18452 old_archive_cmds_CXX \
18453 old_archive_from_new_cmds_CXX \
18454 old_archive_from_expsyms_cmds_CXX \
18455 archive_cmds_CXX \
18456 archive_expsym_cmds_CXX \
18457 module_cmds_CXX \
18458 module_expsym_cmds_CXX \
18459 export_symbols_cmds_CXX \
18460 prelink_cmds_CXX; do
18461 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18462 *[\\\\\\\`\\"\\\$]*)
18463 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18464 ;;
18465 *)
18466 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18467 ;;
18468 esac
18469 done
18470
18471 ac_aux_dir='$ac_aux_dir'
18472 xsi_shell='$xsi_shell'
18473 lt_shell_append='$lt_shell_append'
18474
18475 # See if we are running on zsh, and set the options which allow our
18476 # commands through without removal of \ escapes INIT.
18477 if test -n "\${ZSH_VERSION+set}" ; then
18478 setopt NO_GLOB_SUBST
18479 fi
18480
18481
18482 PACKAGE='$PACKAGE'
18483 VERSION='$VERSION'
18484 TIMESTAMP='$TIMESTAMP'
18485 RM='$RM'
18486 ofile='$ofile'
18487
18488
18489
18490
18491
18492 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18493 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18494 # from automake.
18495 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18496 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18497 LINGUAS="${LINGUAS-%UNSET%}"
18498
18499
18500
18501 _ACEOF
18502
18503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18504
18505 # Handling of arguments.
18506 for ac_config_target in $ac_config_targets
18507 do
18508 case $ac_config_target in
18509 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18510 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18511 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18512 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18513 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18514 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18515 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18516
18517 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18518 esac
18519 done
18520
18521
18522 # If the user did not use the arguments to specify the items to instantiate,
18523 # then the envvar interface is used. Set only those that are not.
18524 # We use the long form for the default assignment because of an extremely
18525 # bizarre bug on SunOS 4.1.3.
18526 if $ac_need_defaults; then
18527 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18528 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18529 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18530 fi
18531
18532 # Have a temporary directory for convenience. Make it in the build tree
18533 # simply because there is no reason against having it here, and in addition,
18534 # creating and moving files from /tmp can sometimes cause problems.
18535 # Hook for its removal unless debugging.
18536 # Note that there is a small window in which the directory will not be cleaned:
18537 # after its creation but before its name has been assigned to `$tmp'.
18538 $debug ||
18539 {
18540 tmp= ac_tmp=
18541 trap 'exit_status=$?
18542 : "${ac_tmp:=$tmp}"
18543 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18544 ' 0
18545 trap 'as_fn_exit 1' 1 2 13 15
18546 }
18547 # Create a (secure) tmp directory for tmp files.
18548
18549 {
18550 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18551 test -d "$tmp"
18552 } ||
18553 {
18554 tmp=./conf$$-$RANDOM
18555 (umask 077 && mkdir "$tmp")
18556 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18557 ac_tmp=$tmp
18558
18559 # Set up the scripts for CONFIG_FILES section.
18560 # No need to generate them if there are no CONFIG_FILES.
18561 # This happens for instance with `./config.status config.h'.
18562 if test -n "$CONFIG_FILES"; then
18563
18564
18565 ac_cr=`echo X | tr X '\015'`
18566 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18567 # But we know of no other shell where ac_cr would be empty at this
18568 # point, so we can use a bashism as a fallback.
18569 if test "x$ac_cr" = x; then
18570 eval ac_cr=\$\'\\r\'
18571 fi
18572 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18573 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18574 ac_cs_awk_cr='\\r'
18575 else
18576 ac_cs_awk_cr=$ac_cr
18577 fi
18578
18579 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18580 _ACEOF
18581
18582
18583 {
18584 echo "cat >conf$$subs.awk <<_ACEOF" &&
18585 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18586 echo "_ACEOF"
18587 } >conf$$subs.sh ||
18588 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18589 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18590 ac_delim='%!_!# '
18591 for ac_last_try in false false false false false :; do
18592 . ./conf$$subs.sh ||
18593 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18594
18595 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18596 if test $ac_delim_n = $ac_delim_num; then
18597 break
18598 elif $ac_last_try; then
18599 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18600 else
18601 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18602 fi
18603 done
18604 rm -f conf$$subs.sh
18605
18606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18607 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18608 _ACEOF
18609 sed -n '
18610 h
18611 s/^/S["/; s/!.*/"]=/
18612 p
18613 g
18614 s/^[^!]*!//
18615 :repl
18616 t repl
18617 s/'"$ac_delim"'$//
18618 t delim
18619 :nl
18620 h
18621 s/\(.\{148\}\)..*/\1/
18622 t more1
18623 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18624 p
18625 n
18626 b repl
18627 :more1
18628 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18629 p
18630 g
18631 s/.\{148\}//
18632 t nl
18633 :delim
18634 h
18635 s/\(.\{148\}\)..*/\1/
18636 t more2
18637 s/["\\]/\\&/g; s/^/"/; s/$/"/
18638 p
18639 b
18640 :more2
18641 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18642 p
18643 g
18644 s/.\{148\}//
18645 t delim
18646 ' <conf$$subs.awk | sed '
18647 /^[^""]/{
18648 N
18649 s/\n//
18650 }
18651 ' >>$CONFIG_STATUS || ac_write_fail=1
18652 rm -f conf$$subs.awk
18653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18654 _ACAWK
18655 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18656 for (key in S) S_is_set[key] = 1
18657 FS = "\a"
18658
18659 }
18660 {
18661 line = $ 0
18662 nfields = split(line, field, "@")
18663 substed = 0
18664 len = length(field[1])
18665 for (i = 2; i < nfields; i++) {
18666 key = field[i]
18667 keylen = length(key)
18668 if (S_is_set[key]) {
18669 value = S[key]
18670 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18671 len += length(value) + length(field[++i])
18672 substed = 1
18673 } else
18674 len += 1 + keylen
18675 }
18676
18677 print line
18678 }
18679
18680 _ACAWK
18681 _ACEOF
18682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18683 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18684 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18685 else
18686 cat
18687 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18688 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18689 _ACEOF
18690
18691 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18692 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18693 # trailing colons and then remove the whole line if VPATH becomes empty
18694 # (actually we leave an empty line to preserve line numbers).
18695 if test "x$srcdir" = x.; then
18696 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18697 h
18698 s///
18699 s/^/:/
18700 s/[ ]*$/:/
18701 s/:\$(srcdir):/:/g
18702 s/:\${srcdir}:/:/g
18703 s/:@srcdir@:/:/g
18704 s/^:*//
18705 s/:*$//
18706 x
18707 s/\(=[ ]*\).*/\1/
18708 G
18709 s/\n//
18710 s/^[^=]*=[ ]*$//
18711 }'
18712 fi
18713
18714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18715 fi # test -n "$CONFIG_FILES"
18716
18717 # Set up the scripts for CONFIG_HEADERS section.
18718 # No need to generate them if there are no CONFIG_HEADERS.
18719 # This happens for instance with `./config.status Makefile'.
18720 if test -n "$CONFIG_HEADERS"; then
18721 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18722 BEGIN {
18723 _ACEOF
18724
18725 # Transform confdefs.h into an awk script `defines.awk', embedded as
18726 # here-document in config.status, that substitutes the proper values into
18727 # config.h.in to produce config.h.
18728
18729 # Create a delimiter string that does not exist in confdefs.h, to ease
18730 # handling of long lines.
18731 ac_delim='%!_!# '
18732 for ac_last_try in false false :; do
18733 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18734 if test -z "$ac_tt"; then
18735 break
18736 elif $ac_last_try; then
18737 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18738 else
18739 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18740 fi
18741 done
18742
18743 # For the awk script, D is an array of macro values keyed by name,
18744 # likewise P contains macro parameters if any. Preserve backslash
18745 # newline sequences.
18746
18747 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18748 sed -n '
18749 s/.\{148\}/&'"$ac_delim"'/g
18750 t rset
18751 :rset
18752 s/^[ ]*#[ ]*define[ ][ ]*/ /
18753 t def
18754 d
18755 :def
18756 s/\\$//
18757 t bsnl
18758 s/["\\]/\\&/g
18759 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18760 D["\1"]=" \3"/p
18761 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18762 d
18763 :bsnl
18764 s/["\\]/\\&/g
18765 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18766 D["\1"]=" \3\\\\\\n"\\/p
18767 t cont
18768 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18769 t cont
18770 d
18771 :cont
18772 n
18773 s/.\{148\}/&'"$ac_delim"'/g
18774 t clear
18775 :clear
18776 s/\\$//
18777 t bsnlc
18778 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18779 d
18780 :bsnlc
18781 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18782 b cont
18783 ' <confdefs.h | sed '
18784 s/'"$ac_delim"'/"\\\
18785 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18786
18787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18788 for (key in D) D_is_set[key] = 1
18789 FS = "\a"
18790 }
18791 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18792 line = \$ 0
18793 split(line, arg, " ")
18794 if (arg[1] == "#") {
18795 defundef = arg[2]
18796 mac1 = arg[3]
18797 } else {
18798 defundef = substr(arg[1], 2)
18799 mac1 = arg[2]
18800 }
18801 split(mac1, mac2, "(") #)
18802 macro = mac2[1]
18803 prefix = substr(line, 1, index(line, defundef) - 1)
18804 if (D_is_set[macro]) {
18805 # Preserve the white space surrounding the "#".
18806 print prefix "define", macro P[macro] D[macro]
18807 next
18808 } else {
18809 # Replace #undef with comments. This is necessary, for example,
18810 # in the case of _POSIX_SOURCE, which is predefined and required
18811 # on some systems where configure will not decide to define it.
18812 if (defundef == "undef") {
18813 print "/*", prefix defundef, macro, "*/"
18814 next
18815 }
18816 }
18817 }
18818 { print }
18819 _ACAWK
18820 _ACEOF
18821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18822 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18823 fi # test -n "$CONFIG_HEADERS"
18824
18825
18826 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18827 shift
18828 for ac_tag
18829 do
18830 case $ac_tag in
18831 :[FHLC]) ac_mode=$ac_tag; continue;;
18832 esac
18833 case $ac_mode$ac_tag in
18834 :[FHL]*:*);;
18835 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18836 :[FH]-) ac_tag=-:-;;
18837 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18838 esac
18839 ac_save_IFS=$IFS
18840 IFS=:
18841 set x $ac_tag
18842 IFS=$ac_save_IFS
18843 shift
18844 ac_file=$1
18845 shift
18846
18847 case $ac_mode in
18848 :L) ac_source=$1;;
18849 :[FH])
18850 ac_file_inputs=
18851 for ac_f
18852 do
18853 case $ac_f in
18854 -) ac_f="$ac_tmp/stdin";;
18855 *) # Look for the file first in the build tree, then in the source tree
18856 # (if the path is not absolute). The absolute path cannot be DOS-style,
18857 # because $ac_f cannot contain `:'.
18858 test -f "$ac_f" ||
18859 case $ac_f in
18860 [\\/$]*) false;;
18861 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18862 esac ||
18863 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18864 esac
18865 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18866 as_fn_append ac_file_inputs " '$ac_f'"
18867 done
18868
18869 # Let's still pretend it is `configure' which instantiates (i.e., don't
18870 # use $as_me), people would be surprised to read:
18871 # /* config.h. Generated by config.status. */
18872 configure_input='Generated from '`
18873 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18874 `' by configure.'
18875 if test x"$ac_file" != x-; then
18876 configure_input="$ac_file. $configure_input"
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18878 $as_echo "$as_me: creating $ac_file" >&6;}
18879 fi
18880 # Neutralize special characters interpreted by sed in replacement strings.
18881 case $configure_input in #(
18882 *\&* | *\|* | *\\* )
18883 ac_sed_conf_input=`$as_echo "$configure_input" |
18884 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18885 *) ac_sed_conf_input=$configure_input;;
18886 esac
18887
18888 case $ac_tag in
18889 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18890 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18891 esac
18892 ;;
18893 esac
18894
18895 ac_dir=`$as_dirname -- "$ac_file" ||
18896 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18897 X"$ac_file" : 'X\(//\)[^/]' \| \
18898 X"$ac_file" : 'X\(//\)$' \| \
18899 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18900 $as_echo X"$ac_file" |
18901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18902 s//\1/
18903 q
18904 }
18905 /^X\(\/\/\)[^/].*/{
18906 s//\1/
18907 q
18908 }
18909 /^X\(\/\/\)$/{
18910 s//\1/
18911 q
18912 }
18913 /^X\(\/\).*/{
18914 s//\1/
18915 q
18916 }
18917 s/.*/./; q'`
18918 as_dir="$ac_dir"; as_fn_mkdir_p
18919 ac_builddir=.
18920
18921 case "$ac_dir" in
18922 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18923 *)
18924 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18925 # A ".." for each directory in $ac_dir_suffix.
18926 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18927 case $ac_top_builddir_sub in
18928 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18929 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18930 esac ;;
18931 esac
18932 ac_abs_top_builddir=$ac_pwd
18933 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18934 # for backward compatibility:
18935 ac_top_builddir=$ac_top_build_prefix
18936
18937 case $srcdir in
18938 .) # We are building in place.
18939 ac_srcdir=.
18940 ac_top_srcdir=$ac_top_builddir_sub
18941 ac_abs_top_srcdir=$ac_pwd ;;
18942 [\\/]* | ?:[\\/]* ) # Absolute name.
18943 ac_srcdir=$srcdir$ac_dir_suffix;
18944 ac_top_srcdir=$srcdir
18945 ac_abs_top_srcdir=$srcdir ;;
18946 *) # Relative name.
18947 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18948 ac_top_srcdir=$ac_top_build_prefix$srcdir
18949 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18950 esac
18951 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18952
18953
18954 case $ac_mode in
18955 :F)
18956 #
18957 # CONFIG_FILE
18958 #
18959
18960 case $INSTALL in
18961 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18962 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18963 esac
18964 ac_MKDIR_P=$MKDIR_P
18965 case $MKDIR_P in
18966 [\\/$]* | ?:[\\/]* ) ;;
18967 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18968 esac
18969 _ACEOF
18970
18971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18972 # If the template does not know about datarootdir, expand it.
18973 # FIXME: This hack should be removed a few years after 2.60.
18974 ac_datarootdir_hack=; ac_datarootdir_seen=
18975 ac_sed_dataroot='
18976 /datarootdir/ {
18977 p
18978 q
18979 }
18980 /@datadir@/p
18981 /@docdir@/p
18982 /@infodir@/p
18983 /@localedir@/p
18984 /@mandir@/p'
18985 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18986 *datarootdir*) ac_datarootdir_seen=yes;;
18987 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18989 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18990 _ACEOF
18991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18992 ac_datarootdir_hack='
18993 s&@datadir@&$datadir&g
18994 s&@docdir@&$docdir&g
18995 s&@infodir@&$infodir&g
18996 s&@localedir@&$localedir&g
18997 s&@mandir@&$mandir&g
18998 s&\\\${datarootdir}&$datarootdir&g' ;;
18999 esac
19000 _ACEOF
19001
19002 # Neutralize VPATH when `$srcdir' = `.'.
19003 # Shell code in configure.ac might set extrasub.
19004 # FIXME: do we really want to maintain this feature?
19005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19006 ac_sed_extra="$ac_vpsub
19007 $extrasub
19008 _ACEOF
19009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19010 :t
19011 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19012 s|@configure_input@|$ac_sed_conf_input|;t t
19013 s&@top_builddir@&$ac_top_builddir_sub&;t t
19014 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19015 s&@srcdir@&$ac_srcdir&;t t
19016 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19017 s&@top_srcdir@&$ac_top_srcdir&;t t
19018 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19019 s&@builddir@&$ac_builddir&;t t
19020 s&@abs_builddir@&$ac_abs_builddir&;t t
19021 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19022 s&@INSTALL@&$ac_INSTALL&;t t
19023 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19024 $ac_datarootdir_hack
19025 "
19026 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19027 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19028
19029 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19030 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19031 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19032 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19034 which seems to be undefined. Please make sure it is defined" >&5
19035 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19036 which seems to be undefined. Please make sure it is defined" >&2;}
19037
19038 rm -f "$ac_tmp/stdin"
19039 case $ac_file in
19040 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19041 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19042 esac \
19043 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19044 ;;
19045 :H)
19046 #
19047 # CONFIG_HEADER
19048 #
19049 if test x"$ac_file" != x-; then
19050 {
19051 $as_echo "/* $configure_input */" \
19052 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19053 } >"$ac_tmp/config.h" \
19054 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19055 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19057 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19058 else
19059 rm -f "$ac_file"
19060 mv "$ac_tmp/config.h" "$ac_file" \
19061 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19062 fi
19063 else
19064 $as_echo "/* $configure_input */" \
19065 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19066 || as_fn_error $? "could not create -" "$LINENO" 5
19067 fi
19068 # Compute "$ac_file"'s index in $config_headers.
19069 _am_arg="$ac_file"
19070 _am_stamp_count=1
19071 for _am_header in $config_headers :; do
19072 case $_am_header in
19073 $_am_arg | $_am_arg:* )
19074 break ;;
19075 * )
19076 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19077 esac
19078 done
19079 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19080 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19081 X"$_am_arg" : 'X\(//\)[^/]' \| \
19082 X"$_am_arg" : 'X\(//\)$' \| \
19083 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19084 $as_echo X"$_am_arg" |
19085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19086 s//\1/
19087 q
19088 }
19089 /^X\(\/\/\)[^/].*/{
19090 s//\1/
19091 q
19092 }
19093 /^X\(\/\/\)$/{
19094 s//\1/
19095 q
19096 }
19097 /^X\(\/\).*/{
19098 s//\1/
19099 q
19100 }
19101 s/.*/./; q'`/stamp-h$_am_stamp_count
19102 ;;
19103
19104 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19105 $as_echo "$as_me: executing $ac_file commands" >&6;}
19106 ;;
19107 esac
19108
19109
19110 case $ac_file$ac_mode in
19111 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19112 # Older Autoconf quotes --file arguments for eval, but not when files
19113 # are listed without --file. Let's play safe and only enable the eval
19114 # if we detect the quoting.
19115 case $CONFIG_FILES in
19116 *\'*) eval set x "$CONFIG_FILES" ;;
19117 *) set x $CONFIG_FILES ;;
19118 esac
19119 shift
19120 for mf
19121 do
19122 # Strip MF so we end up with the name of the file.
19123 mf=`echo "$mf" | sed -e 's/:.*$//'`
19124 # Check whether this is an Automake generated Makefile or not.
19125 # We used to match only the files named 'Makefile.in', but
19126 # some people rename them; so instead we look at the file content.
19127 # Grep'ing the first line is not enough: some people post-process
19128 # each Makefile.in and add a new line on top of each file to say so.
19129 # Grep'ing the whole file is not good either: AIX grep has a line
19130 # limit of 2048, but all sed's we know have understand at least 4000.
19131 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19132 dirpart=`$as_dirname -- "$mf" ||
19133 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19134 X"$mf" : 'X\(//\)[^/]' \| \
19135 X"$mf" : 'X\(//\)$' \| \
19136 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19137 $as_echo X"$mf" |
19138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19139 s//\1/
19140 q
19141 }
19142 /^X\(\/\/\)[^/].*/{
19143 s//\1/
19144 q
19145 }
19146 /^X\(\/\/\)$/{
19147 s//\1/
19148 q
19149 }
19150 /^X\(\/\).*/{
19151 s//\1/
19152 q
19153 }
19154 s/.*/./; q'`
19155 else
19156 continue
19157 fi
19158 # Extract the definition of DEPDIR, am__include, and am__quote
19159 # from the Makefile without running 'make'.
19160 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19161 test -z "$DEPDIR" && continue
19162 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19163 test -z "$am__include" && continue
19164 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19165 # Find all dependency output files, they are included files with
19166 # $(DEPDIR) in their names. We invoke sed twice because it is the
19167 # simplest approach to changing $(DEPDIR) to its actual value in the
19168 # expansion.
19169 for file in `sed -n "
19170 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19171 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19172 # Make sure the directory exists.
19173 test -f "$dirpart/$file" && continue
19174 fdir=`$as_dirname -- "$file" ||
19175 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19176 X"$file" : 'X\(//\)[^/]' \| \
19177 X"$file" : 'X\(//\)$' \| \
19178 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19179 $as_echo X"$file" |
19180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19181 s//\1/
19182 q
19183 }
19184 /^X\(\/\/\)[^/].*/{
19185 s//\1/
19186 q
19187 }
19188 /^X\(\/\/\)$/{
19189 s//\1/
19190 q
19191 }
19192 /^X\(\/\).*/{
19193 s//\1/
19194 q
19195 }
19196 s/.*/./; q'`
19197 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19198 # echo "creating $dirpart/$file"
19199 echo '# dummy' > "$dirpart/$file"
19200 done
19201 done
19202 }
19203 ;;
19204 "libtool":C)
19205
19206 # See if we are running on zsh, and set the options which allow our
19207 # commands through without removal of \ escapes.
19208 if test -n "${ZSH_VERSION+set}" ; then
19209 setopt NO_GLOB_SUBST
19210 fi
19211
19212 cfgfile="${ofile}T"
19213 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19214 $RM "$cfgfile"
19215
19216 cat <<_LT_EOF >> "$cfgfile"
19217 #! $SHELL
19218
19219 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19220 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19221 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19222 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19223 #
19224 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19225 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19226 # Written by Gordon Matzigkeit, 1996
19227 #
19228 # This file is part of GNU Libtool.
19229 #
19230 # GNU Libtool is free software; you can redistribute it and/or
19231 # modify it under the terms of the GNU General Public License as
19232 # published by the Free Software Foundation; either version 2 of
19233 # the License, or (at your option) any later version.
19234 #
19235 # As a special exception to the GNU General Public License,
19236 # if you distribute this file as part of a program or library that
19237 # is built using GNU Libtool, you may include this file under the
19238 # same distribution terms that you use for the rest of that program.
19239 #
19240 # GNU Libtool is distributed in the hope that it will be useful,
19241 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19242 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19243 # GNU General Public License for more details.
19244 #
19245 # You should have received a copy of the GNU General Public License
19246 # along with GNU Libtool; see the file COPYING. If not, a copy
19247 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19248 # obtained by writing to the Free Software Foundation, Inc.,
19249 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19250
19251
19252 # The names of the tagged configurations supported by this script.
19253 available_tags="CXX "
19254
19255 # ### BEGIN LIBTOOL CONFIG
19256
19257 # Which release of libtool.m4 was used?
19258 macro_version=$macro_version
19259 macro_revision=$macro_revision
19260
19261 # Whether or not to build shared libraries.
19262 build_libtool_libs=$enable_shared
19263
19264 # Whether or not to build static libraries.
19265 build_old_libs=$enable_static
19266
19267 # What type of objects to build.
19268 pic_mode=$pic_mode
19269
19270 # Whether or not to optimize for fast installation.
19271 fast_install=$enable_fast_install
19272
19273 # Shell to use when invoking shell scripts.
19274 SHELL=$lt_SHELL
19275
19276 # An echo program that protects backslashes.
19277 ECHO=$lt_ECHO
19278
19279 # The host system.
19280 host_alias=$host_alias
19281 host=$host
19282 host_os=$host_os
19283
19284 # The build system.
19285 build_alias=$build_alias
19286 build=$build
19287 build_os=$build_os
19288
19289 # A sed program that does not truncate output.
19290 SED=$lt_SED
19291
19292 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19293 Xsed="\$SED -e 1s/^X//"
19294
19295 # A grep program that handles long lines.
19296 GREP=$lt_GREP
19297
19298 # An ERE matcher.
19299 EGREP=$lt_EGREP
19300
19301 # A literal string matcher.
19302 FGREP=$lt_FGREP
19303
19304 # A BSD- or MS-compatible name lister.
19305 NM=$lt_NM
19306
19307 # Whether we need soft or hard links.
19308 LN_S=$lt_LN_S
19309
19310 # What is the maximum length of a command?
19311 max_cmd_len=$max_cmd_len
19312
19313 # Object file suffix (normally "o").
19314 objext=$ac_objext
19315
19316 # Executable file suffix (normally "").
19317 exeext=$exeext
19318
19319 # whether the shell understands "unset".
19320 lt_unset=$lt_unset
19321
19322 # turn spaces into newlines.
19323 SP2NL=$lt_lt_SP2NL
19324
19325 # turn newlines into spaces.
19326 NL2SP=$lt_lt_NL2SP
19327
19328 # An object symbol dumper.
19329 OBJDUMP=$lt_OBJDUMP
19330
19331 # Method to check whether dependent libraries are shared objects.
19332 deplibs_check_method=$lt_deplibs_check_method
19333
19334 # Command to use when deplibs_check_method == "file_magic".
19335 file_magic_cmd=$lt_file_magic_cmd
19336
19337 # The archiver.
19338 AR=$lt_AR
19339 AR_FLAGS=$lt_AR_FLAGS
19340
19341 # A symbol stripping program.
19342 STRIP=$lt_STRIP
19343
19344 # Commands used to install an old-style archive.
19345 RANLIB=$lt_RANLIB
19346 old_postinstall_cmds=$lt_old_postinstall_cmds
19347 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19348
19349 # Whether to use a lock for old archive extraction.
19350 lock_old_archive_extraction=$lock_old_archive_extraction
19351
19352 # A C compiler.
19353 LTCC=$lt_CC
19354
19355 # LTCC compiler flags.
19356 LTCFLAGS=$lt_CFLAGS
19357
19358 # Take the output of nm and produce a listing of raw symbols and C names.
19359 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19360
19361 # Transform the output of nm in a proper C declaration.
19362 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19363
19364 # Transform the output of nm in a C name address pair.
19365 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19366
19367 # Transform the output of nm in a C name address pair when lib prefix is needed.
19368 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19369
19370 # The name of the directory that contains temporary libtool files.
19371 objdir=$objdir
19372
19373 # Used to examine libraries when file_magic_cmd begins with "file".
19374 MAGIC_CMD=$MAGIC_CMD
19375
19376 # Must we lock files when doing compilation?
19377 need_locks=$lt_need_locks
19378
19379 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19380 DSYMUTIL=$lt_DSYMUTIL
19381
19382 # Tool to change global to local symbols on Mac OS X.
19383 NMEDIT=$lt_NMEDIT
19384
19385 # Tool to manipulate fat objects and archives on Mac OS X.
19386 LIPO=$lt_LIPO
19387
19388 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19389 OTOOL=$lt_OTOOL
19390
19391 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19392 OTOOL64=$lt_OTOOL64
19393
19394 # Old archive suffix (normally "a").
19395 libext=$libext
19396
19397 # Shared library suffix (normally ".so").
19398 shrext_cmds=$lt_shrext_cmds
19399
19400 # The commands to extract the exported symbol list from a shared archive.
19401 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19402
19403 # Variables whose values should be saved in libtool wrapper scripts and
19404 # restored at link time.
19405 variables_saved_for_relink=$lt_variables_saved_for_relink
19406
19407 # Do we need the "lib" prefix for modules?
19408 need_lib_prefix=$need_lib_prefix
19409
19410 # Do we need a version for libraries?
19411 need_version=$need_version
19412
19413 # Library versioning type.
19414 version_type=$version_type
19415
19416 # Shared library runtime path variable.
19417 runpath_var=$runpath_var
19418
19419 # Shared library path variable.
19420 shlibpath_var=$shlibpath_var
19421
19422 # Is shlibpath searched before the hard-coded library search path?
19423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19424
19425 # Format of library name prefix.
19426 libname_spec=$lt_libname_spec
19427
19428 # List of archive names. First name is the real one, the rest are links.
19429 # The last name is the one that the linker finds with -lNAME
19430 library_names_spec=$lt_library_names_spec
19431
19432 # The coded name of the library, if different from the real name.
19433 soname_spec=$lt_soname_spec
19434
19435 # Permission mode override for installation of shared libraries.
19436 install_override_mode=$lt_install_override_mode
19437
19438 # Command to use after installation of a shared archive.
19439 postinstall_cmds=$lt_postinstall_cmds
19440
19441 # Command to use after uninstallation of a shared archive.
19442 postuninstall_cmds=$lt_postuninstall_cmds
19443
19444 # Commands used to finish a libtool library installation in a directory.
19445 finish_cmds=$lt_finish_cmds
19446
19447 # As "finish_cmds", except a single script fragment to be evaled but
19448 # not shown.
19449 finish_eval=$lt_finish_eval
19450
19451 # Whether we should hardcode library paths into libraries.
19452 hardcode_into_libs=$hardcode_into_libs
19453
19454 # Compile-time system search path for libraries.
19455 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19456
19457 # Run-time system search path for libraries.
19458 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19459
19460 # Whether dlopen is supported.
19461 dlopen_support=$enable_dlopen
19462
19463 # Whether dlopen of programs is supported.
19464 dlopen_self=$enable_dlopen_self
19465
19466 # Whether dlopen of statically linked programs is supported.
19467 dlopen_self_static=$enable_dlopen_self_static
19468
19469 # Commands to strip libraries.
19470 old_striplib=$lt_old_striplib
19471 striplib=$lt_striplib
19472
19473
19474 # The linker used to build libraries.
19475 LD=$lt_LD
19476
19477 # How to create reloadable object files.
19478 reload_flag=$lt_reload_flag
19479 reload_cmds=$lt_reload_cmds
19480
19481 # Commands used to build an old-style archive.
19482 old_archive_cmds=$lt_old_archive_cmds
19483
19484 # A language specific compiler.
19485 CC=$lt_compiler
19486
19487 # Is the compiler the GNU compiler?
19488 with_gcc=$GCC
19489
19490 # Compiler flag to turn off builtin functions.
19491 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19492
19493 # How to pass a linker flag through the compiler.
19494 wl=$lt_lt_prog_compiler_wl
19495
19496 # Additional compiler flags for building library objects.
19497 pic_flag=$lt_lt_prog_compiler_pic
19498
19499 # Compiler flag to prevent dynamic linking.
19500 link_static_flag=$lt_lt_prog_compiler_static
19501
19502 # Does compiler simultaneously support -c and -o options?
19503 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19504
19505 # Whether or not to add -lc for building shared libraries.
19506 build_libtool_need_lc=$archive_cmds_need_lc
19507
19508 # Whether or not to disallow shared libs when runtime libs are static.
19509 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19510
19511 # Compiler flag to allow reflexive dlopens.
19512 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19513
19514 # Compiler flag to generate shared objects directly from archives.
19515 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19516
19517 # Whether the compiler copes with passing no objects directly.
19518 compiler_needs_object=$lt_compiler_needs_object
19519
19520 # Create an old-style archive from a shared archive.
19521 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19522
19523 # Create a temporary old-style archive to link instead of a shared archive.
19524 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19525
19526 # Commands used to build a shared archive.
19527 archive_cmds=$lt_archive_cmds
19528 archive_expsym_cmds=$lt_archive_expsym_cmds
19529
19530 # Commands used to build a loadable module if different from building
19531 # a shared archive.
19532 module_cmds=$lt_module_cmds
19533 module_expsym_cmds=$lt_module_expsym_cmds
19534
19535 # Whether we are building with GNU ld or not.
19536 with_gnu_ld=$lt_with_gnu_ld
19537
19538 # Flag that allows shared libraries with undefined symbols to be built.
19539 allow_undefined_flag=$lt_allow_undefined_flag
19540
19541 # Flag that enforces no undefined symbols.
19542 no_undefined_flag=$lt_no_undefined_flag
19543
19544 # Flag to hardcode \$libdir into a binary during linking.
19545 # This must work even if \$libdir does not exist
19546 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19547
19548 # If ld is used when linking, flag to hardcode \$libdir into a binary
19549 # during linking. This must work even if \$libdir does not exist.
19550 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19551
19552 # Whether we need a single "-rpath" flag with a separated argument.
19553 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19554
19555 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19556 # DIR into the resulting binary.
19557 hardcode_direct=$hardcode_direct
19558
19559 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19560 # DIR into the resulting binary and the resulting library dependency is
19561 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19562 # library is relocated.
19563 hardcode_direct_absolute=$hardcode_direct_absolute
19564
19565 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19566 # into the resulting binary.
19567 hardcode_minus_L=$hardcode_minus_L
19568
19569 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19570 # into the resulting binary.
19571 hardcode_shlibpath_var=$hardcode_shlibpath_var
19572
19573 # Set to "yes" if building a shared library automatically hardcodes DIR
19574 # into the library and all subsequent libraries and executables linked
19575 # against it.
19576 hardcode_automatic=$hardcode_automatic
19577
19578 # Set to yes if linker adds runtime paths of dependent libraries
19579 # to runtime path list.
19580 inherit_rpath=$inherit_rpath
19581
19582 # Whether libtool must link a program against all its dependency libraries.
19583 link_all_deplibs=$link_all_deplibs
19584
19585 # Fix the shell variable \$srcfile for the compiler.
19586 fix_srcfile_path=$lt_fix_srcfile_path
19587
19588 # Set to "yes" if exported symbols are required.
19589 always_export_symbols=$always_export_symbols
19590
19591 # The commands to list exported symbols.
19592 export_symbols_cmds=$lt_export_symbols_cmds
19593
19594 # Symbols that should not be listed in the preloaded symbols.
19595 exclude_expsyms=$lt_exclude_expsyms
19596
19597 # Symbols that must always be exported.
19598 include_expsyms=$lt_include_expsyms
19599
19600 # Commands necessary for linking programs (against libraries) with templates.
19601 prelink_cmds=$lt_prelink_cmds
19602
19603 # Specify filename containing input files.
19604 file_list_spec=$lt_file_list_spec
19605
19606 # How to hardcode a shared library path into an executable.
19607 hardcode_action=$hardcode_action
19608
19609 # The directories searched by this compiler when creating a shared library.
19610 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19611
19612 # Dependencies to place before and after the objects being linked to
19613 # create a shared library.
19614 predep_objects=$lt_predep_objects
19615 postdep_objects=$lt_postdep_objects
19616 predeps=$lt_predeps
19617 postdeps=$lt_postdeps
19618
19619 # The library search path used internally by the compiler when linking
19620 # a shared library.
19621 compiler_lib_search_path=$lt_compiler_lib_search_path
19622
19623 # ### END LIBTOOL CONFIG
19624
19625 _LT_EOF
19626
19627 case $host_os in
19628 aix3*)
19629 cat <<\_LT_EOF >> "$cfgfile"
19630 # AIX sometimes has problems with the GCC collect2 program. For some
19631 # reason, if we set the COLLECT_NAMES environment variable, the problems
19632 # vanish in a puff of smoke.
19633 if test "X${COLLECT_NAMES+set}" != Xset; then
19634 COLLECT_NAMES=
19635 export COLLECT_NAMES
19636 fi
19637 _LT_EOF
19638 ;;
19639 esac
19640
19641
19642 ltmain="$ac_aux_dir/ltmain.sh"
19643
19644
19645 # We use sed instead of cat because bash on DJGPP gets confused if
19646 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19647 # text mode, it properly converts lines to CR/LF. This bash problem
19648 # is reportedly fixed, but why not run on old versions too?
19649 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19650 || (rm -f "$cfgfile"; exit 1)
19651
19652 case $xsi_shell in
19653 yes)
19654 cat << \_LT_EOF >> "$cfgfile"
19655
19656 # func_dirname file append nondir_replacement
19657 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19658 # otherwise set result to NONDIR_REPLACEMENT.
19659 func_dirname ()
19660 {
19661 case ${1} in
19662 */*) func_dirname_result="${1%/*}${2}" ;;
19663 * ) func_dirname_result="${3}" ;;
19664 esac
19665 }
19666
19667 # func_basename file
19668 func_basename ()
19669 {
19670 func_basename_result="${1##*/}"
19671 }
19672
19673 # func_dirname_and_basename file append nondir_replacement
19674 # perform func_basename and func_dirname in a single function
19675 # call:
19676 # dirname: Compute the dirname of FILE. If nonempty,
19677 # add APPEND to the result, otherwise set result
19678 # to NONDIR_REPLACEMENT.
19679 # value returned in "$func_dirname_result"
19680 # basename: Compute filename of FILE.
19681 # value retuned in "$func_basename_result"
19682 # Implementation must be kept synchronized with func_dirname
19683 # and func_basename. For efficiency, we do not delegate to
19684 # those functions but instead duplicate the functionality here.
19685 func_dirname_and_basename ()
19686 {
19687 case ${1} in
19688 */*) func_dirname_result="${1%/*}${2}" ;;
19689 * ) func_dirname_result="${3}" ;;
19690 esac
19691 func_basename_result="${1##*/}"
19692 }
19693
19694 # func_stripname prefix suffix name
19695 # strip PREFIX and SUFFIX off of NAME.
19696 # PREFIX and SUFFIX must not contain globbing or regex special
19697 # characters, hashes, percent signs, but SUFFIX may contain a leading
19698 # dot (in which case that matches only a dot).
19699 func_stripname ()
19700 {
19701 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19702 # positional parameters, so assign one to ordinary parameter first.
19703 func_stripname_result=${3}
19704 func_stripname_result=${func_stripname_result#"${1}"}
19705 func_stripname_result=${func_stripname_result%"${2}"}
19706 }
19707
19708 # func_opt_split
19709 func_opt_split ()
19710 {
19711 func_opt_split_opt=${1%%=*}
19712 func_opt_split_arg=${1#*=}
19713 }
19714
19715 # func_lo2o object
19716 func_lo2o ()
19717 {
19718 case ${1} in
19719 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19720 *) func_lo2o_result=${1} ;;
19721 esac
19722 }
19723
19724 # func_xform libobj-or-source
19725 func_xform ()
19726 {
19727 func_xform_result=${1%.*}.lo
19728 }
19729
19730 # func_arith arithmetic-term...
19731 func_arith ()
19732 {
19733 func_arith_result=$(( $* ))
19734 }
19735
19736 # func_len string
19737 # STRING may not start with a hyphen.
19738 func_len ()
19739 {
19740 func_len_result=${#1}
19741 }
19742
19743 _LT_EOF
19744 ;;
19745 *) # Bourne compatible functions.
19746 cat << \_LT_EOF >> "$cfgfile"
19747
19748 # func_dirname file append nondir_replacement
19749 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19750 # otherwise set result to NONDIR_REPLACEMENT.
19751 func_dirname ()
19752 {
19753 # Extract subdirectory from the argument.
19754 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19755 if test "X$func_dirname_result" = "X${1}"; then
19756 func_dirname_result="${3}"
19757 else
19758 func_dirname_result="$func_dirname_result${2}"
19759 fi
19760 }
19761
19762 # func_basename file
19763 func_basename ()
19764 {
19765 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19766 }
19767
19768
19769 # func_stripname prefix suffix name
19770 # strip PREFIX and SUFFIX off of NAME.
19771 # PREFIX and SUFFIX must not contain globbing or regex special
19772 # characters, hashes, percent signs, but SUFFIX may contain a leading
19773 # dot (in which case that matches only a dot).
19774 # func_strip_suffix prefix name
19775 func_stripname ()
19776 {
19777 case ${2} in
19778 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19779 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19780 esac
19781 }
19782
19783 # sed scripts:
19784 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19785 my_sed_long_arg='1s/^-[^=]*=//'
19786
19787 # func_opt_split
19788 func_opt_split ()
19789 {
19790 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19791 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19792 }
19793
19794 # func_lo2o object
19795 func_lo2o ()
19796 {
19797 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19798 }
19799
19800 # func_xform libobj-or-source
19801 func_xform ()
19802 {
19803 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19804 }
19805
19806 # func_arith arithmetic-term...
19807 func_arith ()
19808 {
19809 func_arith_result=`expr "$@"`
19810 }
19811
19812 # func_len string
19813 # STRING may not start with a hyphen.
19814 func_len ()
19815 {
19816 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19817 }
19818
19819 _LT_EOF
19820 esac
19821
19822 case $lt_shell_append in
19823 yes)
19824 cat << \_LT_EOF >> "$cfgfile"
19825
19826 # func_append var value
19827 # Append VALUE to the end of shell variable VAR.
19828 func_append ()
19829 {
19830 eval "$1+=\$2"
19831 }
19832 _LT_EOF
19833 ;;
19834 *)
19835 cat << \_LT_EOF >> "$cfgfile"
19836
19837 # func_append var value
19838 # Append VALUE to the end of shell variable VAR.
19839 func_append ()
19840 {
19841 eval "$1=\$$1\$2"
19842 }
19843
19844 _LT_EOF
19845 ;;
19846 esac
19847
19848
19849 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19850 || (rm -f "$cfgfile"; exit 1)
19851
19852 mv -f "$cfgfile" "$ofile" ||
19853 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19854 chmod +x "$ofile"
19855
19856
19857 cat <<_LT_EOF >> "$ofile"
19858
19859 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19860
19861 # The linker used to build libraries.
19862 LD=$lt_LD_CXX
19863
19864 # How to create reloadable object files.
19865 reload_flag=$lt_reload_flag_CXX
19866 reload_cmds=$lt_reload_cmds_CXX
19867
19868 # Commands used to build an old-style archive.
19869 old_archive_cmds=$lt_old_archive_cmds_CXX
19870
19871 # A language specific compiler.
19872 CC=$lt_compiler_CXX
19873
19874 # Is the compiler the GNU compiler?
19875 with_gcc=$GCC_CXX
19876
19877 # Compiler flag to turn off builtin functions.
19878 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19879
19880 # How to pass a linker flag through the compiler.
19881 wl=$lt_lt_prog_compiler_wl_CXX
19882
19883 # Additional compiler flags for building library objects.
19884 pic_flag=$lt_lt_prog_compiler_pic_CXX
19885
19886 # Compiler flag to prevent dynamic linking.
19887 link_static_flag=$lt_lt_prog_compiler_static_CXX
19888
19889 # Does compiler simultaneously support -c and -o options?
19890 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19891
19892 # Whether or not to add -lc for building shared libraries.
19893 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19894
19895 # Whether or not to disallow shared libs when runtime libs are static.
19896 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19897
19898 # Compiler flag to allow reflexive dlopens.
19899 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19900
19901 # Compiler flag to generate shared objects directly from archives.
19902 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19903
19904 # Whether the compiler copes with passing no objects directly.
19905 compiler_needs_object=$lt_compiler_needs_object_CXX
19906
19907 # Create an old-style archive from a shared archive.
19908 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19909
19910 # Create a temporary old-style archive to link instead of a shared archive.
19911 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19912
19913 # Commands used to build a shared archive.
19914 archive_cmds=$lt_archive_cmds_CXX
19915 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19916
19917 # Commands used to build a loadable module if different from building
19918 # a shared archive.
19919 module_cmds=$lt_module_cmds_CXX
19920 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19921
19922 # Whether we are building with GNU ld or not.
19923 with_gnu_ld=$lt_with_gnu_ld_CXX
19924
19925 # Flag that allows shared libraries with undefined symbols to be built.
19926 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19927
19928 # Flag that enforces no undefined symbols.
19929 no_undefined_flag=$lt_no_undefined_flag_CXX
19930
19931 # Flag to hardcode \$libdir into a binary during linking.
19932 # This must work even if \$libdir does not exist
19933 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19934
19935 # If ld is used when linking, flag to hardcode \$libdir into a binary
19936 # during linking. This must work even if \$libdir does not exist.
19937 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19938
19939 # Whether we need a single "-rpath" flag with a separated argument.
19940 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19941
19942 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19943 # DIR into the resulting binary.
19944 hardcode_direct=$hardcode_direct_CXX
19945
19946 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19947 # DIR into the resulting binary and the resulting library dependency is
19948 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19949 # library is relocated.
19950 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19951
19952 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19953 # into the resulting binary.
19954 hardcode_minus_L=$hardcode_minus_L_CXX
19955
19956 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19957 # into the resulting binary.
19958 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19959
19960 # Set to "yes" if building a shared library automatically hardcodes DIR
19961 # into the library and all subsequent libraries and executables linked
19962 # against it.
19963 hardcode_automatic=$hardcode_automatic_CXX
19964
19965 # Set to yes if linker adds runtime paths of dependent libraries
19966 # to runtime path list.
19967 inherit_rpath=$inherit_rpath_CXX
19968
19969 # Whether libtool must link a program against all its dependency libraries.
19970 link_all_deplibs=$link_all_deplibs_CXX
19971
19972 # Fix the shell variable \$srcfile for the compiler.
19973 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19974
19975 # Set to "yes" if exported symbols are required.
19976 always_export_symbols=$always_export_symbols_CXX
19977
19978 # The commands to list exported symbols.
19979 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19980
19981 # Symbols that should not be listed in the preloaded symbols.
19982 exclude_expsyms=$lt_exclude_expsyms_CXX
19983
19984 # Symbols that must always be exported.
19985 include_expsyms=$lt_include_expsyms_CXX
19986
19987 # Commands necessary for linking programs (against libraries) with templates.
19988 prelink_cmds=$lt_prelink_cmds_CXX
19989
19990 # Specify filename containing input files.
19991 file_list_spec=$lt_file_list_spec_CXX
19992
19993 # How to hardcode a shared library path into an executable.
19994 hardcode_action=$hardcode_action_CXX
19995
19996 # The directories searched by this compiler when creating a shared library.
19997 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19998
19999 # Dependencies to place before and after the objects being linked to
20000 # create a shared library.
20001 predep_objects=$lt_predep_objects_CXX
20002 postdep_objects=$lt_postdep_objects_CXX
20003 predeps=$lt_predeps_CXX
20004 postdeps=$lt_postdeps_CXX
20005
20006 # The library search path used internally by the compiler when linking
20007 # a shared library.
20008 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20009
20010 # ### END LIBTOOL TAG CONFIG: CXX
20011 _LT_EOF
20012
20013 ;;
20014 "default-1":C)
20015 for ac_file in $CONFIG_FILES; do
20016 # Support "outfile[:infile[:infile...]]"
20017 case "$ac_file" in
20018 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20019 esac
20020 # PO directories have a Makefile.in generated from Makefile.in.in.
20021 case "$ac_file" in */Makefile.in)
20022 # Adjust a relative srcdir.
20023 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20024 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20025 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20026 # In autoconf-2.13 it is called $ac_given_srcdir.
20027 # In autoconf-2.50 it is called $srcdir.
20028 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20029 case "$ac_given_srcdir" in
20030 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20031 /*) top_srcdir="$ac_given_srcdir" ;;
20032 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20033 esac
20034 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20035 rm -f "$ac_dir/POTFILES"
20036 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20037 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20038 POMAKEFILEDEPS="POTFILES.in"
20039 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20040 # on $ac_dir but don't depend on user-specified configuration
20041 # parameters.
20042 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20043 # The LINGUAS file contains the set of available languages.
20044 if test -n "$OBSOLETE_ALL_LINGUAS"; then
20045 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
20046 fi
20047 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20048 # Hide the ALL_LINGUAS assigment from automake.
20049 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20050 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20051 else
20052 # The set of available languages was given in configure.ac.
20053 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
20054 fi
20055 case "$ac_given_srcdir" in
20056 .) srcdirpre= ;;
20057 *) srcdirpre='$(srcdir)/' ;;
20058 esac
20059 POFILES=
20060 GMOFILES=
20061 UPDATEPOFILES=
20062 DUMMYPOFILES=
20063 for lang in $ALL_LINGUAS; do
20064 POFILES="$POFILES $srcdirpre$lang.po"
20065 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20066 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20067 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20068 done
20069 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20070 # environment variable.
20071 INST_LINGUAS=
20072 if test -n "$ALL_LINGUAS"; then
20073 for presentlang in $ALL_LINGUAS; do
20074 useit=no
20075 if test "%UNSET%" != "$LINGUAS"; then
20076 desiredlanguages="$LINGUAS"
20077 else
20078 desiredlanguages="$ALL_LINGUAS"
20079 fi
20080 for desiredlang in $desiredlanguages; do
20081 # Use the presentlang catalog if desiredlang is
20082 # a. equal to presentlang, or
20083 # b. a variant of presentlang (because in this case,
20084 # presentlang can be used as a fallback for messages
20085 # which are not translated in the desiredlang catalog).
20086 case "$desiredlang" in
20087 "$presentlang"*) useit=yes;;
20088 esac
20089 done
20090 if test $useit = yes; then
20091 INST_LINGUAS="$INST_LINGUAS $presentlang"
20092 fi
20093 done
20094 fi
20095 CATALOGS=
20096 if test -n "$INST_LINGUAS"; then
20097 for lang in $INST_LINGUAS; do
20098 CATALOGS="$CATALOGS $lang.gmo"
20099 done
20100 fi
20101 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20102 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"
20103 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20104 if test -f "$f"; then
20105 case "$f" in
20106 *.orig | *.bak | *~) ;;
20107 *) cat "$f" >> "$ac_dir/Makefile" ;;
20108 esac
20109 fi
20110 done
20111 fi
20112 ;;
20113 esac
20114 done ;;
20115 "default":C)
20116 case "$srcdir" in
20117 .) srcdirpre= ;;
20118 *) srcdirpre='$(srcdir)/' ;;
20119 esac
20120 POFILES=
20121 GMOFILES=
20122 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
20123 if test $lang != dummy; then
20124 POFILES="$POFILES $srcdirpre$lang.po"
20125 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20126 fi
20127 done
20128 sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
20129 -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
20130 -e "s,@POFILES@,$POFILES," \
20131 -e "s,@GMOFILES@,$GMOFILES," \
20132 po/Makefile.in > po/Makefile ;;
20133
20134 esac
20135 done # for ac_tag
20136
20137
20138 as_fn_exit 0
20139 _ACEOF
20140 ac_clean_files=$ac_clean_files_save
20141
20142 test $ac_write_fail = 0 ||
20143 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20144
20145
20146 # configure is writing to config.log, and then calls config.status.
20147 # config.status does its own redirection, appending to config.log.
20148 # Unfortunately, on DOS this fails, as config.log is still kept open
20149 # by configure, so config.status won't be able to write to it; its
20150 # output is simply discarded. So we exec the FD to /dev/null,
20151 # effectively closing config.log, so it can be properly (re)opened and
20152 # appended to by config.status. When coming back to configure, we
20153 # need to make the FD available again.
20154 if test "$no_create" != yes; then
20155 ac_cs_success=:
20156 ac_config_status_args=
20157 test "$silent" = yes &&
20158 ac_config_status_args="$ac_config_status_args --quiet"
20159 exec 5>/dev/null
20160 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20161 exec 5>>config.log
20162 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20163 # would make configure fail if this is the last instruction.
20164 $ac_cs_success || as_fn_exit 1
20165 fi
20166 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20168 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20169 fi
20170
20171
20172
20173 touch config.status.tmp
20174 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
20175 sed '/as_fn_exit 0/i \
20176 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
20177 touch --reference=Makefile Makefile.tmp \
20178 mv Makefile.tmp Makefile \
20179 ' config.status > config.status.tmp
20180 touch --reference=config.status config.status.tmp
20181 mv config.status.tmp config.status
20182 chmod +x config.status
20183 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
20184 touch --reference=Makefile Makefile.tmp
20185 mv Makefile.tmp Makefile
20186 else
20187 rm -f config.status.tmp
20188 fi