Debian Codegraph @

ld/configure

raw ◀ ▶
Source reconstructed at patch state 0 of 3 — not the installed (fully patched) source.
3 Debian patches touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ld 2.44.
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 [email protected] 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.44'
591 PACKAGE_STRING='ld 2.44'
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 gt_needs=
633 ac_header_list=
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 TESTSFRAMELIB
639 TESTCTFLIB
640 TESTBFDLIB
641 EMULATION_LIBPATH
642 LIB_PATH
643 EMUL_EXTRA_OFILES
644 EMULATION_OFILES
645 TDIRS
646 EMUL
647 elf_plt_unwind_list_options
648 elf_shlib_list_options
649 elf_list_options
650 ZSTD_LIBS
651 ZSTD_CFLAGS
652 zlibinc
653 zlibdir
654 NATIVE_LIB_DIRS
655 HDEFINES
656 do_compare
657 GENINSRC_NEVER_FALSE
658 GENINSRC_NEVER_TRUE
659 LEXLIB
660 LEX_OUTPUT_ROOT
661 LEX
662 YFLAGS
663 YACC
664 CATOBJEXT
665 GENCAT
666 INSTOBJEXT
667 DATADIRNAME
668 CATALOGS
669 INCINTL
670 LIBINTL_DEP
671 POSUB
672 LTLIBINTL
673 LIBINTL
674 INTLLIBS
675 LTLIBICONV
676 LIBICONV
677 INTL_MACOSX_LIBS
678 MSGMERGE
679 XGETTEXT
680 GMSGFMT
681 MSGFMT
682 USE_NLS
683 MKINSTALLDIRS
684 WARN_WRITE_STRINGS
685 NO_WERROR
686 WARN_CFLAGS_FOR_BUILD
687 WARN_CFLAGS
688 JANSSON_LIBS
689 JANSSON_CFLAGS
690 enable_libctf
691 ENABLE_LIBCTF_FALSE
692 ENABLE_LIBCTF_TRUE
693 enable_initfini_array
694 installed_linker
695 install_as_default
696 TARGET_SYSTEM_ROOT_DEFINE
697 TARGET_SYSTEM_ROOT
698 use_sysroot
699 ENABLE_BFD_64_BIT_FALSE
700 ENABLE_BFD_64_BIT_TRUE
701 LARGEFILE_CPPFLAGS
702 CXXCPP
703 OTOOL64
704 OTOOL
705 LIPO
706 NMEDIT
707 DSYMUTIL
708 RANLIB
709 AR
710 OBJDUMP
711 LN_S
712 NM
713 ac_ct_DUMPBIN
714 DUMPBIN
715 LD
716 FGREP
717 SED
718 LIBTOOL
719 PKG_CONFIG_LIBDIR
720 PKG_CONFIG_PATH
721 PKG_CONFIG
722 EGREP
723 CPP
724 GREP
725 am__fastdepCXX_FALSE
726 am__fastdepCXX_TRUE
727 CXXDEPMODE
728 ac_ct_CXX
729 CXXFLAGS
730 CXX
731 am__fastdepCC_FALSE
732 am__fastdepCC_TRUE
733 CCDEPMODE
734 am__nodep
735 AMDEPBACKSLASH
736 AMDEP_FALSE
737 AMDEP_TRUE
738 am__quote
739 am__include
740 DEPDIR
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
747 CC
748 MAINT
749 MAINTAINER_MODE_FALSE
750 MAINTAINER_MODE_TRUE
751 AM_BACKSLASH
752 AM_DEFAULT_VERBOSITY
753 AM_DEFAULT_V
754 AM_V
755 am__untar
756 am__tar
757 AMTAR
758 am__leading_dot
759 SET_MAKE
760 AWK
761 mkdir_p
762 MKDIR_P
763 INSTALL_STRIP_PROGRAM
764 STRIP
765 install_sh
766 MAKEINFO
767 AUTOHEADER
768 AUTOMAKE
769 AUTOCONF
770 ACLOCAL
771 VERSION
772 PACKAGE
773 CYGPATH_W
774 am__isrc
775 INSTALL_DATA
776 INSTALL_SCRIPT
777 INSTALL_PROGRAM
778 target_os
779 target_vendor
780 target_cpu
781 target
782 host_os
783 host_vendor
784 host_cpu
785 host
786 build_os
787 build_vendor
788 build_cpu
789 build
790 target_alias
791 host_alias
792 build_alias
793 LIBS
794 ECHO_T
795 ECHO_N
796 ECHO_C
797 DEFS
798 mandir
799 localedir
800 libdir
801 psdir
802 pdfdir
803 dvidir
804 htmldir
805 infodir
806 docdir
807 oldincludedir
808 includedir
809 localstatedir
810 sharedstatedir
811 sysconfdir
812 datadir
813 datarootdir
814 libexecdir
815 sbindir
816 bindir
817 program_transform_name
818 prefix
819 exec_prefix
820 PACKAGE_URL
821 PACKAGE_BUGREPORT
822 PACKAGE_STRING
823 PACKAGE_VERSION
824 PACKAGE_TARNAME
825 PACKAGE_NAME
826 PATH_SEPARATOR
827 SHELL'
828 ac_subst_files=''
829 ac_user_opts='
830 enable_option_checking
831 enable_silent_rules
832 enable_maintainer_mode
833 enable_dependency_tracking
834 enable_shared
835 enable_static
836 with_pic
837 enable_fast_install
838 with_gnu_ld
839 enable_libtool_lock
840 enable_plugins
841 enable_largefile
842 enable_checking
843 with_lib_path
844 enable_targets
845 enable_64_bit_bfd
846 with_sysroot
847 enable_gold
848 enable_got
849 enable_compressed_debug_sections
850 enable_default_compressed_debug_sections_algorithm
851 enable_new_dtags
852 enable_relro
853 enable_textrel_check
854 enable_separate_code
855 enable_rosegment
856 enable_mark_plt
857 enable_memory_seal
858 enable_warn_execstack
859 enable_error_execstack
860 enable_warn_rwx_segments
861 enable_error_rwx_segments
862 enable_default_execstack
863 enable_error_handling_script
864 enable_default_hash_style
865 enable_initfini_array
866 enable_libctf
867 enable_jansson
868 enable_werror
869 enable_build_warnings
870 enable_nls
871 enable_rpath
872 with_libiconv_prefix
873 with_libiconv_type
874 with_libintl_prefix
875 with_libintl_type
876 with_xxhash
877 with_system_zlib
878 with_zstd
879 '
880 ac_precious_vars='build_alias
881 host_alias
882 target_alias
883 CC
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
888 CXX
889 CXXFLAGS
890 CCC
891 CPP
892 PKG_CONFIG
893 PKG_CONFIG_PATH
894 PKG_CONFIG_LIBDIR
895 CXXCPP
896 JANSSON_CFLAGS
897 JANSSON_LIBS
898 YACC
899 YFLAGS
900 ZSTD_CFLAGS
901 ZSTD_LIBS'
902
903
904 # Initialize some variables set by options.
905 ac_init_help=
906 ac_init_version=false
907 ac_unrecognized_opts=
908 ac_unrecognized_sep=
909 # The variables have the same names as the options, with
910 # dashes changed to underlines.
911 cache_file=/dev/null
912 exec_prefix=NONE
913 no_create=
914 no_recursion=
915 prefix=NONE
916 program_prefix=NONE
917 program_suffix=NONE
918 program_transform_name=s,x,x,
919 silent=
920 site=
921 srcdir=
922 verbose=
923 x_includes=NONE
924 x_libraries=NONE
925
926 # Installation directory options.
927 # These are left unexpanded so users can "make install exec_prefix=/foo"
928 # and all the variables that are supposed to be based on exec_prefix
929 # by default will actually change.
930 # Use braces instead of parens because sh, perl, etc. also accept them.
931 # (The list follows the same order as the GNU Coding Standards.)
932 bindir='${exec_prefix}/bin'
933 sbindir='${exec_prefix}/sbin'
934 libexecdir='${exec_prefix}/libexec'
935 datarootdir='${prefix}/share'
936 datadir='${datarootdir}'
937 sysconfdir='${prefix}/etc'
938 sharedstatedir='${prefix}/com'
939 localstatedir='${prefix}/var'
940 includedir='${prefix}/include'
941 oldincludedir='/usr/include'
942 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
943 infodir='${datarootdir}/info'
944 htmldir='${docdir}'
945 dvidir='${docdir}'
946 pdfdir='${docdir}'
947 psdir='${docdir}'
948 libdir='${exec_prefix}/lib'
949 localedir='${datarootdir}/locale'
950 mandir='${datarootdir}/man'
951
952 ac_prev=
953 ac_dashdash=
954 for ac_option
955 do
956 # If the previous option needs an argument, assign it.
957 if test -n "$ac_prev"; then
958 eval $ac_prev=\$ac_option
959 ac_prev=
960 continue
961 fi
962
963 case $ac_option in
964 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 *=) ac_optarg= ;;
966 *) ac_optarg=yes ;;
967 esac
968
969 # Accept the important Cygnus configure options, so we can diagnose typos.
970
971 case $ac_dashdash$ac_option in
972 --)
973 ac_dashdash=yes ;;
974
975 -bindir | --bindir | --bindi | --bind | --bin | --bi)
976 ac_prev=bindir ;;
977 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978 bindir=$ac_optarg ;;
979
980 -build | --build | --buil | --bui | --bu)
981 ac_prev=build_alias ;;
982 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
983 build_alias=$ac_optarg ;;
984
985 -cache-file | --cache-file | --cache-fil | --cache-fi \
986 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
987 ac_prev=cache_file ;;
988 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
989 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
990 cache_file=$ac_optarg ;;
991
992 --config-cache | -C)
993 cache_file=config.cache ;;
994
995 -datadir | --datadir | --datadi | --datad)
996 ac_prev=datadir ;;
997 -datadir=* | --datadir=* | --datadi=* | --datad=*)
998 datadir=$ac_optarg ;;
999
1000 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1001 | --dataroo | --dataro | --datar)
1002 ac_prev=datarootdir ;;
1003 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1004 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1005 datarootdir=$ac_optarg ;;
1006
1007 -disable-* | --disable-*)
1008 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011 as_fn_error $? "invalid feature name: $ac_useropt"
1012 ac_useropt_orig=$ac_useropt
1013 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1015 *"
1016 "enable_$ac_useropt"
1017 "*) ;;
1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1019 ac_unrecognized_sep=', ';;
1020 esac
1021 eval enable_$ac_useropt=no ;;
1022
1023 -docdir | --docdir | --docdi | --doc | --do)
1024 ac_prev=docdir ;;
1025 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1026 docdir=$ac_optarg ;;
1027
1028 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1029 ac_prev=dvidir ;;
1030 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1031 dvidir=$ac_optarg ;;
1032
1033 -enable-* | --enable-*)
1034 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037 as_fn_error $? "invalid feature name: $ac_useropt"
1038 ac_useropt_orig=$ac_useropt
1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1041 *"
1042 "enable_$ac_useropt"
1043 "*) ;;
1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1045 ac_unrecognized_sep=', ';;
1046 esac
1047 eval enable_$ac_useropt=\$ac_optarg ;;
1048
1049 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1050 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1051 | --exec | --exe | --ex)
1052 ac_prev=exec_prefix ;;
1053 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1054 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1055 | --exec=* | --exe=* | --ex=*)
1056 exec_prefix=$ac_optarg ;;
1057
1058 -gas | --gas | --ga | --g)
1059 # Obsolete; use --with-gas.
1060 with_gas=yes ;;
1061
1062 -help | --help | --hel | --he | -h)
1063 ac_init_help=long ;;
1064 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1065 ac_init_help=recursive ;;
1066 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1067 ac_init_help=short ;;
1068
1069 -host | --host | --hos | --ho)
1070 ac_prev=host_alias ;;
1071 -host=* | --host=* | --hos=* | --ho=*)
1072 host_alias=$ac_optarg ;;
1073
1074 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1075 ac_prev=htmldir ;;
1076 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1077 | --ht=*)
1078 htmldir=$ac_optarg ;;
1079
1080 -includedir | --includedir | --includedi | --included | --include \
1081 | --includ | --inclu | --incl | --inc)
1082 ac_prev=includedir ;;
1083 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1084 | --includ=* | --inclu=* | --incl=* | --inc=*)
1085 includedir=$ac_optarg ;;
1086
1087 -infodir | --infodir | --infodi | --infod | --info | --inf)
1088 ac_prev=infodir ;;
1089 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1090 infodir=$ac_optarg ;;
1091
1092 -libdir | --libdir | --libdi | --libd)
1093 ac_prev=libdir ;;
1094 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1095 libdir=$ac_optarg ;;
1096
1097 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1098 | --libexe | --libex | --libe)
1099 ac_prev=libexecdir ;;
1100 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1101 | --libexe=* | --libex=* | --libe=*)
1102 libexecdir=$ac_optarg ;;
1103
1104 -localedir | --localedir | --localedi | --localed | --locale)
1105 ac_prev=localedir ;;
1106 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1107 localedir=$ac_optarg ;;
1108
1109 -localstatedir | --localstatedir | --localstatedi | --localstated \
1110 | --localstate | --localstat | --localsta | --localst | --locals)
1111 ac_prev=localstatedir ;;
1112 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1113 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1114 localstatedir=$ac_optarg ;;
1115
1116 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1117 ac_prev=mandir ;;
1118 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1119 mandir=$ac_optarg ;;
1120
1121 -nfp | --nfp | --nf)
1122 # Obsolete; use --without-fp.
1123 with_fp=no ;;
1124
1125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1126 | --no-cr | --no-c | -n)
1127 no_create=yes ;;
1128
1129 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1130 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1131 no_recursion=yes ;;
1132
1133 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1134 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1135 | --oldin | --oldi | --old | --ol | --o)
1136 ac_prev=oldincludedir ;;
1137 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1138 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1139 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1140 oldincludedir=$ac_optarg ;;
1141
1142 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1143 ac_prev=prefix ;;
1144 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1145 prefix=$ac_optarg ;;
1146
1147 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1148 | --program-pre | --program-pr | --program-p)
1149 ac_prev=program_prefix ;;
1150 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1151 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1152 program_prefix=$ac_optarg ;;
1153
1154 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1155 | --program-suf | --program-su | --program-s)
1156 ac_prev=program_suffix ;;
1157 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1158 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1159 program_suffix=$ac_optarg ;;
1160
1161 -program-transform-name | --program-transform-name \
1162 | --program-transform-nam | --program-transform-na \
1163 | --program-transform-n | --program-transform- \
1164 | --program-transform | --program-transfor \
1165 | --program-transfo | --program-transf \
1166 | --program-trans | --program-tran \
1167 | --progr-tra | --program-tr | --program-t)
1168 ac_prev=program_transform_name ;;
1169 -program-transform-name=* | --program-transform-name=* \
1170 | --program-transform-nam=* | --program-transform-na=* \
1171 | --program-transform-n=* | --program-transform-=* \
1172 | --program-transform=* | --program-transfor=* \
1173 | --program-transfo=* | --program-transf=* \
1174 | --program-trans=* | --program-tran=* \
1175 | --progr-tra=* | --program-tr=* | --program-t=*)
1176 program_transform_name=$ac_optarg ;;
1177
1178 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1179 ac_prev=pdfdir ;;
1180 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1181 pdfdir=$ac_optarg ;;
1182
1183 -psdir | --psdir | --psdi | --psd | --ps)
1184 ac_prev=psdir ;;
1185 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1186 psdir=$ac_optarg ;;
1187
1188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1189 | -silent | --silent | --silen | --sile | --sil)
1190 silent=yes ;;
1191
1192 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1193 ac_prev=sbindir ;;
1194 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1195 | --sbi=* | --sb=*)
1196 sbindir=$ac_optarg ;;
1197
1198 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1199 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1200 | --sharedst | --shareds | --shared | --share | --shar \
1201 | --sha | --sh)
1202 ac_prev=sharedstatedir ;;
1203 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1204 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1205 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1206 | --sha=* | --sh=*)
1207 sharedstatedir=$ac_optarg ;;
1208
1209 -site | --site | --sit)
1210 ac_prev=site ;;
1211 -site=* | --site=* | --sit=*)
1212 site=$ac_optarg ;;
1213
1214 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1215 ac_prev=srcdir ;;
1216 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1217 srcdir=$ac_optarg ;;
1218
1219 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1220 | --syscon | --sysco | --sysc | --sys | --sy)
1221 ac_prev=sysconfdir ;;
1222 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1223 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1224 sysconfdir=$ac_optarg ;;
1225
1226 -target | --target | --targe | --targ | --tar | --ta | --t)
1227 ac_prev=target_alias ;;
1228 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1229 target_alias=$ac_optarg ;;
1230
1231 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1232 verbose=yes ;;
1233
1234 -version | --version | --versio | --versi | --vers | -V)
1235 ac_init_version=: ;;
1236
1237 -with-* | --with-*)
1238 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241 as_fn_error $? "invalid package name: $ac_useropt"
1242 ac_useropt_orig=$ac_useropt
1243 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1245 *"
1246 "with_$ac_useropt"
1247 "*) ;;
1248 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1249 ac_unrecognized_sep=', ';;
1250 esac
1251 eval with_$ac_useropt=\$ac_optarg ;;
1252
1253 -without-* | --without-*)
1254 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 as_fn_error $? "invalid package name: $ac_useropt"
1258 ac_useropt_orig=$ac_useropt
1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1261 *"
1262 "with_$ac_useropt"
1263 "*) ;;
1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1265 ac_unrecognized_sep=', ';;
1266 esac
1267 eval with_$ac_useropt=no ;;
1268
1269 --x)
1270 # Obsolete; use --with-x.
1271 with_x=yes ;;
1272
1273 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1274 | --x-incl | --x-inc | --x-in | --x-i)
1275 ac_prev=x_includes ;;
1276 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1277 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1278 x_includes=$ac_optarg ;;
1279
1280 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1281 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1282 ac_prev=x_libraries ;;
1283 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1284 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1285 x_libraries=$ac_optarg ;;
1286
1287 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1288 Try \`$0 --help' for more information"
1289 ;;
1290
1291 *=*)
1292 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1293 # Reject names that are not valid shell variable names.
1294 case $ac_envvar in #(
1295 '' | [0-9]* | *[!_$as_cr_alnum]* )
1296 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1297 esac
1298 eval $ac_envvar=\$ac_optarg
1299 export $ac_envvar ;;
1300
1301 *)
1302 # FIXME: should be removed in autoconf 3.0.
1303 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1304 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1305 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1306 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1307 ;;
1308
1309 esac
1310 done
1311
1312 if test -n "$ac_prev"; then
1313 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1314 as_fn_error $? "missing argument to $ac_option"
1315 fi
1316
1317 if test -n "$ac_unrecognized_opts"; then
1318 case $enable_option_checking in
1319 no) ;;
1320 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1321 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1322 esac
1323 fi
1324
1325 # Check all directory arguments for consistency.
1326 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1327 datadir sysconfdir sharedstatedir localstatedir includedir \
1328 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1329 libdir localedir mandir
1330 do
1331 eval ac_val=\$$ac_var
1332 # Remove trailing slashes.
1333 case $ac_val in
1334 */ )
1335 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1336 eval $ac_var=\$ac_val;;
1337 esac
1338 # Be sure to have absolute directory names.
1339 case $ac_val in
1340 [\\/$]* | ?:[\\/]* ) continue;;
1341 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1342 esac
1343 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1344 done
1345
1346 # There might be people who depend on the old broken behavior: `$host'
1347 # used to hold the argument of --host etc.
1348 # FIXME: To remove some day.
1349 build=$build_alias
1350 host=$host_alias
1351 target=$target_alias
1352
1353 # FIXME: To remove some day.
1354 if test "x$host_alias" != x; then
1355 if test "x$build_alias" = x; then
1356 cross_compiling=maybe
1357 elif test "x$build_alias" != "x$host_alias"; then
1358 cross_compiling=yes
1359 fi
1360 fi
1361
1362 ac_tool_prefix=
1363 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364
1365 test "$silent" = yes && exec 6>/dev/null
1366
1367
1368 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1369 ac_ls_di=`ls -di .` &&
1370 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1371 as_fn_error $? "working directory cannot be determined"
1372 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373 as_fn_error $? "pwd does not report name of working directory"
1374
1375
1376 # Find the source files, if location was not specified.
1377 if test -z "$srcdir"; then
1378 ac_srcdir_defaulted=yes
1379 # Try the directory containing this script, then the parent directory.
1380 ac_confdir=`$as_dirname -- "$as_myself" ||
1381 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1382 X"$as_myself" : 'X\(//\)[^/]' \| \
1383 X"$as_myself" : 'X\(//\)$' \| \
1384 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1385 $as_echo X"$as_myself" |
1386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1387 s//\1/
1388 q
1389 }
1390 /^X\(\/\/\)[^/].*/{
1391 s//\1/
1392 q
1393 }
1394 /^X\(\/\/\)$/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\).*/{
1399 s//\1/
1400 q
1401 }
1402 s/.*/./; q'`
1403 srcdir=$ac_confdir
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 srcdir=..
1406 fi
1407 else
1408 ac_srcdir_defaulted=no
1409 fi
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1411 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1412 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1413 fi
1414 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1415 ac_abs_confdir=`(
1416 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1417 pwd)`
1418 # When building in place, set srcdir=.
1419 if test "$ac_abs_confdir" = "$ac_pwd"; then
1420 srcdir=.
1421 fi
1422 # Remove unnecessary trailing slashes from srcdir.
1423 # Double slashes in file names in object file debugging info
1424 # mess up M-x gdb in Emacs.
1425 case $srcdir in
1426 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1427 esac
1428 for ac_var in $ac_precious_vars; do
1429 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1430 eval ac_env_${ac_var}_value=\$${ac_var}
1431 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1432 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1433 done
1434
1435 #
1436 # Report the --help message.
1437 #
1438 if test "$ac_init_help" = "long"; then
1439 # Omit some internal or obsolete options to make the list less imposing.
1440 # This message is too long to be a string in the A/UX 3.1 sh.
1441 cat <<_ACEOF
1442 \`configure' configures ld 2.44 to adapt to many kinds of systems.
1443
1444 Usage: $0 [OPTION]... [VAR=VALUE]...
1445
1446 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1447 VAR=VALUE. See below for descriptions of some of the useful variables.
1448
1449 Defaults for the options are specified in brackets.
1450
1451 Configuration:
1452 -h, --help display this help and exit
1453 --help=short display options specific to this package
1454 --help=recursive display the short help of all the included packages
1455 -V, --version display version information and exit
1456 -q, --quiet, --silent do not print \`checking ...' messages
1457 --cache-file=FILE cache test results in FILE [disabled]
1458 -C, --config-cache alias for \`--cache-file=config.cache'
1459 -n, --no-create do not create output files
1460 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1461
1462 Installation directories:
1463 --prefix=PREFIX install architecture-independent files in PREFIX
1464 [$ac_default_prefix]
1465 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1466 [PREFIX]
1467
1468 By default, \`make install' will install all the files in
1469 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1470 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1471 for instance \`--prefix=\$HOME'.
1472
1473 For better control, use the options below.
1474
1475 Fine tuning of the installation directories:
1476 --bindir=DIR user executables [EPREFIX/bin]
1477 --sbindir=DIR system admin executables [EPREFIX/sbin]
1478 --libexecdir=DIR program executables [EPREFIX/libexec]
1479 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1480 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1481 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1482 --libdir=DIR object code libraries [EPREFIX/lib]
1483 --includedir=DIR C header files [PREFIX/include]
1484 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1487 --infodir=DIR info documentation [DATAROOTDIR/info]
1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1489 --mandir=DIR man documentation [DATAROOTDIR/man]
1490 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
1491 --htmldir=DIR html documentation [DOCDIR]
1492 --dvidir=DIR dvi documentation [DOCDIR]
1493 --pdfdir=DIR pdf documentation [DOCDIR]
1494 --psdir=DIR ps documentation [DOCDIR]
1495 _ACEOF
1496
1497 cat <<\_ACEOF
1498
1499 Program names:
1500 --program-prefix=PREFIX prepend PREFIX to installed program names
1501 --program-suffix=SUFFIX append SUFFIX to installed program names
1502 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1503
1504 System types:
1505 --build=BUILD configure for building on BUILD [guessed]
1506 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1507 --target=TARGET configure for building compilers for TARGET [HOST]
1508 _ACEOF
1509 fi
1510
1511 if test -n "$ac_init_help"; then
1512 case $ac_init_help in
1513 short | recursive ) echo "Configuration of ld 2.44:";;
1514 esac
1515 cat <<\_ACEOF
1516
1517 Optional Features:
1518 --disable-option-checking ignore unrecognized --enable/--with options
1519 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1520 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1521 --enable-silent-rules less verbose build output (undo: "make V=1")
1522 --disable-silent-rules verbose build output (undo: "make V=0")
1523 --enable-maintainer-mode
1524 enable make rules and dependencies not useful (and
1525 sometimes confusing) to the casual installer
1526 --enable-dependency-tracking
1527 do not reject slow dependency extractors
1528 --disable-dependency-tracking
1529 speeds up one-time build
1530 --enable-shared[=PKGS] build shared libraries [default=yes]
1531 --enable-static[=PKGS] build static libraries [default=yes]
1532 --enable-fast-install[=PKGS]
1533 optimize for fast installation [default=yes]
1534 --disable-libtool-lock avoid locking (might break parallel builds)
1535 --enable-plugins Enable support for plugins
1536 --disable-largefile omit support for large files
1537 --enable-checking enable run-time checks
1538 --enable-targets alternative target configurations
1539 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1540 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1541 --enable-got=<type> GOT handling scheme (target, single, negative,
1542 multigot)
1543 --enable-compressed-debug-sections={all,ld,none}
1544 compress debug sections by default]
1545 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1546 Default compression algorithm for
1547 --enable-compressed-debug-sections.
1548 --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default]
1549 --enable-relro enable -z relro in ELF linker by default
1550 --enable-textrel-check=[yes|no|warning|error]
1551 enable DT_TEXTREL check in ELF linker
1552 --enable-separate-code enable -z separate-code in ELF linker by default
1553 --enable-rosegment enable --rosegment in the ELF linker by default
1554 --enable-mark-plt enable -z mark-plt in ELF x86-64 linker by default
1555 --enable-memory-seal enable -z memory-seal in ELF linker by default
1556 --enable-warn-execstack enable warnings when creating an executable stack
1557 --enable-error-execstack
1558 turn executable stack warnings into errors
1559 --enable-warn-rwx-segments
1560 enable warnings when creating segments with RWX
1561 permissions
1562 --enable-error-rwx-segments
1563 turn executable segment warnings into errors
1564 --enable-default-execstack
1565 create an executable stack if an input file is
1566 missing a .note.GNU-stack section
1567 --enable-error-handling-script
1568 enable/disable support for the
1569 --error-handling-script option
1570 --enable-default-hash-style={sysv,gnu,both}
1571 use this default hash style
1572 --disable-initfini-array do not use .init_array/.fini_array sections
1573 --enable-libctf Handle .ctf type-info sections [default=yes]
1574 --enable-jansson enable jansson [default=no]
1575 --enable-werror treat compile warnings as errors
1576 --enable-build-warnings enable build-time compiler warnings
1577 --disable-nls do not use Native Language Support
1578 --disable-rpath do not hardcode runtime library paths
1579
1580 Optional Packages:
1581 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1582 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1583 --with-pic try to use only PIC/non-PIC objects [default=use
1584 both]
1585 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1586 --with-lib-path=dir1:dir2... set default LIB_PATH
1587 --with-sysroot=DIR Search for usr/lib et al within DIR.
1588 --with-gnu-ld assume the C compiler uses GNU ld default=no
1589 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1590 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1591 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1592 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1593 --without-libintl-prefix don't search for libintl in includedir and libdir
1594 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1595 --with-xxhash use inlined libxxhash for hashing (faster)
1596 (auto/yes/no)
1597 --with-system-zlib use installed libz
1598 --with-zstd support zstd compressed debug sections
1599 (default=auto)
1600
1601 Some influential environment variables:
1602 CC C compiler command
1603 CFLAGS C compiler flags
1604 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1605 nonstandard directory <lib dir>
1606 LIBS libraries to pass to the linker, e.g. -l<library>
1607 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1608 you have headers in a nonstandard directory <include dir>
1609 CXX C++ compiler command
1610 CXXFLAGS C++ compiler flags
1611 CPP C preprocessor
1612 PKG_CONFIG path to pkg-config utility
1613 PKG_CONFIG_PATH
1614 directories to add to pkg-config's search path
1615 PKG_CONFIG_LIBDIR
1616 path overriding pkg-config's built-in search path
1617 CXXCPP C++ preprocessor
1618 JANSSON_CFLAGS
1619 C compiler flags for JANSSON, overriding pkg-config
1620 JANSSON_LIBS
1621 linker flags for JANSSON, overriding pkg-config
1622 YACC The `Yet Another Compiler Compiler' implementation to use.
1623 Defaults to the first program found out of: `bison -y', `byacc',
1624 `yacc'.
1625 YFLAGS The list of arguments that will be passed by default to $YACC.
1626 This script will default YFLAGS to the empty string to avoid a
1627 default value of `-d' given by some make applications.
1628 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1629 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1630
1631 Use these variables to override the choices made by `configure' or to help
1632 it to find libraries and programs with nonstandard names/locations.
1633
1634 Report bugs to the package provider.
1635 _ACEOF
1636 ac_status=$?
1637 fi
1638
1639 if test "$ac_init_help" = "recursive"; then
1640 # If there are subdirs, report their specific --help.
1641 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1642 test -d "$ac_dir" ||
1643 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1644 continue
1645 ac_builddir=.
1646
1647 case "$ac_dir" in
1648 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649 *)
1650 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1651 # A ".." for each directory in $ac_dir_suffix.
1652 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1653 case $ac_top_builddir_sub in
1654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1656 esac ;;
1657 esac
1658 ac_abs_top_builddir=$ac_pwd
1659 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1660 # for backward compatibility:
1661 ac_top_builddir=$ac_top_build_prefix
1662
1663 case $srcdir in
1664 .) # We are building in place.
1665 ac_srcdir=.
1666 ac_top_srcdir=$ac_top_builddir_sub
1667 ac_abs_top_srcdir=$ac_pwd ;;
1668 [\\/]* | ?:[\\/]* ) # Absolute name.
1669 ac_srcdir=$srcdir$ac_dir_suffix;
1670 ac_top_srcdir=$srcdir
1671 ac_abs_top_srcdir=$srcdir ;;
1672 *) # Relative name.
1673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1674 ac_top_srcdir=$ac_top_build_prefix$srcdir
1675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1676 esac
1677 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1678
1679 cd "$ac_dir" || { ac_status=$?; continue; }
1680 # Check for guested configure.
1681 if test -f "$ac_srcdir/configure.gnu"; then
1682 echo &&
1683 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684 elif test -f "$ac_srcdir/configure"; then
1685 echo &&
1686 $SHELL "$ac_srcdir/configure" --help=recursive
1687 else
1688 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1689 fi || ac_status=$?
1690 cd "$ac_pwd" || { ac_status=$?; break; }
1691 done
1692 fi
1693
1694 test -n "$ac_init_help" && exit $ac_status
1695 if $ac_init_version; then
1696 cat <<\_ACEOF
1697 ld configure 2.44
1698 generated by GNU Autoconf 2.69
1699
1700 Copyright (C) 2012 Free Software Foundation, Inc.
1701 This configure script is free software; the Free Software Foundation
1702 gives unlimited permission to copy, distribute and modify it.
1703 _ACEOF
1704 exit
1705 fi
1706
1707 ## ------------------------ ##
1708 ## Autoconf initialization. ##
1709 ## ------------------------ ##
1710
1711 # ac_fn_c_try_compile LINENO
1712 # --------------------------
1713 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_compile ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext
1718 if { { ac_try="$ac_compile"
1719 case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_compile") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1731 fi
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest.$ac_objext; then :
1737 ac_retval=0
1738 else
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1741
1742 ac_retval=1
1743 fi
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1746
1747 } # ac_fn_c_try_compile
1748
1749 # ac_fn_cxx_try_compile LINENO
1750 # ----------------------------
1751 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1752 ac_fn_cxx_try_compile ()
1753 {
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 rm -f conftest.$ac_objext
1756 if { { ac_try="$ac_compile"
1757 case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_compile") 2>conftest.err
1764 ac_status=$?
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1769 fi
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && {
1772 test -z "$ac_cxx_werror_flag" ||
1773 test ! -s conftest.err
1774 } && test -s conftest.$ac_objext; then :
1775 ac_retval=0
1776 else
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1779
1780 ac_retval=1
1781 fi
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 as_fn_set_status $ac_retval
1784
1785 } # ac_fn_cxx_try_compile
1786
1787 # ac_fn_c_try_cpp LINENO
1788 # ----------------------
1789 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_cpp ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if { { ac_try="$ac_cpp conftest.$ac_ext"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1806 fi
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } > conftest.i && {
1809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 }; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1816
1817 ac_retval=1
1818 fi
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 as_fn_set_status $ac_retval
1821
1822 } # ac_fn_c_try_cpp
1823
1824 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1825 # -------------------------------------------------------
1826 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1827 # the include files in INCLUDES and setting the cache variable VAR
1828 # accordingly.
1829 ac_fn_c_check_header_mongrel ()
1830 {
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 if eval \${$3+:} false; then :
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \${$3+:} false; then :
1836 $as_echo_n "(cached) " >&6
1837 fi
1838 eval ac_res=\$$3
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 else
1842 # Is the header compilable?
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1844 $as_echo_n "checking $2 usability... " >&6; }
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1847 $4
1848 #include <$2>
1849 _ACEOF
1850 if ac_fn_c_try_compile "$LINENO"; then :
1851 ac_header_compiler=yes
1852 else
1853 ac_header_compiler=no
1854 fi
1855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1857 $as_echo "$ac_header_compiler" >&6; }
1858
1859 # Is the header present?
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1861 $as_echo_n "checking $2 presence... " >&6; }
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1864 #include <$2>
1865 _ACEOF
1866 if ac_fn_c_try_cpp "$LINENO"; then :
1867 ac_header_preproc=yes
1868 else
1869 ac_header_preproc=no
1870 fi
1871 rm -f conftest.err conftest.i conftest.$ac_ext
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1873 $as_echo "$ac_header_preproc" >&6; }
1874
1875 # So? What about this header?
1876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1877 yes:no: )
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1879 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1881 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1882 ;;
1883 no:yes:* )
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1885 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1887 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1889 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1891 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1893 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1894 ;;
1895 esac
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if eval \${$3+:} false; then :
1899 $as_echo_n "(cached) " >&6
1900 else
1901 eval "$3=\$ac_header_compiler"
1902 fi
1903 eval ac_res=\$$3
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 fi
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908
1909 } # ac_fn_c_check_header_mongrel
1910
1911 # ac_fn_c_try_run LINENO
1912 # ----------------------
1913 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1914 # that executables *can* be run.
1915 ac_fn_c_try_run ()
1916 {
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 if { { ac_try="$ac_link"
1919 case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922 esac
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_link") 2>&5
1926 ac_status=$?
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1929 { { case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_try") 2>&5
1936 ac_status=$?
1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; }; }; then :
1939 ac_retval=0
1940 else
1941 $as_echo "$as_me: program exited with status $ac_status" >&5
1942 $as_echo "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.$ac_ext >&5
1944
1945 ac_retval=$ac_status
1946 fi
1947 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949 as_fn_set_status $ac_retval
1950
1951 } # ac_fn_c_try_run
1952
1953 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1954 # -------------------------------------------------------
1955 # Tests whether HEADER exists and can be compiled using the include files in
1956 # INCLUDES, setting the cache variable VAR accordingly.
1957 ac_fn_c_check_header_compile ()
1958 {
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if eval \${$3+:} false; then :
1963 $as_echo_n "(cached) " >&6
1964 else
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1967 $4
1968 #include <$2>
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971 eval "$3=yes"
1972 else
1973 eval "$3=no"
1974 fi
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 fi
1977 eval ac_res=\$$3
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981
1982 } # ac_fn_c_check_header_compile
1983
1984 # ac_fn_c_try_link LINENO
1985 # -----------------------
1986 # Try to link conftest.$ac_ext, and return whether this succeeded.
1987 ac_fn_c_try_link ()
1988 {
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 rm -f conftest.$ac_objext conftest$ac_exeext
1991 if { { ac_try="$ac_link"
1992 case "(($ac_try" in
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_link") 2>conftest.err
1999 ac_status=$?
2000 if test -s conftest.err; then
2001 grep -v '^ *+' conftest.err >conftest.er1
2002 cat conftest.er1 >&5
2003 mv -f conftest.er1 conftest.err
2004 fi
2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; } && {
2007 test -z "$ac_c_werror_flag" ||
2008 test ! -s conftest.err
2009 } && test -s conftest$ac_exeext && {
2010 test "$cross_compiling" = yes ||
2011 test -x conftest$ac_exeext
2012 }; then :
2013 ac_retval=0
2014 else
2015 $as_echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2017
2018 ac_retval=1
2019 fi
2020 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2021 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2022 # interfere with the next link command; also delete a directory that is
2023 # left behind by Apple's compiler. We do this before executing the actions.
2024 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026 as_fn_set_status $ac_retval
2027
2028 } # ac_fn_c_try_link
2029
2030 # ac_fn_c_check_func LINENO FUNC VAR
2031 # ----------------------------------
2032 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2033 ac_fn_c_check_func ()
2034 {
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if eval \${$3+:} false; then :
2039 $as_echo_n "(cached) " >&6
2040 else
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2043 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2045 #define $2 innocuous_$2
2046
2047 /* System header to define __stub macros and hopefully few prototypes,
2048 which can conflict with char $2 (); below.
2049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2050 <limits.h> exists even on freestanding compilers. */
2051
2052 #ifdef __STDC__
2053 # include <limits.h>
2054 #else
2055 # include <assert.h>
2056 #endif
2057
2058 #undef $2
2059
2060 /* Override any GCC internal prototype to avoid an error.
2061 Use char because int might match the return type of a GCC
2062 builtin and then its argument prototype would still apply. */
2063 #ifdef __cplusplus
2064 extern "C"
2065 #endif
2066 char $2 ();
2067 /* The GNU C library defines this for functions which it implements
2068 to always fail with ENOSYS. Some functions are actually named
2069 something starting with __ and the normal name is an alias. */
2070 #if defined __stub_$2 || defined __stub___$2
2071 choke me
2072 #endif
2073
2074 int
2075 main ()
2076 {
2077 return $2 ();
2078 ;
2079 return 0;
2080 }
2081 _ACEOF
2082 if ac_fn_c_try_link "$LINENO"; then :
2083 eval "$3=yes"
2084 else
2085 eval "$3=no"
2086 fi
2087 rm -f core conftest.err conftest.$ac_objext \
2088 conftest$ac_exeext conftest.$ac_ext
2089 fi
2090 eval ac_res=\$$3
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094
2095 } # ac_fn_c_check_func
2096
2097 # ac_fn_cxx_try_cpp LINENO
2098 # ------------------------
2099 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2100 ac_fn_cxx_try_cpp ()
2101 {
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 if { { ac_try="$ac_cpp conftest.$ac_ext"
2104 case "(($ac_try" in
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2107 esac
2108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2111 ac_status=$?
2112 if test -s conftest.err; then
2113 grep -v '^ *+' conftest.err >conftest.er1
2114 cat conftest.er1 >&5
2115 mv -f conftest.er1 conftest.err
2116 fi
2117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118 test $ac_status = 0; } > conftest.i && {
2119 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2120 test ! -s conftest.err
2121 }; then :
2122 ac_retval=0
2123 else
2124 $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2126
2127 ac_retval=1
2128 fi
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130 as_fn_set_status $ac_retval
2131
2132 } # ac_fn_cxx_try_cpp
2133
2134 # ac_fn_cxx_try_link LINENO
2135 # -------------------------
2136 # Try to link conftest.$ac_ext, and return whether this succeeded.
2137 ac_fn_cxx_try_link ()
2138 {
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 rm -f conftest.$ac_objext conftest$ac_exeext
2141 if { { ac_try="$ac_link"
2142 case "(($ac_try" in
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2145 esac
2146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147 $as_echo "$ac_try_echo"; } >&5
2148 (eval "$ac_link") 2>conftest.err
2149 ac_status=$?
2150 if test -s conftest.err; then
2151 grep -v '^ *+' conftest.err >conftest.er1
2152 cat conftest.er1 >&5
2153 mv -f conftest.er1 conftest.err
2154 fi
2155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156 test $ac_status = 0; } && {
2157 test -z "$ac_cxx_werror_flag" ||
2158 test ! -s conftest.err
2159 } && test -s conftest$ac_exeext && {
2160 test "$cross_compiling" = yes ||
2161 test -x conftest$ac_exeext
2162 }; then :
2163 ac_retval=0
2164 else
2165 $as_echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2167
2168 ac_retval=1
2169 fi
2170 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2171 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2172 # interfere with the next link command; also delete a directory that is
2173 # left behind by Apple's compiler. We do this before executing the actions.
2174 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2175 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176 as_fn_set_status $ac_retval
2177
2178 } # ac_fn_cxx_try_link
2179
2180 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2181 # --------------------------------------------
2182 # Tries to find the compile-time value of EXPR in a program that includes
2183 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2184 # computed
2185 ac_fn_c_compute_int ()
2186 {
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 if test "$cross_compiling" = yes; then
2189 # Depending upon the size, compute the lo and hi bounds.
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2192 $4
2193 int
2194 main ()
2195 {
2196 static int test_array [1 - 2 * !(($2) >= 0)];
2197 test_array [0] = 0;
2198 return test_array [0];
2199
2200 ;
2201 return 0;
2202 }
2203 _ACEOF
2204 if ac_fn_c_try_compile "$LINENO"; then :
2205 ac_lo=0 ac_mid=0
2206 while :; do
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2209 $4
2210 int
2211 main ()
2212 {
2213 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2214 test_array [0] = 0;
2215 return test_array [0];
2216
2217 ;
2218 return 0;
2219 }
2220 _ACEOF
2221 if ac_fn_c_try_compile "$LINENO"; then :
2222 ac_hi=$ac_mid; break
2223 else
2224 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2225 if test $ac_lo -le $ac_mid; then
2226 ac_lo= ac_hi=
2227 break
2228 fi
2229 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2230 fi
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 done
2233 else
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2236 $4
2237 int
2238 main ()
2239 {
2240 static int test_array [1 - 2 * !(($2) < 0)];
2241 test_array [0] = 0;
2242 return test_array [0];
2243
2244 ;
2245 return 0;
2246 }
2247 _ACEOF
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249 ac_hi=-1 ac_mid=-1
2250 while :; do
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2253 $4
2254 int
2255 main ()
2256 {
2257 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2258 test_array [0] = 0;
2259 return test_array [0];
2260
2261 ;
2262 return 0;
2263 }
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266 ac_lo=$ac_mid; break
2267 else
2268 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2269 if test $ac_mid -le $ac_hi; then
2270 ac_lo= ac_hi=
2271 break
2272 fi
2273 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2274 fi
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 done
2277 else
2278 ac_lo= ac_hi=
2279 fi
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 fi
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 # Binary search between lo and hi bounds.
2284 while test "x$ac_lo" != "x$ac_hi"; do
2285 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2288 $4
2289 int
2290 main ()
2291 {
2292 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2293 test_array [0] = 0;
2294 return test_array [0];
2295
2296 ;
2297 return 0;
2298 }
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"; then :
2301 ac_hi=$ac_mid
2302 else
2303 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2304 fi
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 done
2307 case $ac_lo in #((
2308 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2309 '') ac_retval=1 ;;
2310 esac
2311 else
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2314 $4
2315 static long int longval () { return $2; }
2316 static unsigned long int ulongval () { return $2; }
2317 #include <stdio.h>
2318 #include <stdlib.h>
2319 int
2320 main ()
2321 {
2322
2323 FILE *f = fopen ("conftest.val", "w");
2324 if (! f)
2325 return 1;
2326 if (($2) < 0)
2327 {
2328 long int i = longval ();
2329 if (i != ($2))
2330 return 1;
2331 fprintf (f, "%ld", i);
2332 }
2333 else
2334 {
2335 unsigned long int i = ulongval ();
2336 if (i != ($2))
2337 return 1;
2338 fprintf (f, "%lu", i);
2339 }
2340 /* Do not output a trailing newline, as this causes \r\n confusion
2341 on some platforms. */
2342 return ferror (f) || fclose (f) != 0;
2343
2344 ;
2345 return 0;
2346 }
2347 _ACEOF
2348 if ac_fn_c_try_run "$LINENO"; then :
2349 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2350 else
2351 ac_retval=1
2352 fi
2353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2354 conftest.$ac_objext conftest.beam conftest.$ac_ext
2355 rm -f conftest.val
2356
2357 fi
2358 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2359 as_fn_set_status $ac_retval
2360
2361 } # ac_fn_c_compute_int
2362
2363 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2364 # ---------------------------------------------
2365 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2366 # accordingly.
2367 ac_fn_c_check_decl ()
2368 {
2369 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2370 as_decl_name=`echo $2|sed 's/ *(.*//'`
2371 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2373 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2374 if eval \${$3+:} false; then :
2375 $as_echo_n "(cached) " >&6
2376 else
2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h. */
2379 $4
2380 int
2381 main ()
2382 {
2383 #ifndef $as_decl_name
2384 #ifdef __cplusplus
2385 (void) $as_decl_use;
2386 #else
2387 (void) $as_decl_name;
2388 #endif
2389 #endif
2390
2391 ;
2392 return 0;
2393 }
2394 _ACEOF
2395 if ac_fn_c_try_compile "$LINENO"; then :
2396 eval "$3=yes"
2397 else
2398 eval "$3=no"
2399 fi
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 fi
2402 eval ac_res=\$$3
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404 $as_echo "$ac_res" >&6; }
2405 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2406
2407 } # ac_fn_c_check_decl
2408 cat >config.log <<_ACEOF
2409 This file contains any messages produced by compilers while
2410 running configure, to aid debugging if configure makes a mistake.
2411
2412 It was created by ld $as_me 2.44, which was
2413 generated by GNU Autoconf 2.69. Invocation command line was
2414
2415 $ $0 $@
2416
2417 _ACEOF
2418 exec 5>>config.log
2419 {
2420 cat <<_ASUNAME
2421 ## --------- ##
2422 ## Platform. ##
2423 ## --------- ##
2424
2425 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2426 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2427 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2428 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2429 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2430
2431 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2432 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2433
2434 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2435 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2436 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2437 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2438 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2439 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2440 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2441
2442 _ASUNAME
2443
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2446 do
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 $as_echo "PATH: $as_dir"
2450 done
2451 IFS=$as_save_IFS
2452
2453 } >&5
2454
2455 cat >&5 <<_ACEOF
2456
2457
2458 ## ----------- ##
2459 ## Core tests. ##
2460 ## ----------- ##
2461
2462 _ACEOF
2463
2464
2465 # Keep a trace of the command line.
2466 # Strip out --no-create and --no-recursion so they do not pile up.
2467 # Strip out --silent because we don't want to record it for future runs.
2468 # Also quote any args containing shell meta-characters.
2469 # Make two passes to allow for proper duplicate-argument suppression.
2470 ac_configure_args=
2471 ac_configure_args0=
2472 ac_configure_args1=
2473 ac_must_keep_next=false
2474 for ac_pass in 1 2
2475 do
2476 for ac_arg
2477 do
2478 case $ac_arg in
2479 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2480 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2481 | -silent | --silent | --silen | --sile | --sil)
2482 continue ;;
2483 *\'*)
2484 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2485 esac
2486 case $ac_pass in
2487 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2488 2)
2489 as_fn_append ac_configure_args1 " '$ac_arg'"
2490 if test $ac_must_keep_next = true; then
2491 ac_must_keep_next=false # Got value, back to normal.
2492 else
2493 case $ac_arg in
2494 *=* | --config-cache | -C | -disable-* | --disable-* \
2495 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2496 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2497 | -with-* | --with-* | -without-* | --without-* | --x)
2498 case "$ac_configure_args0 " in
2499 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2500 esac
2501 ;;
2502 -* ) ac_must_keep_next=true ;;
2503 esac
2504 fi
2505 as_fn_append ac_configure_args " '$ac_arg'"
2506 ;;
2507 esac
2508 done
2509 done
2510 { ac_configure_args0=; unset ac_configure_args0;}
2511 { ac_configure_args1=; unset ac_configure_args1;}
2512
2513 # When interrupted or exit'd, cleanup temporary files, and complete
2514 # config.log. We remove comments because anyway the quotes in there
2515 # would cause problems or look ugly.
2516 # WARNING: Use '\'' to represent an apostrophe within the trap.
2517 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2518 trap 'exit_status=$?
2519 # Save into config.log some information that might help in debugging.
2520 {
2521 echo
2522
2523 $as_echo "## ---------------- ##
2524 ## Cache variables. ##
2525 ## ---------------- ##"
2526 echo
2527 # The following way of writing the cache mishandles newlines in values,
2528 (
2529 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2530 eval ac_val=\$$ac_var
2531 case $ac_val in #(
2532 *${as_nl}*)
2533 case $ac_var in #(
2534 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2535 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2536 esac
2537 case $ac_var in #(
2538 _ | IFS | as_nl) ;; #(
2539 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2540 *) { eval $ac_var=; unset $ac_var;} ;;
2541 esac ;;
2542 esac
2543 done
2544 (set) 2>&1 |
2545 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2546 *${as_nl}ac_space=\ *)
2547 sed -n \
2548 "s/'\''/'\''\\\\'\'''\''/g;
2549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2550 ;; #(
2551 *)
2552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2553 ;;
2554 esac |
2555 sort
2556 )
2557 echo
2558
2559 $as_echo "## ----------------- ##
2560 ## Output variables. ##
2561 ## ----------------- ##"
2562 echo
2563 for ac_var in $ac_subst_vars
2564 do
2565 eval ac_val=\$$ac_var
2566 case $ac_val in
2567 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2568 esac
2569 $as_echo "$ac_var='\''$ac_val'\''"
2570 done | sort
2571 echo
2572
2573 if test -n "$ac_subst_files"; then
2574 $as_echo "## ------------------- ##
2575 ## File substitutions. ##
2576 ## ------------------- ##"
2577 echo
2578 for ac_var in $ac_subst_files
2579 do
2580 eval ac_val=\$$ac_var
2581 case $ac_val in
2582 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2583 esac
2584 $as_echo "$ac_var='\''$ac_val'\''"
2585 done | sort
2586 echo
2587 fi
2588
2589 if test -s confdefs.h; then
2590 $as_echo "## ----------- ##
2591 ## confdefs.h. ##
2592 ## ----------- ##"
2593 echo
2594 cat confdefs.h
2595 echo
2596 fi
2597 test "$ac_signal" != 0 &&
2598 $as_echo "$as_me: caught signal $ac_signal"
2599 $as_echo "$as_me: exit $exit_status"
2600 } >&5
2601 rm -f core *.core core.conftest.* &&
2602 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2603 exit $exit_status
2604 ' 0
2605 for ac_signal in 1 2 13 15; do
2606 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2607 done
2608 ac_signal=0
2609
2610 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2611 rm -f -r conftest* confdefs.h
2612
2613 $as_echo "/* confdefs.h */" > confdefs.h
2614
2615 # Predefined preprocessor variables.
2616
2617 cat >>confdefs.h <<_ACEOF
2618 #define PACKAGE_NAME "$PACKAGE_NAME"
2619 _ACEOF
2620
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2623 _ACEOF
2624
2625 cat >>confdefs.h <<_ACEOF
2626 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2627 _ACEOF
2628
2629 cat >>confdefs.h <<_ACEOF
2630 #define PACKAGE_STRING "$PACKAGE_STRING"
2631 _ACEOF
2632
2633 cat >>confdefs.h <<_ACEOF
2634 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2635 _ACEOF
2636
2637 cat >>confdefs.h <<_ACEOF
2638 #define PACKAGE_URL "$PACKAGE_URL"
2639 _ACEOF
2640
2641
2642 # Let the site file select an alternate cache file if it wants to.
2643 # Prefer an explicitly selected file to automatically selected ones.
2644 ac_site_file1=NONE
2645 ac_site_file2=NONE
2646 if test -n "$CONFIG_SITE"; then
2647 # We do not want a PATH search for config.site.
2648 case $CONFIG_SITE in #((
2649 -*) ac_site_file1=./$CONFIG_SITE;;
2650 */*) ac_site_file1=$CONFIG_SITE;;
2651 *) ac_site_file1=./$CONFIG_SITE;;
2652 esac
2653 elif test "x$prefix" != xNONE; then
2654 ac_site_file1=$prefix/share/config.site
2655 ac_site_file2=$prefix/etc/config.site
2656 else
2657 ac_site_file1=$ac_default_prefix/share/config.site
2658 ac_site_file2=$ac_default_prefix/etc/config.site
2659 fi
2660 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2661 do
2662 test "x$ac_site_file" = xNONE && continue
2663 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2665 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2666 sed 's/^/| /' "$ac_site_file" >&5
2667 . "$ac_site_file" \
2668 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2670 as_fn_error $? "failed to load site script $ac_site_file
2671 See \`config.log' for more details" "$LINENO" 5; }
2672 fi
2673 done
2674
2675 if test -r "$cache_file"; then
2676 # Some versions of bash will fail to source /dev/null (special files
2677 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2678 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2680 $as_echo "$as_me: loading cache $cache_file" >&6;}
2681 case $cache_file in
2682 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2683 *) . "./$cache_file";;
2684 esac
2685 fi
2686 else
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2688 $as_echo "$as_me: creating cache $cache_file" >&6;}
2689 >$cache_file
2690 fi
2691
2692 gt_needs="$gt_needs "
2693 as_fn_append ac_header_list " stdlib.h"
2694 as_fn_append ac_header_list " unistd.h"
2695 as_fn_append ac_header_list " sys/param.h"
2696 # Check that the precious variables saved in the cache have kept the same
2697 # value.
2698 ac_cache_corrupted=false
2699 for ac_var in $ac_precious_vars; do
2700 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2701 eval ac_new_set=\$ac_env_${ac_var}_set
2702 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2703 eval ac_new_val=\$ac_env_${ac_var}_value
2704 case $ac_old_set,$ac_new_set in
2705 set,)
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2707 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2708 ac_cache_corrupted=: ;;
2709 ,set)
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2711 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2712 ac_cache_corrupted=: ;;
2713 ,);;
2714 *)
2715 if test "x$ac_old_val" != "x$ac_new_val"; then
2716 # differences in whitespace do not lead to failure.
2717 ac_old_val_w=`echo x $ac_old_val`
2718 ac_new_val_w=`echo x $ac_new_val`
2719 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2721 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2722 ac_cache_corrupted=:
2723 else
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2725 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2726 eval $ac_var=\$ac_old_val
2727 fi
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2729 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2731 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2732 fi;;
2733 esac
2734 # Pass precious variables to config.status.
2735 if test "$ac_new_set" = set; then
2736 case $ac_new_val in
2737 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2738 *) ac_arg=$ac_var=$ac_new_val ;;
2739 esac
2740 case " $ac_configure_args " in
2741 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2742 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2743 esac
2744 fi
2745 done
2746 if $ac_cache_corrupted; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2750 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2751 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2752 fi
2753 ## -------------------- ##
2754 ## Main body of script. ##
2755 ## -------------------- ##
2756
2757 ac_ext=c
2758 ac_cpp='$CPP $CPPFLAGS'
2759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2762
2763
2764
2765
2766
2767
2768
2769 ac_aux_dir=
2770 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2771 if test -f "$ac_dir/install-sh"; then
2772 ac_aux_dir=$ac_dir
2773 ac_install_sh="$ac_aux_dir/install-sh -c"
2774 break
2775 elif test -f "$ac_dir/install.sh"; then
2776 ac_aux_dir=$ac_dir
2777 ac_install_sh="$ac_aux_dir/install.sh -c"
2778 break
2779 elif test -f "$ac_dir/shtool"; then
2780 ac_aux_dir=$ac_dir
2781 ac_install_sh="$ac_aux_dir/shtool install -c"
2782 break
2783 fi
2784 done
2785 if test -z "$ac_aux_dir"; then
2786 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2787 fi
2788
2789 # These three variables are undocumented and unsupported,
2790 # and are intended to be withdrawn in a future Autoconf release.
2791 # They can cause serious problems if a builder's source tree is in a directory
2792 # whose full name contains unusual characters.
2793 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2794 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2795 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2796
2797
2798 # Make sure we can run config.sub.
2799 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2800 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2801
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2803 $as_echo_n "checking build system type... " >&6; }
2804 if ${ac_cv_build+:} false; then :
2805 $as_echo_n "(cached) " >&6
2806 else
2807 ac_build_alias=$build_alias
2808 test "x$ac_build_alias" = x &&
2809 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2810 test "x$ac_build_alias" = x &&
2811 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2812 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2813 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2814
2815 fi
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2817 $as_echo "$ac_cv_build" >&6; }
2818 case $ac_cv_build in
2819 *-*-*) ;;
2820 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2821 esac
2822 build=$ac_cv_build
2823 ac_save_IFS=$IFS; IFS='-'
2824 set x $ac_cv_build
2825 shift
2826 build_cpu=$1
2827 build_vendor=$2
2828 shift; shift
2829 # Remember, the first character of IFS is used to create $*,
2830 # except with old shells:
2831 build_os=$*
2832 IFS=$ac_save_IFS
2833 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2834
2835
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2837 $as_echo_n "checking host system type... " >&6; }
2838 if ${ac_cv_host+:} false; then :
2839 $as_echo_n "(cached) " >&6
2840 else
2841 if test "x$host_alias" = x; then
2842 ac_cv_host=$ac_cv_build
2843 else
2844 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2845 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2846 fi
2847
2848 fi
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2850 $as_echo "$ac_cv_host" >&6; }
2851 case $ac_cv_host in
2852 *-*-*) ;;
2853 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2854 esac
2855 host=$ac_cv_host
2856 ac_save_IFS=$IFS; IFS='-'
2857 set x $ac_cv_host
2858 shift
2859 host_cpu=$1
2860 host_vendor=$2
2861 shift; shift
2862 # Remember, the first character of IFS is used to create $*,
2863 # except with old shells:
2864 host_os=$*
2865 IFS=$ac_save_IFS
2866 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2867
2868
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2870 $as_echo_n "checking target system type... " >&6; }
2871 if ${ac_cv_target+:} false; then :
2872 $as_echo_n "(cached) " >&6
2873 else
2874 if test "x$target_alias" = x; then
2875 ac_cv_target=$ac_cv_host
2876 else
2877 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2878 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2879 fi
2880
2881 fi
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2883 $as_echo "$ac_cv_target" >&6; }
2884 case $ac_cv_target in
2885 *-*-*) ;;
2886 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2887 esac
2888 target=$ac_cv_target
2889 ac_save_IFS=$IFS; IFS='-'
2890 set x $ac_cv_target
2891 shift
2892 target_cpu=$1
2893 target_vendor=$2
2894 shift; shift
2895 # Remember, the first character of IFS is used to create $*,
2896 # except with old shells:
2897 target_os=$*
2898 IFS=$ac_save_IFS
2899 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2900
2901
2902 # The aliases save the names the user supplied, while $host etc.
2903 # will get canonicalized.
2904 test -n "$target_alias" &&
2905 test "$program_prefix$program_suffix$program_transform_name" = \
2906 NONENONEs,x,x, &&
2907 program_prefix=${target_alias}-
2908
2909
2910 am__api_version='1.15'
2911
2912 # Find a good install program. We prefer a C program (faster),
2913 # so one script is as good as another. But avoid the broken or
2914 # incompatible versions:
2915 # SysV /etc/install, /usr/sbin/install
2916 # SunOS /usr/etc/install
2917 # IRIX /sbin/install
2918 # AIX /bin/install
2919 # AmigaOS /C/install, which installs bootblocks on floppy discs
2920 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2921 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2922 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2923 # OS/2's system install, which has a completely different semantic
2924 # ./install, which can be erroneously created by make from ./install.sh.
2925 # Reject install programs that cannot install multiple files.
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2927 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2928 if test -z "$INSTALL"; then
2929 if ${ac_cv_path_install+:} false; then :
2930 $as_echo_n "(cached) " >&6
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 # Account for people who put trailing slashes in PATH elements.
2938 case $as_dir/ in #((
2939 ./ | .// | /[cC]/* | \
2940 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2941 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2942 /usr/ucb/* ) ;;
2943 *)
2944 # OSF1 and SCO ODT 3.0 have their own names for install.
2945 # Don't use installbsd from OSF since it installs stuff as root
2946 # by default.
2947 for ac_prog in ginstall scoinst install; do
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2950 if test $ac_prog = install &&
2951 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2952 # AIX install. It has an incompatible calling convention.
2953 :
2954 elif test $ac_prog = install &&
2955 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2956 # program-specific install script used by HP pwplus--don't use.
2957 :
2958 else
2959 rm -rf conftest.one conftest.two conftest.dir
2960 echo one > conftest.one
2961 echo two > conftest.two
2962 mkdir conftest.dir
2963 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2964 test -s conftest.one && test -s conftest.two &&
2965 test -s conftest.dir/conftest.one &&
2966 test -s conftest.dir/conftest.two
2967 then
2968 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2969 break 3
2970 fi
2971 fi
2972 fi
2973 done
2974 done
2975 ;;
2976 esac
2977
2978 done
2979 IFS=$as_save_IFS
2980
2981 rm -rf conftest.one conftest.two conftest.dir
2982
2983 fi
2984 if test "${ac_cv_path_install+set}" = set; then
2985 INSTALL=$ac_cv_path_install
2986 else
2987 # As a last resort, use the slow shell script. Don't cache a
2988 # value for INSTALL within a source directory, because that will
2989 # break other packages using the cache if that directory is
2990 # removed, or if the value is a relative name.
2991 INSTALL=$ac_install_sh
2992 fi
2993 fi
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2995 $as_echo "$INSTALL" >&6; }
2996
2997 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2998 # It thinks the first close brace ends the variable substitution.
2999 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3000
3001 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3002
3003 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3004
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3006 $as_echo_n "checking whether build environment is sane... " >&6; }
3007 # Reject unsafe characters in $srcdir or the absolute working directory
3008 # name. Accept space and tab only in the latter.
3009 am_lf='
3010 '
3011 case `pwd` in
3012 *[\\\"\#\$\&\'\`$am_lf]*)
3013 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3014 esac
3015 case $srcdir in
3016 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3017 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3018 esac
3019
3020 # Do 'set' in a subshell so we don't clobber the current shell's
3021 # arguments. Must try -L first in case configure is actually a
3022 # symlink; some systems play weird games with the mod time of symlinks
3023 # (eg FreeBSD returns the mod time of the symlink's containing
3024 # directory).
3025 if (
3026 am_has_slept=no
3027 for am_try in 1 2; do
3028 echo "timestamp, slept: $am_has_slept" > conftest.file
3029 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3030 if test "$*" = "X"; then
3031 # -L didn't work.
3032 set X `ls -t "$srcdir/configure" conftest.file`
3033 fi
3034 if test "$*" != "X $srcdir/configure conftest.file" \
3035 && test "$*" != "X conftest.file $srcdir/configure"; then
3036
3037 # If neither matched, then we have a broken ls. This can happen
3038 # if, for instance, CONFIG_SHELL is bash and it inherits a
3039 # broken ls alias from the environment. This has actually
3040 # happened. Such a system could not be considered "sane".
3041 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3042 alias in your environment" "$LINENO" 5
3043 fi
3044 if test "$2" = conftest.file || test $am_try -eq 2; then
3045 break
3046 fi
3047 # Just in case.
3048 sleep 1
3049 am_has_slept=yes
3050 done
3051 test "$2" = conftest.file
3052 )
3053 then
3054 # Ok.
3055 :
3056 else
3057 as_fn_error $? "newly created file is older than distributed files!
3058 Check your system clock" "$LINENO" 5
3059 fi
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3061 $as_echo "yes" >&6; }
3062 # If we didn't sleep, we still need to ensure time stamps of config.status and
3063 # generated files are strictly newer.
3064 am_sleep_pid=
3065 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3066 ( sleep 1 ) &
3067 am_sleep_pid=$!
3068 fi
3069
3070 rm -f conftest.file
3071
3072 test "$program_prefix" != NONE &&
3073 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3074 # Use a double $ so make ignores it.
3075 test "$program_suffix" != NONE &&
3076 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3077 # Double any \ or $.
3078 # By default was `s,x,x', remove it if useless.
3079 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3080 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3081
3082 # Expand $ac_aux_dir to an absolute path.
3083 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3084
3085 if test x"${MISSING+set}" != xset; then
3086 case $am_aux_dir in
3087 *\ * | *\ *)
3088 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3089 *)
3090 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3091 esac
3092 fi
3093 # Use eval to expand $SHELL
3094 if eval "$MISSING --is-lightweight"; then
3095 am_missing_run="$MISSING "
3096 else
3097 am_missing_run=
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3099 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3100 fi
3101
3102 if test x"${install_sh+set}" != xset; then
3103 case $am_aux_dir in
3104 *\ * | *\ *)
3105 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3106 *)
3107 install_sh="\${SHELL} $am_aux_dir/install-sh"
3108 esac
3109 fi
3110
3111 # Installed binaries are usually stripped using 'strip' when the user
3112 # run "make install-strip". However 'strip' might not be the right
3113 # tool to use in cross-compilation environments, therefore Automake
3114 # will honor the 'STRIP' environment variable to overrule this program.
3115 if test "$cross_compiling" != no; then
3116 if test -n "$ac_tool_prefix"; then
3117 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3118 set dummy ${ac_tool_prefix}strip; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if ${ac_cv_prog_STRIP+:} false; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 if test -n "$STRIP"; then
3125 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3137 fi
3138 done
3139 done
3140 IFS=$as_save_IFS
3141
3142 fi
3143 fi
3144 STRIP=$ac_cv_prog_STRIP
3145 if test -n "$STRIP"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3147 $as_echo "$STRIP" >&6; }
3148 else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3151 fi
3152
3153
3154 fi
3155 if test -z "$ac_cv_prog_STRIP"; then
3156 ac_ct_STRIP=$STRIP
3157 # Extract the first word of "strip", so it can be a program name with args.
3158 set dummy strip; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3162 $as_echo_n "(cached) " >&6
3163 else
3164 if test -n "$ac_ct_STRIP"; then
3165 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174 ac_cv_prog_ac_ct_STRIP="strip"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3177 fi
3178 done
3179 done
3180 IFS=$as_save_IFS
3181
3182 fi
3183 fi
3184 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3185 if test -n "$ac_ct_STRIP"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3187 $as_echo "$ac_ct_STRIP" >&6; }
3188 else
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 fi
3192
3193 if test "x$ac_ct_STRIP" = x; then
3194 STRIP=":"
3195 else
3196 case $cross_compiling:$ac_tool_warned in
3197 yes:)
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3200 ac_tool_warned=yes ;;
3201 esac
3202 STRIP=$ac_ct_STRIP
3203 fi
3204 else
3205 STRIP="$ac_cv_prog_STRIP"
3206 fi
3207
3208 fi
3209 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3210
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3212 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3213 if test -z "$MKDIR_P"; then
3214 if ${ac_cv_path_mkdir+:} false; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3219 do
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 for ac_prog in mkdir gmkdir; do
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3225 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3226 'mkdir (GNU coreutils) '* | \
3227 'mkdir (coreutils) '* | \
3228 'mkdir (fileutils) '4.1*)
3229 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3230 break 3;;
3231 esac
3232 done
3233 done
3234 done
3235 IFS=$as_save_IFS
3236
3237 fi
3238
3239 test -d ./--version && rmdir ./--version
3240 if test "${ac_cv_path_mkdir+set}" = set; then
3241 MKDIR_P="$ac_cv_path_mkdir -p"
3242 else
3243 # As a last resort, use the slow shell script. Don't cache a
3244 # value for MKDIR_P within a source directory, because that will
3245 # break other packages using the cache if that directory is
3246 # removed, or if the value is a relative name.
3247 MKDIR_P="$ac_install_sh -d"
3248 fi
3249 fi
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3251 $as_echo "$MKDIR_P" >&6; }
3252
3253 for ac_prog in gawk mawk nawk awk
3254 do
3255 # Extract the first word of "$ac_prog", so it can be a program name with args.
3256 set dummy $ac_prog; ac_word=$2
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 $as_echo_n "checking for $ac_word... " >&6; }
3259 if ${ac_cv_prog_AWK+:} false; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 if test -n "$AWK"; then
3263 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3267 do
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272 ac_cv_prog_AWK="$ac_prog"
3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 break 2
3275 fi
3276 done
3277 done
3278 IFS=$as_save_IFS
3279
3280 fi
3281 fi
3282 AWK=$ac_cv_prog_AWK
3283 if test -n "$AWK"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3285 $as_echo "$AWK" >&6; }
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 fi
3290
3291
3292 test -n "$AWK" && break
3293 done
3294
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3296 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3297 set x ${MAKE-make}
3298 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3299 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3300 $as_echo_n "(cached) " >&6
3301 else
3302 cat >conftest.make <<\_ACEOF
3303 SHELL = /bin/sh
3304 all:
3305 @echo '@@@%%%=$(MAKE)=@@@%%%'
3306 _ACEOF
3307 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3308 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3309 *@@@%%%=?*=@@@%%%*)
3310 eval ac_cv_prog_make_${ac_make}_set=yes;;
3311 *)
3312 eval ac_cv_prog_make_${ac_make}_set=no;;
3313 esac
3314 rm -f conftest.make
3315 fi
3316 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318 $as_echo "yes" >&6; }
3319 SET_MAKE=
3320 else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 $as_echo "no" >&6; }
3323 SET_MAKE="MAKE=${MAKE-make}"
3324 fi
3325
3326 rm -rf .tst 2>/dev/null
3327 mkdir .tst 2>/dev/null
3328 if test -d .tst; then
3329 am__leading_dot=.
3330 else
3331 am__leading_dot=_
3332 fi
3333 rmdir .tst 2>/dev/null
3334
3335 # Check whether --enable-silent-rules was given.
3336 if test "${enable_silent_rules+set}" = set; then :
3337 enableval=$enable_silent_rules;
3338 fi
3339
3340 case $enable_silent_rules in # (((
3341 yes) AM_DEFAULT_VERBOSITY=0;;
3342 no) AM_DEFAULT_VERBOSITY=1;;
3343 *) AM_DEFAULT_VERBOSITY=1;;
3344 esac
3345 am_make=${MAKE-make}
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3347 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3348 if ${am_cv_make_support_nested_variables+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if $as_echo 'TRUE=$(BAR$(V))
3352 BAR0=false
3353 BAR1=true
3354 V=1
3355 am__doit:
3356 @$(TRUE)
3357 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3358 am_cv_make_support_nested_variables=yes
3359 else
3360 am_cv_make_support_nested_variables=no
3361 fi
3362 fi
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3364 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3365 if test $am_cv_make_support_nested_variables = yes; then
3366 AM_V='$(V)'
3367 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3368 else
3369 AM_V=$AM_DEFAULT_VERBOSITY
3370 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3371 fi
3372 AM_BACKSLASH='\'
3373
3374 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3375 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3376 # is not polluted with repeated "-I."
3377 am__isrc=' -I$(srcdir)'
3378 # test to see if srcdir already configured
3379 if test -f $srcdir/config.status; then
3380 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3381 fi
3382 fi
3383
3384 # test whether we have cygpath
3385 if test -z "$CYGPATH_W"; then
3386 if (cygpath --version) >/dev/null 2>/dev/null; then
3387 CYGPATH_W='cygpath -w'
3388 else
3389 CYGPATH_W=echo
3390 fi
3391 fi
3392
3393
3394 # Define the identity of the package.
3395 PACKAGE='ld'
3396 VERSION='2.44'
3397
3398
3399 cat >>confdefs.h <<_ACEOF
3400 #define PACKAGE "$PACKAGE"
3401 _ACEOF
3402
3403
3404 cat >>confdefs.h <<_ACEOF
3405 #define VERSION "$VERSION"
3406 _ACEOF
3407
3408 # Some tools Automake needs.
3409
3410 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3411
3412
3413 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3414
3415
3416 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3417
3418
3419 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3420
3421
3422 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3423
3424 # For better backward compatibility. To be removed once Automake 1.9.x
3425 # dies out for good. For more background, see:
3426 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3427 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3428 mkdir_p='$(MKDIR_P)'
3429
3430 # We need awk for the "check" target (and possibly the TAP driver). The
3431 # system "awk" is bad on some platforms.
3432 # Always define AMTAR for backward compatibility. Yes, it's still used
3433 # in the wild :-( We should find a proper way to deprecate it ...
3434 AMTAR='$${TAR-tar}'
3435
3436
3437 # We'll loop over all known methods to create a tar archive until one works.
3438 _am_tools='gnutar pax cpio none'
3439
3440 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3441
3442
3443
3444
3445
3446
3447 # POSIX will say in a future version that running "rm -f" with no argument
3448 # is OK; and we want to be able to make that assumption in our Makefile
3449 # recipes. So use an aggressive probe to check that the usage we want is
3450 # actually supported "in the wild" to an acceptable degree.
3451 # See automake bug#10828.
3452 # To make any issue more visible, cause the running configure to be aborted
3453 # by default if the 'rm' program in use doesn't match our expectations; the
3454 # user can still override this though.
3455 if rm -f && rm -fr && rm -rf; then : OK; else
3456 cat >&2 <<'END'
3457 Oops!
3458
3459 Your 'rm' program seems unable to run without file operands specified
3460 on the command line, even when the '-f' option is present. This is contrary
3461 to the behaviour of most rm programs out there, and not conforming with
3462 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3463
3464 Please tell [email protected] about your system, including the value
3465 of your $PATH and any error possibly output before this message. This
3466 can help us improve future automake versions.
3467
3468 END
3469 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3470 echo 'Configuration will proceed anyway, since you have set the' >&2
3471 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3472 echo >&2
3473 else
3474 cat >&2 <<'END'
3475 Aborting the configuration process, to ensure you take notice of the issue.
3476
3477 You can download and install GNU coreutils to get an 'rm' implementation
3478 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3479
3480 If you want to complete the configuration process using your problematic
3481 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3482 to "yes", and re-run configure.
3483
3484 END
3485 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3486 fi
3487 fi
3488
3489 # Check whether --enable-silent-rules was given.
3490 if test "${enable_silent_rules+set}" = set; then :
3491 enableval=$enable_silent_rules;
3492 fi
3493
3494 case $enable_silent_rules in # (((
3495 yes) AM_DEFAULT_VERBOSITY=0;;
3496 no) AM_DEFAULT_VERBOSITY=1;;
3497 *) AM_DEFAULT_VERBOSITY=0;;
3498 esac
3499 am_make=${MAKE-make}
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3501 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3502 if ${am_cv_make_support_nested_variables+:} false; then :
3503 $as_echo_n "(cached) " >&6
3504 else
3505 if $as_echo 'TRUE=$(BAR$(V))
3506 BAR0=false
3507 BAR1=true
3508 V=1
3509 am__doit:
3510 @$(TRUE)
3511 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3512 am_cv_make_support_nested_variables=yes
3513 else
3514 am_cv_make_support_nested_variables=no
3515 fi
3516 fi
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3518 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3519 if test $am_cv_make_support_nested_variables = yes; then
3520 AM_V='$(V)'
3521 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3522 else
3523 AM_V=$AM_DEFAULT_VERBOSITY
3524 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3525 fi
3526 AM_BACKSLASH='\'
3527
3528
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3530 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3531 # Check whether --enable-maintainer-mode was given.
3532 if test "${enable_maintainer_mode+set}" = set; then :
3533 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3534 else
3535 USE_MAINTAINER_MODE=no
3536 fi
3537
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3539 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3540 if test $USE_MAINTAINER_MODE = yes; then
3541 MAINTAINER_MODE_TRUE=
3542 MAINTAINER_MODE_FALSE='#'
3543 else
3544 MAINTAINER_MODE_TRUE='#'
3545 MAINTAINER_MODE_FALSE=
3546 fi
3547
3548 MAINT=$MAINTAINER_MODE_TRUE
3549
3550
3551
3552 ac_ext=c
3553 ac_cpp='$CPP $CPPFLAGS'
3554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3557 if test -n "$ac_tool_prefix"; then
3558 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3559 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3561 $as_echo_n "checking for $ac_word... " >&6; }
3562 if ${ac_cv_prog_CC+:} false; then :
3563 $as_echo_n "(cached) " >&6
3564 else
3565 if test -n "$CC"; then
3566 ac_cv_prog_CC="$CC" # Let the user override the test.
3567 else
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 for as_dir in $PATH
3570 do
3571 IFS=$as_save_IFS
3572 test -z "$as_dir" && as_dir=.
3573 for ac_exec_ext in '' $ac_executable_extensions; do
3574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3575 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3577 break 2
3578 fi
3579 done
3580 done
3581 IFS=$as_save_IFS
3582
3583 fi
3584 fi
3585 CC=$ac_cv_prog_CC
3586 if test -n "$CC"; then
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3588 $as_echo "$CC" >&6; }
3589 else
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3592 fi
3593
3594
3595 fi
3596 if test -z "$ac_cv_prog_CC"; then
3597 ac_ct_CC=$CC
3598 # Extract the first word of "gcc", so it can be a program name with args.
3599 set dummy gcc; ac_word=$2
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601 $as_echo_n "checking for $ac_word... " >&6; }
3602 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3603 $as_echo_n "(cached) " >&6
3604 else
3605 if test -n "$ac_ct_CC"; then
3606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3607 else
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3610 do
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3615 ac_cv_prog_ac_ct_CC="gcc"
3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 break 2
3618 fi
3619 done
3620 done
3621 IFS=$as_save_IFS
3622
3623 fi
3624 fi
3625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3626 if test -n "$ac_ct_CC"; then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3628 $as_echo "$ac_ct_CC" >&6; }
3629 else
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 $as_echo "no" >&6; }
3632 fi
3633
3634 if test "x$ac_ct_CC" = x; then
3635 CC=""
3636 else
3637 case $cross_compiling:$ac_tool_warned in
3638 yes:)
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3641 ac_tool_warned=yes ;;
3642 esac
3643 CC=$ac_ct_CC
3644 fi
3645 else
3646 CC="$ac_cv_prog_CC"
3647 fi
3648
3649 if test -z "$CC"; then
3650 if test -n "$ac_tool_prefix"; then
3651 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3652 set dummy ${ac_tool_prefix}cc; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if ${ac_cv_prog_CC+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC="$CC" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_CC="${ac_tool_prefix}cc"
3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3671 fi
3672 done
3673 done
3674 IFS=$as_save_IFS
3675
3676 fi
3677 fi
3678 CC=$ac_cv_prog_CC
3679 if test -n "$CC"; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 $as_echo "$CC" >&6; }
3682 else
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3685 fi
3686
3687
3688 fi
3689 fi
3690 if test -z "$CC"; then
3691 # Extract the first word of "cc", so it can be a program name with args.
3692 set dummy cc; ac_word=$2
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694 $as_echo_n "checking for $ac_word... " >&6; }
3695 if ${ac_cv_prog_CC+:} false; then :
3696 $as_echo_n "(cached) " >&6
3697 else
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
3700 else
3701 ac_prog_rejected=no
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH
3704 do
3705 IFS=$as_save_IFS
3706 test -z "$as_dir" && as_dir=.
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3710 ac_prog_rejected=yes
3711 continue
3712 fi
3713 ac_cv_prog_CC="cc"
3714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 break 2
3716 fi
3717 done
3718 done
3719 IFS=$as_save_IFS
3720
3721 if test $ac_prog_rejected = yes; then
3722 # We found a bogon in the path, so make sure we never use it.
3723 set dummy $ac_cv_prog_CC
3724 shift
3725 if test $# != 0; then
3726 # We chose a different compiler from the bogus one.
3727 # However, it has the same basename, so the bogon will be chosen
3728 # first if we set CC to just the basename; use the full file name.
3729 shift
3730 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3731 fi
3732 fi
3733 fi
3734 fi
3735 CC=$ac_cv_prog_CC
3736 if test -n "$CC"; then
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3738 $as_echo "$CC" >&6; }
3739 else
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 $as_echo "no" >&6; }
3742 fi
3743
3744
3745 fi
3746 if test -z "$CC"; then
3747 if test -n "$ac_tool_prefix"; then
3748 for ac_prog in cl.exe
3749 do
3750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753 $as_echo_n "checking for $ac_word... " >&6; }
3754 if ${ac_cv_prog_CC+:} false; then :
3755 $as_echo_n "(cached) " >&6
3756 else
3757 if test -n "$CC"; then
3758 ac_cv_prog_CC="$CC" # Let the user override the test.
3759 else
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3762 do
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 break 2
3770 fi
3771 done
3772 done
3773 IFS=$as_save_IFS
3774
3775 fi
3776 fi
3777 CC=$ac_cv_prog_CC
3778 if test -n "$CC"; then
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3780 $as_echo "$CC" >&6; }
3781 else
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 $as_echo "no" >&6; }
3784 fi
3785
3786
3787 test -n "$CC" && break
3788 done
3789 fi
3790 if test -z "$CC"; then
3791 ac_ct_CC=$CC
3792 for ac_prog in cl.exe
3793 do
3794 # Extract the first word of "$ac_prog", so it can be a program name with args.
3795 set dummy $ac_prog; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 if test -n "$ac_ct_CC"; then
3802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3806 do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_ac_ct_CC="$ac_prog"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815 done
3816 done
3817 IFS=$as_save_IFS
3818
3819 fi
3820 fi
3821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3822 if test -n "$ac_ct_CC"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3824 $as_echo "$ac_ct_CC" >&6; }
3825 else
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3828 fi
3829
3830
3831 test -n "$ac_ct_CC" && break
3832 done
3833
3834 if test "x$ac_ct_CC" = x; then
3835 CC=""
3836 else
3837 case $cross_compiling:$ac_tool_warned in
3838 yes:)
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3841 ac_tool_warned=yes ;;
3842 esac
3843 CC=$ac_ct_CC
3844 fi
3845 fi
3846
3847 fi
3848
3849
3850 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3852 as_fn_error $? "no acceptable C compiler found in \$PATH
3853 See \`config.log' for more details" "$LINENO" 5; }
3854
3855 # Provide some information about the compiler.
3856 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3857 set X $ac_compile
3858 ac_compiler=$2
3859 for ac_option in --version -v -V -qversion; do
3860 { { ac_try="$ac_compiler $ac_option >&5"
3861 case "(($ac_try" in
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3864 esac
3865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3866 $as_echo "$ac_try_echo"; } >&5
3867 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3868 ac_status=$?
3869 if test -s conftest.err; then
3870 sed '10a\
3871 ... rest of stderr output deleted ...
3872 10q' conftest.err >conftest.er1
3873 cat conftest.er1 >&5
3874 fi
3875 rm -f conftest.er1 conftest.err
3876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877 test $ac_status = 0; }
3878 done
3879
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3882
3883 int
3884 main ()
3885 {
3886
3887 ;
3888 return 0;
3889 }
3890 _ACEOF
3891 ac_clean_files_save=$ac_clean_files
3892 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3893 # Try to create an executable without -o first, disregard a.out.
3894 # It will help us diagnose broken compilers, and finding out an intuition
3895 # of exeext.
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3897 $as_echo_n "checking whether the C compiler works... " >&6; }
3898 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3899
3900 # The possible output files:
3901 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3902
3903 ac_rmfiles=
3904 for ac_file in $ac_files
3905 do
3906 case $ac_file in
3907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3908 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3909 esac
3910 done
3911 rm -f $ac_rmfiles
3912
3913 if { { ac_try="$ac_link_default"
3914 case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_link_default") 2>&5
3921 ac_status=$?
3922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; }; then :
3924 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3925 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3926 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3927 # so that the user can short-circuit this test for compilers unknown to
3928 # Autoconf.
3929 for ac_file in $ac_files ''
3930 do
3931 test -f "$ac_file" || continue
3932 case $ac_file in
3933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3934 ;;
3935 [ab].out )
3936 # We found the default executable, but exeext='' is most
3937 # certainly right.
3938 break;;
3939 *.* )
3940 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3941 then :; else
3942 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3943 fi
3944 # We set ac_cv_exeext here because the later test for it is not
3945 # safe: cross compilers may not add the suffix if given an `-o'
3946 # argument, so we may need to know it at that point already.
3947 # Even if this section looks crufty: it has the advantage of
3948 # actually working.
3949 break;;
3950 * )
3951 break;;
3952 esac
3953 done
3954 test "$ac_cv_exeext" = no && ac_cv_exeext=
3955
3956 else
3957 ac_file=''
3958 fi
3959 if test -z "$ac_file"; then :
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961 $as_echo "no" >&6; }
3962 $as_echo "$as_me: failed program was:" >&5
3963 sed 's/^/| /' conftest.$ac_ext >&5
3964
3965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3967 as_fn_error 77 "C compiler cannot create executables
3968 See \`config.log' for more details" "$LINENO" 5; }
3969 else
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3971 $as_echo "yes" >&6; }
3972 fi
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3974 $as_echo_n "checking for C compiler default output file name... " >&6; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3976 $as_echo "$ac_file" >&6; }
3977 ac_exeext=$ac_cv_exeext
3978
3979 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3980 ac_clean_files=$ac_clean_files_save
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3982 $as_echo_n "checking for suffix of executables... " >&6; }
3983 if { { ac_try="$ac_link"
3984 case "(($ac_try" in
3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986 *) ac_try_echo=$ac_try;;
3987 esac
3988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3989 $as_echo "$ac_try_echo"; } >&5
3990 (eval "$ac_link") 2>&5
3991 ac_status=$?
3992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3993 test $ac_status = 0; }; then :
3994 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3995 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3996 # work properly (i.e., refer to `conftest.exe'), while it won't with
3997 # `rm'.
3998 for ac_file in conftest.exe conftest conftest.*; do
3999 test -f "$ac_file" || continue
4000 case $ac_file in
4001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4002 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4003 break;;
4004 * ) break;;
4005 esac
4006 done
4007 else
4008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4010 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4011 See \`config.log' for more details" "$LINENO" 5; }
4012 fi
4013 rm -f conftest conftest$ac_cv_exeext
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4015 $as_echo "$ac_cv_exeext" >&6; }
4016
4017 rm -f conftest.$ac_ext
4018 EXEEXT=$ac_cv_exeext
4019 ac_exeext=$EXEEXT
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h. */
4022 #include <stdio.h>
4023 int
4024 main ()
4025 {
4026 FILE *f = fopen ("conftest.out", "w");
4027 return ferror (f) || fclose (f) != 0;
4028
4029 ;
4030 return 0;
4031 }
4032 _ACEOF
4033 ac_clean_files="$ac_clean_files conftest.out"
4034 # Check that the compiler produces executables we can run. If not, either
4035 # the compiler is broken, or we cross compile.
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4037 $as_echo_n "checking whether we are cross compiling... " >&6; }
4038 if test "$cross_compiling" != yes; then
4039 { { ac_try="$ac_link"
4040 case "(($ac_try" in
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4043 esac
4044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4045 $as_echo "$ac_try_echo"; } >&5
4046 (eval "$ac_link") 2>&5
4047 ac_status=$?
4048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4049 test $ac_status = 0; }
4050 if { ac_try='./conftest$ac_cv_exeext'
4051 { { case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054 esac
4055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4056 $as_echo "$ac_try_echo"; } >&5
4057 (eval "$ac_try") 2>&5
4058 ac_status=$?
4059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4060 test $ac_status = 0; }; }; then
4061 cross_compiling=no
4062 else
4063 if test "$cross_compiling" = maybe; then
4064 cross_compiling=yes
4065 else
4066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4068 as_fn_error $? "cannot run C compiled programs.
4069 If you meant to cross compile, use \`--host'.
4070 See \`config.log' for more details" "$LINENO" 5; }
4071 fi
4072 fi
4073 fi
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4075 $as_echo "$cross_compiling" >&6; }
4076
4077 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4078 ac_clean_files=$ac_clean_files_save
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4080 $as_echo_n "checking for suffix of object files... " >&6; }
4081 if ${ac_cv_objext+:} false; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4086
4087 int
4088 main ()
4089 {
4090
4091 ;
4092 return 0;
4093 }
4094 _ACEOF
4095 rm -f conftest.o conftest.obj
4096 if { { ac_try="$ac_compile"
4097 case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4100 esac
4101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4102 $as_echo "$ac_try_echo"; } >&5
4103 (eval "$ac_compile") 2>&5
4104 ac_status=$?
4105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4106 test $ac_status = 0; }; then :
4107 for ac_file in conftest.o conftest.obj conftest.*; do
4108 test -f "$ac_file" || continue;
4109 case $ac_file in
4110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4111 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4112 break;;
4113 esac
4114 done
4115 else
4116 $as_echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4118
4119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4121 as_fn_error $? "cannot compute suffix of object files: cannot compile
4122 See \`config.log' for more details" "$LINENO" 5; }
4123 fi
4124 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4125 fi
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4127 $as_echo "$ac_cv_objext" >&6; }
4128 OBJEXT=$ac_cv_objext
4129 ac_objext=$OBJEXT
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4131 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4132 if ${ac_cv_c_compiler_gnu+:} false; then :
4133 $as_echo_n "(cached) " >&6
4134 else
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137
4138 int
4139 main ()
4140 {
4141 #ifndef __GNUC__
4142 choke me
4143 #endif
4144
4145 ;
4146 return 0;
4147 }
4148 _ACEOF
4149 if ac_fn_c_try_compile "$LINENO"; then :
4150 ac_compiler_gnu=yes
4151 else
4152 ac_compiler_gnu=no
4153 fi
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4156
4157 fi
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4159 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4160 if test $ac_compiler_gnu = yes; then
4161 GCC=yes
4162 else
4163 GCC=
4164 fi
4165 ac_test_CFLAGS=${CFLAGS+set}
4166 ac_save_CFLAGS=$CFLAGS
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4168 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4169 if ${ac_cv_prog_cc_g+:} false; then :
4170 $as_echo_n "(cached) " >&6
4171 else
4172 ac_save_c_werror_flag=$ac_c_werror_flag
4173 ac_c_werror_flag=yes
4174 ac_cv_prog_cc_g=no
4175 CFLAGS="-g"
4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4178
4179 int
4180 main ()
4181 {
4182
4183 ;
4184 return 0;
4185 }
4186 _ACEOF
4187 if ac_fn_c_try_compile "$LINENO"; then :
4188 ac_cv_prog_cc_g=yes
4189 else
4190 CFLAGS=""
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4193
4194 int
4195 main ()
4196 {
4197
4198 ;
4199 return 0;
4200 }
4201 _ACEOF
4202 if ac_fn_c_try_compile "$LINENO"; then :
4203
4204 else
4205 ac_c_werror_flag=$ac_save_c_werror_flag
4206 CFLAGS="-g"
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209
4210 int
4211 main ()
4212 {
4213
4214 ;
4215 return 0;
4216 }
4217 _ACEOF
4218 if ac_fn_c_try_compile "$LINENO"; then :
4219 ac_cv_prog_cc_g=yes
4220 fi
4221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 fi
4223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 fi
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 ac_c_werror_flag=$ac_save_c_werror_flag
4227 fi
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4229 $as_echo "$ac_cv_prog_cc_g" >&6; }
4230 if test "$ac_test_CFLAGS" = set; then
4231 CFLAGS=$ac_save_CFLAGS
4232 elif test $ac_cv_prog_cc_g = yes; then
4233 if test "$GCC" = yes; then
4234 CFLAGS="-g -O2"
4235 else
4236 CFLAGS="-g"
4237 fi
4238 else
4239 if test "$GCC" = yes; then
4240 CFLAGS="-O2"
4241 else
4242 CFLAGS=
4243 fi
4244 fi
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4246 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4247 if ${ac_cv_prog_cc_c89+:} false; then :
4248 $as_echo_n "(cached) " >&6
4249 else
4250 ac_cv_prog_cc_c89=no
4251 ac_save_CC=$CC
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254 #include <stdarg.h>
4255 #include <stdio.h>
4256 struct stat;
4257 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4258 struct buf { int x; };
4259 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4260 static char *e (p, i)
4261 char **p;
4262 int i;
4263 {
4264 return p[i];
4265 }
4266 static char *f (char * (*g) (char **, int), char **p, ...)
4267 {
4268 char *s;
4269 va_list v;
4270 va_start (v,p);
4271 s = g (p, va_arg (v,int));
4272 va_end (v);
4273 return s;
4274 }
4275
4276 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4277 function prototypes and stuff, but not '\xHH' hex character constants.
4278 These don't provoke an error unfortunately, instead are silently treated
4279 as 'x'. The following induces an error, until -std is added to get
4280 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4281 array size at least. It's necessary to write '\x00'==0 to get something
4282 that's true only with -std. */
4283 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4284
4285 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4286 inside strings and character constants. */
4287 #define FOO(x) 'x'
4288 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4289
4290 int test (int i, double x);
4291 struct s1 {int (*f) (int a);};
4292 struct s2 {int (*f) (double a);};
4293 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4294 int argc;
4295 char **argv;
4296 int
4297 main ()
4298 {
4299 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4300 ;
4301 return 0;
4302 }
4303 _ACEOF
4304 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4305 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4306 do
4307 CC="$ac_save_CC $ac_arg"
4308 if ac_fn_c_try_compile "$LINENO"; then :
4309 ac_cv_prog_cc_c89=$ac_arg
4310 fi
4311 rm -f core conftest.err conftest.$ac_objext
4312 test "x$ac_cv_prog_cc_c89" != "xno" && break
4313 done
4314 rm -f conftest.$ac_ext
4315 CC=$ac_save_CC
4316
4317 fi
4318 # AC_CACHE_VAL
4319 case "x$ac_cv_prog_cc_c89" in
4320 x)
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4322 $as_echo "none needed" >&6; } ;;
4323 xno)
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4325 $as_echo "unsupported" >&6; } ;;
4326 *)
4327 CC="$CC $ac_cv_prog_cc_c89"
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4329 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4330 esac
4331 if test "x$ac_cv_prog_cc_c89" != xno; then :
4332
4333 fi
4334
4335 ac_ext=c
4336 ac_cpp='$CPP $CPPFLAGS'
4337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340
4341 ac_ext=c
4342 ac_cpp='$CPP $CPPFLAGS'
4343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4347 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4348 if ${am_cv_prog_cc_c_o+:} false; then :
4349 $as_echo_n "(cached) " >&6
4350 else
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4353
4354 int
4355 main ()
4356 {
4357
4358 ;
4359 return 0;
4360 }
4361 _ACEOF
4362 # Make sure it works both with $CC and with simple cc.
4363 # Following AC_PROG_CC_C_O, we do the test twice because some
4364 # compilers refuse to overwrite an existing .o file with -o,
4365 # though they will create one.
4366 am_cv_prog_cc_c_o=yes
4367 for am_i in 1 2; do
4368 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4369 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } \
4373 && test -f conftest2.$ac_objext; then
4374 : OK
4375 else
4376 am_cv_prog_cc_c_o=no
4377 break
4378 fi
4379 done
4380 rm -f core conftest*
4381 unset am_i
4382 fi
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4384 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4385 if test "$am_cv_prog_cc_c_o" != yes; then
4386 # Losing compiler, so override with the script.
4387 # FIXME: It is wrong to rewrite CC.
4388 # But if we don't then we get into trouble of one sort or another.
4389 # A longer-term fix would be to have automake use am__CC in this case,
4390 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4391 CC="$am_aux_dir/compile $CC"
4392 fi
4393 ac_ext=c
4394 ac_cpp='$CPP $CPPFLAGS'
4395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4398
4399 DEPDIR="${am__leading_dot}deps"
4400
4401 ac_config_commands="$ac_config_commands depfiles"
4402
4403
4404 am_make=${MAKE-make}
4405 cat > confinc << 'END'
4406 am__doit:
4407 @echo this is the am__doit target
4408 .PHONY: am__doit
4409 END
4410 # If we don't find an include directive, just comment out the code.
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4412 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4413 am__include="#"
4414 am__quote=
4415 _am_result=none
4416 # First try GNU make style include.
4417 echo "include confinc" > confmf
4418 # Ignore all kinds of additional output from 'make'.
4419 case `$am_make -s -f confmf 2> /dev/null` in #(
4420 *the\ am__doit\ target*)
4421 am__include=include
4422 am__quote=
4423 _am_result=GNU
4424 ;;
4425 esac
4426 # Now try BSD make style include.
4427 if test "$am__include" = "#"; then
4428 echo '.include "confinc"' > confmf
4429 case `$am_make -s -f confmf 2> /dev/null` in #(
4430 *the\ am__doit\ target*)
4431 am__include=.include
4432 am__quote="\""
4433 _am_result=BSD
4434 ;;
4435 esac
4436 fi
4437
4438
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4440 $as_echo "$_am_result" >&6; }
4441 rm -f confinc confmf
4442
4443 # Check whether --enable-dependency-tracking was given.
4444 if test "${enable_dependency_tracking+set}" = set; then :
4445 enableval=$enable_dependency_tracking;
4446 fi
4447
4448 if test "x$enable_dependency_tracking" != xno; then
4449 am_depcomp="$ac_aux_dir/depcomp"
4450 AMDEPBACKSLASH='\'
4451 am__nodep='_no'
4452 fi
4453 if test "x$enable_dependency_tracking" != xno; then
4454 AMDEP_TRUE=
4455 AMDEP_FALSE='#'
4456 else
4457 AMDEP_TRUE='#'
4458 AMDEP_FALSE=
4459 fi
4460
4461
4462
4463 depcc="$CC" am_compiler_list=
4464
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4466 $as_echo_n "checking dependency style of $depcc... " >&6; }
4467 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4468 $as_echo_n "(cached) " >&6
4469 else
4470 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4471 # We make a subdir and do the tests there. Otherwise we can end up
4472 # making bogus files that we don't know about and never remove. For
4473 # instance it was reported that on HP-UX the gcc test will end up
4474 # making a dummy file named 'D' -- because '-MD' means "put the output
4475 # in D".
4476 rm -rf conftest.dir
4477 mkdir conftest.dir
4478 # Copy depcomp to subdir because otherwise we won't find it if we're
4479 # using a relative directory.
4480 cp "$am_depcomp" conftest.dir
4481 cd conftest.dir
4482 # We will build objects and dependencies in a subdirectory because
4483 # it helps to detect inapplicable dependency modes. For instance
4484 # both Tru64's cc and ICC support -MD to output dependencies as a
4485 # side effect of compilation, but ICC will put the dependencies in
4486 # the current directory while Tru64 will put them in the object
4487 # directory.
4488 mkdir sub
4489
4490 am_cv_CC_dependencies_compiler_type=none
4491 if test "$am_compiler_list" = ""; then
4492 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4493 fi
4494 am__universal=false
4495 case " $depcc " in #(
4496 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4497 esac
4498
4499 for depmode in $am_compiler_list; do
4500 # Setup a source with many dependencies, because some compilers
4501 # like to wrap large dependency lists on column 80 (with \), and
4502 # we should not choose a depcomp mode which is confused by this.
4503 #
4504 # We need to recreate these files for each test, as the compiler may
4505 # overwrite some of them when testing with obscure command lines.
4506 # This happens at least with the AIX C compiler.
4507 : > sub/conftest.c
4508 for i in 1 2 3 4 5 6; do
4509 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4510 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4511 # Solaris 10 /bin/sh.
4512 echo '/* dummy */' > sub/conftst$i.h
4513 done
4514 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4515
4516 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4517 # mode. It turns out that the SunPro C++ compiler does not properly
4518 # handle '-M -o', and we need to detect this. Also, some Intel
4519 # versions had trouble with output in subdirs.
4520 am__obj=sub/conftest.${OBJEXT-o}
4521 am__minus_obj="-o $am__obj"
4522 case $depmode in
4523 gcc)
4524 # This depmode causes a compiler race in universal mode.
4525 test "$am__universal" = false || continue
4526 ;;
4527 nosideeffect)
4528 # After this tag, mechanisms are not by side-effect, so they'll
4529 # only be used when explicitly requested.
4530 if test "x$enable_dependency_tracking" = xyes; then
4531 continue
4532 else
4533 break
4534 fi
4535 ;;
4536 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4537 # This compiler won't grok '-c -o', but also, the minuso test has
4538 # not run yet. These depmodes are late enough in the game, and
4539 # so weak that their functioning should not be impacted.
4540 am__obj=conftest.${OBJEXT-o}
4541 am__minus_obj=
4542 ;;
4543 none) break ;;
4544 esac
4545 if depmode=$depmode \
4546 source=sub/conftest.c object=$am__obj \
4547 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4548 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4549 >/dev/null 2>conftest.err &&
4550 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4551 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4552 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4553 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4554 # icc doesn't choke on unknown options, it will just issue warnings
4555 # or remarks (even with -Werror). So we grep stderr for any message
4556 # that says an option was ignored or not supported.
4557 # When given -MP, icc 7.0 and 7.1 complain thusly:
4558 # icc: Command line warning: ignoring option '-M'; no argument required
4559 # The diagnosis changed in icc 8.0:
4560 # icc: Command line remark: option '-MP' not supported
4561 if (grep 'ignoring option' conftest.err ||
4562 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4563 am_cv_CC_dependencies_compiler_type=$depmode
4564 break
4565 fi
4566 fi
4567 done
4568
4569 cd ..
4570 rm -rf conftest.dir
4571 else
4572 am_cv_CC_dependencies_compiler_type=none
4573 fi
4574
4575 fi
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4577 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4578 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4579
4580 if
4581 test "x$enable_dependency_tracking" != xno \
4582 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4583 am__fastdepCC_TRUE=
4584 am__fastdepCC_FALSE='#'
4585 else
4586 am__fastdepCC_TRUE='#'
4587 am__fastdepCC_FALSE=
4588 fi
4589
4590
4591 ac_ext=cpp
4592 ac_cpp='$CXXCPP $CPPFLAGS'
4593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4596 if test -z "$CXX"; then
4597 if test -n "$CCC"; then
4598 CXX=$CCC
4599 else
4600 if test -n "$ac_tool_prefix"; then
4601 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4602 do
4603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if ${ac_cv_prog_CXX+:} false; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 if test -n "$CXX"; then
4611 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4612 else
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4615 do
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4620 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 break 2
4623 fi
4624 done
4625 done
4626 IFS=$as_save_IFS
4627
4628 fi
4629 fi
4630 CXX=$ac_cv_prog_CXX
4631 if test -n "$CXX"; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4633 $as_echo "$CXX" >&6; }
4634 else
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 $as_echo "no" >&6; }
4637 fi
4638
4639
4640 test -n "$CXX" && break
4641 done
4642 fi
4643 if test -z "$CXX"; then
4644 ac_ct_CXX=$CXX
4645 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4646 do
4647 # Extract the first word of "$ac_prog", so it can be a program name with args.
4648 set dummy $ac_prog; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -n "$ac_ct_CXX"; then
4655 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_prog_ac_ct_CXX="$ac_prog"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668 done
4669 done
4670 IFS=$as_save_IFS
4671
4672 fi
4673 fi
4674 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4675 if test -n "$ac_ct_CXX"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4677 $as_echo "$ac_ct_CXX" >&6; }
4678 else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4681 fi
4682
4683
4684 test -n "$ac_ct_CXX" && break
4685 done
4686
4687 if test "x$ac_ct_CXX" = x; then
4688 CXX="g++"
4689 else
4690 case $cross_compiling:$ac_tool_warned in
4691 yes:)
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4694 ac_tool_warned=yes ;;
4695 esac
4696 CXX=$ac_ct_CXX
4697 fi
4698 fi
4699
4700 fi
4701 fi
4702 # Provide some information about the compiler.
4703 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4704 set X $ac_compile
4705 ac_compiler=$2
4706 for ac_option in --version -v -V -qversion; do
4707 { { ac_try="$ac_compiler $ac_option >&5"
4708 case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4711 esac
4712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4713 $as_echo "$ac_try_echo"; } >&5
4714 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4715 ac_status=$?
4716 if test -s conftest.err; then
4717 sed '10a\
4718 ... rest of stderr output deleted ...
4719 10q' conftest.err >conftest.er1
4720 cat conftest.er1 >&5
4721 fi
4722 rm -f conftest.er1 conftest.err
4723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4724 test $ac_status = 0; }
4725 done
4726
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4728 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4729 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4734
4735 int
4736 main ()
4737 {
4738 #ifndef __GNUC__
4739 choke me
4740 #endif
4741
4742 ;
4743 return 0;
4744 }
4745 _ACEOF
4746 if ac_fn_cxx_try_compile "$LINENO"; then :
4747 ac_compiler_gnu=yes
4748 else
4749 ac_compiler_gnu=no
4750 fi
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4753
4754 fi
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4756 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4757 if test $ac_compiler_gnu = yes; then
4758 GXX=yes
4759 else
4760 GXX=
4761 fi
4762 ac_test_CXXFLAGS=${CXXFLAGS+set}
4763 ac_save_CXXFLAGS=$CXXFLAGS
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4765 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4766 if ${ac_cv_prog_cxx_g+:} false; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4770 ac_cxx_werror_flag=yes
4771 ac_cv_prog_cxx_g=no
4772 CXXFLAGS="-g"
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4775
4776 int
4777 main ()
4778 {
4779
4780 ;
4781 return 0;
4782 }
4783 _ACEOF
4784 if ac_fn_cxx_try_compile "$LINENO"; then :
4785 ac_cv_prog_cxx_g=yes
4786 else
4787 CXXFLAGS=""
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790
4791 int
4792 main ()
4793 {
4794
4795 ;
4796 return 0;
4797 }
4798 _ACEOF
4799 if ac_fn_cxx_try_compile "$LINENO"; then :
4800
4801 else
4802 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4803 CXXFLAGS="-g"
4804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805 /* end confdefs.h. */
4806
4807 int
4808 main ()
4809 {
4810
4811 ;
4812 return 0;
4813 }
4814 _ACEOF
4815 if ac_fn_cxx_try_compile "$LINENO"; then :
4816 ac_cv_prog_cxx_g=yes
4817 fi
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 fi
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 fi
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4824 fi
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4826 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4827 if test "$ac_test_CXXFLAGS" = set; then
4828 CXXFLAGS=$ac_save_CXXFLAGS
4829 elif test $ac_cv_prog_cxx_g = yes; then
4830 if test "$GXX" = yes; then
4831 CXXFLAGS="-g -O2"
4832 else
4833 CXXFLAGS="-g"
4834 fi
4835 else
4836 if test "$GXX" = yes; then
4837 CXXFLAGS="-O2"
4838 else
4839 CXXFLAGS=
4840 fi
4841 fi
4842 ac_ext=c
4843 ac_cpp='$CPP $CPPFLAGS'
4844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4847
4848 depcc="$CXX" am_compiler_list=
4849
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4851 $as_echo_n "checking dependency style of $depcc... " >&6; }
4852 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4856 # We make a subdir and do the tests there. Otherwise we can end up
4857 # making bogus files that we don't know about and never remove. For
4858 # instance it was reported that on HP-UX the gcc test will end up
4859 # making a dummy file named 'D' -- because '-MD' means "put the output
4860 # in D".
4861 rm -rf conftest.dir
4862 mkdir conftest.dir
4863 # Copy depcomp to subdir because otherwise we won't find it if we're
4864 # using a relative directory.
4865 cp "$am_depcomp" conftest.dir
4866 cd conftest.dir
4867 # We will build objects and dependencies in a subdirectory because
4868 # it helps to detect inapplicable dependency modes. For instance
4869 # both Tru64's cc and ICC support -MD to output dependencies as a
4870 # side effect of compilation, but ICC will put the dependencies in
4871 # the current directory while Tru64 will put them in the object
4872 # directory.
4873 mkdir sub
4874
4875 am_cv_CXX_dependencies_compiler_type=none
4876 if test "$am_compiler_list" = ""; then
4877 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4878 fi
4879 am__universal=false
4880 case " $depcc " in #(
4881 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4882 esac
4883
4884 for depmode in $am_compiler_list; do
4885 # Setup a source with many dependencies, because some compilers
4886 # like to wrap large dependency lists on column 80 (with \), and
4887 # we should not choose a depcomp mode which is confused by this.
4888 #
4889 # We need to recreate these files for each test, as the compiler may
4890 # overwrite some of them when testing with obscure command lines.
4891 # This happens at least with the AIX C compiler.
4892 : > sub/conftest.c
4893 for i in 1 2 3 4 5 6; do
4894 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4895 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4896 # Solaris 10 /bin/sh.
4897 echo '/* dummy */' > sub/conftst$i.h
4898 done
4899 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4900
4901 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4902 # mode. It turns out that the SunPro C++ compiler does not properly
4903 # handle '-M -o', and we need to detect this. Also, some Intel
4904 # versions had trouble with output in subdirs.
4905 am__obj=sub/conftest.${OBJEXT-o}
4906 am__minus_obj="-o $am__obj"
4907 case $depmode in
4908 gcc)
4909 # This depmode causes a compiler race in universal mode.
4910 test "$am__universal" = false || continue
4911 ;;
4912 nosideeffect)
4913 # After this tag, mechanisms are not by side-effect, so they'll
4914 # only be used when explicitly requested.
4915 if test "x$enable_dependency_tracking" = xyes; then
4916 continue
4917 else
4918 break
4919 fi
4920 ;;
4921 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4922 # This compiler won't grok '-c -o', but also, the minuso test has
4923 # not run yet. These depmodes are late enough in the game, and
4924 # so weak that their functioning should not be impacted.
4925 am__obj=conftest.${OBJEXT-o}
4926 am__minus_obj=
4927 ;;
4928 none) break ;;
4929 esac
4930 if depmode=$depmode \
4931 source=sub/conftest.c object=$am__obj \
4932 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4933 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4934 >/dev/null 2>conftest.err &&
4935 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4936 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4937 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4938 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4939 # icc doesn't choke on unknown options, it will just issue warnings
4940 # or remarks (even with -Werror). So we grep stderr for any message
4941 # that says an option was ignored or not supported.
4942 # When given -MP, icc 7.0 and 7.1 complain thusly:
4943 # icc: Command line warning: ignoring option '-M'; no argument required
4944 # The diagnosis changed in icc 8.0:
4945 # icc: Command line remark: option '-MP' not supported
4946 if (grep 'ignoring option' conftest.err ||
4947 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4948 am_cv_CXX_dependencies_compiler_type=$depmode
4949 break
4950 fi
4951 fi
4952 done
4953
4954 cd ..
4955 rm -rf conftest.dir
4956 else
4957 am_cv_CXX_dependencies_compiler_type=none
4958 fi
4959
4960 fi
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4962 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4963 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4964
4965 if
4966 test "x$enable_dependency_tracking" != xno \
4967 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4968 am__fastdepCXX_TRUE=
4969 am__fastdepCXX_FALSE='#'
4970 else
4971 am__fastdepCXX_TRUE='#'
4972 am__fastdepCXX_FALSE=
4973 fi
4974
4975
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4977 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4978 if ${ac_cv_path_GREP+:} false; then :
4979 $as_echo_n "(cached) " >&6
4980 else
4981 if test -z "$GREP"; then
4982 ac_path_GREP_found=false
4983 # Loop through the user's path and test for each of PROGNAME-LIST
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4986 do
4987 IFS=$as_save_IFS
4988 test -z "$as_dir" && as_dir=.
4989 for ac_prog in grep ggrep; do
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4992 as_fn_executable_p "$ac_path_GREP" || continue
4993 # Check for GNU ac_path_GREP and select it if it is found.
4994 # Check for GNU $ac_path_GREP
4995 case `"$ac_path_GREP" --version 2>&1` in
4996 *GNU*)
4997 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4998 *)
4999 ac_count=0
5000 $as_echo_n 0123456789 >"conftest.in"
5001 while :
5002 do
5003 cat "conftest.in" "conftest.in" >"conftest.tmp"
5004 mv "conftest.tmp" "conftest.in"
5005 cp "conftest.in" "conftest.nl"
5006 $as_echo 'GREP' >> "conftest.nl"
5007 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5008 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5009 as_fn_arith $ac_count + 1 && ac_count=$as_val
5010 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5011 # Best one so far, save it but keep looking for a better one
5012 ac_cv_path_GREP="$ac_path_GREP"
5013 ac_path_GREP_max=$ac_count
5014 fi
5015 # 10*(2^10) chars as input seems more than enough
5016 test $ac_count -gt 10 && break
5017 done
5018 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5019 esac
5020
5021 $ac_path_GREP_found && break 3
5022 done
5023 done
5024 done
5025 IFS=$as_save_IFS
5026 if test -z "$ac_cv_path_GREP"; then
5027 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5028 fi
5029 else
5030 ac_cv_path_GREP=$GREP
5031 fi
5032
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5035 $as_echo "$ac_cv_path_GREP" >&6; }
5036 GREP="$ac_cv_path_GREP"
5037
5038
5039
5040 ac_ext=c
5041 ac_cpp='$CPP $CPPFLAGS'
5042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5046 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5047 # On Suns, sometimes $CPP names a directory.
5048 if test -n "$CPP" && test -d "$CPP"; then
5049 CPP=
5050 fi
5051 if test -z "$CPP"; then
5052 if ${ac_cv_prog_CPP+:} false; then :
5053 $as_echo_n "(cached) " >&6
5054 else
5055 # Double quotes because CPP needs to be expanded
5056 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5057 do
5058 ac_preproc_ok=false
5059 for ac_c_preproc_warn_flag in '' yes
5060 do
5061 # Use a header file that comes with gcc, so configuring glibc
5062 # with a fresh cross-compiler works.
5063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5064 # <limits.h> exists even on freestanding compilers.
5065 # On the NeXT, cc -E runs the code through the compiler's parser,
5066 # not just through cpp. "Syntax error" is here to catch this case.
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5069 #ifdef __STDC__
5070 # include <limits.h>
5071 #else
5072 # include <assert.h>
5073 #endif
5074 Syntax error
5075 _ACEOF
5076 if ac_fn_c_try_cpp "$LINENO"; then :
5077
5078 else
5079 # Broken: fails on valid input.
5080 continue
5081 fi
5082 rm -f conftest.err conftest.i conftest.$ac_ext
5083
5084 # OK, works on sane cases. Now check whether nonexistent headers
5085 # can be detected and how.
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5088 #include <ac_nonexistent.h>
5089 _ACEOF
5090 if ac_fn_c_try_cpp "$LINENO"; then :
5091 # Broken: success on invalid input.
5092 continue
5093 else
5094 # Passes both tests.
5095 ac_preproc_ok=:
5096 break
5097 fi
5098 rm -f conftest.err conftest.i conftest.$ac_ext
5099
5100 done
5101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5102 rm -f conftest.i conftest.err conftest.$ac_ext
5103 if $ac_preproc_ok; then :
5104 break
5105 fi
5106
5107 done
5108 ac_cv_prog_CPP=$CPP
5109
5110 fi
5111 CPP=$ac_cv_prog_CPP
5112 else
5113 ac_cv_prog_CPP=$CPP
5114 fi
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5116 $as_echo "$CPP" >&6; }
5117 ac_preproc_ok=false
5118 for ac_c_preproc_warn_flag in '' yes
5119 do
5120 # Use a header file that comes with gcc, so configuring glibc
5121 # with a fresh cross-compiler works.
5122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5123 # <limits.h> exists even on freestanding compilers.
5124 # On the NeXT, cc -E runs the code through the compiler's parser,
5125 # not just through cpp. "Syntax error" is here to catch this case.
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5128 #ifdef __STDC__
5129 # include <limits.h>
5130 #else
5131 # include <assert.h>
5132 #endif
5133 Syntax error
5134 _ACEOF
5135 if ac_fn_c_try_cpp "$LINENO"; then :
5136
5137 else
5138 # Broken: fails on valid input.
5139 continue
5140 fi
5141 rm -f conftest.err conftest.i conftest.$ac_ext
5142
5143 # OK, works on sane cases. Now check whether nonexistent headers
5144 # can be detected and how.
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147 #include <ac_nonexistent.h>
5148 _ACEOF
5149 if ac_fn_c_try_cpp "$LINENO"; then :
5150 # Broken: success on invalid input.
5151 continue
5152 else
5153 # Passes both tests.
5154 ac_preproc_ok=:
5155 break
5156 fi
5157 rm -f conftest.err conftest.i conftest.$ac_ext
5158
5159 done
5160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5161 rm -f conftest.i conftest.err conftest.$ac_ext
5162 if $ac_preproc_ok; then :
5163
5164 else
5165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5167 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5168 See \`config.log' for more details" "$LINENO" 5; }
5169 fi
5170
5171 ac_ext=c
5172 ac_cpp='$CPP $CPPFLAGS'
5173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5176
5177
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5179 $as_echo_n "checking for egrep... " >&6; }
5180 if ${ac_cv_path_EGREP+:} false; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5184 then ac_cv_path_EGREP="$GREP -E"
5185 else
5186 if test -z "$EGREP"; then
5187 ac_path_EGREP_found=false
5188 # Loop through the user's path and test for each of PROGNAME-LIST
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5191 do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_prog in egrep; do
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5197 as_fn_executable_p "$ac_path_EGREP" || continue
5198 # Check for GNU ac_path_EGREP and select it if it is found.
5199 # Check for GNU $ac_path_EGREP
5200 case `"$ac_path_EGREP" --version 2>&1` in
5201 *GNU*)
5202 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5203 *)
5204 ac_count=0
5205 $as_echo_n 0123456789 >"conftest.in"
5206 while :
5207 do
5208 cat "conftest.in" "conftest.in" >"conftest.tmp"
5209 mv "conftest.tmp" "conftest.in"
5210 cp "conftest.in" "conftest.nl"
5211 $as_echo 'EGREP' >> "conftest.nl"
5212 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5214 as_fn_arith $ac_count + 1 && ac_count=$as_val
5215 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5216 # Best one so far, save it but keep looking for a better one
5217 ac_cv_path_EGREP="$ac_path_EGREP"
5218 ac_path_EGREP_max=$ac_count
5219 fi
5220 # 10*(2^10) chars as input seems more than enough
5221 test $ac_count -gt 10 && break
5222 done
5223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5224 esac
5225
5226 $ac_path_EGREP_found && break 3
5227 done
5228 done
5229 done
5230 IFS=$as_save_IFS
5231 if test -z "$ac_cv_path_EGREP"; then
5232 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5233 fi
5234 else
5235 ac_cv_path_EGREP=$EGREP
5236 fi
5237
5238 fi
5239 fi
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5241 $as_echo "$ac_cv_path_EGREP" >&6; }
5242 EGREP="$ac_cv_path_EGREP"
5243
5244
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5246 $as_echo_n "checking for ANSI C header files... " >&6; }
5247 if ${ac_cv_header_stdc+:} false; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5252 #include <stdlib.h>
5253 #include <stdarg.h>
5254 #include <string.h>
5255 #include <float.h>
5256
5257 int
5258 main ()
5259 {
5260
5261 ;
5262 return 0;
5263 }
5264 _ACEOF
5265 if ac_fn_c_try_compile "$LINENO"; then :
5266 ac_cv_header_stdc=yes
5267 else
5268 ac_cv_header_stdc=no
5269 fi
5270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271
5272 if test $ac_cv_header_stdc = yes; then
5273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5276 #include <string.h>
5277
5278 _ACEOF
5279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5280 $EGREP "memchr" >/dev/null 2>&1; then :
5281
5282 else
5283 ac_cv_header_stdc=no
5284 fi
5285 rm -f conftest*
5286
5287 fi
5288
5289 if test $ac_cv_header_stdc = yes; then
5290 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 #include <stdlib.h>
5294
5295 _ACEOF
5296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5297 $EGREP "free" >/dev/null 2>&1; then :
5298
5299 else
5300 ac_cv_header_stdc=no
5301 fi
5302 rm -f conftest*
5303
5304 fi
5305
5306 if test $ac_cv_header_stdc = yes; then
5307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5308 if test "$cross_compiling" = yes; then :
5309 :
5310 else
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5313 #include <ctype.h>
5314 #include <stdlib.h>
5315 #if ((' ' & 0x0FF) == 0x020)
5316 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5317 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5318 #else
5319 # define ISLOWER(c) \
5320 (('a' <= (c) && (c) <= 'i') \
5321 || ('j' <= (c) && (c) <= 'r') \
5322 || ('s' <= (c) && (c) <= 'z'))
5323 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5324 #endif
5325
5326 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5327 int
5328 main ()
5329 {
5330 int i;
5331 for (i = 0; i < 256; i++)
5332 if (XOR (islower (i), ISLOWER (i))
5333 || toupper (i) != TOUPPER (i))
5334 return 2;
5335 return 0;
5336 }
5337 _ACEOF
5338 if ac_fn_c_try_run "$LINENO"; then :
5339
5340 else
5341 ac_cv_header_stdc=no
5342 fi
5343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5344 conftest.$ac_objext conftest.beam conftest.$ac_ext
5345 fi
5346
5347 fi
5348 fi
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5350 $as_echo "$ac_cv_header_stdc" >&6; }
5351 if test $ac_cv_header_stdc = yes; then
5352
5353 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5354
5355 fi
5356
5357 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5358 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5359 inttypes.h stdint.h unistd.h
5360 do :
5361 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5362 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5363 "
5364 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5365 cat >>confdefs.h <<_ACEOF
5366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5367 _ACEOF
5368
5369 fi
5370
5371 done
5372
5373
5374
5375 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5376 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5377 MINIX=yes
5378 else
5379 MINIX=
5380 fi
5381
5382
5383 if test "$MINIX" = yes; then
5384
5385 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5386
5387
5388 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5389
5390
5391 $as_echo "#define _MINIX 1" >>confdefs.h
5392
5393 fi
5394
5395
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5397 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5398 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403
5404 # define __EXTENSIONS__ 1
5405 $ac_includes_default
5406 int
5407 main ()
5408 {
5409
5410 ;
5411 return 0;
5412 }
5413 _ACEOF
5414 if ac_fn_c_try_compile "$LINENO"; then :
5415 ac_cv_safe_to_define___extensions__=yes
5416 else
5417 ac_cv_safe_to_define___extensions__=no
5418 fi
5419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5420 fi
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5422 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5423 test $ac_cv_safe_to_define___extensions__ = yes &&
5424 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5425
5426 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5427
5428 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5429
5430 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5431
5432 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5444 if test -n "$ac_tool_prefix"; then
5445 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5446 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5450 $as_echo_n "(cached) " >&6
5451 else
5452 case $PKG_CONFIG in
5453 [\\/]* | ?:[\\/]*)
5454 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5455 ;;
5456 *)
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5459 do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5467 fi
5468 done
5469 done
5470 IFS=$as_save_IFS
5471
5472 ;;
5473 esac
5474 fi
5475 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5476 if test -n "$PKG_CONFIG"; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5478 $as_echo "$PKG_CONFIG" >&6; }
5479 else
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481 $as_echo "no" >&6; }
5482 fi
5483
5484
5485 fi
5486 if test -z "$ac_cv_path_PKG_CONFIG"; then
5487 ac_pt_PKG_CONFIG=$PKG_CONFIG
5488 # Extract the first word of "pkg-config", so it can be a program name with args.
5489 set dummy pkg-config; ac_word=$2
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491 $as_echo_n "checking for $ac_word... " >&6; }
5492 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 case $ac_pt_PKG_CONFIG in
5496 [\\/]* | ?:[\\/]*)
5497 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5498 ;;
5499 *)
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5502 do
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5507 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 break 2
5510 fi
5511 done
5512 done
5513 IFS=$as_save_IFS
5514
5515 ;;
5516 esac
5517 fi
5518 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5519 if test -n "$ac_pt_PKG_CONFIG"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5521 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5522 else
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5525 fi
5526
5527 if test "x$ac_pt_PKG_CONFIG" = x; then
5528 PKG_CONFIG=""
5529 else
5530 case $cross_compiling:$ac_tool_warned in
5531 yes:)
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5534 ac_tool_warned=yes ;;
5535 esac
5536 PKG_CONFIG=$ac_pt_PKG_CONFIG
5537 fi
5538 else
5539 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5540 fi
5541
5542 fi
5543 if test -n "$PKG_CONFIG"; then
5544 _pkg_min_version=0.9.0
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5546 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5547 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5549 $as_echo "yes" >&6; }
5550 else
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5553 PKG_CONFIG=""
5554 fi
5555 fi
5556
5557 case `pwd` in
5558 *\ * | *\ *)
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5560 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5561 esac
5562
5563
5564
5565 macro_version='2.2.7a'
5566 macro_revision='1.3134'
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580 ltmain="$ac_aux_dir/ltmain.sh"
5581
5582 # Backslashify metacharacters that are still active within
5583 # double-quoted strings.
5584 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5585
5586 # Same as above, but do not quote variable references.
5587 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5588
5589 # Sed substitution to delay expansion of an escaped shell variable in a
5590 # double_quote_subst'ed string.
5591 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5592
5593 # Sed substitution to delay expansion of an escaped single quote.
5594 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5595
5596 # Sed substitution to avoid accidental globbing in evaled expressions
5597 no_glob_subst='s/\*/\\\*/g'
5598
5599 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5600 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5601 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5602
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5604 $as_echo_n "checking how to print strings... " >&6; }
5605 # Test print first, because it will be a builtin if present.
5606 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5607 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5608 ECHO='print -r --'
5609 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5610 ECHO='printf %s\n'
5611 else
5612 # Use this function as a fallback that always works.
5613 func_fallback_echo ()
5614 {
5615 eval 'cat <<_LTECHO_EOF
5616 $1
5617 _LTECHO_EOF'
5618 }
5619 ECHO='func_fallback_echo'
5620 fi
5621
5622 # func_echo_all arg...
5623 # Invoke $ECHO with all args, space-separated.
5624 func_echo_all ()
5625 {
5626 $ECHO ""
5627 }
5628
5629 case "$ECHO" in
5630 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5631 $as_echo "printf" >&6; } ;;
5632 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5633 $as_echo "print -r" >&6; } ;;
5634 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5635 $as_echo "cat" >&6; } ;;
5636 esac
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5652 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5653 if ${ac_cv_path_SED+:} false; then :
5654 $as_echo_n "(cached) " >&6
5655 else
5656 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5657 for ac_i in 1 2 3 4 5 6 7; do
5658 ac_script="$ac_script$as_nl$ac_script"
5659 done
5660 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5661 { ac_script=; unset ac_script;}
5662 if test -z "$SED"; then
5663 ac_path_SED_found=false
5664 # Loop through the user's path and test for each of PROGNAME-LIST
5665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 for as_dir in $PATH
5667 do
5668 IFS=$as_save_IFS
5669 test -z "$as_dir" && as_dir=.
5670 for ac_prog in sed gsed; do
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5673 as_fn_executable_p "$ac_path_SED" || continue
5674 # Check for GNU ac_path_SED and select it if it is found.
5675 # Check for GNU $ac_path_SED
5676 case `"$ac_path_SED" --version 2>&1` in
5677 *GNU*)
5678 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5679 *)
5680 ac_count=0
5681 $as_echo_n 0123456789 >"conftest.in"
5682 while :
5683 do
5684 cat "conftest.in" "conftest.in" >"conftest.tmp"
5685 mv "conftest.tmp" "conftest.in"
5686 cp "conftest.in" "conftest.nl"
5687 $as_echo '' >> "conftest.nl"
5688 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5690 as_fn_arith $ac_count + 1 && ac_count=$as_val
5691 if test $ac_count -gt ${ac_path_SED_max-0}; then
5692 # Best one so far, save it but keep looking for a better one
5693 ac_cv_path_SED="$ac_path_SED"
5694 ac_path_SED_max=$ac_count
5695 fi
5696 # 10*(2^10) chars as input seems more than enough
5697 test $ac_count -gt 10 && break
5698 done
5699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5700 esac
5701
5702 $ac_path_SED_found && break 3
5703 done
5704 done
5705 done
5706 IFS=$as_save_IFS
5707 if test -z "$ac_cv_path_SED"; then
5708 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5709 fi
5710 else
5711 ac_cv_path_SED=$SED
5712 fi
5713
5714 fi
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5716 $as_echo "$ac_cv_path_SED" >&6; }
5717 SED="$ac_cv_path_SED"
5718 rm -f conftest.sed
5719
5720 test -z "$SED" && SED=sed
5721 Xsed="$SED -e 1s/^X//"
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5734 $as_echo_n "checking for fgrep... " >&6; }
5735 if ${ac_cv_path_FGREP+:} false; then :
5736 $as_echo_n "(cached) " >&6
5737 else
5738 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5739 then ac_cv_path_FGREP="$GREP -F"
5740 else
5741 if test -z "$FGREP"; then
5742 ac_path_FGREP_found=false
5743 # Loop through the user's path and test for each of PROGNAME-LIST
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5746 do
5747 IFS=$as_save_IFS
5748 test -z "$as_dir" && as_dir=.
5749 for ac_prog in fgrep; do
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5752 as_fn_executable_p "$ac_path_FGREP" || continue
5753 # Check for GNU ac_path_FGREP and select it if it is found.
5754 # Check for GNU $ac_path_FGREP
5755 case `"$ac_path_FGREP" --version 2>&1` in
5756 *GNU*)
5757 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5758 *)
5759 ac_count=0
5760 $as_echo_n 0123456789 >"conftest.in"
5761 while :
5762 do
5763 cat "conftest.in" "conftest.in" >"conftest.tmp"
5764 mv "conftest.tmp" "conftest.in"
5765 cp "conftest.in" "conftest.nl"
5766 $as_echo 'FGREP' >> "conftest.nl"
5767 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5769 as_fn_arith $ac_count + 1 && ac_count=$as_val
5770 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5771 # Best one so far, save it but keep looking for a better one
5772 ac_cv_path_FGREP="$ac_path_FGREP"
5773 ac_path_FGREP_max=$ac_count
5774 fi
5775 # 10*(2^10) chars as input seems more than enough
5776 test $ac_count -gt 10 && break
5777 done
5778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5779 esac
5780
5781 $ac_path_FGREP_found && break 3
5782 done
5783 done
5784 done
5785 IFS=$as_save_IFS
5786 if test -z "$ac_cv_path_FGREP"; then
5787 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5788 fi
5789 else
5790 ac_cv_path_FGREP=$FGREP
5791 fi
5792
5793 fi
5794 fi
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5796 $as_echo "$ac_cv_path_FGREP" >&6; }
5797 FGREP="$ac_cv_path_FGREP"
5798
5799
5800 test -z "$GREP" && GREP=grep
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820 # Check whether --with-gnu-ld was given.
5821 if test "${with_gnu_ld+set}" = set; then :
5822 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5823 else
5824 with_gnu_ld=no
5825 fi
5826
5827 ac_prog=ld
5828 if test "$GCC" = yes; then
5829 # Check if gcc -print-prog-name=ld gives a path.
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5831 $as_echo_n "checking for ld used by $CC... " >&6; }
5832 case $host in
5833 *-*-mingw*)
5834 # gcc leaves a trailing carriage return which upsets mingw
5835 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5836 *)
5837 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5838 esac
5839 case $ac_prog in
5840 # Accept absolute paths.
5841 [\\/]* | ?:[\\/]*)
5842 re_direlt='/[^/][^/]*/\.\./'
5843 # Canonicalize the pathname of ld
5844 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5845 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5846 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5847 done
5848 test -z "$LD" && LD="$ac_prog"
5849 ;;
5850 "")
5851 # If it fails, then pretend we aren't using GCC.
5852 ac_prog=ld
5853 ;;
5854 *)
5855 # If it is relative, then search for the first ld in PATH.
5856 with_gnu_ld=unknown
5857 ;;
5858 esac
5859 elif test "$with_gnu_ld" = yes; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5861 $as_echo_n "checking for GNU ld... " >&6; }
5862 else
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5864 $as_echo_n "checking for non-GNU ld... " >&6; }
5865 fi
5866 if ${lt_cv_path_LD+:} false; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 if test -z "$LD"; then
5870 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5871 for ac_dir in $PATH; do
5872 IFS="$lt_save_ifs"
5873 test -z "$ac_dir" && ac_dir=.
5874 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5875 lt_cv_path_LD="$ac_dir/$ac_prog"
5876 # Check to see if the program is GNU ld. I'd rather use --version,
5877 # but apparently some variants of GNU ld only accept -v.
5878 # Break only if it was the GNU/non-GNU ld that we prefer.
5879 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5880 *GNU* | *'with BFD'*)
5881 test "$with_gnu_ld" != no && break
5882 ;;
5883 *)
5884 test "$with_gnu_ld" != yes && break
5885 ;;
5886 esac
5887 fi
5888 done
5889 IFS="$lt_save_ifs"
5890 else
5891 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5892 fi
5893 fi
5894
5895 LD="$lt_cv_path_LD"
5896 if test -n "$LD"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5898 $as_echo "$LD" >&6; }
5899 else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5902 fi
5903 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5905 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5906 if ${lt_cv_prog_gnu_ld+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5910 case `$LD -v 2>&1 </dev/null` in
5911 *GNU* | *'with BFD'*)
5912 lt_cv_prog_gnu_ld=yes
5913 ;;
5914 *)
5915 lt_cv_prog_gnu_ld=no
5916 ;;
5917 esac
5918 fi
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5920 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5921 with_gnu_ld=$lt_cv_prog_gnu_ld
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5932 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5933 if ${lt_cv_path_NM+:} false; then :
5934 $as_echo_n "(cached) " >&6
5935 else
5936 if test -n "$NM"; then
5937 # Let the user override the nm to test.
5938 lt_nm_to_check="$NM"
5939 else
5940 lt_nm_to_check="${ac_tool_prefix}nm"
5941 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5942 lt_nm_to_check="$lt_nm_to_check nm"
5943 fi
5944 fi
5945 for lt_tmp_nm in "$lt_nm_to_check"; do
5946 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5947 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5948 IFS="$lt_save_ifs"
5949 test -z "$ac_dir" && ac_dir=.
5950 # Strip out any user-provided options from the nm to test twice,
5951 # the first time to test to see if nm (rather than its options) has
5952 # an explicit path, the second time to yield a file which can be
5953 # nm'ed itself.
5954 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5955 case "$tmp_nm_path" in
5956 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5957 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5958 esac
5959 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5960 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5961 # Check to see if the nm accepts a BSD-compat flag.
5962 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5963 # nm: unknown option "B" ignored
5964 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5965 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5966 break
5967 ;;
5968 *)
5969 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5970 *$tmp_nm*)
5971 lt_cv_path_NM="$tmp_nm -p"
5972 break
5973 ;;
5974 *)
5975 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5976 continue # so that we can try to find one that supports BSD flags
5977 ;;
5978 esac
5979 ;;
5980 esac
5981 fi
5982 done
5983 IFS="$lt_save_ifs"
5984 done
5985 : ${lt_cv_path_NM=no}
5986 fi
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5988 $as_echo "$lt_cv_path_NM" >&6; }
5989 if test "$lt_cv_path_NM" != "no"; then
5990 NM="$lt_cv_path_NM"
5991 else
5992 # Didn't find any BSD compatible name lister, look for dumpbin.
5993 if test -n "$DUMPBIN"; then :
5994 # Let the user override the test.
5995 else
5996 if test -n "$ac_tool_prefix"; then
5997 for ac_prog in dumpbin "link -dump"
5998 do
5999 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6000 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if ${ac_cv_prog_DUMPBIN+:} false; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 if test -n "$DUMPBIN"; then
6007 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 break 2
6019 fi
6020 done
6021 done
6022 IFS=$as_save_IFS
6023
6024 fi
6025 fi
6026 DUMPBIN=$ac_cv_prog_DUMPBIN
6027 if test -n "$DUMPBIN"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6029 $as_echo "$DUMPBIN" >&6; }
6030 else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 $as_echo "no" >&6; }
6033 fi
6034
6035
6036 test -n "$DUMPBIN" && break
6037 done
6038 fi
6039 if test -z "$DUMPBIN"; then
6040 ac_ct_DUMPBIN=$DUMPBIN
6041 for ac_prog in dumpbin "link -dump"
6042 do
6043 # Extract the first word of "$ac_prog", so it can be a program name with args.
6044 set dummy $ac_prog; ac_word=$2
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6046 $as_echo_n "checking for $ac_word... " >&6; }
6047 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6048 $as_echo_n "(cached) " >&6
6049 else
6050 if test -n "$ac_ct_DUMPBIN"; then
6051 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6055 do
6056 IFS=$as_save_IFS
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6060 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 break 2
6063 fi
6064 done
6065 done
6066 IFS=$as_save_IFS
6067
6068 fi
6069 fi
6070 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6071 if test -n "$ac_ct_DUMPBIN"; then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6073 $as_echo "$ac_ct_DUMPBIN" >&6; }
6074 else
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6077 fi
6078
6079
6080 test -n "$ac_ct_DUMPBIN" && break
6081 done
6082
6083 if test "x$ac_ct_DUMPBIN" = x; then
6084 DUMPBIN=":"
6085 else
6086 case $cross_compiling:$ac_tool_warned in
6087 yes:)
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6090 ac_tool_warned=yes ;;
6091 esac
6092 DUMPBIN=$ac_ct_DUMPBIN
6093 fi
6094 fi
6095
6096 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6097 *COFF*)
6098 DUMPBIN="$DUMPBIN -symbols"
6099 ;;
6100 *)
6101 DUMPBIN=:
6102 ;;
6103 esac
6104 fi
6105
6106 if test "$DUMPBIN" != ":"; then
6107 NM="$DUMPBIN"
6108 fi
6109 fi
6110 test -z "$NM" && NM=nm
6111
6112
6113
6114
6115
6116
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6118 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6119 if ${lt_cv_nm_interface+:} false; then :
6120 $as_echo_n "(cached) " >&6
6121 else
6122 lt_cv_nm_interface="BSD nm"
6123 echo "int some_variable = 0;" > conftest.$ac_ext
6124 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6125 (eval "$ac_compile" 2>conftest.err)
6126 cat conftest.err >&5
6127 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6128 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6129 cat conftest.err >&5
6130 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6131 cat conftest.out >&5
6132 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6133 lt_cv_nm_interface="MS dumpbin"
6134 fi
6135 rm -f conftest*
6136 fi
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6138 $as_echo "$lt_cv_nm_interface" >&6; }
6139
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6141 $as_echo_n "checking whether ln -s works... " >&6; }
6142 LN_S=$as_ln_s
6143 if test "$LN_S" = "ln -s"; then
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6145 $as_echo "yes" >&6; }
6146 else
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6148 $as_echo "no, using $LN_S" >&6; }
6149 fi
6150
6151 # find the maximum length of command line arguments
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6153 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6154 if ${lt_cv_sys_max_cmd_len+:} false; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 i=0
6158 teststring="ABCD"
6159
6160 case $build_os in
6161 msdosdjgpp*)
6162 # On DJGPP, this test can blow up pretty badly due to problems in libc
6163 # (any single argument exceeding 2000 bytes causes a buffer overrun
6164 # during glob expansion). Even if it were fixed, the result of this
6165 # check would be larger than it should be.
6166 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6167 ;;
6168
6169 gnu*)
6170 # Under GNU Hurd, this test is not required because there is
6171 # no limit to the length of command line arguments.
6172 # Libtool will interpret -1 as no limit whatsoever
6173 lt_cv_sys_max_cmd_len=-1;
6174 ;;
6175
6176 cygwin* | mingw* | cegcc*)
6177 # On Win9x/ME, this test blows up -- it succeeds, but takes
6178 # about 5 minutes as the teststring grows exponentially.
6179 # Worse, since 9x/ME are not pre-emptively multitasking,
6180 # you end up with a "frozen" computer, even though with patience
6181 # the test eventually succeeds (with a max line length of 256k).
6182 # Instead, let's just punt: use the minimum linelength reported by
6183 # all of the supported platforms: 8192 (on NT/2K/XP).
6184 lt_cv_sys_max_cmd_len=8192;
6185 ;;
6186
6187 mint*)
6188 # On MiNT this can take a long time and run out of memory.
6189 lt_cv_sys_max_cmd_len=8192;
6190 ;;
6191
6192 amigaos*)
6193 # On AmigaOS with pdksh, this test takes hours, literally.
6194 # So we just punt and use a minimum line length of 8192.
6195 lt_cv_sys_max_cmd_len=8192;
6196 ;;
6197
6198 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6199 # This has been around since 386BSD, at least. Likely further.
6200 if test -x /sbin/sysctl; then
6201 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6202 elif test -x /usr/sbin/sysctl; then
6203 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6204 else
6205 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6206 fi
6207 # And add a safety zone
6208 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6210 ;;
6211
6212 interix*)
6213 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6214 lt_cv_sys_max_cmd_len=196608
6215 ;;
6216
6217 osf*)
6218 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6219 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6220 # nice to cause kernel panics so lets avoid the loop below.
6221 # First set a reasonable default.
6222 lt_cv_sys_max_cmd_len=16384
6223 #
6224 if test -x /sbin/sysconfig; then
6225 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6226 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6227 esac
6228 fi
6229 ;;
6230 sco3.2v5*)
6231 lt_cv_sys_max_cmd_len=102400
6232 ;;
6233 sysv5* | sco5v6* | sysv4.2uw2*)
6234 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6235 if test -n "$kargmax"; then
6236 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6237 else
6238 lt_cv_sys_max_cmd_len=32768
6239 fi
6240 ;;
6241 *)
6242 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6243 if test -n "$lt_cv_sys_max_cmd_len"; then
6244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6246 else
6247 # Make teststring a little bigger before we do anything with it.
6248 # a 1K string should be a reasonable start.
6249 for i in 1 2 3 4 5 6 7 8 ; do
6250 teststring=$teststring$teststring
6251 done
6252 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6253 # If test is not a shell built-in, we'll probably end up computing a
6254 # maximum length that is only half of the actual maximum length, but
6255 # we can't tell.
6256 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6257 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6258 test $i != 17 # 1/2 MB should be enough
6259 do
6260 i=`expr $i + 1`
6261 teststring=$teststring$teststring
6262 done
6263 # Only check the string length outside the loop.
6264 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6265 teststring=
6266 # Add a significant safety factor because C++ compilers can tack on
6267 # massive amounts of additional arguments before passing them to the
6268 # linker. It appears as though 1/2 is a usable value.
6269 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6270 fi
6271 ;;
6272 esac
6273
6274 fi
6275
6276 if test -n $lt_cv_sys_max_cmd_len ; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6278 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6279 else
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6281 $as_echo "none" >&6; }
6282 fi
6283 max_cmd_len=$lt_cv_sys_max_cmd_len
6284
6285
6286
6287
6288
6289
6290 : ${CP="cp -f"}
6291 : ${MV="mv -f"}
6292 : ${RM="rm -f"}
6293
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6295 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6296 # Try some XSI features
6297 xsi_shell=no
6298 ( _lt_dummy="a/b/c"
6299 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6300 = c,a/b,, \
6301 && eval 'test $(( 1 + 1 )) -eq 2 \
6302 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6303 && xsi_shell=yes
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6305 $as_echo "$xsi_shell" >&6; }
6306
6307
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6309 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6310 lt_shell_append=no
6311 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6312 >/dev/null 2>&1 \
6313 && lt_shell_append=yes
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6315 $as_echo "$lt_shell_append" >&6; }
6316
6317
6318 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6319 lt_unset=unset
6320 else
6321 lt_unset=false
6322 fi
6323
6324
6325
6326
6327
6328 # test EBCDIC or ASCII
6329 case `echo X|tr X '\101'` in
6330 A) # ASCII based system
6331 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6332 lt_SP2NL='tr \040 \012'
6333 lt_NL2SP='tr \015\012 \040\040'
6334 ;;
6335 *) # EBCDIC based system
6336 lt_SP2NL='tr \100 \n'
6337 lt_NL2SP='tr \r\n \100\100'
6338 ;;
6339 esac
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6350 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6351 if ${lt_cv_ld_reload_flag+:} false; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 lt_cv_ld_reload_flag='-r'
6355 fi
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6357 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6358 reload_flag=$lt_cv_ld_reload_flag
6359 case $reload_flag in
6360 "" | " "*) ;;
6361 *) reload_flag=" $reload_flag" ;;
6362 esac
6363 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6364 case $host_os in
6365 darwin*)
6366 if test "$GCC" = yes; then
6367 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6368 else
6369 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6370 fi
6371 ;;
6372 esac
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382 if test -n "$ac_tool_prefix"; then
6383 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6384 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386 $as_echo_n "checking for $ac_word... " >&6; }
6387 if ${ac_cv_prog_OBJDUMP+:} false; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390 if test -n "$OBJDUMP"; then
6391 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6392 else
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 for as_dir in $PATH
6395 do
6396 IFS=$as_save_IFS
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6400 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6402 break 2
6403 fi
6404 done
6405 done
6406 IFS=$as_save_IFS
6407
6408 fi
6409 fi
6410 OBJDUMP=$ac_cv_prog_OBJDUMP
6411 if test -n "$OBJDUMP"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6413 $as_echo "$OBJDUMP" >&6; }
6414 else
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6417 fi
6418
6419
6420 fi
6421 if test -z "$ac_cv_prog_OBJDUMP"; then
6422 ac_ct_OBJDUMP=$OBJDUMP
6423 # Extract the first word of "objdump", so it can be a program name with args.
6424 set dummy objdump; ac_word=$2
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426 $as_echo_n "checking for $ac_word... " >&6; }
6427 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 if test -n "$ac_ct_OBJDUMP"; then
6431 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6432 else
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 for as_dir in $PATH
6435 do
6436 IFS=$as_save_IFS
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6440 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 break 2
6443 fi
6444 done
6445 done
6446 IFS=$as_save_IFS
6447
6448 fi
6449 fi
6450 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6451 if test -n "$ac_ct_OBJDUMP"; then
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6453 $as_echo "$ac_ct_OBJDUMP" >&6; }
6454 else
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456 $as_echo "no" >&6; }
6457 fi
6458
6459 if test "x$ac_ct_OBJDUMP" = x; then
6460 OBJDUMP="false"
6461 else
6462 case $cross_compiling:$ac_tool_warned in
6463 yes:)
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6466 ac_tool_warned=yes ;;
6467 esac
6468 OBJDUMP=$ac_ct_OBJDUMP
6469 fi
6470 else
6471 OBJDUMP="$ac_cv_prog_OBJDUMP"
6472 fi
6473
6474 test -z "$OBJDUMP" && OBJDUMP=objdump
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6485 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6486 if ${lt_cv_deplibs_check_method+:} false; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 lt_cv_file_magic_cmd='$MAGIC_CMD'
6490 lt_cv_file_magic_test_file=
6491 lt_cv_deplibs_check_method='unknown'
6492 # Need to set the preceding variable on all platforms that support
6493 # interlibrary dependencies.
6494 # 'none' -- dependencies not supported.
6495 # `unknown' -- same as none, but documents that we really don't know.
6496 # 'pass_all' -- all dependencies passed with no checks.
6497 # 'test_compile' -- check by making test program.
6498 # 'file_magic [[regex]]' -- check by looking for files in library path
6499 # which responds to the $file_magic_cmd with a given extended regex.
6500 # If you have `file' or equivalent on your system and you're not sure
6501 # whether `pass_all' will *always* work, you probably want this one.
6502
6503 case $host_os in
6504 aix[4-9]*)
6505 lt_cv_deplibs_check_method=pass_all
6506 ;;
6507
6508 beos*)
6509 lt_cv_deplibs_check_method=pass_all
6510 ;;
6511
6512 bsdi[45]*)
6513 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6514 lt_cv_file_magic_cmd='/usr/bin/file -L'
6515 lt_cv_file_magic_test_file=/shlib/libc.so
6516 ;;
6517
6518 cygwin*)
6519 # func_win32_libid is a shell function defined in ltmain.sh
6520 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6521 lt_cv_file_magic_cmd='func_win32_libid'
6522 ;;
6523
6524 mingw* | pw32*)
6525 # Base MSYS/MinGW do not provide the 'file' command needed by
6526 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6527 # unless we find 'file', for example because we are cross-compiling.
6528 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6529 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6530 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6531 lt_cv_file_magic_cmd='func_win32_libid'
6532 else
6533 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6534 lt_cv_file_magic_cmd='$OBJDUMP -f'
6535 fi
6536 ;;
6537
6538 cegcc*)
6539 # use the weaker test based on 'objdump'. See mingw*.
6540 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6541 lt_cv_file_magic_cmd='$OBJDUMP -f'
6542 ;;
6543
6544 darwin* | rhapsody*)
6545 lt_cv_deplibs_check_method=pass_all
6546 ;;
6547
6548 freebsd* | dragonfly*)
6549 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6550 case $host_cpu in
6551 i*86 )
6552 # Not sure whether the presence of OpenBSD here was a mistake.
6553 # Let's accept both of them until this is cleared up.
6554 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6555 lt_cv_file_magic_cmd=/usr/bin/file
6556 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6557 ;;
6558 esac
6559 else
6560 lt_cv_deplibs_check_method=pass_all
6561 fi
6562 ;;
6563
6564 gnu*)
6565 lt_cv_deplibs_check_method=pass_all
6566 ;;
6567
6568 haiku*)
6569 lt_cv_deplibs_check_method=pass_all
6570 ;;
6571
6572 hpux10.20* | hpux11*)
6573 lt_cv_file_magic_cmd=/usr/bin/file
6574 case $host_cpu in
6575 ia64*)
6576 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6577 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6578 ;;
6579 hppa*64*)
6580 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]'
6581 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6582 ;;
6583 *)
6584 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6585 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6586 ;;
6587 esac
6588 ;;
6589
6590 interix[3-9]*)
6591 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6593 ;;
6594
6595 irix5* | irix6* | nonstopux*)
6596 case $LD in
6597 *-32|*"-32 ") libmagic=32-bit;;
6598 *-n32|*"-n32 ") libmagic=N32;;
6599 *-64|*"-64 ") libmagic=64-bit;;
6600 *) libmagic=never-match;;
6601 esac
6602 lt_cv_deplibs_check_method=pass_all
6603 ;;
6604
6605 # This must be Linux ELF.
6606 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6607 lt_cv_deplibs_check_method=pass_all
6608 ;;
6609
6610 netbsd*)
6611 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6613 else
6614 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6615 fi
6616 ;;
6617
6618 newos6*)
6619 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6620 lt_cv_file_magic_cmd=/usr/bin/file
6621 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6622 ;;
6623
6624 *nto* | *qnx*)
6625 lt_cv_deplibs_check_method=pass_all
6626 ;;
6627
6628 openbsd*)
6629 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6630 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6631 else
6632 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6633 fi
6634 ;;
6635
6636 osf3* | osf4* | osf5*)
6637 lt_cv_deplibs_check_method=pass_all
6638 ;;
6639
6640 rdos*)
6641 lt_cv_deplibs_check_method=pass_all
6642 ;;
6643
6644 solaris*)
6645 lt_cv_deplibs_check_method=pass_all
6646 ;;
6647
6648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6649 lt_cv_deplibs_check_method=pass_all
6650 ;;
6651
6652 sysv4 | sysv4.3*)
6653 case $host_vendor in
6654 motorola)
6655 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]'
6656 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6657 ;;
6658 ncr)
6659 lt_cv_deplibs_check_method=pass_all
6660 ;;
6661 sequent)
6662 lt_cv_file_magic_cmd='/bin/file'
6663 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6664 ;;
6665 sni)
6666 lt_cv_file_magic_cmd='/bin/file'
6667 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6668 lt_cv_file_magic_test_file=/lib/libc.so
6669 ;;
6670 siemens)
6671 lt_cv_deplibs_check_method=pass_all
6672 ;;
6673 pc)
6674 lt_cv_deplibs_check_method=pass_all
6675 ;;
6676 esac
6677 ;;
6678
6679 tpf*)
6680 lt_cv_deplibs_check_method=pass_all
6681 ;;
6682 vxworks*)
6683 # Assume VxWorks cross toolchains are built on Linux, possibly
6684 # as canadian for Windows hosts.
6685 lt_cv_deplibs_check_method=pass_all
6686 ;;
6687 esac
6688
6689 fi
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6691 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6692 file_magic_cmd=$lt_cv_file_magic_cmd
6693 deplibs_check_method=$lt_cv_deplibs_check_method
6694 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707 plugin_option=
6708 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6709 for plugin in $plugin_names; do
6710 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6711 if test x$plugin_so = x$plugin; then
6712 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6713 fi
6714 if test x$plugin_so != x$plugin; then
6715 plugin_option="--plugin $plugin_so"
6716 break
6717 fi
6718 done
6719
6720 if test -n "$ac_tool_prefix"; then
6721 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6722 set dummy ${ac_tool_prefix}ar; ac_word=$2
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724 $as_echo_n "checking for $ac_word... " >&6; }
6725 if ${ac_cv_prog_AR+:} false; then :
6726 $as_echo_n "(cached) " >&6
6727 else
6728 if test -n "$AR"; then
6729 ac_cv_prog_AR="$AR" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6738 ac_cv_prog_AR="${ac_tool_prefix}ar"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6741 fi
6742 done
6743 done
6744 IFS=$as_save_IFS
6745
6746 fi
6747 fi
6748 AR=$ac_cv_prog_AR
6749 if test -n "$AR"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6751 $as_echo "$AR" >&6; }
6752 else
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 $as_echo "no" >&6; }
6755 fi
6756
6757
6758 fi
6759 if test -z "$ac_cv_prog_AR"; then
6760 ac_ct_AR=$AR
6761 # Extract the first word of "ar", so it can be a program name with args.
6762 set dummy ar; ac_word=$2
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764 $as_echo_n "checking for $ac_word... " >&6; }
6765 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6766 $as_echo_n "(cached) " >&6
6767 else
6768 if test -n "$ac_ct_AR"; then
6769 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6770 else
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6773 do
6774 IFS=$as_save_IFS
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6778 ac_cv_prog_ac_ct_AR="ar"
6779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 break 2
6781 fi
6782 done
6783 done
6784 IFS=$as_save_IFS
6785
6786 fi
6787 fi
6788 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6789 if test -n "$ac_ct_AR"; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6791 $as_echo "$ac_ct_AR" >&6; }
6792 else
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794 $as_echo "no" >&6; }
6795 fi
6796
6797 if test "x$ac_ct_AR" = x; then
6798 AR="false"
6799 else
6800 case $cross_compiling:$ac_tool_warned in
6801 yes:)
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6804 ac_tool_warned=yes ;;
6805 esac
6806 AR=$ac_ct_AR
6807 fi
6808 else
6809 AR="$ac_cv_prog_AR"
6810 fi
6811
6812 test -z "$AR" && AR=ar
6813 if test -n "$plugin_option"; then
6814 if $AR --help 2>&1 | grep -q "\--plugin"; then
6815 touch conftest.c
6816 $AR $plugin_option rc conftest.a conftest.c
6817 if test "$?" != 0; then
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6819 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6820 else
6821 AR="$AR $plugin_option"
6822 fi
6823 rm -f conftest.*
6824 fi
6825 fi
6826 test -z "$AR_FLAGS" && AR_FLAGS=cru
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838 if test -n "$ac_tool_prefix"; then
6839 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6840 set dummy ${ac_tool_prefix}strip; ac_word=$2
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842 $as_echo_n "checking for $ac_word... " >&6; }
6843 if ${ac_cv_prog_STRIP+:} false; then :
6844 $as_echo_n "(cached) " >&6
6845 else
6846 if test -n "$STRIP"; then
6847 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6848 else
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6851 do
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6856 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 break 2
6859 fi
6860 done
6861 done
6862 IFS=$as_save_IFS
6863
6864 fi
6865 fi
6866 STRIP=$ac_cv_prog_STRIP
6867 if test -n "$STRIP"; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6869 $as_echo "$STRIP" >&6; }
6870 else
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 $as_echo "no" >&6; }
6873 fi
6874
6875
6876 fi
6877 if test -z "$ac_cv_prog_STRIP"; then
6878 ac_ct_STRIP=$STRIP
6879 # Extract the first word of "strip", so it can be a program name with args.
6880 set dummy strip; ac_word=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 if test -n "$ac_ct_STRIP"; then
6887 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6896 ac_cv_prog_ac_ct_STRIP="strip"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900 done
6901 done
6902 IFS=$as_save_IFS
6903
6904 fi
6905 fi
6906 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6907 if test -n "$ac_ct_STRIP"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6909 $as_echo "$ac_ct_STRIP" >&6; }
6910 else
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6913 fi
6914
6915 if test "x$ac_ct_STRIP" = x; then
6916 STRIP=":"
6917 else
6918 case $cross_compiling:$ac_tool_warned in
6919 yes:)
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6922 ac_tool_warned=yes ;;
6923 esac
6924 STRIP=$ac_ct_STRIP
6925 fi
6926 else
6927 STRIP="$ac_cv_prog_STRIP"
6928 fi
6929
6930 test -z "$STRIP" && STRIP=:
6931
6932
6933
6934
6935
6936
6937 if test -n "$ac_tool_prefix"; then
6938 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6939 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if ${ac_cv_prog_RANLIB+:} false; then :
6943 $as_echo_n "(cached) " >&6
6944 else
6945 if test -n "$RANLIB"; then
6946 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6958 fi
6959 done
6960 done
6961 IFS=$as_save_IFS
6962
6963 fi
6964 fi
6965 RANLIB=$ac_cv_prog_RANLIB
6966 if test -n "$RANLIB"; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6968 $as_echo "$RANLIB" >&6; }
6969 else
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6972 fi
6973
6974
6975 fi
6976 if test -z "$ac_cv_prog_RANLIB"; then
6977 ac_ct_RANLIB=$RANLIB
6978 # Extract the first word of "ranlib", so it can be a program name with args.
6979 set dummy ranlib; ac_word=$2
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 $as_echo_n "checking for $ac_word... " >&6; }
6982 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6983 $as_echo_n "(cached) " >&6
6984 else
6985 if test -n "$ac_ct_RANLIB"; then
6986 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6987 else
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6990 do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6995 ac_cv_prog_ac_ct_RANLIB="ranlib"
6996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6998 fi
6999 done
7000 done
7001 IFS=$as_save_IFS
7002
7003 fi
7004 fi
7005 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7006 if test -n "$ac_ct_RANLIB"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7008 $as_echo "$ac_ct_RANLIB" >&6; }
7009 else
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7012 fi
7013
7014 if test "x$ac_ct_RANLIB" = x; then
7015 RANLIB=":"
7016 else
7017 case $cross_compiling:$ac_tool_warned in
7018 yes:)
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7021 ac_tool_warned=yes ;;
7022 esac
7023 RANLIB=$ac_ct_RANLIB
7024 fi
7025 else
7026 RANLIB="$ac_cv_prog_RANLIB"
7027 fi
7028
7029 test -z "$RANLIB" && RANLIB=:
7030 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7031 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7032 RANLIB="$RANLIB $plugin_option"
7033 fi
7034 fi
7035
7036
7037
7038
7039
7040
7041 # Determine commands to create old-style static archives.
7042 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7043 old_postinstall_cmds='chmod 644 $oldlib'
7044 old_postuninstall_cmds=
7045
7046 if test -n "$RANLIB"; then
7047 case $host_os in
7048 openbsd*)
7049 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7050 ;;
7051 *)
7052 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7053 ;;
7054 esac
7055 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7056 fi
7057
7058 case $host_os in
7059 darwin*)
7060 lock_old_archive_extraction=yes ;;
7061 *)
7062 lock_old_archive_extraction=no ;;
7063 esac
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103 # If no C compiler was specified, use CC.
7104 LTCC=${LTCC-"$CC"}
7105
7106 # If no C compiler flags were specified, use CFLAGS.
7107 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7108
7109 # Allow CC to be a program name with arguments.
7110 compiler=$CC
7111
7112
7113 # Check for command to grab the raw symbol name followed by C symbol from nm.
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7115 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7116 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7117 $as_echo_n "(cached) " >&6
7118 else
7119
7120 # These are sane defaults that work on at least a few old systems.
7121 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7122
7123 # Character class describing NM global symbol codes.
7124 symcode='[BCDEGRST]'
7125
7126 # Regexp to match symbols that can be accessed directly from C.
7127 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7128
7129 # Define system-specific variables.
7130 case $host_os in
7131 aix*)
7132 symcode='[BCDT]'
7133 ;;
7134 cygwin* | mingw* | pw32* | cegcc*)
7135 symcode='[ABCDGISTW]'
7136 ;;
7137 hpux*)
7138 if test "$host_cpu" = ia64; then
7139 symcode='[ABCDEGRST]'
7140 fi
7141 ;;
7142 irix* | nonstopux*)
7143 symcode='[BCDEGRST]'
7144 ;;
7145 osf*)
7146 symcode='[BCDEGQRST]'
7147 ;;
7148 solaris*)
7149 symcode='[BCDRT]'
7150 ;;
7151 sco3.2v5*)
7152 symcode='[DT]'
7153 ;;
7154 sysv4.2uw2*)
7155 symcode='[DT]'
7156 ;;
7157 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7158 symcode='[ABDT]'
7159 ;;
7160 sysv4)
7161 symcode='[DFNSTU]'
7162 ;;
7163 esac
7164
7165 # If we're using GNU nm, then use its standard symbol codes.
7166 case `$NM -V 2>&1` in
7167 *GNU* | *'with BFD'*)
7168 symcode='[ABCDGIRSTW]' ;;
7169 esac
7170
7171 # Transform an extracted symbol line into a proper C declaration.
7172 # Some systems (esp. on ia64) link data and code symbols differently,
7173 # so use this general approach.
7174 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7175
7176 # Transform an extracted symbol line into symbol name and symbol address
7177 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7178 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'"
7179
7180 # Handle CRLF in mingw tool chain
7181 opt_cr=
7182 case $build_os in
7183 mingw*)
7184 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7185 ;;
7186 esac
7187
7188 # Try without a prefix underscore, then with it.
7189 for ac_symprfx in "" "_"; do
7190
7191 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7192 symxfrm="\\1 $ac_symprfx\\2 \\2"
7193
7194 # Write the raw and C identifiers.
7195 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7196 # Fake it for dumpbin and say T for any non-static function
7197 # and D for any global variable.
7198 # Also find C++ and __fastcall symbols from MSVC++,
7199 # which start with @ or ?.
7200 lt_cv_sys_global_symbol_pipe="$AWK '"\
7201 " {last_section=section; section=\$ 3};"\
7202 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7203 " \$ 0!~/External *\|/{next};"\
7204 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7205 " {if(hide[section]) next};"\
7206 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7207 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7208 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7209 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7210 " ' prfx=^$ac_symprfx"
7211 else
7212 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7213 fi
7214
7215 # Check to see that the pipe works correctly.
7216 pipe_works=no
7217
7218 rm -f conftest*
7219 cat > conftest.$ac_ext <<_LT_EOF
7220 #ifdef __cplusplus
7221 extern "C" {
7222 #endif
7223 char nm_test_var;
7224 void nm_test_func(void);
7225 void nm_test_func(void){}
7226 #ifdef __cplusplus
7227 }
7228 #endif
7229 int main(){nm_test_var='a';nm_test_func();return(0);}
7230 _LT_EOF
7231
7232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7233 (eval $ac_compile) 2>&5
7234 ac_status=$?
7235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7236 test $ac_status = 0; }; then
7237 # Now try to grab the symbols.
7238 nlist=conftest.nm
7239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7240 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7241 ac_status=$?
7242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7243 test $ac_status = 0; } && test -s "$nlist"; then
7244 # Try sorting and uniquifying the output.
7245 if sort "$nlist" | uniq > "$nlist"T; then
7246 mv -f "$nlist"T "$nlist"
7247 else
7248 rm -f "$nlist"T
7249 fi
7250
7251 # Make sure that we snagged all the symbols we need.
7252 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7253 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7254 cat <<_LT_EOF > conftest.$ac_ext
7255 #ifdef __cplusplus
7256 extern "C" {
7257 #endif
7258
7259 _LT_EOF
7260 # Now generate the symbol file.
7261 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7262
7263 cat <<_LT_EOF >> conftest.$ac_ext
7264
7265 /* The mapping between symbol names and symbols. */
7266 const struct {
7267 const char *name;
7268 void *address;
7269 }
7270 lt__PROGRAM__LTX_preloaded_symbols[] =
7271 {
7272 { "@PROGRAM@", (void *) 0 },
7273 _LT_EOF
7274 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7275 cat <<\_LT_EOF >> conftest.$ac_ext
7276 {0, (void *) 0}
7277 };
7278
7279 /* This works around a problem in FreeBSD linker */
7280 #ifdef FREEBSD_WORKAROUND
7281 static const void *lt_preloaded_setup() {
7282 return lt__PROGRAM__LTX_preloaded_symbols;
7283 }
7284 #endif
7285
7286 #ifdef __cplusplus
7287 }
7288 #endif
7289 _LT_EOF
7290 # Now try linking the two files.
7291 mv conftest.$ac_objext conftstm.$ac_objext
7292 lt_save_LIBS="$LIBS"
7293 lt_save_CFLAGS="$CFLAGS"
7294 LIBS="conftstm.$ac_objext"
7295 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7297 (eval $ac_link) 2>&5
7298 ac_status=$?
7299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7300 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7301 pipe_works=yes
7302 fi
7303 LIBS="$lt_save_LIBS"
7304 CFLAGS="$lt_save_CFLAGS"
7305 else
7306 echo "cannot find nm_test_func in $nlist" >&5
7307 fi
7308 else
7309 echo "cannot find nm_test_var in $nlist" >&5
7310 fi
7311 else
7312 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7313 fi
7314 else
7315 echo "$progname: failed program was:" >&5
7316 cat conftest.$ac_ext >&5
7317 fi
7318 rm -rf conftest* conftst*
7319
7320 # Do not use the global_symbol_pipe unless it works.
7321 if test "$pipe_works" = yes; then
7322 break
7323 else
7324 lt_cv_sys_global_symbol_pipe=
7325 fi
7326 done
7327
7328 fi
7329
7330 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7331 lt_cv_sys_global_symbol_to_cdecl=
7332 fi
7333 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7335 $as_echo "failed" >&6; }
7336 else
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7338 $as_echo "ok" >&6; }
7339 fi
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362 # Check whether --enable-libtool-lock was given.
7363 if test "${enable_libtool_lock+set}" = set; then :
7364 enableval=$enable_libtool_lock;
7365 fi
7366
7367 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7368
7369 # Some flags need to be propagated to the compiler or linker for good
7370 # libtool support.
7371 case $host in
7372 ia64-*-hpux*)
7373 # Find out which ABI we are using.
7374 echo 'int i;' > conftest.$ac_ext
7375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7376 (eval $ac_compile) 2>&5
7377 ac_status=$?
7378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7379 test $ac_status = 0; }; then
7380 case `/usr/bin/file conftest.$ac_objext` in
7381 *ELF-32*)
7382 HPUX_IA64_MODE="32"
7383 ;;
7384 *ELF-64*)
7385 HPUX_IA64_MODE="64"
7386 ;;
7387 esac
7388 fi
7389 rm -rf conftest*
7390 ;;
7391 *-*-irix6*)
7392 # Find out which ABI we are using.
7393 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7395 (eval $ac_compile) 2>&5
7396 ac_status=$?
7397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7398 test $ac_status = 0; }; then
7399 if test "$lt_cv_prog_gnu_ld" = yes; then
7400 case `/usr/bin/file conftest.$ac_objext` in
7401 *32-bit*)
7402 LD="${LD-ld} -melf32bsmip"
7403 ;;
7404 *N32*)
7405 LD="${LD-ld} -melf32bmipn32"
7406 ;;
7407 *64-bit*)
7408 LD="${LD-ld} -melf64bmip"
7409 ;;
7410 esac
7411 else
7412 case `/usr/bin/file conftest.$ac_objext` in
7413 *32-bit*)
7414 LD="${LD-ld} -32"
7415 ;;
7416 *N32*)
7417 LD="${LD-ld} -n32"
7418 ;;
7419 *64-bit*)
7420 LD="${LD-ld} -64"
7421 ;;
7422 esac
7423 fi
7424 fi
7425 rm -rf conftest*
7426 ;;
7427
7428 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7429 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7430 # Find out which ABI we are using.
7431 echo 'int i;' > conftest.$ac_ext
7432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7433 (eval $ac_compile) 2>&5
7434 ac_status=$?
7435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7436 test $ac_status = 0; }; then
7437 case `/usr/bin/file conftest.o` in
7438 *32-bit*)
7439 case $host in
7440 x86_64-*kfreebsd*-gnu)
7441 LD="${LD-ld} -m elf_i386_fbsd"
7442 ;;
7443 x86_64-*linux*)
7444 case `/usr/bin/file conftest.o` in
7445 *x86-64*)
7446 LD="${LD-ld} -m elf32_x86_64"
7447 ;;
7448 *)
7449 LD="${LD-ld} -m elf_i386"
7450 ;;
7451 esac
7452 ;;
7453 powerpc64le-*linux*)
7454 LD="${LD-ld} -m elf32lppclinux"
7455 ;;
7456 powerpc64-*linux*)
7457 LD="${LD-ld} -m elf32ppclinux"
7458 ;;
7459 s390x-*linux*)
7460 LD="${LD-ld} -m elf_s390"
7461 ;;
7462 sparc64-*linux*)
7463 LD="${LD-ld} -m elf32_sparc"
7464 ;;
7465 esac
7466 ;;
7467 *64-bit*)
7468 case $host in
7469 x86_64-*kfreebsd*-gnu)
7470 LD="${LD-ld} -m elf_x86_64_fbsd"
7471 ;;
7472 x86_64-*linux*)
7473 LD="${LD-ld} -m elf_x86_64"
7474 ;;
7475 powerpcle-*linux*)
7476 LD="${LD-ld} -m elf64lppc"
7477 ;;
7478 powerpc-*linux*)
7479 LD="${LD-ld} -m elf64ppc"
7480 ;;
7481 s390*-*linux*|s390*-*tpf*)
7482 LD="${LD-ld} -m elf64_s390"
7483 ;;
7484 sparc*-*linux*)
7485 LD="${LD-ld} -m elf64_sparc"
7486 ;;
7487 esac
7488 ;;
7489 esac
7490 fi
7491 rm -rf conftest*
7492 ;;
7493
7494 *-*-sco3.2v5*)
7495 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7496 SAVE_CFLAGS="$CFLAGS"
7497 CFLAGS="$CFLAGS -belf"
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7499 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7500 if ${lt_cv_cc_needs_belf+:} false; then :
7501 $as_echo_n "(cached) " >&6
7502 else
7503 ac_ext=c
7504 ac_cpp='$CPP $CPPFLAGS'
7505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7508
7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h. */
7511
7512 int
7513 main ()
7514 {
7515
7516 ;
7517 return 0;
7518 }
7519 _ACEOF
7520 if ac_fn_c_try_link "$LINENO"; then :
7521 lt_cv_cc_needs_belf=yes
7522 else
7523 lt_cv_cc_needs_belf=no
7524 fi
7525 rm -f core conftest.err conftest.$ac_objext \
7526 conftest$ac_exeext conftest.$ac_ext
7527 ac_ext=c
7528 ac_cpp='$CPP $CPPFLAGS'
7529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7532
7533 fi
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7535 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7536 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7537 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7538 CFLAGS="$SAVE_CFLAGS"
7539 fi
7540 ;;
7541 sparc*-*solaris*)
7542 # Find out which ABI we are using.
7543 echo 'int i;' > conftest.$ac_ext
7544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7545 (eval $ac_compile) 2>&5
7546 ac_status=$?
7547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7548 test $ac_status = 0; }; then
7549 case `/usr/bin/file conftest.o` in
7550 *64-bit*)
7551 case $lt_cv_prog_gnu_ld in
7552 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7553 *)
7554 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7555 LD="${LD-ld} -64"
7556 fi
7557 ;;
7558 esac
7559 ;;
7560 esac
7561 fi
7562 rm -rf conftest*
7563 ;;
7564 esac
7565
7566 need_locks="$enable_libtool_lock"
7567
7568
7569 case $host_os in
7570 rhapsody* | darwin*)
7571 if test -n "$ac_tool_prefix"; then
7572 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7573 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575 $as_echo_n "checking for $ac_word... " >&6; }
7576 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7579 if test -n "$DSYMUTIL"; then
7580 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7581 else
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7584 do
7585 IFS=$as_save_IFS
7586 test -z "$as_dir" && as_dir=.
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7591 break 2
7592 fi
7593 done
7594 done
7595 IFS=$as_save_IFS
7596
7597 fi
7598 fi
7599 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7600 if test -n "$DSYMUTIL"; then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7602 $as_echo "$DSYMUTIL" >&6; }
7603 else
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; }
7606 fi
7607
7608
7609 fi
7610 if test -z "$ac_cv_prog_DSYMUTIL"; then
7611 ac_ct_DSYMUTIL=$DSYMUTIL
7612 # Extract the first word of "dsymutil", so it can be a program name with args.
7613 set dummy dsymutil; ac_word=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619 if test -n "$ac_ct_DSYMUTIL"; then
7620 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7621 else
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 for as_dir in $PATH
7624 do
7625 IFS=$as_save_IFS
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7629 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 break 2
7632 fi
7633 done
7634 done
7635 IFS=$as_save_IFS
7636
7637 fi
7638 fi
7639 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7640 if test -n "$ac_ct_DSYMUTIL"; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7642 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7643 else
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7646 fi
7647
7648 if test "x$ac_ct_DSYMUTIL" = x; then
7649 DSYMUTIL=":"
7650 else
7651 case $cross_compiling:$ac_tool_warned in
7652 yes:)
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7655 ac_tool_warned=yes ;;
7656 esac
7657 DSYMUTIL=$ac_ct_DSYMUTIL
7658 fi
7659 else
7660 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7661 fi
7662
7663 if test -n "$ac_tool_prefix"; then
7664 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7665 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667 $as_echo_n "checking for $ac_word... " >&6; }
7668 if ${ac_cv_prog_NMEDIT+:} false; then :
7669 $as_echo_n "(cached) " >&6
7670 else
7671 if test -n "$NMEDIT"; then
7672 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7673 else
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 for as_dir in $PATH
7676 do
7677 IFS=$as_save_IFS
7678 test -z "$as_dir" && as_dir=.
7679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7681 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7683 break 2
7684 fi
7685 done
7686 done
7687 IFS=$as_save_IFS
7688
7689 fi
7690 fi
7691 NMEDIT=$ac_cv_prog_NMEDIT
7692 if test -n "$NMEDIT"; then
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7694 $as_echo "$NMEDIT" >&6; }
7695 else
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697 $as_echo "no" >&6; }
7698 fi
7699
7700
7701 fi
7702 if test -z "$ac_cv_prog_NMEDIT"; then
7703 ac_ct_NMEDIT=$NMEDIT
7704 # Extract the first word of "nmedit", so it can be a program name with args.
7705 set dummy nmedit; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 if test -n "$ac_ct_NMEDIT"; then
7712 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7713 else
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7721 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 break 2
7724 fi
7725 done
7726 done
7727 IFS=$as_save_IFS
7728
7729 fi
7730 fi
7731 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7732 if test -n "$ac_ct_NMEDIT"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7734 $as_echo "$ac_ct_NMEDIT" >&6; }
7735 else
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7738 fi
7739
7740 if test "x$ac_ct_NMEDIT" = x; then
7741 NMEDIT=":"
7742 else
7743 case $cross_compiling:$ac_tool_warned in
7744 yes:)
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7747 ac_tool_warned=yes ;;
7748 esac
7749 NMEDIT=$ac_ct_NMEDIT
7750 fi
7751 else
7752 NMEDIT="$ac_cv_prog_NMEDIT"
7753 fi
7754
7755 if test -n "$ac_tool_prefix"; then
7756 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7757 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759 $as_echo_n "checking for $ac_word... " >&6; }
7760 if ${ac_cv_prog_LIPO+:} false; then :
7761 $as_echo_n "(cached) " >&6
7762 else
7763 if test -n "$LIPO"; then
7764 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7765 else
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 for as_dir in $PATH
7768 do
7769 IFS=$as_save_IFS
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7773 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 break 2
7776 fi
7777 done
7778 done
7779 IFS=$as_save_IFS
7780
7781 fi
7782 fi
7783 LIPO=$ac_cv_prog_LIPO
7784 if test -n "$LIPO"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7786 $as_echo "$LIPO" >&6; }
7787 else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7790 fi
7791
7792
7793 fi
7794 if test -z "$ac_cv_prog_LIPO"; then
7795 ac_ct_LIPO=$LIPO
7796 # Extract the first word of "lipo", so it can be a program name with args.
7797 set dummy lipo; ac_word=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 if test -n "$ac_ct_LIPO"; then
7804 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7813 ac_cv_prog_ac_ct_LIPO="lipo"
7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 break 2
7816 fi
7817 done
7818 done
7819 IFS=$as_save_IFS
7820
7821 fi
7822 fi
7823 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7824 if test -n "$ac_ct_LIPO"; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7826 $as_echo "$ac_ct_LIPO" >&6; }
7827 else
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7830 fi
7831
7832 if test "x$ac_ct_LIPO" = x; then
7833 LIPO=":"
7834 else
7835 case $cross_compiling:$ac_tool_warned in
7836 yes:)
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7839 ac_tool_warned=yes ;;
7840 esac
7841 LIPO=$ac_ct_LIPO
7842 fi
7843 else
7844 LIPO="$ac_cv_prog_LIPO"
7845 fi
7846
7847 if test -n "$ac_tool_prefix"; then
7848 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7849 set dummy ${ac_tool_prefix}otool; ac_word=$2
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851 $as_echo_n "checking for $ac_word... " >&6; }
7852 if ${ac_cv_prog_OTOOL+:} false; then :
7853 $as_echo_n "(cached) " >&6
7854 else
7855 if test -n "$OTOOL"; then
7856 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7857 else
7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 for as_dir in $PATH
7860 do
7861 IFS=$as_save_IFS
7862 test -z "$as_dir" && as_dir=.
7863 for ac_exec_ext in '' $ac_executable_extensions; do
7864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7865 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 break 2
7868 fi
7869 done
7870 done
7871 IFS=$as_save_IFS
7872
7873 fi
7874 fi
7875 OTOOL=$ac_cv_prog_OTOOL
7876 if test -n "$OTOOL"; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7878 $as_echo "$OTOOL" >&6; }
7879 else
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881 $as_echo "no" >&6; }
7882 fi
7883
7884
7885 fi
7886 if test -z "$ac_cv_prog_OTOOL"; then
7887 ac_ct_OTOOL=$OTOOL
7888 # Extract the first word of "otool", so it can be a program name with args.
7889 set dummy otool; ac_word=$2
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891 $as_echo_n "checking for $ac_word... " >&6; }
7892 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7893 $as_echo_n "(cached) " >&6
7894 else
7895 if test -n "$ac_ct_OTOOL"; then
7896 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7897 else
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in $PATH
7900 do
7901 IFS=$as_save_IFS
7902 test -z "$as_dir" && as_dir=.
7903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7905 ac_cv_prog_ac_ct_OTOOL="otool"
7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907 break 2
7908 fi
7909 done
7910 done
7911 IFS=$as_save_IFS
7912
7913 fi
7914 fi
7915 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7916 if test -n "$ac_ct_OTOOL"; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7918 $as_echo "$ac_ct_OTOOL" >&6; }
7919 else
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921 $as_echo "no" >&6; }
7922 fi
7923
7924 if test "x$ac_ct_OTOOL" = x; then
7925 OTOOL=":"
7926 else
7927 case $cross_compiling:$ac_tool_warned in
7928 yes:)
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7931 ac_tool_warned=yes ;;
7932 esac
7933 OTOOL=$ac_ct_OTOOL
7934 fi
7935 else
7936 OTOOL="$ac_cv_prog_OTOOL"
7937 fi
7938
7939 if test -n "$ac_tool_prefix"; then
7940 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7941 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943 $as_echo_n "checking for $ac_word... " >&6; }
7944 if ${ac_cv_prog_OTOOL64+:} false; then :
7945 $as_echo_n "(cached) " >&6
7946 else
7947 if test -n "$OTOOL64"; then
7948 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7949 else
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7952 do
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7957 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 break 2
7960 fi
7961 done
7962 done
7963 IFS=$as_save_IFS
7964
7965 fi
7966 fi
7967 OTOOL64=$ac_cv_prog_OTOOL64
7968 if test -n "$OTOOL64"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7970 $as_echo "$OTOOL64" >&6; }
7971 else
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7974 fi
7975
7976
7977 fi
7978 if test -z "$ac_cv_prog_OTOOL64"; then
7979 ac_ct_OTOOL64=$OTOOL64
7980 # Extract the first word of "otool64", so it can be a program name with args.
7981 set dummy otool64; ac_word=$2
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983 $as_echo_n "checking for $ac_word... " >&6; }
7984 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7987 if test -n "$ac_ct_OTOOL64"; then
7988 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7989 else
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 for as_dir in $PATH
7992 do
7993 IFS=$as_save_IFS
7994 test -z "$as_dir" && as_dir=.
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7997 ac_cv_prog_ac_ct_OTOOL64="otool64"
7998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999 break 2
8000 fi
8001 done
8002 done
8003 IFS=$as_save_IFS
8004
8005 fi
8006 fi
8007 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8008 if test -n "$ac_ct_OTOOL64"; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8010 $as_echo "$ac_ct_OTOOL64" >&6; }
8011 else
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8014 fi
8015
8016 if test "x$ac_ct_OTOOL64" = x; then
8017 OTOOL64=":"
8018 else
8019 case $cross_compiling:$ac_tool_warned in
8020 yes:)
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8023 ac_tool_warned=yes ;;
8024 esac
8025 OTOOL64=$ac_ct_OTOOL64
8026 fi
8027 else
8028 OTOOL64="$ac_cv_prog_OTOOL64"
8029 fi
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8058 $as_echo_n "checking for -single_module linker flag... " >&6; }
8059 if ${lt_cv_apple_cc_single_mod+:} false; then :
8060 $as_echo_n "(cached) " >&6
8061 else
8062 lt_cv_apple_cc_single_mod=no
8063 if test -z "${LT_MULTI_MODULE}"; then
8064 # By default we will add the -single_module flag. You can override
8065 # by either setting the environment variable LT_MULTI_MODULE
8066 # non-empty at configure time, or by adding -multi_module to the
8067 # link flags.
8068 rm -rf libconftest.dylib*
8069 echo "int foo(void){return 1;}" > conftest.c
8070 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8071 -dynamiclib -Wl,-single_module conftest.c" >&5
8072 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8073 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8074 _lt_result=$?
8075 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8076 lt_cv_apple_cc_single_mod=yes
8077 else
8078 cat conftest.err >&5
8079 fi
8080 rm -rf libconftest.dylib*
8081 rm -f conftest.*
8082 fi
8083 fi
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8085 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8087 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8088 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8089 $as_echo_n "(cached) " >&6
8090 else
8091 lt_cv_ld_exported_symbols_list=no
8092 save_LDFLAGS=$LDFLAGS
8093 echo "_main" > conftest.sym
8094 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096 /* end confdefs.h. */
8097
8098 int
8099 main ()
8100 {
8101
8102 ;
8103 return 0;
8104 }
8105 _ACEOF
8106 if ac_fn_c_try_link "$LINENO"; then :
8107 lt_cv_ld_exported_symbols_list=yes
8108 else
8109 lt_cv_ld_exported_symbols_list=no
8110 fi
8111 rm -f core conftest.err conftest.$ac_objext \
8112 conftest$ac_exeext conftest.$ac_ext
8113 LDFLAGS="$save_LDFLAGS"
8114
8115 fi
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8117 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8119 $as_echo_n "checking for -force_load linker flag... " >&6; }
8120 if ${lt_cv_ld_force_load+:} false; then :
8121 $as_echo_n "(cached) " >&6
8122 else
8123 lt_cv_ld_force_load=no
8124 cat > conftest.c << _LT_EOF
8125 int forced_loaded() { return 2;}
8126 _LT_EOF
8127 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8128 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8129 echo "$AR cru libconftest.a conftest.o" >&5
8130 $AR cru libconftest.a conftest.o 2>&5
8131 cat > conftest.c << _LT_EOF
8132 int main() { return 0;}
8133 _LT_EOF
8134 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8135 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8136 _lt_result=$?
8137 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8138 lt_cv_ld_force_load=yes
8139 else
8140 cat conftest.err >&5
8141 fi
8142 rm -f conftest.err libconftest.a conftest conftest.c
8143 rm -rf conftest.dSYM
8144
8145 fi
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8147 $as_echo "$lt_cv_ld_force_load" >&6; }
8148 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8149 # build without first building modern cctools / linker.
8150 case $host_cpu-$host_os in
8151 *-rhapsody* | *-darwin1.[012])
8152 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8153 *-darwin1.*)
8154 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8155 *-darwin*)
8156 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8157 # deployment target is forced to an earlier version.
8158 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8159 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8160 ;;
8161 10.[012][,.]*)
8162 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8163 ;;
8164 *)
8165 ;;
8166 esac
8167 ;;
8168 esac
8169 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8170 _lt_dar_single_mod='$single_module'
8171 fi
8172 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8173 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8174 else
8175 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8176 fi
8177 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8178 _lt_dsymutil='~$DSYMUTIL $lib || :'
8179 else
8180 _lt_dsymutil=
8181 fi
8182 ;;
8183 esac
8184
8185 for ac_header in dlfcn.h
8186 do :
8187 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8188 "
8189 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8190 cat >>confdefs.h <<_ACEOF
8191 #define HAVE_DLFCN_H 1
8192 _ACEOF
8193
8194 fi
8195
8196 done
8197
8198
8199
8200
8201
8202
8203 # Set options
8204
8205
8206
8207 enable_dlopen=no
8208
8209
8210 enable_win32_dll=no
8211
8212
8213 # Check whether --enable-shared was given.
8214 if test "${enable_shared+set}" = set; then :
8215 enableval=$enable_shared; p=${PACKAGE-default}
8216 case $enableval in
8217 yes) enable_shared=yes ;;
8218 no) enable_shared=no ;;
8219 *)
8220 enable_shared=no
8221 # Look at the argument we got. We use all the common list separators.
8222 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8223 for pkg in $enableval; do
8224 IFS="$lt_save_ifs"
8225 if test "X$pkg" = "X$p"; then
8226 enable_shared=yes
8227 fi
8228 done
8229 IFS="$lt_save_ifs"
8230 ;;
8231 esac
8232 else
8233 enable_shared=yes
8234 fi
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244 # Check whether --enable-static was given.
8245 if test "${enable_static+set}" = set; then :
8246 enableval=$enable_static; p=${PACKAGE-default}
8247 case $enableval in
8248 yes) enable_static=yes ;;
8249 no) enable_static=no ;;
8250 *)
8251 enable_static=no
8252 # Look at the argument we got. We use all the common list separators.
8253 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8254 for pkg in $enableval; do
8255 IFS="$lt_save_ifs"
8256 if test "X$pkg" = "X$p"; then
8257 enable_static=yes
8258 fi
8259 done
8260 IFS="$lt_save_ifs"
8261 ;;
8262 esac
8263 else
8264 enable_static=yes
8265 fi
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276 # Check whether --with-pic was given.
8277 if test "${with_pic+set}" = set; then :
8278 withval=$with_pic; pic_mode="$withval"
8279 else
8280 pic_mode=default
8281 fi
8282
8283
8284 test -z "$pic_mode" && pic_mode=default
8285
8286
8287
8288
8289
8290
8291
8292 # Check whether --enable-fast-install was given.
8293 if test "${enable_fast_install+set}" = set; then :
8294 enableval=$enable_fast_install; p=${PACKAGE-default}
8295 case $enableval in
8296 yes) enable_fast_install=yes ;;
8297 no) enable_fast_install=no ;;
8298 *)
8299 enable_fast_install=no
8300 # Look at the argument we got. We use all the common list separators.
8301 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8302 for pkg in $enableval; do
8303 IFS="$lt_save_ifs"
8304 if test "X$pkg" = "X$p"; then
8305 enable_fast_install=yes
8306 fi
8307 done
8308 IFS="$lt_save_ifs"
8309 ;;
8310 esac
8311 else
8312 enable_fast_install=yes
8313 fi
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325 # This can be used to rebuild libtool when needed
8326 LIBTOOL_DEPS="$ltmain"
8327
8328 # Always use our own libtool.
8329 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356 test -z "$LN_S" && LN_S="ln -s"
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371 if test -n "${ZSH_VERSION+set}" ; then
8372 setopt NO_GLOB_SUBST
8373 fi
8374
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8376 $as_echo_n "checking for objdir... " >&6; }
8377 if ${lt_cv_objdir+:} false; then :
8378 $as_echo_n "(cached) " >&6
8379 else
8380 rm -f .libs 2>/dev/null
8381 mkdir .libs 2>/dev/null
8382 if test -d .libs; then
8383 lt_cv_objdir=.libs
8384 else
8385 # MS-DOS does not allow filenames that begin with a dot.
8386 lt_cv_objdir=_libs
8387 fi
8388 rmdir .libs 2>/dev/null
8389 fi
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8391 $as_echo "$lt_cv_objdir" >&6; }
8392 objdir=$lt_cv_objdir
8393
8394
8395
8396
8397
8398 cat >>confdefs.h <<_ACEOF
8399 #define LT_OBJDIR "$lt_cv_objdir/"
8400 _ACEOF
8401
8402
8403
8404
8405 case $host_os in
8406 aix3*)
8407 # AIX sometimes has problems with the GCC collect2 program. For some
8408 # reason, if we set the COLLECT_NAMES environment variable, the problems
8409 # vanish in a puff of smoke.
8410 if test "X${COLLECT_NAMES+set}" != Xset; then
8411 COLLECT_NAMES=
8412 export COLLECT_NAMES
8413 fi
8414 ;;
8415 esac
8416
8417 # Global variables:
8418 ofile=libtool
8419 can_build_shared=yes
8420
8421 # All known linkers require a `.a' archive for static linking (except MSVC,
8422 # which needs '.lib').
8423 libext=a
8424
8425 with_gnu_ld="$lt_cv_prog_gnu_ld"
8426
8427 old_CC="$CC"
8428 old_CFLAGS="$CFLAGS"
8429
8430 # Set sane defaults for various variables
8431 test -z "$CC" && CC=cc
8432 test -z "$LTCC" && LTCC=$CC
8433 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8434 test -z "$LD" && LD=ld
8435 test -z "$ac_objext" && ac_objext=o
8436
8437 for cc_temp in $compiler""; do
8438 case $cc_temp in
8439 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8440 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8441 \-*) ;;
8442 *) break;;
8443 esac
8444 done
8445 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8446
8447
8448 # Only perform the check for file, if the check method requires it
8449 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8450 case $deplibs_check_method in
8451 file_magic*)
8452 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8454 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8455 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 case $MAGIC_CMD in
8459 [\\/*] | ?:[\\/]*)
8460 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8461 ;;
8462 *)
8463 lt_save_MAGIC_CMD="$MAGIC_CMD"
8464 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8465 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8466 for ac_dir in $ac_dummy; do
8467 IFS="$lt_save_ifs"
8468 test -z "$ac_dir" && ac_dir=.
8469 if test -f $ac_dir/${ac_tool_prefix}file; then
8470 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8471 if test -n "$file_magic_test_file"; then
8472 case $deplibs_check_method in
8473 "file_magic "*)
8474 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8475 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8476 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8477 $EGREP "$file_magic_regex" > /dev/null; then
8478 :
8479 else
8480 cat <<_LT_EOF 1>&2
8481
8482 *** Warning: the command libtool uses to detect shared libraries,
8483 *** $file_magic_cmd, produces output that libtool cannot recognize.
8484 *** The result is that libtool may fail to recognize shared libraries
8485 *** as such. This will affect the creation of libtool libraries that
8486 *** depend on shared libraries, but programs linked with such libtool
8487 *** libraries will work regardless of this problem. Nevertheless, you
8488 *** may want to report the problem to your system manager and/or to
8489 *** [email protected]
8490
8491 _LT_EOF
8492 fi ;;
8493 esac
8494 fi
8495 break
8496 fi
8497 done
8498 IFS="$lt_save_ifs"
8499 MAGIC_CMD="$lt_save_MAGIC_CMD"
8500 ;;
8501 esac
8502 fi
8503
8504 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8505 if test -n "$MAGIC_CMD"; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8507 $as_echo "$MAGIC_CMD" >&6; }
8508 else
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510 $as_echo "no" >&6; }
8511 fi
8512
8513
8514
8515
8516
8517 if test -z "$lt_cv_path_MAGIC_CMD"; then
8518 if test -n "$ac_tool_prefix"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8520 $as_echo_n "checking for file... " >&6; }
8521 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8522 $as_echo_n "(cached) " >&6
8523 else
8524 case $MAGIC_CMD in
8525 [\\/*] | ?:[\\/]*)
8526 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8527 ;;
8528 *)
8529 lt_save_MAGIC_CMD="$MAGIC_CMD"
8530 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8531 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8532 for ac_dir in $ac_dummy; do
8533 IFS="$lt_save_ifs"
8534 test -z "$ac_dir" && ac_dir=.
8535 if test -f $ac_dir/file; then
8536 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8537 if test -n "$file_magic_test_file"; then
8538 case $deplibs_check_method in
8539 "file_magic "*)
8540 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8541 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8542 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8543 $EGREP "$file_magic_regex" > /dev/null; then
8544 :
8545 else
8546 cat <<_LT_EOF 1>&2
8547
8548 *** Warning: the command libtool uses to detect shared libraries,
8549 *** $file_magic_cmd, produces output that libtool cannot recognize.
8550 *** The result is that libtool may fail to recognize shared libraries
8551 *** as such. This will affect the creation of libtool libraries that
8552 *** depend on shared libraries, but programs linked with such libtool
8553 *** libraries will work regardless of this problem. Nevertheless, you
8554 *** may want to report the problem to your system manager and/or to
8555 *** [email protected]
8556
8557 _LT_EOF
8558 fi ;;
8559 esac
8560 fi
8561 break
8562 fi
8563 done
8564 IFS="$lt_save_ifs"
8565 MAGIC_CMD="$lt_save_MAGIC_CMD"
8566 ;;
8567 esac
8568 fi
8569
8570 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8571 if test -n "$MAGIC_CMD"; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8573 $as_echo "$MAGIC_CMD" >&6; }
8574 else
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576 $as_echo "no" >&6; }
8577 fi
8578
8579
8580 else
8581 MAGIC_CMD=:
8582 fi
8583 fi
8584
8585 fi
8586 ;;
8587 esac
8588
8589 # Use C for the default configuration in the libtool script
8590
8591 lt_save_CC="$CC"
8592 ac_ext=c
8593 ac_cpp='$CPP $CPPFLAGS'
8594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8597
8598
8599 # Source file extension for C test sources.
8600 ac_ext=c
8601
8602 # Object file extension for compiled C test sources.
8603 objext=o
8604 objext=$objext
8605
8606 # Code to be used in simple compile tests
8607 lt_simple_compile_test_code="int some_variable = 0;"
8608
8609 # Code to be used in simple link tests
8610 lt_simple_link_test_code='int main(){return(0);}'
8611
8612
8613
8614
8615
8616
8617
8618 # If no C compiler was specified, use CC.
8619 LTCC=${LTCC-"$CC"}
8620
8621 # If no C compiler flags were specified, use CFLAGS.
8622 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8623
8624 # Allow CC to be a program name with arguments.
8625 compiler=$CC
8626
8627 # Save the default compiler, since it gets overwritten when the other
8628 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8629 compiler_DEFAULT=$CC
8630
8631 # save warnings/boilerplate of simple test code
8632 ac_outfile=conftest.$ac_objext
8633 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8634 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8635 _lt_compiler_boilerplate=`cat conftest.err`
8636 $RM conftest*
8637
8638 ac_outfile=conftest.$ac_objext
8639 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8640 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8641 _lt_linker_boilerplate=`cat conftest.err`
8642 $RM -r conftest*
8643
8644
8645 ## CAVEAT EMPTOR:
8646 ## There is no encapsulation within the following macros, do not change
8647 ## the running order or otherwise move them around unless you know exactly
8648 ## what you are doing...
8649 if test -n "$compiler"; then
8650
8651 lt_prog_compiler_no_builtin_flag=
8652
8653 if test "$GCC" = yes; then
8654 case $cc_basename in
8655 nvcc*)
8656 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8657 *)
8658 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8659 esac
8660
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8662 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8663 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8664 $as_echo_n "(cached) " >&6
8665 else
8666 lt_cv_prog_compiler_rtti_exceptions=no
8667 ac_outfile=conftest.$ac_objext
8668 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8669 lt_compiler_flag="-fno-rtti -fno-exceptions"
8670 # Insert the option either (1) after the last *FLAGS variable, or
8671 # (2) before a word containing "conftest.", or (3) at the end.
8672 # Note that $ac_compile itself does not contain backslashes and begins
8673 # with a dollar sign (not a hyphen), so the echo should work correctly.
8674 # The option is referenced via a variable to avoid confusing sed.
8675 lt_compile=`echo "$ac_compile" | $SED \
8676 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8678 -e 's:$: $lt_compiler_flag:'`
8679 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8680 (eval "$lt_compile" 2>conftest.err)
8681 ac_status=$?
8682 cat conftest.err >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 if (exit $ac_status) && test -s "$ac_outfile"; then
8685 # The compiler can only warn and ignore the option if not recognized
8686 # So say no if there are warnings other than the usual output.
8687 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8689 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8690 lt_cv_prog_compiler_rtti_exceptions=yes
8691 fi
8692 fi
8693 $RM conftest*
8694
8695 fi
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8697 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8698
8699 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8700 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8701 else
8702 :
8703 fi
8704
8705 fi
8706
8707
8708
8709
8710
8711
8712 lt_prog_compiler_wl=
8713 lt_prog_compiler_pic=
8714 lt_prog_compiler_static=
8715
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8717 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8718
8719 if test "$GCC" = yes; then
8720 lt_prog_compiler_wl='-Wl,'
8721 lt_prog_compiler_static='-static'
8722
8723 case $host_os in
8724 aix*)
8725 # All AIX code is PIC.
8726 if test "$host_cpu" = ia64; then
8727 # AIX 5 now supports IA64 processor
8728 lt_prog_compiler_static='-Bstatic'
8729 fi
8730 lt_prog_compiler_pic='-fPIC'
8731 ;;
8732
8733 amigaos*)
8734 case $host_cpu in
8735 powerpc)
8736 # see comment about AmigaOS4 .so support
8737 lt_prog_compiler_pic='-fPIC'
8738 ;;
8739 m68k)
8740 # FIXME: we need at least 68020 code to build shared libraries, but
8741 # adding the `-m68020' flag to GCC prevents building anything better,
8742 # like `-m68040'.
8743 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8744 ;;
8745 esac
8746 ;;
8747
8748 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8749 # PIC is the default for these OSes.
8750 ;;
8751
8752 mingw* | cygwin* | pw32* | os2* | cegcc*)
8753 # This hack is so that the source file can tell whether it is being
8754 # built for inclusion in a dll (and should export symbols for example).
8755 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8756 # (--disable-auto-import) libraries
8757 lt_prog_compiler_pic='-DDLL_EXPORT'
8758 ;;
8759
8760 darwin* | rhapsody*)
8761 # PIC is the default on this platform
8762 # Common symbols not allowed in MH_DYLIB files
8763 lt_prog_compiler_pic='-fno-common'
8764 ;;
8765
8766 haiku*)
8767 # PIC is the default for Haiku.
8768 # The "-static" flag exists, but is broken.
8769 lt_prog_compiler_static=
8770 ;;
8771
8772 hpux*)
8773 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8774 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8775 # sets the default TLS model and affects inlining.
8776 case $host_cpu in
8777 hppa*64*)
8778 # +Z the default
8779 ;;
8780 *)
8781 lt_prog_compiler_pic='-fPIC'
8782 ;;
8783 esac
8784 ;;
8785
8786 interix[3-9]*)
8787 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8788 # Instead, we relocate shared libraries at runtime.
8789 ;;
8790
8791 msdosdjgpp*)
8792 # Just because we use GCC doesn't mean we suddenly get shared libraries
8793 # on systems that don't support them.
8794 lt_prog_compiler_can_build_shared=no
8795 enable_shared=no
8796 ;;
8797
8798 *nto* | *qnx*)
8799 # QNX uses GNU C++, but need to define -shared option too, otherwise
8800 # it will coredump.
8801 lt_prog_compiler_pic='-fPIC -shared'
8802 ;;
8803
8804 sysv4*MP*)
8805 if test -d /usr/nec; then
8806 lt_prog_compiler_pic=-Kconform_pic
8807 fi
8808 ;;
8809
8810 *)
8811 lt_prog_compiler_pic='-fPIC'
8812 ;;
8813 esac
8814
8815 case $cc_basename in
8816 nvcc*) # Cuda Compiler Driver 2.2
8817 lt_prog_compiler_wl='-Xlinker '
8818 lt_prog_compiler_pic='-Xcompiler -fPIC'
8819 ;;
8820 esac
8821 else
8822 # PORTME Check for flag to pass linker flags through the system compiler.
8823 case $host_os in
8824 aix*)
8825 lt_prog_compiler_wl='-Wl,'
8826 if test "$host_cpu" = ia64; then
8827 # AIX 5 now supports IA64 processor
8828 lt_prog_compiler_static='-Bstatic'
8829 else
8830 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8831 fi
8832 ;;
8833
8834 mingw* | cygwin* | pw32* | os2* | cegcc*)
8835 # This hack is so that the source file can tell whether it is being
8836 # built for inclusion in a dll (and should export symbols for example).
8837 lt_prog_compiler_pic='-DDLL_EXPORT'
8838 ;;
8839
8840 hpux9* | hpux10* | hpux11*)
8841 lt_prog_compiler_wl='-Wl,'
8842 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8843 # not for PA HP-UX.
8844 case $host_cpu in
8845 hppa*64*|ia64*)
8846 # +Z the default
8847 ;;
8848 *)
8849 lt_prog_compiler_pic='+Z'
8850 ;;
8851 esac
8852 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8853 lt_prog_compiler_static='${wl}-a ${wl}archive'
8854 ;;
8855
8856 irix5* | irix6* | nonstopux*)
8857 lt_prog_compiler_wl='-Wl,'
8858 # PIC (with -KPIC) is the default.
8859 lt_prog_compiler_static='-non_shared'
8860 ;;
8861
8862 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8863 case $cc_basename in
8864 # old Intel for x86_64 which still supported -KPIC.
8865 ecc*)
8866 lt_prog_compiler_wl='-Wl,'
8867 lt_prog_compiler_pic='-KPIC'
8868 lt_prog_compiler_static='-static'
8869 ;;
8870 # icc used to be incompatible with GCC.
8871 # ICC 10 doesn't accept -KPIC any more.
8872 icc* | ifort*)
8873 lt_prog_compiler_wl='-Wl,'
8874 lt_prog_compiler_pic='-fPIC'
8875 lt_prog_compiler_static='-static'
8876 ;;
8877 # Lahey Fortran 8.1.
8878 lf95*)
8879 lt_prog_compiler_wl='-Wl,'
8880 lt_prog_compiler_pic='--shared'
8881 lt_prog_compiler_static='--static'
8882 ;;
8883 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8884 # Portland Group compilers (*not* the Pentium gcc compiler,
8885 # which looks to be a dead project)
8886 lt_prog_compiler_wl='-Wl,'
8887 lt_prog_compiler_pic='-fpic'
8888 lt_prog_compiler_static='-Bstatic'
8889 ;;
8890 ccc*)
8891 lt_prog_compiler_wl='-Wl,'
8892 # All Alpha code is PIC.
8893 lt_prog_compiler_static='-non_shared'
8894 ;;
8895 xl* | bgxl* | bgf* | mpixl*)
8896 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8897 lt_prog_compiler_wl='-Wl,'
8898 lt_prog_compiler_pic='-qpic'
8899 lt_prog_compiler_static='-qstaticlink'
8900 ;;
8901 *)
8902 case `$CC -V 2>&1 | sed 5q` in
8903 *Sun\ F* | *Sun*Fortran*)
8904 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8905 lt_prog_compiler_pic='-KPIC'
8906 lt_prog_compiler_static='-Bstatic'
8907 lt_prog_compiler_wl=''
8908 ;;
8909 *Sun\ C*)
8910 # Sun C 5.9
8911 lt_prog_compiler_pic='-KPIC'
8912 lt_prog_compiler_static='-Bstatic'
8913 lt_prog_compiler_wl='-Wl,'
8914 ;;
8915 esac
8916 ;;
8917 esac
8918 ;;
8919
8920 newsos6)
8921 lt_prog_compiler_pic='-KPIC'
8922 lt_prog_compiler_static='-Bstatic'
8923 ;;
8924
8925 *nto* | *qnx*)
8926 # QNX uses GNU C++, but need to define -shared option too, otherwise
8927 # it will coredump.
8928 lt_prog_compiler_pic='-fPIC -shared'
8929 ;;
8930
8931 osf3* | osf4* | osf5*)
8932 lt_prog_compiler_wl='-Wl,'
8933 # All OSF/1 code is PIC.
8934 lt_prog_compiler_static='-non_shared'
8935 ;;
8936
8937 rdos*)
8938 lt_prog_compiler_static='-non_shared'
8939 ;;
8940
8941 solaris*)
8942 lt_prog_compiler_pic='-KPIC'
8943 lt_prog_compiler_static='-Bstatic'
8944 case $cc_basename in
8945 f77* | f90* | f95*)
8946 lt_prog_compiler_wl='-Qoption ld ';;
8947 *)
8948 lt_prog_compiler_wl='-Wl,';;
8949 esac
8950 ;;
8951
8952 sunos4*)
8953 lt_prog_compiler_wl='-Qoption ld '
8954 lt_prog_compiler_pic='-PIC'
8955 lt_prog_compiler_static='-Bstatic'
8956 ;;
8957
8958 sysv4 | sysv4.2uw2* | sysv4.3*)
8959 lt_prog_compiler_wl='-Wl,'
8960 lt_prog_compiler_pic='-KPIC'
8961 lt_prog_compiler_static='-Bstatic'
8962 ;;
8963
8964 sysv4*MP*)
8965 if test -d /usr/nec ;then
8966 lt_prog_compiler_pic='-Kconform_pic'
8967 lt_prog_compiler_static='-Bstatic'
8968 fi
8969 ;;
8970
8971 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8972 lt_prog_compiler_wl='-Wl,'
8973 lt_prog_compiler_pic='-KPIC'
8974 lt_prog_compiler_static='-Bstatic'
8975 ;;
8976
8977 unicos*)
8978 lt_prog_compiler_wl='-Wl,'
8979 lt_prog_compiler_can_build_shared=no
8980 ;;
8981
8982 uts4*)
8983 lt_prog_compiler_pic='-pic'
8984 lt_prog_compiler_static='-Bstatic'
8985 ;;
8986
8987 *)
8988 lt_prog_compiler_can_build_shared=no
8989 ;;
8990 esac
8991 fi
8992
8993 case $host_os in
8994 # For platforms which do not support PIC, -DPIC is meaningless:
8995 *djgpp*)
8996 lt_prog_compiler_pic=
8997 ;;
8998 *)
8999 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9000 ;;
9001 esac
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9003 $as_echo "$lt_prog_compiler_pic" >&6; }
9004
9005
9006
9007
9008
9009
9010 #
9011 # Check to make sure the PIC flag actually works.
9012 #
9013 if test -n "$lt_prog_compiler_pic"; then
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9015 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9016 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9017 $as_echo_n "(cached) " >&6
9018 else
9019 lt_cv_prog_compiler_pic_works=no
9020 ac_outfile=conftest.$ac_objext
9021 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9022 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9023 # Insert the option either (1) after the last *FLAGS variable, or
9024 # (2) before a word containing "conftest.", or (3) at the end.
9025 # Note that $ac_compile itself does not contain backslashes and begins
9026 # with a dollar sign (not a hyphen), so the echo should work correctly.
9027 # The option is referenced via a variable to avoid confusing sed.
9028 lt_compile=`echo "$ac_compile" | $SED \
9029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9031 -e 's:$: $lt_compiler_flag:'`
9032 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9033 (eval "$lt_compile" 2>conftest.err)
9034 ac_status=$?
9035 cat conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 if (exit $ac_status) && test -s "$ac_outfile"; then
9038 # The compiler can only warn and ignore the option if not recognized
9039 # So say no if there are warnings other than the usual output.
9040 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9042 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9043 lt_cv_prog_compiler_pic_works=yes
9044 fi
9045 fi
9046 $RM conftest*
9047
9048 fi
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9050 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9051
9052 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9053 case $lt_prog_compiler_pic in
9054 "" | " "*) ;;
9055 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9056 esac
9057 else
9058 lt_prog_compiler_pic=
9059 lt_prog_compiler_can_build_shared=no
9060 fi
9061
9062 fi
9063
9064
9065
9066
9067
9068
9069 #
9070 # Check to make sure the static flag actually works.
9071 #
9072 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9074 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9075 if ${lt_cv_prog_compiler_static_works+:} false; then :
9076 $as_echo_n "(cached) " >&6
9077 else
9078 lt_cv_prog_compiler_static_works=no
9079 save_LDFLAGS="$LDFLAGS"
9080 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9081 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9082 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9083 # The linker can only warn and ignore the option if not recognized
9084 # So say no if there are warnings
9085 if test -s conftest.err; then
9086 # Append any errors to the config.log.
9087 cat conftest.err 1>&5
9088 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9089 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9090 if diff conftest.exp conftest.er2 >/dev/null; then
9091 lt_cv_prog_compiler_static_works=yes
9092 fi
9093 else
9094 lt_cv_prog_compiler_static_works=yes
9095 fi
9096 fi
9097 $RM -r conftest*
9098 LDFLAGS="$save_LDFLAGS"
9099
9100 fi
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9102 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9103
9104 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9105 :
9106 else
9107 lt_prog_compiler_static=
9108 fi
9109
9110
9111
9112
9113
9114
9115
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9117 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9118 if ${lt_cv_prog_compiler_c_o+:} false; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 lt_cv_prog_compiler_c_o=no
9122 $RM -r conftest 2>/dev/null
9123 mkdir conftest
9124 cd conftest
9125 mkdir out
9126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9127
9128 lt_compiler_flag="-o out/conftest2.$ac_objext"
9129 # Insert the option either (1) after the last *FLAGS variable, or
9130 # (2) before a word containing "conftest.", or (3) at the end.
9131 # Note that $ac_compile itself does not contain backslashes and begins
9132 # with a dollar sign (not a hyphen), so the echo should work correctly.
9133 lt_compile=`echo "$ac_compile" | $SED \
9134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9136 -e 's:$: $lt_compiler_flag:'`
9137 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9138 (eval "$lt_compile" 2>out/conftest.err)
9139 ac_status=$?
9140 cat out/conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9143 then
9144 # The compiler can only warn and ignore the option if not recognized
9145 # So say no if there are warnings
9146 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9147 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9148 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9149 lt_cv_prog_compiler_c_o=yes
9150 fi
9151 fi
9152 chmod u+w . 2>&5
9153 $RM conftest*
9154 # SGI C++ compiler will create directory out/ii_files/ for
9155 # template instantiation
9156 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9157 $RM out/* && rmdir out
9158 cd ..
9159 $RM -r conftest
9160 $RM conftest*
9161
9162 fi
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9164 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9165
9166
9167
9168
9169
9170
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9172 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9173 if ${lt_cv_prog_compiler_c_o+:} false; then :
9174 $as_echo_n "(cached) " >&6
9175 else
9176 lt_cv_prog_compiler_c_o=no
9177 $RM -r conftest 2>/dev/null
9178 mkdir conftest
9179 cd conftest
9180 mkdir out
9181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9182
9183 lt_compiler_flag="-o out/conftest2.$ac_objext"
9184 # Insert the option either (1) after the last *FLAGS variable, or
9185 # (2) before a word containing "conftest.", or (3) at the end.
9186 # Note that $ac_compile itself does not contain backslashes and begins
9187 # with a dollar sign (not a hyphen), so the echo should work correctly.
9188 lt_compile=`echo "$ac_compile" | $SED \
9189 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9191 -e 's:$: $lt_compiler_flag:'`
9192 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9193 (eval "$lt_compile" 2>out/conftest.err)
9194 ac_status=$?
9195 cat out/conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9198 then
9199 # The compiler can only warn and ignore the option if not recognized
9200 # So say no if there are warnings
9201 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9202 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9203 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9204 lt_cv_prog_compiler_c_o=yes
9205 fi
9206 fi
9207 chmod u+w . 2>&5
9208 $RM conftest*
9209 # SGI C++ compiler will create directory out/ii_files/ for
9210 # template instantiation
9211 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9212 $RM out/* && rmdir out
9213 cd ..
9214 $RM -r conftest
9215 $RM conftest*
9216
9217 fi
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9219 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9220
9221
9222
9223
9224 hard_links="nottested"
9225 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9226 # do not overwrite the value of need_locks provided by the user
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9228 $as_echo_n "checking if we can lock with hard links... " >&6; }
9229 hard_links=yes
9230 $RM conftest*
9231 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9232 touch conftest.a
9233 ln conftest.a conftest.b 2>&5 || hard_links=no
9234 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9236 $as_echo "$hard_links" >&6; }
9237 if test "$hard_links" = no; then
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9239 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9240 need_locks=warn
9241 fi
9242 else
9243 need_locks=no
9244 fi
9245
9246
9247
9248
9249
9250
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9252 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9253
9254 runpath_var=
9255 allow_undefined_flag=
9256 always_export_symbols=no
9257 archive_cmds=
9258 archive_expsym_cmds=
9259 compiler_needs_object=no
9260 enable_shared_with_static_runtimes=no
9261 export_dynamic_flag_spec=
9262 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9263 hardcode_automatic=no
9264 hardcode_direct=no
9265 hardcode_direct_absolute=no
9266 hardcode_libdir_flag_spec=
9267 hardcode_libdir_flag_spec_ld=
9268 hardcode_libdir_separator=
9269 hardcode_minus_L=no
9270 hardcode_shlibpath_var=unsupported
9271 inherit_rpath=no
9272 link_all_deplibs=unknown
9273 module_cmds=
9274 module_expsym_cmds=
9275 old_archive_from_new_cmds=
9276 old_archive_from_expsyms_cmds=
9277 thread_safe_flag_spec=
9278 whole_archive_flag_spec=
9279 # include_expsyms should be a list of space-separated symbols to be *always*
9280 # included in the symbol list
9281 include_expsyms=
9282 # exclude_expsyms can be an extended regexp of symbols to exclude
9283 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9284 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9285 # as well as any symbol that contains `d'.
9286 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9287 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9288 # platforms (ab)use it in PIC code, but their linkers get confused if
9289 # the symbol is explicitly referenced. Since portable code cannot
9290 # rely on this symbol name, it's probably fine to never include it in
9291 # preloaded symbol tables.
9292 # Exclude shared library initialization/finalization symbols.
9293 extract_expsyms_cmds=
9294
9295 case $host_os in
9296 cygwin* | mingw* | pw32* | cegcc*)
9297 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9298 # When not using gcc, we currently assume that we are using
9299 # Microsoft Visual C++.
9300 if test "$GCC" != yes; then
9301 with_gnu_ld=no
9302 fi
9303 ;;
9304 interix*)
9305 # we just hope/assume this is gcc and not c89 (= MSVC++)
9306 with_gnu_ld=yes
9307 ;;
9308 openbsd*)
9309 with_gnu_ld=no
9310 ;;
9311 esac
9312
9313 ld_shlibs=yes
9314
9315 # On some targets, GNU ld is compatible enough with the native linker
9316 # that we're better off using the native interface for both.
9317 lt_use_gnu_ld_interface=no
9318 if test "$with_gnu_ld" = yes; then
9319 case $host_os in
9320 aix*)
9321 # The AIX port of GNU ld has always aspired to compatibility
9322 # with the native linker. However, as the warning in the GNU ld
9323 # block says, versions before 2.19.5* couldn't really create working
9324 # shared libraries, regardless of the interface used.
9325 case `$LD -v 2>&1` in
9326 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9327 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9328 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9329 *)
9330 lt_use_gnu_ld_interface=yes
9331 ;;
9332 esac
9333 ;;
9334 *)
9335 lt_use_gnu_ld_interface=yes
9336 ;;
9337 esac
9338 fi
9339
9340 if test "$lt_use_gnu_ld_interface" = yes; then
9341 # If archive_cmds runs LD, not CC, wlarc should be empty
9342 wlarc='${wl}'
9343
9344 # Set some defaults for GNU ld with shared library support. These
9345 # are reset later if shared libraries are not supported. Putting them
9346 # here allows them to be overridden if necessary.
9347 runpath_var=LD_RUN_PATH
9348 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9349 export_dynamic_flag_spec='${wl}--export-dynamic'
9350 # ancient GNU ld didn't support --whole-archive et. al.
9351 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9352 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9353 else
9354 whole_archive_flag_spec=
9355 fi
9356 supports_anon_versioning=no
9357 case `$LD -v 2>&1` in
9358 *GNU\ gold*) supports_anon_versioning=yes ;;
9359 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9360 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9361 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9362 *\ 2.11.*) ;; # other 2.11 versions
9363 *) supports_anon_versioning=yes ;;
9364 esac
9365
9366 # See if GNU ld supports shared libraries.
9367 case $host_os in
9368 aix[3-9]*)
9369 # On AIX/PPC, the GNU linker is very broken
9370 if test "$host_cpu" != ia64; then
9371 ld_shlibs=no
9372 cat <<_LT_EOF 1>&2
9373
9374 *** Warning: the GNU linker, at least up to release 2.19, is reported
9375 *** to be unable to reliably create shared libraries on AIX.
9376 *** Therefore, libtool is disabling shared libraries support. If you
9377 *** really care for shared libraries, you may want to install binutils
9378 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9379 *** You will then need to restart the configuration process.
9380
9381 _LT_EOF
9382 fi
9383 ;;
9384
9385 amigaos*)
9386 case $host_cpu in
9387 powerpc)
9388 # see comment about AmigaOS4 .so support
9389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9390 archive_expsym_cmds=''
9391 ;;
9392 m68k)
9393 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)'
9394 hardcode_libdir_flag_spec='-L$libdir'
9395 hardcode_minus_L=yes
9396 ;;
9397 esac
9398 ;;
9399
9400 beos*)
9401 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9402 allow_undefined_flag=unsupported
9403 # Joseph Beckenbach <[email protected]> says some releases of gcc
9404 # support --undefined. This deserves some investigation. FIXME
9405 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9406 else
9407 ld_shlibs=no
9408 fi
9409 ;;
9410
9411 cygwin* | mingw* | pw32* | cegcc*)
9412 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9413 # as there is no search path for DLLs.
9414 hardcode_libdir_flag_spec='-L$libdir'
9415 export_dynamic_flag_spec='${wl}--export-all-symbols'
9416 allow_undefined_flag=unsupported
9417 always_export_symbols=no
9418 enable_shared_with_static_runtimes=yes
9419 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9420
9421 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9423 # If the export-symbols file already is a .def file (1st line
9424 # is EXPORTS), use it as is; otherwise, prepend...
9425 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9426 cp $export_symbols $output_objdir/$soname.def;
9427 else
9428 echo EXPORTS > $output_objdir/$soname.def;
9429 cat $export_symbols >> $output_objdir/$soname.def;
9430 fi~
9431 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9432 else
9433 ld_shlibs=no
9434 fi
9435 ;;
9436
9437 haiku*)
9438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439 link_all_deplibs=yes
9440 ;;
9441
9442 interix[3-9]*)
9443 hardcode_direct=no
9444 hardcode_shlibpath_var=no
9445 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9446 export_dynamic_flag_spec='${wl}-E'
9447 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9448 # Instead, shared libraries are loaded at an image base (0x10000000 by
9449 # default) and relocated if they conflict, which is a slow very memory
9450 # consuming and fragmenting process. To avoid this, we pick a random,
9451 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9452 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9453 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9454 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'
9455 ;;
9456
9457 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9458 tmp_diet=no
9459 if test "$host_os" = linux-dietlibc; then
9460 case $cc_basename in
9461 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9462 esac
9463 fi
9464 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9465 && test "$tmp_diet" = no
9466 then
9467 tmp_addflag=' $pic_flag'
9468 tmp_sharedflag='-shared'
9469 case $cc_basename,$host_cpu in
9470 pgcc*) # Portland Group C compiler
9471 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'
9472 tmp_addflag=' $pic_flag'
9473 ;;
9474 pgf77* | pgf90* | pgf95* | pgfortran*)
9475 # Portland Group f77 and f90 compilers
9476 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'
9477 tmp_addflag=' $pic_flag -Mnomain' ;;
9478 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9479 tmp_addflag=' -i_dynamic' ;;
9480 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9481 tmp_addflag=' -i_dynamic -nofor_main' ;;
9482 ifc* | ifort*) # Intel Fortran compiler
9483 tmp_addflag=' -nofor_main' ;;
9484 lf95*) # Lahey Fortran 8.1
9485 whole_archive_flag_spec=
9486 tmp_sharedflag='--shared' ;;
9487 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9488 tmp_sharedflag='-qmkshrobj'
9489 tmp_addflag= ;;
9490 nvcc*) # Cuda Compiler Driver 2.2
9491 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'
9492 compiler_needs_object=yes
9493 ;;
9494 esac
9495 case `$CC -V 2>&1 | sed 5q` in
9496 *Sun\ C*) # Sun C 5.9
9497 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'
9498 compiler_needs_object=yes
9499 tmp_sharedflag='-G' ;;
9500 *Sun\ F*) # Sun Fortran 8.3
9501 tmp_sharedflag='-G' ;;
9502 esac
9503 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9504
9505 if test "x$supports_anon_versioning" = xyes; then
9506 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9507 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9508 echo "local: *; };" >> $output_objdir/$libname.ver~
9509 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9510 fi
9511
9512 case $cc_basename in
9513 xlf* | bgf* | bgxlf* | mpixlf*)
9514 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9515 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9516 hardcode_libdir_flag_spec=
9517 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9518 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9519 if test "x$supports_anon_versioning" = xyes; then
9520 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9521 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9522 echo "local: *; };" >> $output_objdir/$libname.ver~
9523 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9524 fi
9525 ;;
9526 esac
9527 else
9528 ld_shlibs=no
9529 fi
9530 ;;
9531
9532 netbsd*)
9533 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9534 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9535 wlarc=
9536 else
9537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9538 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9539 fi
9540 ;;
9541
9542 solaris*)
9543 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9544 ld_shlibs=no
9545 cat <<_LT_EOF 1>&2
9546
9547 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9548 *** create shared libraries on Solaris systems. Therefore, libtool
9549 *** is disabling shared libraries support. We urge you to upgrade GNU
9550 *** binutils to release 2.9.1 or newer. Another option is to modify
9551 *** your PATH or compiler configuration so that the native linker is
9552 *** used, and then restart.
9553
9554 _LT_EOF
9555 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9557 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9558 else
9559 ld_shlibs=no
9560 fi
9561 ;;
9562
9563 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9564 case `$LD -v 2>&1` in
9565 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9566 ld_shlibs=no
9567 cat <<_LT_EOF 1>&2
9568
9569 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9570 *** reliably create shared libraries on SCO systems. Therefore, libtool
9571 *** is disabling shared libraries support. We urge you to upgrade GNU
9572 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9573 *** your PATH or compiler configuration so that the native linker is
9574 *** used, and then restart.
9575
9576 _LT_EOF
9577 ;;
9578 *)
9579 # For security reasons, it is highly recommended that you always
9580 # use absolute paths for naming shared libraries, and exclude the
9581 # DT_RUNPATH tag from executables and libraries. But doing so
9582 # requires that you compile everything twice, which is a pain.
9583 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9584 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9585 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9586 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9587 else
9588 ld_shlibs=no
9589 fi
9590 ;;
9591 esac
9592 ;;
9593
9594 sunos4*)
9595 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9596 wlarc=
9597 hardcode_direct=yes
9598 hardcode_shlibpath_var=no
9599 ;;
9600
9601 *)
9602 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9604 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9605 else
9606 ld_shlibs=no
9607 fi
9608 ;;
9609 esac
9610
9611 if test "$ld_shlibs" = no; then
9612 runpath_var=
9613 hardcode_libdir_flag_spec=
9614 export_dynamic_flag_spec=
9615 whole_archive_flag_spec=
9616 fi
9617 else
9618 # PORTME fill in a description of your system's linker (not GNU ld)
9619 case $host_os in
9620 aix3*)
9621 allow_undefined_flag=unsupported
9622 always_export_symbols=yes
9623 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'
9624 # Note: this linker hardcodes the directories in LIBPATH if there
9625 # are no directories specified by -L.
9626 hardcode_minus_L=yes
9627 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9628 # Neither direct hardcoding nor static linking is supported with a
9629 # broken collect2.
9630 hardcode_direct=unsupported
9631 fi
9632 ;;
9633
9634 aix[4-9]*)
9635 if test "$host_cpu" = ia64; then
9636 # On IA64, the linker does run time linking by default, so we don't
9637 # have to do anything special.
9638 aix_use_runtimelinking=no
9639 exp_sym_flag='-Bexport'
9640 no_entry_flag=""
9641 else
9642 # If we're using GNU nm, then we don't want the "-C" option.
9643 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9644 # Also, AIX nm treats weak defined symbols like other global
9645 # defined symbols, whereas GNU nm marks them as "W".
9646 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9647 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'
9648 else
9649 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'
9650 fi
9651 aix_use_runtimelinking=no
9652
9653 # Test if we are trying to use run time linking or normal
9654 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9655 # need to do runtime linking.
9656 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9657 for ld_flag in $LDFLAGS; do
9658 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9659 aix_use_runtimelinking=yes
9660 break
9661 fi
9662 done
9663 ;;
9664 esac
9665
9666 exp_sym_flag='-bexport'
9667 no_entry_flag='-bnoentry'
9668 fi
9669
9670 # When large executables or shared objects are built, AIX ld can
9671 # have problems creating the table of contents. If linking a library
9672 # or program results in "error TOC overflow" add -mminimal-toc to
9673 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9674 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9675
9676 archive_cmds=''
9677 hardcode_direct=yes
9678 hardcode_direct_absolute=yes
9679 hardcode_libdir_separator=':'
9680 link_all_deplibs=yes
9681 file_list_spec='${wl}-f,'
9682
9683 if test "$GCC" = yes; then
9684 case $host_os in aix4.[012]|aix4.[012].*)
9685 # We only want to do this on AIX 4.2 and lower, the check
9686 # below for broken collect2 doesn't work under 4.3+
9687 collect2name=`${CC} -print-prog-name=collect2`
9688 if test -f "$collect2name" &&
9689 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9690 then
9691 # We have reworked collect2
9692 :
9693 else
9694 # We have old collect2
9695 hardcode_direct=unsupported
9696 # It fails to find uninstalled libraries when the uninstalled
9697 # path is not listed in the libpath. Setting hardcode_minus_L
9698 # to unsupported forces relinking
9699 hardcode_minus_L=yes
9700 hardcode_libdir_flag_spec='-L$libdir'
9701 hardcode_libdir_separator=
9702 fi
9703 ;;
9704 esac
9705 shared_flag='-shared'
9706 if test "$aix_use_runtimelinking" = yes; then
9707 shared_flag="$shared_flag "'${wl}-G'
9708 fi
9709 else
9710 # not using gcc
9711 if test "$host_cpu" = ia64; then
9712 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9713 # chokes on -Wl,-G. The following line is correct:
9714 shared_flag='-G'
9715 else
9716 if test "$aix_use_runtimelinking" = yes; then
9717 shared_flag='${wl}-G'
9718 else
9719 shared_flag='${wl}-bM:SRE'
9720 fi
9721 fi
9722 fi
9723
9724 export_dynamic_flag_spec='${wl}-bexpall'
9725 # It seems that -bexpall does not export symbols beginning with
9726 # underscore (_), so it is better to generate a list of symbols to export.
9727 always_export_symbols=yes
9728 if test "$aix_use_runtimelinking" = yes; then
9729 # Warning - without using the other runtime loading flags (-brtl),
9730 # -berok will link without error, but may produce a broken library.
9731 allow_undefined_flag='-berok'
9732 # Determine the default libpath from the value encoded in an
9733 # empty executable.
9734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h. */
9736
9737 int
9738 main ()
9739 {
9740
9741 ;
9742 return 0;
9743 }
9744 _ACEOF
9745 if ac_fn_c_try_link "$LINENO"; then :
9746
9747 lt_aix_libpath_sed='
9748 /Import File Strings/,/^$/ {
9749 /^0/ {
9750 s/^0 *\(.*\)$/\1/
9751 p
9752 }
9753 }'
9754 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9755 # Check for a 64-bit object if we didn't find anything.
9756 if test -z "$aix_libpath"; then
9757 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9758 fi
9759 fi
9760 rm -f core conftest.err conftest.$ac_objext \
9761 conftest$ac_exeext conftest.$ac_ext
9762 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9763
9764 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9765 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"
9766 else
9767 if test "$host_cpu" = ia64; then
9768 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9769 allow_undefined_flag="-z nodefs"
9770 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"
9771 else
9772 # Determine the default libpath from the value encoded in an
9773 # empty executable.
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776
9777 int
9778 main ()
9779 {
9780
9781 ;
9782 return 0;
9783 }
9784 _ACEOF
9785 if ac_fn_c_try_link "$LINENO"; then :
9786
9787 lt_aix_libpath_sed='
9788 /Import File Strings/,/^$/ {
9789 /^0/ {
9790 s/^0 *\(.*\)$/\1/
9791 p
9792 }
9793 }'
9794 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9795 # Check for a 64-bit object if we didn't find anything.
9796 if test -z "$aix_libpath"; then
9797 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9798 fi
9799 fi
9800 rm -f core conftest.err conftest.$ac_objext \
9801 conftest$ac_exeext conftest.$ac_ext
9802 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9803
9804 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9805 # Warning - without using the other run time loading flags,
9806 # -berok will link without error, but may produce a broken library.
9807 no_undefined_flag=' ${wl}-bernotok'
9808 allow_undefined_flag=' ${wl}-berok'
9809 if test "$with_gnu_ld" = yes; then
9810 # We only use this code for GNU lds that support --whole-archive.
9811 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9812 else
9813 # Exported symbols can be pulled into shared objects from archives
9814 whole_archive_flag_spec='$convenience'
9815 fi
9816 archive_cmds_need_lc=yes
9817 # This is similar to how AIX traditionally builds its shared libraries.
9818 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'
9819 fi
9820 fi
9821 ;;
9822
9823 amigaos*)
9824 case $host_cpu in
9825 powerpc)
9826 # see comment about AmigaOS4 .so support
9827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9828 archive_expsym_cmds=''
9829 ;;
9830 m68k)
9831 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)'
9832 hardcode_libdir_flag_spec='-L$libdir'
9833 hardcode_minus_L=yes
9834 ;;
9835 esac
9836 ;;
9837
9838 bsdi[45]*)
9839 export_dynamic_flag_spec=-rdynamic
9840 ;;
9841
9842 cygwin* | mingw* | pw32* | cegcc*)
9843 # When not using gcc, we currently assume that we are using
9844 # Microsoft Visual C++.
9845 # hardcode_libdir_flag_spec is actually meaningless, as there is
9846 # no search path for DLLs.
9847 hardcode_libdir_flag_spec=' '
9848 allow_undefined_flag=unsupported
9849 # Tell ltmain to make .lib files, not .a files.
9850 libext=lib
9851 # Tell ltmain to make .dll files, not .so files.
9852 shrext_cmds=".dll"
9853 # FIXME: Setting linknames here is a bad hack.
9854 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9855 # The linker will automatically build a .lib file if we build a DLL.
9856 old_archive_from_new_cmds='true'
9857 # FIXME: Should let the user specify the lib program.
9858 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9859 fix_srcfile_path='`cygpath -w "$srcfile"`'
9860 enable_shared_with_static_runtimes=yes
9861 ;;
9862
9863 darwin* | rhapsody*)
9864
9865
9866 archive_cmds_need_lc=no
9867 hardcode_direct=no
9868 hardcode_automatic=yes
9869 hardcode_shlibpath_var=unsupported
9870 if test "$lt_cv_ld_force_load" = "yes"; then
9871 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\"`'
9872 else
9873 whole_archive_flag_spec=''
9874 fi
9875 link_all_deplibs=yes
9876 allow_undefined_flag="$_lt_dar_allow_undefined"
9877 case $cc_basename in
9878 ifort*) _lt_dar_can_shared=yes ;;
9879 *) _lt_dar_can_shared=$GCC ;;
9880 esac
9881 if test "$_lt_dar_can_shared" = "yes"; then
9882 output_verbose_link_cmd=func_echo_all
9883 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9884 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9885 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}"
9886 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}"
9887
9888 else
9889 ld_shlibs=no
9890 fi
9891
9892 ;;
9893
9894 dgux*)
9895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9896 hardcode_libdir_flag_spec='-L$libdir'
9897 hardcode_shlibpath_var=no
9898 ;;
9899
9900 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9901 # support. Future versions do this automatically, but an explicit c++rt0.o
9902 # does not break anything, and helps significantly (at the cost of a little
9903 # extra space).
9904 freebsd2.2*)
9905 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9906 hardcode_libdir_flag_spec='-R$libdir'
9907 hardcode_direct=yes
9908 hardcode_shlibpath_var=no
9909 ;;
9910
9911 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9912 freebsd2.*)
9913 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9914 hardcode_direct=yes
9915 hardcode_minus_L=yes
9916 hardcode_shlibpath_var=no
9917 ;;
9918
9919 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9920 freebsd* | dragonfly*)
9921 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9922 hardcode_libdir_flag_spec='-R$libdir'
9923 hardcode_direct=yes
9924 hardcode_shlibpath_var=no
9925 ;;
9926
9927 hpux9*)
9928 if test "$GCC" = yes; then
9929 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'
9930 else
9931 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'
9932 fi
9933 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9934 hardcode_libdir_separator=:
9935 hardcode_direct=yes
9936
9937 # hardcode_minus_L: Not really in the search PATH,
9938 # but as the default location of the library.
9939 hardcode_minus_L=yes
9940 export_dynamic_flag_spec='${wl}-E'
9941 ;;
9942
9943 hpux10*)
9944 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9945 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9946 else
9947 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9948 fi
9949 if test "$with_gnu_ld" = no; then
9950 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9951 hardcode_libdir_flag_spec_ld='+b $libdir'
9952 hardcode_libdir_separator=:
9953 hardcode_direct=yes
9954 hardcode_direct_absolute=yes
9955 export_dynamic_flag_spec='${wl}-E'
9956 # hardcode_minus_L: Not really in the search PATH,
9957 # but as the default location of the library.
9958 hardcode_minus_L=yes
9959 fi
9960 ;;
9961
9962 hpux11*)
9963 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9964 case $host_cpu in
9965 hppa*64*)
9966 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9967 ;;
9968 ia64*)
9969 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9970 ;;
9971 *)
9972 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9973 ;;
9974 esac
9975 else
9976 case $host_cpu in
9977 hppa*64*)
9978 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9979 ;;
9980 ia64*)
9981 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9982 ;;
9983 *)
9984
9985 # Older versions of the 11.00 compiler do not understand -b yet
9986 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9988 $as_echo_n "checking if $CC understands -b... " >&6; }
9989 if ${lt_cv_prog_compiler__b+:} false; then :
9990 $as_echo_n "(cached) " >&6
9991 else
9992 lt_cv_prog_compiler__b=no
9993 save_LDFLAGS="$LDFLAGS"
9994 LDFLAGS="$LDFLAGS -b"
9995 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9996 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9997 # The linker can only warn and ignore the option if not recognized
9998 # So say no if there are warnings
9999 if test -s conftest.err; then
10000 # Append any errors to the config.log.
10001 cat conftest.err 1>&5
10002 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10004 if diff conftest.exp conftest.er2 >/dev/null; then
10005 lt_cv_prog_compiler__b=yes
10006 fi
10007 else
10008 lt_cv_prog_compiler__b=yes
10009 fi
10010 fi
10011 $RM -r conftest*
10012 LDFLAGS="$save_LDFLAGS"
10013
10014 fi
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10016 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10017
10018 if test x"$lt_cv_prog_compiler__b" = xyes; then
10019 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10020 else
10021 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10022 fi
10023
10024 ;;
10025 esac
10026 fi
10027 if test "$with_gnu_ld" = no; then
10028 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10029 hardcode_libdir_separator=:
10030
10031 case $host_cpu in
10032 hppa*64*|ia64*)
10033 hardcode_direct=no
10034 hardcode_shlibpath_var=no
10035 ;;
10036 *)
10037 hardcode_direct=yes
10038 hardcode_direct_absolute=yes
10039 export_dynamic_flag_spec='${wl}-E'
10040
10041 # hardcode_minus_L: Not really in the search PATH,
10042 # but as the default location of the library.
10043 hardcode_minus_L=yes
10044 ;;
10045 esac
10046 fi
10047 ;;
10048
10049 irix5* | irix6* | nonstopux*)
10050 if test "$GCC" = yes; then
10051 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'
10052 # Try to use the -exported_symbol ld option, if it does not
10053 # work, assume that -exports_file does not work either and
10054 # implicitly export all symbols.
10055 save_LDFLAGS="$LDFLAGS"
10056 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10058 /* end confdefs.h. */
10059 int foo(void) {}
10060 _ACEOF
10061 if ac_fn_c_try_link "$LINENO"; then :
10062 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'
10063
10064 fi
10065 rm -f core conftest.err conftest.$ac_objext \
10066 conftest$ac_exeext conftest.$ac_ext
10067 LDFLAGS="$save_LDFLAGS"
10068 else
10069 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'
10070 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'
10071 fi
10072 archive_cmds_need_lc='no'
10073 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10074 hardcode_libdir_separator=:
10075 inherit_rpath=yes
10076 link_all_deplibs=yes
10077 ;;
10078
10079 netbsd*)
10080 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10081 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10082 else
10083 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10084 fi
10085 hardcode_libdir_flag_spec='-R$libdir'
10086 hardcode_direct=yes
10087 hardcode_shlibpath_var=no
10088 ;;
10089
10090 newsos6)
10091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10092 hardcode_direct=yes
10093 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10094 hardcode_libdir_separator=:
10095 hardcode_shlibpath_var=no
10096 ;;
10097
10098 *nto* | *qnx*)
10099 ;;
10100
10101 openbsd*)
10102 if test -f /usr/libexec/ld.so; then
10103 hardcode_direct=yes
10104 hardcode_shlibpath_var=no
10105 hardcode_direct_absolute=yes
10106 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10107 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10108 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10109 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10110 export_dynamic_flag_spec='${wl}-E'
10111 else
10112 case $host_os in
10113 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10114 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10115 hardcode_libdir_flag_spec='-R$libdir'
10116 ;;
10117 *)
10118 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10119 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10120 ;;
10121 esac
10122 fi
10123 else
10124 ld_shlibs=no
10125 fi
10126 ;;
10127
10128 os2*)
10129 hardcode_libdir_flag_spec='-L$libdir'
10130 hardcode_minus_L=yes
10131 allow_undefined_flag=unsupported
10132 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'
10133 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10134 ;;
10135
10136 osf3*)
10137 if test "$GCC" = yes; then
10138 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10139 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'
10140 else
10141 allow_undefined_flag=' -expect_unresolved \*'
10142 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'
10143 fi
10144 archive_cmds_need_lc='no'
10145 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10146 hardcode_libdir_separator=:
10147 ;;
10148
10149 osf4* | osf5*) # as osf3* with the addition of -msym flag
10150 if test "$GCC" = yes; then
10151 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10152 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'
10153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10154 else
10155 allow_undefined_flag=' -expect_unresolved \*'
10156 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'
10157 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~
10158 $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'
10159
10160 # Both c and cxx compiler support -rpath directly
10161 hardcode_libdir_flag_spec='-rpath $libdir'
10162 fi
10163 archive_cmds_need_lc='no'
10164 hardcode_libdir_separator=:
10165 ;;
10166
10167 solaris*)
10168 no_undefined_flag=' -z defs'
10169 if test "$GCC" = yes; then
10170 wlarc='${wl}'
10171 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10172 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10173 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10174 else
10175 case `$CC -V 2>&1` in
10176 *"Compilers 5.0"*)
10177 wlarc=''
10178 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10179 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10180 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10181 ;;
10182 *)
10183 wlarc='${wl}'
10184 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10185 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10186 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10187 ;;
10188 esac
10189 fi
10190 hardcode_libdir_flag_spec='-R$libdir'
10191 hardcode_shlibpath_var=no
10192 case $host_os in
10193 solaris2.[0-5] | solaris2.[0-5].*) ;;
10194 *)
10195 # The compiler driver will combine and reorder linker options,
10196 # but understands `-z linker_flag'. GCC discards it without `$wl',
10197 # but is careful enough not to reorder.
10198 # Supported since Solaris 2.6 (maybe 2.5.1?)
10199 if test "$GCC" = yes; then
10200 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10201 else
10202 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10203 fi
10204 ;;
10205 esac
10206 link_all_deplibs=yes
10207 ;;
10208
10209 sunos4*)
10210 if test "x$host_vendor" = xsequent; then
10211 # Use $CC to link under sequent, because it throws in some extra .o
10212 # files that make .init and .fini sections work.
10213 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10214 else
10215 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10216 fi
10217 hardcode_libdir_flag_spec='-L$libdir'
10218 hardcode_direct=yes
10219 hardcode_minus_L=yes
10220 hardcode_shlibpath_var=no
10221 ;;
10222
10223 sysv4)
10224 case $host_vendor in
10225 sni)
10226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10227 hardcode_direct=yes # is this really true???
10228 ;;
10229 siemens)
10230 ## LD is ld it makes a PLAMLIB
10231 ## CC just makes a GrossModule.
10232 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10233 reload_cmds='$CC -r -o $output$reload_objs'
10234 hardcode_direct=no
10235 ;;
10236 motorola)
10237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10238 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10239 ;;
10240 esac
10241 runpath_var='LD_RUN_PATH'
10242 hardcode_shlibpath_var=no
10243 ;;
10244
10245 sysv4.3*)
10246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10247 hardcode_shlibpath_var=no
10248 export_dynamic_flag_spec='-Bexport'
10249 ;;
10250
10251 sysv4*MP*)
10252 if test -d /usr/nec; then
10253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10254 hardcode_shlibpath_var=no
10255 runpath_var=LD_RUN_PATH
10256 hardcode_runpath_var=yes
10257 ld_shlibs=yes
10258 fi
10259 ;;
10260
10261 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10262 no_undefined_flag='${wl}-z,text'
10263 archive_cmds_need_lc=no
10264 hardcode_shlibpath_var=no
10265 runpath_var='LD_RUN_PATH'
10266
10267 if test "$GCC" = yes; then
10268 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10270 else
10271 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10272 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10273 fi
10274 ;;
10275
10276 sysv5* | sco3.2v5* | sco5v6*)
10277 # Note: We can NOT use -z defs as we might desire, because we do not
10278 # link with -lc, and that would cause any symbols used from libc to
10279 # always be unresolved, which means just about no library would
10280 # ever link correctly. If we're not using GNU ld we use -z text
10281 # though, which does catch some bad symbols but isn't as heavy-handed
10282 # as -z defs.
10283 no_undefined_flag='${wl}-z,text'
10284 allow_undefined_flag='${wl}-z,nodefs'
10285 archive_cmds_need_lc=no
10286 hardcode_shlibpath_var=no
10287 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10288 hardcode_libdir_separator=':'
10289 link_all_deplibs=yes
10290 export_dynamic_flag_spec='${wl}-Bexport'
10291 runpath_var='LD_RUN_PATH'
10292
10293 if test "$GCC" = yes; then
10294 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10295 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 else
10297 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10298 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10299 fi
10300 ;;
10301
10302 uts4*)
10303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10304 hardcode_libdir_flag_spec='-L$libdir'
10305 hardcode_shlibpath_var=no
10306 ;;
10307
10308 *)
10309 ld_shlibs=no
10310 ;;
10311 esac
10312
10313 if test x$host_vendor = xsni; then
10314 case $host in
10315 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10316 export_dynamic_flag_spec='${wl}-Blargedynsym'
10317 ;;
10318 esac
10319 fi
10320 fi
10321
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10323 $as_echo "$ld_shlibs" >&6; }
10324 test "$ld_shlibs" = no && can_build_shared=no
10325
10326 with_gnu_ld=$with_gnu_ld
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342 #
10343 # Do we need to explicitly link libc?
10344 #
10345 case "x$archive_cmds_need_lc" in
10346 x|xyes)
10347 # Assume -lc should be added
10348 archive_cmds_need_lc=yes
10349
10350 if test "$enable_shared" = yes && test "$GCC" = yes; then
10351 case $archive_cmds in
10352 *'~'*)
10353 # FIXME: we may have to deal with multi-command sequences.
10354 ;;
10355 '$CC '*)
10356 # Test whether the compiler implicitly links with -lc since on some
10357 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10358 # to ld, don't add -lc before -lgcc.
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10360 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10361 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10362 $as_echo_n "(cached) " >&6
10363 else
10364 $RM conftest*
10365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10366
10367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10368 (eval $ac_compile) 2>&5
10369 ac_status=$?
10370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10371 test $ac_status = 0; } 2>conftest.err; then
10372 soname=conftest
10373 lib=conftest
10374 libobjs=conftest.$ac_objext
10375 deplibs=
10376 wl=$lt_prog_compiler_wl
10377 pic_flag=$lt_prog_compiler_pic
10378 compiler_flags=-v
10379 linker_flags=-v
10380 verstring=
10381 output_objdir=.
10382 libname=conftest
10383 lt_save_allow_undefined_flag=$allow_undefined_flag
10384 allow_undefined_flag=
10385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10386 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10387 ac_status=$?
10388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10389 test $ac_status = 0; }
10390 then
10391 lt_cv_archive_cmds_need_lc=no
10392 else
10393 lt_cv_archive_cmds_need_lc=yes
10394 fi
10395 allow_undefined_flag=$lt_save_allow_undefined_flag
10396 else
10397 cat conftest.err 1>&5
10398 fi
10399 $RM conftest*
10400
10401 fi
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10403 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10404 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10405 ;;
10406 esac
10407 fi
10408 ;;
10409 esac
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10568 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10569
10570 if test "$GCC" = yes; then
10571 case $host_os in
10572 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10573 *) lt_awk_arg="/^libraries:/" ;;
10574 esac
10575 case $host_os in
10576 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10577 *) lt_sed_strip_eq="s,=/,/,g" ;;
10578 esac
10579 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10580 case $lt_search_path_spec in
10581 *\;*)
10582 # if the path contains ";" then we assume it to be the separator
10583 # otherwise default to the standard path separator (i.e. ":") - it is
10584 # assumed that no part of a normal pathname contains ";" but that should
10585 # okay in the real world where ";" in dirpaths is itself problematic.
10586 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10587 ;;
10588 *)
10589 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10590 ;;
10591 esac
10592 # Ok, now we have the path, separated by spaces, we can step through it
10593 # and add multilib dir if necessary.
10594 lt_tmp_lt_search_path_spec=
10595 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10596 for lt_sys_path in $lt_search_path_spec; do
10597 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10598 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10599 else
10600 test -d "$lt_sys_path" && \
10601 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10602 fi
10603 done
10604 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10605 BEGIN {RS=" "; FS="/|\n";} {
10606 lt_foo="";
10607 lt_count=0;
10608 for (lt_i = NF; lt_i > 0; lt_i--) {
10609 if ($lt_i != "" && $lt_i != ".") {
10610 if ($lt_i == "..") {
10611 lt_count++;
10612 } else {
10613 if (lt_count == 0) {
10614 lt_foo="/" $lt_i lt_foo;
10615 } else {
10616 lt_count--;
10617 }
10618 }
10619 }
10620 }
10621 if (lt_foo != "") { lt_freq[lt_foo]++; }
10622 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10623 }'`
10624 # AWK program above erroneously prepends '/' to C:/dos/paths
10625 # for these hosts.
10626 case $host_os in
10627 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10628 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10629 esac
10630 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10631 else
10632 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10633 fi
10634 library_names_spec=
10635 libname_spec='lib$name'
10636 soname_spec=
10637 shrext_cmds=".so"
10638 postinstall_cmds=
10639 postuninstall_cmds=
10640 finish_cmds=
10641 finish_eval=
10642 shlibpath_var=
10643 shlibpath_overrides_runpath=unknown
10644 version_type=none
10645 dynamic_linker="$host_os ld.so"
10646 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10647 need_lib_prefix=unknown
10648 hardcode_into_libs=no
10649
10650 # when you set need_version to no, make sure it does not cause -set_version
10651 # flags to be left without arguments
10652 need_version=unknown
10653
10654 case $host_os in
10655 aix3*)
10656 version_type=linux
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10658 shlibpath_var=LIBPATH
10659
10660 # AIX 3 has no versioning support, so we append a major version to the name.
10661 soname_spec='${libname}${release}${shared_ext}$major'
10662 ;;
10663
10664 aix[4-9]*)
10665 version_type=linux
10666 need_lib_prefix=no
10667 need_version=no
10668 hardcode_into_libs=yes
10669 if test "$host_cpu" = ia64; then
10670 # AIX 5 supports IA64
10671 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10672 shlibpath_var=LD_LIBRARY_PATH
10673 else
10674 # With GCC up to 2.95.x, collect2 would create an import file
10675 # for dependence libraries. The import file would start with
10676 # the line `#! .'. This would cause the generated library to
10677 # depend on `.', always an invalid library. This was fixed in
10678 # development snapshots of GCC prior to 3.0.
10679 case $host_os in
10680 aix4 | aix4.[01] | aix4.[01].*)
10681 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10682 echo ' yes '
10683 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10684 :
10685 else
10686 can_build_shared=no
10687 fi
10688 ;;
10689 esac
10690 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10691 # soname into executable. Probably we can add versioning support to
10692 # collect2, so additional links can be useful in future.
10693 if test "$aix_use_runtimelinking" = yes; then
10694 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10695 # instead of lib<name>.a to let people know that these are not
10696 # typical AIX shared libraries.
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10698 else
10699 # We preserve .a as extension for shared libraries through AIX4.2
10700 # and later when we are not doing run time linking.
10701 library_names_spec='${libname}${release}.a $libname.a'
10702 soname_spec='${libname}${release}${shared_ext}$major'
10703 fi
10704 shlibpath_var=LIBPATH
10705 fi
10706 ;;
10707
10708 amigaos*)
10709 case $host_cpu in
10710 powerpc)
10711 # Since July 2007 AmigaOS4 officially supports .so libraries.
10712 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714 ;;
10715 m68k)
10716 library_names_spec='$libname.ixlibrary $libname.a'
10717 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10718 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'
10719 ;;
10720 esac
10721 ;;
10722
10723 beos*)
10724 library_names_spec='${libname}${shared_ext}'
10725 dynamic_linker="$host_os ld.so"
10726 shlibpath_var=LIBRARY_PATH
10727 ;;
10728
10729 bsdi[45]*)
10730 version_type=linux
10731 need_version=no
10732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10733 soname_spec='${libname}${release}${shared_ext}$major'
10734 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10735 shlibpath_var=LD_LIBRARY_PATH
10736 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10737 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10738 # the default ld.so.conf also contains /usr/contrib/lib and
10739 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10740 # libtool to hard-code these into programs
10741 ;;
10742
10743 cygwin* | mingw* | pw32* | cegcc*)
10744 version_type=windows
10745 shrext_cmds=".dll"
10746 need_version=no
10747 need_lib_prefix=no
10748
10749 case $GCC,$host_os in
10750 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10751 library_names_spec='$libname.dll.a'
10752 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10753 postinstall_cmds='base_file=`basename \${file}`~
10754 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10755 dldir=$destdir/`dirname \$dlpath`~
10756 test -d \$dldir || mkdir -p \$dldir~
10757 $install_prog $dir/$dlname \$dldir/$dlname~
10758 chmod a+x \$dldir/$dlname~
10759 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10760 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10761 fi'
10762 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10763 dlpath=$dir/\$dldll~
10764 $RM \$dlpath'
10765 shlibpath_overrides_runpath=yes
10766
10767 case $host_os in
10768 cygwin*)
10769 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10770 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10771
10772 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10773 ;;
10774 mingw* | cegcc*)
10775 # MinGW DLLs use traditional 'lib' prefix
10776 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10777 ;;
10778 pw32*)
10779 # pw32 DLLs use 'pw' prefix rather than 'lib'
10780 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10781 ;;
10782 esac
10783 ;;
10784
10785 *)
10786 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10787 ;;
10788 esac
10789 dynamic_linker='Win32 ld.exe'
10790 # FIXME: first we should search . and the directory the executable is in
10791 shlibpath_var=PATH
10792 ;;
10793
10794 darwin* | rhapsody*)
10795 dynamic_linker="$host_os dyld"
10796 version_type=darwin
10797 need_lib_prefix=no
10798 need_version=no
10799 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10800 soname_spec='${libname}${release}${major}$shared_ext'
10801 shlibpath_overrides_runpath=yes
10802 shlibpath_var=DYLD_LIBRARY_PATH
10803 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10804
10805 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10806 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10807 ;;
10808
10809 dgux*)
10810 version_type=linux
10811 need_lib_prefix=no
10812 need_version=no
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10814 soname_spec='${libname}${release}${shared_ext}$major'
10815 shlibpath_var=LD_LIBRARY_PATH
10816 ;;
10817
10818 freebsd* | dragonfly*)
10819 # DragonFly does not have aout. When/if they implement a new
10820 # versioning mechanism, adjust this.
10821 if test -x /usr/bin/objformat; then
10822 objformat=`/usr/bin/objformat`
10823 else
10824 case $host_os in
10825 freebsd[23].*) objformat=aout ;;
10826 *) objformat=elf ;;
10827 esac
10828 fi
10829 version_type=freebsd-$objformat
10830 case $version_type in
10831 freebsd-elf*)
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10833 need_version=no
10834 need_lib_prefix=no
10835 ;;
10836 freebsd-*)
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10838 need_version=yes
10839 ;;
10840 esac
10841 shlibpath_var=LD_LIBRARY_PATH
10842 case $host_os in
10843 freebsd2.*)
10844 shlibpath_overrides_runpath=yes
10845 ;;
10846 freebsd3.[01]* | freebsdelf3.[01]*)
10847 shlibpath_overrides_runpath=yes
10848 hardcode_into_libs=yes
10849 ;;
10850 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10851 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10852 shlibpath_overrides_runpath=no
10853 hardcode_into_libs=yes
10854 ;;
10855 *) # from 4.6 on, and DragonFly
10856 shlibpath_overrides_runpath=yes
10857 hardcode_into_libs=yes
10858 ;;
10859 esac
10860 ;;
10861
10862 haiku*)
10863 version_type=linux
10864 need_lib_prefix=no
10865 need_version=no
10866 dynamic_linker="$host_os runtime_loader"
10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10868 soname_spec='${libname}${release}${shared_ext}$major'
10869 shlibpath_var=LIBRARY_PATH
10870 shlibpath_overrides_runpath=yes
10871 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10872 hardcode_into_libs=yes
10873 ;;
10874
10875 hpux9* | hpux10* | hpux11*)
10876 # Give a soname corresponding to the major version so that dld.sl refuses to
10877 # link against other versions.
10878 version_type=sunos
10879 need_lib_prefix=no
10880 need_version=no
10881 case $host_cpu in
10882 ia64*)
10883 shrext_cmds='.so'
10884 hardcode_into_libs=yes
10885 dynamic_linker="$host_os dld.so"
10886 shlibpath_var=LD_LIBRARY_PATH
10887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889 soname_spec='${libname}${release}${shared_ext}$major'
10890 if test "X$HPUX_IA64_MODE" = X32; then
10891 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10892 else
10893 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10894 fi
10895 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10896 ;;
10897 hppa*64*)
10898 shrext_cmds='.sl'
10899 hardcode_into_libs=yes
10900 dynamic_linker="$host_os dld.sl"
10901 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10902 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904 soname_spec='${libname}${release}${shared_ext}$major'
10905 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10907 ;;
10908 *)
10909 shrext_cmds='.sl'
10910 dynamic_linker="$host_os dld.sl"
10911 shlibpath_var=SHLIB_PATH
10912 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914 soname_spec='${libname}${release}${shared_ext}$major'
10915 ;;
10916 esac
10917 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10918 postinstall_cmds='chmod 555 $lib'
10919 # or fails outright, so override atomically:
10920 install_override_mode=555
10921 ;;
10922
10923 interix[3-9]*)
10924 version_type=linux
10925 need_lib_prefix=no
10926 need_version=no
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10928 soname_spec='${libname}${release}${shared_ext}$major'
10929 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10930 shlibpath_var=LD_LIBRARY_PATH
10931 shlibpath_overrides_runpath=no
10932 hardcode_into_libs=yes
10933 ;;
10934
10935 irix5* | irix6* | nonstopux*)
10936 case $host_os in
10937 nonstopux*) version_type=nonstopux ;;
10938 *)
10939 if test "$lt_cv_prog_gnu_ld" = yes; then
10940 version_type=linux
10941 else
10942 version_type=irix
10943 fi ;;
10944 esac
10945 need_lib_prefix=no
10946 need_version=no
10947 soname_spec='${libname}${release}${shared_ext}$major'
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10949 case $host_os in
10950 irix5* | nonstopux*)
10951 libsuff= shlibsuff=
10952 ;;
10953 *)
10954 case $LD in # libtool.m4 will add one of these switches to LD
10955 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10956 libsuff= shlibsuff= libmagic=32-bit;;
10957 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10958 libsuff=32 shlibsuff=N32 libmagic=N32;;
10959 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10960 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10961 *) libsuff= shlibsuff= libmagic=never-match;;
10962 esac
10963 ;;
10964 esac
10965 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10966 shlibpath_overrides_runpath=no
10967 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10968 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10969 hardcode_into_libs=yes
10970 ;;
10971
10972 # No shared lib support for Linux oldld, aout, or coff.
10973 linux*oldld* | linux*aout* | linux*coff*)
10974 dynamic_linker=no
10975 ;;
10976
10977 # This must be Linux ELF.
10978
10979 # uclinux* changes (here and below) have been submitted to the libtool
10980 # project, but have not yet been accepted: they are GCC-local changes
10981 # for the time being. (See
10982 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10983 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10984 version_type=linux
10985 need_lib_prefix=no
10986 need_version=no
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988 soname_spec='${libname}${release}${shared_ext}$major'
10989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10990 shlibpath_var=LD_LIBRARY_PATH
10991 shlibpath_overrides_runpath=no
10992
10993 # Some binutils ld are patched to set DT_RUNPATH
10994 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 lt_cv_shlibpath_overrides_runpath=no
10998 save_LDFLAGS=$LDFLAGS
10999 save_libdir=$libdir
11000 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11001 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003 /* end confdefs.h. */
11004
11005 int
11006 main ()
11007 {
11008
11009 ;
11010 return 0;
11011 }
11012 _ACEOF
11013 if ac_fn_c_try_link "$LINENO"; then :
11014 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11015 lt_cv_shlibpath_overrides_runpath=yes
11016 fi
11017 fi
11018 rm -f core conftest.err conftest.$ac_objext \
11019 conftest$ac_exeext conftest.$ac_ext
11020 LDFLAGS=$save_LDFLAGS
11021 libdir=$save_libdir
11022
11023 fi
11024
11025 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11026
11027 # This implies no fast_install, which is unacceptable.
11028 # Some rework will be needed to allow for fast_install
11029 # before this can be enabled.
11030 hardcode_into_libs=yes
11031
11032 # Append ld.so.conf contents to the search path
11033 if test -f /etc/ld.so.conf; then
11034 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' ' '`
11035 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11036 fi
11037
11038 # We used to test for /lib/ld.so.1 and disable shared libraries on
11039 # powerpc, because MkLinux only supported shared libraries with the
11040 # GNU dynamic linker. Since this was broken with cross compilers,
11041 # most powerpc-linux boxes support dynamic linking these days and
11042 # people can always --disable-shared, the test was removed, and we
11043 # assume the GNU/Linux dynamic linker is in use.
11044 dynamic_linker='GNU/Linux ld.so'
11045 ;;
11046
11047 netbsd*)
11048 version_type=sunos
11049 need_lib_prefix=no
11050 need_version=no
11051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11054 dynamic_linker='NetBSD (a.out) ld.so'
11055 else
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11057 soname_spec='${libname}${release}${shared_ext}$major'
11058 dynamic_linker='NetBSD ld.elf_so'
11059 fi
11060 shlibpath_var=LD_LIBRARY_PATH
11061 shlibpath_overrides_runpath=yes
11062 hardcode_into_libs=yes
11063 ;;
11064
11065 newsos6)
11066 version_type=linux
11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11068 shlibpath_var=LD_LIBRARY_PATH
11069 shlibpath_overrides_runpath=yes
11070 ;;
11071
11072 *nto* | *qnx*)
11073 version_type=qnx
11074 need_lib_prefix=no
11075 need_version=no
11076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11077 soname_spec='${libname}${release}${shared_ext}$major'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 shlibpath_overrides_runpath=no
11080 hardcode_into_libs=yes
11081 dynamic_linker='ldqnx.so'
11082 ;;
11083
11084 openbsd*)
11085 version_type=sunos
11086 sys_lib_dlsearch_path_spec="/usr/lib"
11087 need_lib_prefix=no
11088 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11089 case $host_os in
11090 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11091 *) need_version=no ;;
11092 esac
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11095 shlibpath_var=LD_LIBRARY_PATH
11096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11097 case $host_os in
11098 openbsd2.[89] | openbsd2.[89].*)
11099 shlibpath_overrides_runpath=no
11100 ;;
11101 *)
11102 shlibpath_overrides_runpath=yes
11103 ;;
11104 esac
11105 else
11106 shlibpath_overrides_runpath=yes
11107 fi
11108 ;;
11109
11110 os2*)
11111 libname_spec='$name'
11112 shrext_cmds=".dll"
11113 need_lib_prefix=no
11114 library_names_spec='$libname${shared_ext} $libname.a'
11115 dynamic_linker='OS/2 ld.exe'
11116 shlibpath_var=LIBPATH
11117 ;;
11118
11119 osf3* | osf4* | osf5*)
11120 version_type=osf
11121 need_lib_prefix=no
11122 need_version=no
11123 soname_spec='${libname}${release}${shared_ext}$major'
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11127 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11128 ;;
11129
11130 rdos*)
11131 dynamic_linker=no
11132 ;;
11133
11134 solaris*)
11135 version_type=linux
11136 need_lib_prefix=no
11137 need_version=no
11138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11139 soname_spec='${libname}${release}${shared_ext}$major'
11140 shlibpath_var=LD_LIBRARY_PATH
11141 shlibpath_overrides_runpath=yes
11142 hardcode_into_libs=yes
11143 # ldd complains unless libraries are executable
11144 postinstall_cmds='chmod +x $lib'
11145 ;;
11146
11147 sunos4*)
11148 version_type=sunos
11149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11150 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11151 shlibpath_var=LD_LIBRARY_PATH
11152 shlibpath_overrides_runpath=yes
11153 if test "$with_gnu_ld" = yes; then
11154 need_lib_prefix=no
11155 fi
11156 need_version=yes
11157 ;;
11158
11159 sysv4 | sysv4.3*)
11160 version_type=linux
11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162 soname_spec='${libname}${release}${shared_ext}$major'
11163 shlibpath_var=LD_LIBRARY_PATH
11164 case $host_vendor in
11165 sni)
11166 shlibpath_overrides_runpath=no
11167 need_lib_prefix=no
11168 runpath_var=LD_RUN_PATH
11169 ;;
11170 siemens)
11171 need_lib_prefix=no
11172 ;;
11173 motorola)
11174 need_lib_prefix=no
11175 need_version=no
11176 shlibpath_overrides_runpath=no
11177 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11178 ;;
11179 esac
11180 ;;
11181
11182 sysv4*MP*)
11183 if test -d /usr/nec ;then
11184 version_type=linux
11185 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11186 soname_spec='$libname${shared_ext}.$major'
11187 shlibpath_var=LD_LIBRARY_PATH
11188 fi
11189 ;;
11190
11191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11192 version_type=freebsd-elf
11193 need_lib_prefix=no
11194 need_version=no
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11196 soname_spec='${libname}${release}${shared_ext}$major'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 shlibpath_overrides_runpath=yes
11199 hardcode_into_libs=yes
11200 if test "$with_gnu_ld" = yes; then
11201 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11202 else
11203 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11204 case $host_os in
11205 sco3.2v5*)
11206 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11207 ;;
11208 esac
11209 fi
11210 sys_lib_dlsearch_path_spec='/usr/lib'
11211 ;;
11212
11213 tpf*)
11214 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11215 version_type=linux
11216 need_lib_prefix=no
11217 need_version=no
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219 shlibpath_var=LD_LIBRARY_PATH
11220 shlibpath_overrides_runpath=no
11221 hardcode_into_libs=yes
11222 ;;
11223
11224 uts4*)
11225 version_type=linux
11226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11227 soname_spec='${libname}${release}${shared_ext}$major'
11228 shlibpath_var=LD_LIBRARY_PATH
11229 ;;
11230
11231 # Shared libraries for VwWorks, >= 7 only at this stage
11232 # and (fpic) still incompatible with "large" code models
11233 # in a few configurations. Only for RTP mode in any case,
11234 # and upon explicit request at configure time.
11235 vxworks7*)
11236 dynamic_linker=no
11237 case ${with_multisubdir}-${enable_shared} in
11238 *large*)
11239 ;;
11240 *mrtp*-yes)
11241 version_type=linux
11242 need_lib_prefix=no
11243 need_version=no
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11245 soname_spec='${libname}${release}${shared_ext}$major'
11246 dynamic_linker="$host_os module_loader"
11247 ;;
11248 esac
11249 ;;
11250 *)
11251 dynamic_linker=no
11252 ;;
11253 esac
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11255 $as_echo "$dynamic_linker" >&6; }
11256 test "$dynamic_linker" = no && can_build_shared=no
11257
11258 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11259 if test "$GCC" = yes; then
11260 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11261 fi
11262
11263 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11264 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11265 fi
11266 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11267 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11268 fi
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11362 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11363 hardcode_action=
11364 if test -n "$hardcode_libdir_flag_spec" ||
11365 test -n "$runpath_var" ||
11366 test "X$hardcode_automatic" = "Xyes" ; then
11367
11368 # We can hardcode non-existent directories.
11369 if test "$hardcode_direct" != no &&
11370 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11371 # have to relink, otherwise we might link with an installed library
11372 # when we should be linking with a yet-to-be-installed one
11373 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11374 test "$hardcode_minus_L" != no; then
11375 # Linking always hardcodes the temporary library directory.
11376 hardcode_action=relink
11377 else
11378 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11379 hardcode_action=immediate
11380 fi
11381 else
11382 # We cannot hardcode anything, or else we can only hardcode existing
11383 # directories.
11384 hardcode_action=unsupported
11385 fi
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11387 $as_echo "$hardcode_action" >&6; }
11388
11389 if test "$hardcode_action" = relink ||
11390 test "$inherit_rpath" = yes; then
11391 # Fast installation is not supported
11392 enable_fast_install=no
11393 elif test "$shlibpath_overrides_runpath" = yes ||
11394 test "$enable_shared" = no; then
11395 # Fast installation is not necessary
11396 enable_fast_install=needless
11397 fi
11398
11399
11400
11401
11402
11403
11404 if test "x$enable_dlopen" != xyes; then
11405 enable_dlopen=unknown
11406 enable_dlopen_self=unknown
11407 enable_dlopen_self_static=unknown
11408 else
11409 lt_cv_dlopen=no
11410 lt_cv_dlopen_libs=
11411
11412 case $host_os in
11413 beos*)
11414 lt_cv_dlopen="load_add_on"
11415 lt_cv_dlopen_libs=
11416 lt_cv_dlopen_self=yes
11417 ;;
11418
11419 mingw* | pw32* | cegcc*)
11420 lt_cv_dlopen="LoadLibrary"
11421 lt_cv_dlopen_libs=
11422 ;;
11423
11424 cygwin*)
11425 lt_cv_dlopen="dlopen"
11426 lt_cv_dlopen_libs=
11427 ;;
11428
11429 darwin*)
11430 # if libdl is installed we need to link against it
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11432 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11433 if ${ac_cv_lib_dl_dlopen+:} false; then :
11434 $as_echo_n "(cached) " >&6
11435 else
11436 ac_check_lib_save_LIBS=$LIBS
11437 LIBS="-ldl $LIBS"
11438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h. */
11440
11441 /* Override any GCC internal prototype to avoid an error.
11442 Use char because int might match the return type of a GCC
11443 builtin and then its argument prototype would still apply. */
11444 #ifdef __cplusplus
11445 extern "C"
11446 #endif
11447 char dlopen ();
11448 int
11449 main ()
11450 {
11451 return dlopen ();
11452 ;
11453 return 0;
11454 }
11455 _ACEOF
11456 if ac_fn_c_try_link "$LINENO"; then :
11457 ac_cv_lib_dl_dlopen=yes
11458 else
11459 ac_cv_lib_dl_dlopen=no
11460 fi
11461 rm -f core conftest.err conftest.$ac_objext \
11462 conftest$ac_exeext conftest.$ac_ext
11463 LIBS=$ac_check_lib_save_LIBS
11464 fi
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11466 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11467 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11469 else
11470
11471 lt_cv_dlopen="dyld"
11472 lt_cv_dlopen_libs=
11473 lt_cv_dlopen_self=yes
11474
11475 fi
11476
11477 ;;
11478
11479 *)
11480 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11481 if test "x$ac_cv_func_shl_load" = xyes; then :
11482 lt_cv_dlopen="shl_load"
11483 else
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11485 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11486 if ${ac_cv_lib_dld_shl_load+:} false; then :
11487 $as_echo_n "(cached) " >&6
11488 else
11489 ac_check_lib_save_LIBS=$LIBS
11490 LIBS="-ldld $LIBS"
11491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h. */
11493
11494 /* Override any GCC internal prototype to avoid an error.
11495 Use char because int might match the return type of a GCC
11496 builtin and then its argument prototype would still apply. */
11497 #ifdef __cplusplus
11498 extern "C"
11499 #endif
11500 char shl_load ();
11501 int
11502 main ()
11503 {
11504 return shl_load ();
11505 ;
11506 return 0;
11507 }
11508 _ACEOF
11509 if ac_fn_c_try_link "$LINENO"; then :
11510 ac_cv_lib_dld_shl_load=yes
11511 else
11512 ac_cv_lib_dld_shl_load=no
11513 fi
11514 rm -f core conftest.err conftest.$ac_objext \
11515 conftest$ac_exeext conftest.$ac_ext
11516 LIBS=$ac_check_lib_save_LIBS
11517 fi
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11519 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11520 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11521 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11522 else
11523 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11524 if test "x$ac_cv_func_dlopen" = xyes; then :
11525 lt_cv_dlopen="dlopen"
11526 else
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11528 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11529 if ${ac_cv_lib_dl_dlopen+:} false; then :
11530 $as_echo_n "(cached) " >&6
11531 else
11532 ac_check_lib_save_LIBS=$LIBS
11533 LIBS="-ldl $LIBS"
11534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535 /* end confdefs.h. */
11536
11537 /* Override any GCC internal prototype to avoid an error.
11538 Use char because int might match the return type of a GCC
11539 builtin and then its argument prototype would still apply. */
11540 #ifdef __cplusplus
11541 extern "C"
11542 #endif
11543 char dlopen ();
11544 int
11545 main ()
11546 {
11547 return dlopen ();
11548 ;
11549 return 0;
11550 }
11551 _ACEOF
11552 if ac_fn_c_try_link "$LINENO"; then :
11553 ac_cv_lib_dl_dlopen=yes
11554 else
11555 ac_cv_lib_dl_dlopen=no
11556 fi
11557 rm -f core conftest.err conftest.$ac_objext \
11558 conftest$ac_exeext conftest.$ac_ext
11559 LIBS=$ac_check_lib_save_LIBS
11560 fi
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11562 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11563 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11564 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11565 else
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11567 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11568 if ${ac_cv_lib_svld_dlopen+:} false; then :
11569 $as_echo_n "(cached) " >&6
11570 else
11571 ac_check_lib_save_LIBS=$LIBS
11572 LIBS="-lsvld $LIBS"
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h. */
11575
11576 /* Override any GCC internal prototype to avoid an error.
11577 Use char because int might match the return type of a GCC
11578 builtin and then its argument prototype would still apply. */
11579 #ifdef __cplusplus
11580 extern "C"
11581 #endif
11582 char dlopen ();
11583 int
11584 main ()
11585 {
11586 return dlopen ();
11587 ;
11588 return 0;
11589 }
11590 _ACEOF
11591 if ac_fn_c_try_link "$LINENO"; then :
11592 ac_cv_lib_svld_dlopen=yes
11593 else
11594 ac_cv_lib_svld_dlopen=no
11595 fi
11596 rm -f core conftest.err conftest.$ac_objext \
11597 conftest$ac_exeext conftest.$ac_ext
11598 LIBS=$ac_check_lib_save_LIBS
11599 fi
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11601 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11602 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11603 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11604 else
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11606 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11607 if ${ac_cv_lib_dld_dld_link+:} false; then :
11608 $as_echo_n "(cached) " >&6
11609 else
11610 ac_check_lib_save_LIBS=$LIBS
11611 LIBS="-ldld $LIBS"
11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h. */
11614
11615 /* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
11618 #ifdef __cplusplus
11619 extern "C"
11620 #endif
11621 char dld_link ();
11622 int
11623 main ()
11624 {
11625 return dld_link ();
11626 ;
11627 return 0;
11628 }
11629 _ACEOF
11630 if ac_fn_c_try_link "$LINENO"; then :
11631 ac_cv_lib_dld_dld_link=yes
11632 else
11633 ac_cv_lib_dld_dld_link=no
11634 fi
11635 rm -f core conftest.err conftest.$ac_objext \
11636 conftest$ac_exeext conftest.$ac_ext
11637 LIBS=$ac_check_lib_save_LIBS
11638 fi
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11640 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11641 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11642 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11643 fi
11644
11645
11646 fi
11647
11648
11649 fi
11650
11651
11652 fi
11653
11654
11655 fi
11656
11657
11658 fi
11659
11660 ;;
11661 esac
11662
11663 if test "x$lt_cv_dlopen" != xno; then
11664 enable_dlopen=yes
11665 else
11666 enable_dlopen=no
11667 fi
11668
11669 case $lt_cv_dlopen in
11670 dlopen)
11671 save_CPPFLAGS="$CPPFLAGS"
11672 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11673
11674 save_LDFLAGS="$LDFLAGS"
11675 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11676
11677 save_LIBS="$LIBS"
11678 LIBS="$lt_cv_dlopen_libs $LIBS"
11679
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11681 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11682 if ${lt_cv_dlopen_self+:} false; then :
11683 $as_echo_n "(cached) " >&6
11684 else
11685 if test "$cross_compiling" = yes; then :
11686 lt_cv_dlopen_self=cross
11687 else
11688 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11689 lt_status=$lt_dlunknown
11690 cat > conftest.$ac_ext <<_LT_EOF
11691 #line 11691 "configure"
11692 #include "confdefs.h"
11693
11694 #if HAVE_DLFCN_H
11695 #include <dlfcn.h>
11696 #endif
11697
11698 #include <stdio.h>
11699
11700 #ifdef RTLD_GLOBAL
11701 # define LT_DLGLOBAL RTLD_GLOBAL
11702 #else
11703 # ifdef DL_GLOBAL
11704 # define LT_DLGLOBAL DL_GLOBAL
11705 # else
11706 # define LT_DLGLOBAL 0
11707 # endif
11708 #endif
11709
11710 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11711 find out it does not work in some platform. */
11712 #ifndef LT_DLLAZY_OR_NOW
11713 # ifdef RTLD_LAZY
11714 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11715 # else
11716 # ifdef DL_LAZY
11717 # define LT_DLLAZY_OR_NOW DL_LAZY
11718 # else
11719 # ifdef RTLD_NOW
11720 # define LT_DLLAZY_OR_NOW RTLD_NOW
11721 # else
11722 # ifdef DL_NOW
11723 # define LT_DLLAZY_OR_NOW DL_NOW
11724 # else
11725 # define LT_DLLAZY_OR_NOW 0
11726 # endif
11727 # endif
11728 # endif
11729 # endif
11730 #endif
11731
11732 /* When -fvisbility=hidden is used, assume the code has been annotated
11733 correspondingly for the symbols needed. */
11734 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11735 void fnord () __attribute__((visibility("default")));
11736 #endif
11737
11738 void fnord () { int i=42; }
11739 int main ()
11740 {
11741 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11742 int status = $lt_dlunknown;
11743
11744 if (self)
11745 {
11746 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11747 else
11748 {
11749 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11750 else puts (dlerror ());
11751 }
11752 /* dlclose (self); */
11753 }
11754 else
11755 puts (dlerror ());
11756
11757 return status;
11758 }
11759 _LT_EOF
11760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11761 (eval $ac_link) 2>&5
11762 ac_status=$?
11763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11764 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11765 (./conftest; exit; ) >&5 2>/dev/null
11766 lt_status=$?
11767 case x$lt_status in
11768 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11769 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11770 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11771 esac
11772 else :
11773 # compilation failed
11774 lt_cv_dlopen_self=no
11775 fi
11776 fi
11777 rm -fr conftest*
11778
11779
11780 fi
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11782 $as_echo "$lt_cv_dlopen_self" >&6; }
11783
11784 if test "x$lt_cv_dlopen_self" = xyes; then
11785 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11787 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11788 if ${lt_cv_dlopen_self_static+:} false; then :
11789 $as_echo_n "(cached) " >&6
11790 else
11791 if test "$cross_compiling" = yes; then :
11792 lt_cv_dlopen_self_static=cross
11793 else
11794 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11795 lt_status=$lt_dlunknown
11796 cat > conftest.$ac_ext <<_LT_EOF
11797 #line 11797 "configure"
11798 #include "confdefs.h"
11799
11800 #if HAVE_DLFCN_H
11801 #include <dlfcn.h>
11802 #endif
11803
11804 #include <stdio.h>
11805
11806 #ifdef RTLD_GLOBAL
11807 # define LT_DLGLOBAL RTLD_GLOBAL
11808 #else
11809 # ifdef DL_GLOBAL
11810 # define LT_DLGLOBAL DL_GLOBAL
11811 # else
11812 # define LT_DLGLOBAL 0
11813 # endif
11814 #endif
11815
11816 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11817 find out it does not work in some platform. */
11818 #ifndef LT_DLLAZY_OR_NOW
11819 # ifdef RTLD_LAZY
11820 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11821 # else
11822 # ifdef DL_LAZY
11823 # define LT_DLLAZY_OR_NOW DL_LAZY
11824 # else
11825 # ifdef RTLD_NOW
11826 # define LT_DLLAZY_OR_NOW RTLD_NOW
11827 # else
11828 # ifdef DL_NOW
11829 # define LT_DLLAZY_OR_NOW DL_NOW
11830 # else
11831 # define LT_DLLAZY_OR_NOW 0
11832 # endif
11833 # endif
11834 # endif
11835 # endif
11836 #endif
11837
11838 /* When -fvisbility=hidden is used, assume the code has been annotated
11839 correspondingly for the symbols needed. */
11840 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11841 void fnord () __attribute__((visibility("default")));
11842 #endif
11843
11844 void fnord () { int i=42; }
11845 int main ()
11846 {
11847 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11848 int status = $lt_dlunknown;
11849
11850 if (self)
11851 {
11852 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11853 else
11854 {
11855 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11856 else puts (dlerror ());
11857 }
11858 /* dlclose (self); */
11859 }
11860 else
11861 puts (dlerror ());
11862
11863 return status;
11864 }
11865 _LT_EOF
11866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11867 (eval $ac_link) 2>&5
11868 ac_status=$?
11869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11870 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11871 (./conftest; exit; ) >&5 2>/dev/null
11872 lt_status=$?
11873 case x$lt_status in
11874 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11875 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11876 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11877 esac
11878 else :
11879 # compilation failed
11880 lt_cv_dlopen_self_static=no
11881 fi
11882 fi
11883 rm -fr conftest*
11884
11885
11886 fi
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11888 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11889 fi
11890
11891 CPPFLAGS="$save_CPPFLAGS"
11892 LDFLAGS="$save_LDFLAGS"
11893 LIBS="$save_LIBS"
11894 ;;
11895 esac
11896
11897 case $lt_cv_dlopen_self in
11898 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11899 *) enable_dlopen_self=unknown ;;
11900 esac
11901
11902 case $lt_cv_dlopen_self_static in
11903 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11904 *) enable_dlopen_self_static=unknown ;;
11905 esac
11906 fi
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924 striplib=
11925 old_striplib=
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11927 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11928 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11929 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11930 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11932 $as_echo "yes" >&6; }
11933 else
11934 # FIXME - insert some real tests, host_os isn't really good enough
11935 case $host_os in
11936 darwin*)
11937 if test -n "$STRIP" ; then
11938 striplib="$STRIP -x"
11939 old_striplib="$STRIP -S"
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11941 $as_echo "yes" >&6; }
11942 else
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11945 fi
11946 ;;
11947 *)
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11950 ;;
11951 esac
11952 fi
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965 # Report which library types will actually be built
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11967 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11969 $as_echo "$can_build_shared" >&6; }
11970
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11972 $as_echo_n "checking whether to build shared libraries... " >&6; }
11973 test "$can_build_shared" = "no" && enable_shared=no
11974
11975 # On AIX, shared libraries and static libraries use the same namespace, and
11976 # are all built from PIC.
11977 case $host_os in
11978 aix3*)
11979 test "$enable_shared" = yes && enable_static=no
11980 if test -n "$RANLIB"; then
11981 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11982 postinstall_cmds='$RANLIB $lib'
11983 fi
11984 ;;
11985
11986 aix[4-9]*)
11987 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11988 test "$enable_shared" = yes && enable_static=no
11989 fi
11990 ;;
11991 esac
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11993 $as_echo "$enable_shared" >&6; }
11994
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11996 $as_echo_n "checking whether to build static libraries... " >&6; }
11997 # Make sure either enable_shared or enable_static is yes.
11998 test "$enable_shared" = yes || enable_static=yes
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12000 $as_echo "$enable_static" >&6; }
12001
12002
12003
12004
12005 fi
12006 ac_ext=c
12007 ac_cpp='$CPP $CPPFLAGS'
12008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12011
12012 CC="$lt_save_CC"
12013
12014 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12015 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12016 (test "X$CXX" != "Xg++"))) ; then
12017 ac_ext=cpp
12018 ac_cpp='$CXXCPP $CPPFLAGS'
12019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12023 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12024 if test -z "$CXXCPP"; then
12025 if ${ac_cv_prog_CXXCPP+:} false; then :
12026 $as_echo_n "(cached) " >&6
12027 else
12028 # Double quotes because CXXCPP needs to be expanded
12029 for CXXCPP in "$CXX -E" "/lib/cpp"
12030 do
12031 ac_preproc_ok=false
12032 for ac_cxx_preproc_warn_flag in '' yes
12033 do
12034 # Use a header file that comes with gcc, so configuring glibc
12035 # with a fresh cross-compiler works.
12036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12037 # <limits.h> exists even on freestanding compilers.
12038 # On the NeXT, cc -E runs the code through the compiler's parser,
12039 # not just through cpp. "Syntax error" is here to catch this case.
12040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12041 /* end confdefs.h. */
12042 #ifdef __STDC__
12043 # include <limits.h>
12044 #else
12045 # include <assert.h>
12046 #endif
12047 Syntax error
12048 _ACEOF
12049 if ac_fn_cxx_try_cpp "$LINENO"; then :
12050
12051 else
12052 # Broken: fails on valid input.
12053 continue
12054 fi
12055 rm -f conftest.err conftest.i conftest.$ac_ext
12056
12057 # OK, works on sane cases. Now check whether nonexistent headers
12058 # can be detected and how.
12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12061 #include <ac_nonexistent.h>
12062 _ACEOF
12063 if ac_fn_cxx_try_cpp "$LINENO"; then :
12064 # Broken: success on invalid input.
12065 continue
12066 else
12067 # Passes both tests.
12068 ac_preproc_ok=:
12069 break
12070 fi
12071 rm -f conftest.err conftest.i conftest.$ac_ext
12072
12073 done
12074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12075 rm -f conftest.i conftest.err conftest.$ac_ext
12076 if $ac_preproc_ok; then :
12077 break
12078 fi
12079
12080 done
12081 ac_cv_prog_CXXCPP=$CXXCPP
12082
12083 fi
12084 CXXCPP=$ac_cv_prog_CXXCPP
12085 else
12086 ac_cv_prog_CXXCPP=$CXXCPP
12087 fi
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12089 $as_echo "$CXXCPP" >&6; }
12090 ac_preproc_ok=false
12091 for ac_cxx_preproc_warn_flag in '' yes
12092 do
12093 # Use a header file that comes with gcc, so configuring glibc
12094 # with a fresh cross-compiler works.
12095 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12096 # <limits.h> exists even on freestanding compilers.
12097 # On the NeXT, cc -E runs the code through the compiler's parser,
12098 # not just through cpp. "Syntax error" is here to catch this case.
12099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h. */
12101 #ifdef __STDC__
12102 # include <limits.h>
12103 #else
12104 # include <assert.h>
12105 #endif
12106 Syntax error
12107 _ACEOF
12108 if ac_fn_cxx_try_cpp "$LINENO"; then :
12109
12110 else
12111 # Broken: fails on valid input.
12112 continue
12113 fi
12114 rm -f conftest.err conftest.i conftest.$ac_ext
12115
12116 # OK, works on sane cases. Now check whether nonexistent headers
12117 # can be detected and how.
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h. */
12120 #include <ac_nonexistent.h>
12121 _ACEOF
12122 if ac_fn_cxx_try_cpp "$LINENO"; then :
12123 # Broken: success on invalid input.
12124 continue
12125 else
12126 # Passes both tests.
12127 ac_preproc_ok=:
12128 break
12129 fi
12130 rm -f conftest.err conftest.i conftest.$ac_ext
12131
12132 done
12133 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12134 rm -f conftest.i conftest.err conftest.$ac_ext
12135 if $ac_preproc_ok; then :
12136
12137 else
12138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12140 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12141 See \`config.log' for more details" "$LINENO" 5; }
12142 fi
12143
12144 ac_ext=c
12145 ac_cpp='$CPP $CPPFLAGS'
12146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12149
12150 else
12151 _lt_caught_CXX_error=yes
12152 fi
12153
12154 ac_ext=cpp
12155 ac_cpp='$CXXCPP $CPPFLAGS'
12156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12159
12160 archive_cmds_need_lc_CXX=no
12161 allow_undefined_flag_CXX=
12162 always_export_symbols_CXX=no
12163 archive_expsym_cmds_CXX=
12164 compiler_needs_object_CXX=no
12165 export_dynamic_flag_spec_CXX=
12166 hardcode_direct_CXX=no
12167 hardcode_direct_absolute_CXX=no
12168 hardcode_libdir_flag_spec_CXX=
12169 hardcode_libdir_flag_spec_ld_CXX=
12170 hardcode_libdir_separator_CXX=
12171 hardcode_minus_L_CXX=no
12172 hardcode_shlibpath_var_CXX=unsupported
12173 hardcode_automatic_CXX=no
12174 inherit_rpath_CXX=no
12175 module_cmds_CXX=
12176 module_expsym_cmds_CXX=
12177 link_all_deplibs_CXX=unknown
12178 old_archive_cmds_CXX=$old_archive_cmds
12179 reload_flag_CXX=$reload_flag
12180 reload_cmds_CXX=$reload_cmds
12181 no_undefined_flag_CXX=
12182 whole_archive_flag_spec_CXX=
12183 enable_shared_with_static_runtimes_CXX=no
12184
12185 # Source file extension for C++ test sources.
12186 ac_ext=cpp
12187
12188 # Object file extension for compiled C++ test sources.
12189 objext=o
12190 objext_CXX=$objext
12191
12192 # No sense in running all these tests if we already determined that
12193 # the CXX compiler isn't working. Some variables (like enable_shared)
12194 # are currently assumed to apply to all compilers on this platform,
12195 # and will be corrupted by setting them based on a non-working compiler.
12196 if test "$_lt_caught_CXX_error" != yes; then
12197 # Code to be used in simple compile tests
12198 lt_simple_compile_test_code="int some_variable = 0;"
12199
12200 # Code to be used in simple link tests
12201 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12202
12203 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12204
12205
12206
12207
12208
12209
12210 # If no C compiler was specified, use CC.
12211 LTCC=${LTCC-"$CC"}
12212
12213 # If no C compiler flags were specified, use CFLAGS.
12214 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12215
12216 # Allow CC to be a program name with arguments.
12217 compiler=$CC
12218
12219
12220 # save warnings/boilerplate of simple test code
12221 ac_outfile=conftest.$ac_objext
12222 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12223 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12224 _lt_compiler_boilerplate=`cat conftest.err`
12225 $RM conftest*
12226
12227 ac_outfile=conftest.$ac_objext
12228 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12229 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12230 _lt_linker_boilerplate=`cat conftest.err`
12231 $RM -r conftest*
12232
12233
12234 # Allow CC to be a program name with arguments.
12235 lt_save_CC=$CC
12236 lt_save_LD=$LD
12237 lt_save_GCC=$GCC
12238 GCC=$GXX
12239 lt_save_with_gnu_ld=$with_gnu_ld
12240 lt_save_path_LD=$lt_cv_path_LD
12241 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12242 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12243 else
12244 $as_unset lt_cv_prog_gnu_ld
12245 fi
12246 if test -n "${lt_cv_path_LDCXX+set}"; then
12247 lt_cv_path_LD=$lt_cv_path_LDCXX
12248 else
12249 $as_unset lt_cv_path_LD
12250 fi
12251 test -z "${LDCXX+set}" || LD=$LDCXX
12252 CC=${CXX-"c++"}
12253 compiler=$CC
12254 compiler_CXX=$CC
12255 for cc_temp in $compiler""; do
12256 case $cc_temp in
12257 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12258 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12259 \-*) ;;
12260 *) break;;
12261 esac
12262 done
12263 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12264
12265
12266 if test -n "$compiler"; then
12267 # We don't want -fno-exception when compiling C++ code, so set the
12268 # no_builtin_flag separately
12269 if test "$GXX" = yes; then
12270 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12271 else
12272 lt_prog_compiler_no_builtin_flag_CXX=
12273 fi
12274
12275 if test "$GXX" = yes; then
12276 # Set up default GNU C++ configuration
12277
12278
12279
12280 # Check whether --with-gnu-ld was given.
12281 if test "${with_gnu_ld+set}" = set; then :
12282 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12283 else
12284 with_gnu_ld=no
12285 fi
12286
12287 ac_prog=ld
12288 if test "$GCC" = yes; then
12289 # Check if gcc -print-prog-name=ld gives a path.
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12291 $as_echo_n "checking for ld used by $CC... " >&6; }
12292 case $host in
12293 *-*-mingw*)
12294 # gcc leaves a trailing carriage return which upsets mingw
12295 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12296 *)
12297 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12298 esac
12299 case $ac_prog in
12300 # Accept absolute paths.
12301 [\\/]* | ?:[\\/]*)
12302 re_direlt='/[^/][^/]*/\.\./'
12303 # Canonicalize the pathname of ld
12304 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12305 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12306 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12307 done
12308 test -z "$LD" && LD="$ac_prog"
12309 ;;
12310 "")
12311 # If it fails, then pretend we aren't using GCC.
12312 ac_prog=ld
12313 ;;
12314 *)
12315 # If it is relative, then search for the first ld in PATH.
12316 with_gnu_ld=unknown
12317 ;;
12318 esac
12319 elif test "$with_gnu_ld" = yes; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12321 $as_echo_n "checking for GNU ld... " >&6; }
12322 else
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12324 $as_echo_n "checking for non-GNU ld... " >&6; }
12325 fi
12326 if ${lt_cv_path_LD+:} false; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 if test -z "$LD"; then
12330 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12331 for ac_dir in $PATH; do
12332 IFS="$lt_save_ifs"
12333 test -z "$ac_dir" && ac_dir=.
12334 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12335 lt_cv_path_LD="$ac_dir/$ac_prog"
12336 # Check to see if the program is GNU ld. I'd rather use --version,
12337 # but apparently some variants of GNU ld only accept -v.
12338 # Break only if it was the GNU/non-GNU ld that we prefer.
12339 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12340 *GNU* | *'with BFD'*)
12341 test "$with_gnu_ld" != no && break
12342 ;;
12343 *)
12344 test "$with_gnu_ld" != yes && break
12345 ;;
12346 esac
12347 fi
12348 done
12349 IFS="$lt_save_ifs"
12350 else
12351 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12352 fi
12353 fi
12354
12355 LD="$lt_cv_path_LD"
12356 if test -n "$LD"; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12358 $as_echo "$LD" >&6; }
12359 else
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12362 fi
12363 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12365 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12366 if ${lt_cv_prog_gnu_ld+:} false; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12370 case `$LD -v 2>&1 </dev/null` in
12371 *GNU* | *'with BFD'*)
12372 lt_cv_prog_gnu_ld=yes
12373 ;;
12374 *)
12375 lt_cv_prog_gnu_ld=no
12376 ;;
12377 esac
12378 fi
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12380 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12381 with_gnu_ld=$lt_cv_prog_gnu_ld
12382
12383
12384
12385
12386
12387
12388
12389 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12390 # archiving commands below assume that GNU ld is being used.
12391 if test "$with_gnu_ld" = yes; then
12392 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12393 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'
12394
12395 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12396 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12397
12398 # If archive_cmds runs LD, not CC, wlarc should be empty
12399 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12400 # investigate it a little bit more. (MM)
12401 wlarc='${wl}'
12402
12403 # ancient GNU ld didn't support --whole-archive et. al.
12404 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12405 $GREP 'no-whole-archive' > /dev/null; then
12406 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12407 else
12408 whole_archive_flag_spec_CXX=
12409 fi
12410 else
12411 with_gnu_ld=no
12412 wlarc=
12413
12414 # A generic and very simple default shared library creation
12415 # command for GNU C++ for the case where it uses the native
12416 # linker, instead of GNU ld. If possible, this setting should
12417 # overridden to take advantage of the native linker features on
12418 # the platform it is being used on.
12419 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12420 fi
12421
12422 # Commands to make compiler produce verbose output that lists
12423 # what "hidden" libraries, object files and flags are used when
12424 # linking a shared library.
12425 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12426
12427 else
12428 GXX=no
12429 with_gnu_ld=no
12430 wlarc=
12431 fi
12432
12433 # PORTME: fill in a description of your system's C++ link characteristics
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12435 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12436 ld_shlibs_CXX=yes
12437 case $host_os in
12438 aix3*)
12439 # FIXME: insert proper C++ library support
12440 ld_shlibs_CXX=no
12441 ;;
12442 aix[4-9]*)
12443 if test "$host_cpu" = ia64; then
12444 # On IA64, the linker does run time linking by default, so we don't
12445 # have to do anything special.
12446 aix_use_runtimelinking=no
12447 exp_sym_flag='-Bexport'
12448 no_entry_flag=""
12449 else
12450 aix_use_runtimelinking=no
12451
12452 # Test if we are trying to use run time linking or normal
12453 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12454 # need to do runtime linking.
12455 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12456 for ld_flag in $LDFLAGS; do
12457 case $ld_flag in
12458 *-brtl*)
12459 aix_use_runtimelinking=yes
12460 break
12461 ;;
12462 esac
12463 done
12464 ;;
12465 esac
12466
12467 exp_sym_flag='-bexport'
12468 no_entry_flag='-bnoentry'
12469 fi
12470
12471 # When large executables or shared objects are built, AIX ld can
12472 # have problems creating the table of contents. If linking a library
12473 # or program results in "error TOC overflow" add -mminimal-toc to
12474 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12475 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12476
12477 archive_cmds_CXX=''
12478 hardcode_direct_CXX=yes
12479 hardcode_direct_absolute_CXX=yes
12480 hardcode_libdir_separator_CXX=':'
12481 link_all_deplibs_CXX=yes
12482 file_list_spec_CXX='${wl}-f,'
12483
12484 if test "$GXX" = yes; then
12485 case $host_os in aix4.[012]|aix4.[012].*)
12486 # We only want to do this on AIX 4.2 and lower, the check
12487 # below for broken collect2 doesn't work under 4.3+
12488 collect2name=`${CC} -print-prog-name=collect2`
12489 if test -f "$collect2name" &&
12490 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12491 then
12492 # We have reworked collect2
12493 :
12494 else
12495 # We have old collect2
12496 hardcode_direct_CXX=unsupported
12497 # It fails to find uninstalled libraries when the uninstalled
12498 # path is not listed in the libpath. Setting hardcode_minus_L
12499 # to unsupported forces relinking
12500 hardcode_minus_L_CXX=yes
12501 hardcode_libdir_flag_spec_CXX='-L$libdir'
12502 hardcode_libdir_separator_CXX=
12503 fi
12504 esac
12505 shared_flag='-shared'
12506 if test "$aix_use_runtimelinking" = yes; then
12507 shared_flag="$shared_flag "'${wl}-G'
12508 fi
12509 else
12510 # not using gcc
12511 if test "$host_cpu" = ia64; then
12512 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12513 # chokes on -Wl,-G. The following line is correct:
12514 shared_flag='-G'
12515 else
12516 if test "$aix_use_runtimelinking" = yes; then
12517 shared_flag='${wl}-G'
12518 else
12519 shared_flag='${wl}-bM:SRE'
12520 fi
12521 fi
12522 fi
12523
12524 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12525 # It seems that -bexpall does not export symbols beginning with
12526 # underscore (_), so it is better to generate a list of symbols to
12527 # export.
12528 always_export_symbols_CXX=yes
12529 if test "$aix_use_runtimelinking" = yes; then
12530 # Warning - without using the other runtime loading flags (-brtl),
12531 # -berok will link without error, but may produce a broken library.
12532 allow_undefined_flag_CXX='-berok'
12533 # Determine the default libpath from the value encoded in an empty
12534 # executable.
12535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12536 /* end confdefs.h. */
12537
12538 int
12539 main ()
12540 {
12541
12542 ;
12543 return 0;
12544 }
12545 _ACEOF
12546 if ac_fn_cxx_try_link "$LINENO"; then :
12547
12548 lt_aix_libpath_sed='
12549 /Import File Strings/,/^$/ {
12550 /^0/ {
12551 s/^0 *\(.*\)$/\1/
12552 p
12553 }
12554 }'
12555 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12556 # Check for a 64-bit object if we didn't find anything.
12557 if test -z "$aix_libpath"; then
12558 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12559 fi
12560 fi
12561 rm -f core conftest.err conftest.$ac_objext \
12562 conftest$ac_exeext conftest.$ac_ext
12563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12564
12565 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12566
12567 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"
12568 else
12569 if test "$host_cpu" = ia64; then
12570 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12571 allow_undefined_flag_CXX="-z nodefs"
12572 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"
12573 else
12574 # Determine the default libpath from the value encoded in an
12575 # empty executable.
12576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577 /* end confdefs.h. */
12578
12579 int
12580 main ()
12581 {
12582
12583 ;
12584 return 0;
12585 }
12586 _ACEOF
12587 if ac_fn_cxx_try_link "$LINENO"; then :
12588
12589 lt_aix_libpath_sed='
12590 /Import File Strings/,/^$/ {
12591 /^0/ {
12592 s/^0 *\(.*\)$/\1/
12593 p
12594 }
12595 }'
12596 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12597 # Check for a 64-bit object if we didn't find anything.
12598 if test -z "$aix_libpath"; then
12599 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12600 fi
12601 fi
12602 rm -f core conftest.err conftest.$ac_objext \
12603 conftest$ac_exeext conftest.$ac_ext
12604 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12605
12606 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12607 # Warning - without using the other run time loading flags,
12608 # -berok will link without error, but may produce a broken library.
12609 no_undefined_flag_CXX=' ${wl}-bernotok'
12610 allow_undefined_flag_CXX=' ${wl}-berok'
12611 if test "$with_gnu_ld" = yes; then
12612 # We only use this code for GNU lds that support --whole-archive.
12613 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12614 else
12615 # Exported symbols can be pulled into shared objects from archives
12616 whole_archive_flag_spec_CXX='$convenience'
12617 fi
12618 archive_cmds_need_lc_CXX=yes
12619 # This is similar to how AIX traditionally builds its shared
12620 # libraries.
12621 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'
12622 fi
12623 fi
12624 ;;
12625
12626 beos*)
12627 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12628 allow_undefined_flag_CXX=unsupported
12629 # Joseph Beckenbach <[email protected]> says some releases of gcc
12630 # support --undefined. This deserves some investigation. FIXME
12631 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12632 else
12633 ld_shlibs_CXX=no
12634 fi
12635 ;;
12636
12637 chorus*)
12638 case $cc_basename in
12639 *)
12640 # FIXME: insert proper C++ library support
12641 ld_shlibs_CXX=no
12642 ;;
12643 esac
12644 ;;
12645
12646 cygwin* | mingw* | pw32* | cegcc*)
12647 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12648 # as there is no search path for DLLs.
12649 hardcode_libdir_flag_spec_CXX='-L$libdir'
12650 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12651 allow_undefined_flag_CXX=unsupported
12652 always_export_symbols_CXX=no
12653 enable_shared_with_static_runtimes_CXX=yes
12654
12655 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12656 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'
12657 # If the export-symbols file already is a .def file (1st line
12658 # is EXPORTS), use it as is; otherwise, prepend...
12659 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12660 cp $export_symbols $output_objdir/$soname.def;
12661 else
12662 echo EXPORTS > $output_objdir/$soname.def;
12663 cat $export_symbols >> $output_objdir/$soname.def;
12664 fi~
12665 $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'
12666 else
12667 ld_shlibs_CXX=no
12668 fi
12669 ;;
12670 darwin* | rhapsody*)
12671
12672
12673 archive_cmds_need_lc_CXX=no
12674 hardcode_direct_CXX=no
12675 hardcode_automatic_CXX=yes
12676 hardcode_shlibpath_var_CXX=unsupported
12677 if test "$lt_cv_ld_force_load" = "yes"; then
12678 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\"`'
12679 else
12680 whole_archive_flag_spec_CXX=''
12681 fi
12682 link_all_deplibs_CXX=yes
12683 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12684 case $cc_basename in
12685 ifort*) _lt_dar_can_shared=yes ;;
12686 *) _lt_dar_can_shared=$GCC ;;
12687 esac
12688 if test "$_lt_dar_can_shared" = "yes"; then
12689 output_verbose_link_cmd=func_echo_all
12690 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}"
12691 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12692 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}"
12693 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}"
12694 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12695 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}"
12696 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}"
12697 fi
12698
12699 else
12700 ld_shlibs_CXX=no
12701 fi
12702
12703 ;;
12704
12705 dgux*)
12706 case $cc_basename in
12707 ec++*)
12708 # FIXME: insert proper C++ library support
12709 ld_shlibs_CXX=no
12710 ;;
12711 ghcx*)
12712 # Green Hills C++ Compiler
12713 # FIXME: insert proper C++ library support
12714 ld_shlibs_CXX=no
12715 ;;
12716 *)
12717 # FIXME: insert proper C++ library support
12718 ld_shlibs_CXX=no
12719 ;;
12720 esac
12721 ;;
12722
12723 freebsd2.*)
12724 # C++ shared libraries reported to be fairly broken before
12725 # switch to ELF
12726 ld_shlibs_CXX=no
12727 ;;
12728
12729 freebsd-elf*)
12730 archive_cmds_need_lc_CXX=no
12731 ;;
12732
12733 freebsd* | dragonfly*)
12734 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12735 # conventions
12736 ld_shlibs_CXX=yes
12737 ;;
12738
12739 gnu*)
12740 ;;
12741
12742 haiku*)
12743 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12744 link_all_deplibs_CXX=yes
12745 ;;
12746
12747 hpux9*)
12748 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12749 hardcode_libdir_separator_CXX=:
12750 export_dynamic_flag_spec_CXX='${wl}-E'
12751 hardcode_direct_CXX=yes
12752 hardcode_minus_L_CXX=yes # Not in the search PATH,
12753 # but as the default
12754 # location of the library.
12755
12756 case $cc_basename in
12757 CC*)
12758 # FIXME: insert proper C++ library support
12759 ld_shlibs_CXX=no
12760 ;;
12761 aCC*)
12762 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'
12763 # Commands to make compiler produce verbose output that lists
12764 # what "hidden" libraries, object files and flags are used when
12765 # linking a shared library.
12766 #
12767 # There doesn't appear to be a way to prevent this compiler from
12768 # explicitly linking system object files so we need to strip them
12769 # from the output so that they don't get included in the library
12770 # dependencies.
12771 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"'
12772 ;;
12773 *)
12774 if test "$GXX" = yes; then
12775 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'
12776 else
12777 # FIXME: insert proper C++ library support
12778 ld_shlibs_CXX=no
12779 fi
12780 ;;
12781 esac
12782 ;;
12783
12784 hpux10*|hpux11*)
12785 if test $with_gnu_ld = no; then
12786 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12787 hardcode_libdir_separator_CXX=:
12788
12789 case $host_cpu in
12790 hppa*64*|ia64*)
12791 ;;
12792 *)
12793 export_dynamic_flag_spec_CXX='${wl}-E'
12794 ;;
12795 esac
12796 fi
12797 case $host_cpu in
12798 hppa*64*|ia64*)
12799 hardcode_direct_CXX=no
12800 hardcode_shlibpath_var_CXX=no
12801 ;;
12802 *)
12803 hardcode_direct_CXX=yes
12804 hardcode_direct_absolute_CXX=yes
12805 hardcode_minus_L_CXX=yes # Not in the search PATH,
12806 # but as the default
12807 # location of the library.
12808 ;;
12809 esac
12810
12811 case $cc_basename in
12812 CC*)
12813 # FIXME: insert proper C++ library support
12814 ld_shlibs_CXX=no
12815 ;;
12816 aCC*)
12817 case $host_cpu in
12818 hppa*64*)
12819 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12820 ;;
12821 ia64*)
12822 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12823 ;;
12824 *)
12825 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12826 ;;
12827 esac
12828 # Commands to make compiler produce verbose output that lists
12829 # what "hidden" libraries, object files and flags are used when
12830 # linking a shared library.
12831 #
12832 # There doesn't appear to be a way to prevent this compiler from
12833 # explicitly linking system object files so we need to strip them
12834 # from the output so that they don't get included in the library
12835 # dependencies.
12836 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"'
12837 ;;
12838 *)
12839 if test "$GXX" = yes; then
12840 if test $with_gnu_ld = no; then
12841 case $host_cpu in
12842 hppa*64*)
12843 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12844 ;;
12845 ia64*)
12846 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12847 ;;
12848 *)
12849 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'
12850 ;;
12851 esac
12852 fi
12853 else
12854 # FIXME: insert proper C++ library support
12855 ld_shlibs_CXX=no
12856 fi
12857 ;;
12858 esac
12859 ;;
12860
12861 interix[3-9]*)
12862 hardcode_direct_CXX=no
12863 hardcode_shlibpath_var_CXX=no
12864 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12865 export_dynamic_flag_spec_CXX='${wl}-E'
12866 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12867 # Instead, shared libraries are loaded at an image base (0x10000000 by
12868 # default) and relocated if they conflict, which is a slow very memory
12869 # consuming and fragmenting process. To avoid this, we pick a random,
12870 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12871 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12872 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'
12873 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'
12874 ;;
12875 irix5* | irix6*)
12876 case $cc_basename in
12877 CC*)
12878 # SGI C++
12879 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'
12880
12881 # Archives containing C++ object files must be created using
12882 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12883 # necessary to make sure instantiated templates are included
12884 # in the archive.
12885 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12886 ;;
12887 *)
12888 if test "$GXX" = yes; then
12889 if test "$with_gnu_ld" = no; then
12890 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'
12891 else
12892 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'
12893 fi
12894 fi
12895 link_all_deplibs_CXX=yes
12896 ;;
12897 esac
12898 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12899 hardcode_libdir_separator_CXX=:
12900 inherit_rpath_CXX=yes
12901 ;;
12902
12903 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12904 case $cc_basename in
12905 KCC*)
12906 # Kuck and Associates, Inc. (KAI) C++ Compiler
12907
12908 # KCC will only create a shared library if the output file
12909 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12910 # to its proper name (with version) after linking.
12911 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'
12912 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'
12913 # Commands to make compiler produce verbose output that lists
12914 # what "hidden" libraries, object files and flags are used when
12915 # linking a shared library.
12916 #
12917 # There doesn't appear to be a way to prevent this compiler from
12918 # explicitly linking system object files so we need to strip them
12919 # from the output so that they don't get included in the library
12920 # dependencies.
12921 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"'
12922
12923 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12924 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12925
12926 # Archives containing C++ object files must be created using
12927 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12928 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12929 ;;
12930 icpc* | ecpc* )
12931 # Intel C++
12932 with_gnu_ld=yes
12933 # version 8.0 and above of icpc choke on multiply defined symbols
12934 # if we add $predep_objects and $postdep_objects, however 7.1 and
12935 # earlier do not add the objects themselves.
12936 case `$CC -V 2>&1` in
12937 *"Version 7."*)
12938 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12939 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'
12940 ;;
12941 *) # Version 8.0 or newer
12942 tmp_idyn=
12943 case $host_cpu in
12944 ia64*) tmp_idyn=' -i_dynamic';;
12945 esac
12946 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12947 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'
12948 ;;
12949 esac
12950 archive_cmds_need_lc_CXX=no
12951 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12952 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12953 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12954 ;;
12955 pgCC* | pgcpp*)
12956 # Portland Group C++ compiler
12957 case `$CC -V` in
12958 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12959 prelink_cmds_CXX='tpldir=Template.dir~
12960 rm -rf $tpldir~
12961 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12962 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12963 old_archive_cmds_CXX='tpldir=Template.dir~
12964 rm -rf $tpldir~
12965 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12966 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12967 $RANLIB $oldlib'
12968 archive_cmds_CXX='tpldir=Template.dir~
12969 rm -rf $tpldir~
12970 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12971 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12972 archive_expsym_cmds_CXX='tpldir=Template.dir~
12973 rm -rf $tpldir~
12974 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12975 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12976 ;;
12977 *) # Version 6 and above use weak symbols
12978 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12979 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'
12980 ;;
12981 esac
12982
12983 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12984 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12985 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'
12986 ;;
12987 cxx*)
12988 # Compaq C++
12989 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12990 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'
12991
12992 runpath_var=LD_RUN_PATH
12993 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12994 hardcode_libdir_separator_CXX=:
12995
12996 # Commands to make compiler produce verbose output that lists
12997 # what "hidden" libraries, object files and flags are used when
12998 # linking a shared library.
12999 #
13000 # There doesn't appear to be a way to prevent this compiler from
13001 # explicitly linking system object files so we need to strip them
13002 # from the output so that they don't get included in the library
13003 # dependencies.
13004 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'
13005 ;;
13006 xl* | mpixl* | bgxl*)
13007 # IBM XL 8.0 on PPC, with GNU ld
13008 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13009 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13010 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13011 if test "x$supports_anon_versioning" = xyes; then
13012 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13013 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13014 echo "local: *; };" >> $output_objdir/$libname.ver~
13015 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13016 fi
13017 ;;
13018 *)
13019 case `$CC -V 2>&1 | sed 5q` in
13020 *Sun\ C*)
13021 # Sun C++ 5.9
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='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13025 hardcode_libdir_flag_spec_CXX='-R$libdir'
13026 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'
13027 compiler_needs_object_CXX=yes
13028
13029 # Not sure whether something based on
13030 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13031 # would be better.
13032 output_verbose_link_cmd='func_echo_all'
13033
13034 # Archives containing C++ object files must be created using
13035 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13036 # necessary to make sure instantiated templates are included
13037 # in the archive.
13038 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13039 ;;
13040 esac
13041 ;;
13042 esac
13043 ;;
13044
13045 lynxos*)
13046 # FIXME: insert proper C++ library support
13047 ld_shlibs_CXX=no
13048 ;;
13049
13050 m88k*)
13051 # FIXME: insert proper C++ library support
13052 ld_shlibs_CXX=no
13053 ;;
13054
13055 mvs*)
13056 case $cc_basename in
13057 cxx*)
13058 # FIXME: insert proper C++ library support
13059 ld_shlibs_CXX=no
13060 ;;
13061 *)
13062 # FIXME: insert proper C++ library support
13063 ld_shlibs_CXX=no
13064 ;;
13065 esac
13066 ;;
13067
13068 netbsd*)
13069 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13070 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13071 wlarc=
13072 hardcode_libdir_flag_spec_CXX='-R$libdir'
13073 hardcode_direct_CXX=yes
13074 hardcode_shlibpath_var_CXX=no
13075 fi
13076 # Workaround some broken pre-1.5 toolchains
13077 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13078 ;;
13079
13080 *nto* | *qnx*)
13081 ld_shlibs_CXX=yes
13082 ;;
13083
13084 openbsd2*)
13085 # C++ shared libraries are fairly broken
13086 ld_shlibs_CXX=no
13087 ;;
13088
13089 openbsd*)
13090 if test -f /usr/libexec/ld.so; then
13091 hardcode_direct_CXX=yes
13092 hardcode_shlibpath_var_CXX=no
13093 hardcode_direct_absolute_CXX=yes
13094 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13095 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13096 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13097 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13098 export_dynamic_flag_spec_CXX='${wl}-E'
13099 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13100 fi
13101 output_verbose_link_cmd=func_echo_all
13102 else
13103 ld_shlibs_CXX=no
13104 fi
13105 ;;
13106
13107 osf3* | osf4* | osf5*)
13108 case $cc_basename in
13109 KCC*)
13110 # Kuck and Associates, Inc. (KAI) C++ Compiler
13111
13112 # KCC will only create a shared library if the output file
13113 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13114 # to its proper name (with version) after linking.
13115 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'
13116
13117 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13118 hardcode_libdir_separator_CXX=:
13119
13120 # Archives containing C++ object files must be created using
13121 # the KAI C++ compiler.
13122 case $host in
13123 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13124 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13125 esac
13126 ;;
13127 RCC*)
13128 # Rational C++ 2.4.1
13129 # FIXME: insert proper C++ library support
13130 ld_shlibs_CXX=no
13131 ;;
13132 cxx*)
13133 case $host in
13134 osf3*)
13135 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13136 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'
13137 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13138 ;;
13139 *)
13140 allow_undefined_flag_CXX=' -expect_unresolved \*'
13141 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'
13142 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13143 echo "-hidden">> $lib.exp~
13144 $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~
13145 $RM $lib.exp'
13146 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13147 ;;
13148 esac
13149
13150 hardcode_libdir_separator_CXX=:
13151
13152 # Commands to make compiler produce verbose output that lists
13153 # what "hidden" libraries, object files and flags are used when
13154 # linking a shared library.
13155 #
13156 # There doesn't appear to be a way to prevent this compiler from
13157 # explicitly linking system object files so we need to strip them
13158 # from the output so that they don't get included in the library
13159 # dependencies.
13160 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"'
13161 ;;
13162 *)
13163 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13164 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13165 case $host in
13166 osf3*)
13167 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'
13168 ;;
13169 *)
13170 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'
13171 ;;
13172 esac
13173
13174 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13175 hardcode_libdir_separator_CXX=:
13176
13177 # Commands to make compiler produce verbose output that lists
13178 # what "hidden" libraries, object files and flags are used when
13179 # linking a shared library.
13180 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13181
13182 else
13183 # FIXME: insert proper C++ library support
13184 ld_shlibs_CXX=no
13185 fi
13186 ;;
13187 esac
13188 ;;
13189
13190 psos*)
13191 # FIXME: insert proper C++ library support
13192 ld_shlibs_CXX=no
13193 ;;
13194
13195 sunos4*)
13196 case $cc_basename in
13197 CC*)
13198 # Sun C++ 4.x
13199 # FIXME: insert proper C++ library support
13200 ld_shlibs_CXX=no
13201 ;;
13202 lcc*)
13203 # Lucid
13204 # FIXME: insert proper C++ library support
13205 ld_shlibs_CXX=no
13206 ;;
13207 *)
13208 # FIXME: insert proper C++ library support
13209 ld_shlibs_CXX=no
13210 ;;
13211 esac
13212 ;;
13213
13214 solaris*)
13215 case $cc_basename in
13216 CC*)
13217 # Sun C++ 4.2, 5.x and Centerline C++
13218 archive_cmds_need_lc_CXX=yes
13219 no_undefined_flag_CXX=' -zdefs'
13220 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13221 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13222 $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'
13223
13224 hardcode_libdir_flag_spec_CXX='-R$libdir'
13225 hardcode_shlibpath_var_CXX=no
13226 case $host_os in
13227 solaris2.[0-5] | solaris2.[0-5].*) ;;
13228 *)
13229 # The compiler driver will combine and reorder linker options,
13230 # but understands `-z linker_flag'.
13231 # Supported since Solaris 2.6 (maybe 2.5.1?)
13232 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13233 ;;
13234 esac
13235 link_all_deplibs_CXX=yes
13236
13237 output_verbose_link_cmd='func_echo_all'
13238
13239 # Archives containing C++ object files must be created using
13240 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13241 # necessary to make sure instantiated templates are included
13242 # in the archive.
13243 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13244 ;;
13245 gcx*)
13246 # Green Hills C++ Compiler
13247 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13248
13249 # The C++ compiler must be used to create the archive.
13250 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13251 ;;
13252 *)
13253 # GNU C++ compiler with Solaris linker
13254 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13255 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13256 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13257 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13258 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13259 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13260
13261 # Commands to make compiler produce verbose output that lists
13262 # what "hidden" libraries, object files and flags are used when
13263 # linking a shared library.
13264 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13265 else
13266 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13267 # platform.
13268 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13269 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13270 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13271
13272 # Commands to make compiler produce verbose output that lists
13273 # what "hidden" libraries, object files and flags are used when
13274 # linking a shared library.
13275 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13276 fi
13277
13278 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13279 case $host_os in
13280 solaris2.[0-5] | solaris2.[0-5].*) ;;
13281 *)
13282 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13283 ;;
13284 esac
13285 fi
13286 ;;
13287 esac
13288 ;;
13289
13290 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13291 no_undefined_flag_CXX='${wl}-z,text'
13292 archive_cmds_need_lc_CXX=no
13293 hardcode_shlibpath_var_CXX=no
13294 runpath_var='LD_RUN_PATH'
13295
13296 case $cc_basename in
13297 CC*)
13298 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13299 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13300 ;;
13301 *)
13302 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13303 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13304 ;;
13305 esac
13306 ;;
13307
13308 sysv5* | sco3.2v5* | sco5v6*)
13309 # Note: We can NOT use -z defs as we might desire, because we do not
13310 # link with -lc, and that would cause any symbols used from libc to
13311 # always be unresolved, which means just about no library would
13312 # ever link correctly. If we're not using GNU ld we use -z text
13313 # though, which does catch some bad symbols but isn't as heavy-handed
13314 # as -z defs.
13315 no_undefined_flag_CXX='${wl}-z,text'
13316 allow_undefined_flag_CXX='${wl}-z,nodefs'
13317 archive_cmds_need_lc_CXX=no
13318 hardcode_shlibpath_var_CXX=no
13319 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13320 hardcode_libdir_separator_CXX=':'
13321 link_all_deplibs_CXX=yes
13322 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13323 runpath_var='LD_RUN_PATH'
13324
13325 case $cc_basename in
13326 CC*)
13327 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13328 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13329 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13330 '"$old_archive_cmds_CXX"
13331 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13332 '"$reload_cmds_CXX"
13333 ;;
13334 *)
13335 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13336 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13337 ;;
13338 esac
13339 ;;
13340
13341 tandem*)
13342 case $cc_basename in
13343 NCC*)
13344 # NonStop-UX NCC 3.20
13345 # FIXME: insert proper C++ library support
13346 ld_shlibs_CXX=no
13347 ;;
13348 *)
13349 # FIXME: insert proper C++ library support
13350 ld_shlibs_CXX=no
13351 ;;
13352 esac
13353 ;;
13354
13355 vxworks*)
13356 # For VxWorks ports, we assume the use of a GNU linker with
13357 # standard elf conventions.
13358 ld_shlibs_CXX=yes
13359 ;;
13360
13361 *)
13362 # FIXME: insert proper C++ library support
13363 ld_shlibs_CXX=no
13364 ;;
13365 esac
13366
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13368 $as_echo "$ld_shlibs_CXX" >&6; }
13369 test "$ld_shlibs_CXX" = no && can_build_shared=no
13370
13371 GCC_CXX="$GXX"
13372 LD_CXX="$LD"
13373
13374 ## CAVEAT EMPTOR:
13375 ## There is no encapsulation within the following macros, do not change
13376 ## the running order or otherwise move them around unless you know exactly
13377 ## what you are doing...
13378 # Dependencies to place before and after the object being linked:
13379 predep_objects_CXX=
13380 postdep_objects_CXX=
13381 predeps_CXX=
13382 postdeps_CXX=
13383 compiler_lib_search_path_CXX=
13384
13385 cat > conftest.$ac_ext <<_LT_EOF
13386 class Foo
13387 {
13388 public:
13389 Foo (void) { a = 0; }
13390 private:
13391 int a;
13392 };
13393 _LT_EOF
13394
13395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13396 (eval $ac_compile) 2>&5
13397 ac_status=$?
13398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13399 test $ac_status = 0; }; then
13400 # Parse the compiler output and extract the necessary
13401 # objects, libraries and library flags.
13402
13403 # Sentinel used to keep track of whether or not we are before
13404 # the conftest object file.
13405 pre_test_object_deps_done=no
13406
13407 for p in `eval "$output_verbose_link_cmd"`; do
13408 case $p in
13409
13410 -L* | -R* | -l*)
13411 # Some compilers place space between "-{L,R}" and the path.
13412 # Remove the space.
13413 if test $p = "-L" ||
13414 test $p = "-R"; then
13415 prev=$p
13416 continue
13417 else
13418 prev=
13419 fi
13420
13421 if test "$pre_test_object_deps_done" = no; then
13422 case $p in
13423 -L* | -R*)
13424 # Internal compiler library paths should come after those
13425 # provided the user. The postdeps already come after the
13426 # user supplied libs so there is no need to process them.
13427 if test -z "$compiler_lib_search_path_CXX"; then
13428 compiler_lib_search_path_CXX="${prev}${p}"
13429 else
13430 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13431 fi
13432 ;;
13433 # The "-l" case would never come before the object being
13434 # linked, so don't bother handling this case.
13435 esac
13436 else
13437 if test -z "$postdeps_CXX"; then
13438 postdeps_CXX="${prev}${p}"
13439 else
13440 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13441 fi
13442 fi
13443 ;;
13444
13445 *.$objext)
13446 # This assumes that the test object file only shows up
13447 # once in the compiler output.
13448 if test "$p" = "conftest.$objext"; then
13449 pre_test_object_deps_done=yes
13450 continue
13451 fi
13452
13453 if test "$pre_test_object_deps_done" = no; then
13454 if test -z "$predep_objects_CXX"; then
13455 predep_objects_CXX="$p"
13456 else
13457 predep_objects_CXX="$predep_objects_CXX $p"
13458 fi
13459 else
13460 if test -z "$postdep_objects_CXX"; then
13461 postdep_objects_CXX="$p"
13462 else
13463 postdep_objects_CXX="$postdep_objects_CXX $p"
13464 fi
13465 fi
13466 ;;
13467
13468 *) ;; # Ignore the rest.
13469
13470 esac
13471 done
13472
13473 # Clean up.
13474 rm -f a.out a.exe
13475 else
13476 echo "libtool.m4: error: problem compiling CXX test program"
13477 fi
13478
13479 $RM -f confest.$objext
13480
13481 # PORTME: override above test on systems where it is broken
13482 case $host_os in
13483 interix[3-9]*)
13484 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13485 # hack all around it, let's just trust "g++" to DTRT.
13486 predep_objects_CXX=
13487 postdep_objects_CXX=
13488 postdeps_CXX=
13489 ;;
13490
13491 linux*)
13492 case `$CC -V 2>&1 | sed 5q` in
13493 *Sun\ C*)
13494 # Sun C++ 5.9
13495
13496 # The more standards-conforming stlport4 library is
13497 # incompatible with the Cstd library. Avoid specifying
13498 # it if it's in CXXFLAGS. Ignore libCrun as
13499 # -library=stlport4 depends on it.
13500 case " $CXX $CXXFLAGS " in
13501 *" -library=stlport4 "*)
13502 solaris_use_stlport4=yes
13503 ;;
13504 esac
13505
13506 if test "$solaris_use_stlport4" != yes; then
13507 postdeps_CXX='-library=Cstd -library=Crun'
13508 fi
13509 ;;
13510 esac
13511 ;;
13512
13513 solaris*)
13514 case $cc_basename in
13515 CC*)
13516 # The more standards-conforming stlport4 library is
13517 # incompatible with the Cstd library. Avoid specifying
13518 # it if it's in CXXFLAGS. Ignore libCrun as
13519 # -library=stlport4 depends on it.
13520 case " $CXX $CXXFLAGS " in
13521 *" -library=stlport4 "*)
13522 solaris_use_stlport4=yes
13523 ;;
13524 esac
13525
13526 # Adding this requires a known-good setup of shared libraries for
13527 # Sun compiler versions before 5.6, else PIC objects from an old
13528 # archive will be linked into the output, leading to subtle bugs.
13529 if test "$solaris_use_stlport4" != yes; then
13530 postdeps_CXX='-library=Cstd -library=Crun'
13531 fi
13532 ;;
13533 esac
13534 ;;
13535 esac
13536
13537
13538 case " $postdeps_CXX " in
13539 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13540 esac
13541 compiler_lib_search_dirs_CXX=
13542 if test -n "${compiler_lib_search_path_CXX}"; then
13543 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13544 fi
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576 lt_prog_compiler_wl_CXX=
13577 lt_prog_compiler_pic_CXX=
13578 lt_prog_compiler_static_CXX=
13579
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13581 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13582
13583 # C++ specific cases for pic, static, wl, etc.
13584 if test "$GXX" = yes; then
13585 lt_prog_compiler_wl_CXX='-Wl,'
13586 lt_prog_compiler_static_CXX='-static'
13587
13588 case $host_os in
13589 aix*)
13590 # All AIX code is PIC.
13591 if test "$host_cpu" = ia64; then
13592 # AIX 5 now supports IA64 processor
13593 lt_prog_compiler_static_CXX='-Bstatic'
13594 fi
13595 lt_prog_compiler_pic_CXX='-fPIC'
13596 ;;
13597
13598 amigaos*)
13599 case $host_cpu in
13600 powerpc)
13601 # see comment about AmigaOS4 .so support
13602 lt_prog_compiler_pic_CXX='-fPIC'
13603 ;;
13604 m68k)
13605 # FIXME: we need at least 68020 code to build shared libraries, but
13606 # adding the `-m68020' flag to GCC prevents building anything better,
13607 # like `-m68040'.
13608 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13609 ;;
13610 esac
13611 ;;
13612
13613 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13614 # PIC is the default for these OSes.
13615 ;;
13616 mingw* | cygwin* | os2* | pw32* | cegcc*)
13617 # This hack is so that the source file can tell whether it is being
13618 # built for inclusion in a dll (and should export symbols for example).
13619 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13620 # (--disable-auto-import) libraries
13621 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13622 ;;
13623 darwin* | rhapsody*)
13624 # PIC is the default on this platform
13625 # Common symbols not allowed in MH_DYLIB files
13626 lt_prog_compiler_pic_CXX='-fno-common'
13627 ;;
13628 *djgpp*)
13629 # DJGPP does not support shared libraries at all
13630 lt_prog_compiler_pic_CXX=
13631 ;;
13632 haiku*)
13633 # PIC is the default for Haiku.
13634 # The "-static" flag exists, but is broken.
13635 lt_prog_compiler_static_CXX=
13636 ;;
13637 interix[3-9]*)
13638 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13639 # Instead, we relocate shared libraries at runtime.
13640 ;;
13641 sysv4*MP*)
13642 if test -d /usr/nec; then
13643 lt_prog_compiler_pic_CXX=-Kconform_pic
13644 fi
13645 ;;
13646 hpux*)
13647 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13648 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13649 # sets the default TLS model and affects inlining.
13650 case $host_cpu in
13651 hppa*64*)
13652 ;;
13653 *)
13654 lt_prog_compiler_pic_CXX='-fPIC'
13655 ;;
13656 esac
13657 ;;
13658 *qnx* | *nto*)
13659 # QNX uses GNU C++, but need to define -shared option too, otherwise
13660 # it will coredump.
13661 lt_prog_compiler_pic_CXX='-fPIC -shared'
13662 ;;
13663 *)
13664 lt_prog_compiler_pic_CXX='-fPIC'
13665 ;;
13666 esac
13667 else
13668 case $host_os in
13669 aix[4-9]*)
13670 # All AIX code is PIC.
13671 if test "$host_cpu" = ia64; then
13672 # AIX 5 now supports IA64 processor
13673 lt_prog_compiler_static_CXX='-Bstatic'
13674 else
13675 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13676 fi
13677 ;;
13678 chorus*)
13679 case $cc_basename in
13680 cxch68*)
13681 # Green Hills C++ Compiler
13682 # _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"
13683 ;;
13684 esac
13685 ;;
13686 dgux*)
13687 case $cc_basename in
13688 ec++*)
13689 lt_prog_compiler_pic_CXX='-KPIC'
13690 ;;
13691 ghcx*)
13692 # Green Hills C++ Compiler
13693 lt_prog_compiler_pic_CXX='-pic'
13694 ;;
13695 *)
13696 ;;
13697 esac
13698 ;;
13699 freebsd* | dragonfly*)
13700 # FreeBSD uses GNU C++
13701 ;;
13702 hpux9* | hpux10* | hpux11*)
13703 case $cc_basename in
13704 CC*)
13705 lt_prog_compiler_wl_CXX='-Wl,'
13706 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13707 if test "$host_cpu" != ia64; then
13708 lt_prog_compiler_pic_CXX='+Z'
13709 fi
13710 ;;
13711 aCC*)
13712 lt_prog_compiler_wl_CXX='-Wl,'
13713 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13714 case $host_cpu in
13715 hppa*64*|ia64*)
13716 # +Z the default
13717 ;;
13718 *)
13719 lt_prog_compiler_pic_CXX='+Z'
13720 ;;
13721 esac
13722 ;;
13723 *)
13724 ;;
13725 esac
13726 ;;
13727 interix*)
13728 # This is c89, which is MS Visual C++ (no shared libs)
13729 # Anyone wants to do a port?
13730 ;;
13731 irix5* | irix6* | nonstopux*)
13732 case $cc_basename in
13733 CC*)
13734 lt_prog_compiler_wl_CXX='-Wl,'
13735 lt_prog_compiler_static_CXX='-non_shared'
13736 # CC pic flag -KPIC is the default.
13737 ;;
13738 *)
13739 ;;
13740 esac
13741 ;;
13742 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13743 case $cc_basename in
13744 KCC*)
13745 # KAI C++ Compiler
13746 lt_prog_compiler_wl_CXX='--backend -Wl,'
13747 lt_prog_compiler_pic_CXX='-fPIC'
13748 ;;
13749 ecpc* )
13750 # old Intel C++ for x86_64 which still supported -KPIC.
13751 lt_prog_compiler_wl_CXX='-Wl,'
13752 lt_prog_compiler_pic_CXX='-KPIC'
13753 lt_prog_compiler_static_CXX='-static'
13754 ;;
13755 icpc* )
13756 # Intel C++, used to be incompatible with GCC.
13757 # ICC 10 doesn't accept -KPIC any more.
13758 lt_prog_compiler_wl_CXX='-Wl,'
13759 lt_prog_compiler_pic_CXX='-fPIC'
13760 lt_prog_compiler_static_CXX='-static'
13761 ;;
13762 pgCC* | pgcpp*)
13763 # Portland Group C++ compiler
13764 lt_prog_compiler_wl_CXX='-Wl,'
13765 lt_prog_compiler_pic_CXX='-fpic'
13766 lt_prog_compiler_static_CXX='-Bstatic'
13767 ;;
13768 cxx*)
13769 # Compaq C++
13770 # Make sure the PIC flag is empty. It appears that all Alpha
13771 # Linux and Compaq Tru64 Unix objects are PIC.
13772 lt_prog_compiler_pic_CXX=
13773 lt_prog_compiler_static_CXX='-non_shared'
13774 ;;
13775 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13776 # IBM XL 8.0, 9.0 on PPC and BlueGene
13777 lt_prog_compiler_wl_CXX='-Wl,'
13778 lt_prog_compiler_pic_CXX='-qpic'
13779 lt_prog_compiler_static_CXX='-qstaticlink'
13780 ;;
13781 *)
13782 case `$CC -V 2>&1 | sed 5q` in
13783 *Sun\ C*)
13784 # Sun C++ 5.9
13785 lt_prog_compiler_pic_CXX='-KPIC'
13786 lt_prog_compiler_static_CXX='-Bstatic'
13787 lt_prog_compiler_wl_CXX='-Qoption ld '
13788 ;;
13789 esac
13790 ;;
13791 esac
13792 ;;
13793 lynxos*)
13794 ;;
13795 m88k*)
13796 ;;
13797 mvs*)
13798 case $cc_basename in
13799 cxx*)
13800 lt_prog_compiler_pic_CXX='-W c,exportall'
13801 ;;
13802 *)
13803 ;;
13804 esac
13805 ;;
13806 netbsd*)
13807 ;;
13808 *qnx* | *nto*)
13809 # QNX uses GNU C++, but need to define -shared option too, otherwise
13810 # it will coredump.
13811 lt_prog_compiler_pic_CXX='-fPIC -shared'
13812 ;;
13813 osf3* | osf4* | osf5*)
13814 case $cc_basename in
13815 KCC*)
13816 lt_prog_compiler_wl_CXX='--backend -Wl,'
13817 ;;
13818 RCC*)
13819 # Rational C++ 2.4.1
13820 lt_prog_compiler_pic_CXX='-pic'
13821 ;;
13822 cxx*)
13823 # Digital/Compaq C++
13824 lt_prog_compiler_wl_CXX='-Wl,'
13825 # Make sure the PIC flag is empty. It appears that all Alpha
13826 # Linux and Compaq Tru64 Unix objects are PIC.
13827 lt_prog_compiler_pic_CXX=
13828 lt_prog_compiler_static_CXX='-non_shared'
13829 ;;
13830 *)
13831 ;;
13832 esac
13833 ;;
13834 psos*)
13835 ;;
13836 solaris*)
13837 case $cc_basename in
13838 CC*)
13839 # Sun C++ 4.2, 5.x and Centerline C++
13840 lt_prog_compiler_pic_CXX='-KPIC'
13841 lt_prog_compiler_static_CXX='-Bstatic'
13842 lt_prog_compiler_wl_CXX='-Qoption ld '
13843 ;;
13844 gcx*)
13845 # Green Hills C++ Compiler
13846 lt_prog_compiler_pic_CXX='-PIC'
13847 ;;
13848 *)
13849 ;;
13850 esac
13851 ;;
13852 sunos4*)
13853 case $cc_basename in
13854 CC*)
13855 # Sun C++ 4.x
13856 lt_prog_compiler_pic_CXX='-pic'
13857 lt_prog_compiler_static_CXX='-Bstatic'
13858 ;;
13859 lcc*)
13860 # Lucid
13861 lt_prog_compiler_pic_CXX='-pic'
13862 ;;
13863 *)
13864 ;;
13865 esac
13866 ;;
13867 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13868 case $cc_basename in
13869 CC*)
13870 lt_prog_compiler_wl_CXX='-Wl,'
13871 lt_prog_compiler_pic_CXX='-KPIC'
13872 lt_prog_compiler_static_CXX='-Bstatic'
13873 ;;
13874 esac
13875 ;;
13876 tandem*)
13877 case $cc_basename in
13878 NCC*)
13879 # NonStop-UX NCC 3.20
13880 lt_prog_compiler_pic_CXX='-KPIC'
13881 ;;
13882 *)
13883 ;;
13884 esac
13885 ;;
13886 vxworks*)
13887 ;;
13888 *)
13889 lt_prog_compiler_can_build_shared_CXX=no
13890 ;;
13891 esac
13892 fi
13893
13894 case $host_os in
13895 # For platforms which do not support PIC, -DPIC is meaningless:
13896 *djgpp*)
13897 lt_prog_compiler_pic_CXX=
13898 ;;
13899 *)
13900 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13901 ;;
13902 esac
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13904 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13905
13906
13907
13908 #
13909 # Check to make sure the PIC flag actually works.
13910 #
13911 if test -n "$lt_prog_compiler_pic_CXX"; then
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13913 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13914 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13915 $as_echo_n "(cached) " >&6
13916 else
13917 lt_cv_prog_compiler_pic_works_CXX=no
13918 ac_outfile=conftest.$ac_objext
13919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13920 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13921 # Insert the option either (1) after the last *FLAGS variable, or
13922 # (2) before a word containing "conftest.", or (3) at the end.
13923 # Note that $ac_compile itself does not contain backslashes and begins
13924 # with a dollar sign (not a hyphen), so the echo should work correctly.
13925 # The option is referenced via a variable to avoid confusing sed.
13926 lt_compile=`echo "$ac_compile" | $SED \
13927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13929 -e 's:$: $lt_compiler_flag:'`
13930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13931 (eval "$lt_compile" 2>conftest.err)
13932 ac_status=$?
13933 cat conftest.err >&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 if (exit $ac_status) && test -s "$ac_outfile"; then
13936 # The compiler can only warn and ignore the option if not recognized
13937 # So say no if there are warnings other than the usual output.
13938 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13940 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13941 lt_cv_prog_compiler_pic_works_CXX=yes
13942 fi
13943 fi
13944 $RM conftest*
13945
13946 fi
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13948 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13949
13950 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13951 case $lt_prog_compiler_pic_CXX in
13952 "" | " "*) ;;
13953 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13954 esac
13955 else
13956 lt_prog_compiler_pic_CXX=
13957 lt_prog_compiler_can_build_shared_CXX=no
13958 fi
13959
13960 fi
13961
13962
13963
13964 #
13965 # Check to make sure the static flag actually works.
13966 #
13967 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13969 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13970 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13971 $as_echo_n "(cached) " >&6
13972 else
13973 lt_cv_prog_compiler_static_works_CXX=no
13974 save_LDFLAGS="$LDFLAGS"
13975 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13976 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13977 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13978 # The linker can only warn and ignore the option if not recognized
13979 # So say no if there are warnings
13980 if test -s conftest.err; then
13981 # Append any errors to the config.log.
13982 cat conftest.err 1>&5
13983 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13985 if diff conftest.exp conftest.er2 >/dev/null; then
13986 lt_cv_prog_compiler_static_works_CXX=yes
13987 fi
13988 else
13989 lt_cv_prog_compiler_static_works_CXX=yes
13990 fi
13991 fi
13992 $RM -r conftest*
13993 LDFLAGS="$save_LDFLAGS"
13994
13995 fi
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13997 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13998
13999 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14000 :
14001 else
14002 lt_prog_compiler_static_CXX=
14003 fi
14004
14005
14006
14007
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14009 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14010 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14011 $as_echo_n "(cached) " >&6
14012 else
14013 lt_cv_prog_compiler_c_o_CXX=no
14014 $RM -r conftest 2>/dev/null
14015 mkdir conftest
14016 cd conftest
14017 mkdir out
14018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14019
14020 lt_compiler_flag="-o out/conftest2.$ac_objext"
14021 # Insert the option either (1) after the last *FLAGS variable, or
14022 # (2) before a word containing "conftest.", or (3) at the end.
14023 # Note that $ac_compile itself does not contain backslashes and begins
14024 # with a dollar sign (not a hyphen), so the echo should work correctly.
14025 lt_compile=`echo "$ac_compile" | $SED \
14026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14028 -e 's:$: $lt_compiler_flag:'`
14029 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14030 (eval "$lt_compile" 2>out/conftest.err)
14031 ac_status=$?
14032 cat out/conftest.err >&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14035 then
14036 # The compiler can only warn and ignore the option if not recognized
14037 # So say no if there are warnings
14038 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14041 lt_cv_prog_compiler_c_o_CXX=yes
14042 fi
14043 fi
14044 chmod u+w . 2>&5
14045 $RM conftest*
14046 # SGI C++ compiler will create directory out/ii_files/ for
14047 # template instantiation
14048 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14049 $RM out/* && rmdir out
14050 cd ..
14051 $RM -r conftest
14052 $RM conftest*
14053
14054 fi
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14056 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14057
14058
14059
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14061 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14062 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14063 $as_echo_n "(cached) " >&6
14064 else
14065 lt_cv_prog_compiler_c_o_CXX=no
14066 $RM -r conftest 2>/dev/null
14067 mkdir conftest
14068 cd conftest
14069 mkdir out
14070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14071
14072 lt_compiler_flag="-o out/conftest2.$ac_objext"
14073 # Insert the option either (1) after the last *FLAGS variable, or
14074 # (2) before a word containing "conftest.", or (3) at the end.
14075 # Note that $ac_compile itself does not contain backslashes and begins
14076 # with a dollar sign (not a hyphen), so the echo should work correctly.
14077 lt_compile=`echo "$ac_compile" | $SED \
14078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14080 -e 's:$: $lt_compiler_flag:'`
14081 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14082 (eval "$lt_compile" 2>out/conftest.err)
14083 ac_status=$?
14084 cat out/conftest.err >&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14087 then
14088 # The compiler can only warn and ignore the option if not recognized
14089 # So say no if there are warnings
14090 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14091 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14092 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14093 lt_cv_prog_compiler_c_o_CXX=yes
14094 fi
14095 fi
14096 chmod u+w . 2>&5
14097 $RM conftest*
14098 # SGI C++ compiler will create directory out/ii_files/ for
14099 # template instantiation
14100 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14101 $RM out/* && rmdir out
14102 cd ..
14103 $RM -r conftest
14104 $RM conftest*
14105
14106 fi
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14108 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14109
14110
14111
14112
14113 hard_links="nottested"
14114 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14115 # do not overwrite the value of need_locks provided by the user
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14117 $as_echo_n "checking if we can lock with hard links... " >&6; }
14118 hard_links=yes
14119 $RM conftest*
14120 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14121 touch conftest.a
14122 ln conftest.a conftest.b 2>&5 || hard_links=no
14123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14125 $as_echo "$hard_links" >&6; }
14126 if test "$hard_links" = no; then
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14128 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14129 need_locks=warn
14130 fi
14131 else
14132 need_locks=no
14133 fi
14134
14135
14136
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14138 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14139
14140 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14141 case $host_os in
14142 aix[4-9]*)
14143 # If we're using GNU nm, then we don't want the "-C" option.
14144 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14145 # Also, AIX nm treats weak defined symbols like other global defined
14146 # symbols, whereas GNU nm marks them as "W".
14147 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14148 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'
14149 else
14150 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'
14151 fi
14152 ;;
14153 pw32*)
14154 export_symbols_cmds_CXX="$ltdll_cmds"
14155 ;;
14156 cygwin* | mingw* | cegcc*)
14157 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'
14158 ;;
14159 *)
14160 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14161 ;;
14162 esac
14163 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14164
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14166 $as_echo "$ld_shlibs_CXX" >&6; }
14167 test "$ld_shlibs_CXX" = no && can_build_shared=no
14168
14169 with_gnu_ld_CXX=$with_gnu_ld
14170
14171
14172
14173
14174
14175
14176 #
14177 # Do we need to explicitly link libc?
14178 #
14179 case "x$archive_cmds_need_lc_CXX" in
14180 x|xyes)
14181 # Assume -lc should be added
14182 archive_cmds_need_lc_CXX=yes
14183
14184 if test "$enable_shared" = yes && test "$GCC" = yes; then
14185 case $archive_cmds_CXX in
14186 *'~'*)
14187 # FIXME: we may have to deal with multi-command sequences.
14188 ;;
14189 '$CC '*)
14190 # Test whether the compiler implicitly links with -lc since on some
14191 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14192 # to ld, don't add -lc before -lgcc.
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14194 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14195 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14196 $as_echo_n "(cached) " >&6
14197 else
14198 $RM conftest*
14199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14200
14201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14202 (eval $ac_compile) 2>&5
14203 ac_status=$?
14204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14205 test $ac_status = 0; } 2>conftest.err; then
14206 soname=conftest
14207 lib=conftest
14208 libobjs=conftest.$ac_objext
14209 deplibs=
14210 wl=$lt_prog_compiler_wl_CXX
14211 pic_flag=$lt_prog_compiler_pic_CXX
14212 compiler_flags=-v
14213 linker_flags=-v
14214 verstring=
14215 output_objdir=.
14216 libname=conftest
14217 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14218 allow_undefined_flag_CXX=
14219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14220 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14221 ac_status=$?
14222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14223 test $ac_status = 0; }
14224 then
14225 lt_cv_archive_cmds_need_lc_CXX=no
14226 else
14227 lt_cv_archive_cmds_need_lc_CXX=yes
14228 fi
14229 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14230 else
14231 cat conftest.err 1>&5
14232 fi
14233 $RM conftest*
14234
14235 fi
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14237 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14238 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14239 ;;
14240 esac
14241 fi
14242 ;;
14243 esac
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14309 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14310
14311 library_names_spec=
14312 libname_spec='lib$name'
14313 soname_spec=
14314 shrext_cmds=".so"
14315 postinstall_cmds=
14316 postuninstall_cmds=
14317 finish_cmds=
14318 finish_eval=
14319 shlibpath_var=
14320 shlibpath_overrides_runpath=unknown
14321 version_type=none
14322 dynamic_linker="$host_os ld.so"
14323 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14324 need_lib_prefix=unknown
14325 hardcode_into_libs=no
14326
14327 # when you set need_version to no, make sure it does not cause -set_version
14328 # flags to be left without arguments
14329 need_version=unknown
14330
14331 case $host_os in
14332 aix3*)
14333 version_type=linux
14334 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14335 shlibpath_var=LIBPATH
14336
14337 # AIX 3 has no versioning support, so we append a major version to the name.
14338 soname_spec='${libname}${release}${shared_ext}$major'
14339 ;;
14340
14341 aix[4-9]*)
14342 version_type=linux
14343 need_lib_prefix=no
14344 need_version=no
14345 hardcode_into_libs=yes
14346 if test "$host_cpu" = ia64; then
14347 # AIX 5 supports IA64
14348 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14349 shlibpath_var=LD_LIBRARY_PATH
14350 else
14351 # With GCC up to 2.95.x, collect2 would create an import file
14352 # for dependence libraries. The import file would start with
14353 # the line `#! .'. This would cause the generated library to
14354 # depend on `.', always an invalid library. This was fixed in
14355 # development snapshots of GCC prior to 3.0.
14356 case $host_os in
14357 aix4 | aix4.[01] | aix4.[01].*)
14358 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14359 echo ' yes '
14360 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14361 :
14362 else
14363 can_build_shared=no
14364 fi
14365 ;;
14366 esac
14367 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14368 # soname into executable. Probably we can add versioning support to
14369 # collect2, so additional links can be useful in future.
14370 if test "$aix_use_runtimelinking" = yes; then
14371 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14372 # instead of lib<name>.a to let people know that these are not
14373 # typical AIX shared libraries.
14374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14375 else
14376 # We preserve .a as extension for shared libraries through AIX4.2
14377 # and later when we are not doing run time linking.
14378 library_names_spec='${libname}${release}.a $libname.a'
14379 soname_spec='${libname}${release}${shared_ext}$major'
14380 fi
14381 shlibpath_var=LIBPATH
14382 fi
14383 ;;
14384
14385 amigaos*)
14386 case $host_cpu in
14387 powerpc)
14388 # Since July 2007 AmigaOS4 officially supports .so libraries.
14389 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14391 ;;
14392 m68k)
14393 library_names_spec='$libname.ixlibrary $libname.a'
14394 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14395 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'
14396 ;;
14397 esac
14398 ;;
14399
14400 beos*)
14401 library_names_spec='${libname}${shared_ext}'
14402 dynamic_linker="$host_os ld.so"
14403 shlibpath_var=LIBRARY_PATH
14404 ;;
14405
14406 bsdi[45]*)
14407 version_type=linux
14408 need_version=no
14409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14410 soname_spec='${libname}${release}${shared_ext}$major'
14411 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14412 shlibpath_var=LD_LIBRARY_PATH
14413 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14414 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14415 # the default ld.so.conf also contains /usr/contrib/lib and
14416 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14417 # libtool to hard-code these into programs
14418 ;;
14419
14420 cygwin* | mingw* | pw32* | cegcc*)
14421 version_type=windows
14422 shrext_cmds=".dll"
14423 need_version=no
14424 need_lib_prefix=no
14425
14426 case $GCC,$host_os in
14427 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14428 library_names_spec='$libname.dll.a'
14429 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14430 postinstall_cmds='base_file=`basename \${file}`~
14431 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14432 dldir=$destdir/`dirname \$dlpath`~
14433 test -d \$dldir || mkdir -p \$dldir~
14434 $install_prog $dir/$dlname \$dldir/$dlname~
14435 chmod a+x \$dldir/$dlname~
14436 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14437 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14438 fi'
14439 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14440 dlpath=$dir/\$dldll~
14441 $RM \$dlpath'
14442 shlibpath_overrides_runpath=yes
14443
14444 case $host_os in
14445 cygwin*)
14446 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14447 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14448
14449 ;;
14450 mingw* | cegcc*)
14451 # MinGW DLLs use traditional 'lib' prefix
14452 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14453 ;;
14454 pw32*)
14455 # pw32 DLLs use 'pw' prefix rather than 'lib'
14456 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14457 ;;
14458 esac
14459 ;;
14460
14461 *)
14462 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14463 ;;
14464 esac
14465 dynamic_linker='Win32 ld.exe'
14466 # FIXME: first we should search . and the directory the executable is in
14467 shlibpath_var=PATH
14468 ;;
14469
14470 darwin* | rhapsody*)
14471 dynamic_linker="$host_os dyld"
14472 version_type=darwin
14473 need_lib_prefix=no
14474 need_version=no
14475 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14476 soname_spec='${libname}${release}${major}$shared_ext'
14477 shlibpath_overrides_runpath=yes
14478 shlibpath_var=DYLD_LIBRARY_PATH
14479 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14480
14481 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14482 ;;
14483
14484 dgux*)
14485 version_type=linux
14486 need_lib_prefix=no
14487 need_version=no
14488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14489 soname_spec='${libname}${release}${shared_ext}$major'
14490 shlibpath_var=LD_LIBRARY_PATH
14491 ;;
14492
14493 freebsd* | dragonfly*)
14494 # DragonFly does not have aout. When/if they implement a new
14495 # versioning mechanism, adjust this.
14496 if test -x /usr/bin/objformat; then
14497 objformat=`/usr/bin/objformat`
14498 else
14499 case $host_os in
14500 freebsd[23].*) objformat=aout ;;
14501 *) objformat=elf ;;
14502 esac
14503 fi
14504 version_type=freebsd-$objformat
14505 case $version_type in
14506 freebsd-elf*)
14507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14508 need_version=no
14509 need_lib_prefix=no
14510 ;;
14511 freebsd-*)
14512 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14513 need_version=yes
14514 ;;
14515 esac
14516 shlibpath_var=LD_LIBRARY_PATH
14517 case $host_os in
14518 freebsd2.*)
14519 shlibpath_overrides_runpath=yes
14520 ;;
14521 freebsd3.[01]* | freebsdelf3.[01]*)
14522 shlibpath_overrides_runpath=yes
14523 hardcode_into_libs=yes
14524 ;;
14525 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14526 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14527 shlibpath_overrides_runpath=no
14528 hardcode_into_libs=yes
14529 ;;
14530 *) # from 4.6 on, and DragonFly
14531 shlibpath_overrides_runpath=yes
14532 hardcode_into_libs=yes
14533 ;;
14534 esac
14535 ;;
14536
14537 haiku*)
14538 version_type=linux
14539 need_lib_prefix=no
14540 need_version=no
14541 dynamic_linker="$host_os runtime_loader"
14542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14543 soname_spec='${libname}${release}${shared_ext}$major'
14544 shlibpath_var=LIBRARY_PATH
14545 shlibpath_overrides_runpath=yes
14546 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14547 hardcode_into_libs=yes
14548 ;;
14549
14550 hpux9* | hpux10* | hpux11*)
14551 # Give a soname corresponding to the major version so that dld.sl refuses to
14552 # link against other versions.
14553 version_type=sunos
14554 need_lib_prefix=no
14555 need_version=no
14556 case $host_cpu in
14557 ia64*)
14558 shrext_cmds='.so'
14559 hardcode_into_libs=yes
14560 dynamic_linker="$host_os dld.so"
14561 shlibpath_var=LD_LIBRARY_PATH
14562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14564 soname_spec='${libname}${release}${shared_ext}$major'
14565 if test "X$HPUX_IA64_MODE" = X32; then
14566 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14567 else
14568 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14569 fi
14570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14571 ;;
14572 hppa*64*)
14573 shrext_cmds='.sl'
14574 hardcode_into_libs=yes
14575 dynamic_linker="$host_os dld.sl"
14576 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14577 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14579 soname_spec='${libname}${release}${shared_ext}$major'
14580 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14582 ;;
14583 *)
14584 shrext_cmds='.sl'
14585 dynamic_linker="$host_os dld.sl"
14586 shlibpath_var=SHLIB_PATH
14587 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14589 soname_spec='${libname}${release}${shared_ext}$major'
14590 ;;
14591 esac
14592 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14593 postinstall_cmds='chmod 555 $lib'
14594 # or fails outright, so override atomically:
14595 install_override_mode=555
14596 ;;
14597
14598 interix[3-9]*)
14599 version_type=linux
14600 need_lib_prefix=no
14601 need_version=no
14602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14603 soname_spec='${libname}${release}${shared_ext}$major'
14604 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14605 shlibpath_var=LD_LIBRARY_PATH
14606 shlibpath_overrides_runpath=no
14607 hardcode_into_libs=yes
14608 ;;
14609
14610 irix5* | irix6* | nonstopux*)
14611 case $host_os in
14612 nonstopux*) version_type=nonstopux ;;
14613 *)
14614 if test "$lt_cv_prog_gnu_ld" = yes; then
14615 version_type=linux
14616 else
14617 version_type=irix
14618 fi ;;
14619 esac
14620 need_lib_prefix=no
14621 need_version=no
14622 soname_spec='${libname}${release}${shared_ext}$major'
14623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14624 case $host_os in
14625 irix5* | nonstopux*)
14626 libsuff= shlibsuff=
14627 ;;
14628 *)
14629 case $LD in # libtool.m4 will add one of these switches to LD
14630 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14631 libsuff= shlibsuff= libmagic=32-bit;;
14632 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14633 libsuff=32 shlibsuff=N32 libmagic=N32;;
14634 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14635 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14636 *) libsuff= shlibsuff= libmagic=never-match;;
14637 esac
14638 ;;
14639 esac
14640 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14641 shlibpath_overrides_runpath=no
14642 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14643 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14644 hardcode_into_libs=yes
14645 ;;
14646
14647 # No shared lib support for Linux oldld, aout, or coff.
14648 linux*oldld* | linux*aout* | linux*coff*)
14649 dynamic_linker=no
14650 ;;
14651
14652 # This must be Linux ELF.
14653
14654 # uclinux* changes (here and below) have been submitted to the libtool
14655 # project, but have not yet been accepted: they are GCC-local changes
14656 # for the time being. (See
14657 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14658 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14659 version_type=linux
14660 need_lib_prefix=no
14661 need_version=no
14662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14663 soname_spec='${libname}${release}${shared_ext}$major'
14664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14665 shlibpath_var=LD_LIBRARY_PATH
14666 shlibpath_overrides_runpath=no
14667
14668 # Some binutils ld are patched to set DT_RUNPATH
14669 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14670 $as_echo_n "(cached) " >&6
14671 else
14672 lt_cv_shlibpath_overrides_runpath=no
14673 save_LDFLAGS=$LDFLAGS
14674 save_libdir=$libdir
14675 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14676 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h. */
14679
14680 int
14681 main ()
14682 {
14683
14684 ;
14685 return 0;
14686 }
14687 _ACEOF
14688 if ac_fn_cxx_try_link "$LINENO"; then :
14689 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14690 lt_cv_shlibpath_overrides_runpath=yes
14691 fi
14692 fi
14693 rm -f core conftest.err conftest.$ac_objext \
14694 conftest$ac_exeext conftest.$ac_ext
14695 LDFLAGS=$save_LDFLAGS
14696 libdir=$save_libdir
14697
14698 fi
14699
14700 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14701
14702 # This implies no fast_install, which is unacceptable.
14703 # Some rework will be needed to allow for fast_install
14704 # before this can be enabled.
14705 hardcode_into_libs=yes
14706
14707 # Append ld.so.conf contents to the search path
14708 if test -f /etc/ld.so.conf; then
14709 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' ' '`
14710 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14711 fi
14712
14713 # We used to test for /lib/ld.so.1 and disable shared libraries on
14714 # powerpc, because MkLinux only supported shared libraries with the
14715 # GNU dynamic linker. Since this was broken with cross compilers,
14716 # most powerpc-linux boxes support dynamic linking these days and
14717 # people can always --disable-shared, the test was removed, and we
14718 # assume the GNU/Linux dynamic linker is in use.
14719 dynamic_linker='GNU/Linux ld.so'
14720 ;;
14721
14722 netbsd*)
14723 version_type=sunos
14724 need_lib_prefix=no
14725 need_version=no
14726 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14728 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14729 dynamic_linker='NetBSD (a.out) ld.so'
14730 else
14731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14732 soname_spec='${libname}${release}${shared_ext}$major'
14733 dynamic_linker='NetBSD ld.elf_so'
14734 fi
14735 shlibpath_var=LD_LIBRARY_PATH
14736 shlibpath_overrides_runpath=yes
14737 hardcode_into_libs=yes
14738 ;;
14739
14740 newsos6)
14741 version_type=linux
14742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14743 shlibpath_var=LD_LIBRARY_PATH
14744 shlibpath_overrides_runpath=yes
14745 ;;
14746
14747 *nto* | *qnx*)
14748 version_type=qnx
14749 need_lib_prefix=no
14750 need_version=no
14751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14752 soname_spec='${libname}${release}${shared_ext}$major'
14753 shlibpath_var=LD_LIBRARY_PATH
14754 shlibpath_overrides_runpath=no
14755 hardcode_into_libs=yes
14756 dynamic_linker='ldqnx.so'
14757 ;;
14758
14759 openbsd*)
14760 version_type=sunos
14761 sys_lib_dlsearch_path_spec="/usr/lib"
14762 need_lib_prefix=no
14763 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14764 case $host_os in
14765 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14766 *) need_version=no ;;
14767 esac
14768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14770 shlibpath_var=LD_LIBRARY_PATH
14771 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14772 case $host_os in
14773 openbsd2.[89] | openbsd2.[89].*)
14774 shlibpath_overrides_runpath=no
14775 ;;
14776 *)
14777 shlibpath_overrides_runpath=yes
14778 ;;
14779 esac
14780 else
14781 shlibpath_overrides_runpath=yes
14782 fi
14783 ;;
14784
14785 os2*)
14786 libname_spec='$name'
14787 shrext_cmds=".dll"
14788 need_lib_prefix=no
14789 library_names_spec='$libname${shared_ext} $libname.a'
14790 dynamic_linker='OS/2 ld.exe'
14791 shlibpath_var=LIBPATH
14792 ;;
14793
14794 osf3* | osf4* | osf5*)
14795 version_type=osf
14796 need_lib_prefix=no
14797 need_version=no
14798 soname_spec='${libname}${release}${shared_ext}$major'
14799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14800 shlibpath_var=LD_LIBRARY_PATH
14801 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14802 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14803 ;;
14804
14805 rdos*)
14806 dynamic_linker=no
14807 ;;
14808
14809 solaris*)
14810 version_type=linux
14811 need_lib_prefix=no
14812 need_version=no
14813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14814 soname_spec='${libname}${release}${shared_ext}$major'
14815 shlibpath_var=LD_LIBRARY_PATH
14816 shlibpath_overrides_runpath=yes
14817 hardcode_into_libs=yes
14818 # ldd complains unless libraries are executable
14819 postinstall_cmds='chmod +x $lib'
14820 ;;
14821
14822 sunos4*)
14823 version_type=sunos
14824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14825 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14826 shlibpath_var=LD_LIBRARY_PATH
14827 shlibpath_overrides_runpath=yes
14828 if test "$with_gnu_ld" = yes; then
14829 need_lib_prefix=no
14830 fi
14831 need_version=yes
14832 ;;
14833
14834 sysv4 | sysv4.3*)
14835 version_type=linux
14836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14837 soname_spec='${libname}${release}${shared_ext}$major'
14838 shlibpath_var=LD_LIBRARY_PATH
14839 case $host_vendor in
14840 sni)
14841 shlibpath_overrides_runpath=no
14842 need_lib_prefix=no
14843 runpath_var=LD_RUN_PATH
14844 ;;
14845 siemens)
14846 need_lib_prefix=no
14847 ;;
14848 motorola)
14849 need_lib_prefix=no
14850 need_version=no
14851 shlibpath_overrides_runpath=no
14852 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14853 ;;
14854 esac
14855 ;;
14856
14857 sysv4*MP*)
14858 if test -d /usr/nec ;then
14859 version_type=linux
14860 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14861 soname_spec='$libname${shared_ext}.$major'
14862 shlibpath_var=LD_LIBRARY_PATH
14863 fi
14864 ;;
14865
14866 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14867 version_type=freebsd-elf
14868 need_lib_prefix=no
14869 need_version=no
14870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14871 soname_spec='${libname}${release}${shared_ext}$major'
14872 shlibpath_var=LD_LIBRARY_PATH
14873 shlibpath_overrides_runpath=yes
14874 hardcode_into_libs=yes
14875 if test "$with_gnu_ld" = yes; then
14876 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14877 else
14878 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14879 case $host_os in
14880 sco3.2v5*)
14881 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14882 ;;
14883 esac
14884 fi
14885 sys_lib_dlsearch_path_spec='/usr/lib'
14886 ;;
14887
14888 tpf*)
14889 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14890 version_type=linux
14891 need_lib_prefix=no
14892 need_version=no
14893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14894 shlibpath_var=LD_LIBRARY_PATH
14895 shlibpath_overrides_runpath=no
14896 hardcode_into_libs=yes
14897 ;;
14898
14899 uts4*)
14900 version_type=linux
14901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14902 soname_spec='${libname}${release}${shared_ext}$major'
14903 shlibpath_var=LD_LIBRARY_PATH
14904 ;;
14905
14906 # Shared libraries for VwWorks, >= 7 only at this stage
14907 # and (fpic) still incompatible with "large" code models
14908 # in a few configurations. Only for RTP mode in any case,
14909 # and upon explicit request at configure time.
14910 vxworks7*)
14911 dynamic_linker=no
14912 case ${with_multisubdir}-${enable_shared} in
14913 *large*)
14914 ;;
14915 *mrtp*-yes)
14916 version_type=linux
14917 need_lib_prefix=no
14918 need_version=no
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 dynamic_linker="$host_os module_loader"
14922 ;;
14923 esac
14924 ;;
14925 *)
14926 dynamic_linker=no
14927 ;;
14928 esac
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14930 $as_echo "$dynamic_linker" >&6; }
14931 test "$dynamic_linker" = no && can_build_shared=no
14932
14933 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14934 if test "$GCC" = yes; then
14935 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14936 fi
14937
14938 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14939 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14940 fi
14941 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14942 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14943 fi
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14983 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14984 hardcode_action_CXX=
14985 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14986 test -n "$runpath_var_CXX" ||
14987 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14988
14989 # We can hardcode non-existent directories.
14990 if test "$hardcode_direct_CXX" != no &&
14991 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14992 # have to relink, otherwise we might link with an installed library
14993 # when we should be linking with a yet-to-be-installed one
14994 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14995 test "$hardcode_minus_L_CXX" != no; then
14996 # Linking always hardcodes the temporary library directory.
14997 hardcode_action_CXX=relink
14998 else
14999 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15000 hardcode_action_CXX=immediate
15001 fi
15002 else
15003 # We cannot hardcode anything, or else we can only hardcode existing
15004 # directories.
15005 hardcode_action_CXX=unsupported
15006 fi
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15008 $as_echo "$hardcode_action_CXX" >&6; }
15009
15010 if test "$hardcode_action_CXX" = relink ||
15011 test "$inherit_rpath_CXX" = yes; then
15012 # Fast installation is not supported
15013 enable_fast_install=no
15014 elif test "$shlibpath_overrides_runpath" = yes ||
15015 test "$enable_shared" = no; then
15016 # Fast installation is not necessary
15017 enable_fast_install=needless
15018 fi
15019
15020
15021
15022
15023
15024
15025
15026 fi # test -n "$compiler"
15027
15028 CC=$lt_save_CC
15029 LDCXX=$LD
15030 LD=$lt_save_LD
15031 GCC=$lt_save_GCC
15032 with_gnu_ld=$lt_save_with_gnu_ld
15033 lt_cv_path_LDCXX=$lt_cv_path_LD
15034 lt_cv_path_LD=$lt_save_path_LD
15035 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15036 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15037 fi # test "$_lt_caught_CXX_error" != yes
15038
15039 ac_ext=c
15040 ac_cpp='$CPP $CPPFLAGS'
15041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057 ac_config_commands="$ac_config_commands libtool"
15058
15059
15060
15061
15062 # Only expand once:
15063
15064
15065
15066 # The tests for host and target for $enable_largefile require
15067 # canonical names.
15068
15069
15070
15071 # As the $enable_largefile decision depends on --enable-plugins we must set it
15072 # even in directories otherwise not depending on the $plugins option.
15073
15074
15075 maybe_plugins=no
15076 for ac_header in dlfcn.h
15077 do :
15078 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15079 "
15080 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15081 cat >>confdefs.h <<_ACEOF
15082 #define HAVE_DLFCN_H 1
15083 _ACEOF
15084 maybe_plugins=yes
15085 fi
15086
15087 done
15088
15089 for ac_header in windows.h
15090 do :
15091 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15092 "
15093 if test "x$ac_cv_header_windows_h" = xyes; then :
15094 cat >>confdefs.h <<_ACEOF
15095 #define HAVE_WINDOWS_H 1
15096 _ACEOF
15097 maybe_plugins=yes
15098 fi
15099
15100 done
15101
15102
15103 # Check whether --enable-plugins was given.
15104 if test "${enable_plugins+set}" = set; then :
15105 enableval=$enable_plugins; case "${enableval}" in
15106 no) plugins=no ;;
15107 *) plugins=yes
15108 if test "$maybe_plugins" != "yes" ; then
15109 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15110 fi ;;
15111 esac
15112 else
15113 plugins=$maybe_plugins
15114
15115 fi
15116
15117 if test "$plugins" = "yes"; then
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
15119 $as_echo_n "checking for library containing dlsym... " >&6; }
15120 if ${ac_cv_search_dlsym+:} false; then :
15121 $as_echo_n "(cached) " >&6
15122 else
15123 ac_func_search_save_LIBS=$LIBS
15124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15125 /* end confdefs.h. */
15126
15127 /* Override any GCC internal prototype to avoid an error.
15128 Use char because int might match the return type of a GCC
15129 builtin and then its argument prototype would still apply. */
15130 #ifdef __cplusplus
15131 extern "C"
15132 #endif
15133 char dlsym ();
15134 int
15135 main ()
15136 {
15137 return dlsym ();
15138 ;
15139 return 0;
15140 }
15141 _ACEOF
15142 for ac_lib in '' dl; do
15143 if test -z "$ac_lib"; then
15144 ac_res="none required"
15145 else
15146 ac_res=-l$ac_lib
15147 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15148 fi
15149 if ac_fn_c_try_link "$LINENO"; then :
15150 ac_cv_search_dlsym=$ac_res
15151 fi
15152 rm -f core conftest.err conftest.$ac_objext \
15153 conftest$ac_exeext
15154 if ${ac_cv_search_dlsym+:} false; then :
15155 break
15156 fi
15157 done
15158 if ${ac_cv_search_dlsym+:} false; then :
15159
15160 else
15161 ac_cv_search_dlsym=no
15162 fi
15163 rm conftest.$ac_ext
15164 LIBS=$ac_func_search_save_LIBS
15165 fi
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
15167 $as_echo "$ac_cv_search_dlsym" >&6; }
15168 ac_res=$ac_cv_search_dlsym
15169 if test "$ac_res" != no; then :
15170 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15171
15172 fi
15173
15174 fi
15175
15176
15177 case "${host}" in
15178 sparc-*-solaris*|i?86-*-solaris*)
15179 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
15180 # were mutually exclusive until Solaris 11.3. Without procfs support,
15181 # the bfd/ elf module cannot provide certain routines such as
15182 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
15183 # explicitly requested large-file support through the
15184 # --enable-largefile switch, disable large-file support in favor of
15185 # procfs support.
15186 #
15187 # Check if <sys/procfs.h> is incompatible with large-file support.
15188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189 /* end confdefs.h. */
15190 #define _FILE_OFFSET_BITS 64
15191 #define _STRUCTURED_PROC 1
15192 #include <sys/procfs.h>
15193 int
15194 main ()
15195 {
15196
15197 ;
15198 return 0;
15199 }
15200 _ACEOF
15201 if ac_fn_c_try_compile "$LINENO"; then :
15202 acx_cv_procfs_lfs=yes
15203 else
15204 acx_cv_procfs_lfs=no
15205 fi
15206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15207 #
15208 # Forcefully disable large-file support only if necessary, gdb is in
15209 # tree and enabled.
15210 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
15211 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
15212 : ${enable_largefile="no"}
15213 if test "$plugins" = yes; then
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15215 plugin support disabled; require large-file support which is incompatible with GDB." >&5
15216 $as_echo "$as_me: WARNING:
15217 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
15218 plugins=no
15219 fi
15220 fi
15221 #
15222 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
15223 # benefit of g++ 9+ which predefines it on Solaris.
15224 if test "$enable_largefile" = no; then
15225 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
15226
15227 fi
15228 ;;
15229 esac
15230
15231 # Check whether --enable-largefile was given.
15232 if test "${enable_largefile+set}" = set; then :
15233 enableval=$enable_largefile;
15234 fi
15235
15236 if test "$enable_largefile" != no; then
15237
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15239 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15240 if ${ac_cv_sys_largefile_CC+:} false; then :
15241 $as_echo_n "(cached) " >&6
15242 else
15243 ac_cv_sys_largefile_CC=no
15244 if test "$GCC" != yes; then
15245 ac_save_CC=$CC
15246 while :; do
15247 # IRIX 6.2 and later do not support large files by default,
15248 # so use the C compiler's -n32 option if that helps.
15249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15250 /* end confdefs.h. */
15251 #include <sys/types.h>
15252 /* Check that off_t can represent 2**63 - 1 correctly.
15253 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15254 since some C++ compilers masquerading as C compilers
15255 incorrectly reject 9223372036854775807. */
15256 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15257 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15258 && LARGE_OFF_T % 2147483647 == 1)
15259 ? 1 : -1];
15260 int
15261 main ()
15262 {
15263
15264 ;
15265 return 0;
15266 }
15267 _ACEOF
15268 if ac_fn_c_try_compile "$LINENO"; then :
15269 break
15270 fi
15271 rm -f core conftest.err conftest.$ac_objext
15272 CC="$CC -n32"
15273 if ac_fn_c_try_compile "$LINENO"; then :
15274 ac_cv_sys_largefile_CC=' -n32'; break
15275 fi
15276 rm -f core conftest.err conftest.$ac_objext
15277 break
15278 done
15279 CC=$ac_save_CC
15280 rm -f conftest.$ac_ext
15281 fi
15282 fi
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15284 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15285 if test "$ac_cv_sys_largefile_CC" != no; then
15286 CC=$CC$ac_cv_sys_largefile_CC
15287 fi
15288
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15290 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15291 if ${ac_cv_sys_file_offset_bits+:} false; then :
15292 $as_echo_n "(cached) " >&6
15293 else
15294 while :; do
15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296 /* end confdefs.h. */
15297 #include <sys/types.h>
15298 /* Check that off_t can represent 2**63 - 1 correctly.
15299 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15300 since some C++ compilers masquerading as C compilers
15301 incorrectly reject 9223372036854775807. */
15302 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15303 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15304 && LARGE_OFF_T % 2147483647 == 1)
15305 ? 1 : -1];
15306 int
15307 main ()
15308 {
15309
15310 ;
15311 return 0;
15312 }
15313 _ACEOF
15314 if ac_fn_c_try_compile "$LINENO"; then :
15315 ac_cv_sys_file_offset_bits=no; break
15316 fi
15317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15319 /* end confdefs.h. */
15320 #define _FILE_OFFSET_BITS 64
15321 #include <sys/types.h>
15322 /* Check that off_t can represent 2**63 - 1 correctly.
15323 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15324 since some C++ compilers masquerading as C compilers
15325 incorrectly reject 9223372036854775807. */
15326 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15327 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15328 && LARGE_OFF_T % 2147483647 == 1)
15329 ? 1 : -1];
15330 int
15331 main ()
15332 {
15333
15334 ;
15335 return 0;
15336 }
15337 _ACEOF
15338 if ac_fn_c_try_compile "$LINENO"; then :
15339 ac_cv_sys_file_offset_bits=64; break
15340 fi
15341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15342 ac_cv_sys_file_offset_bits=unknown
15343 break
15344 done
15345 fi
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15347 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15348 case $ac_cv_sys_file_offset_bits in #(
15349 no | unknown) ;;
15350 *)
15351 cat >>confdefs.h <<_ACEOF
15352 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15353 _ACEOF
15354 ;;
15355 esac
15356 rm -rf conftest*
15357 if test $ac_cv_sys_file_offset_bits = unknown; then
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15359 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15360 if ${ac_cv_sys_large_files+:} false; then :
15361 $as_echo_n "(cached) " >&6
15362 else
15363 while :; do
15364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15365 /* end confdefs.h. */
15366 #include <sys/types.h>
15367 /* Check that off_t can represent 2**63 - 1 correctly.
15368 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15369 since some C++ compilers masquerading as C compilers
15370 incorrectly reject 9223372036854775807. */
15371 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15372 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15373 && LARGE_OFF_T % 2147483647 == 1)
15374 ? 1 : -1];
15375 int
15376 main ()
15377 {
15378
15379 ;
15380 return 0;
15381 }
15382 _ACEOF
15383 if ac_fn_c_try_compile "$LINENO"; then :
15384 ac_cv_sys_large_files=no; break
15385 fi
15386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388 /* end confdefs.h. */
15389 #define _LARGE_FILES 1
15390 #include <sys/types.h>
15391 /* Check that off_t can represent 2**63 - 1 correctly.
15392 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15393 since some C++ compilers masquerading as C compilers
15394 incorrectly reject 9223372036854775807. */
15395 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15396 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15397 && LARGE_OFF_T % 2147483647 == 1)
15398 ? 1 : -1];
15399 int
15400 main ()
15401 {
15402
15403 ;
15404 return 0;
15405 }
15406 _ACEOF
15407 if ac_fn_c_try_compile "$LINENO"; then :
15408 ac_cv_sys_large_files=1; break
15409 fi
15410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15411 ac_cv_sys_large_files=unknown
15412 break
15413 done
15414 fi
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15416 $as_echo "$ac_cv_sys_large_files" >&6; }
15417 case $ac_cv_sys_large_files in #(
15418 no | unknown) ;;
15419 *)
15420 cat >>confdefs.h <<_ACEOF
15421 #define _LARGE_FILES $ac_cv_sys_large_files
15422 _ACEOF
15423 ;;
15424 esac
15425 rm -rf conftest*
15426 fi
15427
15428
15429 fi
15430
15431
15432
15433 ac_checking=
15434 . ${srcdir}/../bfd/development.sh
15435 test "$development" = true && ac_checking=yes
15436 # Check whether --enable-checking was given.
15437 if test "${enable_checking+set}" = set; then :
15438 enableval=$enable_checking; case "${enableval}" in
15439 no|none) ac_checking= ;;
15440 *) ac_checking=yes ;;
15441 esac
15442 fi
15443 if test x$ac_checking != x ; then
15444
15445 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
15446
15447 fi
15448
15449
15450 # Check whether --with-lib-path was given.
15451 if test "${with_lib_path+set}" = set; then :
15452 withval=$with_lib_path; LIB_PATH=$withval
15453 fi
15454
15455 # Check whether --enable-targets was given.
15456 if test "${enable_targets+set}" = set; then :
15457 enableval=$enable_targets; case "${enableval}" in
15458 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
15459 ;;
15460 no) enable_targets= ;;
15461 *) enable_targets=$enableval ;;
15462 esac
15463 fi
15464
15465 # Check whether --enable-64-bit-bfd was given.
15466 if test "${enable_64_bit_bfd+set}" = set; then :
15467 enableval=$enable_64_bit_bfd; case $enableval in #(
15468 yes|no) :
15469 ;; #(
15470 *) :
15471 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
15472 *) :
15473 ;;
15474 esac
15475 else
15476 enable_64_bit_bfd=no
15477 fi
15478
15479
15480 if test "x$enable_64_bit_bfd" = "xno"; then :
15481 # The cast to long int works around a bug in the HP C Compiler
15482 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15483 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15484 # This bug is HP SR number 8606223364.
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15486 $as_echo_n "checking size of void *... " >&6; }
15487 if ${ac_cv_sizeof_void_p+:} false; then :
15488 $as_echo_n "(cached) " >&6
15489 else
15490 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15491
15492 else
15493 if test "$ac_cv_type_void_p" = yes; then
15494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15496 as_fn_error 77 "cannot compute sizeof (void *)
15497 See \`config.log' for more details" "$LINENO" 5; }
15498 else
15499 ac_cv_sizeof_void_p=0
15500 fi
15501 fi
15502
15503 fi
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15505 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15506
15507
15508
15509 cat >>confdefs.h <<_ACEOF
15510 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15511 _ACEOF
15512
15513
15514 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
15515 enable_64_bit_bfd=yes
15516 fi
15517
15518 fi
15519
15520 if test "x$enable_64_bit_bfd" = "xyes"; then
15521 ENABLE_BFD_64_BIT_TRUE=
15522 ENABLE_BFD_64_BIT_FALSE='#'
15523 else
15524 ENABLE_BFD_64_BIT_TRUE='#'
15525 ENABLE_BFD_64_BIT_FALSE=
15526 fi
15527
15528
15529
15530
15531 # Check whether --with-sysroot was given.
15532 if test "${with_sysroot+set}" = set; then :
15533 withval=$with_sysroot;
15534 case ${with_sysroot} in
15535 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15536 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15537 esac
15538
15539 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15540 use_sysroot=yes
15541
15542 if test "x$prefix" = xNONE; then
15543 test_prefix=/usr/local
15544 else
15545 test_prefix=$prefix
15546 fi
15547 if test "x$exec_prefix" = xNONE; then
15548 test_exec_prefix=$test_prefix
15549 else
15550 test_exec_prefix=$exec_prefix
15551 fi
15552 case ${TARGET_SYSTEM_ROOT} in
15553 "${test_prefix}"|"${test_prefix}/"*|\
15554 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15555 '${prefix}'|'${prefix}/'*|\
15556 '${exec_prefix}'|'${exec_prefix}/'*)
15557 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15558 TARGET_SYSTEM_ROOT_DEFINE="$t"
15559 ;;
15560 esac
15561
15562 else
15563
15564 use_sysroot=no
15565 TARGET_SYSTEM_ROOT=
15566 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15567
15568 fi
15569
15570
15571
15572
15573
15574 # Check whether --enable-gold was given.
15575 if test "${enable_gold+set}" = set; then :
15576 enableval=$enable_gold; case "${enableval}" in
15577 default)
15578 install_as_default=no
15579 installed_linker=ld.bfd
15580 ;;
15581 yes|no)
15582 install_as_default=yes
15583 installed_linker=ld.bfd
15584 ;;
15585 *)
15586 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
15587 ;;
15588 esac
15589 else
15590 install_as_default=yes
15591 installed_linker=ld.bfd
15592 fi
15593
15594
15595
15596
15597 # Check whether --enable-got was given.
15598 if test "${enable_got+set}" = set; then :
15599 enableval=$enable_got; case "${enableval}" in
15600 target | single | negative | multigot) got_handling=$enableval ;;
15601 *) as_fn_error $? "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15602 esac
15603 else
15604 got_handling=target
15605 fi
15606
15607
15608 case "${got_handling}" in
15609 target)
15610
15611 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15612 ;;
15613 single)
15614
15615 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15616 ;;
15617 negative)
15618
15619 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15620 ;;
15621 multigot)
15622
15623 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15624 ;;
15625 *) as_fn_error $? "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15626 esac
15627
15628 # PR gas/19109
15629 # Decide the default method for compressing debug sections.
15630 ac_default_compressed_debug_sections=unset
15631 # Provide a configure time option to override our default.
15632 # Check whether --enable-compressed_debug_sections was given.
15633 if test "${enable_compressed_debug_sections+set}" = set; then :
15634 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
15635 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
15636 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
15637 esac
15638 fi
15639
15640 # Select default compression algorithm.
15641 ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_GABI_ZLIB
15642 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
15643 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
15644 enableval=$enable_default_compressed_debug_sections_algorithm; case "${enableval}" in
15645 zstd) ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_ZSTD ;;
15646 esac
15647 fi
15648
15649 # Decide setting DT_RUNPATH instead of DT_RPATH by default
15650 ac_default_new_dtags=unset
15651 # Provide a configure time option to override our default.
15652 # Check whether --enable-new_dtags was given.
15653 if test "${enable_new_dtags+set}" = set; then :
15654 enableval=$enable_new_dtags; case "${enableval}" in
15655 yes) ac_default_new_dtags=1 ;;
15656 no) ac_default_new_dtags=0 ;;
15657 esac
15658 fi
15659
15660 # Decide if -z relro should be enabled in ELF linker by default.
15661 ac_default_ld_z_relro=unset
15662 # Provide a configure time option to override our default.
15663 # Check whether --enable-relro was given.
15664 if test "${enable_relro+set}" = set; then :
15665 enableval=$enable_relro; case "${enableval}" in
15666 yes) ac_default_ld_z_relro=1 ;;
15667 no) ac_default_ld_z_relro=0 ;;
15668 esac
15669 fi
15670
15671 # Decide if DT_TEXTREL check should be enabled in ELF linker.
15672 ac_default_ld_textrel_check=unset
15673 # Check whether --enable-textrel-check was given.
15674 if test "${enable_textrel_check+set}" = set; then :
15675 enableval=$enable_textrel_check; case "${enableval}" in
15676 yes|no|warning|error) ac_default_ld_textrel_check=${enableval} ;;
15677 esac
15678 fi
15679
15680
15681 # Decide if -z separate-code should be enabled in ELF linker by default.
15682 ac_default_ld_z_separate_code=unset
15683 # Check whether --enable-separate-code was given.
15684 if test "${enable_separate_code+set}" = set; then :
15685 enableval=$enable_separate_code; case "${enableval}" in
15686 yes) ac_default_ld_z_separate_code=1 ;;
15687 no) ac_default_ld_z_separate_code=0 ;;
15688 esac
15689 fi
15690
15691
15692 # Decide if --rosegment should be enabled in the ELF linker by default.
15693 ac_default_ld_rosegment=unset
15694 # Check whether --enable-rosegment was given.
15695 if test "${enable_rosegment+set}" = set; then :
15696 enableval=$enable_rosegment; case "${enableval}" in
15697 yes) ac_default_ld_rosegment=1 ;;
15698 no) ac_default_ld_rosegment=0 ;;
15699 esac
15700 fi
15701
15702
15703 # Decide if -z mark-plt should be enabled in ELF x86-64 linker by default.
15704 ac_default_ld_z_mark_plt=unset
15705 # Check whether --enable-mark-plt was given.
15706 if test "${enable_mark_plt+set}" = set; then :
15707 enableval=$enable_mark_plt; case "${enableval}" in
15708 yes) ac_default_ld_z_mark_plt=1 ;;
15709 no) ac_default_ld_z_mark_plt=0 ;;
15710 esac
15711 fi
15712
15713
15714 # Decide if -z memory-seal should be enabled in ELF linker by default.
15715 ac_default_ld_z_memory_seal=unset
15716 # Check whether --enable-memory-seal was given.
15717 if test "${enable_memory_seal+set}" = set; then :
15718 enableval=$enable_memory_seal; case "${enableval}" in
15719 yes) ac_default_ld_z_memory_seal=1 ;;
15720 no) ac_default_ld_z_memory_seal=0 ;;
15721 esac
15722 fi
15723
15724
15725
15726 # By default warn when an executable stack is created due to object files
15727 # requesting such, not when the user specifies -z execstack.
15728 ac_default_ld_warn_execstack=2
15729 # Check whether --enable-warn-execstack was given.
15730 if test "${enable_warn_execstack+set}" = set; then :
15731 enableval=$enable_warn_execstack; case "${enableval}" in
15732 yes) ac_default_ld_warn_execstack=1 ;;
15733 no) ac_default_ld_warn_execstack=0 ;;
15734 esac
15735 fi
15736
15737
15738 ac_default_ld_error_execstack=0
15739 # Check whether --enable-error-execstack was given.
15740 if test "${enable_error_execstack+set}" = set; then :
15741 enableval=$enable_error_execstack; case "${enableval}" in
15742 yes) ac_default_ld_error_execstack=1 ;;
15743 no) ac_default_ld_error_execstack=0 ;;
15744 esac
15745 fi
15746
15747
15748 ac_default_ld_warn_rwx_segments=unset
15749 # Check whether --enable-warn-rwx-segments was given.
15750 if test "${enable_warn_rwx_segments+set}" = set; then :
15751 enableval=$enable_warn_rwx_segments; case "${enableval}" in
15752 yes) ac_default_ld_warn_rwx_segments=1 ;;
15753 no) ac_default_ld_warn_rwx_segments=0 ;;
15754 esac
15755 fi
15756
15757
15758 ac_default_ld_error_rwx_segments=0
15759 # Check whether --enable-error-rwx-segments was given.
15760 if test "${enable_error_rwx_segments+set}" = set; then :
15761 enableval=$enable_error_rwx_segments; case "${enableval}" in
15762 yes) ac_default_ld_error_rwx_segments=1 ;;
15763 no) ac_default_ld_error_rwx_segments=0 ;;
15764 esac
15765 fi
15766
15767
15768 ac_default_ld_default_execstack=unset
15769 # Check whether --enable-default-execstack was given.
15770 if test "${enable_default_execstack+set}" = set; then :
15771 enableval=$enable_default_execstack; case "${enableval}" in
15772 yes) ac_default_ld_default_execstack=1 ;;
15773 no) ac_default_ld_default_execstack=0 ;;
15774 esac
15775 fi
15776
15777
15778
15779 # Decide if --error-handling-script should be supported.
15780 ac_support_error_handling_script=unset
15781 # Check whether --enable-error-handling-script was given.
15782 if test "${enable_error_handling_script+set}" = set; then :
15783 enableval=$enable_error_handling_script; case "${enableval}" in
15784 yes) ac_support_error_handling_script=1 ;;
15785 no) ac_support_error_handling_script=0 ;;
15786 esac
15787 fi
15788
15789
15790 # Decide which "--hash-style" to use by default
15791 # Provide a configure time option to override our default.
15792 # Check whether --enable-default-hash-style was given.
15793 if test "${enable_default_hash_style+set}" = set; then :
15794 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
15795 sysv | gnu | both) ;;
15796 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
15797 esac
15798 else
15799 case "${target}" in
15800 # Enable gnu hash only on GNU targets, but not mips
15801 mips*-*-*) enable_default_hash_style=sysv ;;
15802 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
15803 *) enable_default_hash_style=sysv ;;
15804 esac
15805 fi
15806
15807
15808 case "${enable_default_hash_style}" in
15809 sysv | both) ac_default_emit_sysv_hash=1 ;;
15810 *) ac_default_emit_sysv_hash=0 ;;
15811 esac
15812
15813 case "${enable_default_hash_style}" in
15814 gnu | both) ac_default_emit_gnu_hash=1 ;;
15815 *) ac_default_emit_gnu_hash=0 ;;
15816 esac
15817
15818 # Check whether --enable-initfini-array was given.
15819 if test "${enable_initfini_array+set}" = set; then :
15820 enableval=$enable_initfini_array; case "${enableval}" in
15821 yes|no) ;;
15822 *) as_fn_error $? "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
15823 esac
15824 else
15825 enable_initfini_array=yes
15826 fi
15827
15828
15829 if test $enable_initfini_array = yes; then
15830
15831 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
15832
15833 fi
15834
15835 # Check whether --enable-libctf was given.
15836 if test "${enable_libctf+set}" = set; then :
15837 enableval=$enable_libctf;
15838 case "$enableval" in
15839 yes|no) ;;
15840 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
15841 esac
15842
15843 else
15844 enable_libctf=yes
15845 fi
15846
15847
15848 if test "${enable_libctf}" = yes; then
15849
15850 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
15851
15852 fi
15853 if test "${enable_libctf}" = yes; then
15854 ENABLE_LIBCTF_TRUE=
15855 ENABLE_LIBCTF_FALSE='#'
15856 else
15857 ENABLE_LIBCTF_TRUE='#'
15858 ENABLE_LIBCTF_FALSE=
15859 fi
15860
15861
15862
15863 # Used to validate --package-metadata= input. Disabled by default.
15864 # Check whether --enable-jansson was given.
15865 if test "${enable_jansson+set}" = set; then :
15866 enableval=$enable_jansson; enable_jansson=$enableval
15867 else
15868 enable_jansson="no"
15869 fi
15870
15871
15872 if test "x$enable_jansson" != "xno"; then :
15873
15874 pkg_failed=no
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
15876 $as_echo_n "checking for jansson... " >&6; }
15877
15878 if test -n "$JANSSON_CFLAGS"; then
15879 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
15880 elif test -n "$PKG_CONFIG"; then
15881 if test -n "$PKG_CONFIG" && \
15882 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15883 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15884 ac_status=$?
15885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15886 test $ac_status = 0; }; then
15887 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
15888 test "x$?" != "x0" && pkg_failed=yes
15889 else
15890 pkg_failed=yes
15891 fi
15892 else
15893 pkg_failed=untried
15894 fi
15895 if test -n "$JANSSON_LIBS"; then
15896 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
15897 elif test -n "$PKG_CONFIG"; then
15898 if test -n "$PKG_CONFIG" && \
15899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15900 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15901 ac_status=$?
15902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15903 test $ac_status = 0; }; then
15904 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
15905 test "x$?" != "x0" && pkg_failed=yes
15906 else
15907 pkg_failed=yes
15908 fi
15909 else
15910 pkg_failed=untried
15911 fi
15912
15913 if test $pkg_failed = no; then
15914 pkg_save_LDFLAGS="$LDFLAGS"
15915 LDFLAGS="$LDFLAGS $pkg_cv_JANSSON_LIBS"
15916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15917 /* end confdefs.h. */
15918
15919 int
15920 main ()
15921 {
15922
15923 ;
15924 return 0;
15925 }
15926 _ACEOF
15927 if ac_fn_c_try_link "$LINENO"; then :
15928
15929 else
15930 pkg_failed=yes
15931 fi
15932 rm -f core conftest.err conftest.$ac_objext \
15933 conftest$ac_exeext conftest.$ac_ext
15934 LDFLAGS=$pkg_save_LDFLAGS
15935 fi
15936
15937
15938
15939 if test $pkg_failed = yes; then
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15941 $as_echo "no" >&6; }
15942
15943 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15944 _pkg_short_errors_supported=yes
15945 else
15946 _pkg_short_errors_supported=no
15947 fi
15948 if test $_pkg_short_errors_supported = yes; then
15949 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
15950 else
15951 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
15952 fi
15953 # Put the nasty error message in config.log where it belongs
15954 echo "$JANSSON_PKG_ERRORS" >&5
15955
15956 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
15957 elif test $pkg_failed = untried; then
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15959 $as_echo "no" >&6; }
15960 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
15961 else
15962 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
15963 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15965 $as_echo "yes" >&6; }
15966
15967
15968 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
15969
15970
15971
15972
15973 fi
15974
15975 fi
15976
15977
15978 # Set the 'development' global.
15979 . $srcdir/../bfd/development.sh
15980
15981 # Set acp_cpp_for_build variable
15982 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
15983
15984 # Default set of GCC warnings to enable.
15985 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15986 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15987
15988 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h. */
15991 __GNUC__
15992 _ACEOF
15993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15994 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
15995
15996 else
15997 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
15998 fi
15999 rm -f conftest*
16000
16001
16002 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
16003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16004 /* end confdefs.h. */
16005 __GNUC__
16006 _ACEOF
16007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16008 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
16009
16010 else
16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h. */
16013 __clang__
16014 _ACEOF
16015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16016 $EGREP "^__clang__$" >/dev/null 2>&1; then :
16017 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
16018 fi
16019 rm -f conftest*
16020
16021 fi
16022 rm -f conftest*
16023
16024
16025 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
16026 WARN_WRITE_STRINGS=""
16027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16028 /* end confdefs.h. */
16029 __GNUC__
16030 _ACEOF
16031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16032 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
16033
16034 else
16035 WARN_WRITE_STRINGS="-Wwrite-strings"
16036 fi
16037 rm -f conftest*
16038
16039
16040 # Verify CC_FOR_BUILD to be compatible with warning flags
16041
16042 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
16043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16044 /* end confdefs.h. */
16045 __GNUC__
16046 _ACEOF
16047 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16048 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
16049
16050 else
16051 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
16052 fi
16053 rm -f conftest*
16054
16055
16056 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
16057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16058 /* end confdefs.h. */
16059 __GNUC__
16060 _ACEOF
16061 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16062 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
16063
16064 else
16065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16066 /* end confdefs.h. */
16067 __clang__
16068 _ACEOF
16069 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16070 $EGREP "^__clang__$" >/dev/null 2>&1; then :
16071 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
16072 fi
16073 rm -f conftest*
16074
16075 fi
16076 rm -f conftest*
16077
16078
16079 # Check whether --enable-werror was given.
16080 if test "${enable_werror+set}" = set; then :
16081 enableval=$enable_werror; case "${enableval}" in
16082 yes | y) ERROR_ON_WARNING="yes" ;;
16083 no | n) ERROR_ON_WARNING="no" ;;
16084 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16085 esac
16086 fi
16087
16088
16089 # Disable -Wformat by default when using gcc on mingw
16090 case "${host}" in
16091 *-*-mingw32*)
16092 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16093 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
16094 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
16095 fi
16096 ;;
16097 *) ;;
16098 esac
16099
16100 # Enable -Werror by default when using gcc. Turn it off for releases.
16101 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
16102 ERROR_ON_WARNING=yes
16103 fi
16104
16105 NO_WERROR=
16106 if test "${ERROR_ON_WARNING}" = yes ; then
16107 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
16108 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
16109 NO_WERROR="-Wno-error"
16110 fi
16111
16112 if test "${GCC}" = yes ; then
16113 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
16114 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
16115 fi
16116
16117 # Check whether --enable-build-warnings was given.
16118 if test "${enable_build_warnings+set}" = set; then :
16119 enableval=$enable_build_warnings; case "${enableval}" in
16120 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
16121 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
16122 no) if test "${GCC}" = yes ; then
16123 WARN_CFLAGS="-w"
16124 WARN_CFLAGS_FOR_BUILD="-w"
16125 fi;;
16126 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16127 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
16128 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
16129 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16130 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
16131 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
16132 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
16133 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16134 esac
16135 fi
16136
16137
16138 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
16139 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
16140 fi
16141
16142
16143
16144
16145
16146
16147
16148
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
16150 $as_echo_n "checking for LC_MESSAGES... " >&6; }
16151 if ${am_cv_val_LC_MESSAGES+:} false; then :
16152 $as_echo_n "(cached) " >&6
16153 else
16154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16155 /* end confdefs.h. */
16156 #include <locale.h>
16157 int
16158 main ()
16159 {
16160 return LC_MESSAGES
16161 ;
16162 return 0;
16163 }
16164 _ACEOF
16165 if ac_fn_c_try_link "$LINENO"; then :
16166 am_cv_val_LC_MESSAGES=yes
16167 else
16168 am_cv_val_LC_MESSAGES=no
16169 fi
16170 rm -f core conftest.err conftest.$ac_objext \
16171 conftest$ac_exeext conftest.$ac_ext
16172 fi
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
16174 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
16175 if test $am_cv_val_LC_MESSAGES = yes; then
16176
16177 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
16178
16179 fi
16180
16181
16182 ac_config_headers="$ac_config_headers config.h:config.in"
16183
16184
16185 # PR 14072
16186
16187
16188 if test -z "$target" ; then
16189 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
16190 fi
16191 if test -z "$host" ; then
16192 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
16193 fi
16194
16195 # host-specific stuff:
16196
16197 ALL_LINGUAS="bg da de es fi fr ga id it ja pt_BR ru sr sv tr uk vi zh_CN zh_TW"
16198
16199 MKINSTALLDIRS=
16200 if test -n "$ac_aux_dir"; then
16201 case "$ac_aux_dir" in
16202 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16203 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16204 esac
16205 fi
16206 if test -z "$MKINSTALLDIRS"; then
16207 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16208 fi
16209
16210
16211
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16213 $as_echo_n "checking whether NLS is requested... " >&6; }
16214 # Check whether --enable-nls was given.
16215 if test "${enable_nls+set}" = set; then :
16216 enableval=$enable_nls; USE_NLS=$enableval
16217 else
16218 USE_NLS=yes
16219 fi
16220
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16222 $as_echo "$USE_NLS" >&6; }
16223
16224
16225
16226
16227
16228
16229 # Prepare PATH_SEPARATOR.
16230 # The user is always right.
16231 if test "${PATH_SEPARATOR+set}" != set; then
16232 echo "#! /bin/sh" >conf$$.sh
16233 echo "exit 0" >>conf$$.sh
16234 chmod +x conf$$.sh
16235 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16236 PATH_SEPARATOR=';'
16237 else
16238 PATH_SEPARATOR=:
16239 fi
16240 rm -f conf$$.sh
16241 fi
16242
16243 # Find out how to test for executable files. Don't use a zero-byte file,
16244 # as systems may use methods other than mode bits to determine executability.
16245 cat >conf$$.file <<_ASEOF
16246 #! /bin/sh
16247 exit 0
16248 _ASEOF
16249 chmod +x conf$$.file
16250 if test -x conf$$.file >/dev/null 2>&1; then
16251 ac_executable_p="test -x"
16252 else
16253 ac_executable_p="test -f"
16254 fi
16255 rm -f conf$$.file
16256
16257 # Extract the first word of "msgfmt", so it can be a program name with args.
16258 set dummy msgfmt; ac_word=$2
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16260 $as_echo_n "checking for $ac_word... " >&6; }
16261 if ${ac_cv_path_MSGFMT+:} false; then :
16262 $as_echo_n "(cached) " >&6
16263 else
16264 case "$MSGFMT" in
16265 [\\/]* | ?:[\\/]*)
16266 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16267 ;;
16268 *)
16269 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16270 for ac_dir in $PATH; do
16271 IFS="$ac_save_IFS"
16272 test -z "$ac_dir" && ac_dir=.
16273 for ac_exec_ext in '' $ac_executable_extensions; do
16274 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16275 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
16276 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16277 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16278 break 2
16279 fi
16280 fi
16281 done
16282 done
16283 IFS="$ac_save_IFS"
16284 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16285 ;;
16286 esac
16287 fi
16288 MSGFMT="$ac_cv_path_MSGFMT"
16289 if test "$MSGFMT" != ":"; then
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16291 $as_echo "$MSGFMT" >&6; }
16292 else
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16294 $as_echo "no" >&6; }
16295 fi
16296
16297 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16298 set dummy gmsgfmt; ac_word=$2
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16300 $as_echo_n "checking for $ac_word... " >&6; }
16301 if ${ac_cv_path_GMSGFMT+:} false; then :
16302 $as_echo_n "(cached) " >&6
16303 else
16304 case $GMSGFMT in
16305 [\\/]* | ?:[\\/]*)
16306 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16307 ;;
16308 *)
16309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16310 for as_dir in $PATH
16311 do
16312 IFS=$as_save_IFS
16313 test -z "$as_dir" && as_dir=.
16314 for ac_exec_ext in '' $ac_executable_extensions; do
16315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16316 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16318 break 2
16319 fi
16320 done
16321 done
16322 IFS=$as_save_IFS
16323
16324 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16325 ;;
16326 esac
16327 fi
16328 GMSGFMT=$ac_cv_path_GMSGFMT
16329 if test -n "$GMSGFMT"; then
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16331 $as_echo "$GMSGFMT" >&6; }
16332 else
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16334 $as_echo "no" >&6; }
16335 fi
16336
16337
16338
16339
16340 # Prepare PATH_SEPARATOR.
16341 # The user is always right.
16342 if test "${PATH_SEPARATOR+set}" != set; then
16343 echo "#! /bin/sh" >conf$$.sh
16344 echo "exit 0" >>conf$$.sh
16345 chmod +x conf$$.sh
16346 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16347 PATH_SEPARATOR=';'
16348 else
16349 PATH_SEPARATOR=:
16350 fi
16351 rm -f conf$$.sh
16352 fi
16353
16354 # Find out how to test for executable files. Don't use a zero-byte file,
16355 # as systems may use methods other than mode bits to determine executability.
16356 cat >conf$$.file <<_ASEOF
16357 #! /bin/sh
16358 exit 0
16359 _ASEOF
16360 chmod +x conf$$.file
16361 if test -x conf$$.file >/dev/null 2>&1; then
16362 ac_executable_p="test -x"
16363 else
16364 ac_executable_p="test -f"
16365 fi
16366 rm -f conf$$.file
16367
16368 # Extract the first word of "xgettext", so it can be a program name with args.
16369 set dummy xgettext; ac_word=$2
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16371 $as_echo_n "checking for $ac_word... " >&6; }
16372 if ${ac_cv_path_XGETTEXT+:} false; then :
16373 $as_echo_n "(cached) " >&6
16374 else
16375 case "$XGETTEXT" in
16376 [\\/]* | ?:[\\/]*)
16377 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16378 ;;
16379 *)
16380 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16381 for ac_dir in $PATH; do
16382 IFS="$ac_save_IFS"
16383 test -z "$ac_dir" && ac_dir=.
16384 for ac_exec_ext in '' $ac_executable_extensions; do
16385 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16386 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16387 (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
16388 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16389 break 2
16390 fi
16391 fi
16392 done
16393 done
16394 IFS="$ac_save_IFS"
16395 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16396 ;;
16397 esac
16398 fi
16399 XGETTEXT="$ac_cv_path_XGETTEXT"
16400 if test "$XGETTEXT" != ":"; then
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16402 $as_echo "$XGETTEXT" >&6; }
16403 else
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16405 $as_echo "no" >&6; }
16406 fi
16407
16408 rm -f messages.po
16409
16410
16411 # Prepare PATH_SEPARATOR.
16412 # The user is always right.
16413 if test "${PATH_SEPARATOR+set}" != set; then
16414 echo "#! /bin/sh" >conf$$.sh
16415 echo "exit 0" >>conf$$.sh
16416 chmod +x conf$$.sh
16417 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16418 PATH_SEPARATOR=';'
16419 else
16420 PATH_SEPARATOR=:
16421 fi
16422 rm -f conf$$.sh
16423 fi
16424
16425 # Find out how to test for executable files. Don't use a zero-byte file,
16426 # as systems may use methods other than mode bits to determine executability.
16427 cat >conf$$.file <<_ASEOF
16428 #! /bin/sh
16429 exit 0
16430 _ASEOF
16431 chmod +x conf$$.file
16432 if test -x conf$$.file >/dev/null 2>&1; then
16433 ac_executable_p="test -x"
16434 else
16435 ac_executable_p="test -f"
16436 fi
16437 rm -f conf$$.file
16438
16439 # Extract the first word of "msgmerge", so it can be a program name with args.
16440 set dummy msgmerge; ac_word=$2
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16442 $as_echo_n "checking for $ac_word... " >&6; }
16443 if ${ac_cv_path_MSGMERGE+:} false; then :
16444 $as_echo_n "(cached) " >&6
16445 else
16446 case "$MSGMERGE" in
16447 [\\/]* | ?:[\\/]*)
16448 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16449 ;;
16450 *)
16451 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16452 for ac_dir in $PATH; do
16453 IFS="$ac_save_IFS"
16454 test -z "$ac_dir" && ac_dir=.
16455 for ac_exec_ext in '' $ac_executable_extensions; do
16456 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16457 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16458 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16459 break 2
16460 fi
16461 fi
16462 done
16463 done
16464 IFS="$ac_save_IFS"
16465 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16466 ;;
16467 esac
16468 fi
16469 MSGMERGE="$ac_cv_path_MSGMERGE"
16470 if test "$MSGMERGE" != ":"; then
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16472 $as_echo "$MSGMERGE" >&6; }
16473 else
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16475 $as_echo "no" >&6; }
16476 fi
16477
16478
16479 if test "$GMSGFMT" != ":"; then
16480 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16481 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16482 : ;
16483 else
16484 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16486 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16487 GMSGFMT=":"
16488 fi
16489 fi
16490
16491 if test "$XGETTEXT" != ":"; then
16492 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16493 (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
16494 : ;
16495 else
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16497 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16498 XGETTEXT=":"
16499 fi
16500 rm -f messages.po
16501 fi
16502
16503 ac_config_commands="$ac_config_commands default-1"
16504
16505
16506
16507 if test "X$prefix" = "XNONE"; then
16508 acl_final_prefix="$ac_default_prefix"
16509 else
16510 acl_final_prefix="$prefix"
16511 fi
16512 if test "X$exec_prefix" = "XNONE"; then
16513 acl_final_exec_prefix='${prefix}'
16514 else
16515 acl_final_exec_prefix="$exec_prefix"
16516 fi
16517 acl_save_prefix="$prefix"
16518 prefix="$acl_final_prefix"
16519 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16520 prefix="$acl_save_prefix"
16521
16522
16523 # Check whether --with-gnu-ld was given.
16524 if test "${with_gnu_ld+set}" = set; then :
16525 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16526 else
16527 with_gnu_ld=no
16528 fi
16529
16530 # Prepare PATH_SEPARATOR.
16531 # The user is always right.
16532 if test "${PATH_SEPARATOR+set}" != set; then
16533 echo "#! /bin/sh" >conf$$.sh
16534 echo "exit 0" >>conf$$.sh
16535 chmod +x conf$$.sh
16536 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16537 PATH_SEPARATOR=';'
16538 else
16539 PATH_SEPARATOR=:
16540 fi
16541 rm -f conf$$.sh
16542 fi
16543 ac_prog=ld
16544 if test "$GCC" = yes; then
16545 # Check if gcc -print-prog-name=ld gives a path.
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16547 $as_echo_n "checking for ld used by GCC... " >&6; }
16548 case $host in
16549 *-*-mingw*)
16550 # gcc leaves a trailing carriage return which upsets mingw
16551 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16552 *)
16553 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16554 esac
16555 case $ac_prog in
16556 # Accept absolute paths.
16557 [\\/]* | [A-Za-z]:[\\/]*)
16558 re_direlt='/[^/][^/]*/\.\./'
16559 # Canonicalize the path of ld
16560 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16561 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16562 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16563 done
16564 test -z "$LD" && LD="$ac_prog"
16565 ;;
16566 "")
16567 # If it fails, then pretend we aren't using GCC.
16568 ac_prog=ld
16569 ;;
16570 *)
16571 # If it is relative, then search for the first ld in PATH.
16572 with_gnu_ld=unknown
16573 ;;
16574 esac
16575 elif test "$with_gnu_ld" = yes; then
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16577 $as_echo_n "checking for GNU ld... " >&6; }
16578 else
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16580 $as_echo_n "checking for non-GNU ld... " >&6; }
16581 fi
16582 if ${acl_cv_path_LD+:} false; then :
16583 $as_echo_n "(cached) " >&6
16584 else
16585 if test -z "$LD"; then
16586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16587 for ac_dir in $PATH; do
16588 test -z "$ac_dir" && ac_dir=.
16589 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16590 acl_cv_path_LD="$ac_dir/$ac_prog"
16591 # Check to see if the program is GNU ld. I'd rather use --version,
16592 # but apparently some GNU ld's only accept -v.
16593 # Break only if it was the GNU/non-GNU ld that we prefer.
16594 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
16595 test "$with_gnu_ld" != no && break
16596 else
16597 test "$with_gnu_ld" != yes && break
16598 fi
16599 fi
16600 done
16601 IFS="$ac_save_ifs"
16602 else
16603 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16604 fi
16605 fi
16606
16607 LD="$acl_cv_path_LD"
16608 if test -n "$LD"; then
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16610 $as_echo "$LD" >&6; }
16611 else
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16613 $as_echo "no" >&6; }
16614 fi
16615 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16617 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16618 if ${acl_cv_prog_gnu_ld+:} false; then :
16619 $as_echo_n "(cached) " >&6
16620 else
16621 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16622 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
16623 acl_cv_prog_gnu_ld=yes
16624 else
16625 acl_cv_prog_gnu_ld=no
16626 fi
16627 fi
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16629 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16630 with_gnu_ld=$acl_cv_prog_gnu_ld
16631
16632
16633
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16635 $as_echo_n "checking for shared library run path origin... " >&6; }
16636 if ${acl_cv_rpath+:} false; then :
16637 $as_echo_n "(cached) " >&6
16638 else
16639
16640 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16641 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16642 . ./conftest.sh
16643 rm -f ./conftest.sh
16644 acl_cv_rpath=done
16645
16646 fi
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16648 $as_echo "$acl_cv_rpath" >&6; }
16649 wl="$acl_cv_wl"
16650 libext="$acl_cv_libext"
16651 shlibext="$acl_cv_shlibext"
16652 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16653 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16654 hardcode_direct="$acl_cv_hardcode_direct"
16655 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16656 # Check whether --enable-rpath was given.
16657 if test "${enable_rpath+set}" = set; then :
16658 enableval=$enable_rpath; :
16659 else
16660 enable_rpath=yes
16661 fi
16662
16663
16664
16665
16666
16667
16668
16669
16670 use_additional=yes
16671
16672 acl_save_prefix="$prefix"
16673 prefix="$acl_final_prefix"
16674 acl_save_exec_prefix="$exec_prefix"
16675 exec_prefix="$acl_final_exec_prefix"
16676
16677 eval additional_includedir=\"$includedir\"
16678 eval additional_libdir=\"$libdir\"
16679
16680 exec_prefix="$acl_save_exec_prefix"
16681 prefix="$acl_save_prefix"
16682
16683
16684 # Check whether --with-libiconv-prefix was given.
16685 if test "${with_libiconv_prefix+set}" = set; then :
16686 withval=$with_libiconv_prefix;
16687 if test "X$withval" = "Xno"; then
16688 use_additional=no
16689 else
16690 if test "X$withval" = "X"; then
16691
16692 acl_save_prefix="$prefix"
16693 prefix="$acl_final_prefix"
16694 acl_save_exec_prefix="$exec_prefix"
16695 exec_prefix="$acl_final_exec_prefix"
16696
16697 eval additional_includedir=\"$includedir\"
16698 eval additional_libdir=\"$libdir\"
16699
16700 exec_prefix="$acl_save_exec_prefix"
16701 prefix="$acl_save_prefix"
16702
16703 else
16704 additional_includedir="$withval/include"
16705 additional_libdir="$withval/lib"
16706 fi
16707 fi
16708
16709 fi
16710
16711
16712 # Check whether --with-libiconv-type was given.
16713 if test "${with_libiconv_type+set}" = set; then :
16714 withval=$with_libiconv_type; with_libiconv_type=$withval
16715 else
16716 with_libiconv_type=auto
16717 fi
16718
16719 lib_type=`eval echo \$with_libiconv_type`
16720
16721 LIBICONV=
16722 LTLIBICONV=
16723 INCICONV=
16724 rpathdirs=
16725 ltrpathdirs=
16726 names_already_handled=
16727 names_next_round='iconv '
16728 while test -n "$names_next_round"; do
16729 names_this_round="$names_next_round"
16730 names_next_round=
16731 for name in $names_this_round; do
16732 already_handled=
16733 for n in $names_already_handled; do
16734 if test "$n" = "$name"; then
16735 already_handled=yes
16736 break
16737 fi
16738 done
16739 if test -z "$already_handled"; then
16740 names_already_handled="$names_already_handled $name"
16741 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16742 eval value=\"\$HAVE_LIB$uppername\"
16743 if test -n "$value"; then
16744 if test "$value" = yes; then
16745 eval value=\"\$LIB$uppername\"
16746 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16747 eval value=\"\$LTLIB$uppername\"
16748 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16749 else
16750 :
16751 fi
16752 else
16753 found_dir=
16754 found_la=
16755 found_so=
16756 found_a=
16757 if test $use_additional = yes; then
16758 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
16759 found_dir="$additional_libdir"
16760 found_so="$additional_libdir/lib$name.$shlibext"
16761 if test -f "$additional_libdir/lib$name.la"; then
16762 found_la="$additional_libdir/lib$name.la"
16763 fi
16764 elif test x$lib_type != xshared; then
16765 if test -f "$additional_libdir/lib$name.$libext"; then
16766 found_dir="$additional_libdir"
16767 found_a="$additional_libdir/lib$name.$libext"
16768 if test -f "$additional_libdir/lib$name.la"; then
16769 found_la="$additional_libdir/lib$name.la"
16770 fi
16771 fi
16772 fi
16773 fi
16774 if test "X$found_dir" = "X"; then
16775 for x in $LDFLAGS $LTLIBICONV; do
16776
16777 acl_save_prefix="$prefix"
16778 prefix="$acl_final_prefix"
16779 acl_save_exec_prefix="$exec_prefix"
16780 exec_prefix="$acl_final_exec_prefix"
16781 eval x=\"$x\"
16782 exec_prefix="$acl_save_exec_prefix"
16783 prefix="$acl_save_prefix"
16784
16785 case "$x" in
16786 -L*)
16787 dir=`echo "X$x" | sed -e 's/^X-L//'`
16788 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
16789 found_dir="$dir"
16790 found_so="$dir/lib$name.$shlibext"
16791 if test -f "$dir/lib$name.la"; then
16792 found_la="$dir/lib$name.la"
16793 fi
16794 elif test x$lib_type != xshared; then
16795 if test -f "$dir/lib$name.$libext"; then
16796 found_dir="$dir"
16797 found_a="$dir/lib$name.$libext"
16798 if test -f "$dir/lib$name.la"; then
16799 found_la="$dir/lib$name.la"
16800 fi
16801 fi
16802 fi
16803 ;;
16804 esac
16805 if test "X$found_dir" != "X"; then
16806 break
16807 fi
16808 done
16809 fi
16810 if test "X$found_dir" != "X"; then
16811 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16812 if test "X$found_so" != "X"; then
16813 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16814 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16815 else
16816 haveit=
16817 for x in $ltrpathdirs; do
16818 if test "X$x" = "X$found_dir"; then
16819 haveit=yes
16820 break
16821 fi
16822 done
16823 if test -z "$haveit"; then
16824 ltrpathdirs="$ltrpathdirs $found_dir"
16825 fi
16826 if test "$hardcode_direct" = yes; then
16827 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16828 else
16829 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16830 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16831 haveit=
16832 for x in $rpathdirs; do
16833 if test "X$x" = "X$found_dir"; then
16834 haveit=yes
16835 break
16836 fi
16837 done
16838 if test -z "$haveit"; then
16839 rpathdirs="$rpathdirs $found_dir"
16840 fi
16841 else
16842 haveit=
16843 for x in $LDFLAGS $LIBICONV; do
16844
16845 acl_save_prefix="$prefix"
16846 prefix="$acl_final_prefix"
16847 acl_save_exec_prefix="$exec_prefix"
16848 exec_prefix="$acl_final_exec_prefix"
16849 eval x=\"$x\"
16850 exec_prefix="$acl_save_exec_prefix"
16851 prefix="$acl_save_prefix"
16852
16853 if test "X$x" = "X-L$found_dir"; then
16854 haveit=yes
16855 break
16856 fi
16857 done
16858 if test -z "$haveit"; then
16859 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16860 fi
16861 if test "$hardcode_minus_L" != no; then
16862 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16863 else
16864 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16865 fi
16866 fi
16867 fi
16868 fi
16869 else
16870 if test "X$found_a" != "X"; then
16871 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16872 else
16873 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16874 fi
16875 fi
16876 additional_includedir=
16877 case "$found_dir" in
16878 */lib | */lib/)
16879 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16880 additional_includedir="$basedir/include"
16881 ;;
16882 esac
16883 if test "X$additional_includedir" != "X"; then
16884 if test "X$additional_includedir" != "X/usr/include"; then
16885 haveit=
16886 if test "X$additional_includedir" = "X/usr/local/include"; then
16887 if test -n "$GCC"; then
16888 case $host_os in
16889 linux*) haveit=yes;;
16890 esac
16891 fi
16892 fi
16893 if test -z "$haveit"; then
16894 for x in $CPPFLAGS $INCICONV; do
16895
16896 acl_save_prefix="$prefix"
16897 prefix="$acl_final_prefix"
16898 acl_save_exec_prefix="$exec_prefix"
16899 exec_prefix="$acl_final_exec_prefix"
16900 eval x=\"$x\"
16901 exec_prefix="$acl_save_exec_prefix"
16902 prefix="$acl_save_prefix"
16903
16904 if test "X$x" = "X-I$additional_includedir"; then
16905 haveit=yes
16906 break
16907 fi
16908 done
16909 if test -z "$haveit"; then
16910 if test -d "$additional_includedir"; then
16911 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16912 fi
16913 fi
16914 fi
16915 fi
16916 fi
16917 if test -n "$found_la"; then
16918 save_libdir="$libdir"
16919 case "$found_la" in
16920 */* | *\\*) . "$found_la" ;;
16921 *) . "./$found_la" ;;
16922 esac
16923 libdir="$save_libdir"
16924 for dep in $dependency_libs; do
16925 case "$dep" in
16926 -L*)
16927 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16928 if test "X$additional_libdir" != "X/usr/lib"; then
16929 haveit=
16930 if test "X$additional_libdir" = "X/usr/local/lib"; then
16931 if test -n "$GCC"; then
16932 case $host_os in
16933 linux*) haveit=yes;;
16934 esac
16935 fi
16936 fi
16937 if test -z "$haveit"; then
16938 haveit=
16939 for x in $LDFLAGS $LIBICONV; do
16940
16941 acl_save_prefix="$prefix"
16942 prefix="$acl_final_prefix"
16943 acl_save_exec_prefix="$exec_prefix"
16944 exec_prefix="$acl_final_exec_prefix"
16945 eval x=\"$x\"
16946 exec_prefix="$acl_save_exec_prefix"
16947 prefix="$acl_save_prefix"
16948
16949 if test "X$x" = "X-L$additional_libdir"; then
16950 haveit=yes
16951 break
16952 fi
16953 done
16954 if test -z "$haveit"; then
16955 if test -d "$additional_libdir"; then
16956 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16957 fi
16958 fi
16959 haveit=
16960 for x in $LDFLAGS $LTLIBICONV; do
16961
16962 acl_save_prefix="$prefix"
16963 prefix="$acl_final_prefix"
16964 acl_save_exec_prefix="$exec_prefix"
16965 exec_prefix="$acl_final_exec_prefix"
16966 eval x=\"$x\"
16967 exec_prefix="$acl_save_exec_prefix"
16968 prefix="$acl_save_prefix"
16969
16970 if test "X$x" = "X-L$additional_libdir"; then
16971 haveit=yes
16972 break
16973 fi
16974 done
16975 if test -z "$haveit"; then
16976 if test -d "$additional_libdir"; then
16977 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16978 fi
16979 fi
16980 fi
16981 fi
16982 ;;
16983 -R*)
16984 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16985 if test "$enable_rpath" != no; then
16986 haveit=
16987 for x in $rpathdirs; do
16988 if test "X$x" = "X$dir"; then
16989 haveit=yes
16990 break
16991 fi
16992 done
16993 if test -z "$haveit"; then
16994 rpathdirs="$rpathdirs $dir"
16995 fi
16996 haveit=
16997 for x in $ltrpathdirs; do
16998 if test "X$x" = "X$dir"; then
16999 haveit=yes
17000 break
17001 fi
17002 done
17003 if test -z "$haveit"; then
17004 ltrpathdirs="$ltrpathdirs $dir"
17005 fi
17006 fi
17007 ;;
17008 -l*)
17009 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17010 ;;
17011 *.la)
17012 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17013 ;;
17014 *)
17015 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17016 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17017 ;;
17018 esac
17019 done
17020 fi
17021 else
17022 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
17023 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17024 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17025 else
17026 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
17027 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
17028 fi
17029 fi
17030 fi
17031 fi
17032 done
17033 done
17034 if test "X$rpathdirs" != "X"; then
17035 if test -n "$hardcode_libdir_separator"; then
17036 alldirs=
17037 for found_dir in $rpathdirs; do
17038 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17039 done
17040 acl_save_libdir="$libdir"
17041 libdir="$alldirs"
17042 eval flag=\"$hardcode_libdir_flag_spec\"
17043 libdir="$acl_save_libdir"
17044 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17045 else
17046 for found_dir in $rpathdirs; do
17047 acl_save_libdir="$libdir"
17048 libdir="$found_dir"
17049 eval flag=\"$hardcode_libdir_flag_spec\"
17050 libdir="$acl_save_libdir"
17051 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17052 done
17053 fi
17054 fi
17055 if test "X$ltrpathdirs" != "X"; then
17056 for found_dir in $ltrpathdirs; do
17057 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17058 done
17059 fi
17060
17061
17062
17063
17064
17065 if test -f ../gettext/uninstalled-config.sh; then
17066 relative_builddir='$(top_builddir)/../gettext'
17067 . ../gettext/uninstalled-config.sh
17068 else
17069 # The sister gettext directory doesn't exist and won't collect information on
17070 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17095 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17096 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
17097 $as_echo_n "(cached) " >&6
17098 else
17099 gt_save_LIBS="$LIBS"
17100 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17102 /* end confdefs.h. */
17103 #include <CoreFoundation/CFPreferences.h>
17104 int
17105 main ()
17106 {
17107 CFPreferencesCopyAppValue(NULL, NULL)
17108 ;
17109 return 0;
17110 }
17111 _ACEOF
17112 if ac_fn_c_try_link "$LINENO"; then :
17113 gt_cv_func_CFPreferencesCopyAppValue=yes
17114 else
17115 gt_cv_func_CFPreferencesCopyAppValue=no
17116 fi
17117 rm -f core conftest.err conftest.$ac_objext \
17118 conftest$ac_exeext conftest.$ac_ext
17119 LIBS="$gt_save_LIBS"
17120 fi
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17122 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17123 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17124
17125 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17126
17127 fi
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
17129 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
17130 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
17131 $as_echo_n "(cached) " >&6
17132 else
17133 gt_save_LIBS="$LIBS"
17134 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17136 /* end confdefs.h. */
17137 #include <CoreFoundation/CFLocale.h>
17138 int
17139 main ()
17140 {
17141 CFLocaleCopyPreferredLanguages();
17142 ;
17143 return 0;
17144 }
17145 _ACEOF
17146 if ac_fn_c_try_link "$LINENO"; then :
17147 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
17148 else
17149 gt_cv_func_CFLocaleCopyPreferredLanguages=no
17150 fi
17151 rm -f core conftest.err conftest.$ac_objext \
17152 conftest$ac_exeext conftest.$ac_ext
17153 LIBS="$gt_save_LIBS"
17154 fi
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
17156 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
17157 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17158
17159 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
17160
17161 fi
17162 INTL_MACOSX_LIBS=
17163 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
17164 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17165 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
17166 fi
17167
17168
17169
17170
17171
17172
17173 LIBINTL=
17174 LTLIBINTL=
17175 POSUB=
17176
17177 case " $gt_needs " in
17178 *" need-formatstring-macros "*) gt_api_version=3 ;;
17179 *" need-ngettext "*) gt_api_version=2 ;;
17180 *) gt_api_version=1 ;;
17181 esac
17182 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
17183 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
17184
17185 if test "$USE_NLS" = "yes"; then
17186 gt_use_preinstalled_gnugettext=no
17187
17188
17189 if test $gt_api_version -ge 3; then
17190 gt_revision_test_code='
17191 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17192 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
17193 #endif
17194 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
17195 '
17196 else
17197 gt_revision_test_code=
17198 fi
17199 if test $gt_api_version -ge 2; then
17200 gt_expression_test_code=' + * ngettext ("", "", 0)'
17201 else
17202 gt_expression_test_code=
17203 fi
17204
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17206 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17207 if eval \${$gt_func_gnugettext_libc+:} false; then :
17208 $as_echo_n "(cached) " >&6
17209 else
17210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17211 /* end confdefs.h. */
17212
17213 #include <libintl.h>
17214 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17215 extern int _nl_msg_cat_cntr;
17216 extern int *_nl_domain_bindings;
17217 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
17218 #else
17219 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17220 #endif
17221 $gt_revision_test_code
17222
17223 int
17224 main ()
17225 {
17226
17227 bindtextdomain ("", "");
17228 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17229
17230 ;
17231 return 0;
17232 }
17233 _ACEOF
17234 if ac_fn_c_try_link "$LINENO"; then :
17235 eval "$gt_func_gnugettext_libc=yes"
17236 else
17237 eval "$gt_func_gnugettext_libc=no"
17238 fi
17239 rm -f core conftest.err conftest.$ac_objext \
17240 conftest$ac_exeext conftest.$ac_ext
17241 fi
17242 eval ac_res=\$$gt_func_gnugettext_libc
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17244 $as_echo "$ac_res" >&6; }
17245
17246 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
17247
17248
17249
17250
17251
17252 am_save_CPPFLAGS="$CPPFLAGS"
17253
17254 for element in $INCICONV; do
17255 haveit=
17256 for x in $CPPFLAGS; do
17257
17258 acl_save_prefix="$prefix"
17259 prefix="$acl_final_prefix"
17260 acl_save_exec_prefix="$exec_prefix"
17261 exec_prefix="$acl_final_exec_prefix"
17262 eval x=\"$x\"
17263 exec_prefix="$acl_save_exec_prefix"
17264 prefix="$acl_save_prefix"
17265
17266 if test "X$x" = "X$element"; then
17267 haveit=yes
17268 break
17269 fi
17270 done
17271 if test -z "$haveit"; then
17272 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17273 fi
17274 done
17275
17276
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17278 $as_echo_n "checking for iconv... " >&6; }
17279 if ${am_cv_func_iconv+:} false; then :
17280 $as_echo_n "(cached) " >&6
17281 else
17282
17283 am_cv_func_iconv="no, consider installing GNU libiconv"
17284 am_cv_lib_iconv=no
17285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17286 /* end confdefs.h. */
17287
17288 #include <stdlib.h>
17289 #include <iconv.h>
17290
17291 int
17292 main ()
17293 {
17294 iconv_t cd = iconv_open("","");
17295 iconv(cd,NULL,NULL,NULL,NULL);
17296 iconv_close(cd);
17297 ;
17298 return 0;
17299 }
17300 _ACEOF
17301 if ac_fn_c_try_link "$LINENO"; then :
17302 am_cv_func_iconv=yes
17303 fi
17304 rm -f core conftest.err conftest.$ac_objext \
17305 conftest$ac_exeext conftest.$ac_ext
17306 if test "$am_cv_func_iconv" != yes; then
17307 am_save_LIBS="$LIBS"
17308 LIBS="$LIBS $LIBICONV"
17309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17310 /* end confdefs.h. */
17311
17312 #include <stdlib.h>
17313 #include <iconv.h>
17314
17315 int
17316 main ()
17317 {
17318 iconv_t cd = iconv_open("","");
17319 iconv(cd,NULL,NULL,NULL,NULL);
17320 iconv_close(cd);
17321 ;
17322 return 0;
17323 }
17324 _ACEOF
17325 if ac_fn_c_try_link "$LINENO"; then :
17326 am_cv_lib_iconv=yes
17327 am_cv_func_iconv=yes
17328 fi
17329 rm -f core conftest.err conftest.$ac_objext \
17330 conftest$ac_exeext conftest.$ac_ext
17331 LIBS="$am_save_LIBS"
17332 fi
17333
17334 fi
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17336 $as_echo "$am_cv_func_iconv" >&6; }
17337 if test "$am_cv_func_iconv" = yes; then
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17339 $as_echo_n "checking for working iconv... " >&6; }
17340 if ${am_cv_func_iconv_works+:} false; then :
17341 $as_echo_n "(cached) " >&6
17342 else
17343
17344 am_save_LIBS="$LIBS"
17345 if test $am_cv_lib_iconv = yes; then
17346 LIBS="$LIBS $LIBICONV"
17347 fi
17348 am_cv_func_iconv_works=no
17349 for ac_iconv_const in '' 'const'; do
17350 if test "$cross_compiling" = yes; then :
17351 case "$host_os" in
17352 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17353 *) am_cv_func_iconv_works="guessing yes" ;;
17354 esac
17355 else
17356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17357 /* end confdefs.h. */
17358
17359 #include <iconv.h>
17360 #include <string.h>
17361
17362 #ifndef ICONV_CONST
17363 # define ICONV_CONST $ac_iconv_const
17364 #endif
17365
17366 int
17367 main ()
17368 {
17369 int result = 0;
17370 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
17371 successful returns. This is even documented in
17372 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
17373 {
17374 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17375 if (cd_utf8_to_88591 != (iconv_t)(-1))
17376 {
17377 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
17378 char buf[10];
17379 ICONV_CONST char *inptr = input;
17380 size_t inbytesleft = strlen (input);
17381 char *outptr = buf;
17382 size_t outbytesleft = sizeof (buf);
17383 size_t res = iconv (cd_utf8_to_88591,
17384 &inptr, &inbytesleft,
17385 &outptr, &outbytesleft);
17386 if (res == 0)
17387 result |= 1;
17388 iconv_close (cd_utf8_to_88591);
17389 }
17390 }
17391 /* Test against Solaris 10 bug: Failures are not distinguishable from
17392 successful returns. */
17393 {
17394 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17395 if (cd_ascii_to_88591 != (iconv_t)(-1))
17396 {
17397 static ICONV_CONST char input[] = "\263";
17398 char buf[10];
17399 ICONV_CONST char *inptr = input;
17400 size_t inbytesleft = strlen (input);
17401 char *outptr = buf;
17402 size_t outbytesleft = sizeof (buf);
17403 size_t res = iconv (cd_ascii_to_88591,
17404 &inptr, &inbytesleft,
17405 &outptr, &outbytesleft);
17406 if (res == 0)
17407 result |= 2;
17408 iconv_close (cd_ascii_to_88591);
17409 }
17410 }
17411 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
17412 {
17413 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
17414 if (cd_88591_to_utf8 != (iconv_t)(-1))
17415 {
17416 static ICONV_CONST char input[] = "\304";
17417 static char buf[2] = { (char)0xDE, (char)0xAD };
17418 ICONV_CONST char *inptr = input;
17419 size_t inbytesleft = 1;
17420 char *outptr = buf;
17421 size_t outbytesleft = 1;
17422 size_t res = iconv (cd_88591_to_utf8,
17423 &inptr, &inbytesleft,
17424 &outptr, &outbytesleft);
17425 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
17426 result |= 4;
17427 iconv_close (cd_88591_to_utf8);
17428 }
17429 }
17430 #if 0 /* This bug could be worked around by the caller. */
17431 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
17432 {
17433 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17434 if (cd_88591_to_utf8 != (iconv_t)(-1))
17435 {
17436 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17437 char buf[50];
17438 ICONV_CONST char *inptr = input;
17439 size_t inbytesleft = strlen (input);
17440 char *outptr = buf;
17441 size_t outbytesleft = sizeof (buf);
17442 size_t res = iconv (cd_88591_to_utf8,
17443 &inptr, &inbytesleft,
17444 &outptr, &outbytesleft);
17445 if ((int)res > 0)
17446 result |= 8;
17447 iconv_close (cd_88591_to_utf8);
17448 }
17449 }
17450 #endif
17451 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17452 provided. */
17453 {
17454 /* Try standardized names. */
17455 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
17456 /* Try IRIX, OSF/1 names. */
17457 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
17458 /* Try AIX names. */
17459 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
17460 /* Try HP-UX names. */
17461 iconv_t cd4 = iconv_open ("utf8", "eucJP");
17462 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
17463 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
17464 result |= 16;
17465 if (cd1 != (iconv_t)(-1))
17466 iconv_close (cd1);
17467 if (cd2 != (iconv_t)(-1))
17468 iconv_close (cd2);
17469 if (cd3 != (iconv_t)(-1))
17470 iconv_close (cd3);
17471 if (cd4 != (iconv_t)(-1))
17472 iconv_close (cd4);
17473 }
17474 return result;
17475
17476 ;
17477 return 0;
17478 }
17479 _ACEOF
17480 if ac_fn_c_try_run "$LINENO"; then :
17481 am_cv_func_iconv_works=yes
17482 fi
17483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17484 conftest.$ac_objext conftest.beam conftest.$ac_ext
17485 fi
17486
17487 test "$am_cv_func_iconv_works" = no || break
17488 done
17489 LIBS="$am_save_LIBS"
17490
17491 fi
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17493 $as_echo "$am_cv_func_iconv_works" >&6; }
17494 case "$am_cv_func_iconv_works" in
17495 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17496 *) am_func_iconv=yes ;;
17497 esac
17498 else
17499 am_func_iconv=no am_cv_lib_iconv=no
17500 fi
17501 if test "$am_func_iconv" = yes; then
17502
17503 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17504
17505 fi
17506 if test "$am_cv_lib_iconv" = yes; then
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17508 $as_echo_n "checking how to link with libiconv... " >&6; }
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17510 $as_echo "$LIBICONV" >&6; }
17511 else
17512 CPPFLAGS="$am_save_CPPFLAGS"
17513 LIBICONV=
17514 LTLIBICONV=
17515 fi
17516
17517
17518
17519
17520
17521
17522 use_additional=yes
17523
17524 acl_save_prefix="$prefix"
17525 prefix="$acl_final_prefix"
17526 acl_save_exec_prefix="$exec_prefix"
17527 exec_prefix="$acl_final_exec_prefix"
17528
17529 eval additional_includedir=\"$includedir\"
17530 eval additional_libdir=\"$libdir\"
17531
17532 exec_prefix="$acl_save_exec_prefix"
17533 prefix="$acl_save_prefix"
17534
17535
17536 # Check whether --with-libintl-prefix was given.
17537 if test "${with_libintl_prefix+set}" = set; then :
17538 withval=$with_libintl_prefix;
17539 if test "X$withval" = "Xno"; then
17540 use_additional=no
17541 else
17542 if test "X$withval" = "X"; then
17543
17544 acl_save_prefix="$prefix"
17545 prefix="$acl_final_prefix"
17546 acl_save_exec_prefix="$exec_prefix"
17547 exec_prefix="$acl_final_exec_prefix"
17548
17549 eval additional_includedir=\"$includedir\"
17550 eval additional_libdir=\"$libdir\"
17551
17552 exec_prefix="$acl_save_exec_prefix"
17553 prefix="$acl_save_prefix"
17554
17555 else
17556 additional_includedir="$withval/include"
17557 additional_libdir="$withval/lib"
17558 fi
17559 fi
17560
17561 fi
17562
17563
17564 # Check whether --with-libintl-type was given.
17565 if test "${with_libintl_type+set}" = set; then :
17566 withval=$with_libintl_type; with_libintl_type=$withval
17567 else
17568 with_libintl_type=auto
17569 fi
17570
17571 lib_type=`eval echo \$with_libintl_type`
17572
17573 LIBINTL=
17574 LTLIBINTL=
17575 INCINTL=
17576 rpathdirs=
17577 ltrpathdirs=
17578 names_already_handled=
17579 names_next_round='intl '
17580 while test -n "$names_next_round"; do
17581 names_this_round="$names_next_round"
17582 names_next_round=
17583 for name in $names_this_round; do
17584 already_handled=
17585 for n in $names_already_handled; do
17586 if test "$n" = "$name"; then
17587 already_handled=yes
17588 break
17589 fi
17590 done
17591 if test -z "$already_handled"; then
17592 names_already_handled="$names_already_handled $name"
17593 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17594 eval value=\"\$HAVE_LIB$uppername\"
17595 if test -n "$value"; then
17596 if test "$value" = yes; then
17597 eval value=\"\$LIB$uppername\"
17598 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17599 eval value=\"\$LTLIB$uppername\"
17600 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17601 else
17602 :
17603 fi
17604 else
17605 found_dir=
17606 found_la=
17607 found_so=
17608 found_a=
17609 if test $use_additional = yes; then
17610 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
17611 found_dir="$additional_libdir"
17612 found_so="$additional_libdir/lib$name.$shlibext"
17613 if test -f "$additional_libdir/lib$name.la"; then
17614 found_la="$additional_libdir/lib$name.la"
17615 fi
17616 elif test x$lib_type != xshared; then
17617 if test -f "$additional_libdir/lib$name.$libext"; then
17618 found_dir="$additional_libdir"
17619 found_a="$additional_libdir/lib$name.$libext"
17620 if test -f "$additional_libdir/lib$name.la"; then
17621 found_la="$additional_libdir/lib$name.la"
17622 fi
17623 fi
17624 fi
17625 fi
17626 if test "X$found_dir" = "X"; then
17627 for x in $LDFLAGS $LTLIBINTL; do
17628
17629 acl_save_prefix="$prefix"
17630 prefix="$acl_final_prefix"
17631 acl_save_exec_prefix="$exec_prefix"
17632 exec_prefix="$acl_final_exec_prefix"
17633 eval x=\"$x\"
17634 exec_prefix="$acl_save_exec_prefix"
17635 prefix="$acl_save_prefix"
17636
17637 case "$x" in
17638 -L*)
17639 dir=`echo "X$x" | sed -e 's/^X-L//'`
17640 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
17641 found_dir="$dir"
17642 found_so="$dir/lib$name.$shlibext"
17643 if test -f "$dir/lib$name.la"; then
17644 found_la="$dir/lib$name.la"
17645 fi
17646 elif test x$lib_type != xshared; then
17647 if test -f "$dir/lib$name.$libext"; then
17648 found_dir="$dir"
17649 found_a="$dir/lib$name.$libext"
17650 if test -f "$dir/lib$name.la"; then
17651 found_la="$dir/lib$name.la"
17652 fi
17653 fi
17654 fi
17655 ;;
17656 esac
17657 if test "X$found_dir" != "X"; then
17658 break
17659 fi
17660 done
17661 fi
17662 if test "X$found_dir" != "X"; then
17663 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17664 if test "X$found_so" != "X"; then
17665 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17666 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17667 else
17668 haveit=
17669 for x in $ltrpathdirs; do
17670 if test "X$x" = "X$found_dir"; then
17671 haveit=yes
17672 break
17673 fi
17674 done
17675 if test -z "$haveit"; then
17676 ltrpathdirs="$ltrpathdirs $found_dir"
17677 fi
17678 if test "$hardcode_direct" = yes; then
17679 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17680 else
17681 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17682 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17683 haveit=
17684 for x in $rpathdirs; do
17685 if test "X$x" = "X$found_dir"; then
17686 haveit=yes
17687 break
17688 fi
17689 done
17690 if test -z "$haveit"; then
17691 rpathdirs="$rpathdirs $found_dir"
17692 fi
17693 else
17694 haveit=
17695 for x in $LDFLAGS $LIBINTL; do
17696
17697 acl_save_prefix="$prefix"
17698 prefix="$acl_final_prefix"
17699 acl_save_exec_prefix="$exec_prefix"
17700 exec_prefix="$acl_final_exec_prefix"
17701 eval x=\"$x\"
17702 exec_prefix="$acl_save_exec_prefix"
17703 prefix="$acl_save_prefix"
17704
17705 if test "X$x" = "X-L$found_dir"; then
17706 haveit=yes
17707 break
17708 fi
17709 done
17710 if test -z "$haveit"; then
17711 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17712 fi
17713 if test "$hardcode_minus_L" != no; then
17714 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17715 else
17716 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17717 fi
17718 fi
17719 fi
17720 fi
17721 else
17722 if test "X$found_a" != "X"; then
17723 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17724 else
17725 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17726 fi
17727 fi
17728 additional_includedir=
17729 case "$found_dir" in
17730 */lib | */lib/)
17731 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17732 additional_includedir="$basedir/include"
17733 ;;
17734 esac
17735 if test "X$additional_includedir" != "X"; then
17736 if test "X$additional_includedir" != "X/usr/include"; then
17737 haveit=
17738 if test "X$additional_includedir" = "X/usr/local/include"; then
17739 if test -n "$GCC"; then
17740 case $host_os in
17741 linux*) haveit=yes;;
17742 esac
17743 fi
17744 fi
17745 if test -z "$haveit"; then
17746 for x in $CPPFLAGS $INCINTL; do
17747
17748 acl_save_prefix="$prefix"
17749 prefix="$acl_final_prefix"
17750 acl_save_exec_prefix="$exec_prefix"
17751 exec_prefix="$acl_final_exec_prefix"
17752 eval x=\"$x\"
17753 exec_prefix="$acl_save_exec_prefix"
17754 prefix="$acl_save_prefix"
17755
17756 if test "X$x" = "X-I$additional_includedir"; then
17757 haveit=yes
17758 break
17759 fi
17760 done
17761 if test -z "$haveit"; then
17762 if test -d "$additional_includedir"; then
17763 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17764 fi
17765 fi
17766 fi
17767 fi
17768 fi
17769 if test -n "$found_la"; then
17770 save_libdir="$libdir"
17771 case "$found_la" in
17772 */* | *\\*) . "$found_la" ;;
17773 *) . "./$found_la" ;;
17774 esac
17775 libdir="$save_libdir"
17776 for dep in $dependency_libs; do
17777 case "$dep" in
17778 -L*)
17779 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17780 if test "X$additional_libdir" != "X/usr/lib"; then
17781 haveit=
17782 if test "X$additional_libdir" = "X/usr/local/lib"; then
17783 if test -n "$GCC"; then
17784 case $host_os in
17785 linux*) haveit=yes;;
17786 esac
17787 fi
17788 fi
17789 if test -z "$haveit"; then
17790 haveit=
17791 for x in $LDFLAGS $LIBINTL; do
17792
17793 acl_save_prefix="$prefix"
17794 prefix="$acl_final_prefix"
17795 acl_save_exec_prefix="$exec_prefix"
17796 exec_prefix="$acl_final_exec_prefix"
17797 eval x=\"$x\"
17798 exec_prefix="$acl_save_exec_prefix"
17799 prefix="$acl_save_prefix"
17800
17801 if test "X$x" = "X-L$additional_libdir"; then
17802 haveit=yes
17803 break
17804 fi
17805 done
17806 if test -z "$haveit"; then
17807 if test -d "$additional_libdir"; then
17808 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17809 fi
17810 fi
17811 haveit=
17812 for x in $LDFLAGS $LTLIBINTL; do
17813
17814 acl_save_prefix="$prefix"
17815 prefix="$acl_final_prefix"
17816 acl_save_exec_prefix="$exec_prefix"
17817 exec_prefix="$acl_final_exec_prefix"
17818 eval x=\"$x\"
17819 exec_prefix="$acl_save_exec_prefix"
17820 prefix="$acl_save_prefix"
17821
17822 if test "X$x" = "X-L$additional_libdir"; then
17823 haveit=yes
17824 break
17825 fi
17826 done
17827 if test -z "$haveit"; then
17828 if test -d "$additional_libdir"; then
17829 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17830 fi
17831 fi
17832 fi
17833 fi
17834 ;;
17835 -R*)
17836 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17837 if test "$enable_rpath" != no; then
17838 haveit=
17839 for x in $rpathdirs; do
17840 if test "X$x" = "X$dir"; then
17841 haveit=yes
17842 break
17843 fi
17844 done
17845 if test -z "$haveit"; then
17846 rpathdirs="$rpathdirs $dir"
17847 fi
17848 haveit=
17849 for x in $ltrpathdirs; do
17850 if test "X$x" = "X$dir"; then
17851 haveit=yes
17852 break
17853 fi
17854 done
17855 if test -z "$haveit"; then
17856 ltrpathdirs="$ltrpathdirs $dir"
17857 fi
17858 fi
17859 ;;
17860 -l*)
17861 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17862 ;;
17863 *.la)
17864 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17865 ;;
17866 *)
17867 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17868 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17869 ;;
17870 esac
17871 done
17872 fi
17873 else
17874 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
17875 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17876 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17877 else
17878 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
17879 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
17880 fi
17881 fi
17882 fi
17883 fi
17884 done
17885 done
17886 if test "X$rpathdirs" != "X"; then
17887 if test -n "$hardcode_libdir_separator"; then
17888 alldirs=
17889 for found_dir in $rpathdirs; do
17890 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17891 done
17892 acl_save_libdir="$libdir"
17893 libdir="$alldirs"
17894 eval flag=\"$hardcode_libdir_flag_spec\"
17895 libdir="$acl_save_libdir"
17896 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17897 else
17898 for found_dir in $rpathdirs; do
17899 acl_save_libdir="$libdir"
17900 libdir="$found_dir"
17901 eval flag=\"$hardcode_libdir_flag_spec\"
17902 libdir="$acl_save_libdir"
17903 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17904 done
17905 fi
17906 fi
17907 if test "X$ltrpathdirs" != "X"; then
17908 for found_dir in $ltrpathdirs; do
17909 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17910 done
17911 fi
17912
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17914 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17915 if eval \${$gt_func_gnugettext_libintl+:} false; then :
17916 $as_echo_n "(cached) " >&6
17917 else
17918 gt_save_CPPFLAGS="$CPPFLAGS"
17919 CPPFLAGS="$CPPFLAGS $INCINTL"
17920 gt_save_LIBS="$LIBS"
17921 LIBS="$LIBS $LIBINTL"
17922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17923 /* end confdefs.h. */
17924
17925 #include <libintl.h>
17926 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17927 extern int _nl_msg_cat_cntr;
17928 extern
17929 #ifdef __cplusplus
17930 "C"
17931 #endif
17932 const char *_nl_expand_alias (const char *);
17933 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17934 #else
17935 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17936 #endif
17937 $gt_revision_test_code
17938
17939 int
17940 main ()
17941 {
17942
17943 bindtextdomain ("", "");
17944 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17945
17946 ;
17947 return 0;
17948 }
17949 _ACEOF
17950 if ac_fn_c_try_link "$LINENO"; then :
17951 eval "$gt_func_gnugettext_libintl=yes"
17952 else
17953 eval "$gt_func_gnugettext_libintl=no"
17954 fi
17955 rm -f core conftest.err conftest.$ac_objext \
17956 conftest$ac_exeext conftest.$ac_ext
17957 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
17958 LIBS="$LIBS $LIBICONV"
17959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17960 /* end confdefs.h. */
17961
17962 #include <libintl.h>
17963 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17964 extern int _nl_msg_cat_cntr;
17965 extern
17966 #ifdef __cplusplus
17967 "C"
17968 #endif
17969 const char *_nl_expand_alias (const char *);
17970 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17971 #else
17972 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17973 #endif
17974 $gt_revision_test_code
17975
17976 int
17977 main ()
17978 {
17979
17980 bindtextdomain ("", "");
17981 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17982
17983 ;
17984 return 0;
17985 }
17986 _ACEOF
17987 if ac_fn_c_try_link "$LINENO"; then :
17988 LIBINTL="$LIBINTL $LIBICONV"
17989 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17990 eval "$gt_func_gnugettext_libintl=yes"
17991
17992 fi
17993 rm -f core conftest.err conftest.$ac_objext \
17994 conftest$ac_exeext conftest.$ac_ext
17995 fi
17996 CPPFLAGS="$gt_save_CPPFLAGS"
17997 LIBS="$gt_save_LIBS"
17998 fi
17999 eval ac_res=\$$gt_func_gnugettext_libintl
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18001 $as_echo "$ac_res" >&6; }
18002 fi
18003
18004 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
18005 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
18006 && test "$PACKAGE" != gettext-runtime \
18007 && test "$PACKAGE" != gettext-tools; }; then
18008 gt_use_preinstalled_gnugettext=yes
18009 else
18010 LIBINTL=
18011 LTLIBINTL=
18012 INCINTL=
18013 fi
18014
18015
18016
18017 if test -n "$INTL_MACOSX_LIBS"; then
18018 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18019 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18020 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18021 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18022 fi
18023 fi
18024
18025 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18026 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18027
18028 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18029
18030 else
18031 USE_NLS=no
18032 fi
18033 fi
18034
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18036 $as_echo_n "checking whether to use NLS... " >&6; }
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18038 $as_echo "$USE_NLS" >&6; }
18039 if test "$USE_NLS" = "yes"; then
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18041 $as_echo_n "checking where the gettext function comes from... " >&6; }
18042 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18043 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18044 gt_source="external libintl"
18045 else
18046 gt_source="libc"
18047 fi
18048 else
18049 gt_source="included intl directory"
18050 fi
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18052 $as_echo "$gt_source" >&6; }
18053 fi
18054
18055 if test "$USE_NLS" = "yes"; then
18056
18057 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18058 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18060 $as_echo_n "checking how to link with libintl... " >&6; }
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18062 $as_echo "$LIBINTL" >&6; }
18063
18064 for element in $INCINTL; do
18065 haveit=
18066 for x in $CPPFLAGS; do
18067
18068 acl_save_prefix="$prefix"
18069 prefix="$acl_final_prefix"
18070 acl_save_exec_prefix="$exec_prefix"
18071 exec_prefix="$acl_final_exec_prefix"
18072 eval x=\"$x\"
18073 exec_prefix="$acl_save_exec_prefix"
18074 prefix="$acl_save_prefix"
18075
18076 if test "X$x" = "X$element"; then
18077 haveit=yes
18078 break
18079 fi
18080 done
18081 if test -z "$haveit"; then
18082 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18083 fi
18084 done
18085
18086 fi
18087
18088
18089 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18090
18091
18092 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18093
18094 fi
18095
18096 POSUB=po
18097 fi
18098
18099
18100
18101 INTLLIBS="$LIBINTL"
18102
18103
18104
18105
18106
18107
18108 fi
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18121 $as_echo_n "checking whether NLS is requested... " >&6; }
18122 if test x"$USE_NLS" != xyes; then
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18124 $as_echo "no" >&6; }
18125 else
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18127 $as_echo "yes" >&6; }
18128
18129 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18130
18131
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
18133 $as_echo_n "checking for catalogs to be installed... " >&6; }
18134 # Look for .po and .gmo files in the source directory.
18135 CATALOGS=
18136 XLINGUAS=
18137 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
18138 # If there aren't any .gmo files the shell will give us the
18139 # literal string "../path/to/srcdir/po/*.gmo" which has to be
18140 # weeded out.
18141 case "$cat" in *\**)
18142 continue;;
18143 esac
18144 # The quadruple backslash is collapsed to a double backslash
18145 # by the backticks, then collapsed again by the double quotes,
18146 # leaving us with one backslash in the sed expression (right
18147 # before the dot that mustn't act as a wildcard).
18148 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
18149 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
18150 # The user is allowed to set LINGUAS to a list of languages to
18151 # install catalogs for. If it's empty that means "all of them."
18152 if test "x$LINGUAS" = x; then
18153 CATALOGS="$CATALOGS $cat"
18154 XLINGUAS="$XLINGUAS $lang"
18155 else
18156 case "$LINGUAS" in *$lang*)
18157 CATALOGS="$CATALOGS $cat"
18158 XLINGUAS="$XLINGUAS $lang"
18159 ;;
18160 esac
18161 fi
18162 done
18163 LINGUAS="$XLINGUAS"
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
18165 $as_echo "$LINGUAS" >&6; }
18166
18167
18168 DATADIRNAME=share
18169
18170 INSTOBJEXT=.mo
18171
18172 GENCAT=gencat
18173
18174 CATOBJEXT=.gmo
18175
18176 fi
18177
18178
18179
18180
18181 # Prepare PATH_SEPARATOR.
18182 # The user is always right.
18183 if test "${PATH_SEPARATOR+set}" != set; then
18184 echo "#! /bin/sh" >conf$$.sh
18185 echo "exit 0" >>conf$$.sh
18186 chmod +x conf$$.sh
18187 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18188 PATH_SEPARATOR=';'
18189 else
18190 PATH_SEPARATOR=:
18191 fi
18192 rm -f conf$$.sh
18193 fi
18194
18195 # Find out how to test for executable files. Don't use a zero-byte file,
18196 # as systems may use methods other than mode bits to determine executability.
18197 cat >conf$$.file <<_ASEOF
18198 #! /bin/sh
18199 exit 0
18200 _ASEOF
18201 chmod +x conf$$.file
18202 if test -x conf$$.file >/dev/null 2>&1; then
18203 ac_executable_p="test -x"
18204 else
18205 ac_executable_p="test -f"
18206 fi
18207 rm -f conf$$.file
18208
18209 # Extract the first word of "msgfmt", so it can be a program name with args.
18210 set dummy msgfmt; ac_word=$2
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18212 $as_echo_n "checking for $ac_word... " >&6; }
18213 if ${ac_cv_path_MSGFMT+:} false; then :
18214 $as_echo_n "(cached) " >&6
18215 else
18216 case "$MSGFMT" in
18217 [\\/]* | ?:[\\/]*)
18218 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18219 ;;
18220 *)
18221 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18222 for ac_dir in $PATH; do
18223 IFS="$ac_save_IFS"
18224 test -z "$ac_dir" && ac_dir=.
18225 for ac_exec_ext in '' $ac_executable_extensions; do
18226 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18227 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
18228 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18229 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
18230 break 2
18231 fi
18232 fi
18233 done
18234 done
18235 IFS="$ac_save_IFS"
18236 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
18237 ;;
18238 esac
18239 fi
18240 MSGFMT="$ac_cv_path_MSGFMT"
18241 if test "$MSGFMT" != ":"; then
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18243 $as_echo "$MSGFMT" >&6; }
18244 else
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18246 $as_echo "no" >&6; }
18247 fi
18248
18249 # Extract the first word of "gmsgfmt", so it can be a program name with args.
18250 set dummy gmsgfmt; ac_word=$2
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18252 $as_echo_n "checking for $ac_word... " >&6; }
18253 if ${ac_cv_path_GMSGFMT+:} false; then :
18254 $as_echo_n "(cached) " >&6
18255 else
18256 case $GMSGFMT in
18257 [\\/]* | ?:[\\/]*)
18258 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18259 ;;
18260 *)
18261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18262 for as_dir in $PATH
18263 do
18264 IFS=$as_save_IFS
18265 test -z "$as_dir" && as_dir=.
18266 for ac_exec_ext in '' $ac_executable_extensions; do
18267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18268 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
18269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18270 break 2
18271 fi
18272 done
18273 done
18274 IFS=$as_save_IFS
18275
18276 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18277 ;;
18278 esac
18279 fi
18280 GMSGFMT=$ac_cv_path_GMSGFMT
18281 if test -n "$GMSGFMT"; then
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
18283 $as_echo "$GMSGFMT" >&6; }
18284 else
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18286 $as_echo "no" >&6; }
18287 fi
18288
18289
18290
18291
18292 # Prepare PATH_SEPARATOR.
18293 # The user is always right.
18294 if test "${PATH_SEPARATOR+set}" != set; then
18295 echo "#! /bin/sh" >conf$$.sh
18296 echo "exit 0" >>conf$$.sh
18297 chmod +x conf$$.sh
18298 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18299 PATH_SEPARATOR=';'
18300 else
18301 PATH_SEPARATOR=:
18302 fi
18303 rm -f conf$$.sh
18304 fi
18305
18306 # Find out how to test for executable files. Don't use a zero-byte file,
18307 # as systems may use methods other than mode bits to determine executability.
18308 cat >conf$$.file <<_ASEOF
18309 #! /bin/sh
18310 exit 0
18311 _ASEOF
18312 chmod +x conf$$.file
18313 if test -x conf$$.file >/dev/null 2>&1; then
18314 ac_executable_p="test -x"
18315 else
18316 ac_executable_p="test -f"
18317 fi
18318 rm -f conf$$.file
18319
18320 # Extract the first word of "xgettext", so it can be a program name with args.
18321 set dummy xgettext; ac_word=$2
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18323 $as_echo_n "checking for $ac_word... " >&6; }
18324 if ${ac_cv_path_XGETTEXT+:} false; then :
18325 $as_echo_n "(cached) " >&6
18326 else
18327 case "$XGETTEXT" in
18328 [\\/]* | ?:[\\/]*)
18329 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18330 ;;
18331 *)
18332 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18333 for ac_dir in $PATH; do
18334 IFS="$ac_save_IFS"
18335 test -z "$ac_dir" && ac_dir=.
18336 for ac_exec_ext in '' $ac_executable_extensions; do
18337 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18338 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
18339 (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
18340 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
18341 break 2
18342 fi
18343 fi
18344 done
18345 done
18346 IFS="$ac_save_IFS"
18347 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
18348 ;;
18349 esac
18350 fi
18351 XGETTEXT="$ac_cv_path_XGETTEXT"
18352 if test "$XGETTEXT" != ":"; then
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18354 $as_echo "$XGETTEXT" >&6; }
18355 else
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18357 $as_echo "no" >&6; }
18358 fi
18359
18360 rm -f messages.po
18361
18362
18363 # Prepare PATH_SEPARATOR.
18364 # The user is always right.
18365 if test "${PATH_SEPARATOR+set}" != set; then
18366 echo "#! /bin/sh" >conf$$.sh
18367 echo "exit 0" >>conf$$.sh
18368 chmod +x conf$$.sh
18369 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18370 PATH_SEPARATOR=';'
18371 else
18372 PATH_SEPARATOR=:
18373 fi
18374 rm -f conf$$.sh
18375 fi
18376
18377 # Find out how to test for executable files. Don't use a zero-byte file,
18378 # as systems may use methods other than mode bits to determine executability.
18379 cat >conf$$.file <<_ASEOF
18380 #! /bin/sh
18381 exit 0
18382 _ASEOF
18383 chmod +x conf$$.file
18384 if test -x conf$$.file >/dev/null 2>&1; then
18385 ac_executable_p="test -x"
18386 else
18387 ac_executable_p="test -f"
18388 fi
18389 rm -f conf$$.file
18390
18391 # Extract the first word of "msgmerge", so it can be a program name with args.
18392 set dummy msgmerge; ac_word=$2
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18394 $as_echo_n "checking for $ac_word... " >&6; }
18395 if ${ac_cv_path_MSGMERGE+:} false; then :
18396 $as_echo_n "(cached) " >&6
18397 else
18398 case "$MSGMERGE" in
18399 [\\/]* | ?:[\\/]*)
18400 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18401 ;;
18402 *)
18403 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18404 for ac_dir in $PATH; do
18405 IFS="$ac_save_IFS"
18406 test -z "$ac_dir" && ac_dir=.
18407 for ac_exec_ext in '' $ac_executable_extensions; do
18408 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18409 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
18410 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
18411 break 2
18412 fi
18413 fi
18414 done
18415 done
18416 IFS="$ac_save_IFS"
18417 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
18418 ;;
18419 esac
18420 fi
18421 MSGMERGE="$ac_cv_path_MSGMERGE"
18422 if test "$MSGMERGE" != ":"; then
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18424 $as_echo "$MSGMERGE" >&6; }
18425 else
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18427 $as_echo "no" >&6; }
18428 fi
18429
18430
18431 if test "$GMSGFMT" != ":"; then
18432 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
18433 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18434 : ;
18435 else
18436 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
18438 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
18439 GMSGFMT=":"
18440 fi
18441 fi
18442
18443 if test "$XGETTEXT" != ":"; then
18444 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
18445 (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
18446 : ;
18447 else
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
18449 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
18450 XGETTEXT=":"
18451 fi
18452 rm -f messages.po
18453 fi
18454
18455 ac_config_commands="$ac_config_commands default-2"
18456
18457
18458
18459
18460
18461 for ac_prog in 'bison -y' byacc
18462 do
18463 # Extract the first word of "$ac_prog", so it can be a program name with args.
18464 set dummy $ac_prog; ac_word=$2
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18466 $as_echo_n "checking for $ac_word... " >&6; }
18467 if ${ac_cv_prog_YACC+:} false; then :
18468 $as_echo_n "(cached) " >&6
18469 else
18470 if test -n "$YACC"; then
18471 ac_cv_prog_YACC="$YACC" # Let the user override the test.
18472 else
18473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18474 for as_dir in $PATH
18475 do
18476 IFS=$as_save_IFS
18477 test -z "$as_dir" && as_dir=.
18478 for ac_exec_ext in '' $ac_executable_extensions; do
18479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18480 ac_cv_prog_YACC="$ac_prog"
18481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18482 break 2
18483 fi
18484 done
18485 done
18486 IFS=$as_save_IFS
18487
18488 fi
18489 fi
18490 YACC=$ac_cv_prog_YACC
18491 if test -n "$YACC"; then
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
18493 $as_echo "$YACC" >&6; }
18494 else
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18496 $as_echo "no" >&6; }
18497 fi
18498
18499
18500 test -n "$YACC" && break
18501 done
18502 test -n "$YACC" || YACC="yacc"
18503
18504 for ac_prog in flex lex
18505 do
18506 # Extract the first word of "$ac_prog", so it can be a program name with args.
18507 set dummy $ac_prog; ac_word=$2
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18509 $as_echo_n "checking for $ac_word... " >&6; }
18510 if ${ac_cv_prog_LEX+:} false; then :
18511 $as_echo_n "(cached) " >&6
18512 else
18513 if test -n "$LEX"; then
18514 ac_cv_prog_LEX="$LEX" # Let the user override the test.
18515 else
18516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18517 for as_dir in $PATH
18518 do
18519 IFS=$as_save_IFS
18520 test -z "$as_dir" && as_dir=.
18521 for ac_exec_ext in '' $ac_executable_extensions; do
18522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18523 ac_cv_prog_LEX="$ac_prog"
18524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18525 break 2
18526 fi
18527 done
18528 done
18529 IFS=$as_save_IFS
18530
18531 fi
18532 fi
18533 LEX=$ac_cv_prog_LEX
18534 if test -n "$LEX"; then
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
18536 $as_echo "$LEX" >&6; }
18537 else
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18539 $as_echo "no" >&6; }
18540 fi
18541
18542
18543 test -n "$LEX" && break
18544 done
18545 test -n "$LEX" || LEX=":"
18546
18547 case "$LEX" in
18548 :|*"missing "*) ;;
18549 *) cat >conftest.l <<_ACEOF
18550 %%
18551 a { ECHO; }
18552 b { REJECT; }
18553 c { yymore (); }
18554 d { yyless (1); }
18555 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
18556 yyless ((input () != 0)); }
18557 f { unput (yytext[0]); }
18558 . { BEGIN INITIAL; }
18559 %%
18560 #ifdef YYTEXT_POINTER
18561 extern char *yytext;
18562 #endif
18563 int
18564 main (void)
18565 {
18566 return ! yylex () + ! yywrap ();
18567 }
18568 _ACEOF
18569 { { ac_try="$LEX conftest.l"
18570 case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18573 esac
18574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18575 $as_echo "$ac_try_echo"; } >&5
18576 (eval "$LEX conftest.l") 2>&5
18577 ac_status=$?
18578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18579 test $ac_status = 0; }
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
18581 $as_echo_n "checking lex output file root... " >&6; }
18582 if ${ac_cv_prog_lex_root+:} false; then :
18583 $as_echo_n "(cached) " >&6
18584 else
18585
18586 if test -f lex.yy.c; then
18587 ac_cv_prog_lex_root=lex.yy
18588 elif test -f lexyy.c; then
18589 ac_cv_prog_lex_root=lexyy
18590 else
18591 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
18592 fi
18593 fi
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
18595 $as_echo "$ac_cv_prog_lex_root" >&6; }
18596 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
18597
18598 if test -z "${LEXLIB+set}"; then
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
18600 $as_echo_n "checking lex library... " >&6; }
18601 if ${ac_cv_lib_lex+:} false; then :
18602 $as_echo_n "(cached) " >&6
18603 else
18604
18605 ac_save_LIBS=$LIBS
18606 ac_cv_lib_lex='none needed'
18607 for ac_lib in '' -lfl -ll; do
18608 LIBS="$ac_lib $ac_save_LIBS"
18609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18610 /* end confdefs.h. */
18611 `cat $LEX_OUTPUT_ROOT.c`
18612 _ACEOF
18613 if ac_fn_c_try_link "$LINENO"; then :
18614 ac_cv_lib_lex=$ac_lib
18615 fi
18616 rm -f core conftest.err conftest.$ac_objext \
18617 conftest$ac_exeext conftest.$ac_ext
18618 test "$ac_cv_lib_lex" != 'none needed' && break
18619 done
18620 LIBS=$ac_save_LIBS
18621
18622 fi
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
18624 $as_echo "$ac_cv_lib_lex" >&6; }
18625 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
18626 fi
18627
18628
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
18630 $as_echo_n "checking whether yytext is a pointer... " >&6; }
18631 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
18632 $as_echo_n "(cached) " >&6
18633 else
18634 # POSIX says lex can declare yytext either as a pointer or an array; the
18635 # default is implementation-dependent. Figure out which it is, since
18636 # not all implementations provide the %pointer and %array declarations.
18637 ac_cv_prog_lex_yytext_pointer=no
18638 ac_save_LIBS=$LIBS
18639 LIBS="$LEXLIB $ac_save_LIBS"
18640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18641 /* end confdefs.h. */
18642
18643 #define YYTEXT_POINTER 1
18644 `cat $LEX_OUTPUT_ROOT.c`
18645 _ACEOF
18646 if ac_fn_c_try_link "$LINENO"; then :
18647 ac_cv_prog_lex_yytext_pointer=yes
18648 fi
18649 rm -f core conftest.err conftest.$ac_objext \
18650 conftest$ac_exeext conftest.$ac_ext
18651 LIBS=$ac_save_LIBS
18652
18653 fi
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
18655 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
18656 if test $ac_cv_prog_lex_yytext_pointer = yes; then
18657
18658 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
18659
18660 fi
18661 rm -f conftest.l $LEX_OUTPUT_ROOT.c
18662 ;;
18663 esac
18664 if test "$LEX" = :; then
18665 LEX=${am_missing_run}flex
18666 fi
18667
18668
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18670 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18671 # Check whether --enable-maintainer-mode was given.
18672 if test "${enable_maintainer_mode+set}" = set; then :
18673 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18674 else
18675 USE_MAINTAINER_MODE=no
18676 fi
18677
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18679 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18680 if test $USE_MAINTAINER_MODE = yes; then
18681 MAINTAINER_MODE_TRUE=
18682 MAINTAINER_MODE_FALSE='#'
18683 else
18684 MAINTAINER_MODE_TRUE='#'
18685 MAINTAINER_MODE_FALSE=
18686 fi
18687
18688 MAINT=$MAINTAINER_MODE_TRUE
18689
18690
18691 if false; then
18692 GENINSRC_NEVER_TRUE=
18693 GENINSRC_NEVER_FALSE='#'
18694 else
18695 GENINSRC_NEVER_TRUE='#'
18696 GENINSRC_NEVER_FALSE=
18697 fi
18698
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
18700 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
18701 if ${gcc_cv_prog_cmp_skip+:} false; then :
18702 $as_echo_n "(cached) " >&6
18703 else
18704 echo abfoo >t1
18705 echo cdfoo >t2
18706 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
18707 if cmp t1 t2 2 2 > /dev/null 2>&1; then
18708 if cmp t1 t2 1 1 > /dev/null 2>&1; then
18709 :
18710 else
18711 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
18712 fi
18713 fi
18714 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
18715 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
18716 :
18717 else
18718 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
18719 fi
18720 fi
18721 rm t1 t2
18722
18723 fi
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
18725 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
18726 do_compare="$gcc_cv_prog_cmp_skip"
18727
18728
18729
18730 . ${srcdir}/configure.host
18731
18732
18733
18734
18735 # We use headers from include/ that check various HAVE_*_H macros, thus
18736 # should ensure they are set by configure. This is true even when C99
18737 # guarantees they are available.
18738 # sha1.h and md4.h test HAVE_LIMITS_H, HAVE_SYS_TYPES_H and HAVE_STDINT_H
18739 # plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
18740 # Besides those, we need to check anything used in ld/ not in C99.
18741 for ac_header in fcntl.h elf-hints.h limits.h inttypes.h stdint.h \
18742 sys/file.h sys/mman.h sys/param.h sys/stat.h sys/time.h \
18743 sys/types.h unistd.h
18744 do :
18745 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18746 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18747 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18748 cat >>confdefs.h <<_ACEOF
18749 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18750 _ACEOF
18751
18752 fi
18753
18754 done
18755
18756 for ac_func in close glob lseek mkstemp open realpath waitpid
18757 do :
18758 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18759 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18760 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18761 cat >>confdefs.h <<_ACEOF
18762 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18763 _ACEOF
18764
18765 fi
18766 done
18767
18768
18769
18770 case "${host}" in
18771 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
18772
18773 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
18774 ;;
18775 esac
18776
18777 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
18778 if test "x$ac_cv_have_decl_environ" = xyes; then :
18779 ac_have_decl=1
18780 else
18781 ac_have_decl=0
18782 fi
18783
18784 cat >>confdefs.h <<_ACEOF
18785 #define HAVE_DECL_ENVIRON $ac_have_decl
18786 _ACEOF
18787 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
18788 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
18789 ac_have_decl=1
18790 else
18791 ac_have_decl=0
18792 fi
18793
18794 cat >>confdefs.h <<_ACEOF
18795 #define HAVE_DECL_STPCPY $ac_have_decl
18796 _ACEOF
18797
18798
18799
18800
18801
18802 for ac_header in $ac_header_list
18803 do :
18804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18805 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18806 "
18807 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18808 cat >>confdefs.h <<_ACEOF
18809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18810 _ACEOF
18811
18812 fi
18813
18814 done
18815
18816
18817
18818
18819
18820
18821
18822 save_ASAN_OPTIONS="$ASAN_OPTIONS"
18823 ASAN_OPTIONS=detect_leaks=0
18824 export ASAN_OPTIONS
18825
18826 for ac_func in getpagesize
18827 do :
18828 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18829 if test "x$ac_cv_func_getpagesize" = xyes; then :
18830 cat >>confdefs.h <<_ACEOF
18831 #define HAVE_GETPAGESIZE 1
18832 _ACEOF
18833
18834 fi
18835 done
18836
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18838 $as_echo_n "checking for working mmap... " >&6; }
18839 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18840 $as_echo_n "(cached) " >&6
18841 else
18842 if test "$cross_compiling" = yes; then :
18843 ac_cv_func_mmap_fixed_mapped=no
18844 else
18845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18846 /* end confdefs.h. */
18847 $ac_includes_default
18848 /* malloc might have been renamed as rpl_malloc. */
18849 #undef malloc
18850
18851 /* Thanks to Mike Haertel and Jim Avera for this test.
18852 Here is a matrix of mmap possibilities:
18853 mmap private not fixed
18854 mmap private fixed at somewhere currently unmapped
18855 mmap private fixed at somewhere already mapped
18856 mmap shared not fixed
18857 mmap shared fixed at somewhere currently unmapped
18858 mmap shared fixed at somewhere already mapped
18859 For private mappings, we should verify that changes cannot be read()
18860 back from the file, nor mmap's back from the file at a different
18861 address. (There have been systems where private was not correctly
18862 implemented like the infamous i386 svr4.0, and systems where the
18863 VM page cache was not coherent with the file system buffer cache
18864 like early versions of FreeBSD and possibly contemporary NetBSD.)
18865 For shared mappings, we should conversely verify that changes get
18866 propagated back to all the places they're supposed to be.
18867
18868 Grep wants private fixed already mapped.
18869 The main things grep needs to know about mmap are:
18870 * does it exist and is it safe to write into the mmap'd area
18871 * how to use it (BSD variants) */
18872
18873 #include <fcntl.h>
18874 #include <sys/mman.h>
18875
18876 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18877 char *malloc ();
18878 #endif
18879
18880 /* This mess was copied from the GNU getpagesize.h. */
18881 #ifndef HAVE_GETPAGESIZE
18882 # ifdef _SC_PAGESIZE
18883 # define getpagesize() sysconf(_SC_PAGESIZE)
18884 # else /* no _SC_PAGESIZE */
18885 # ifdef HAVE_SYS_PARAM_H
18886 # include <sys/param.h>
18887 # ifdef EXEC_PAGESIZE
18888 # define getpagesize() EXEC_PAGESIZE
18889 # else /* no EXEC_PAGESIZE */
18890 # ifdef NBPG
18891 # define getpagesize() NBPG * CLSIZE
18892 # ifndef CLSIZE
18893 # define CLSIZE 1
18894 # endif /* no CLSIZE */
18895 # else /* no NBPG */
18896 # ifdef NBPC
18897 # define getpagesize() NBPC
18898 # else /* no NBPC */
18899 # ifdef PAGESIZE
18900 # define getpagesize() PAGESIZE
18901 # endif /* PAGESIZE */
18902 # endif /* no NBPC */
18903 # endif /* no NBPG */
18904 # endif /* no EXEC_PAGESIZE */
18905 # else /* no HAVE_SYS_PARAM_H */
18906 # define getpagesize() 8192 /* punt totally */
18907 # endif /* no HAVE_SYS_PARAM_H */
18908 # endif /* no _SC_PAGESIZE */
18909
18910 #endif /* no HAVE_GETPAGESIZE */
18911
18912 int
18913 main ()
18914 {
18915 char *data, *data2, *data3;
18916 const char *cdata2;
18917 int i, pagesize;
18918 int fd, fd2;
18919
18920 pagesize = getpagesize ();
18921
18922 /* First, make a file with some known garbage in it. */
18923 data = (char *) malloc (pagesize);
18924 if (!data)
18925 return 1;
18926 for (i = 0; i < pagesize; ++i)
18927 *(data + i) = rand ();
18928 umask (0);
18929 fd = creat ("conftest.mmap", 0600);
18930 if (fd < 0)
18931 return 2;
18932 if (write (fd, data, pagesize) != pagesize)
18933 return 3;
18934 close (fd);
18935
18936 /* Next, check that the tail of a page is zero-filled. File must have
18937 non-zero length, otherwise we risk SIGBUS for entire page. */
18938 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18939 if (fd2 < 0)
18940 return 4;
18941 cdata2 = "";
18942 if (write (fd2, cdata2, 1) != 1)
18943 return 5;
18944 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18945 if (data2 == MAP_FAILED)
18946 return 6;
18947 for (i = 0; i < pagesize; ++i)
18948 if (*(data2 + i))
18949 return 7;
18950 close (fd2);
18951 if (munmap (data2, pagesize))
18952 return 8;
18953
18954 /* Next, try to mmap the file at a fixed address which already has
18955 something else allocated at it. If we can, also make sure that
18956 we see the same garbage. */
18957 fd = open ("conftest.mmap", O_RDWR);
18958 if (fd < 0)
18959 return 9;
18960 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18961 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18962 return 10;
18963 for (i = 0; i < pagesize; ++i)
18964 if (*(data + i) != *(data2 + i))
18965 return 11;
18966
18967 /* Finally, make sure that changes to the mapped area do not
18968 percolate back to the file as seen by read(). (This is a bug on
18969 some variants of i386 svr4.0.) */
18970 for (i = 0; i < pagesize; ++i)
18971 *(data2 + i) = *(data2 + i) + 1;
18972 data3 = (char *) malloc (pagesize);
18973 if (!data3)
18974 return 12;
18975 if (read (fd, data3, pagesize) != pagesize)
18976 return 13;
18977 for (i = 0; i < pagesize; ++i)
18978 if (*(data + i) != *(data3 + i))
18979 return 14;
18980 close (fd);
18981 return 0;
18982 }
18983 _ACEOF
18984 if ac_fn_c_try_run "$LINENO"; then :
18985 ac_cv_func_mmap_fixed_mapped=yes
18986 else
18987 ac_cv_func_mmap_fixed_mapped=no
18988 fi
18989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18990 conftest.$ac_objext conftest.beam conftest.$ac_ext
18991 fi
18992
18993 fi
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18995 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18996 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18997
18998 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18999
19000 fi
19001 rm -f conftest.mmap conftest.txt
19002
19003 ASAN_OPTIONS="$save_ASAN_OPTIONS"
19004
19005
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19007 $as_echo_n "checking for library containing dlopen... " >&6; }
19008 if ${ac_cv_search_dlopen+:} false; then :
19009 $as_echo_n "(cached) " >&6
19010 else
19011 ac_func_search_save_LIBS=$LIBS
19012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19013 /* end confdefs.h. */
19014
19015 /* Override any GCC internal prototype to avoid an error.
19016 Use char because int might match the return type of a GCC
19017 builtin and then its argument prototype would still apply. */
19018 #ifdef __cplusplus
19019 extern "C"
19020 #endif
19021 char dlopen ();
19022 int
19023 main ()
19024 {
19025 return dlopen ();
19026 ;
19027 return 0;
19028 }
19029 _ACEOF
19030 for ac_lib in '' dl; do
19031 if test -z "$ac_lib"; then
19032 ac_res="none required"
19033 else
19034 ac_res=-l$ac_lib
19035 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19036 fi
19037 if ac_fn_c_try_link "$LINENO"; then :
19038 ac_cv_search_dlopen=$ac_res
19039 fi
19040 rm -f core conftest.err conftest.$ac_objext \
19041 conftest$ac_exeext
19042 if ${ac_cv_search_dlopen+:} false; then :
19043 break
19044 fi
19045 done
19046 if ${ac_cv_search_dlopen+:} false; then :
19047
19048 else
19049 ac_cv_search_dlopen=no
19050 fi
19051 rm conftest.$ac_ext
19052 LIBS=$ac_func_search_save_LIBS
19053 fi
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19055 $as_echo "$ac_cv_search_dlopen" >&6; }
19056 ac_res=$ac_cv_search_dlopen
19057 if test "$ac_res" != no; then :
19058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19059
19060 fi
19061
19062
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
19064 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
19065 if ${ld_cv_decl_getopt_unistd_h+:} false; then :
19066 $as_echo_n "(cached) " >&6
19067 else
19068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19069 /* end confdefs.h. */
19070 #include <unistd.h>
19071 int
19072 main ()
19073 {
19074 extern int getopt (int, char *const*, const char *);
19075 ;
19076 return 0;
19077 }
19078 _ACEOF
19079 if ac_fn_c_try_compile "$LINENO"; then :
19080 ld_cv_decl_getopt_unistd_h=yes
19081 else
19082 ld_cv_decl_getopt_unistd_h=no
19083 fi
19084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19085 fi
19086
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
19088 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
19089 if test $ld_cv_decl_getopt_unistd_h = yes; then
19090
19091 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
19092
19093 fi
19094
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19096 $as_echo_n "checking whether to use xxhash... " >&6; }
19097
19098 # Check whether --with-xxhash was given.
19099 if test "${with_xxhash+set}" = set; then :
19100 withval=$with_xxhash;
19101 else
19102 with_xxhash=auto
19103 fi
19104
19105 if test "x$with_xxhash" != "xno"; then
19106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19107 /* end confdefs.h. */
19108
19109 #define XXH_INLINE_ALL
19110 #include <xxhash.h>
19111 XXH128_hash_t r;
19112 void foo (void) { r = XXH128("foo", 3, 0); }
19113
19114 _ACEOF
19115 if ac_fn_c_try_compile "$LINENO"; then :
19116
19117 with_xxhash=yes
19118
19119 $as_echo "#define WITH_XXHASH 1" >>confdefs.h
19120
19121
19122 else
19123
19124 if test "$with_xxhash" = yes; then
19125 as_fn_error $? "xxhash is missing or unusable" "$LINENO" 5
19126 fi
19127 with_xxhash=no
19128 fi
19129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19130 fi
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19132 $as_echo "$with_xxhash" >&6; }
19133
19134 # Link in zlib/zstd if we can. This allows us to read and write
19135 # compressed debug sections.
19136
19137 # Use the system's zlib library.
19138 zlibdir="-L\$(top_builddir)/../zlib"
19139 zlibinc="-I\$(top_srcdir)/../zlib"
19140
19141 # Check whether --with-system-zlib was given.
19142 if test "${with_system_zlib+set}" = set; then :
19143 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
19144 zlibdir=
19145 zlibinc=
19146 fi
19147
19148 fi
19149
19150
19151
19152
19153
19154
19155 # Check whether --with-zstd was given.
19156 if test "${with_zstd+set}" = set; then :
19157 withval=$with_zstd;
19158 else
19159 with_zstd=auto
19160 fi
19161
19162
19163 if test "$with_zstd" != no; then :
19164
19165 pkg_failed=no
19166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
19167 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
19168
19169 if test -n "$ZSTD_CFLAGS"; then
19170 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
19171 elif test -n "$PKG_CONFIG"; then
19172 if test -n "$PKG_CONFIG" && \
19173 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19174 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19175 ac_status=$?
19176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19177 test $ac_status = 0; }; then
19178 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
19179 test "x$?" != "x0" && pkg_failed=yes
19180 else
19181 pkg_failed=yes
19182 fi
19183 else
19184 pkg_failed=untried
19185 fi
19186 if test -n "$ZSTD_LIBS"; then
19187 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
19188 elif test -n "$PKG_CONFIG"; then
19189 if test -n "$PKG_CONFIG" && \
19190 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19191 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19192 ac_status=$?
19193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19194 test $ac_status = 0; }; then
19195 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
19196 test "x$?" != "x0" && pkg_failed=yes
19197 else
19198 pkg_failed=yes
19199 fi
19200 else
19201 pkg_failed=untried
19202 fi
19203
19204 if test $pkg_failed = no; then
19205 pkg_save_LDFLAGS="$LDFLAGS"
19206 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
19207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19208 /* end confdefs.h. */
19209
19210 int
19211 main ()
19212 {
19213
19214 ;
19215 return 0;
19216 }
19217 _ACEOF
19218 if ac_fn_c_try_link "$LINENO"; then :
19219
19220 else
19221 pkg_failed=yes
19222 fi
19223 rm -f core conftest.err conftest.$ac_objext \
19224 conftest$ac_exeext conftest.$ac_ext
19225 LDFLAGS=$pkg_save_LDFLAGS
19226 fi
19227
19228
19229
19230 if test $pkg_failed = yes; then
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19232 $as_echo "no" >&6; }
19233
19234 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19235 _pkg_short_errors_supported=yes
19236 else
19237 _pkg_short_errors_supported=no
19238 fi
19239 if test $_pkg_short_errors_supported = yes; then
19240 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19241 else
19242 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19243 fi
19244 # Put the nasty error message in config.log where it belongs
19245 echo "$ZSTD_PKG_ERRORS" >&5
19246
19247
19248 if test "$with_zstd" = yes; then
19249 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19250 fi
19251
19252 elif test $pkg_failed = untried; then
19253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19254 $as_echo "no" >&6; }
19255
19256 if test "$with_zstd" = yes; then
19257 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19258 fi
19259
19260 else
19261 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
19262 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19264 $as_echo "yes" >&6; }
19265
19266
19267 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
19268
19269
19270 fi
19271
19272 fi
19273
19274
19275 # target-specific stuff:
19276
19277 all_targets=
19278 EMUL=
19279 all_emuls=
19280 all_emul_extras=
19281 all_libpath=
19282 TDIRS=
19283
19284 elf_list_options=false
19285 elf_shlib_list_options=false
19286 elf_plt_unwind_list_options=false
19287 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
19288 do
19289 if test "$targ_alias" = "all"; then
19290 all_targets=true
19291 elf_list_options=true
19292 elf_shlib_list_options=true
19293 elf_plt_unwind_list_options=true
19294 else
19295 # Canonicalize the secondary target names.
19296 result=`$ac_config_sub $targ_alias 2>/dev/null`
19297 if test -n "$result"; then
19298 targ=$result
19299 else
19300 targ=$targ_alias
19301 fi
19302
19303 . ${srcdir}/configure.tgt
19304
19305 if test "$targ" = "$target"; then
19306 EMUL=$targ_emul
19307 fi
19308
19309 if test x${enable_64_bit_bfd} = xno; then
19310 . ${srcdir}/../bfd/config.bfd
19311 fi
19312
19313 if test x${enable_64_bit_bfd} = xyes; then
19314 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
19315 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
19316 fi
19317
19318 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
19319 case " $all_emuls " in
19320 *" e${i}.o "*) ;;
19321 *)
19322 all_emuls="$all_emuls e${i}.o"
19323 eval result=\$tdir_$i
19324 test -z "$result" && result=$targ_alias
19325 TDIRS="$TDIRS
19326 tdir_$i=$result"
19327 case "${i}" in
19328 *elf*)
19329 elf_list_options=true
19330 ;;
19331 *)
19332 if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
19333 elf_list_options=true
19334 fi
19335 ;;
19336 esac
19337 if test "$elf_list_options" = "true"; then
19338 source_sh()
19339 {
19340 . $1
19341 }
19342 source_sh ${srcdir}/emulparams/${i}.sh
19343 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
19344 elf_shlib_list_options=true
19345 fi
19346 if test x${PLT_UNWIND} = xyes; then
19347 elf_plt_unwind_list_options=true
19348 fi
19349 fi
19350 ;;
19351 esac
19352 done
19353
19354 for i in $targ_emul $targ_extra_libpath; do
19355 case " $all_libpath " in
19356 *" ${i} "*) ;;
19357 *)
19358 if test -z "$all_libpath"; then
19359 all_libpath=${i}
19360 else
19361 all_libpath="$all_libpath ${i}"
19362 fi
19363 ;;
19364 esac
19365 done
19366
19367 for i in $targ_extra_ofiles; do
19368 case " $all_emul_extras " in
19369 *" ${i} "*) ;;
19370 *)
19371 all_emul_extras="$all_emul_extras ${i}"
19372 ;;
19373 esac
19374 done
19375
19376 fi
19377 done
19378
19379 if test x$ac_default_compressed_debug_sections = xyes ; then
19380
19381 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
19382
19383 fi
19384
19385
19386 cat >>confdefs.h <<_ACEOF
19387 #define DEFAULT_COMPRESSED_DEBUG_ALGORITHM $ac_default_compressed_debug_sections_algorithm
19388 _ACEOF
19389
19390
19391 if test "${ac_default_new_dtags}" = unset; then
19392 ac_default_new_dtags=0
19393 fi
19394
19395 cat >>confdefs.h <<_ACEOF
19396 #define DEFAULT_NEW_DTAGS $ac_default_new_dtags
19397 _ACEOF
19398
19399
19400 if test "${ac_default_ld_z_relro}" = unset; then
19401 ac_default_ld_z_relro=0
19402 fi
19403
19404 cat >>confdefs.h <<_ACEOF
19405 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
19406 _ACEOF
19407
19408
19409 ac_default_ld_textrel_check_warning=0
19410 case "${ac_default_ld_textrel_check}" in
19411 unset|no)
19412 ac_default_ld_textrel_check=textrel_check_none
19413 ;;
19414 yes|warning)
19415 ac_default_ld_textrel_check=textrel_check_warning
19416 ac_default_ld_textrel_check_warning=1
19417 ;;
19418 error)
19419 ac_default_ld_textrel_check=textrel_check_error
19420 ;;
19421 esac
19422
19423 cat >>confdefs.h <<_ACEOF
19424 #define DEFAULT_LD_TEXTREL_CHECK $ac_default_ld_textrel_check
19425 _ACEOF
19426
19427
19428 cat >>confdefs.h <<_ACEOF
19429 #define DEFAULT_LD_TEXTREL_CHECK_WARNING $ac_default_ld_textrel_check_warning
19430 _ACEOF
19431
19432
19433 if test "${ac_default_ld_z_separate_code}" = unset; then
19434 ac_default_ld_z_separate_code=0
19435 fi
19436
19437 cat >>confdefs.h <<_ACEOF
19438 #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
19439 _ACEOF
19440
19441
19442 if test "${ac_default_ld_rosegment}" = unset; then
19443 ac_default_ld_rosegment=0
19444 fi
19445
19446 cat >>confdefs.h <<_ACEOF
19447 #define DEFAULT_LD_ROSEGMENT $ac_default_ld_rosegment
19448 _ACEOF
19449
19450
19451 if test "${ac_default_ld_z_mark_plt}" = unset; then
19452 ac_default_ld_z_mark_plt=0
19453 fi
19454
19455 cat >>confdefs.h <<_ACEOF
19456 #define DEFAULT_LD_Z_MARK_PLT $ac_default_ld_z_mark_plt
19457 _ACEOF
19458
19459
19460 if test "${ac_default_ld_z_memory_seal}" = unset; then
19461 ac_default_ld_z_memory_seal=0
19462 fi
19463
19464 cat >>confdefs.h <<_ACEOF
19465 #define DEFAULT_LD_Z_MEMORY_SEAL $ac_default_ld_z_memory_seal
19466 _ACEOF
19467
19468
19469
19470
19471 cat >>confdefs.h <<_ACEOF
19472 #define DEFAULT_LD_WARN_EXECSTACK $ac_default_ld_warn_execstack
19473 _ACEOF
19474
19475
19476
19477 cat >>confdefs.h <<_ACEOF
19478 #define DEFAULT_LD_ERROR_EXECSTACK $ac_default_ld_error_execstack
19479 _ACEOF
19480
19481
19482 if test "${ac_default_ld_warn_rwx_segments}" = unset; then
19483 ac_default_ld_warn_rwx_segments=1
19484 fi
19485
19486 cat >>confdefs.h <<_ACEOF
19487 #define DEFAULT_LD_WARN_RWX_SEGMENTS $ac_default_ld_warn_rwx_segments
19488 _ACEOF
19489
19490
19491
19492 cat >>confdefs.h <<_ACEOF
19493 #define DEFAULT_LD_ERROR_RWX_SEGMENTS $ac_default_ld_error_rwx_segments
19494 _ACEOF
19495
19496
19497 if test "${ac_default_ld_default_execstack}" = unset; then
19498 ac_default_ld_default_execstack=1
19499 fi
19500
19501 cat >>confdefs.h <<_ACEOF
19502 #define DEFAULT_LD_EXECSTACK $ac_default_ld_default_execstack
19503 _ACEOF
19504
19505
19506
19507 if test "${ac_support_error_handling_script}" = unset; then
19508 ac_support_error_handling_script=1
19509 fi
19510
19511 cat >>confdefs.h <<_ACEOF
19512 #define SUPPORT_ERROR_HANDLING_SCRIPT $ac_support_error_handling_script
19513 _ACEOF
19514
19515
19516
19517 cat >>confdefs.h <<_ACEOF
19518 #define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash
19519 _ACEOF
19520
19521
19522
19523 cat >>confdefs.h <<_ACEOF
19524 #define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash
19525 _ACEOF
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536 if test x${all_targets} = xtrue; then
19537 if test x${enable_64_bit_bfd} = xyes; then
19538 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
19539 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
19540 else
19541 EMULATION_OFILES='$(ALL_EMULATIONS)'
19542 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
19543 fi
19544 else
19545 EMULATION_OFILES=$all_emuls
19546 EMUL_EXTRA_OFILES=$all_emul_extras
19547 fi
19548
19549
19550
19551
19552 EMULATION_LIBPATH=$all_libpath
19553
19554
19555 if test x${enable_static} = xno; then
19556 TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
19557 TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
19558 TESTSFRAMELIB="-Wl,--rpath,../libsframe/.libs ../libsframe/.libs/libsframe.so"
19559 else
19560 TESTBFDLIB="../bfd/.libs/libbfd.a"
19561 TESTCTFLIB="../libctf/.libs/libctf.a"
19562 TESTSFRAMELIB="../libsframe/.libs/libsframe.a"
19563 fi
19564 if test "${enable_libctf}" = no; then
19565 TESTCTFLIB=
19566 fi
19567
19568
19569
19570
19571 target_vendor=${target_vendor=$host_vendor}
19572 case "$target_vendor" in
19573 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
19574 *) EXTRA_SHLIB_EXTENSION= ;;
19575 esac
19576
19577 case "$target_os" in
19578 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
19579 esac
19580
19581 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
19582
19583 cat >>confdefs.h <<_ACEOF
19584 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
19585 _ACEOF
19586
19587 fi
19588
19589 ac_config_commands="$ac_config_commands default"
19590
19591
19592
19593
19594
19595
19596
19597 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
19598
19599 cat >confcache <<\_ACEOF
19600 # This file is a shell script that caches the results of configure
19601 # tests run on this system so they can be shared between configure
19602 # scripts and configure runs, see configure's option --config-cache.
19603 # It is not useful on other systems. If it contains results you don't
19604 # want to keep, you may remove or edit it.
19605 #
19606 # config.status only pays attention to the cache file if you give it
19607 # the --recheck option to rerun configure.
19608 #
19609 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19610 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19611 # following values.
19612
19613 _ACEOF
19614
19615 # The following way of writing the cache mishandles newlines in values,
19616 # but we know of no workaround that is simple, portable, and efficient.
19617 # So, we kill variables containing newlines.
19618 # Ultrix sh set writes to stderr and can't be redirected directly,
19619 # and sets the high bit in the cache file unless we assign to the vars.
19620 (
19621 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19622 eval ac_val=\$$ac_var
19623 case $ac_val in #(
19624 *${as_nl}*)
19625 case $ac_var in #(
19626 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19627 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19628 esac
19629 case $ac_var in #(
19630 _ | IFS | as_nl) ;; #(
19631 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19632 *) { eval $ac_var=; unset $ac_var;} ;;
19633 esac ;;
19634 esac
19635 done
19636
19637 (set) 2>&1 |
19638 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19639 *${as_nl}ac_space=\ *)
19640 # `set' does not quote correctly, so add quotes: double-quote
19641 # substitution turns \\\\ into \\, and sed turns \\ into \.
19642 sed -n \
19643 "s/'/'\\\\''/g;
19644 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19645 ;; #(
19646 *)
19647 # `set' quotes correctly as required by POSIX, so do not add quotes.
19648 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19649 ;;
19650 esac |
19651 sort
19652 ) |
19653 sed '
19654 /^ac_cv_env_/b end
19655 t clear
19656 :clear
19657 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19658 t end
19659 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19660 :end' >>confcache
19661 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19662 if test -w "$cache_file"; then
19663 if test "x$cache_file" != "x/dev/null"; then
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19665 $as_echo "$as_me: updating cache $cache_file" >&6;}
19666 if test ! -f "$cache_file" || test -h "$cache_file"; then
19667 cat confcache >"$cache_file"
19668 else
19669 case $cache_file in #(
19670 */* | ?:*)
19671 mv -f confcache "$cache_file"$$ &&
19672 mv -f "$cache_file"$$ "$cache_file" ;; #(
19673 *)
19674 mv -f confcache "$cache_file" ;;
19675 esac
19676 fi
19677 fi
19678 else
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19680 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19681 fi
19682 fi
19683 rm -f confcache
19684
19685 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19686 # Let make expand exec_prefix.
19687 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19688
19689 DEFS=-DHAVE_CONFIG_H
19690
19691 ac_libobjs=
19692 ac_ltlibobjs=
19693 U=
19694 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19695 # 1. Remove the extension, and $U if already installed.
19696 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19697 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19698 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19699 # will be set to the directory where LIBOBJS objects are built.
19700 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19701 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19702 done
19703 LIBOBJS=$ac_libobjs
19704
19705 LTLIBOBJS=$ac_ltlibobjs
19706
19707
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19709 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19710 if test -n "$am_sleep_pid"; then
19711 # Hide warnings about reused PIDs.
19712 wait $am_sleep_pid 2>/dev/null
19713 fi
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19715 $as_echo "done" >&6; }
19716 if test -n "$EXEEXT"; then
19717 am__EXEEXT_TRUE=
19718 am__EXEEXT_FALSE='#'
19719 else
19720 am__EXEEXT_TRUE='#'
19721 am__EXEEXT_FALSE=
19722 fi
19723
19724 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19725 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19727 fi
19728 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19729 as_fn_error $? "conditional \"AMDEP\" was never defined.
19730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19731 fi
19732 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19733 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19735 fi
19736 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19737 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19739 fi
19740 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
19741 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
19742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19743 fi
19744 if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
19745 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
19746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19747 fi
19748 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19749 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19751 fi
19752 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
19753 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
19754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19755 fi
19756
19757 : "${CONFIG_STATUS=./config.status}"
19758 ac_write_fail=0
19759 ac_clean_files_save=$ac_clean_files
19760 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19762 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19763 as_write_fail=0
19764 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19765 #! $SHELL
19766 # Generated by $as_me.
19767 # Run this file to recreate the current configuration.
19768 # Compiler output produced by configure, useful for debugging
19769 # configure, is in config.log if it exists.
19770
19771 debug=false
19772 ac_cs_recheck=false
19773 ac_cs_silent=false
19774
19775 SHELL=\${CONFIG_SHELL-$SHELL}
19776 export SHELL
19777 _ASEOF
19778 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19779 ## -------------------- ##
19780 ## M4sh Initialization. ##
19781 ## -------------------- ##
19782
19783 # Be more Bourne compatible
19784 DUALCASE=1; export DUALCASE # for MKS sh
19785 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19786 emulate sh
19787 NULLCMD=:
19788 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19789 # is contrary to our usage. Disable this feature.
19790 alias -g '${1+"$@"}'='"$@"'
19791 setopt NO_GLOB_SUBST
19792 else
19793 case `(set -o) 2>/dev/null` in #(
19794 *posix*) :
19795 set -o posix ;; #(
19796 *) :
19797 ;;
19798 esac
19799 fi
19800
19801
19802 as_nl='
19803 '
19804 export as_nl
19805 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19806 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19807 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19808 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19809 # Prefer a ksh shell builtin over an external printf program on Solaris,
19810 # but without wasting forks for bash or zsh.
19811 if test -z "$BASH_VERSION$ZSH_VERSION" \
19812 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19813 as_echo='print -r --'
19814 as_echo_n='print -rn --'
19815 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19816 as_echo='printf %s\n'
19817 as_echo_n='printf %s'
19818 else
19819 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19820 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19821 as_echo_n='/usr/ucb/echo -n'
19822 else
19823 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19824 as_echo_n_body='eval
19825 arg=$1;
19826 case $arg in #(
19827 *"$as_nl"*)
19828 expr "X$arg" : "X\\(.*\\)$as_nl";
19829 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19830 esac;
19831 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19832 '
19833 export as_echo_n_body
19834 as_echo_n='sh -c $as_echo_n_body as_echo'
19835 fi
19836 export as_echo_body
19837 as_echo='sh -c $as_echo_body as_echo'
19838 fi
19839
19840 # The user is always right.
19841 if test "${PATH_SEPARATOR+set}" != set; then
19842 PATH_SEPARATOR=:
19843 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19844 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19845 PATH_SEPARATOR=';'
19846 }
19847 fi
19848
19849
19850 # IFS
19851 # We need space, tab and new line, in precisely that order. Quoting is
19852 # there to prevent editors from complaining about space-tab.
19853 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19854 # splitting by setting IFS to empty value.)
19855 IFS=" "" $as_nl"
19856
19857 # Find who we are. Look in the path if we contain no directory separator.
19858 as_myself=
19859 case $0 in #((
19860 *[\\/]* ) as_myself=$0 ;;
19861 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19862 for as_dir in $PATH
19863 do
19864 IFS=$as_save_IFS
19865 test -z "$as_dir" && as_dir=.
19866 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19867 done
19868 IFS=$as_save_IFS
19869
19870 ;;
19871 esac
19872 # We did not find ourselves, most probably we were run as `sh COMMAND'
19873 # in which case we are not to be found in the path.
19874 if test "x$as_myself" = x; then
19875 as_myself=$0
19876 fi
19877 if test ! -f "$as_myself"; then
19878 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19879 exit 1
19880 fi
19881
19882 # Unset variables that we do not need and which cause bugs (e.g. in
19883 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19884 # suppresses any "Segmentation fault" message there. '((' could
19885 # trigger a bug in pdksh 5.2.14.
19886 for as_var in BASH_ENV ENV MAIL MAILPATH
19887 do eval test x\${$as_var+set} = xset \
19888 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19889 done
19890 PS1='$ '
19891 PS2='> '
19892 PS4='+ '
19893
19894 # NLS nuisances.
19895 LC_ALL=C
19896 export LC_ALL
19897 LANGUAGE=C
19898 export LANGUAGE
19899
19900 # CDPATH.
19901 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19902
19903
19904 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19905 # ----------------------------------------
19906 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19907 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19908 # script with STATUS, using 1 if that was 0.
19909 as_fn_error ()
19910 {
19911 as_status=$1; test $as_status -eq 0 && as_status=1
19912 if test "$4"; then
19913 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19914 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19915 fi
19916 $as_echo "$as_me: error: $2" >&2
19917 as_fn_exit $as_status
19918 } # as_fn_error
19919
19920
19921 # as_fn_set_status STATUS
19922 # -----------------------
19923 # Set $? to STATUS, without forking.
19924 as_fn_set_status ()
19925 {
19926 return $1
19927 } # as_fn_set_status
19928
19929 # as_fn_exit STATUS
19930 # -----------------
19931 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19932 as_fn_exit ()
19933 {
19934 set +e
19935 as_fn_set_status $1
19936 exit $1
19937 } # as_fn_exit
19938
19939 # as_fn_unset VAR
19940 # ---------------
19941 # Portably unset VAR.
19942 as_fn_unset ()
19943 {
19944 { eval $1=; unset $1;}
19945 }
19946 as_unset=as_fn_unset
19947 # as_fn_append VAR VALUE
19948 # ----------------------
19949 # Append the text in VALUE to the end of the definition contained in VAR. Take
19950 # advantage of any shell optimizations that allow amortized linear growth over
19951 # repeated appends, instead of the typical quadratic growth present in naive
19952 # implementations.
19953 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19954 eval 'as_fn_append ()
19955 {
19956 eval $1+=\$2
19957 }'
19958 else
19959 as_fn_append ()
19960 {
19961 eval $1=\$$1\$2
19962 }
19963 fi # as_fn_append
19964
19965 # as_fn_arith ARG...
19966 # ------------------
19967 # Perform arithmetic evaluation on the ARGs, and store the result in the
19968 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19969 # must be portable across $(()) and expr.
19970 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19971 eval 'as_fn_arith ()
19972 {
19973 as_val=$(( $* ))
19974 }'
19975 else
19976 as_fn_arith ()
19977 {
19978 as_val=`expr "$@" || test $? -eq 1`
19979 }
19980 fi # as_fn_arith
19981
19982
19983 if expr a : '\(a\)' >/dev/null 2>&1 &&
19984 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19985 as_expr=expr
19986 else
19987 as_expr=false
19988 fi
19989
19990 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19991 as_basename=basename
19992 else
19993 as_basename=false
19994 fi
19995
19996 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19997 as_dirname=dirname
19998 else
19999 as_dirname=false
20000 fi
20001
20002 as_me=`$as_basename -- "$0" ||
20003 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20004 X"$0" : 'X\(//\)$' \| \
20005 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20006 $as_echo X/"$0" |
20007 sed '/^.*\/\([^/][^/]*\)\/*$/{
20008 s//\1/
20009 q
20010 }
20011 /^X\/\(\/\/\)$/{
20012 s//\1/
20013 q
20014 }
20015 /^X\/\(\/\).*/{
20016 s//\1/
20017 q
20018 }
20019 s/.*/./; q'`
20020
20021 # Avoid depending upon Character Ranges.
20022 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20023 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20024 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20025 as_cr_digits='0123456789'
20026 as_cr_alnum=$as_cr_Letters$as_cr_digits
20027
20028 ECHO_C= ECHO_N= ECHO_T=
20029 case `echo -n x` in #(((((
20030 -n*)
20031 case `echo 'xy\c'` in
20032 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20033 xy) ECHO_C='\c';;
20034 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20035 ECHO_T=' ';;
20036 esac;;
20037 *)
20038 ECHO_N='-n';;
20039 esac
20040
20041 rm -f conf$$ conf$$.exe conf$$.file
20042 if test -d conf$$.dir; then
20043 rm -f conf$$.dir/conf$$.file
20044 else
20045 rm -f conf$$.dir
20046 mkdir conf$$.dir 2>/dev/null
20047 fi
20048 if (echo >conf$$.file) 2>/dev/null; then
20049 if ln -s conf$$.file conf$$ 2>/dev/null; then
20050 as_ln_s='ln -s'
20051 # ... but there are two gotchas:
20052 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20053 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20054 # In both cases, we have to default to `cp -pR'.
20055 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20056 as_ln_s='cp -pR'
20057 elif ln conf$$.file conf$$ 2>/dev/null; then
20058 as_ln_s=ln
20059 else
20060 as_ln_s='cp -pR'
20061 fi
20062 else
20063 as_ln_s='cp -pR'
20064 fi
20065 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20066 rmdir conf$$.dir 2>/dev/null
20067
20068
20069 # as_fn_mkdir_p
20070 # -------------
20071 # Create "$as_dir" as a directory, including parents if necessary.
20072 as_fn_mkdir_p ()
20073 {
20074
20075 case $as_dir in #(
20076 -*) as_dir=./$as_dir;;
20077 esac
20078 test -d "$as_dir" || eval $as_mkdir_p || {
20079 as_dirs=
20080 while :; do
20081 case $as_dir in #(
20082 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20083 *) as_qdir=$as_dir;;
20084 esac
20085 as_dirs="'$as_qdir' $as_dirs"
20086 as_dir=`$as_dirname -- "$as_dir" ||
20087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20088 X"$as_dir" : 'X\(//\)[^/]' \| \
20089 X"$as_dir" : 'X\(//\)$' \| \
20090 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20091 $as_echo X"$as_dir" |
20092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20093 s//\1/
20094 q
20095 }
20096 /^X\(\/\/\)[^/].*/{
20097 s//\1/
20098 q
20099 }
20100 /^X\(\/\/\)$/{
20101 s//\1/
20102 q
20103 }
20104 /^X\(\/\).*/{
20105 s//\1/
20106 q
20107 }
20108 s/.*/./; q'`
20109 test -d "$as_dir" && break
20110 done
20111 test -z "$as_dirs" || eval "mkdir $as_dirs"
20112 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20113
20114
20115 } # as_fn_mkdir_p
20116 if mkdir -p . 2>/dev/null; then
20117 as_mkdir_p='mkdir -p "$as_dir"'
20118 else
20119 test -d ./-p && rmdir ./-p
20120 as_mkdir_p=false
20121 fi
20122
20123
20124 # as_fn_executable_p FILE
20125 # -----------------------
20126 # Test if FILE is an executable regular file.
20127 as_fn_executable_p ()
20128 {
20129 test -f "$1" && test -x "$1"
20130 } # as_fn_executable_p
20131 as_test_x='test -x'
20132 as_executable_p=as_fn_executable_p
20133
20134 # Sed expression to map a string onto a valid CPP name.
20135 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20136
20137 # Sed expression to map a string onto a valid variable name.
20138 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20139
20140
20141 exec 6>&1
20142 ## ----------------------------------- ##
20143 ## Main body of $CONFIG_STATUS script. ##
20144 ## ----------------------------------- ##
20145 _ASEOF
20146 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20147
20148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20149 # Save the log message, to keep $0 and so on meaningful, and to
20150 # report actual input values of CONFIG_FILES etc. instead of their
20151 # values after options handling.
20152 ac_log="
20153 This file was extended by ld $as_me 2.44, which was
20154 generated by GNU Autoconf 2.69. Invocation command line was
20155
20156 CONFIG_FILES = $CONFIG_FILES
20157 CONFIG_HEADERS = $CONFIG_HEADERS
20158 CONFIG_LINKS = $CONFIG_LINKS
20159 CONFIG_COMMANDS = $CONFIG_COMMANDS
20160 $ $0 $@
20161
20162 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20163 "
20164
20165 _ACEOF
20166
20167 case $ac_config_files in *"
20168 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20169 esac
20170
20171 case $ac_config_headers in *"
20172 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20173 esac
20174
20175
20176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20177 # Files that config.status was made for.
20178 config_files="$ac_config_files"
20179 config_headers="$ac_config_headers"
20180 config_commands="$ac_config_commands"
20181
20182 _ACEOF
20183
20184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20185 ac_cs_usage="\
20186 \`$as_me' instantiates files and other configuration actions
20187 from templates according to the current configuration. Unless the files
20188 and actions are specified as TAGs, all are instantiated by default.
20189
20190 Usage: $0 [OPTION]... [TAG]...
20191
20192 -h, --help print this help, then exit
20193 -V, --version print version number and configuration settings, then exit
20194 --config print configuration, then exit
20195 -q, --quiet, --silent
20196 do not print progress messages
20197 -d, --debug don't remove temporary files
20198 --recheck update $as_me by reconfiguring in the same conditions
20199 --file=FILE[:TEMPLATE]
20200 instantiate the configuration file FILE
20201 --header=FILE[:TEMPLATE]
20202 instantiate the configuration header FILE
20203
20204 Configuration files:
20205 $config_files
20206
20207 Configuration headers:
20208 $config_headers
20209
20210 Configuration commands:
20211 $config_commands
20212
20213 Report bugs to the package provider."
20214
20215 _ACEOF
20216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20217 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20218 ac_cs_version="\\
20219 ld config.status 2.44
20220 configured by $0, generated by GNU Autoconf 2.69,
20221 with options \\"\$ac_cs_config\\"
20222
20223 Copyright (C) 2012 Free Software Foundation, Inc.
20224 This config.status script is free software; the Free Software Foundation
20225 gives unlimited permission to copy, distribute and modify it."
20226
20227 ac_pwd='$ac_pwd'
20228 srcdir='$srcdir'
20229 INSTALL='$INSTALL'
20230 MKDIR_P='$MKDIR_P'
20231 AWK='$AWK'
20232 test -n "\$AWK" || AWK=awk
20233 _ACEOF
20234
20235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20236 # The default lists apply if the user does not specify any file.
20237 ac_need_defaults=:
20238 while test $# != 0
20239 do
20240 case $1 in
20241 --*=?*)
20242 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20243 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20244 ac_shift=:
20245 ;;
20246 --*=)
20247 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20248 ac_optarg=
20249 ac_shift=:
20250 ;;
20251 *)
20252 ac_option=$1
20253 ac_optarg=$2
20254 ac_shift=shift
20255 ;;
20256 esac
20257
20258 case $ac_option in
20259 # Handling of the options.
20260 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20261 ac_cs_recheck=: ;;
20262 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20263 $as_echo "$ac_cs_version"; exit ;;
20264 --config | --confi | --conf | --con | --co | --c )
20265 $as_echo "$ac_cs_config"; exit ;;
20266 --debug | --debu | --deb | --de | --d | -d )
20267 debug=: ;;
20268 --file | --fil | --fi | --f )
20269 $ac_shift
20270 case $ac_optarg in
20271 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20272 '') as_fn_error $? "missing file argument" ;;
20273 esac
20274 as_fn_append CONFIG_FILES " '$ac_optarg'"
20275 ac_need_defaults=false;;
20276 --header | --heade | --head | --hea )
20277 $ac_shift
20278 case $ac_optarg in
20279 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20280 esac
20281 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20282 ac_need_defaults=false;;
20283 --he | --h)
20284 # Conflict between --help and --header
20285 as_fn_error $? "ambiguous option: \`$1'
20286 Try \`$0 --help' for more information.";;
20287 --help | --hel | -h )
20288 $as_echo "$ac_cs_usage"; exit ;;
20289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20290 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20291 ac_cs_silent=: ;;
20292
20293 # This is an error.
20294 -*) as_fn_error $? "unrecognized option: \`$1'
20295 Try \`$0 --help' for more information." ;;
20296
20297 *) as_fn_append ac_config_targets " $1"
20298 ac_need_defaults=false ;;
20299
20300 esac
20301 shift
20302 done
20303
20304 ac_configure_extra_args=
20305
20306 if $ac_cs_silent; then
20307 exec 6>/dev/null
20308 ac_configure_extra_args="$ac_configure_extra_args --silent"
20309 fi
20310
20311 _ACEOF
20312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20313 if \$ac_cs_recheck; then
20314 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20315 shift
20316 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20317 CONFIG_SHELL='$SHELL'
20318 export CONFIG_SHELL
20319 exec "\$@"
20320 fi
20321
20322 _ACEOF
20323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20324 exec 5>>config.log
20325 {
20326 echo
20327 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20328 ## Running $as_me. ##
20329 _ASBOX
20330 $as_echo "$ac_log"
20331 } >&5
20332
20333 _ACEOF
20334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20335 #
20336 # INIT-COMMANDS
20337 #
20338 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20339
20340
20341 # The HP-UX ksh and POSIX shell print the target directory to stdout
20342 # if CDPATH is set.
20343 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20344
20345 sed_quote_subst='$sed_quote_subst'
20346 double_quote_subst='$double_quote_subst'
20347 delay_variable_subst='$delay_variable_subst'
20348 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20349 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20350 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20351 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20352 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20353 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20354 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20355 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20356 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20357 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20358 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20359 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20360 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20361 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20362 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20363 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20364 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20365 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20366 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20367 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20368 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20369 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20370 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20371 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20372 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20373 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20374 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20375 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20376 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20377 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20378 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20379 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20380 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20381 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20382 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20383 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20384 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20385 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20386 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20387 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20388 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20389 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20390 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20391 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20392 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20393 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20394 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20395 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20396 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"`'
20397 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20398 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20399 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20400 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20401 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20402 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20403 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20404 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20405 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20406 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20407 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20408 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20409 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20410 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20411 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20412 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20413 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20414 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20415 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20416 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20417 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20418 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20419 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20420 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20421 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20422 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20423 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20424 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20425 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20426 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20427 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20428 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20429 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20430 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20431 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20432 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20433 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20434 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20435 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20436 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20437 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
20438 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20439 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20440 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20441 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20442 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20443 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20444 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20445 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20446 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20447 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20448 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20449 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20450 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20451 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20452 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20453 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20454 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20455 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20456 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20457 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20458 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20459 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20460 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20461 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20462 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20463 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20464 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20465 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20466 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20467 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20468 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20469 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20470 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20471 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20472 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20473 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20474 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20475 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20476 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20477 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20478 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20479 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20480 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20481 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20482 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20483 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20484 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20485 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20486 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20487 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20488 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20489 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20490 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20491 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20492 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20493 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20494 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20495 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20496 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20497 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20498 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20499 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20500 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
20501 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20502 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20503 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20504 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20505 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20506 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20507 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20508 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20509 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
20510 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20511 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20512 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20513 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20514 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20515 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20516 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20517 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20518 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20519 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20520 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20521 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20522 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20523
20524 LTCC='$LTCC'
20525 LTCFLAGS='$LTCFLAGS'
20526 compiler='$compiler_DEFAULT'
20527
20528 # A function that is used when there is no print builtin or printf.
20529 func_fallback_echo ()
20530 {
20531 eval 'cat <<_LTECHO_EOF
20532 \$1
20533 _LTECHO_EOF'
20534 }
20535
20536 # Quote evaled strings.
20537 for var in SHELL \
20538 ECHO \
20539 SED \
20540 GREP \
20541 EGREP \
20542 FGREP \
20543 LD \
20544 NM \
20545 LN_S \
20546 lt_SP2NL \
20547 lt_NL2SP \
20548 reload_flag \
20549 OBJDUMP \
20550 deplibs_check_method \
20551 file_magic_cmd \
20552 AR \
20553 AR_FLAGS \
20554 STRIP \
20555 RANLIB \
20556 CC \
20557 CFLAGS \
20558 compiler \
20559 lt_cv_sys_global_symbol_pipe \
20560 lt_cv_sys_global_symbol_to_cdecl \
20561 lt_cv_sys_global_symbol_to_c_name_address \
20562 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20563 lt_prog_compiler_no_builtin_flag \
20564 lt_prog_compiler_wl \
20565 lt_prog_compiler_pic \
20566 lt_prog_compiler_static \
20567 lt_cv_prog_compiler_c_o \
20568 need_locks \
20569 DSYMUTIL \
20570 NMEDIT \
20571 LIPO \
20572 OTOOL \
20573 OTOOL64 \
20574 shrext_cmds \
20575 export_dynamic_flag_spec \
20576 whole_archive_flag_spec \
20577 compiler_needs_object \
20578 with_gnu_ld \
20579 allow_undefined_flag \
20580 no_undefined_flag \
20581 hardcode_libdir_flag_spec \
20582 hardcode_libdir_flag_spec_ld \
20583 hardcode_libdir_separator \
20584 fix_srcfile_path \
20585 exclude_expsyms \
20586 include_expsyms \
20587 file_list_spec \
20588 variables_saved_for_relink \
20589 libname_spec \
20590 library_names_spec \
20591 soname_spec \
20592 install_override_mode \
20593 finish_eval \
20594 old_striplib \
20595 striplib \
20596 compiler_lib_search_dirs \
20597 predep_objects \
20598 postdep_objects \
20599 predeps \
20600 postdeps \
20601 compiler_lib_search_path \
20602 LD_CXX \
20603 reload_flag_CXX \
20604 compiler_CXX \
20605 lt_prog_compiler_no_builtin_flag_CXX \
20606 lt_prog_compiler_wl_CXX \
20607 lt_prog_compiler_pic_CXX \
20608 lt_prog_compiler_static_CXX \
20609 lt_cv_prog_compiler_c_o_CXX \
20610 export_dynamic_flag_spec_CXX \
20611 whole_archive_flag_spec_CXX \
20612 compiler_needs_object_CXX \
20613 with_gnu_ld_CXX \
20614 allow_undefined_flag_CXX \
20615 no_undefined_flag_CXX \
20616 hardcode_libdir_flag_spec_CXX \
20617 hardcode_libdir_flag_spec_ld_CXX \
20618 hardcode_libdir_separator_CXX \
20619 fix_srcfile_path_CXX \
20620 exclude_expsyms_CXX \
20621 include_expsyms_CXX \
20622 file_list_spec_CXX \
20623 compiler_lib_search_dirs_CXX \
20624 predep_objects_CXX \
20625 postdep_objects_CXX \
20626 predeps_CXX \
20627 postdeps_CXX \
20628 compiler_lib_search_path_CXX; do
20629 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20630 *[\\\\\\\`\\"\\\$]*)
20631 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20632 ;;
20633 *)
20634 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20635 ;;
20636 esac
20637 done
20638
20639 # Double-quote double-evaled strings.
20640 for var in reload_cmds \
20641 old_postinstall_cmds \
20642 old_postuninstall_cmds \
20643 old_archive_cmds \
20644 extract_expsyms_cmds \
20645 old_archive_from_new_cmds \
20646 old_archive_from_expsyms_cmds \
20647 archive_cmds \
20648 archive_expsym_cmds \
20649 module_cmds \
20650 module_expsym_cmds \
20651 export_symbols_cmds \
20652 prelink_cmds \
20653 postinstall_cmds \
20654 postuninstall_cmds \
20655 finish_cmds \
20656 sys_lib_search_path_spec \
20657 sys_lib_dlsearch_path_spec \
20658 reload_cmds_CXX \
20659 old_archive_cmds_CXX \
20660 old_archive_from_new_cmds_CXX \
20661 old_archive_from_expsyms_cmds_CXX \
20662 archive_cmds_CXX \
20663 archive_expsym_cmds_CXX \
20664 module_cmds_CXX \
20665 module_expsym_cmds_CXX \
20666 export_symbols_cmds_CXX \
20667 prelink_cmds_CXX; do
20668 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20669 *[\\\\\\\`\\"\\\$]*)
20670 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20671 ;;
20672 *)
20673 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20674 ;;
20675 esac
20676 done
20677
20678 ac_aux_dir='$ac_aux_dir'
20679 xsi_shell='$xsi_shell'
20680 lt_shell_append='$lt_shell_append'
20681
20682 # See if we are running on zsh, and set the options which allow our
20683 # commands through without removal of \ escapes INIT.
20684 if test -n "\${ZSH_VERSION+set}" ; then
20685 setopt NO_GLOB_SUBST
20686 fi
20687
20688
20689 PACKAGE='$PACKAGE'
20690 VERSION='$VERSION'
20691 TIMESTAMP='$TIMESTAMP'
20692 RM='$RM'
20693 ofile='$ofile'
20694
20695
20696
20697
20698
20699 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20700 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20701 # from automake.
20702 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20703 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20704 LINGUAS="${LINGUAS-%UNSET%}"
20705
20706 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20707 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20708 # from automake.
20709 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20710 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20711 LINGUAS="${LINGUAS-%UNSET%}"
20712
20713
20714
20715 _ACEOF
20716
20717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20718
20719 # Handling of arguments.
20720 for ac_config_target in $ac_config_targets
20721 do
20722 case $ac_config_target in
20723 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20724 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20725 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
20726 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20727 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
20728 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20729 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20730 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
20731
20732 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20733 esac
20734 done
20735
20736
20737 # If the user did not use the arguments to specify the items to instantiate,
20738 # then the envvar interface is used. Set only those that are not.
20739 # We use the long form for the default assignment because of an extremely
20740 # bizarre bug on SunOS 4.1.3.
20741 if $ac_need_defaults; then
20742 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20743 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20744 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20745 fi
20746
20747 # Have a temporary directory for convenience. Make it in the build tree
20748 # simply because there is no reason against having it here, and in addition,
20749 # creating and moving files from /tmp can sometimes cause problems.
20750 # Hook for its removal unless debugging.
20751 # Note that there is a small window in which the directory will not be cleaned:
20752 # after its creation but before its name has been assigned to `$tmp'.
20753 $debug ||
20754 {
20755 tmp= ac_tmp=
20756 trap 'exit_status=$?
20757 : "${ac_tmp:=$tmp}"
20758 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20759 ' 0
20760 trap 'as_fn_exit 1' 1 2 13 15
20761 }
20762 # Create a (secure) tmp directory for tmp files.
20763
20764 {
20765 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20766 test -d "$tmp"
20767 } ||
20768 {
20769 tmp=./conf$$-$RANDOM
20770 (umask 077 && mkdir "$tmp")
20771 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20772 ac_tmp=$tmp
20773
20774 # Set up the scripts for CONFIG_FILES section.
20775 # No need to generate them if there are no CONFIG_FILES.
20776 # This happens for instance with `./config.status config.h'.
20777 if test -n "$CONFIG_FILES"; then
20778
20779
20780 ac_cr=`echo X | tr X '\015'`
20781 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20782 # But we know of no other shell where ac_cr would be empty at this
20783 # point, so we can use a bashism as a fallback.
20784 if test "x$ac_cr" = x; then
20785 eval ac_cr=\$\'\\r\'
20786 fi
20787 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20788 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20789 ac_cs_awk_cr='\\r'
20790 else
20791 ac_cs_awk_cr=$ac_cr
20792 fi
20793
20794 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20795 _ACEOF
20796
20797
20798 {
20799 echo "cat >conf$$subs.awk <<_ACEOF" &&
20800 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20801 echo "_ACEOF"
20802 } >conf$$subs.sh ||
20803 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20804 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20805 ac_delim='%!_!# '
20806 for ac_last_try in false false false false false :; do
20807 . ./conf$$subs.sh ||
20808 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20809
20810 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20811 if test $ac_delim_n = $ac_delim_num; then
20812 break
20813 elif $ac_last_try; then
20814 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20815 else
20816 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20817 fi
20818 done
20819 rm -f conf$$subs.sh
20820
20821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20822 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20823 _ACEOF
20824 sed -n '
20825 h
20826 s/^/S["/; s/!.*/"]=/
20827 p
20828 g
20829 s/^[^!]*!//
20830 :repl
20831 t repl
20832 s/'"$ac_delim"'$//
20833 t delim
20834 :nl
20835 h
20836 s/\(.\{148\}\)..*/\1/
20837 t more1
20838 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20839 p
20840 n
20841 b repl
20842 :more1
20843 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20844 p
20845 g
20846 s/.\{148\}//
20847 t nl
20848 :delim
20849 h
20850 s/\(.\{148\}\)..*/\1/
20851 t more2
20852 s/["\\]/\\&/g; s/^/"/; s/$/"/
20853 p
20854 b
20855 :more2
20856 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20857 p
20858 g
20859 s/.\{148\}//
20860 t delim
20861 ' <conf$$subs.awk | sed '
20862 /^[^""]/{
20863 N
20864 s/\n//
20865 }
20866 ' >>$CONFIG_STATUS || ac_write_fail=1
20867 rm -f conf$$subs.awk
20868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20869 _ACAWK
20870 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20871 for (key in S) S_is_set[key] = 1
20872 FS = ""
20873
20874 }
20875 {
20876 line = $ 0
20877 nfields = split(line, field, "@")
20878 substed = 0
20879 len = length(field[1])
20880 for (i = 2; i < nfields; i++) {
20881 key = field[i]
20882 keylen = length(key)
20883 if (S_is_set[key]) {
20884 value = S[key]
20885 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20886 len += length(value) + length(field[++i])
20887 substed = 1
20888 } else
20889 len += 1 + keylen
20890 }
20891
20892 print line
20893 }
20894
20895 _ACAWK
20896 _ACEOF
20897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20898 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20899 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20900 else
20901 cat
20902 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20903 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20904 _ACEOF
20905
20906 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20907 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20908 # trailing colons and then remove the whole line if VPATH becomes empty
20909 # (actually we leave an empty line to preserve line numbers).
20910 if test "x$srcdir" = x.; then
20911 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20912 h
20913 s///
20914 s/^/:/
20915 s/[ ]*$/:/
20916 s/:\$(srcdir):/:/g
20917 s/:\${srcdir}:/:/g
20918 s/:@srcdir@:/:/g
20919 s/^:*//
20920 s/:*$//
20921 x
20922 s/\(=[ ]*\).*/\1/
20923 G
20924 s/\n//
20925 s/^[^=]*=[ ]*$//
20926 }'
20927 fi
20928
20929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20930 fi # test -n "$CONFIG_FILES"
20931
20932 # Set up the scripts for CONFIG_HEADERS section.
20933 # No need to generate them if there are no CONFIG_HEADERS.
20934 # This happens for instance with `./config.status Makefile'.
20935 if test -n "$CONFIG_HEADERS"; then
20936 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20937 BEGIN {
20938 _ACEOF
20939
20940 # Transform confdefs.h into an awk script `defines.awk', embedded as
20941 # here-document in config.status, that substitutes the proper values into
20942 # config.h.in to produce config.h.
20943
20944 # Create a delimiter string that does not exist in confdefs.h, to ease
20945 # handling of long lines.
20946 ac_delim='%!_!# '
20947 for ac_last_try in false false :; do
20948 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20949 if test -z "$ac_tt"; then
20950 break
20951 elif $ac_last_try; then
20952 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20953 else
20954 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20955 fi
20956 done
20957
20958 # For the awk script, D is an array of macro values keyed by name,
20959 # likewise P contains macro parameters if any. Preserve backslash
20960 # newline sequences.
20961
20962 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20963 sed -n '
20964 s/.\{148\}/&'"$ac_delim"'/g
20965 t rset
20966 :rset
20967 s/^[ ]*#[ ]*define[ ][ ]*/ /
20968 t def
20969 d
20970 :def
20971 s/\\$//
20972 t bsnl
20973 s/["\\]/\\&/g
20974 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20975 D["\1"]=" \3"/p
20976 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20977 d
20978 :bsnl
20979 s/["\\]/\\&/g
20980 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20981 D["\1"]=" \3\\\\\\n"\\/p
20982 t cont
20983 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20984 t cont
20985 d
20986 :cont
20987 n
20988 s/.\{148\}/&'"$ac_delim"'/g
20989 t clear
20990 :clear
20991 s/\\$//
20992 t bsnlc
20993 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20994 d
20995 :bsnlc
20996 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20997 b cont
20998 ' <confdefs.h | sed '
20999 s/'"$ac_delim"'/"\\\
21000 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21001
21002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21003 for (key in D) D_is_set[key] = 1
21004 FS = ""
21005 }
21006 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21007 line = \$ 0
21008 split(line, arg, " ")
21009 if (arg[1] == "#") {
21010 defundef = arg[2]
21011 mac1 = arg[3]
21012 } else {
21013 defundef = substr(arg[1], 2)
21014 mac1 = arg[2]
21015 }
21016 split(mac1, mac2, "(") #)
21017 macro = mac2[1]
21018 prefix = substr(line, 1, index(line, defundef) - 1)
21019 if (D_is_set[macro]) {
21020 # Preserve the white space surrounding the "#".
21021 print prefix "define", macro P[macro] D[macro]
21022 next
21023 } else {
21024 # Replace #undef with comments. This is necessary, for example,
21025 # in the case of _POSIX_SOURCE, which is predefined and required
21026 # on some systems where configure will not decide to define it.
21027 if (defundef == "undef") {
21028 print "/*", prefix defundef, macro, "*/"
21029 next
21030 }
21031 }
21032 }
21033 { print }
21034 _ACAWK
21035 _ACEOF
21036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21037 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21038 fi # test -n "$CONFIG_HEADERS"
21039
21040
21041 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21042 shift
21043 for ac_tag
21044 do
21045 case $ac_tag in
21046 :[FHLC]) ac_mode=$ac_tag; continue;;
21047 esac
21048 case $ac_mode$ac_tag in
21049 :[FHL]*:*);;
21050 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21051 :[FH]-) ac_tag=-:-;;
21052 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21053 esac
21054 ac_save_IFS=$IFS
21055 IFS=:
21056 set x $ac_tag
21057 IFS=$ac_save_IFS
21058 shift
21059 ac_file=$1
21060 shift
21061
21062 case $ac_mode in
21063 :L) ac_source=$1;;
21064 :[FH])
21065 ac_file_inputs=
21066 for ac_f
21067 do
21068 case $ac_f in
21069 -) ac_f="$ac_tmp/stdin";;
21070 *) # Look for the file first in the build tree, then in the source tree
21071 # (if the path is not absolute). The absolute path cannot be DOS-style,
21072 # because $ac_f cannot contain `:'.
21073 test -f "$ac_f" ||
21074 case $ac_f in
21075 [\\/$]*) false;;
21076 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21077 esac ||
21078 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21079 esac
21080 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21081 as_fn_append ac_file_inputs " '$ac_f'"
21082 done
21083
21084 # Let's still pretend it is `configure' which instantiates (i.e., don't
21085 # use $as_me), people would be surprised to read:
21086 # /* config.h. Generated by config.status. */
21087 configure_input='Generated from '`
21088 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21089 `' by configure.'
21090 if test x"$ac_file" != x-; then
21091 configure_input="$ac_file. $configure_input"
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21093 $as_echo "$as_me: creating $ac_file" >&6;}
21094 fi
21095 # Neutralize special characters interpreted by sed in replacement strings.
21096 case $configure_input in #(
21097 *\&* | *\|* | *\\* )
21098 ac_sed_conf_input=`$as_echo "$configure_input" |
21099 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21100 *) ac_sed_conf_input=$configure_input;;
21101 esac
21102
21103 case $ac_tag in
21104 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21105 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21106 esac
21107 ;;
21108 esac
21109
21110 ac_dir=`$as_dirname -- "$ac_file" ||
21111 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21112 X"$ac_file" : 'X\(//\)[^/]' \| \
21113 X"$ac_file" : 'X\(//\)$' \| \
21114 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21115 $as_echo X"$ac_file" |
21116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21117 s//\1/
21118 q
21119 }
21120 /^X\(\/\/\)[^/].*/{
21121 s//\1/
21122 q
21123 }
21124 /^X\(\/\/\)$/{
21125 s//\1/
21126 q
21127 }
21128 /^X\(\/\).*/{
21129 s//\1/
21130 q
21131 }
21132 s/.*/./; q'`
21133 as_dir="$ac_dir"; as_fn_mkdir_p
21134 ac_builddir=.
21135
21136 case "$ac_dir" in
21137 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21138 *)
21139 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21140 # A ".." for each directory in $ac_dir_suffix.
21141 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21142 case $ac_top_builddir_sub in
21143 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21144 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21145 esac ;;
21146 esac
21147 ac_abs_top_builddir=$ac_pwd
21148 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21149 # for backward compatibility:
21150 ac_top_builddir=$ac_top_build_prefix
21151
21152 case $srcdir in
21153 .) # We are building in place.
21154 ac_srcdir=.
21155 ac_top_srcdir=$ac_top_builddir_sub
21156 ac_abs_top_srcdir=$ac_pwd ;;
21157 [\\/]* | ?:[\\/]* ) # Absolute name.
21158 ac_srcdir=$srcdir$ac_dir_suffix;
21159 ac_top_srcdir=$srcdir
21160 ac_abs_top_srcdir=$srcdir ;;
21161 *) # Relative name.
21162 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21163 ac_top_srcdir=$ac_top_build_prefix$srcdir
21164 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21165 esac
21166 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21167
21168
21169 case $ac_mode in
21170 :F)
21171 #
21172 # CONFIG_FILE
21173 #
21174
21175 case $INSTALL in
21176 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21177 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21178 esac
21179 ac_MKDIR_P=$MKDIR_P
21180 case $MKDIR_P in
21181 [\\/$]* | ?:[\\/]* ) ;;
21182 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21183 esac
21184 _ACEOF
21185
21186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21187 # If the template does not know about datarootdir, expand it.
21188 # FIXME: This hack should be removed a few years after 2.60.
21189 ac_datarootdir_hack=; ac_datarootdir_seen=
21190 ac_sed_dataroot='
21191 /datarootdir/ {
21192 p
21193 q
21194 }
21195 /@datadir@/p
21196 /@docdir@/p
21197 /@infodir@/p
21198 /@localedir@/p
21199 /@mandir@/p'
21200 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21201 *datarootdir*) ac_datarootdir_seen=yes;;
21202 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21204 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21205 _ACEOF
21206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21207 ac_datarootdir_hack='
21208 s&@datadir@&$datadir&g
21209 s&@docdir@&$docdir&g
21210 s&@infodir@&$infodir&g
21211 s&@localedir@&$localedir&g
21212 s&@mandir@&$mandir&g
21213 s&\\\${datarootdir}&$datarootdir&g' ;;
21214 esac
21215 _ACEOF
21216
21217 # Neutralize VPATH when `$srcdir' = `.'.
21218 # Shell code in configure.ac might set extrasub.
21219 # FIXME: do we really want to maintain this feature?
21220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21221 ac_sed_extra="$ac_vpsub
21222 $extrasub
21223 _ACEOF
21224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21225 :t
21226 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21227 s|@configure_input@|$ac_sed_conf_input|;t t
21228 s&@top_builddir@&$ac_top_builddir_sub&;t t
21229 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21230 s&@srcdir@&$ac_srcdir&;t t
21231 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21232 s&@top_srcdir@&$ac_top_srcdir&;t t
21233 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21234 s&@builddir@&$ac_builddir&;t t
21235 s&@abs_builddir@&$ac_abs_builddir&;t t
21236 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21237 s&@INSTALL@&$ac_INSTALL&;t t
21238 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21239 $ac_datarootdir_hack
21240 "
21241 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21242 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21243
21244 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21245 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21246 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21247 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21249 which seems to be undefined. Please make sure it is defined" >&5
21250 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21251 which seems to be undefined. Please make sure it is defined" >&2;}
21252
21253 rm -f "$ac_tmp/stdin"
21254 case $ac_file in
21255 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21256 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21257 esac \
21258 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21259 ;;
21260 :H)
21261 #
21262 # CONFIG_HEADER
21263 #
21264 if test x"$ac_file" != x-; then
21265 {
21266 $as_echo "/* $configure_input */" \
21267 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21268 } >"$ac_tmp/config.h" \
21269 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21270 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21272 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21273 else
21274 rm -f "$ac_file"
21275 mv "$ac_tmp/config.h" "$ac_file" \
21276 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21277 fi
21278 else
21279 $as_echo "/* $configure_input */" \
21280 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21281 || as_fn_error $? "could not create -" "$LINENO" 5
21282 fi
21283 # Compute "$ac_file"'s index in $config_headers.
21284 _am_arg="$ac_file"
21285 _am_stamp_count=1
21286 for _am_header in $config_headers :; do
21287 case $_am_header in
21288 $_am_arg | $_am_arg:* )
21289 break ;;
21290 * )
21291 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21292 esac
21293 done
21294 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21295 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21296 X"$_am_arg" : 'X\(//\)[^/]' \| \
21297 X"$_am_arg" : 'X\(//\)$' \| \
21298 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21299 $as_echo X"$_am_arg" |
21300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21301 s//\1/
21302 q
21303 }
21304 /^X\(\/\/\)[^/].*/{
21305 s//\1/
21306 q
21307 }
21308 /^X\(\/\/\)$/{
21309 s//\1/
21310 q
21311 }
21312 /^X\(\/\).*/{
21313 s//\1/
21314 q
21315 }
21316 s/.*/./; q'`/stamp-h$_am_stamp_count
21317 ;;
21318
21319 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21320 $as_echo "$as_me: executing $ac_file commands" >&6;}
21321 ;;
21322 esac
21323
21324
21325 case $ac_file$ac_mode in
21326 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21327 # Older Autoconf quotes --file arguments for eval, but not when files
21328 # are listed without --file. Let's play safe and only enable the eval
21329 # if we detect the quoting.
21330 case $CONFIG_FILES in
21331 *\'*) eval set x "$CONFIG_FILES" ;;
21332 *) set x $CONFIG_FILES ;;
21333 esac
21334 shift
21335 for mf
21336 do
21337 # Strip MF so we end up with the name of the file.
21338 mf=`echo "$mf" | sed -e 's/:.*$//'`
21339 # Check whether this is an Automake generated Makefile or not.
21340 # We used to match only the files named 'Makefile.in', but
21341 # some people rename them; so instead we look at the file content.
21342 # Grep'ing the first line is not enough: some people post-process
21343 # each Makefile.in and add a new line on top of each file to say so.
21344 # Grep'ing the whole file is not good either: AIX grep has a line
21345 # limit of 2048, but all sed's we know have understand at least 4000.
21346 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21347 dirpart=`$as_dirname -- "$mf" ||
21348 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21349 X"$mf" : 'X\(//\)[^/]' \| \
21350 X"$mf" : 'X\(//\)$' \| \
21351 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21352 $as_echo X"$mf" |
21353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21354 s//\1/
21355 q
21356 }
21357 /^X\(\/\/\)[^/].*/{
21358 s//\1/
21359 q
21360 }
21361 /^X\(\/\/\)$/{
21362 s//\1/
21363 q
21364 }
21365 /^X\(\/\).*/{
21366 s//\1/
21367 q
21368 }
21369 s/.*/./; q'`
21370 else
21371 continue
21372 fi
21373 # Extract the definition of DEPDIR, am__include, and am__quote
21374 # from the Makefile without running 'make'.
21375 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21376 test -z "$DEPDIR" && continue
21377 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21378 test -z "$am__include" && continue
21379 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21380 # Find all dependency output files, they are included files with
21381 # $(DEPDIR) in their names. We invoke sed twice because it is the
21382 # simplest approach to changing $(DEPDIR) to its actual value in the
21383 # expansion.
21384 for file in `sed -n "
21385 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21386 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21387 # Make sure the directory exists.
21388 test -f "$dirpart/$file" && continue
21389 fdir=`$as_dirname -- "$file" ||
21390 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21391 X"$file" : 'X\(//\)[^/]' \| \
21392 X"$file" : 'X\(//\)$' \| \
21393 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21394 $as_echo X"$file" |
21395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21396 s//\1/
21397 q
21398 }
21399 /^X\(\/\/\)[^/].*/{
21400 s//\1/
21401 q
21402 }
21403 /^X\(\/\/\)$/{
21404 s//\1/
21405 q
21406 }
21407 /^X\(\/\).*/{
21408 s//\1/
21409 q
21410 }
21411 s/.*/./; q'`
21412 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21413 # echo "creating $dirpart/$file"
21414 echo '# dummy' > "$dirpart/$file"
21415 done
21416 done
21417 }
21418 ;;
21419 "libtool":C)
21420
21421 # See if we are running on zsh, and set the options which allow our
21422 # commands through without removal of \ escapes.
21423 if test -n "${ZSH_VERSION+set}" ; then
21424 setopt NO_GLOB_SUBST
21425 fi
21426
21427 cfgfile="${ofile}T"
21428 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21429 $RM "$cfgfile"
21430
21431 cat <<_LT_EOF >> "$cfgfile"
21432 #! $SHELL
21433
21434 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21435 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21436 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21437 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21438 #
21439 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21440 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
21441 # Written by Gordon Matzigkeit, 1996
21442 #
21443 # This file is part of GNU Libtool.
21444 #
21445 # GNU Libtool is free software; you can redistribute it and/or
21446 # modify it under the terms of the GNU General Public License as
21447 # published by the Free Software Foundation; either version 2 of
21448 # the License, or (at your option) any later version.
21449 #
21450 # As a special exception to the GNU General Public License,
21451 # if you distribute this file as part of a program or library that
21452 # is built using GNU Libtool, you may include this file under the
21453 # same distribution terms that you use for the rest of that program.
21454 #
21455 # GNU Libtool is distributed in the hope that it will be useful,
21456 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21457 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21458 # GNU General Public License for more details.
21459 #
21460 # You should have received a copy of the GNU General Public License
21461 # along with GNU Libtool; see the file COPYING. If not, a copy
21462 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21463 # obtained by writing to the Free Software Foundation, Inc.,
21464 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21465
21466
21467 # The names of the tagged configurations supported by this script.
21468 available_tags="CXX "
21469
21470 # ### BEGIN LIBTOOL CONFIG
21471
21472 # Which release of libtool.m4 was used?
21473 macro_version=$macro_version
21474 macro_revision=$macro_revision
21475
21476 # Whether or not to build shared libraries.
21477 build_libtool_libs=$enable_shared
21478
21479 # Whether or not to build static libraries.
21480 build_old_libs=$enable_static
21481
21482 # What type of objects to build.
21483 pic_mode=$pic_mode
21484
21485 # Whether or not to optimize for fast installation.
21486 fast_install=$enable_fast_install
21487
21488 # Shell to use when invoking shell scripts.
21489 SHELL=$lt_SHELL
21490
21491 # An echo program that protects backslashes.
21492 ECHO=$lt_ECHO
21493
21494 # The host system.
21495 host_alias=$host_alias
21496 host=$host
21497 host_os=$host_os
21498
21499 # The build system.
21500 build_alias=$build_alias
21501 build=$build
21502 build_os=$build_os
21503
21504 # A sed program that does not truncate output.
21505 SED=$lt_SED
21506
21507 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21508 Xsed="\$SED -e 1s/^X//"
21509
21510 # A grep program that handles long lines.
21511 GREP=$lt_GREP
21512
21513 # An ERE matcher.
21514 EGREP=$lt_EGREP
21515
21516 # A literal string matcher.
21517 FGREP=$lt_FGREP
21518
21519 # A BSD- or MS-compatible name lister.
21520 NM=$lt_NM
21521
21522 # Whether we need soft or hard links.
21523 LN_S=$lt_LN_S
21524
21525 # What is the maximum length of a command?
21526 max_cmd_len=$max_cmd_len
21527
21528 # Object file suffix (normally "o").
21529 objext=$ac_objext
21530
21531 # Executable file suffix (normally "").
21532 exeext=$exeext
21533
21534 # whether the shell understands "unset".
21535 lt_unset=$lt_unset
21536
21537 # turn spaces into newlines.
21538 SP2NL=$lt_lt_SP2NL
21539
21540 # turn newlines into spaces.
21541 NL2SP=$lt_lt_NL2SP
21542
21543 # An object symbol dumper.
21544 OBJDUMP=$lt_OBJDUMP
21545
21546 # Method to check whether dependent libraries are shared objects.
21547 deplibs_check_method=$lt_deplibs_check_method
21548
21549 # Command to use when deplibs_check_method == "file_magic".
21550 file_magic_cmd=$lt_file_magic_cmd
21551
21552 # The archiver.
21553 AR=$lt_AR
21554 AR_FLAGS=$lt_AR_FLAGS
21555
21556 # A symbol stripping program.
21557 STRIP=$lt_STRIP
21558
21559 # Commands used to install an old-style archive.
21560 RANLIB=$lt_RANLIB
21561 old_postinstall_cmds=$lt_old_postinstall_cmds
21562 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21563
21564 # Whether to use a lock for old archive extraction.
21565 lock_old_archive_extraction=$lock_old_archive_extraction
21566
21567 # A C compiler.
21568 LTCC=$lt_CC
21569
21570 # LTCC compiler flags.
21571 LTCFLAGS=$lt_CFLAGS
21572
21573 # Take the output of nm and produce a listing of raw symbols and C names.
21574 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21575
21576 # Transform the output of nm in a proper C declaration.
21577 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21578
21579 # Transform the output of nm in a C name address pair.
21580 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21581
21582 # Transform the output of nm in a C name address pair when lib prefix is needed.
21583 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21584
21585 # The name of the directory that contains temporary libtool files.
21586 objdir=$objdir
21587
21588 # Used to examine libraries when file_magic_cmd begins with "file".
21589 MAGIC_CMD=$MAGIC_CMD
21590
21591 # Must we lock files when doing compilation?
21592 need_locks=$lt_need_locks
21593
21594 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21595 DSYMUTIL=$lt_DSYMUTIL
21596
21597 # Tool to change global to local symbols on Mac OS X.
21598 NMEDIT=$lt_NMEDIT
21599
21600 # Tool to manipulate fat objects and archives on Mac OS X.
21601 LIPO=$lt_LIPO
21602
21603 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21604 OTOOL=$lt_OTOOL
21605
21606 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21607 OTOOL64=$lt_OTOOL64
21608
21609 # Old archive suffix (normally "a").
21610 libext=$libext
21611
21612 # Shared library suffix (normally ".so").
21613 shrext_cmds=$lt_shrext_cmds
21614
21615 # The commands to extract the exported symbol list from a shared archive.
21616 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21617
21618 # Variables whose values should be saved in libtool wrapper scripts and
21619 # restored at link time.
21620 variables_saved_for_relink=$lt_variables_saved_for_relink
21621
21622 # Do we need the "lib" prefix for modules?
21623 need_lib_prefix=$need_lib_prefix
21624
21625 # Do we need a version for libraries?
21626 need_version=$need_version
21627
21628 # Library versioning type.
21629 version_type=$version_type
21630
21631 # Shared library runtime path variable.
21632 runpath_var=$runpath_var
21633
21634 # Shared library path variable.
21635 shlibpath_var=$shlibpath_var
21636
21637 # Is shlibpath searched before the hard-coded library search path?
21638 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21639
21640 # Format of library name prefix.
21641 libname_spec=$lt_libname_spec
21642
21643 # List of archive names. First name is the real one, the rest are links.
21644 # The last name is the one that the linker finds with -lNAME
21645 library_names_spec=$lt_library_names_spec
21646
21647 # The coded name of the library, if different from the real name.
21648 soname_spec=$lt_soname_spec
21649
21650 # Permission mode override for installation of shared libraries.
21651 install_override_mode=$lt_install_override_mode
21652
21653 # Command to use after installation of a shared archive.
21654 postinstall_cmds=$lt_postinstall_cmds
21655
21656 # Command to use after uninstallation of a shared archive.
21657 postuninstall_cmds=$lt_postuninstall_cmds
21658
21659 # Commands used to finish a libtool library installation in a directory.
21660 finish_cmds=$lt_finish_cmds
21661
21662 # As "finish_cmds", except a single script fragment to be evaled but
21663 # not shown.
21664 finish_eval=$lt_finish_eval
21665
21666 # Whether we should hardcode library paths into libraries.
21667 hardcode_into_libs=$hardcode_into_libs
21668
21669 # Compile-time system search path for libraries.
21670 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21671
21672 # Run-time system search path for libraries.
21673 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21674
21675 # Whether dlopen is supported.
21676 dlopen_support=$enable_dlopen
21677
21678 # Whether dlopen of programs is supported.
21679 dlopen_self=$enable_dlopen_self
21680
21681 # Whether dlopen of statically linked programs is supported.
21682 dlopen_self_static=$enable_dlopen_self_static
21683
21684 # Commands to strip libraries.
21685 old_striplib=$lt_old_striplib
21686 striplib=$lt_striplib
21687
21688
21689 # The linker used to build libraries.
21690 LD=$lt_LD
21691
21692 # How to create reloadable object files.
21693 reload_flag=$lt_reload_flag
21694 reload_cmds=$lt_reload_cmds
21695
21696 # Commands used to build an old-style archive.
21697 old_archive_cmds=$lt_old_archive_cmds
21698
21699 # A language specific compiler.
21700 CC=$lt_compiler
21701
21702 # Is the compiler the GNU compiler?
21703 with_gcc=$GCC
21704
21705 # Compiler flag to turn off builtin functions.
21706 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21707
21708 # How to pass a linker flag through the compiler.
21709 wl=$lt_lt_prog_compiler_wl
21710
21711 # Additional compiler flags for building library objects.
21712 pic_flag=$lt_lt_prog_compiler_pic
21713
21714 # Compiler flag to prevent dynamic linking.
21715 link_static_flag=$lt_lt_prog_compiler_static
21716
21717 # Does compiler simultaneously support -c and -o options?
21718 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21719
21720 # Whether or not to add -lc for building shared libraries.
21721 build_libtool_need_lc=$archive_cmds_need_lc
21722
21723 # Whether or not to disallow shared libs when runtime libs are static.
21724 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21725
21726 # Compiler flag to allow reflexive dlopens.
21727 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21728
21729 # Compiler flag to generate shared objects directly from archives.
21730 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21731
21732 # Whether the compiler copes with passing no objects directly.
21733 compiler_needs_object=$lt_compiler_needs_object
21734
21735 # Create an old-style archive from a shared archive.
21736 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21737
21738 # Create a temporary old-style archive to link instead of a shared archive.
21739 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21740
21741 # Commands used to build a shared archive.
21742 archive_cmds=$lt_archive_cmds
21743 archive_expsym_cmds=$lt_archive_expsym_cmds
21744
21745 # Commands used to build a loadable module if different from building
21746 # a shared archive.
21747 module_cmds=$lt_module_cmds
21748 module_expsym_cmds=$lt_module_expsym_cmds
21749
21750 # Whether we are building with GNU ld or not.
21751 with_gnu_ld=$lt_with_gnu_ld
21752
21753 # Flag that allows shared libraries with undefined symbols to be built.
21754 allow_undefined_flag=$lt_allow_undefined_flag
21755
21756 # Flag that enforces no undefined symbols.
21757 no_undefined_flag=$lt_no_undefined_flag
21758
21759 # Flag to hardcode \$libdir into a binary during linking.
21760 # This must work even if \$libdir does not exist
21761 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21762
21763 # If ld is used when linking, flag to hardcode \$libdir into a binary
21764 # during linking. This must work even if \$libdir does not exist.
21765 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21766
21767 # Whether we need a single "-rpath" flag with a separated argument.
21768 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21769
21770 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21771 # DIR into the resulting binary.
21772 hardcode_direct=$hardcode_direct
21773
21774 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21775 # DIR into the resulting binary and the resulting library dependency is
21776 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21777 # library is relocated.
21778 hardcode_direct_absolute=$hardcode_direct_absolute
21779
21780 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21781 # into the resulting binary.
21782 hardcode_minus_L=$hardcode_minus_L
21783
21784 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21785 # into the resulting binary.
21786 hardcode_shlibpath_var=$hardcode_shlibpath_var
21787
21788 # Set to "yes" if building a shared library automatically hardcodes DIR
21789 # into the library and all subsequent libraries and executables linked
21790 # against it.
21791 hardcode_automatic=$hardcode_automatic
21792
21793 # Set to yes if linker adds runtime paths of dependent libraries
21794 # to runtime path list.
21795 inherit_rpath=$inherit_rpath
21796
21797 # Whether libtool must link a program against all its dependency libraries.
21798 link_all_deplibs=$link_all_deplibs
21799
21800 # Fix the shell variable \$srcfile for the compiler.
21801 fix_srcfile_path=$lt_fix_srcfile_path
21802
21803 # Set to "yes" if exported symbols are required.
21804 always_export_symbols=$always_export_symbols
21805
21806 # The commands to list exported symbols.
21807 export_symbols_cmds=$lt_export_symbols_cmds
21808
21809 # Symbols that should not be listed in the preloaded symbols.
21810 exclude_expsyms=$lt_exclude_expsyms
21811
21812 # Symbols that must always be exported.
21813 include_expsyms=$lt_include_expsyms
21814
21815 # Commands necessary for linking programs (against libraries) with templates.
21816 prelink_cmds=$lt_prelink_cmds
21817
21818 # Specify filename containing input files.
21819 file_list_spec=$lt_file_list_spec
21820
21821 # How to hardcode a shared library path into an executable.
21822 hardcode_action=$hardcode_action
21823
21824 # The directories searched by this compiler when creating a shared library.
21825 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21826
21827 # Dependencies to place before and after the objects being linked to
21828 # create a shared library.
21829 predep_objects=$lt_predep_objects
21830 postdep_objects=$lt_postdep_objects
21831 predeps=$lt_predeps
21832 postdeps=$lt_postdeps
21833
21834 # The library search path used internally by the compiler when linking
21835 # a shared library.
21836 compiler_lib_search_path=$lt_compiler_lib_search_path
21837
21838 # ### END LIBTOOL CONFIG
21839
21840 _LT_EOF
21841
21842 case $host_os in
21843 aix3*)
21844 cat <<\_LT_EOF >> "$cfgfile"
21845 # AIX sometimes has problems with the GCC collect2 program. For some
21846 # reason, if we set the COLLECT_NAMES environment variable, the problems
21847 # vanish in a puff of smoke.
21848 if test "X${COLLECT_NAMES+set}" != Xset; then
21849 COLLECT_NAMES=
21850 export COLLECT_NAMES
21851 fi
21852 _LT_EOF
21853 ;;
21854 esac
21855
21856
21857 ltmain="$ac_aux_dir/ltmain.sh"
21858
21859
21860 # We use sed instead of cat because bash on DJGPP gets confused if
21861 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21862 # text mode, it properly converts lines to CR/LF. This bash problem
21863 # is reportedly fixed, but why not run on old versions too?
21864 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21865 || (rm -f "$cfgfile"; exit 1)
21866
21867 case $xsi_shell in
21868 yes)
21869 cat << \_LT_EOF >> "$cfgfile"
21870
21871 # func_dirname file append nondir_replacement
21872 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21873 # otherwise set result to NONDIR_REPLACEMENT.
21874 func_dirname ()
21875 {
21876 case ${1} in
21877 */*) func_dirname_result="${1%/*}${2}" ;;
21878 * ) func_dirname_result="${3}" ;;
21879 esac
21880 }
21881
21882 # func_basename file
21883 func_basename ()
21884 {
21885 func_basename_result="${1##*/}"
21886 }
21887
21888 # func_dirname_and_basename file append nondir_replacement
21889 # perform func_basename and func_dirname in a single function
21890 # call:
21891 # dirname: Compute the dirname of FILE. If nonempty,
21892 # add APPEND to the result, otherwise set result
21893 # to NONDIR_REPLACEMENT.
21894 # value returned in "$func_dirname_result"
21895 # basename: Compute filename of FILE.
21896 # value retuned in "$func_basename_result"
21897 # Implementation must be kept synchronized with func_dirname
21898 # and func_basename. For efficiency, we do not delegate to
21899 # those functions but instead duplicate the functionality here.
21900 func_dirname_and_basename ()
21901 {
21902 case ${1} in
21903 */*) func_dirname_result="${1%/*}${2}" ;;
21904 * ) func_dirname_result="${3}" ;;
21905 esac
21906 func_basename_result="${1##*/}"
21907 }
21908
21909 # func_stripname prefix suffix name
21910 # strip PREFIX and SUFFIX off of NAME.
21911 # PREFIX and SUFFIX must not contain globbing or regex special
21912 # characters, hashes, percent signs, but SUFFIX may contain a leading
21913 # dot (in which case that matches only a dot).
21914 func_stripname ()
21915 {
21916 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21917 # positional parameters, so assign one to ordinary parameter first.
21918 func_stripname_result=${3}
21919 func_stripname_result=${func_stripname_result#"${1}"}
21920 func_stripname_result=${func_stripname_result%"${2}"}
21921 }
21922
21923 # func_opt_split
21924 func_opt_split ()
21925 {
21926 func_opt_split_opt=${1%%=*}
21927 func_opt_split_arg=${1#*=}
21928 }
21929
21930 # func_lo2o object
21931 func_lo2o ()
21932 {
21933 case ${1} in
21934 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21935 *) func_lo2o_result=${1} ;;
21936 esac
21937 }
21938
21939 # func_xform libobj-or-source
21940 func_xform ()
21941 {
21942 func_xform_result=${1%.*}.lo
21943 }
21944
21945 # func_arith arithmetic-term...
21946 func_arith ()
21947 {
21948 func_arith_result=$(( $* ))
21949 }
21950
21951 # func_len string
21952 # STRING may not start with a hyphen.
21953 func_len ()
21954 {
21955 func_len_result=${#1}
21956 }
21957
21958 _LT_EOF
21959 ;;
21960 *) # Bourne compatible functions.
21961 cat << \_LT_EOF >> "$cfgfile"
21962
21963 # func_dirname file append nondir_replacement
21964 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21965 # otherwise set result to NONDIR_REPLACEMENT.
21966 func_dirname ()
21967 {
21968 # Extract subdirectory from the argument.
21969 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
21970 if test "X$func_dirname_result" = "X${1}"; then
21971 func_dirname_result="${3}"
21972 else
21973 func_dirname_result="$func_dirname_result${2}"
21974 fi
21975 }
21976
21977 # func_basename file
21978 func_basename ()
21979 {
21980 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
21981 }
21982
21983
21984 # func_stripname prefix suffix name
21985 # strip PREFIX and SUFFIX off of NAME.
21986 # PREFIX and SUFFIX must not contain globbing or regex special
21987 # characters, hashes, percent signs, but SUFFIX may contain a leading
21988 # dot (in which case that matches only a dot).
21989 # func_strip_suffix prefix name
21990 func_stripname ()
21991 {
21992 case ${2} in
21993 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
21994 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
21995 esac
21996 }
21997
21998 # sed scripts:
21999 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22000 my_sed_long_arg='1s/^-[^=]*=//'
22001
22002 # func_opt_split
22003 func_opt_split ()
22004 {
22005 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
22006 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
22007 }
22008
22009 # func_lo2o object
22010 func_lo2o ()
22011 {
22012 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
22013 }
22014
22015 # func_xform libobj-or-source
22016 func_xform ()
22017 {
22018 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
22019 }
22020
22021 # func_arith arithmetic-term...
22022 func_arith ()
22023 {
22024 func_arith_result=`expr "$@"`
22025 }
22026
22027 # func_len string
22028 # STRING may not start with a hyphen.
22029 func_len ()
22030 {
22031 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22032 }
22033
22034 _LT_EOF
22035 esac
22036
22037 case $lt_shell_append in
22038 yes)
22039 cat << \_LT_EOF >> "$cfgfile"
22040
22041 # func_append var value
22042 # Append VALUE to the end of shell variable VAR.
22043 func_append ()
22044 {
22045 eval "$1+=\$2"
22046 }
22047 _LT_EOF
22048 ;;
22049 *)
22050 cat << \_LT_EOF >> "$cfgfile"
22051
22052 # func_append var value
22053 # Append VALUE to the end of shell variable VAR.
22054 func_append ()
22055 {
22056 eval "$1=\$$1\$2"
22057 }
22058
22059 _LT_EOF
22060 ;;
22061 esac
22062
22063
22064 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22065 || (rm -f "$cfgfile"; exit 1)
22066
22067 mv -f "$cfgfile" "$ofile" ||
22068 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22069 chmod +x "$ofile"
22070
22071
22072 cat <<_LT_EOF >> "$ofile"
22073
22074 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22075
22076 # The linker used to build libraries.
22077 LD=$lt_LD_CXX
22078
22079 # How to create reloadable object files.
22080 reload_flag=$lt_reload_flag_CXX
22081 reload_cmds=$lt_reload_cmds_CXX
22082
22083 # Commands used to build an old-style archive.
22084 old_archive_cmds=$lt_old_archive_cmds_CXX
22085
22086 # A language specific compiler.
22087 CC=$lt_compiler_CXX
22088
22089 # Is the compiler the GNU compiler?
22090 with_gcc=$GCC_CXX
22091
22092 # Compiler flag to turn off builtin functions.
22093 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22094
22095 # How to pass a linker flag through the compiler.
22096 wl=$lt_lt_prog_compiler_wl_CXX
22097
22098 # Additional compiler flags for building library objects.
22099 pic_flag=$lt_lt_prog_compiler_pic_CXX
22100
22101 # Compiler flag to prevent dynamic linking.
22102 link_static_flag=$lt_lt_prog_compiler_static_CXX
22103
22104 # Does compiler simultaneously support -c and -o options?
22105 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22106
22107 # Whether or not to add -lc for building shared libraries.
22108 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22109
22110 # Whether or not to disallow shared libs when runtime libs are static.
22111 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22112
22113 # Compiler flag to allow reflexive dlopens.
22114 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22115
22116 # Compiler flag to generate shared objects directly from archives.
22117 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22118
22119 # Whether the compiler copes with passing no objects directly.
22120 compiler_needs_object=$lt_compiler_needs_object_CXX
22121
22122 # Create an old-style archive from a shared archive.
22123 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22124
22125 # Create a temporary old-style archive to link instead of a shared archive.
22126 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22127
22128 # Commands used to build a shared archive.
22129 archive_cmds=$lt_archive_cmds_CXX
22130 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22131
22132 # Commands used to build a loadable module if different from building
22133 # a shared archive.
22134 module_cmds=$lt_module_cmds_CXX
22135 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22136
22137 # Whether we are building with GNU ld or not.
22138 with_gnu_ld=$lt_with_gnu_ld_CXX
22139
22140 # Flag that allows shared libraries with undefined symbols to be built.
22141 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22142
22143 # Flag that enforces no undefined symbols.
22144 no_undefined_flag=$lt_no_undefined_flag_CXX
22145
22146 # Flag to hardcode \$libdir into a binary during linking.
22147 # This must work even if \$libdir does not exist
22148 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22149
22150 # If ld is used when linking, flag to hardcode \$libdir into a binary
22151 # during linking. This must work even if \$libdir does not exist.
22152 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22153
22154 # Whether we need a single "-rpath" flag with a separated argument.
22155 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22156
22157 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22158 # DIR into the resulting binary.
22159 hardcode_direct=$hardcode_direct_CXX
22160
22161 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22162 # DIR into the resulting binary and the resulting library dependency is
22163 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22164 # library is relocated.
22165 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22166
22167 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22168 # into the resulting binary.
22169 hardcode_minus_L=$hardcode_minus_L_CXX
22170
22171 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22172 # into the resulting binary.
22173 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22174
22175 # Set to "yes" if building a shared library automatically hardcodes DIR
22176 # into the library and all subsequent libraries and executables linked
22177 # against it.
22178 hardcode_automatic=$hardcode_automatic_CXX
22179
22180 # Set to yes if linker adds runtime paths of dependent libraries
22181 # to runtime path list.
22182 inherit_rpath=$inherit_rpath_CXX
22183
22184 # Whether libtool must link a program against all its dependency libraries.
22185 link_all_deplibs=$link_all_deplibs_CXX
22186
22187 # Fix the shell variable \$srcfile for the compiler.
22188 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22189
22190 # Set to "yes" if exported symbols are required.
22191 always_export_symbols=$always_export_symbols_CXX
22192
22193 # The commands to list exported symbols.
22194 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22195
22196 # Symbols that should not be listed in the preloaded symbols.
22197 exclude_expsyms=$lt_exclude_expsyms_CXX
22198
22199 # Symbols that must always be exported.
22200 include_expsyms=$lt_include_expsyms_CXX
22201
22202 # Commands necessary for linking programs (against libraries) with templates.
22203 prelink_cmds=$lt_prelink_cmds_CXX
22204
22205 # Specify filename containing input files.
22206 file_list_spec=$lt_file_list_spec_CXX
22207
22208 # How to hardcode a shared library path into an executable.
22209 hardcode_action=$hardcode_action_CXX
22210
22211 # The directories searched by this compiler when creating a shared library.
22212 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22213
22214 # Dependencies to place before and after the objects being linked to
22215 # create a shared library.
22216 predep_objects=$lt_predep_objects_CXX
22217 postdep_objects=$lt_postdep_objects_CXX
22218 predeps=$lt_predeps_CXX
22219 postdeps=$lt_postdeps_CXX
22220
22221 # The library search path used internally by the compiler when linking
22222 # a shared library.
22223 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22224
22225 # ### END LIBTOOL TAG CONFIG: CXX
22226 _LT_EOF
22227
22228 ;;
22229 "default-1":C)
22230 for ac_file in $CONFIG_FILES; do
22231 # Support "outfile[:infile[:infile...]]"
22232 case "$ac_file" in
22233 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22234 esac
22235 # PO directories have a Makefile.in generated from Makefile.in.in.
22236 case "$ac_file" in */Makefile.in)
22237 # Adjust a relative srcdir.
22238 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22239 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22240 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22241 # In autoconf-2.13 it is called $ac_given_srcdir.
22242 # In autoconf-2.50 it is called $srcdir.
22243 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22244 case "$ac_given_srcdir" in
22245 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22246 /*) top_srcdir="$ac_given_srcdir" ;;
22247 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22248 esac
22249 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22250 rm -f "$ac_dir/POTFILES"
22251 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22252 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22253 POMAKEFILEDEPS="POTFILES.in"
22254 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22255 # on $ac_dir but don't depend on user-specified configuration
22256 # parameters.
22257 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22258 # The LINGUAS file contains the set of available languages.
22259 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22260 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
22261 fi
22262 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22263 # Hide the ALL_LINGUAS assigment from automake.
22264 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22265 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22266 else
22267 # The set of available languages was given in configure.ac.
22268 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22269 fi
22270 case "$ac_given_srcdir" in
22271 .) srcdirpre= ;;
22272 *) srcdirpre='$(srcdir)/' ;;
22273 esac
22274 POFILES=
22275 GMOFILES=
22276 UPDATEPOFILES=
22277 DUMMYPOFILES=
22278 for lang in $ALL_LINGUAS; do
22279 POFILES="$POFILES $srcdirpre$lang.po"
22280 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22281 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22282 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22283 done
22284 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22285 # environment variable.
22286 INST_LINGUAS=
22287 if test -n "$ALL_LINGUAS"; then
22288 for presentlang in $ALL_LINGUAS; do
22289 useit=no
22290 if test "%UNSET%" != "$LINGUAS"; then
22291 desiredlanguages="$LINGUAS"
22292 else
22293 desiredlanguages="$ALL_LINGUAS"
22294 fi
22295 for desiredlang in $desiredlanguages; do
22296 # Use the presentlang catalog if desiredlang is
22297 # a. equal to presentlang, or
22298 # b. a variant of presentlang (because in this case,
22299 # presentlang can be used as a fallback for messages
22300 # which are not translated in the desiredlang catalog).
22301 case "$desiredlang" in
22302 "$presentlang"*) useit=yes;;
22303 esac
22304 done
22305 if test $useit = yes; then
22306 INST_LINGUAS="$INST_LINGUAS $presentlang"
22307 fi
22308 done
22309 fi
22310 CATALOGS=
22311 if test -n "$INST_LINGUAS"; then
22312 for lang in $INST_LINGUAS; do
22313 CATALOGS="$CATALOGS $lang.gmo"
22314 done
22315 fi
22316 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22317 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"
22318 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22319 if test -f "$f"; then
22320 case "$f" in
22321 *.orig | *.bak | *~) ;;
22322 *) cat "$f" >> "$ac_dir/Makefile" ;;
22323 esac
22324 fi
22325 done
22326 fi
22327 ;;
22328 esac
22329 done ;;
22330 "default-2":C)
22331 for ac_file in $CONFIG_FILES; do
22332 # Support "outfile[:infile[:infile...]]"
22333 case "$ac_file" in
22334 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22335 esac
22336 # PO directories have a Makefile.in generated from Makefile.in.in.
22337 case "$ac_file" in */Makefile.in)
22338 # Adjust a relative srcdir.
22339 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22340 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22341 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22342 # In autoconf-2.13 it is called $ac_given_srcdir.
22343 # In autoconf-2.50 it is called $srcdir.
22344 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22345 case "$ac_given_srcdir" in
22346 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22347 /*) top_srcdir="$ac_given_srcdir" ;;
22348 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22349 esac
22350 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22351 rm -f "$ac_dir/POTFILES"
22352 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22353 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22354 POMAKEFILEDEPS="POTFILES.in"
22355 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22356 # on $ac_dir but don't depend on user-specified configuration
22357 # parameters.
22358 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22359 # The LINGUAS file contains the set of available languages.
22360 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22361 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
22362 fi
22363 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22364 # Hide the ALL_LINGUAS assigment from automake.
22365 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22366 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22367 else
22368 # The set of available languages was given in configure.ac.
22369 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22370 fi
22371 case "$ac_given_srcdir" in
22372 .) srcdirpre= ;;
22373 *) srcdirpre='$(srcdir)/' ;;
22374 esac
22375 POFILES=
22376 GMOFILES=
22377 UPDATEPOFILES=
22378 DUMMYPOFILES=
22379 for lang in $ALL_LINGUAS; do
22380 POFILES="$POFILES $srcdirpre$lang.po"
22381 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22382 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22383 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22384 done
22385 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22386 # environment variable.
22387 INST_LINGUAS=
22388 if test -n "$ALL_LINGUAS"; then
22389 for presentlang in $ALL_LINGUAS; do
22390 useit=no
22391 if test "%UNSET%" != "$LINGUAS"; then
22392 desiredlanguages="$LINGUAS"
22393 else
22394 desiredlanguages="$ALL_LINGUAS"
22395 fi
22396 for desiredlang in $desiredlanguages; do
22397 # Use the presentlang catalog if desiredlang is
22398 # a. equal to presentlang, or
22399 # b. a variant of presentlang (because in this case,
22400 # presentlang can be used as a fallback for messages
22401 # which are not translated in the desiredlang catalog).
22402 case "$desiredlang" in
22403 "$presentlang"*) useit=yes;;
22404 esac
22405 done
22406 if test $useit = yes; then
22407 INST_LINGUAS="$INST_LINGUAS $presentlang"
22408 fi
22409 done
22410 fi
22411 CATALOGS=
22412 if test -n "$INST_LINGUAS"; then
22413 for lang in $INST_LINGUAS; do
22414 CATALOGS="$CATALOGS $lang.gmo"
22415 done
22416 fi
22417 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22418 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"
22419 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22420 if test -f "$f"; then
22421 case "$f" in
22422 *.orig | *.bak | *~) ;;
22423 *) cat "$f" >> "$ac_dir/Makefile" ;;
22424 esac
22425 fi
22426 done
22427 fi
22428 ;;
22429 esac
22430 done ;;
22431 "default":C)
22432 case "$srcdir" in
22433 .) srcdirpre= ;;
22434 *) srcdirpre='$(srcdir)/' ;;
22435 esac
22436 POFILES=
22437 GMOFILES=
22438 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
22439 if test $lang != dummy; then
22440 POFILES="$POFILES $srcdirpre$lang.po"
22441 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22442 fi
22443 done
22444 sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
22445 -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
22446 -e "s,@POFILES@,$POFILES," \
22447 -e "s,@GMOFILES@,$GMOFILES," \
22448 po/Makefile.in > po/Makefile ;;
22449
22450 esac
22451 done # for ac_tag
22452
22453
22454 as_fn_exit 0
22455 _ACEOF
22456 ac_clean_files=$ac_clean_files_save
22457
22458 test $ac_write_fail = 0 ||
22459 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22460
22461
22462 # configure is writing to config.log, and then calls config.status.
22463 # config.status does its own redirection, appending to config.log.
22464 # Unfortunately, on DOS this fails, as config.log is still kept open
22465 # by configure, so config.status won't be able to write to it; its
22466 # output is simply discarded. So we exec the FD to /dev/null,
22467 # effectively closing config.log, so it can be properly (re)opened and
22468 # appended to by config.status. When coming back to configure, we
22469 # need to make the FD available again.
22470 if test "$no_create" != yes; then
22471 ac_cs_success=:
22472 ac_config_status_args=
22473 test "$silent" = yes &&
22474 ac_config_status_args="$ac_config_status_args --quiet"
22475 exec 5>/dev/null
22476 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22477 exec 5>>config.log
22478 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22479 # would make configure fail if this is the last instruction.
22480 $ac_cs_success || as_fn_exit 1
22481 fi
22482 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22484 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22485 fi
22486
22487
22488
22489 touch config.status.tmp
22490 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
22491 sed '/as_fn_exit 0/i \
22492 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
22493 touch --reference=Makefile Makefile.tmp \
22494 mv Makefile.tmp Makefile \
22495 ' config.status > config.status.tmp
22496 touch --reference=config.status config.status.tmp
22497 mv config.status.tmp config.status
22498 chmod +x config.status
22499 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
22500 touch --reference=Makefile Makefile.tmp
22501 mv Makefile.tmp Makefile
22502 else
22503 rm -f config.status.tmp
22504 fi