]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/configure
Finalized intl-update patches
[thirdparty/binutils-gdb.git] / ld / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ld 2.41.50.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='ld'
589 PACKAGE_TARNAME='ld'
590 PACKAGE_VERSION='2.41.50'
591 PACKAGE_STRING='ld 2.41.50'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="ldmain.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 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_warn_execstack
856 enable_error_execstack
857 enable_warn_rwx_segments
858 enable_error_rwx_segments
859 enable_default_execstack
860 enable_error_handling_script
861 enable_default_hash_style
862 enable_initfini_array
863 enable_libctf
864 enable_jansson
865 enable_werror
866 enable_build_warnings
867 enable_nls
868 enable_rpath
869 with_libiconv_prefix
870 with_libiconv_type
871 with_libintl_prefix
872 with_libintl_type
873 with_system_zlib
874 with_zstd
875 '
876 ac_precious_vars='build_alias
877 host_alias
878 target_alias
879 CC
880 CFLAGS
881 LDFLAGS
882 LIBS
883 CPPFLAGS
884 CXX
885 CXXFLAGS
886 CCC
887 CPP
888 PKG_CONFIG
889 PKG_CONFIG_PATH
890 PKG_CONFIG_LIBDIR
891 CXXCPP
892 JANSSON_CFLAGS
893 JANSSON_LIBS
894 YACC
895 YFLAGS
896 ZSTD_CFLAGS
897 ZSTD_LIBS'
898
899
900 # Initialize some variables set by options.
901 ac_init_help=
902 ac_init_version=false
903 ac_unrecognized_opts=
904 ac_unrecognized_sep=
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
907 cache_file=/dev/null
908 exec_prefix=NONE
909 no_create=
910 no_recursion=
911 prefix=NONE
912 program_prefix=NONE
913 program_suffix=NONE
914 program_transform_name=s,x,x,
915 silent=
916 site=
917 srcdir=
918 verbose=
919 x_includes=NONE
920 x_libraries=NONE
921
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939 infodir='${datarootdir}/info'
940 htmldir='${docdir}'
941 dvidir='${docdir}'
942 pdfdir='${docdir}'
943 psdir='${docdir}'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
947
948 ac_prev=
949 ac_dashdash=
950 for ac_option
951 do
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\$ac_option
955 ac_prev=
956 continue
957 fi
958
959 case $ac_option in
960 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 *=) ac_optarg= ;;
962 *) ac_optarg=yes ;;
963 esac
964
965 # Accept the important Cygnus configure options, so we can diagnose typos.
966
967 case $ac_dashdash$ac_option in
968 --)
969 ac_dashdash=yes ;;
970
971 -bindir | --bindir | --bindi | --bind | --bin | --bi)
972 ac_prev=bindir ;;
973 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974 bindir=$ac_optarg ;;
975
976 -build | --build | --buil | --bui | --bu)
977 ac_prev=build_alias ;;
978 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979 build_alias=$ac_optarg ;;
980
981 -cache-file | --cache-file | --cache-fil | --cache-fi \
982 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983 ac_prev=cache_file ;;
984 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986 cache_file=$ac_optarg ;;
987
988 --config-cache | -C)
989 cache_file=config.cache ;;
990
991 -datadir | --datadir | --datadi | --datad)
992 ac_prev=datadir ;;
993 -datadir=* | --datadir=* | --datadi=* | --datad=*)
994 datadir=$ac_optarg ;;
995
996 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997 | --dataroo | --dataro | --datar)
998 ac_prev=datarootdir ;;
999 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001 datarootdir=$ac_optarg ;;
1002
1003 -disable-* | --disable-*)
1004 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007 as_fn_error $? "invalid feature name: $ac_useropt"
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1011 *"
1012 "enable_$ac_useropt"
1013 "*) ;;
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1016 esac
1017 eval enable_$ac_useropt=no ;;
1018
1019 -docdir | --docdir | --docdi | --doc | --do)
1020 ac_prev=docdir ;;
1021 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022 docdir=$ac_optarg ;;
1023
1024 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025 ac_prev=dvidir ;;
1026 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027 dvidir=$ac_optarg ;;
1028
1029 -enable-* | --enable-*)
1030 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033 as_fn_error $? "invalid feature name: $ac_useropt"
1034 ac_useropt_orig=$ac_useropt
1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1037 *"
1038 "enable_$ac_useropt"
1039 "*) ;;
1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041 ac_unrecognized_sep=', ';;
1042 esac
1043 eval enable_$ac_useropt=\$ac_optarg ;;
1044
1045 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047 | --exec | --exe | --ex)
1048 ac_prev=exec_prefix ;;
1049 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051 | --exec=* | --exe=* | --ex=*)
1052 exec_prefix=$ac_optarg ;;
1053
1054 -gas | --gas | --ga | --g)
1055 # Obsolete; use --with-gas.
1056 with_gas=yes ;;
1057
1058 -help | --help | --hel | --he | -h)
1059 ac_init_help=long ;;
1060 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061 ac_init_help=recursive ;;
1062 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063 ac_init_help=short ;;
1064
1065 -host | --host | --hos | --ho)
1066 ac_prev=host_alias ;;
1067 -host=* | --host=* | --hos=* | --ho=*)
1068 host_alias=$ac_optarg ;;
1069
1070 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071 ac_prev=htmldir ;;
1072 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073 | --ht=*)
1074 htmldir=$ac_optarg ;;
1075
1076 -includedir | --includedir | --includedi | --included | --include \
1077 | --includ | --inclu | --incl | --inc)
1078 ac_prev=includedir ;;
1079 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080 | --includ=* | --inclu=* | --incl=* | --inc=*)
1081 includedir=$ac_optarg ;;
1082
1083 -infodir | --infodir | --infodi | --infod | --info | --inf)
1084 ac_prev=infodir ;;
1085 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086 infodir=$ac_optarg ;;
1087
1088 -libdir | --libdir | --libdi | --libd)
1089 ac_prev=libdir ;;
1090 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091 libdir=$ac_optarg ;;
1092
1093 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094 | --libexe | --libex | --libe)
1095 ac_prev=libexecdir ;;
1096 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097 | --libexe=* | --libex=* | --libe=*)
1098 libexecdir=$ac_optarg ;;
1099
1100 -localedir | --localedir | --localedi | --localed | --locale)
1101 ac_prev=localedir ;;
1102 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103 localedir=$ac_optarg ;;
1104
1105 -localstatedir | --localstatedir | --localstatedi | --localstated \
1106 | --localstate | --localstat | --localsta | --localst | --locals)
1107 ac_prev=localstatedir ;;
1108 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110 localstatedir=$ac_optarg ;;
1111
1112 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113 ac_prev=mandir ;;
1114 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115 mandir=$ac_optarg ;;
1116
1117 -nfp | --nfp | --nf)
1118 # Obsolete; use --without-fp.
1119 with_fp=no ;;
1120
1121 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122 | --no-cr | --no-c | -n)
1123 no_create=yes ;;
1124
1125 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127 no_recursion=yes ;;
1128
1129 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131 | --oldin | --oldi | --old | --ol | --o)
1132 ac_prev=oldincludedir ;;
1133 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136 oldincludedir=$ac_optarg ;;
1137
1138 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139 ac_prev=prefix ;;
1140 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141 prefix=$ac_optarg ;;
1142
1143 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144 | --program-pre | --program-pr | --program-p)
1145 ac_prev=program_prefix ;;
1146 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148 program_prefix=$ac_optarg ;;
1149
1150 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151 | --program-suf | --program-su | --program-s)
1152 ac_prev=program_suffix ;;
1153 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155 program_suffix=$ac_optarg ;;
1156
1157 -program-transform-name | --program-transform-name \
1158 | --program-transform-nam | --program-transform-na \
1159 | --program-transform-n | --program-transform- \
1160 | --program-transform | --program-transfor \
1161 | --program-transfo | --program-transf \
1162 | --program-trans | --program-tran \
1163 | --progr-tra | --program-tr | --program-t)
1164 ac_prev=program_transform_name ;;
1165 -program-transform-name=* | --program-transform-name=* \
1166 | --program-transform-nam=* | --program-transform-na=* \
1167 | --program-transform-n=* | --program-transform-=* \
1168 | --program-transform=* | --program-transfor=* \
1169 | --program-transfo=* | --program-transf=* \
1170 | --program-trans=* | --program-tran=* \
1171 | --progr-tra=* | --program-tr=* | --program-t=*)
1172 program_transform_name=$ac_optarg ;;
1173
1174 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175 ac_prev=pdfdir ;;
1176 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177 pdfdir=$ac_optarg ;;
1178
1179 -psdir | --psdir | --psdi | --psd | --ps)
1180 ac_prev=psdir ;;
1181 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182 psdir=$ac_optarg ;;
1183
1184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185 | -silent | --silent | --silen | --sile | --sil)
1186 silent=yes ;;
1187
1188 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189 ac_prev=sbindir ;;
1190 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191 | --sbi=* | --sb=*)
1192 sbindir=$ac_optarg ;;
1193
1194 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196 | --sharedst | --shareds | --shared | --share | --shar \
1197 | --sha | --sh)
1198 ac_prev=sharedstatedir ;;
1199 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202 | --sha=* | --sh=*)
1203 sharedstatedir=$ac_optarg ;;
1204
1205 -site | --site | --sit)
1206 ac_prev=site ;;
1207 -site=* | --site=* | --sit=*)
1208 site=$ac_optarg ;;
1209
1210 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211 ac_prev=srcdir ;;
1212 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213 srcdir=$ac_optarg ;;
1214
1215 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216 | --syscon | --sysco | --sysc | --sys | --sy)
1217 ac_prev=sysconfdir ;;
1218 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220 sysconfdir=$ac_optarg ;;
1221
1222 -target | --target | --targe | --targ | --tar | --ta | --t)
1223 ac_prev=target_alias ;;
1224 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225 target_alias=$ac_optarg ;;
1226
1227 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228 verbose=yes ;;
1229
1230 -version | --version | --versio | --versi | --vers | -V)
1231 ac_init_version=: ;;
1232
1233 -with-* | --with-*)
1234 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237 as_fn_error $? "invalid package name: $ac_useropt"
1238 ac_useropt_orig=$ac_useropt
1239 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1241 *"
1242 "with_$ac_useropt"
1243 "*) ;;
1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1245 ac_unrecognized_sep=', ';;
1246 esac
1247 eval with_$ac_useropt=\$ac_optarg ;;
1248
1249 -without-* | --without-*)
1250 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253 as_fn_error $? "invalid package name: $ac_useropt"
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1257 *"
1258 "with_$ac_useropt"
1259 "*) ;;
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1262 esac
1263 eval with_$ac_useropt=no ;;
1264
1265 --x)
1266 # Obsolete; use --with-x.
1267 with_x=yes ;;
1268
1269 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1270 | --x-incl | --x-inc | --x-in | --x-i)
1271 ac_prev=x_includes ;;
1272 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1273 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1274 x_includes=$ac_optarg ;;
1275
1276 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1277 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1278 ac_prev=x_libraries ;;
1279 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1280 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1281 x_libraries=$ac_optarg ;;
1282
1283 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1284 Try \`$0 --help' for more information"
1285 ;;
1286
1287 *=*)
1288 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289 # Reject names that are not valid shell variable names.
1290 case $ac_envvar in #(
1291 '' | [0-9]* | *[!_$as_cr_alnum]* )
1292 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1293 esac
1294 eval $ac_envvar=\$ac_optarg
1295 export $ac_envvar ;;
1296
1297 *)
1298 # FIXME: should be removed in autoconf 3.0.
1299 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1300 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1302 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1303 ;;
1304
1305 esac
1306 done
1307
1308 if test -n "$ac_prev"; then
1309 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1310 as_fn_error $? "missing argument to $ac_option"
1311 fi
1312
1313 if test -n "$ac_unrecognized_opts"; then
1314 case $enable_option_checking in
1315 no) ;;
1316 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1317 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1318 esac
1319 fi
1320
1321 # Check all directory arguments for consistency.
1322 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323 datadir sysconfdir sharedstatedir localstatedir includedir \
1324 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325 libdir localedir mandir
1326 do
1327 eval ac_val=\$$ac_var
1328 # Remove trailing slashes.
1329 case $ac_val in
1330 */ )
1331 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1332 eval $ac_var=\$ac_val;;
1333 esac
1334 # Be sure to have absolute directory names.
1335 case $ac_val in
1336 [\\/$]* | ?:[\\/]* ) continue;;
1337 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1338 esac
1339 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1340 done
1341
1342 # There might be people who depend on the old broken behavior: `$host'
1343 # used to hold the argument of --host etc.
1344 # FIXME: To remove some day.
1345 build=$build_alias
1346 host=$host_alias
1347 target=$target_alias
1348
1349 # FIXME: To remove some day.
1350 if test "x$host_alias" != x; then
1351 if test "x$build_alias" = x; then
1352 cross_compiling=maybe
1353 elif test "x$build_alias" != "x$host_alias"; then
1354 cross_compiling=yes
1355 fi
1356 fi
1357
1358 ac_tool_prefix=
1359 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1360
1361 test "$silent" = yes && exec 6>/dev/null
1362
1363
1364 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1365 ac_ls_di=`ls -di .` &&
1366 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1367 as_fn_error $? "working directory cannot be determined"
1368 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1369 as_fn_error $? "pwd does not report name of working directory"
1370
1371
1372 # Find the source files, if location was not specified.
1373 if test -z "$srcdir"; then
1374 ac_srcdir_defaulted=yes
1375 # Try the directory containing this script, then the parent directory.
1376 ac_confdir=`$as_dirname -- "$as_myself" ||
1377 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1378 X"$as_myself" : 'X\(//\)[^/]' \| \
1379 X"$as_myself" : 'X\(//\)$' \| \
1380 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1381 $as_echo X"$as_myself" |
1382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1383 s//\1/
1384 q
1385 }
1386 /^X\(\/\/\)[^/].*/{
1387 s//\1/
1388 q
1389 }
1390 /^X\(\/\/\)$/{
1391 s//\1/
1392 q
1393 }
1394 /^X\(\/\).*/{
1395 s//\1/
1396 q
1397 }
1398 s/.*/./; q'`
1399 srcdir=$ac_confdir
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 srcdir=..
1402 fi
1403 else
1404 ac_srcdir_defaulted=no
1405 fi
1406 if test ! -r "$srcdir/$ac_unique_file"; then
1407 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1408 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1409 fi
1410 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1411 ac_abs_confdir=`(
1412 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1413 pwd)`
1414 # When building in place, set srcdir=.
1415 if test "$ac_abs_confdir" = "$ac_pwd"; then
1416 srcdir=.
1417 fi
1418 # Remove unnecessary trailing slashes from srcdir.
1419 # Double slashes in file names in object file debugging info
1420 # mess up M-x gdb in Emacs.
1421 case $srcdir in
1422 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423 esac
1424 for ac_var in $ac_precious_vars; do
1425 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_env_${ac_var}_value=\$${ac_var}
1427 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1429 done
1430
1431 #
1432 # Report the --help message.
1433 #
1434 if test "$ac_init_help" = "long"; then
1435 # Omit some internal or obsolete options to make the list less imposing.
1436 # This message is too long to be a string in the A/UX 3.1 sh.
1437 cat <<_ACEOF
1438 \`configure' configures ld 2.41.50 to adapt to many kinds of systems.
1439
1440 Usage: $0 [OPTION]... [VAR=VALUE]...
1441
1442 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443 VAR=VALUE. See below for descriptions of some of the useful variables.
1444
1445 Defaults for the options are specified in brackets.
1446
1447 Configuration:
1448 -h, --help display this help and exit
1449 --help=short display options specific to this package
1450 --help=recursive display the short help of all the included packages
1451 -V, --version display version information and exit
1452 -q, --quiet, --silent do not print \`checking ...' messages
1453 --cache-file=FILE cache test results in FILE [disabled]
1454 -C, --config-cache alias for \`--cache-file=config.cache'
1455 -n, --no-create do not create output files
1456 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1457
1458 Installation directories:
1459 --prefix=PREFIX install architecture-independent files in PREFIX
1460 [$ac_default_prefix]
1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1462 [PREFIX]
1463
1464 By default, \`make install' will install all the files in
1465 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1466 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467 for instance \`--prefix=\$HOME'.
1468
1469 For better control, use the options below.
1470
1471 Fine tuning of the installation directories:
1472 --bindir=DIR user executables [EPREFIX/bin]
1473 --sbindir=DIR system admin executables [EPREFIX/sbin]
1474 --libexecdir=DIR program executables [EPREFIX/libexec]
1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1478 --libdir=DIR object code libraries [EPREFIX/lib]
1479 --includedir=DIR C header files [PREFIX/include]
1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1483 --infodir=DIR info documentation [DATAROOTDIR/info]
1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1485 --mandir=DIR man documentation [DATAROOTDIR/man]
1486 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
1491 _ACEOF
1492
1493 cat <<\_ACEOF
1494
1495 Program names:
1496 --program-prefix=PREFIX prepend PREFIX to installed program names
1497 --program-suffix=SUFFIX append SUFFIX to installed program names
1498 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1499
1500 System types:
1501 --build=BUILD configure for building on BUILD [guessed]
1502 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503 --target=TARGET configure for building compilers for TARGET [HOST]
1504 _ACEOF
1505 fi
1506
1507 if test -n "$ac_init_help"; then
1508 case $ac_init_help in
1509 short | recursive ) echo "Configuration of ld 2.41.50:";;
1510 esac
1511 cat <<\_ACEOF
1512
1513 Optional Features:
1514 --disable-option-checking ignore unrecognized --enable/--with options
1515 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1516 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1517 --enable-silent-rules less verbose build output (undo: "make V=1")
1518 --disable-silent-rules verbose build output (undo: "make V=0")
1519 --enable-maintainer-mode
1520 enable make rules and dependencies not useful (and
1521 sometimes confusing) to the casual installer
1522 --enable-dependency-tracking
1523 do not reject slow dependency extractors
1524 --disable-dependency-tracking
1525 speeds up one-time build
1526 --enable-shared[=PKGS] build shared libraries [default=yes]
1527 --enable-static[=PKGS] build static libraries [default=yes]
1528 --enable-fast-install[=PKGS]
1529 optimize for fast installation [default=yes]
1530 --disable-libtool-lock avoid locking (might break parallel builds)
1531 --enable-plugins Enable support for plugins
1532 --disable-largefile omit support for large files
1533 --enable-checking enable run-time checks
1534 --enable-targets alternative target configurations
1535 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1536 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1537 --enable-got=<type> GOT handling scheme (target, single, negative,
1538 multigot)
1539 --enable-compressed-debug-sections={all,ld,none}
1540 compress debug sections by default]
1541 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1542 Default compression algorithm for
1543 --enable-compressed-debug-sections.
1544 --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default]
1545 --enable-relro enable -z relro in ELF linker by default
1546 --enable-textrel-check=[yes|no|warning|error]
1547 enable DT_TEXTREL check in ELF linker
1548 --enable-separate-code enable -z separate-code in ELF linker by default
1549 --enable-warn-execstack enable warnings when creating an executable stack
1550 --enable-error-execstack
1551 turn executable stack warnings into errors
1552 --enable-warn-rwx-segments
1553 enable warnings when creating segments with RWX
1554 permissions
1555 --enable-error-rwx-segments
1556 turn executable segment warnings into errors
1557 --enable-default-execstack
1558 create an executable stack if an input file is
1559 missing a .note.GNU-stack section
1560 --enable-error-handling-script
1561 enable/disable support for the
1562 --error-handling-script option
1563 --enable-default-hash-style={sysv,gnu,both}
1564 use this default hash style
1565 --disable-initfini-array do not use .init_array/.fini_array sections
1566 --enable-libctf Handle .ctf type-info sections [default=yes]
1567 --enable-jansson enable jansson [default=no]
1568 --enable-werror treat compile warnings as errors
1569 --enable-build-warnings enable build-time compiler warnings
1570 --disable-nls do not use Native Language Support
1571 --disable-rpath do not hardcode runtime library paths
1572
1573 Optional Packages:
1574 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1575 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1576 --with-pic try to use only PIC/non-PIC objects [default=use
1577 both]
1578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1579 --with-lib-path=dir1:dir2... set default LIB_PATH
1580 --with-sysroot=DIR Search for usr/lib et al within DIR.
1581 --with-gnu-ld assume the C compiler uses GNU ld default=no
1582 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1583 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1584 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1585 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1586 --without-libintl-prefix don't search for libintl in includedir and libdir
1587 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1588 --with-system-zlib use installed libz
1589 --with-zstd support zstd compressed debug sections
1590 (default=auto)
1591
1592 Some influential environment variables:
1593 CC C compiler command
1594 CFLAGS C compiler flags
1595 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1596 nonstandard directory <lib dir>
1597 LIBS libraries to pass to the linker, e.g. -l<library>
1598 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1599 you have headers in a nonstandard directory <include dir>
1600 CXX C++ compiler command
1601 CXXFLAGS C++ compiler flags
1602 CPP C preprocessor
1603 PKG_CONFIG path to pkg-config utility
1604 PKG_CONFIG_PATH
1605 directories to add to pkg-config's search path
1606 PKG_CONFIG_LIBDIR
1607 path overriding pkg-config's built-in search path
1608 CXXCPP C++ preprocessor
1609 JANSSON_CFLAGS
1610 C compiler flags for JANSSON, overriding pkg-config
1611 JANSSON_LIBS
1612 linker flags for JANSSON, overriding pkg-config
1613 YACC The `Yet Another Compiler Compiler' implementation to use.
1614 Defaults to the first program found out of: `bison -y', `byacc',
1615 `yacc'.
1616 YFLAGS The list of arguments that will be passed by default to $YACC.
1617 This script will default YFLAGS to the empty string to avoid a
1618 default value of `-d' given by some make applications.
1619 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1620 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1621
1622 Use these variables to override the choices made by `configure' or to help
1623 it to find libraries and programs with nonstandard names/locations.
1624
1625 Report bugs to the package provider.
1626 _ACEOF
1627 ac_status=$?
1628 fi
1629
1630 if test "$ac_init_help" = "recursive"; then
1631 # If there are subdirs, report their specific --help.
1632 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1633 test -d "$ac_dir" ||
1634 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1635 continue
1636 ac_builddir=.
1637
1638 case "$ac_dir" in
1639 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 *)
1641 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1642 # A ".." for each directory in $ac_dir_suffix.
1643 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1644 case $ac_top_builddir_sub in
1645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1647 esac ;;
1648 esac
1649 ac_abs_top_builddir=$ac_pwd
1650 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1651 # for backward compatibility:
1652 ac_top_builddir=$ac_top_build_prefix
1653
1654 case $srcdir in
1655 .) # We are building in place.
1656 ac_srcdir=.
1657 ac_top_srcdir=$ac_top_builddir_sub
1658 ac_abs_top_srcdir=$ac_pwd ;;
1659 [\\/]* | ?:[\\/]* ) # Absolute name.
1660 ac_srcdir=$srcdir$ac_dir_suffix;
1661 ac_top_srcdir=$srcdir
1662 ac_abs_top_srcdir=$srcdir ;;
1663 *) # Relative name.
1664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1665 ac_top_srcdir=$ac_top_build_prefix$srcdir
1666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1667 esac
1668 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1669
1670 cd "$ac_dir" || { ac_status=$?; continue; }
1671 # Check for guested configure.
1672 if test -f "$ac_srcdir/configure.gnu"; then
1673 echo &&
1674 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1675 elif test -f "$ac_srcdir/configure"; then
1676 echo &&
1677 $SHELL "$ac_srcdir/configure" --help=recursive
1678 else
1679 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1680 fi || ac_status=$?
1681 cd "$ac_pwd" || { ac_status=$?; break; }
1682 done
1683 fi
1684
1685 test -n "$ac_init_help" && exit $ac_status
1686 if $ac_init_version; then
1687 cat <<\_ACEOF
1688 ld configure 2.41.50
1689 generated by GNU Autoconf 2.69
1690
1691 Copyright (C) 2012 Free Software Foundation, Inc.
1692 This configure script is free software; the Free Software Foundation
1693 gives unlimited permission to copy, distribute and modify it.
1694 _ACEOF
1695 exit
1696 fi
1697
1698 ## ------------------------ ##
1699 ## Autoconf initialization. ##
1700 ## ------------------------ ##
1701
1702 # ac_fn_c_try_compile LINENO
1703 # --------------------------
1704 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_c_try_compile ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext
1709 if { { ac_try="$ac_compile"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_compile") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest.$ac_objext; then :
1728 ac_retval=0
1729 else
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1
1734 fi
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1737
1738 } # ac_fn_c_try_compile
1739
1740 # ac_fn_cxx_try_compile LINENO
1741 # ----------------------------
1742 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_cxx_try_compile ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext
1747 if { { ac_try="$ac_compile"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_compile") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_cxx_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest.$ac_objext; then :
1766 ac_retval=0
1767 else
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=1
1772 fi
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 as_fn_set_status $ac_retval
1775
1776 } # ac_fn_cxx_try_compile
1777
1778 # ac_fn_c_try_cpp LINENO
1779 # ----------------------
1780 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1781 ac_fn_c_try_cpp ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 if { { ac_try="$ac_cpp conftest.$ac_ext"
1785 case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1792 ac_status=$?
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1797 fi
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } > conftest.i && {
1800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1802 }; then :
1803 ac_retval=0
1804 else
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1807
1808 ac_retval=1
1809 fi
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1812
1813 } # ac_fn_c_try_cpp
1814
1815 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1816 # -------------------------------------------------------
1817 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1818 # the include files in INCLUDES and setting the cache variable VAR
1819 # accordingly.
1820 ac_fn_c_check_header_mongrel ()
1821 {
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if eval \${$3+:} false; then :
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1828 fi
1829 eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832 else
1833 # Is the header compilable?
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1835 $as_echo_n "checking $2 usability... " >&6; }
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 $4
1839 #include <$2>
1840 _ACEOF
1841 if ac_fn_c_try_compile "$LINENO"; then :
1842 ac_header_compiler=yes
1843 else
1844 ac_header_compiler=no
1845 fi
1846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1848 $as_echo "$ac_header_compiler" >&6; }
1849
1850 # Is the header present?
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1852 $as_echo_n "checking $2 presence... " >&6; }
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1855 #include <$2>
1856 _ACEOF
1857 if ac_fn_c_try_cpp "$LINENO"; then :
1858 ac_header_preproc=yes
1859 else
1860 ac_header_preproc=no
1861 fi
1862 rm -f conftest.err conftest.i conftest.$ac_ext
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1864 $as_echo "$ac_header_preproc" >&6; }
1865
1866 # So? What about this header?
1867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1868 yes:no: )
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1870 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1872 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1873 ;;
1874 no:yes:* )
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1876 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1878 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1880 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1882 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1884 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1885 ;;
1886 esac
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if eval \${$3+:} false; then :
1890 $as_echo_n "(cached) " >&6
1891 else
1892 eval "$3=\$ac_header_compiler"
1893 fi
1894 eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897 fi
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900 } # ac_fn_c_check_header_mongrel
1901
1902 # ac_fn_c_try_run LINENO
1903 # ----------------------
1904 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1905 # that executables *can* be run.
1906 ac_fn_c_try_run ()
1907 {
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 if { { ac_try="$ac_link"
1910 case "(($ac_try" in
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1913 esac
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_link") 2>&5
1917 ac_status=$?
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1920 { { case "(($ac_try" in
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1923 esac
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_try") 2>&5
1927 ac_status=$?
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; }; }; then :
1930 ac_retval=0
1931 else
1932 $as_echo "$as_me: program exited with status $ac_status" >&5
1933 $as_echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.$ac_ext >&5
1935
1936 ac_retval=$ac_status
1937 fi
1938 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 as_fn_set_status $ac_retval
1941
1942 } # ac_fn_c_try_run
1943
1944 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1945 # -------------------------------------------------------
1946 # Tests whether HEADER exists and can be compiled using the include files in
1947 # INCLUDES, setting the cache variable VAR accordingly.
1948 ac_fn_c_check_header_compile ()
1949 {
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1955 else
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1958 $4
1959 #include <$2>
1960 _ACEOF
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962 eval "$3=yes"
1963 else
1964 eval "$3=no"
1965 fi
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 fi
1968 eval ac_res=\$$3
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972
1973 } # ac_fn_c_check_header_compile
1974
1975 # ac_fn_c_try_link LINENO
1976 # -----------------------
1977 # Try to link conftest.$ac_ext, and return whether this succeeded.
1978 ac_fn_c_try_link ()
1979 {
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 rm -f conftest.$ac_objext conftest$ac_exeext
1982 if { { ac_try="$ac_link"
1983 case "(($ac_try" in
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1986 esac
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_link") 2>conftest.err
1990 ac_status=$?
1991 if test -s conftest.err; then
1992 grep -v '^ *+' conftest.err >conftest.er1
1993 cat conftest.er1 >&5
1994 mv -f conftest.er1 conftest.err
1995 fi
1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997 test $ac_status = 0; } && {
1998 test -z "$ac_c_werror_flag" ||
1999 test ! -s conftest.err
2000 } && test -s conftest$ac_exeext && {
2001 test "$cross_compiling" = yes ||
2002 test -x conftest$ac_exeext
2003 }; then :
2004 ac_retval=0
2005 else
2006 $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2008
2009 ac_retval=1
2010 fi
2011 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2012 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2013 # interfere with the next link command; also delete a directory that is
2014 # left behind by Apple's compiler. We do this before executing the actions.
2015 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017 as_fn_set_status $ac_retval
2018
2019 } # ac_fn_c_try_link
2020
2021 # ac_fn_c_check_func LINENO FUNC VAR
2022 # ----------------------------------
2023 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2024 ac_fn_c_check_func ()
2025 {
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028 $as_echo_n "checking for $2... " >&6; }
2029 if eval \${$3+:} false; then :
2030 $as_echo_n "(cached) " >&6
2031 else
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2034 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2036 #define $2 innocuous_$2
2037
2038 /* System header to define __stub macros and hopefully few prototypes,
2039 which can conflict with char $2 (); below.
2040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2041 <limits.h> exists even on freestanding compilers. */
2042
2043 #ifdef __STDC__
2044 # include <limits.h>
2045 #else
2046 # include <assert.h>
2047 #endif
2048
2049 #undef $2
2050
2051 /* Override any GCC internal prototype to avoid an error.
2052 Use char because int might match the return type of a GCC
2053 builtin and then its argument prototype would still apply. */
2054 #ifdef __cplusplus
2055 extern "C"
2056 #endif
2057 char $2 ();
2058 /* The GNU C library defines this for functions which it implements
2059 to always fail with ENOSYS. Some functions are actually named
2060 something starting with __ and the normal name is an alias. */
2061 #if defined __stub_$2 || defined __stub___$2
2062 choke me
2063 #endif
2064
2065 int
2066 main ()
2067 {
2068 return $2 ();
2069 ;
2070 return 0;
2071 }
2072 _ACEOF
2073 if ac_fn_c_try_link "$LINENO"; then :
2074 eval "$3=yes"
2075 else
2076 eval "$3=no"
2077 fi
2078 rm -f core conftest.err conftest.$ac_objext \
2079 conftest$ac_exeext conftest.$ac_ext
2080 fi
2081 eval ac_res=\$$3
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085
2086 } # ac_fn_c_check_func
2087
2088 # ac_fn_cxx_try_cpp LINENO
2089 # ------------------------
2090 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2091 ac_fn_cxx_try_cpp ()
2092 {
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 if { { ac_try="$ac_cpp conftest.$ac_ext"
2095 case "(($ac_try" in
2096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097 *) ac_try_echo=$ac_try;;
2098 esac
2099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100 $as_echo "$ac_try_echo"; } >&5
2101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2102 ac_status=$?
2103 if test -s conftest.err; then
2104 grep -v '^ *+' conftest.err >conftest.er1
2105 cat conftest.er1 >&5
2106 mv -f conftest.er1 conftest.err
2107 fi
2108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2109 test $ac_status = 0; } > conftest.i && {
2110 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2111 test ! -s conftest.err
2112 }; then :
2113 ac_retval=0
2114 else
2115 $as_echo "$as_me: failed program was:" >&5
2116 sed 's/^/| /' conftest.$ac_ext >&5
2117
2118 ac_retval=1
2119 fi
2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 as_fn_set_status $ac_retval
2122
2123 } # ac_fn_cxx_try_cpp
2124
2125 # ac_fn_cxx_try_link LINENO
2126 # -------------------------
2127 # Try to link conftest.$ac_ext, and return whether this succeeded.
2128 ac_fn_cxx_try_link ()
2129 {
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 rm -f conftest.$ac_objext conftest$ac_exeext
2132 if { { ac_try="$ac_link"
2133 case "(($ac_try" in
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2136 esac
2137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2138 $as_echo "$ac_try_echo"; } >&5
2139 (eval "$ac_link") 2>conftest.err
2140 ac_status=$?
2141 if test -s conftest.err; then
2142 grep -v '^ *+' conftest.err >conftest.er1
2143 cat conftest.er1 >&5
2144 mv -f conftest.er1 conftest.err
2145 fi
2146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2147 test $ac_status = 0; } && {
2148 test -z "$ac_cxx_werror_flag" ||
2149 test ! -s conftest.err
2150 } && test -s conftest$ac_exeext && {
2151 test "$cross_compiling" = yes ||
2152 test -x conftest$ac_exeext
2153 }; then :
2154 ac_retval=0
2155 else
2156 $as_echo "$as_me: failed program was:" >&5
2157 sed 's/^/| /' conftest.$ac_ext >&5
2158
2159 ac_retval=1
2160 fi
2161 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2162 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2163 # interfere with the next link command; also delete a directory that is
2164 # left behind by Apple's compiler. We do this before executing the actions.
2165 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 as_fn_set_status $ac_retval
2168
2169 } # ac_fn_cxx_try_link
2170
2171 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2172 # --------------------------------------------
2173 # Tries to find the compile-time value of EXPR in a program that includes
2174 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2175 # computed
2176 ac_fn_c_compute_int ()
2177 {
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 if test "$cross_compiling" = yes; then
2180 # Depending upon the size, compute the lo and hi bounds.
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2183 $4
2184 int
2185 main ()
2186 {
2187 static int test_array [1 - 2 * !(($2) >= 0)];
2188 test_array [0] = 0;
2189 return test_array [0];
2190
2191 ;
2192 return 0;
2193 }
2194 _ACEOF
2195 if ac_fn_c_try_compile "$LINENO"; then :
2196 ac_lo=0 ac_mid=0
2197 while :; do
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2200 $4
2201 int
2202 main ()
2203 {
2204 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2205 test_array [0] = 0;
2206 return test_array [0];
2207
2208 ;
2209 return 0;
2210 }
2211 _ACEOF
2212 if ac_fn_c_try_compile "$LINENO"; then :
2213 ac_hi=$ac_mid; break
2214 else
2215 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2216 if test $ac_lo -le $ac_mid; then
2217 ac_lo= ac_hi=
2218 break
2219 fi
2220 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2221 fi
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 done
2224 else
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2227 $4
2228 int
2229 main ()
2230 {
2231 static int test_array [1 - 2 * !(($2) < 0)];
2232 test_array [0] = 0;
2233 return test_array [0];
2234
2235 ;
2236 return 0;
2237 }
2238 _ACEOF
2239 if ac_fn_c_try_compile "$LINENO"; then :
2240 ac_hi=-1 ac_mid=-1
2241 while :; do
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2244 $4
2245 int
2246 main ()
2247 {
2248 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2249 test_array [0] = 0;
2250 return test_array [0];
2251
2252 ;
2253 return 0;
2254 }
2255 _ACEOF
2256 if ac_fn_c_try_compile "$LINENO"; then :
2257 ac_lo=$ac_mid; break
2258 else
2259 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2260 if test $ac_mid -le $ac_hi; then
2261 ac_lo= ac_hi=
2262 break
2263 fi
2264 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2265 fi
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 done
2268 else
2269 ac_lo= ac_hi=
2270 fi
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 fi
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 # Binary search between lo and hi bounds.
2275 while test "x$ac_lo" != "x$ac_hi"; do
2276 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2279 $4
2280 int
2281 main ()
2282 {
2283 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2284 test_array [0] = 0;
2285 return test_array [0];
2286
2287 ;
2288 return 0;
2289 }
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292 ac_hi=$ac_mid
2293 else
2294 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2295 fi
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 done
2298 case $ac_lo in #((
2299 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2300 '') ac_retval=1 ;;
2301 esac
2302 else
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2305 $4
2306 static long int longval () { return $2; }
2307 static unsigned long int ulongval () { return $2; }
2308 #include <stdio.h>
2309 #include <stdlib.h>
2310 int
2311 main ()
2312 {
2313
2314 FILE *f = fopen ("conftest.val", "w");
2315 if (! f)
2316 return 1;
2317 if (($2) < 0)
2318 {
2319 long int i = longval ();
2320 if (i != ($2))
2321 return 1;
2322 fprintf (f, "%ld", i);
2323 }
2324 else
2325 {
2326 unsigned long int i = ulongval ();
2327 if (i != ($2))
2328 return 1;
2329 fprintf (f, "%lu", i);
2330 }
2331 /* Do not output a trailing newline, as this causes \r\n confusion
2332 on some platforms. */
2333 return ferror (f) || fclose (f) != 0;
2334
2335 ;
2336 return 0;
2337 }
2338 _ACEOF
2339 if ac_fn_c_try_run "$LINENO"; then :
2340 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2341 else
2342 ac_retval=1
2343 fi
2344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2345 conftest.$ac_objext conftest.beam conftest.$ac_ext
2346 rm -f conftest.val
2347
2348 fi
2349 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2350 as_fn_set_status $ac_retval
2351
2352 } # ac_fn_c_compute_int
2353
2354 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2355 # ---------------------------------------------
2356 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2357 # accordingly.
2358 ac_fn_c_check_decl ()
2359 {
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 as_decl_name=`echo $2|sed 's/ *(.*//'`
2362 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2364 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2365 if eval \${$3+:} false; then :
2366 $as_echo_n "(cached) " >&6
2367 else
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h. */
2370 $4
2371 int
2372 main ()
2373 {
2374 #ifndef $as_decl_name
2375 #ifdef __cplusplus
2376 (void) $as_decl_use;
2377 #else
2378 (void) $as_decl_name;
2379 #endif
2380 #endif
2381
2382 ;
2383 return 0;
2384 }
2385 _ACEOF
2386 if ac_fn_c_try_compile "$LINENO"; then :
2387 eval "$3=yes"
2388 else
2389 eval "$3=no"
2390 fi
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 fi
2393 eval ac_res=\$$3
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2396 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2397
2398 } # ac_fn_c_check_decl
2399 cat >config.log <<_ACEOF
2400 This file contains any messages produced by compilers while
2401 running configure, to aid debugging if configure makes a mistake.
2402
2403 It was created by ld $as_me 2.41.50, which was
2404 generated by GNU Autoconf 2.69. Invocation command line was
2405
2406 $ $0 $@
2407
2408 _ACEOF
2409 exec 5>>config.log
2410 {
2411 cat <<_ASUNAME
2412 ## --------- ##
2413 ## Platform. ##
2414 ## --------- ##
2415
2416 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2417 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2418 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2419 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2420 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2421
2422 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2423 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2424
2425 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2426 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2427 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2428 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2429 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2430 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2431 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2432
2433 _ASUNAME
2434
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2437 do
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 $as_echo "PATH: $as_dir"
2441 done
2442 IFS=$as_save_IFS
2443
2444 } >&5
2445
2446 cat >&5 <<_ACEOF
2447
2448
2449 ## ----------- ##
2450 ## Core tests. ##
2451 ## ----------- ##
2452
2453 _ACEOF
2454
2455
2456 # Keep a trace of the command line.
2457 # Strip out --no-create and --no-recursion so they do not pile up.
2458 # Strip out --silent because we don't want to record it for future runs.
2459 # Also quote any args containing shell meta-characters.
2460 # Make two passes to allow for proper duplicate-argument suppression.
2461 ac_configure_args=
2462 ac_configure_args0=
2463 ac_configure_args1=
2464 ac_must_keep_next=false
2465 for ac_pass in 1 2
2466 do
2467 for ac_arg
2468 do
2469 case $ac_arg in
2470 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2471 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2472 | -silent | --silent | --silen | --sile | --sil)
2473 continue ;;
2474 *\'*)
2475 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2476 esac
2477 case $ac_pass in
2478 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2479 2)
2480 as_fn_append ac_configure_args1 " '$ac_arg'"
2481 if test $ac_must_keep_next = true; then
2482 ac_must_keep_next=false # Got value, back to normal.
2483 else
2484 case $ac_arg in
2485 *=* | --config-cache | -C | -disable-* | --disable-* \
2486 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2487 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2488 | -with-* | --with-* | -without-* | --without-* | --x)
2489 case "$ac_configure_args0 " in
2490 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2491 esac
2492 ;;
2493 -* ) ac_must_keep_next=true ;;
2494 esac
2495 fi
2496 as_fn_append ac_configure_args " '$ac_arg'"
2497 ;;
2498 esac
2499 done
2500 done
2501 { ac_configure_args0=; unset ac_configure_args0;}
2502 { ac_configure_args1=; unset ac_configure_args1;}
2503
2504 # When interrupted or exit'd, cleanup temporary files, and complete
2505 # config.log. We remove comments because anyway the quotes in there
2506 # would cause problems or look ugly.
2507 # WARNING: Use '\'' to represent an apostrophe within the trap.
2508 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2509 trap 'exit_status=$?
2510 # Save into config.log some information that might help in debugging.
2511 {
2512 echo
2513
2514 $as_echo "## ---------------- ##
2515 ## Cache variables. ##
2516 ## ---------------- ##"
2517 echo
2518 # The following way of writing the cache mishandles newlines in values,
2519 (
2520 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2521 eval ac_val=\$$ac_var
2522 case $ac_val in #(
2523 *${as_nl}*)
2524 case $ac_var in #(
2525 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2526 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2527 esac
2528 case $ac_var in #(
2529 _ | IFS | as_nl) ;; #(
2530 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2531 *) { eval $ac_var=; unset $ac_var;} ;;
2532 esac ;;
2533 esac
2534 done
2535 (set) 2>&1 |
2536 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2537 *${as_nl}ac_space=\ *)
2538 sed -n \
2539 "s/'\''/'\''\\\\'\'''\''/g;
2540 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2541 ;; #(
2542 *)
2543 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2544 ;;
2545 esac |
2546 sort
2547 )
2548 echo
2549
2550 $as_echo "## ----------------- ##
2551 ## Output variables. ##
2552 ## ----------------- ##"
2553 echo
2554 for ac_var in $ac_subst_vars
2555 do
2556 eval ac_val=\$$ac_var
2557 case $ac_val in
2558 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2559 esac
2560 $as_echo "$ac_var='\''$ac_val'\''"
2561 done | sort
2562 echo
2563
2564 if test -n "$ac_subst_files"; then
2565 $as_echo "## ------------------- ##
2566 ## File substitutions. ##
2567 ## ------------------- ##"
2568 echo
2569 for ac_var in $ac_subst_files
2570 do
2571 eval ac_val=\$$ac_var
2572 case $ac_val in
2573 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2574 esac
2575 $as_echo "$ac_var='\''$ac_val'\''"
2576 done | sort
2577 echo
2578 fi
2579
2580 if test -s confdefs.h; then
2581 $as_echo "## ----------- ##
2582 ## confdefs.h. ##
2583 ## ----------- ##"
2584 echo
2585 cat confdefs.h
2586 echo
2587 fi
2588 test "$ac_signal" != 0 &&
2589 $as_echo "$as_me: caught signal $ac_signal"
2590 $as_echo "$as_me: exit $exit_status"
2591 } >&5
2592 rm -f core *.core core.conftest.* &&
2593 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2594 exit $exit_status
2595 ' 0
2596 for ac_signal in 1 2 13 15; do
2597 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2598 done
2599 ac_signal=0
2600
2601 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2602 rm -f -r conftest* confdefs.h
2603
2604 $as_echo "/* confdefs.h */" > confdefs.h
2605
2606 # Predefined preprocessor variables.
2607
2608 cat >>confdefs.h <<_ACEOF
2609 #define PACKAGE_NAME "$PACKAGE_NAME"
2610 _ACEOF
2611
2612 cat >>confdefs.h <<_ACEOF
2613 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2614 _ACEOF
2615
2616 cat >>confdefs.h <<_ACEOF
2617 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2618 _ACEOF
2619
2620 cat >>confdefs.h <<_ACEOF
2621 #define PACKAGE_STRING "$PACKAGE_STRING"
2622 _ACEOF
2623
2624 cat >>confdefs.h <<_ACEOF
2625 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2626 _ACEOF
2627
2628 cat >>confdefs.h <<_ACEOF
2629 #define PACKAGE_URL "$PACKAGE_URL"
2630 _ACEOF
2631
2632
2633 # Let the site file select an alternate cache file if it wants to.
2634 # Prefer an explicitly selected file to automatically selected ones.
2635 ac_site_file1=NONE
2636 ac_site_file2=NONE
2637 if test -n "$CONFIG_SITE"; then
2638 # We do not want a PATH search for config.site.
2639 case $CONFIG_SITE in #((
2640 -*) ac_site_file1=./$CONFIG_SITE;;
2641 */*) ac_site_file1=$CONFIG_SITE;;
2642 *) ac_site_file1=./$CONFIG_SITE;;
2643 esac
2644 elif test "x$prefix" != xNONE; then
2645 ac_site_file1=$prefix/share/config.site
2646 ac_site_file2=$prefix/etc/config.site
2647 else
2648 ac_site_file1=$ac_default_prefix/share/config.site
2649 ac_site_file2=$ac_default_prefix/etc/config.site
2650 fi
2651 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2652 do
2653 test "x$ac_site_file" = xNONE && continue
2654 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2656 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2657 sed 's/^/| /' "$ac_site_file" >&5
2658 . "$ac_site_file" \
2659 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2661 as_fn_error $? "failed to load site script $ac_site_file
2662 See \`config.log' for more details" "$LINENO" 5; }
2663 fi
2664 done
2665
2666 if test -r "$cache_file"; then
2667 # Some versions of bash will fail to source /dev/null (special files
2668 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2669 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2671 $as_echo "$as_me: loading cache $cache_file" >&6;}
2672 case $cache_file in
2673 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2674 *) . "./$cache_file";;
2675 esac
2676 fi
2677 else
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2679 $as_echo "$as_me: creating cache $cache_file" >&6;}
2680 >$cache_file
2681 fi
2682
2683 gt_needs="$gt_needs "
2684 as_fn_append ac_header_list " stdlib.h"
2685 as_fn_append ac_header_list " unistd.h"
2686 as_fn_append ac_header_list " sys/param.h"
2687 # Check that the precious variables saved in the cache have kept the same
2688 # value.
2689 ac_cache_corrupted=false
2690 for ac_var in $ac_precious_vars; do
2691 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2692 eval ac_new_set=\$ac_env_${ac_var}_set
2693 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2694 eval ac_new_val=\$ac_env_${ac_var}_value
2695 case $ac_old_set,$ac_new_set in
2696 set,)
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2698 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2699 ac_cache_corrupted=: ;;
2700 ,set)
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2702 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2703 ac_cache_corrupted=: ;;
2704 ,);;
2705 *)
2706 if test "x$ac_old_val" != "x$ac_new_val"; then
2707 # differences in whitespace do not lead to failure.
2708 ac_old_val_w=`echo x $ac_old_val`
2709 ac_new_val_w=`echo x $ac_new_val`
2710 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2712 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2713 ac_cache_corrupted=:
2714 else
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2716 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2717 eval $ac_var=\$ac_old_val
2718 fi
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2720 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2722 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2723 fi;;
2724 esac
2725 # Pass precious variables to config.status.
2726 if test "$ac_new_set" = set; then
2727 case $ac_new_val in
2728 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2729 *) ac_arg=$ac_var=$ac_new_val ;;
2730 esac
2731 case " $ac_configure_args " in
2732 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2733 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2734 esac
2735 fi
2736 done
2737 if $ac_cache_corrupted; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2741 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2742 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2743 fi
2744 ## -------------------- ##
2745 ## Main body of script. ##
2746 ## -------------------- ##
2747
2748 ac_ext=c
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753
2754
2755
2756
2757
2758
2759
2760 ac_aux_dir=
2761 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2762 if test -f "$ac_dir/install-sh"; then
2763 ac_aux_dir=$ac_dir
2764 ac_install_sh="$ac_aux_dir/install-sh -c"
2765 break
2766 elif test -f "$ac_dir/install.sh"; then
2767 ac_aux_dir=$ac_dir
2768 ac_install_sh="$ac_aux_dir/install.sh -c"
2769 break
2770 elif test -f "$ac_dir/shtool"; then
2771 ac_aux_dir=$ac_dir
2772 ac_install_sh="$ac_aux_dir/shtool install -c"
2773 break
2774 fi
2775 done
2776 if test -z "$ac_aux_dir"; then
2777 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2778 fi
2779
2780 # These three variables are undocumented and unsupported,
2781 # and are intended to be withdrawn in a future Autoconf release.
2782 # They can cause serious problems if a builder's source tree is in a directory
2783 # whose full name contains unusual characters.
2784 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2785 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2786 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2787
2788
2789 # Make sure we can run config.sub.
2790 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2791 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2792
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2794 $as_echo_n "checking build system type... " >&6; }
2795 if ${ac_cv_build+:} false; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 ac_build_alias=$build_alias
2799 test "x$ac_build_alias" = x &&
2800 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2801 test "x$ac_build_alias" = x &&
2802 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2803 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2804 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2805
2806 fi
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2808 $as_echo "$ac_cv_build" >&6; }
2809 case $ac_cv_build in
2810 *-*-*) ;;
2811 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2812 esac
2813 build=$ac_cv_build
2814 ac_save_IFS=$IFS; IFS='-'
2815 set x $ac_cv_build
2816 shift
2817 build_cpu=$1
2818 build_vendor=$2
2819 shift; shift
2820 # Remember, the first character of IFS is used to create $*,
2821 # except with old shells:
2822 build_os=$*
2823 IFS=$ac_save_IFS
2824 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2825
2826
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2828 $as_echo_n "checking host system type... " >&6; }
2829 if ${ac_cv_host+:} false; then :
2830 $as_echo_n "(cached) " >&6
2831 else
2832 if test "x$host_alias" = x; then
2833 ac_cv_host=$ac_cv_build
2834 else
2835 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2836 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2837 fi
2838
2839 fi
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2841 $as_echo "$ac_cv_host" >&6; }
2842 case $ac_cv_host in
2843 *-*-*) ;;
2844 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2845 esac
2846 host=$ac_cv_host
2847 ac_save_IFS=$IFS; IFS='-'
2848 set x $ac_cv_host
2849 shift
2850 host_cpu=$1
2851 host_vendor=$2
2852 shift; shift
2853 # Remember, the first character of IFS is used to create $*,
2854 # except with old shells:
2855 host_os=$*
2856 IFS=$ac_save_IFS
2857 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2858
2859
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2861 $as_echo_n "checking target system type... " >&6; }
2862 if ${ac_cv_target+:} false; then :
2863 $as_echo_n "(cached) " >&6
2864 else
2865 if test "x$target_alias" = x; then
2866 ac_cv_target=$ac_cv_host
2867 else
2868 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2869 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2870 fi
2871
2872 fi
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2874 $as_echo "$ac_cv_target" >&6; }
2875 case $ac_cv_target in
2876 *-*-*) ;;
2877 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2878 esac
2879 target=$ac_cv_target
2880 ac_save_IFS=$IFS; IFS='-'
2881 set x $ac_cv_target
2882 shift
2883 target_cpu=$1
2884 target_vendor=$2
2885 shift; shift
2886 # Remember, the first character of IFS is used to create $*,
2887 # except with old shells:
2888 target_os=$*
2889 IFS=$ac_save_IFS
2890 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2891
2892
2893 # The aliases save the names the user supplied, while $host etc.
2894 # will get canonicalized.
2895 test -n "$target_alias" &&
2896 test "$program_prefix$program_suffix$program_transform_name" = \
2897 NONENONEs,x,x, &&
2898 program_prefix=${target_alias}-
2899
2900
2901 am__api_version='1.15'
2902
2903 # Find a good install program. We prefer a C program (faster),
2904 # so one script is as good as another. But avoid the broken or
2905 # incompatible versions:
2906 # SysV /etc/install, /usr/sbin/install
2907 # SunOS /usr/etc/install
2908 # IRIX /sbin/install
2909 # AIX /bin/install
2910 # AmigaOS /C/install, which installs bootblocks on floppy discs
2911 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2912 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2913 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2914 # OS/2's system install, which has a completely different semantic
2915 # ./install, which can be erroneously created by make from ./install.sh.
2916 # Reject install programs that cannot install multiple files.
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2918 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2919 if test -z "$INSTALL"; then
2920 if ${ac_cv_path_install+:} false; then :
2921 $as_echo_n "(cached) " >&6
2922 else
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2925 do
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 # Account for people who put trailing slashes in PATH elements.
2929 case $as_dir/ in #((
2930 ./ | .// | /[cC]/* | \
2931 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2932 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2933 /usr/ucb/* ) ;;
2934 *)
2935 # OSF1 and SCO ODT 3.0 have their own names for install.
2936 # Don't use installbsd from OSF since it installs stuff as root
2937 # by default.
2938 for ac_prog in ginstall scoinst install; do
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2941 if test $ac_prog = install &&
2942 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2943 # AIX install. It has an incompatible calling convention.
2944 :
2945 elif test $ac_prog = install &&
2946 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2947 # program-specific install script used by HP pwplus--don't use.
2948 :
2949 else
2950 rm -rf conftest.one conftest.two conftest.dir
2951 echo one > conftest.one
2952 echo two > conftest.two
2953 mkdir conftest.dir
2954 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2955 test -s conftest.one && test -s conftest.two &&
2956 test -s conftest.dir/conftest.one &&
2957 test -s conftest.dir/conftest.two
2958 then
2959 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2960 break 3
2961 fi
2962 fi
2963 fi
2964 done
2965 done
2966 ;;
2967 esac
2968
2969 done
2970 IFS=$as_save_IFS
2971
2972 rm -rf conftest.one conftest.two conftest.dir
2973
2974 fi
2975 if test "${ac_cv_path_install+set}" = set; then
2976 INSTALL=$ac_cv_path_install
2977 else
2978 # As a last resort, use the slow shell script. Don't cache a
2979 # value for INSTALL within a source directory, because that will
2980 # break other packages using the cache if that directory is
2981 # removed, or if the value is a relative name.
2982 INSTALL=$ac_install_sh
2983 fi
2984 fi
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2986 $as_echo "$INSTALL" >&6; }
2987
2988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2989 # It thinks the first close brace ends the variable substitution.
2990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2991
2992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2993
2994 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2995
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2997 $as_echo_n "checking whether build environment is sane... " >&6; }
2998 # Reject unsafe characters in $srcdir or the absolute working directory
2999 # name. Accept space and tab only in the latter.
3000 am_lf='
3001 '
3002 case `pwd` in
3003 *[\\\"\#\$\&\'\`$am_lf]*)
3004 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3005 esac
3006 case $srcdir in
3007 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3008 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3009 esac
3010
3011 # Do 'set' in a subshell so we don't clobber the current shell's
3012 # arguments. Must try -L first in case configure is actually a
3013 # symlink; some systems play weird games with the mod time of symlinks
3014 # (eg FreeBSD returns the mod time of the symlink's containing
3015 # directory).
3016 if (
3017 am_has_slept=no
3018 for am_try in 1 2; do
3019 echo "timestamp, slept: $am_has_slept" > conftest.file
3020 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3021 if test "$*" = "X"; then
3022 # -L didn't work.
3023 set X `ls -t "$srcdir/configure" conftest.file`
3024 fi
3025 if test "$*" != "X $srcdir/configure conftest.file" \
3026 && test "$*" != "X conftest.file $srcdir/configure"; then
3027
3028 # If neither matched, then we have a broken ls. This can happen
3029 # if, for instance, CONFIG_SHELL is bash and it inherits a
3030 # broken ls alias from the environment. This has actually
3031 # happened. Such a system could not be considered "sane".
3032 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3033 alias in your environment" "$LINENO" 5
3034 fi
3035 if test "$2" = conftest.file || test $am_try -eq 2; then
3036 break
3037 fi
3038 # Just in case.
3039 sleep 1
3040 am_has_slept=yes
3041 done
3042 test "$2" = conftest.file
3043 )
3044 then
3045 # Ok.
3046 :
3047 else
3048 as_fn_error $? "newly created file is older than distributed files!
3049 Check your system clock" "$LINENO" 5
3050 fi
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3052 $as_echo "yes" >&6; }
3053 # If we didn't sleep, we still need to ensure time stamps of config.status and
3054 # generated files are strictly newer.
3055 am_sleep_pid=
3056 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3057 ( sleep 1 ) &
3058 am_sleep_pid=$!
3059 fi
3060
3061 rm -f conftest.file
3062
3063 test "$program_prefix" != NONE &&
3064 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3065 # Use a double $ so make ignores it.
3066 test "$program_suffix" != NONE &&
3067 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3068 # Double any \ or $.
3069 # By default was `s,x,x', remove it if useless.
3070 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3071 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3072
3073 # Expand $ac_aux_dir to an absolute path.
3074 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3075
3076 if test x"${MISSING+set}" != xset; then
3077 case $am_aux_dir in
3078 *\ * | *\ *)
3079 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3080 *)
3081 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3082 esac
3083 fi
3084 # Use eval to expand $SHELL
3085 if eval "$MISSING --is-lightweight"; then
3086 am_missing_run="$MISSING "
3087 else
3088 am_missing_run=
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3090 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3091 fi
3092
3093 if test x"${install_sh+set}" != xset; then
3094 case $am_aux_dir in
3095 *\ * | *\ *)
3096 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3097 *)
3098 install_sh="\${SHELL} $am_aux_dir/install-sh"
3099 esac
3100 fi
3101
3102 # Installed binaries are usually stripped using 'strip' when the user
3103 # run "make install-strip". However 'strip' might not be the right
3104 # tool to use in cross-compilation environments, therefore Automake
3105 # will honor the 'STRIP' environment variable to overrule this program.
3106 if test "$cross_compiling" != no; then
3107 if test -n "$ac_tool_prefix"; then
3108 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3109 set dummy ${ac_tool_prefix}strip; ac_word=$2
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111 $as_echo_n "checking for $ac_word... " >&6; }
3112 if ${ac_cv_prog_STRIP+:} false; then :
3113 $as_echo_n "(cached) " >&6
3114 else
3115 if test -n "$STRIP"; then
3116 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3117 else
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 for as_dir in $PATH
3120 do
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3128 fi
3129 done
3130 done
3131 IFS=$as_save_IFS
3132
3133 fi
3134 fi
3135 STRIP=$ac_cv_prog_STRIP
3136 if test -n "$STRIP"; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3138 $as_echo "$STRIP" >&6; }
3139 else
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 $as_echo "no" >&6; }
3142 fi
3143
3144
3145 fi
3146 if test -z "$ac_cv_prog_STRIP"; then
3147 ac_ct_STRIP=$STRIP
3148 # Extract the first word of "strip", so it can be a program name with args.
3149 set dummy strip; ac_word=$2
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3153 $as_echo_n "(cached) " >&6
3154 else
3155 if test -n "$ac_ct_STRIP"; then
3156 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3157 else
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 for as_dir in $PATH
3160 do
3161 IFS=$as_save_IFS
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3165 ac_cv_prog_ac_ct_STRIP="strip"
3166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 break 2
3168 fi
3169 done
3170 done
3171 IFS=$as_save_IFS
3172
3173 fi
3174 fi
3175 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3176 if test -n "$ac_ct_STRIP"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3178 $as_echo "$ac_ct_STRIP" >&6; }
3179 else
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3182 fi
3183
3184 if test "x$ac_ct_STRIP" = x; then
3185 STRIP=":"
3186 else
3187 case $cross_compiling:$ac_tool_warned in
3188 yes:)
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3191 ac_tool_warned=yes ;;
3192 esac
3193 STRIP=$ac_ct_STRIP
3194 fi
3195 else
3196 STRIP="$ac_cv_prog_STRIP"
3197 fi
3198
3199 fi
3200 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3201
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3203 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3204 if test -z "$MKDIR_P"; then
3205 if ${ac_cv_path_mkdir+:} false; then :
3206 $as_echo_n "(cached) " >&6
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3210 do
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_prog in mkdir gmkdir; do
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3216 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3217 'mkdir (GNU coreutils) '* | \
3218 'mkdir (coreutils) '* | \
3219 'mkdir (fileutils) '4.1*)
3220 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3221 break 3;;
3222 esac
3223 done
3224 done
3225 done
3226 IFS=$as_save_IFS
3227
3228 fi
3229
3230 test -d ./--version && rmdir ./--version
3231 if test "${ac_cv_path_mkdir+set}" = set; then
3232 MKDIR_P="$ac_cv_path_mkdir -p"
3233 else
3234 # As a last resort, use the slow shell script. Don't cache a
3235 # value for MKDIR_P within a source directory, because that will
3236 # break other packages using the cache if that directory is
3237 # removed, or if the value is a relative name.
3238 MKDIR_P="$ac_install_sh -d"
3239 fi
3240 fi
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3242 $as_echo "$MKDIR_P" >&6; }
3243
3244 for ac_prog in gawk mawk nawk awk
3245 do
3246 # Extract the first word of "$ac_prog", so it can be a program name with args.
3247 set dummy $ac_prog; ac_word=$2
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249 $as_echo_n "checking for $ac_word... " >&6; }
3250 if ${ac_cv_prog_AWK+:} false; then :
3251 $as_echo_n "(cached) " >&6
3252 else
3253 if test -n "$AWK"; then
3254 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3255 else
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3258 do
3259 IFS=$as_save_IFS
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_AWK="$ac_prog"
3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 break 2
3266 fi
3267 done
3268 done
3269 IFS=$as_save_IFS
3270
3271 fi
3272 fi
3273 AWK=$ac_cv_prog_AWK
3274 if test -n "$AWK"; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3276 $as_echo "$AWK" >&6; }
3277 else
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3280 fi
3281
3282
3283 test -n "$AWK" && break
3284 done
3285
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3287 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3288 set x ${MAKE-make}
3289 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3290 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3291 $as_echo_n "(cached) " >&6
3292 else
3293 cat >conftest.make <<\_ACEOF
3294 SHELL = /bin/sh
3295 all:
3296 @echo '@@@%%%=$(MAKE)=@@@%%%'
3297 _ACEOF
3298 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3299 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3300 *@@@%%%=?*=@@@%%%*)
3301 eval ac_cv_prog_make_${ac_make}_set=yes;;
3302 *)
3303 eval ac_cv_prog_make_${ac_make}_set=no;;
3304 esac
3305 rm -f conftest.make
3306 fi
3307 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3309 $as_echo "yes" >&6; }
3310 SET_MAKE=
3311 else
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3314 SET_MAKE="MAKE=${MAKE-make}"
3315 fi
3316
3317 rm -rf .tst 2>/dev/null
3318 mkdir .tst 2>/dev/null
3319 if test -d .tst; then
3320 am__leading_dot=.
3321 else
3322 am__leading_dot=_
3323 fi
3324 rmdir .tst 2>/dev/null
3325
3326 # Check whether --enable-silent-rules was given.
3327 if test "${enable_silent_rules+set}" = set; then :
3328 enableval=$enable_silent_rules;
3329 fi
3330
3331 case $enable_silent_rules in # (((
3332 yes) AM_DEFAULT_VERBOSITY=0;;
3333 no) AM_DEFAULT_VERBOSITY=1;;
3334 *) AM_DEFAULT_VERBOSITY=1;;
3335 esac
3336 am_make=${MAKE-make}
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3338 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3339 if ${am_cv_make_support_nested_variables+:} false; then :
3340 $as_echo_n "(cached) " >&6
3341 else
3342 if $as_echo 'TRUE=$(BAR$(V))
3343 BAR0=false
3344 BAR1=true
3345 V=1
3346 am__doit:
3347 @$(TRUE)
3348 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3349 am_cv_make_support_nested_variables=yes
3350 else
3351 am_cv_make_support_nested_variables=no
3352 fi
3353 fi
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3355 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3356 if test $am_cv_make_support_nested_variables = yes; then
3357 AM_V='$(V)'
3358 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3359 else
3360 AM_V=$AM_DEFAULT_VERBOSITY
3361 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3362 fi
3363 AM_BACKSLASH='\'
3364
3365 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3366 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3367 # is not polluted with repeated "-I."
3368 am__isrc=' -I$(srcdir)'
3369 # test to see if srcdir already configured
3370 if test -f $srcdir/config.status; then
3371 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3372 fi
3373 fi
3374
3375 # test whether we have cygpath
3376 if test -z "$CYGPATH_W"; then
3377 if (cygpath --version) >/dev/null 2>/dev/null; then
3378 CYGPATH_W='cygpath -w'
3379 else
3380 CYGPATH_W=echo
3381 fi
3382 fi
3383
3384
3385 # Define the identity of the package.
3386 PACKAGE='ld'
3387 VERSION='2.41.50'
3388
3389
3390 cat >>confdefs.h <<_ACEOF
3391 #define PACKAGE "$PACKAGE"
3392 _ACEOF
3393
3394
3395 cat >>confdefs.h <<_ACEOF
3396 #define VERSION "$VERSION"
3397 _ACEOF
3398
3399 # Some tools Automake needs.
3400
3401 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3402
3403
3404 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3405
3406
3407 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3408
3409
3410 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3411
3412
3413 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3414
3415 # For better backward compatibility. To be removed once Automake 1.9.x
3416 # dies out for good. For more background, see:
3417 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3418 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3419 mkdir_p='$(MKDIR_P)'
3420
3421 # We need awk for the "check" target (and possibly the TAP driver). The
3422 # system "awk" is bad on some platforms.
3423 # Always define AMTAR for backward compatibility. Yes, it's still used
3424 # in the wild :-( We should find a proper way to deprecate it ...
3425 AMTAR='$${TAR-tar}'
3426
3427
3428 # We'll loop over all known methods to create a tar archive until one works.
3429 _am_tools='gnutar pax cpio none'
3430
3431 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3432
3433
3434
3435
3436
3437
3438 # POSIX will say in a future version that running "rm -f" with no argument
3439 # is OK; and we want to be able to make that assumption in our Makefile
3440 # recipes. So use an aggressive probe to check that the usage we want is
3441 # actually supported "in the wild" to an acceptable degree.
3442 # See automake bug#10828.
3443 # To make any issue more visible, cause the running configure to be aborted
3444 # by default if the 'rm' program in use doesn't match our expectations; the
3445 # user can still override this though.
3446 if rm -f && rm -fr && rm -rf; then : OK; else
3447 cat >&2 <<'END'
3448 Oops!
3449
3450 Your 'rm' program seems unable to run without file operands specified
3451 on the command line, even when the '-f' option is present. This is contrary
3452 to the behaviour of most rm programs out there, and not conforming with
3453 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3454
3455 Please tell bug-automake@gnu.org about your system, including the value
3456 of your $PATH and any error possibly output before this message. This
3457 can help us improve future automake versions.
3458
3459 END
3460 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3461 echo 'Configuration will proceed anyway, since you have set the' >&2
3462 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3463 echo >&2
3464 else
3465 cat >&2 <<'END'
3466 Aborting the configuration process, to ensure you take notice of the issue.
3467
3468 You can download and install GNU coreutils to get an 'rm' implementation
3469 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3470
3471 If you want to complete the configuration process using your problematic
3472 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3473 to "yes", and re-run configure.
3474
3475 END
3476 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3477 fi
3478 fi
3479
3480 # Check whether --enable-silent-rules was given.
3481 if test "${enable_silent_rules+set}" = set; then :
3482 enableval=$enable_silent_rules;
3483 fi
3484
3485 case $enable_silent_rules in # (((
3486 yes) AM_DEFAULT_VERBOSITY=0;;
3487 no) AM_DEFAULT_VERBOSITY=1;;
3488 *) AM_DEFAULT_VERBOSITY=0;;
3489 esac
3490 am_make=${MAKE-make}
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3492 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3493 if ${am_cv_make_support_nested_variables+:} false; then :
3494 $as_echo_n "(cached) " >&6
3495 else
3496 if $as_echo 'TRUE=$(BAR$(V))
3497 BAR0=false
3498 BAR1=true
3499 V=1
3500 am__doit:
3501 @$(TRUE)
3502 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3503 am_cv_make_support_nested_variables=yes
3504 else
3505 am_cv_make_support_nested_variables=no
3506 fi
3507 fi
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3509 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3510 if test $am_cv_make_support_nested_variables = yes; then
3511 AM_V='$(V)'
3512 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3513 else
3514 AM_V=$AM_DEFAULT_VERBOSITY
3515 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3516 fi
3517 AM_BACKSLASH='\'
3518
3519
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3521 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3522 # Check whether --enable-maintainer-mode was given.
3523 if test "${enable_maintainer_mode+set}" = set; then :
3524 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3525 else
3526 USE_MAINTAINER_MODE=no
3527 fi
3528
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3530 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3531 if test $USE_MAINTAINER_MODE = yes; then
3532 MAINTAINER_MODE_TRUE=
3533 MAINTAINER_MODE_FALSE='#'
3534 else
3535 MAINTAINER_MODE_TRUE='#'
3536 MAINTAINER_MODE_FALSE=
3537 fi
3538
3539 MAINT=$MAINTAINER_MODE_TRUE
3540
3541
3542
3543 ac_ext=c
3544 ac_cpp='$CPP $CPPFLAGS'
3545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548 if test -n "$ac_tool_prefix"; then
3549 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3550 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552 $as_echo_n "checking for $ac_word... " >&6; }
3553 if ${ac_cv_prog_CC+:} false; then :
3554 $as_echo_n "(cached) " >&6
3555 else
3556 if test -n "$CC"; then
3557 ac_cv_prog_CC="$CC" # Let the user override the test.
3558 else
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH
3561 do
3562 IFS=$as_save_IFS
3563 test -z "$as_dir" && as_dir=.
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3566 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 break 2
3569 fi
3570 done
3571 done
3572 IFS=$as_save_IFS
3573
3574 fi
3575 fi
3576 CC=$ac_cv_prog_CC
3577 if test -n "$CC"; then
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3579 $as_echo "$CC" >&6; }
3580 else
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 $as_echo "no" >&6; }
3583 fi
3584
3585
3586 fi
3587 if test -z "$ac_cv_prog_CC"; then
3588 ac_ct_CC=$CC
3589 # Extract the first word of "gcc", so it can be a program name with args.
3590 set dummy gcc; ac_word=$2
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592 $as_echo_n "checking for $ac_word... " >&6; }
3593 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3594 $as_echo_n "(cached) " >&6
3595 else
3596 if test -n "$ac_ct_CC"; then
3597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3598 else
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3601 do
3602 IFS=$as_save_IFS
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3606 ac_cv_prog_ac_ct_CC="gcc"
3607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 break 2
3609 fi
3610 done
3611 done
3612 IFS=$as_save_IFS
3613
3614 fi
3615 fi
3616 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3617 if test -n "$ac_ct_CC"; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3619 $as_echo "$ac_ct_CC" >&6; }
3620 else
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3623 fi
3624
3625 if test "x$ac_ct_CC" = x; then
3626 CC=""
3627 else
3628 case $cross_compiling:$ac_tool_warned in
3629 yes:)
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3632 ac_tool_warned=yes ;;
3633 esac
3634 CC=$ac_ct_CC
3635 fi
3636 else
3637 CC="$ac_cv_prog_CC"
3638 fi
3639
3640 if test -z "$CC"; then
3641 if test -n "$ac_tool_prefix"; then
3642 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3643 set dummy ${ac_tool_prefix}cc; ac_word=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if ${ac_cv_prog_CC+:} false; then :
3647 $as_echo_n "(cached) " >&6
3648 else
3649 if test -n "$CC"; then
3650 ac_cv_prog_CC="$CC" # Let the user override the test.
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3654 do
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659 ac_cv_prog_CC="${ac_tool_prefix}cc"
3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 break 2
3662 fi
3663 done
3664 done
3665 IFS=$as_save_IFS
3666
3667 fi
3668 fi
3669 CC=$ac_cv_prog_CC
3670 if test -n "$CC"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3672 $as_echo "$CC" >&6; }
3673 else
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3676 fi
3677
3678
3679 fi
3680 fi
3681 if test -z "$CC"; then
3682 # Extract the first word of "cc", so it can be a program name with args.
3683 set dummy cc; ac_word=$2
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685 $as_echo_n "checking for $ac_word... " >&6; }
3686 if ${ac_cv_prog_CC+:} false; then :
3687 $as_echo_n "(cached) " >&6
3688 else
3689 if test -n "$CC"; then
3690 ac_cv_prog_CC="$CC" # Let the user override the test.
3691 else
3692 ac_prog_rejected=no
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH
3695 do
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3700 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3701 ac_prog_rejected=yes
3702 continue
3703 fi
3704 ac_cv_prog_CC="cc"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3707 fi
3708 done
3709 done
3710 IFS=$as_save_IFS
3711
3712 if test $ac_prog_rejected = yes; then
3713 # We found a bogon in the path, so make sure we never use it.
3714 set dummy $ac_cv_prog_CC
3715 shift
3716 if test $# != 0; then
3717 # We chose a different compiler from the bogus one.
3718 # However, it has the same basename, so the bogon will be chosen
3719 # first if we set CC to just the basename; use the full file name.
3720 shift
3721 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3722 fi
3723 fi
3724 fi
3725 fi
3726 CC=$ac_cv_prog_CC
3727 if test -n "$CC"; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3729 $as_echo "$CC" >&6; }
3730 else
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3733 fi
3734
3735
3736 fi
3737 if test -z "$CC"; then
3738 if test -n "$ac_tool_prefix"; then
3739 for ac_prog in cl.exe
3740 do
3741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744 $as_echo_n "checking for $ac_word... " >&6; }
3745 if ${ac_cv_prog_CC+:} false; then :
3746 $as_echo_n "(cached) " >&6
3747 else
3748 if test -n "$CC"; then
3749 ac_cv_prog_CC="$CC" # Let the user override the test.
3750 else
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH
3753 do
3754 IFS=$as_save_IFS
3755 test -z "$as_dir" && as_dir=.
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3758 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 break 2
3761 fi
3762 done
3763 done
3764 IFS=$as_save_IFS
3765
3766 fi
3767 fi
3768 CC=$ac_cv_prog_CC
3769 if test -n "$CC"; then
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3771 $as_echo "$CC" >&6; }
3772 else
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 $as_echo "no" >&6; }
3775 fi
3776
3777
3778 test -n "$CC" && break
3779 done
3780 fi
3781 if test -z "$CC"; then
3782 ac_ct_CC=$CC
3783 for ac_prog in cl.exe
3784 do
3785 # Extract the first word of "$ac_prog", so it can be a program name with args.
3786 set dummy $ac_prog; ac_word=$2
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788 $as_echo_n "checking for $ac_word... " >&6; }
3789 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3790 $as_echo_n "(cached) " >&6
3791 else
3792 if test -n "$ac_ct_CC"; then
3793 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3797 do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_prog_ac_ct_CC="$ac_prog"
3803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3805 fi
3806 done
3807 done
3808 IFS=$as_save_IFS
3809
3810 fi
3811 fi
3812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3813 if test -n "$ac_ct_CC"; then
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3815 $as_echo "$ac_ct_CC" >&6; }
3816 else
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818 $as_echo "no" >&6; }
3819 fi
3820
3821
3822 test -n "$ac_ct_CC" && break
3823 done
3824
3825 if test "x$ac_ct_CC" = x; then
3826 CC=""
3827 else
3828 case $cross_compiling:$ac_tool_warned in
3829 yes:)
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3832 ac_tool_warned=yes ;;
3833 esac
3834 CC=$ac_ct_CC
3835 fi
3836 fi
3837
3838 fi
3839
3840
3841 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843 as_fn_error $? "no acceptable C compiler found in \$PATH
3844 See \`config.log' for more details" "$LINENO" 5; }
3845
3846 # Provide some information about the compiler.
3847 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3848 set X $ac_compile
3849 ac_compiler=$2
3850 for ac_option in --version -v -V -qversion; do
3851 { { ac_try="$ac_compiler $ac_option >&5"
3852 case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855 esac
3856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857 $as_echo "$ac_try_echo"; } >&5
3858 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3859 ac_status=$?
3860 if test -s conftest.err; then
3861 sed '10a\
3862 ... rest of stderr output deleted ...
3863 10q' conftest.err >conftest.er1
3864 cat conftest.er1 >&5
3865 fi
3866 rm -f conftest.er1 conftest.err
3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }
3869 done
3870
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3873
3874 int
3875 main ()
3876 {
3877
3878 ;
3879 return 0;
3880 }
3881 _ACEOF
3882 ac_clean_files_save=$ac_clean_files
3883 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3884 # Try to create an executable without -o first, disregard a.out.
3885 # It will help us diagnose broken compilers, and finding out an intuition
3886 # of exeext.
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3888 $as_echo_n "checking whether the C compiler works... " >&6; }
3889 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3890
3891 # The possible output files:
3892 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3893
3894 ac_rmfiles=
3895 for ac_file in $ac_files
3896 do
3897 case $ac_file in
3898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3899 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3900 esac
3901 done
3902 rm -f $ac_rmfiles
3903
3904 if { { ac_try="$ac_link_default"
3905 case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3908 esac
3909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910 $as_echo "$ac_try_echo"; } >&5
3911 (eval "$ac_link_default") 2>&5
3912 ac_status=$?
3913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914 test $ac_status = 0; }; then :
3915 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3916 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3917 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3918 # so that the user can short-circuit this test for compilers unknown to
3919 # Autoconf.
3920 for ac_file in $ac_files ''
3921 do
3922 test -f "$ac_file" || continue
3923 case $ac_file in
3924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3925 ;;
3926 [ab].out )
3927 # We found the default executable, but exeext='' is most
3928 # certainly right.
3929 break;;
3930 *.* )
3931 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3932 then :; else
3933 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3934 fi
3935 # We set ac_cv_exeext here because the later test for it is not
3936 # safe: cross compilers may not add the suffix if given an `-o'
3937 # argument, so we may need to know it at that point already.
3938 # Even if this section looks crufty: it has the advantage of
3939 # actually working.
3940 break;;
3941 * )
3942 break;;
3943 esac
3944 done
3945 test "$ac_cv_exeext" = no && ac_cv_exeext=
3946
3947 else
3948 ac_file=''
3949 fi
3950 if test -z "$ac_file"; then :
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952 $as_echo "no" >&6; }
3953 $as_echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3955
3956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3958 as_fn_error 77 "C compiler cannot create executables
3959 See \`config.log' for more details" "$LINENO" 5; }
3960 else
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3962 $as_echo "yes" >&6; }
3963 fi
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3965 $as_echo_n "checking for C compiler default output file name... " >&6; }
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3967 $as_echo "$ac_file" >&6; }
3968 ac_exeext=$ac_cv_exeext
3969
3970 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3971 ac_clean_files=$ac_clean_files_save
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3973 $as_echo_n "checking for suffix of executables... " >&6; }
3974 if { { ac_try="$ac_link"
3975 case "(($ac_try" in
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3978 esac
3979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3980 $as_echo "$ac_try_echo"; } >&5
3981 (eval "$ac_link") 2>&5
3982 ac_status=$?
3983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3984 test $ac_status = 0; }; then :
3985 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3986 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3987 # work properly (i.e., refer to `conftest.exe'), while it won't with
3988 # `rm'.
3989 for ac_file in conftest.exe conftest conftest.*; do
3990 test -f "$ac_file" || continue
3991 case $ac_file in
3992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3993 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3994 break;;
3995 * ) break;;
3996 esac
3997 done
3998 else
3999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4001 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4002 See \`config.log' for more details" "$LINENO" 5; }
4003 fi
4004 rm -f conftest conftest$ac_cv_exeext
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4006 $as_echo "$ac_cv_exeext" >&6; }
4007
4008 rm -f conftest.$ac_ext
4009 EXEEXT=$ac_cv_exeext
4010 ac_exeext=$EXEEXT
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4013 #include <stdio.h>
4014 int
4015 main ()
4016 {
4017 FILE *f = fopen ("conftest.out", "w");
4018 return ferror (f) || fclose (f) != 0;
4019
4020 ;
4021 return 0;
4022 }
4023 _ACEOF
4024 ac_clean_files="$ac_clean_files conftest.out"
4025 # Check that the compiler produces executables we can run. If not, either
4026 # the compiler is broken, or we cross compile.
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4028 $as_echo_n "checking whether we are cross compiling... " >&6; }
4029 if test "$cross_compiling" != yes; then
4030 { { ac_try="$ac_link"
4031 case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036 $as_echo "$ac_try_echo"; } >&5
4037 (eval "$ac_link") 2>&5
4038 ac_status=$?
4039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040 test $ac_status = 0; }
4041 if { ac_try='./conftest$ac_cv_exeext'
4042 { { case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4045 esac
4046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4047 $as_echo "$ac_try_echo"; } >&5
4048 (eval "$ac_try") 2>&5
4049 ac_status=$?
4050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4051 test $ac_status = 0; }; }; then
4052 cross_compiling=no
4053 else
4054 if test "$cross_compiling" = maybe; then
4055 cross_compiling=yes
4056 else
4057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4059 as_fn_error $? "cannot run C compiled programs.
4060 If you meant to cross compile, use \`--host'.
4061 See \`config.log' for more details" "$LINENO" 5; }
4062 fi
4063 fi
4064 fi
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4066 $as_echo "$cross_compiling" >&6; }
4067
4068 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4069 ac_clean_files=$ac_clean_files_save
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4071 $as_echo_n "checking for suffix of object files... " >&6; }
4072 if ${ac_cv_objext+:} false; then :
4073 $as_echo_n "(cached) " >&6
4074 else
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4077
4078 int
4079 main ()
4080 {
4081
4082 ;
4083 return 0;
4084 }
4085 _ACEOF
4086 rm -f conftest.o conftest.obj
4087 if { { ac_try="$ac_compile"
4088 case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091 esac
4092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4093 $as_echo "$ac_try_echo"; } >&5
4094 (eval "$ac_compile") 2>&5
4095 ac_status=$?
4096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4097 test $ac_status = 0; }; then :
4098 for ac_file in conftest.o conftest.obj conftest.*; do
4099 test -f "$ac_file" || continue;
4100 case $ac_file in
4101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4102 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4103 break;;
4104 esac
4105 done
4106 else
4107 $as_echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4109
4110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4112 as_fn_error $? "cannot compute suffix of object files: cannot compile
4113 See \`config.log' for more details" "$LINENO" 5; }
4114 fi
4115 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4116 fi
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4118 $as_echo "$ac_cv_objext" >&6; }
4119 OBJEXT=$ac_cv_objext
4120 ac_objext=$OBJEXT
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4122 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4123 if ${ac_cv_c_compiler_gnu+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125 else
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4128
4129 int
4130 main ()
4131 {
4132 #ifndef __GNUC__
4133 choke me
4134 #endif
4135
4136 ;
4137 return 0;
4138 }
4139 _ACEOF
4140 if ac_fn_c_try_compile "$LINENO"; then :
4141 ac_compiler_gnu=yes
4142 else
4143 ac_compiler_gnu=no
4144 fi
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4147
4148 fi
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4150 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4151 if test $ac_compiler_gnu = yes; then
4152 GCC=yes
4153 else
4154 GCC=
4155 fi
4156 ac_test_CFLAGS=${CFLAGS+set}
4157 ac_save_CFLAGS=$CFLAGS
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4159 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4160 if ${ac_cv_prog_cc_g+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 ac_save_c_werror_flag=$ac_c_werror_flag
4164 ac_c_werror_flag=yes
4165 ac_cv_prog_cc_g=no
4166 CFLAGS="-g"
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169
4170 int
4171 main ()
4172 {
4173
4174 ;
4175 return 0;
4176 }
4177 _ACEOF
4178 if ac_fn_c_try_compile "$LINENO"; then :
4179 ac_cv_prog_cc_g=yes
4180 else
4181 CFLAGS=""
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4184
4185 int
4186 main ()
4187 {
4188
4189 ;
4190 return 0;
4191 }
4192 _ACEOF
4193 if ac_fn_c_try_compile "$LINENO"; then :
4194
4195 else
4196 ac_c_werror_flag=$ac_save_c_werror_flag
4197 CFLAGS="-g"
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4200
4201 int
4202 main ()
4203 {
4204
4205 ;
4206 return 0;
4207 }
4208 _ACEOF
4209 if ac_fn_c_try_compile "$LINENO"; then :
4210 ac_cv_prog_cc_g=yes
4211 fi
4212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 fi
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 fi
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 ac_c_werror_flag=$ac_save_c_werror_flag
4218 fi
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4220 $as_echo "$ac_cv_prog_cc_g" >&6; }
4221 if test "$ac_test_CFLAGS" = set; then
4222 CFLAGS=$ac_save_CFLAGS
4223 elif test $ac_cv_prog_cc_g = yes; then
4224 if test "$GCC" = yes; then
4225 CFLAGS="-g -O2"
4226 else
4227 CFLAGS="-g"
4228 fi
4229 else
4230 if test "$GCC" = yes; then
4231 CFLAGS="-O2"
4232 else
4233 CFLAGS=
4234 fi
4235 fi
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4237 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4238 if ${ac_cv_prog_cc_c89+:} false; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 ac_cv_prog_cc_c89=no
4242 ac_save_CC=$CC
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4245 #include <stdarg.h>
4246 #include <stdio.h>
4247 struct stat;
4248 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4249 struct buf { int x; };
4250 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4251 static char *e (p, i)
4252 char **p;
4253 int i;
4254 {
4255 return p[i];
4256 }
4257 static char *f (char * (*g) (char **, int), char **p, ...)
4258 {
4259 char *s;
4260 va_list v;
4261 va_start (v,p);
4262 s = g (p, va_arg (v,int));
4263 va_end (v);
4264 return s;
4265 }
4266
4267 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4268 function prototypes and stuff, but not '\xHH' hex character constants.
4269 These don't provoke an error unfortunately, instead are silently treated
4270 as 'x'. The following induces an error, until -std is added to get
4271 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4272 array size at least. It's necessary to write '\x00'==0 to get something
4273 that's true only with -std. */
4274 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4275
4276 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4277 inside strings and character constants. */
4278 #define FOO(x) 'x'
4279 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4280
4281 int test (int i, double x);
4282 struct s1 {int (*f) (int a);};
4283 struct s2 {int (*f) (double a);};
4284 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4285 int argc;
4286 char **argv;
4287 int
4288 main ()
4289 {
4290 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4291 ;
4292 return 0;
4293 }
4294 _ACEOF
4295 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4296 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4297 do
4298 CC="$ac_save_CC $ac_arg"
4299 if ac_fn_c_try_compile "$LINENO"; then :
4300 ac_cv_prog_cc_c89=$ac_arg
4301 fi
4302 rm -f core conftest.err conftest.$ac_objext
4303 test "x$ac_cv_prog_cc_c89" != "xno" && break
4304 done
4305 rm -f conftest.$ac_ext
4306 CC=$ac_save_CC
4307
4308 fi
4309 # AC_CACHE_VAL
4310 case "x$ac_cv_prog_cc_c89" in
4311 x)
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4313 $as_echo "none needed" >&6; } ;;
4314 xno)
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4316 $as_echo "unsupported" >&6; } ;;
4317 *)
4318 CC="$CC $ac_cv_prog_cc_c89"
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4320 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4321 esac
4322 if test "x$ac_cv_prog_cc_c89" != xno; then :
4323
4324 fi
4325
4326 ac_ext=c
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331
4332 ac_ext=c
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4338 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4339 if ${am_cv_prog_cc_c_o+:} false; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344
4345 int
4346 main ()
4347 {
4348
4349 ;
4350 return 0;
4351 }
4352 _ACEOF
4353 # Make sure it works both with $CC and with simple cc.
4354 # Following AC_PROG_CC_C_O, we do the test twice because some
4355 # compilers refuse to overwrite an existing .o file with -o,
4356 # though they will create one.
4357 am_cv_prog_cc_c_o=yes
4358 for am_i in 1 2; do
4359 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4360 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } \
4364 && test -f conftest2.$ac_objext; then
4365 : OK
4366 else
4367 am_cv_prog_cc_c_o=no
4368 break
4369 fi
4370 done
4371 rm -f core conftest*
4372 unset am_i
4373 fi
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4375 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4376 if test "$am_cv_prog_cc_c_o" != yes; then
4377 # Losing compiler, so override with the script.
4378 # FIXME: It is wrong to rewrite CC.
4379 # But if we don't then we get into trouble of one sort or another.
4380 # A longer-term fix would be to have automake use am__CC in this case,
4381 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4382 CC="$am_aux_dir/compile $CC"
4383 fi
4384 ac_ext=c
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389
4390 DEPDIR="${am__leading_dot}deps"
4391
4392 ac_config_commands="$ac_config_commands depfiles"
4393
4394
4395 am_make=${MAKE-make}
4396 cat > confinc << 'END'
4397 am__doit:
4398 @echo this is the am__doit target
4399 .PHONY: am__doit
4400 END
4401 # If we don't find an include directive, just comment out the code.
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4403 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4404 am__include="#"
4405 am__quote=
4406 _am_result=none
4407 # First try GNU make style include.
4408 echo "include confinc" > confmf
4409 # Ignore all kinds of additional output from 'make'.
4410 case `$am_make -s -f confmf 2> /dev/null` in #(
4411 *the\ am__doit\ target*)
4412 am__include=include
4413 am__quote=
4414 _am_result=GNU
4415 ;;
4416 esac
4417 # Now try BSD make style include.
4418 if test "$am__include" = "#"; then
4419 echo '.include "confinc"' > confmf
4420 case `$am_make -s -f confmf 2> /dev/null` in #(
4421 *the\ am__doit\ target*)
4422 am__include=.include
4423 am__quote="\""
4424 _am_result=BSD
4425 ;;
4426 esac
4427 fi
4428
4429
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4431 $as_echo "$_am_result" >&6; }
4432 rm -f confinc confmf
4433
4434 # Check whether --enable-dependency-tracking was given.
4435 if test "${enable_dependency_tracking+set}" = set; then :
4436 enableval=$enable_dependency_tracking;
4437 fi
4438
4439 if test "x$enable_dependency_tracking" != xno; then
4440 am_depcomp="$ac_aux_dir/depcomp"
4441 AMDEPBACKSLASH='\'
4442 am__nodep='_no'
4443 fi
4444 if test "x$enable_dependency_tracking" != xno; then
4445 AMDEP_TRUE=
4446 AMDEP_FALSE='#'
4447 else
4448 AMDEP_TRUE='#'
4449 AMDEP_FALSE=
4450 fi
4451
4452
4453
4454 depcc="$CC" am_compiler_list=
4455
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4457 $as_echo_n "checking dependency style of $depcc... " >&6; }
4458 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4462 # We make a subdir and do the tests there. Otherwise we can end up
4463 # making bogus files that we don't know about and never remove. For
4464 # instance it was reported that on HP-UX the gcc test will end up
4465 # making a dummy file named 'D' -- because '-MD' means "put the output
4466 # in D".
4467 rm -rf conftest.dir
4468 mkdir conftest.dir
4469 # Copy depcomp to subdir because otherwise we won't find it if we're
4470 # using a relative directory.
4471 cp "$am_depcomp" conftest.dir
4472 cd conftest.dir
4473 # We will build objects and dependencies in a subdirectory because
4474 # it helps to detect inapplicable dependency modes. For instance
4475 # both Tru64's cc and ICC support -MD to output dependencies as a
4476 # side effect of compilation, but ICC will put the dependencies in
4477 # the current directory while Tru64 will put them in the object
4478 # directory.
4479 mkdir sub
4480
4481 am_cv_CC_dependencies_compiler_type=none
4482 if test "$am_compiler_list" = ""; then
4483 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4484 fi
4485 am__universal=false
4486 case " $depcc " in #(
4487 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4488 esac
4489
4490 for depmode in $am_compiler_list; do
4491 # Setup a source with many dependencies, because some compilers
4492 # like to wrap large dependency lists on column 80 (with \), and
4493 # we should not choose a depcomp mode which is confused by this.
4494 #
4495 # We need to recreate these files for each test, as the compiler may
4496 # overwrite some of them when testing with obscure command lines.
4497 # This happens at least with the AIX C compiler.
4498 : > sub/conftest.c
4499 for i in 1 2 3 4 5 6; do
4500 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4501 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4502 # Solaris 10 /bin/sh.
4503 echo '/* dummy */' > sub/conftst$i.h
4504 done
4505 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4506
4507 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4508 # mode. It turns out that the SunPro C++ compiler does not properly
4509 # handle '-M -o', and we need to detect this. Also, some Intel
4510 # versions had trouble with output in subdirs.
4511 am__obj=sub/conftest.${OBJEXT-o}
4512 am__minus_obj="-o $am__obj"
4513 case $depmode in
4514 gcc)
4515 # This depmode causes a compiler race in universal mode.
4516 test "$am__universal" = false || continue
4517 ;;
4518 nosideeffect)
4519 # After this tag, mechanisms are not by side-effect, so they'll
4520 # only be used when explicitly requested.
4521 if test "x$enable_dependency_tracking" = xyes; then
4522 continue
4523 else
4524 break
4525 fi
4526 ;;
4527 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4528 # This compiler won't grok '-c -o', but also, the minuso test has
4529 # not run yet. These depmodes are late enough in the game, and
4530 # so weak that their functioning should not be impacted.
4531 am__obj=conftest.${OBJEXT-o}
4532 am__minus_obj=
4533 ;;
4534 none) break ;;
4535 esac
4536 if depmode=$depmode \
4537 source=sub/conftest.c object=$am__obj \
4538 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4539 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4540 >/dev/null 2>conftest.err &&
4541 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4542 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4543 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4544 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4545 # icc doesn't choke on unknown options, it will just issue warnings
4546 # or remarks (even with -Werror). So we grep stderr for any message
4547 # that says an option was ignored or not supported.
4548 # When given -MP, icc 7.0 and 7.1 complain thusly:
4549 # icc: Command line warning: ignoring option '-M'; no argument required
4550 # The diagnosis changed in icc 8.0:
4551 # icc: Command line remark: option '-MP' not supported
4552 if (grep 'ignoring option' conftest.err ||
4553 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4554 am_cv_CC_dependencies_compiler_type=$depmode
4555 break
4556 fi
4557 fi
4558 done
4559
4560 cd ..
4561 rm -rf conftest.dir
4562 else
4563 am_cv_CC_dependencies_compiler_type=none
4564 fi
4565
4566 fi
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4568 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4569 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4570
4571 if
4572 test "x$enable_dependency_tracking" != xno \
4573 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4574 am__fastdepCC_TRUE=
4575 am__fastdepCC_FALSE='#'
4576 else
4577 am__fastdepCC_TRUE='#'
4578 am__fastdepCC_FALSE=
4579 fi
4580
4581
4582 ac_ext=cpp
4583 ac_cpp='$CXXCPP $CPPFLAGS'
4584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4587 if test -z "$CXX"; then
4588 if test -n "$CCC"; then
4589 CXX=$CCC
4590 else
4591 if test -n "$ac_tool_prefix"; then
4592 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4593 do
4594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 $as_echo_n "checking for $ac_word... " >&6; }
4598 if ${ac_cv_prog_CXX+:} false; then :
4599 $as_echo_n "(cached) " >&6
4600 else
4601 if test -n "$CXX"; then
4602 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4614 fi
4615 done
4616 done
4617 IFS=$as_save_IFS
4618
4619 fi
4620 fi
4621 CXX=$ac_cv_prog_CXX
4622 if test -n "$CXX"; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4624 $as_echo "$CXX" >&6; }
4625 else
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 $as_echo "no" >&6; }
4628 fi
4629
4630
4631 test -n "$CXX" && break
4632 done
4633 fi
4634 if test -z "$CXX"; then
4635 ac_ct_CXX=$CXX
4636 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4637 do
4638 # Extract the first word of "$ac_prog", so it can be a program name with args.
4639 set dummy $ac_prog; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 if test -n "$ac_ct_CXX"; then
4646 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4647 else
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4650 do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4655 ac_cv_prog_ac_ct_CXX="$ac_prog"
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4658 fi
4659 done
4660 done
4661 IFS=$as_save_IFS
4662
4663 fi
4664 fi
4665 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4666 if test -n "$ac_ct_CXX"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4668 $as_echo "$ac_ct_CXX" >&6; }
4669 else
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 $as_echo "no" >&6; }
4672 fi
4673
4674
4675 test -n "$ac_ct_CXX" && break
4676 done
4677
4678 if test "x$ac_ct_CXX" = x; then
4679 CXX="g++"
4680 else
4681 case $cross_compiling:$ac_tool_warned in
4682 yes:)
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4685 ac_tool_warned=yes ;;
4686 esac
4687 CXX=$ac_ct_CXX
4688 fi
4689 fi
4690
4691 fi
4692 fi
4693 # Provide some information about the compiler.
4694 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4695 set X $ac_compile
4696 ac_compiler=$2
4697 for ac_option in --version -v -V -qversion; do
4698 { { ac_try="$ac_compiler $ac_option >&5"
4699 case "(($ac_try" in
4700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4701 *) ac_try_echo=$ac_try;;
4702 esac
4703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4704 $as_echo "$ac_try_echo"; } >&5
4705 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4706 ac_status=$?
4707 if test -s conftest.err; then
4708 sed '10a\
4709 ... rest of stderr output deleted ...
4710 10q' conftest.err >conftest.er1
4711 cat conftest.er1 >&5
4712 fi
4713 rm -f conftest.er1 conftest.err
4714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4715 test $ac_status = 0; }
4716 done
4717
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4719 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4720 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4725
4726 int
4727 main ()
4728 {
4729 #ifndef __GNUC__
4730 choke me
4731 #endif
4732
4733 ;
4734 return 0;
4735 }
4736 _ACEOF
4737 if ac_fn_cxx_try_compile "$LINENO"; then :
4738 ac_compiler_gnu=yes
4739 else
4740 ac_compiler_gnu=no
4741 fi
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4744
4745 fi
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4747 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4748 if test $ac_compiler_gnu = yes; then
4749 GXX=yes
4750 else
4751 GXX=
4752 fi
4753 ac_test_CXXFLAGS=${CXXFLAGS+set}
4754 ac_save_CXXFLAGS=$CXXFLAGS
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4756 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4757 if ${ac_cv_prog_cxx_g+:} false; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4761 ac_cxx_werror_flag=yes
4762 ac_cv_prog_cxx_g=no
4763 CXXFLAGS="-g"
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4766
4767 int
4768 main ()
4769 {
4770
4771 ;
4772 return 0;
4773 }
4774 _ACEOF
4775 if ac_fn_cxx_try_compile "$LINENO"; then :
4776 ac_cv_prog_cxx_g=yes
4777 else
4778 CXXFLAGS=""
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4781
4782 int
4783 main ()
4784 {
4785
4786 ;
4787 return 0;
4788 }
4789 _ACEOF
4790 if ac_fn_cxx_try_compile "$LINENO"; then :
4791
4792 else
4793 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4794 CXXFLAGS="-g"
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797
4798 int
4799 main ()
4800 {
4801
4802 ;
4803 return 0;
4804 }
4805 _ACEOF
4806 if ac_fn_cxx_try_compile "$LINENO"; then :
4807 ac_cv_prog_cxx_g=yes
4808 fi
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 fi
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 fi
4813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4815 fi
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4817 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4818 if test "$ac_test_CXXFLAGS" = set; then
4819 CXXFLAGS=$ac_save_CXXFLAGS
4820 elif test $ac_cv_prog_cxx_g = yes; then
4821 if test "$GXX" = yes; then
4822 CXXFLAGS="-g -O2"
4823 else
4824 CXXFLAGS="-g"
4825 fi
4826 else
4827 if test "$GXX" = yes; then
4828 CXXFLAGS="-O2"
4829 else
4830 CXXFLAGS=
4831 fi
4832 fi
4833 ac_ext=c
4834 ac_cpp='$CPP $CPPFLAGS'
4835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4838
4839 depcc="$CXX" am_compiler_list=
4840
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4842 $as_echo_n "checking dependency style of $depcc... " >&6; }
4843 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4844 $as_echo_n "(cached) " >&6
4845 else
4846 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4847 # We make a subdir and do the tests there. Otherwise we can end up
4848 # making bogus files that we don't know about and never remove. For
4849 # instance it was reported that on HP-UX the gcc test will end up
4850 # making a dummy file named 'D' -- because '-MD' means "put the output
4851 # in D".
4852 rm -rf conftest.dir
4853 mkdir conftest.dir
4854 # Copy depcomp to subdir because otherwise we won't find it if we're
4855 # using a relative directory.
4856 cp "$am_depcomp" conftest.dir
4857 cd conftest.dir
4858 # We will build objects and dependencies in a subdirectory because
4859 # it helps to detect inapplicable dependency modes. For instance
4860 # both Tru64's cc and ICC support -MD to output dependencies as a
4861 # side effect of compilation, but ICC will put the dependencies in
4862 # the current directory while Tru64 will put them in the object
4863 # directory.
4864 mkdir sub
4865
4866 am_cv_CXX_dependencies_compiler_type=none
4867 if test "$am_compiler_list" = ""; then
4868 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4869 fi
4870 am__universal=false
4871 case " $depcc " in #(
4872 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4873 esac
4874
4875 for depmode in $am_compiler_list; do
4876 # Setup a source with many dependencies, because some compilers
4877 # like to wrap large dependency lists on column 80 (with \), and
4878 # we should not choose a depcomp mode which is confused by this.
4879 #
4880 # We need to recreate these files for each test, as the compiler may
4881 # overwrite some of them when testing with obscure command lines.
4882 # This happens at least with the AIX C compiler.
4883 : > sub/conftest.c
4884 for i in 1 2 3 4 5 6; do
4885 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4886 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4887 # Solaris 10 /bin/sh.
4888 echo '/* dummy */' > sub/conftst$i.h
4889 done
4890 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4891
4892 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4893 # mode. It turns out that the SunPro C++ compiler does not properly
4894 # handle '-M -o', and we need to detect this. Also, some Intel
4895 # versions had trouble with output in subdirs.
4896 am__obj=sub/conftest.${OBJEXT-o}
4897 am__minus_obj="-o $am__obj"
4898 case $depmode in
4899 gcc)
4900 # This depmode causes a compiler race in universal mode.
4901 test "$am__universal" = false || continue
4902 ;;
4903 nosideeffect)
4904 # After this tag, mechanisms are not by side-effect, so they'll
4905 # only be used when explicitly requested.
4906 if test "x$enable_dependency_tracking" = xyes; then
4907 continue
4908 else
4909 break
4910 fi
4911 ;;
4912 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4913 # This compiler won't grok '-c -o', but also, the minuso test has
4914 # not run yet. These depmodes are late enough in the game, and
4915 # so weak that their functioning should not be impacted.
4916 am__obj=conftest.${OBJEXT-o}
4917 am__minus_obj=
4918 ;;
4919 none) break ;;
4920 esac
4921 if depmode=$depmode \
4922 source=sub/conftest.c object=$am__obj \
4923 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4924 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4925 >/dev/null 2>conftest.err &&
4926 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4927 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4928 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4929 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4930 # icc doesn't choke on unknown options, it will just issue warnings
4931 # or remarks (even with -Werror). So we grep stderr for any message
4932 # that says an option was ignored or not supported.
4933 # When given -MP, icc 7.0 and 7.1 complain thusly:
4934 # icc: Command line warning: ignoring option '-M'; no argument required
4935 # The diagnosis changed in icc 8.0:
4936 # icc: Command line remark: option '-MP' not supported
4937 if (grep 'ignoring option' conftest.err ||
4938 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4939 am_cv_CXX_dependencies_compiler_type=$depmode
4940 break
4941 fi
4942 fi
4943 done
4944
4945 cd ..
4946 rm -rf conftest.dir
4947 else
4948 am_cv_CXX_dependencies_compiler_type=none
4949 fi
4950
4951 fi
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4953 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4954 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4955
4956 if
4957 test "x$enable_dependency_tracking" != xno \
4958 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4959 am__fastdepCXX_TRUE=
4960 am__fastdepCXX_FALSE='#'
4961 else
4962 am__fastdepCXX_TRUE='#'
4963 am__fastdepCXX_FALSE=
4964 fi
4965
4966
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4968 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4969 if ${ac_cv_path_GREP+:} false; then :
4970 $as_echo_n "(cached) " >&6
4971 else
4972 if test -z "$GREP"; then
4973 ac_path_GREP_found=false
4974 # Loop through the user's path and test for each of PROGNAME-LIST
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4977 do
4978 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=.
4980 for ac_prog in grep ggrep; do
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4983 as_fn_executable_p "$ac_path_GREP" || continue
4984 # Check for GNU ac_path_GREP and select it if it is found.
4985 # Check for GNU $ac_path_GREP
4986 case `"$ac_path_GREP" --version 2>&1` in
4987 *GNU*)
4988 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4989 *)
4990 ac_count=0
4991 $as_echo_n 0123456789 >"conftest.in"
4992 while :
4993 do
4994 cat "conftest.in" "conftest.in" >"conftest.tmp"
4995 mv "conftest.tmp" "conftest.in"
4996 cp "conftest.in" "conftest.nl"
4997 $as_echo 'GREP' >> "conftest.nl"
4998 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5000 as_fn_arith $ac_count + 1 && ac_count=$as_val
5001 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5002 # Best one so far, save it but keep looking for a better one
5003 ac_cv_path_GREP="$ac_path_GREP"
5004 ac_path_GREP_max=$ac_count
5005 fi
5006 # 10*(2^10) chars as input seems more than enough
5007 test $ac_count -gt 10 && break
5008 done
5009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5010 esac
5011
5012 $ac_path_GREP_found && break 3
5013 done
5014 done
5015 done
5016 IFS=$as_save_IFS
5017 if test -z "$ac_cv_path_GREP"; then
5018 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5019 fi
5020 else
5021 ac_cv_path_GREP=$GREP
5022 fi
5023
5024 fi
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5026 $as_echo "$ac_cv_path_GREP" >&6; }
5027 GREP="$ac_cv_path_GREP"
5028
5029
5030
5031 ac_ext=c
5032 ac_cpp='$CPP $CPPFLAGS'
5033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5037 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5038 # On Suns, sometimes $CPP names a directory.
5039 if test -n "$CPP" && test -d "$CPP"; then
5040 CPP=
5041 fi
5042 if test -z "$CPP"; then
5043 if ${ac_cv_prog_CPP+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 # Double quotes because CPP needs to be expanded
5047 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5048 do
5049 ac_preproc_ok=false
5050 for ac_c_preproc_warn_flag in '' yes
5051 do
5052 # Use a header file that comes with gcc, so configuring glibc
5053 # with a fresh cross-compiler works.
5054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5055 # <limits.h> exists even on freestanding compilers.
5056 # On the NeXT, cc -E runs the code through the compiler's parser,
5057 # not just through cpp. "Syntax error" is here to catch this case.
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5060 #ifdef __STDC__
5061 # include <limits.h>
5062 #else
5063 # include <assert.h>
5064 #endif
5065 Syntax error
5066 _ACEOF
5067 if ac_fn_c_try_cpp "$LINENO"; then :
5068
5069 else
5070 # Broken: fails on valid input.
5071 continue
5072 fi
5073 rm -f conftest.err conftest.i conftest.$ac_ext
5074
5075 # OK, works on sane cases. Now check whether nonexistent headers
5076 # can be detected and how.
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5079 #include <ac_nonexistent.h>
5080 _ACEOF
5081 if ac_fn_c_try_cpp "$LINENO"; then :
5082 # Broken: success on invalid input.
5083 continue
5084 else
5085 # Passes both tests.
5086 ac_preproc_ok=:
5087 break
5088 fi
5089 rm -f conftest.err conftest.i conftest.$ac_ext
5090
5091 done
5092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5093 rm -f conftest.i conftest.err conftest.$ac_ext
5094 if $ac_preproc_ok; then :
5095 break
5096 fi
5097
5098 done
5099 ac_cv_prog_CPP=$CPP
5100
5101 fi
5102 CPP=$ac_cv_prog_CPP
5103 else
5104 ac_cv_prog_CPP=$CPP
5105 fi
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5107 $as_echo "$CPP" >&6; }
5108 ac_preproc_ok=false
5109 for ac_c_preproc_warn_flag in '' yes
5110 do
5111 # Use a header file that comes with gcc, so configuring glibc
5112 # with a fresh cross-compiler works.
5113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5114 # <limits.h> exists even on freestanding compilers.
5115 # On the NeXT, cc -E runs the code through the compiler's parser,
5116 # not just through cpp. "Syntax error" is here to catch this case.
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5119 #ifdef __STDC__
5120 # include <limits.h>
5121 #else
5122 # include <assert.h>
5123 #endif
5124 Syntax error
5125 _ACEOF
5126 if ac_fn_c_try_cpp "$LINENO"; then :
5127
5128 else
5129 # Broken: fails on valid input.
5130 continue
5131 fi
5132 rm -f conftest.err conftest.i conftest.$ac_ext
5133
5134 # OK, works on sane cases. Now check whether nonexistent headers
5135 # can be detected and how.
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138 #include <ac_nonexistent.h>
5139 _ACEOF
5140 if ac_fn_c_try_cpp "$LINENO"; then :
5141 # Broken: success on invalid input.
5142 continue
5143 else
5144 # Passes both tests.
5145 ac_preproc_ok=:
5146 break
5147 fi
5148 rm -f conftest.err conftest.i conftest.$ac_ext
5149
5150 done
5151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5152 rm -f conftest.i conftest.err conftest.$ac_ext
5153 if $ac_preproc_ok; then :
5154
5155 else
5156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5158 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5159 See \`config.log' for more details" "$LINENO" 5; }
5160 fi
5161
5162 ac_ext=c
5163 ac_cpp='$CPP $CPPFLAGS'
5164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5167
5168
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5170 $as_echo_n "checking for egrep... " >&6; }
5171 if ${ac_cv_path_EGREP+:} false; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5175 then ac_cv_path_EGREP="$GREP -E"
5176 else
5177 if test -z "$EGREP"; then
5178 ac_path_EGREP_found=false
5179 # Loop through the user's path and test for each of PROGNAME-LIST
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5182 do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_prog in egrep; do
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5188 as_fn_executable_p "$ac_path_EGREP" || continue
5189 # Check for GNU ac_path_EGREP and select it if it is found.
5190 # Check for GNU $ac_path_EGREP
5191 case `"$ac_path_EGREP" --version 2>&1` in
5192 *GNU*)
5193 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5194 *)
5195 ac_count=0
5196 $as_echo_n 0123456789 >"conftest.in"
5197 while :
5198 do
5199 cat "conftest.in" "conftest.in" >"conftest.tmp"
5200 mv "conftest.tmp" "conftest.in"
5201 cp "conftest.in" "conftest.nl"
5202 $as_echo 'EGREP' >> "conftest.nl"
5203 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5205 as_fn_arith $ac_count + 1 && ac_count=$as_val
5206 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5207 # Best one so far, save it but keep looking for a better one
5208 ac_cv_path_EGREP="$ac_path_EGREP"
5209 ac_path_EGREP_max=$ac_count
5210 fi
5211 # 10*(2^10) chars as input seems more than enough
5212 test $ac_count -gt 10 && break
5213 done
5214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5215 esac
5216
5217 $ac_path_EGREP_found && break 3
5218 done
5219 done
5220 done
5221 IFS=$as_save_IFS
5222 if test -z "$ac_cv_path_EGREP"; then
5223 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5224 fi
5225 else
5226 ac_cv_path_EGREP=$EGREP
5227 fi
5228
5229 fi
5230 fi
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5232 $as_echo "$ac_cv_path_EGREP" >&6; }
5233 EGREP="$ac_cv_path_EGREP"
5234
5235
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5237 $as_echo_n "checking for ANSI C header files... " >&6; }
5238 if ${ac_cv_header_stdc+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5243 #include <stdlib.h>
5244 #include <stdarg.h>
5245 #include <string.h>
5246 #include <float.h>
5247
5248 int
5249 main ()
5250 {
5251
5252 ;
5253 return 0;
5254 }
5255 _ACEOF
5256 if ac_fn_c_try_compile "$LINENO"; then :
5257 ac_cv_header_stdc=yes
5258 else
5259 ac_cv_header_stdc=no
5260 fi
5261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5262
5263 if test $ac_cv_header_stdc = yes; then
5264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5267 #include <string.h>
5268
5269 _ACEOF
5270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5271 $EGREP "memchr" >/dev/null 2>&1; then :
5272
5273 else
5274 ac_cv_header_stdc=no
5275 fi
5276 rm -f conftest*
5277
5278 fi
5279
5280 if test $ac_cv_header_stdc = yes; then
5281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 #include <stdlib.h>
5285
5286 _ACEOF
5287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5288 $EGREP "free" >/dev/null 2>&1; then :
5289
5290 else
5291 ac_cv_header_stdc=no
5292 fi
5293 rm -f conftest*
5294
5295 fi
5296
5297 if test $ac_cv_header_stdc = yes; then
5298 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5299 if test "$cross_compiling" = yes; then :
5300 :
5301 else
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5304 #include <ctype.h>
5305 #include <stdlib.h>
5306 #if ((' ' & 0x0FF) == 0x020)
5307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5309 #else
5310 # define ISLOWER(c) \
5311 (('a' <= (c) && (c) <= 'i') \
5312 || ('j' <= (c) && (c) <= 'r') \
5313 || ('s' <= (c) && (c) <= 'z'))
5314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5315 #endif
5316
5317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5318 int
5319 main ()
5320 {
5321 int i;
5322 for (i = 0; i < 256; i++)
5323 if (XOR (islower (i), ISLOWER (i))
5324 || toupper (i) != TOUPPER (i))
5325 return 2;
5326 return 0;
5327 }
5328 _ACEOF
5329 if ac_fn_c_try_run "$LINENO"; then :
5330
5331 else
5332 ac_cv_header_stdc=no
5333 fi
5334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5335 conftest.$ac_objext conftest.beam conftest.$ac_ext
5336 fi
5337
5338 fi
5339 fi
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5341 $as_echo "$ac_cv_header_stdc" >&6; }
5342 if test $ac_cv_header_stdc = yes; then
5343
5344 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5345
5346 fi
5347
5348 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5349 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5350 inttypes.h stdint.h unistd.h
5351 do :
5352 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5353 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5354 "
5355 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5356 cat >>confdefs.h <<_ACEOF
5357 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5358 _ACEOF
5359
5360 fi
5361
5362 done
5363
5364
5365
5366 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5367 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5368 MINIX=yes
5369 else
5370 MINIX=
5371 fi
5372
5373
5374 if test "$MINIX" = yes; then
5375
5376 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5377
5378
5379 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5380
5381
5382 $as_echo "#define _MINIX 1" >>confdefs.h
5383
5384 fi
5385
5386
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5388 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5389 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5390 $as_echo_n "(cached) " >&6
5391 else
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5394
5395 # define __EXTENSIONS__ 1
5396 $ac_includes_default
5397 int
5398 main ()
5399 {
5400
5401 ;
5402 return 0;
5403 }
5404 _ACEOF
5405 if ac_fn_c_try_compile "$LINENO"; then :
5406 ac_cv_safe_to_define___extensions__=yes
5407 else
5408 ac_cv_safe_to_define___extensions__=no
5409 fi
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 fi
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5413 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5414 test $ac_cv_safe_to_define___extensions__ = yes &&
5415 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5416
5417 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5418
5419 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5420
5421 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5422
5423 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5437 if test -n "$ac_tool_prefix"; then
5438 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5439 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 case $PKG_CONFIG in
5446 [\\/]* | ?:[\\/]*)
5447 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5448 ;;
5449 *)
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 for as_dir in $PATH
5452 do
5453 IFS=$as_save_IFS
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5457 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 break 2
5460 fi
5461 done
5462 done
5463 IFS=$as_save_IFS
5464
5465 ;;
5466 esac
5467 fi
5468 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5469 if test -n "$PKG_CONFIG"; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5471 $as_echo "$PKG_CONFIG" >&6; }
5472 else
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5475 fi
5476
5477
5478 fi
5479 if test -z "$ac_cv_path_PKG_CONFIG"; then
5480 ac_pt_PKG_CONFIG=$PKG_CONFIG
5481 # Extract the first word of "pkg-config", so it can be a program name with args.
5482 set dummy pkg-config; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 case $ac_pt_PKG_CONFIG in
5489 [\\/]* | ?:[\\/]*)
5490 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5491 ;;
5492 *)
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5495 do
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 break 2
5503 fi
5504 done
5505 done
5506 IFS=$as_save_IFS
5507
5508 ;;
5509 esac
5510 fi
5511 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5512 if test -n "$ac_pt_PKG_CONFIG"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5514 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5515 else
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5518 fi
5519
5520 if test "x$ac_pt_PKG_CONFIG" = x; then
5521 PKG_CONFIG=""
5522 else
5523 case $cross_compiling:$ac_tool_warned in
5524 yes:)
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5527 ac_tool_warned=yes ;;
5528 esac
5529 PKG_CONFIG=$ac_pt_PKG_CONFIG
5530 fi
5531 else
5532 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5533 fi
5534
5535 fi
5536 if test -n "$PKG_CONFIG"; then
5537 _pkg_min_version=0.9.0
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5539 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5540 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5542 $as_echo "yes" >&6; }
5543 else
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546 PKG_CONFIG=""
5547 fi
5548 fi
5549
5550 case `pwd` in
5551 *\ * | *\ *)
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5553 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5554 esac
5555
5556
5557
5558 macro_version='2.2.7a'
5559 macro_revision='1.3134'
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573 ltmain="$ac_aux_dir/ltmain.sh"
5574
5575 # Backslashify metacharacters that are still active within
5576 # double-quoted strings.
5577 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5578
5579 # Same as above, but do not quote variable references.
5580 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5581
5582 # Sed substitution to delay expansion of an escaped shell variable in a
5583 # double_quote_subst'ed string.
5584 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5585
5586 # Sed substitution to delay expansion of an escaped single quote.
5587 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5588
5589 # Sed substitution to avoid accidental globbing in evaled expressions
5590 no_glob_subst='s/\*/\\\*/g'
5591
5592 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5593 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5594 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5595
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5597 $as_echo_n "checking how to print strings... " >&6; }
5598 # Test print first, because it will be a builtin if present.
5599 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5600 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5601 ECHO='print -r --'
5602 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5603 ECHO='printf %s\n'
5604 else
5605 # Use this function as a fallback that always works.
5606 func_fallback_echo ()
5607 {
5608 eval 'cat <<_LTECHO_EOF
5609 $1
5610 _LTECHO_EOF'
5611 }
5612 ECHO='func_fallback_echo'
5613 fi
5614
5615 # func_echo_all arg...
5616 # Invoke $ECHO with all args, space-separated.
5617 func_echo_all ()
5618 {
5619 $ECHO ""
5620 }
5621
5622 case "$ECHO" in
5623 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5624 $as_echo "printf" >&6; } ;;
5625 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5626 $as_echo "print -r" >&6; } ;;
5627 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5628 $as_echo "cat" >&6; } ;;
5629 esac
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5645 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5646 if ${ac_cv_path_SED+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5649 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5650 for ac_i in 1 2 3 4 5 6 7; do
5651 ac_script="$ac_script$as_nl$ac_script"
5652 done
5653 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5654 { ac_script=; unset ac_script;}
5655 if test -z "$SED"; then
5656 ac_path_SED_found=false
5657 # Loop through the user's path and test for each of PROGNAME-LIST
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 for as_dir in $PATH
5660 do
5661 IFS=$as_save_IFS
5662 test -z "$as_dir" && as_dir=.
5663 for ac_prog in sed gsed; do
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5666 as_fn_executable_p "$ac_path_SED" || continue
5667 # Check for GNU ac_path_SED and select it if it is found.
5668 # Check for GNU $ac_path_SED
5669 case `"$ac_path_SED" --version 2>&1` in
5670 *GNU*)
5671 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5672 *)
5673 ac_count=0
5674 $as_echo_n 0123456789 >"conftest.in"
5675 while :
5676 do
5677 cat "conftest.in" "conftest.in" >"conftest.tmp"
5678 mv "conftest.tmp" "conftest.in"
5679 cp "conftest.in" "conftest.nl"
5680 $as_echo '' >> "conftest.nl"
5681 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5683 as_fn_arith $ac_count + 1 && ac_count=$as_val
5684 if test $ac_count -gt ${ac_path_SED_max-0}; then
5685 # Best one so far, save it but keep looking for a better one
5686 ac_cv_path_SED="$ac_path_SED"
5687 ac_path_SED_max=$ac_count
5688 fi
5689 # 10*(2^10) chars as input seems more than enough
5690 test $ac_count -gt 10 && break
5691 done
5692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5693 esac
5694
5695 $ac_path_SED_found && break 3
5696 done
5697 done
5698 done
5699 IFS=$as_save_IFS
5700 if test -z "$ac_cv_path_SED"; then
5701 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5702 fi
5703 else
5704 ac_cv_path_SED=$SED
5705 fi
5706
5707 fi
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5709 $as_echo "$ac_cv_path_SED" >&6; }
5710 SED="$ac_cv_path_SED"
5711 rm -f conftest.sed
5712
5713 test -z "$SED" && SED=sed
5714 Xsed="$SED -e 1s/^X//"
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5727 $as_echo_n "checking for fgrep... " >&6; }
5728 if ${ac_cv_path_FGREP+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5732 then ac_cv_path_FGREP="$GREP -F"
5733 else
5734 if test -z "$FGREP"; then
5735 ac_path_FGREP_found=false
5736 # Loop through the user's path and test for each of PROGNAME-LIST
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5739 do
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_prog in fgrep; do
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5745 as_fn_executable_p "$ac_path_FGREP" || continue
5746 # Check for GNU ac_path_FGREP and select it if it is found.
5747 # Check for GNU $ac_path_FGREP
5748 case `"$ac_path_FGREP" --version 2>&1` in
5749 *GNU*)
5750 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5751 *)
5752 ac_count=0
5753 $as_echo_n 0123456789 >"conftest.in"
5754 while :
5755 do
5756 cat "conftest.in" "conftest.in" >"conftest.tmp"
5757 mv "conftest.tmp" "conftest.in"
5758 cp "conftest.in" "conftest.nl"
5759 $as_echo 'FGREP' >> "conftest.nl"
5760 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5761 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5762 as_fn_arith $ac_count + 1 && ac_count=$as_val
5763 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5764 # Best one so far, save it but keep looking for a better one
5765 ac_cv_path_FGREP="$ac_path_FGREP"
5766 ac_path_FGREP_max=$ac_count
5767 fi
5768 # 10*(2^10) chars as input seems more than enough
5769 test $ac_count -gt 10 && break
5770 done
5771 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5772 esac
5773
5774 $ac_path_FGREP_found && break 3
5775 done
5776 done
5777 done
5778 IFS=$as_save_IFS
5779 if test -z "$ac_cv_path_FGREP"; then
5780 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5781 fi
5782 else
5783 ac_cv_path_FGREP=$FGREP
5784 fi
5785
5786 fi
5787 fi
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5789 $as_echo "$ac_cv_path_FGREP" >&6; }
5790 FGREP="$ac_cv_path_FGREP"
5791
5792
5793 test -z "$GREP" && GREP=grep
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813 # Check whether --with-gnu-ld was given.
5814 if test "${with_gnu_ld+set}" = set; then :
5815 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5816 else
5817 with_gnu_ld=no
5818 fi
5819
5820 ac_prog=ld
5821 if test "$GCC" = yes; then
5822 # Check if gcc -print-prog-name=ld gives a path.
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5824 $as_echo_n "checking for ld used by $CC... " >&6; }
5825 case $host in
5826 *-*-mingw*)
5827 # gcc leaves a trailing carriage return which upsets mingw
5828 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5829 *)
5830 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5831 esac
5832 case $ac_prog in
5833 # Accept absolute paths.
5834 [\\/]* | ?:[\\/]*)
5835 re_direlt='/[^/][^/]*/\.\./'
5836 # Canonicalize the pathname of ld
5837 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5838 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5839 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5840 done
5841 test -z "$LD" && LD="$ac_prog"
5842 ;;
5843 "")
5844 # If it fails, then pretend we aren't using GCC.
5845 ac_prog=ld
5846 ;;
5847 *)
5848 # If it is relative, then search for the first ld in PATH.
5849 with_gnu_ld=unknown
5850 ;;
5851 esac
5852 elif test "$with_gnu_ld" = yes; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5854 $as_echo_n "checking for GNU ld... " >&6; }
5855 else
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5857 $as_echo_n "checking for non-GNU ld... " >&6; }
5858 fi
5859 if ${lt_cv_path_LD+:} false; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 if test -z "$LD"; then
5863 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5864 for ac_dir in $PATH; do
5865 IFS="$lt_save_ifs"
5866 test -z "$ac_dir" && ac_dir=.
5867 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5868 lt_cv_path_LD="$ac_dir/$ac_prog"
5869 # Check to see if the program is GNU ld. I'd rather use --version,
5870 # but apparently some variants of GNU ld only accept -v.
5871 # Break only if it was the GNU/non-GNU ld that we prefer.
5872 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5873 *GNU* | *'with BFD'*)
5874 test "$with_gnu_ld" != no && break
5875 ;;
5876 *)
5877 test "$with_gnu_ld" != yes && break
5878 ;;
5879 esac
5880 fi
5881 done
5882 IFS="$lt_save_ifs"
5883 else
5884 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5885 fi
5886 fi
5887
5888 LD="$lt_cv_path_LD"
5889 if test -n "$LD"; then
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5891 $as_echo "$LD" >&6; }
5892 else
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 $as_echo "no" >&6; }
5895 fi
5896 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5898 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5899 if ${lt_cv_prog_gnu_ld+:} false; then :
5900 $as_echo_n "(cached) " >&6
5901 else
5902 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5903 case `$LD -v 2>&1 </dev/null` in
5904 *GNU* | *'with BFD'*)
5905 lt_cv_prog_gnu_ld=yes
5906 ;;
5907 *)
5908 lt_cv_prog_gnu_ld=no
5909 ;;
5910 esac
5911 fi
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5913 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5914 with_gnu_ld=$lt_cv_prog_gnu_ld
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5925 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5926 if ${lt_cv_path_NM+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 if test -n "$NM"; then
5930 # Let the user override the nm to test.
5931 lt_nm_to_check="$NM"
5932 else
5933 lt_nm_to_check="${ac_tool_prefix}nm"
5934 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5935 lt_nm_to_check="$lt_nm_to_check nm"
5936 fi
5937 fi
5938 for lt_tmp_nm in "$lt_nm_to_check"; do
5939 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5940 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5941 IFS="$lt_save_ifs"
5942 test -z "$ac_dir" && ac_dir=.
5943 # Strip out any user-provided options from the nm to test twice,
5944 # the first time to test to see if nm (rather than its options) has
5945 # an explicit path, the second time to yield a file which can be
5946 # nm'ed itself.
5947 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5948 case "$tmp_nm_path" in
5949 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5950 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5951 esac
5952 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5953 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5954 # Check to see if the nm accepts a BSD-compat flag.
5955 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5956 # nm: unknown option "B" ignored
5957 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5958 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5959 break
5960 ;;
5961 *)
5962 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5963 *$tmp_nm*)
5964 lt_cv_path_NM="$tmp_nm -p"
5965 break
5966 ;;
5967 *)
5968 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5969 continue # so that we can try to find one that supports BSD flags
5970 ;;
5971 esac
5972 ;;
5973 esac
5974 fi
5975 done
5976 IFS="$lt_save_ifs"
5977 done
5978 : ${lt_cv_path_NM=no}
5979 fi
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5981 $as_echo "$lt_cv_path_NM" >&6; }
5982 if test "$lt_cv_path_NM" != "no"; then
5983 NM="$lt_cv_path_NM"
5984 else
5985 # Didn't find any BSD compatible name lister, look for dumpbin.
5986 if test -n "$DUMPBIN"; then :
5987 # Let the user override the test.
5988 else
5989 if test -n "$ac_tool_prefix"; then
5990 for ac_prog in dumpbin "link -dump"
5991 do
5992 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5993 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995 $as_echo_n "checking for $ac_word... " >&6; }
5996 if ${ac_cv_prog_DUMPBIN+:} false; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 if test -n "$DUMPBIN"; then
6000 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6001 else
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH
6004 do
6005 IFS=$as_save_IFS
6006 test -z "$as_dir" && as_dir=.
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6009 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 break 2
6012 fi
6013 done
6014 done
6015 IFS=$as_save_IFS
6016
6017 fi
6018 fi
6019 DUMPBIN=$ac_cv_prog_DUMPBIN
6020 if test -n "$DUMPBIN"; then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6022 $as_echo "$DUMPBIN" >&6; }
6023 else
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025 $as_echo "no" >&6; }
6026 fi
6027
6028
6029 test -n "$DUMPBIN" && break
6030 done
6031 fi
6032 if test -z "$DUMPBIN"; then
6033 ac_ct_DUMPBIN=$DUMPBIN
6034 for ac_prog in dumpbin "link -dump"
6035 do
6036 # Extract the first word of "$ac_prog", so it can be a program name with args.
6037 set dummy $ac_prog; ac_word=$2
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6039 $as_echo_n "checking for $ac_word... " >&6; }
6040 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 if test -n "$ac_ct_DUMPBIN"; then
6044 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6048 do
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 break 2
6056 fi
6057 done
6058 done
6059 IFS=$as_save_IFS
6060
6061 fi
6062 fi
6063 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6064 if test -n "$ac_ct_DUMPBIN"; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6066 $as_echo "$ac_ct_DUMPBIN" >&6; }
6067 else
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069 $as_echo "no" >&6; }
6070 fi
6071
6072
6073 test -n "$ac_ct_DUMPBIN" && break
6074 done
6075
6076 if test "x$ac_ct_DUMPBIN" = x; then
6077 DUMPBIN=":"
6078 else
6079 case $cross_compiling:$ac_tool_warned in
6080 yes:)
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6083 ac_tool_warned=yes ;;
6084 esac
6085 DUMPBIN=$ac_ct_DUMPBIN
6086 fi
6087 fi
6088
6089 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6090 *COFF*)
6091 DUMPBIN="$DUMPBIN -symbols"
6092 ;;
6093 *)
6094 DUMPBIN=:
6095 ;;
6096 esac
6097 fi
6098
6099 if test "$DUMPBIN" != ":"; then
6100 NM="$DUMPBIN"
6101 fi
6102 fi
6103 test -z "$NM" && NM=nm
6104
6105
6106
6107
6108
6109
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6111 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6112 if ${lt_cv_nm_interface+:} false; then :
6113 $as_echo_n "(cached) " >&6
6114 else
6115 lt_cv_nm_interface="BSD nm"
6116 echo "int some_variable = 0;" > conftest.$ac_ext
6117 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6118 (eval "$ac_compile" 2>conftest.err)
6119 cat conftest.err >&5
6120 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6121 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6122 cat conftest.err >&5
6123 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6124 cat conftest.out >&5
6125 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6126 lt_cv_nm_interface="MS dumpbin"
6127 fi
6128 rm -f conftest*
6129 fi
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6131 $as_echo "$lt_cv_nm_interface" >&6; }
6132
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6134 $as_echo_n "checking whether ln -s works... " >&6; }
6135 LN_S=$as_ln_s
6136 if test "$LN_S" = "ln -s"; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6138 $as_echo "yes" >&6; }
6139 else
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6141 $as_echo "no, using $LN_S" >&6; }
6142 fi
6143
6144 # find the maximum length of command line arguments
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6146 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6147 if ${lt_cv_sys_max_cmd_len+:} false; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 i=0
6151 teststring="ABCD"
6152
6153 case $build_os in
6154 msdosdjgpp*)
6155 # On DJGPP, this test can blow up pretty badly due to problems in libc
6156 # (any single argument exceeding 2000 bytes causes a buffer overrun
6157 # during glob expansion). Even if it were fixed, the result of this
6158 # check would be larger than it should be.
6159 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6160 ;;
6161
6162 gnu*)
6163 # Under GNU Hurd, this test is not required because there is
6164 # no limit to the length of command line arguments.
6165 # Libtool will interpret -1 as no limit whatsoever
6166 lt_cv_sys_max_cmd_len=-1;
6167 ;;
6168
6169 cygwin* | mingw* | cegcc*)
6170 # On Win9x/ME, this test blows up -- it succeeds, but takes
6171 # about 5 minutes as the teststring grows exponentially.
6172 # Worse, since 9x/ME are not pre-emptively multitasking,
6173 # you end up with a "frozen" computer, even though with patience
6174 # the test eventually succeeds (with a max line length of 256k).
6175 # Instead, let's just punt: use the minimum linelength reported by
6176 # all of the supported platforms: 8192 (on NT/2K/XP).
6177 lt_cv_sys_max_cmd_len=8192;
6178 ;;
6179
6180 mint*)
6181 # On MiNT this can take a long time and run out of memory.
6182 lt_cv_sys_max_cmd_len=8192;
6183 ;;
6184
6185 amigaos*)
6186 # On AmigaOS with pdksh, this test takes hours, literally.
6187 # So we just punt and use a minimum line length of 8192.
6188 lt_cv_sys_max_cmd_len=8192;
6189 ;;
6190
6191 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6192 # This has been around since 386BSD, at least. Likely further.
6193 if test -x /sbin/sysctl; then
6194 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6195 elif test -x /usr/sbin/sysctl; then
6196 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6197 else
6198 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6199 fi
6200 # And add a safety zone
6201 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6202 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6203 ;;
6204
6205 interix*)
6206 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6207 lt_cv_sys_max_cmd_len=196608
6208 ;;
6209
6210 osf*)
6211 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6212 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6213 # nice to cause kernel panics so lets avoid the loop below.
6214 # First set a reasonable default.
6215 lt_cv_sys_max_cmd_len=16384
6216 #
6217 if test -x /sbin/sysconfig; then
6218 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6219 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6220 esac
6221 fi
6222 ;;
6223 sco3.2v5*)
6224 lt_cv_sys_max_cmd_len=102400
6225 ;;
6226 sysv5* | sco5v6* | sysv4.2uw2*)
6227 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6228 if test -n "$kargmax"; then
6229 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6230 else
6231 lt_cv_sys_max_cmd_len=32768
6232 fi
6233 ;;
6234 *)
6235 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6236 if test -n "$lt_cv_sys_max_cmd_len"; then
6237 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6239 else
6240 # Make teststring a little bigger before we do anything with it.
6241 # a 1K string should be a reasonable start.
6242 for i in 1 2 3 4 5 6 7 8 ; do
6243 teststring=$teststring$teststring
6244 done
6245 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6246 # If test is not a shell built-in, we'll probably end up computing a
6247 # maximum length that is only half of the actual maximum length, but
6248 # we can't tell.
6249 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6250 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6251 test $i != 17 # 1/2 MB should be enough
6252 do
6253 i=`expr $i + 1`
6254 teststring=$teststring$teststring
6255 done
6256 # Only check the string length outside the loop.
6257 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6258 teststring=
6259 # Add a significant safety factor because C++ compilers can tack on
6260 # massive amounts of additional arguments before passing them to the
6261 # linker. It appears as though 1/2 is a usable value.
6262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6263 fi
6264 ;;
6265 esac
6266
6267 fi
6268
6269 if test -n $lt_cv_sys_max_cmd_len ; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6271 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6272 else
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6274 $as_echo "none" >&6; }
6275 fi
6276 max_cmd_len=$lt_cv_sys_max_cmd_len
6277
6278
6279
6280
6281
6282
6283 : ${CP="cp -f"}
6284 : ${MV="mv -f"}
6285 : ${RM="rm -f"}
6286
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6288 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6289 # Try some XSI features
6290 xsi_shell=no
6291 ( _lt_dummy="a/b/c"
6292 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6293 = c,a/b,, \
6294 && eval 'test $(( 1 + 1 )) -eq 2 \
6295 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6296 && xsi_shell=yes
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6298 $as_echo "$xsi_shell" >&6; }
6299
6300
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6302 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6303 lt_shell_append=no
6304 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6305 >/dev/null 2>&1 \
6306 && lt_shell_append=yes
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6308 $as_echo "$lt_shell_append" >&6; }
6309
6310
6311 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6312 lt_unset=unset
6313 else
6314 lt_unset=false
6315 fi
6316
6317
6318
6319
6320
6321 # test EBCDIC or ASCII
6322 case `echo X|tr X '\101'` in
6323 A) # ASCII based system
6324 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6325 lt_SP2NL='tr \040 \012'
6326 lt_NL2SP='tr \015\012 \040\040'
6327 ;;
6328 *) # EBCDIC based system
6329 lt_SP2NL='tr \100 \n'
6330 lt_NL2SP='tr \r\n \100\100'
6331 ;;
6332 esac
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6343 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6344 if ${lt_cv_ld_reload_flag+:} false; then :
6345 $as_echo_n "(cached) " >&6
6346 else
6347 lt_cv_ld_reload_flag='-r'
6348 fi
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6350 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6351 reload_flag=$lt_cv_ld_reload_flag
6352 case $reload_flag in
6353 "" | " "*) ;;
6354 *) reload_flag=" $reload_flag" ;;
6355 esac
6356 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6357 case $host_os in
6358 darwin*)
6359 if test "$GCC" = yes; then
6360 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6361 else
6362 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6363 fi
6364 ;;
6365 esac
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375 if test -n "$ac_tool_prefix"; then
6376 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6377 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if ${ac_cv_prog_OBJDUMP+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 if test -n "$OBJDUMP"; then
6384 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6385 else
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 break 2
6396 fi
6397 done
6398 done
6399 IFS=$as_save_IFS
6400
6401 fi
6402 fi
6403 OBJDUMP=$ac_cv_prog_OBJDUMP
6404 if test -n "$OBJDUMP"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6406 $as_echo "$OBJDUMP" >&6; }
6407 else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6410 fi
6411
6412
6413 fi
6414 if test -z "$ac_cv_prog_OBJDUMP"; then
6415 ac_ct_OBJDUMP=$OBJDUMP
6416 # Extract the first word of "objdump", so it can be a program name with args.
6417 set dummy objdump; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6421 $as_echo_n "(cached) " >&6
6422 else
6423 if test -n "$ac_ct_OBJDUMP"; then
6424 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6425 else
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
6428 do
6429 IFS=$as_save_IFS
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6433 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 break 2
6436 fi
6437 done
6438 done
6439 IFS=$as_save_IFS
6440
6441 fi
6442 fi
6443 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6444 if test -n "$ac_ct_OBJDUMP"; then
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6446 $as_echo "$ac_ct_OBJDUMP" >&6; }
6447 else
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 $as_echo "no" >&6; }
6450 fi
6451
6452 if test "x$ac_ct_OBJDUMP" = x; then
6453 OBJDUMP="false"
6454 else
6455 case $cross_compiling:$ac_tool_warned in
6456 yes:)
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6459 ac_tool_warned=yes ;;
6460 esac
6461 OBJDUMP=$ac_ct_OBJDUMP
6462 fi
6463 else
6464 OBJDUMP="$ac_cv_prog_OBJDUMP"
6465 fi
6466
6467 test -z "$OBJDUMP" && OBJDUMP=objdump
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6478 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6479 if ${lt_cv_deplibs_check_method+:} false; then :
6480 $as_echo_n "(cached) " >&6
6481 else
6482 lt_cv_file_magic_cmd='$MAGIC_CMD'
6483 lt_cv_file_magic_test_file=
6484 lt_cv_deplibs_check_method='unknown'
6485 # Need to set the preceding variable on all platforms that support
6486 # interlibrary dependencies.
6487 # 'none' -- dependencies not supported.
6488 # `unknown' -- same as none, but documents that we really don't know.
6489 # 'pass_all' -- all dependencies passed with no checks.
6490 # 'test_compile' -- check by making test program.
6491 # 'file_magic [[regex]]' -- check by looking for files in library path
6492 # which responds to the $file_magic_cmd with a given extended regex.
6493 # If you have `file' or equivalent on your system and you're not sure
6494 # whether `pass_all' will *always* work, you probably want this one.
6495
6496 case $host_os in
6497 aix[4-9]*)
6498 lt_cv_deplibs_check_method=pass_all
6499 ;;
6500
6501 beos*)
6502 lt_cv_deplibs_check_method=pass_all
6503 ;;
6504
6505 bsdi[45]*)
6506 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6507 lt_cv_file_magic_cmd='/usr/bin/file -L'
6508 lt_cv_file_magic_test_file=/shlib/libc.so
6509 ;;
6510
6511 cygwin*)
6512 # func_win32_libid is a shell function defined in ltmain.sh
6513 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6514 lt_cv_file_magic_cmd='func_win32_libid'
6515 ;;
6516
6517 mingw* | pw32*)
6518 # Base MSYS/MinGW do not provide the 'file' command needed by
6519 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6520 # unless we find 'file', for example because we are cross-compiling.
6521 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6522 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6523 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6524 lt_cv_file_magic_cmd='func_win32_libid'
6525 else
6526 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6527 lt_cv_file_magic_cmd='$OBJDUMP -f'
6528 fi
6529 ;;
6530
6531 cegcc*)
6532 # use the weaker test based on 'objdump'. See mingw*.
6533 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6534 lt_cv_file_magic_cmd='$OBJDUMP -f'
6535 ;;
6536
6537 darwin* | rhapsody*)
6538 lt_cv_deplibs_check_method=pass_all
6539 ;;
6540
6541 freebsd* | dragonfly*)
6542 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6543 case $host_cpu in
6544 i*86 )
6545 # Not sure whether the presence of OpenBSD here was a mistake.
6546 # Let's accept both of them until this is cleared up.
6547 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6548 lt_cv_file_magic_cmd=/usr/bin/file
6549 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6550 ;;
6551 esac
6552 else
6553 lt_cv_deplibs_check_method=pass_all
6554 fi
6555 ;;
6556
6557 gnu*)
6558 lt_cv_deplibs_check_method=pass_all
6559 ;;
6560
6561 haiku*)
6562 lt_cv_deplibs_check_method=pass_all
6563 ;;
6564
6565 hpux10.20* | hpux11*)
6566 lt_cv_file_magic_cmd=/usr/bin/file
6567 case $host_cpu in
6568 ia64*)
6569 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6570 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6571 ;;
6572 hppa*64*)
6573 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]'
6574 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6575 ;;
6576 *)
6577 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6578 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6579 ;;
6580 esac
6581 ;;
6582
6583 interix[3-9]*)
6584 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6585 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6586 ;;
6587
6588 irix5* | irix6* | nonstopux*)
6589 case $LD in
6590 *-32|*"-32 ") libmagic=32-bit;;
6591 *-n32|*"-n32 ") libmagic=N32;;
6592 *-64|*"-64 ") libmagic=64-bit;;
6593 *) libmagic=never-match;;
6594 esac
6595 lt_cv_deplibs_check_method=pass_all
6596 ;;
6597
6598 # This must be Linux ELF.
6599 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6600 lt_cv_deplibs_check_method=pass_all
6601 ;;
6602
6603 netbsd*)
6604 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6606 else
6607 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6608 fi
6609 ;;
6610
6611 newos6*)
6612 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6613 lt_cv_file_magic_cmd=/usr/bin/file
6614 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6615 ;;
6616
6617 *nto* | *qnx*)
6618 lt_cv_deplibs_check_method=pass_all
6619 ;;
6620
6621 openbsd*)
6622 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6624 else
6625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6626 fi
6627 ;;
6628
6629 osf3* | osf4* | osf5*)
6630 lt_cv_deplibs_check_method=pass_all
6631 ;;
6632
6633 rdos*)
6634 lt_cv_deplibs_check_method=pass_all
6635 ;;
6636
6637 solaris*)
6638 lt_cv_deplibs_check_method=pass_all
6639 ;;
6640
6641 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6642 lt_cv_deplibs_check_method=pass_all
6643 ;;
6644
6645 sysv4 | sysv4.3*)
6646 case $host_vendor in
6647 motorola)
6648 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]'
6649 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6650 ;;
6651 ncr)
6652 lt_cv_deplibs_check_method=pass_all
6653 ;;
6654 sequent)
6655 lt_cv_file_magic_cmd='/bin/file'
6656 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6657 ;;
6658 sni)
6659 lt_cv_file_magic_cmd='/bin/file'
6660 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6661 lt_cv_file_magic_test_file=/lib/libc.so
6662 ;;
6663 siemens)
6664 lt_cv_deplibs_check_method=pass_all
6665 ;;
6666 pc)
6667 lt_cv_deplibs_check_method=pass_all
6668 ;;
6669 esac
6670 ;;
6671
6672 tpf*)
6673 lt_cv_deplibs_check_method=pass_all
6674 ;;
6675 vxworks*)
6676 # Assume VxWorks cross toolchains are built on Linux, possibly
6677 # as canadian for Windows hosts.
6678 lt_cv_deplibs_check_method=pass_all
6679 ;;
6680 esac
6681
6682 fi
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6684 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6685 file_magic_cmd=$lt_cv_file_magic_cmd
6686 deplibs_check_method=$lt_cv_deplibs_check_method
6687 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700 plugin_option=
6701 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6702 for plugin in $plugin_names; do
6703 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6704 if test x$plugin_so = x$plugin; then
6705 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6706 fi
6707 if test x$plugin_so != x$plugin; then
6708 plugin_option="--plugin $plugin_so"
6709 break
6710 fi
6711 done
6712
6713 if test -n "$ac_tool_prefix"; then
6714 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6715 set dummy ${ac_tool_prefix}ar; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if ${ac_cv_prog_AR+:} false; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 if test -n "$AR"; then
6722 ac_cv_prog_AR="$AR" # Let the user override the test.
6723 else
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6731 ac_cv_prog_AR="${ac_tool_prefix}ar"
6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 break 2
6734 fi
6735 done
6736 done
6737 IFS=$as_save_IFS
6738
6739 fi
6740 fi
6741 AR=$ac_cv_prog_AR
6742 if test -n "$AR"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6744 $as_echo "$AR" >&6; }
6745 else
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6748 fi
6749
6750
6751 fi
6752 if test -z "$ac_cv_prog_AR"; then
6753 ac_ct_AR=$AR
6754 # Extract the first word of "ar", so it can be a program name with args.
6755 set dummy ar; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6759 $as_echo_n "(cached) " >&6
6760 else
6761 if test -n "$ac_ct_AR"; then
6762 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771 ac_cv_prog_ac_ct_AR="ar"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6774 fi
6775 done
6776 done
6777 IFS=$as_save_IFS
6778
6779 fi
6780 fi
6781 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6782 if test -n "$ac_ct_AR"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6784 $as_echo "$ac_ct_AR" >&6; }
6785 else
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6788 fi
6789
6790 if test "x$ac_ct_AR" = x; then
6791 AR="false"
6792 else
6793 case $cross_compiling:$ac_tool_warned in
6794 yes:)
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797 ac_tool_warned=yes ;;
6798 esac
6799 AR=$ac_ct_AR
6800 fi
6801 else
6802 AR="$ac_cv_prog_AR"
6803 fi
6804
6805 test -z "$AR" && AR=ar
6806 if test -n "$plugin_option"; then
6807 if $AR --help 2>&1 | grep -q "\--plugin"; then
6808 touch conftest.c
6809 $AR $plugin_option rc conftest.a conftest.c
6810 if test "$?" != 0; then
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6812 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6813 else
6814 AR="$AR $plugin_option"
6815 fi
6816 rm -f conftest.*
6817 fi
6818 fi
6819 test -z "$AR_FLAGS" && AR_FLAGS=cru
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831 if test -n "$ac_tool_prefix"; then
6832 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6833 set dummy ${ac_tool_prefix}strip; ac_word=$2
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835 $as_echo_n "checking for $ac_word... " >&6; }
6836 if ${ac_cv_prog_STRIP+:} false; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 if test -n "$STRIP"; then
6840 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6841 else
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6844 do
6845 IFS=$as_save_IFS
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6849 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 break 2
6852 fi
6853 done
6854 done
6855 IFS=$as_save_IFS
6856
6857 fi
6858 fi
6859 STRIP=$ac_cv_prog_STRIP
6860 if test -n "$STRIP"; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6862 $as_echo "$STRIP" >&6; }
6863 else
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 $as_echo "no" >&6; }
6866 fi
6867
6868
6869 fi
6870 if test -z "$ac_cv_prog_STRIP"; then
6871 ac_ct_STRIP=$STRIP
6872 # Extract the first word of "strip", so it can be a program name with args.
6873 set dummy strip; ac_word=$2
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 $as_echo_n "checking for $ac_word... " >&6; }
6876 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 if test -n "$ac_ct_STRIP"; then
6880 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6881 else
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6884 do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6889 ac_cv_prog_ac_ct_STRIP="strip"
6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893 done
6894 done
6895 IFS=$as_save_IFS
6896
6897 fi
6898 fi
6899 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6900 if test -n "$ac_ct_STRIP"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6902 $as_echo "$ac_ct_STRIP" >&6; }
6903 else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 $as_echo "no" >&6; }
6906 fi
6907
6908 if test "x$ac_ct_STRIP" = x; then
6909 STRIP=":"
6910 else
6911 case $cross_compiling:$ac_tool_warned in
6912 yes:)
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6915 ac_tool_warned=yes ;;
6916 esac
6917 STRIP=$ac_ct_STRIP
6918 fi
6919 else
6920 STRIP="$ac_cv_prog_STRIP"
6921 fi
6922
6923 test -z "$STRIP" && STRIP=:
6924
6925
6926
6927
6928
6929
6930 if test -n "$ac_tool_prefix"; then
6931 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6932 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934 $as_echo_n "checking for $ac_word... " >&6; }
6935 if ${ac_cv_prog_RANLIB+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 if test -n "$RANLIB"; then
6939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6940 else
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6948 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6951 fi
6952 done
6953 done
6954 IFS=$as_save_IFS
6955
6956 fi
6957 fi
6958 RANLIB=$ac_cv_prog_RANLIB
6959 if test -n "$RANLIB"; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6961 $as_echo "$RANLIB" >&6; }
6962 else
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 $as_echo "no" >&6; }
6965 fi
6966
6967
6968 fi
6969 if test -z "$ac_cv_prog_RANLIB"; then
6970 ac_ct_RANLIB=$RANLIB
6971 # Extract the first word of "ranlib", so it can be a program name with args.
6972 set dummy ranlib; ac_word=$2
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974 $as_echo_n "checking for $ac_word... " >&6; }
6975 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6976 $as_echo_n "(cached) " >&6
6977 else
6978 if test -n "$ac_ct_RANLIB"; then
6979 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6980 else
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 for as_dir in $PATH
6983 do
6984 IFS=$as_save_IFS
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6988 ac_cv_prog_ac_ct_RANLIB="ranlib"
6989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 break 2
6991 fi
6992 done
6993 done
6994 IFS=$as_save_IFS
6995
6996 fi
6997 fi
6998 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6999 if test -n "$ac_ct_RANLIB"; then
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7001 $as_echo "$ac_ct_RANLIB" >&6; }
7002 else
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004 $as_echo "no" >&6; }
7005 fi
7006
7007 if test "x$ac_ct_RANLIB" = x; then
7008 RANLIB=":"
7009 else
7010 case $cross_compiling:$ac_tool_warned in
7011 yes:)
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7014 ac_tool_warned=yes ;;
7015 esac
7016 RANLIB=$ac_ct_RANLIB
7017 fi
7018 else
7019 RANLIB="$ac_cv_prog_RANLIB"
7020 fi
7021
7022 test -z "$RANLIB" && RANLIB=:
7023 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7024 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7025 RANLIB="$RANLIB $plugin_option"
7026 fi
7027 fi
7028
7029
7030
7031
7032
7033
7034 # Determine commands to create old-style static archives.
7035 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7036 old_postinstall_cmds='chmod 644 $oldlib'
7037 old_postuninstall_cmds=
7038
7039 if test -n "$RANLIB"; then
7040 case $host_os in
7041 openbsd*)
7042 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7043 ;;
7044 *)
7045 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7046 ;;
7047 esac
7048 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7049 fi
7050
7051 case $host_os in
7052 darwin*)
7053 lock_old_archive_extraction=yes ;;
7054 *)
7055 lock_old_archive_extraction=no ;;
7056 esac
7057
7058
7059
7060
7061
7062
7063
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 # If no C compiler was specified, use CC.
7097 LTCC=${LTCC-"$CC"}
7098
7099 # If no C compiler flags were specified, use CFLAGS.
7100 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7101
7102 # Allow CC to be a program name with arguments.
7103 compiler=$CC
7104
7105
7106 # Check for command to grab the raw symbol name followed by C symbol from nm.
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7108 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7109 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7110 $as_echo_n "(cached) " >&6
7111 else
7112
7113 # These are sane defaults that work on at least a few old systems.
7114 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7115
7116 # Character class describing NM global symbol codes.
7117 symcode='[BCDEGRST]'
7118
7119 # Regexp to match symbols that can be accessed directly from C.
7120 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7121
7122 # Define system-specific variables.
7123 case $host_os in
7124 aix*)
7125 symcode='[BCDT]'
7126 ;;
7127 cygwin* | mingw* | pw32* | cegcc*)
7128 symcode='[ABCDGISTW]'
7129 ;;
7130 hpux*)
7131 if test "$host_cpu" = ia64; then
7132 symcode='[ABCDEGRST]'
7133 fi
7134 ;;
7135 irix* | nonstopux*)
7136 symcode='[BCDEGRST]'
7137 ;;
7138 osf*)
7139 symcode='[BCDEGQRST]'
7140 ;;
7141 solaris*)
7142 symcode='[BCDRT]'
7143 ;;
7144 sco3.2v5*)
7145 symcode='[DT]'
7146 ;;
7147 sysv4.2uw2*)
7148 symcode='[DT]'
7149 ;;
7150 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7151 symcode='[ABDT]'
7152 ;;
7153 sysv4)
7154 symcode='[DFNSTU]'
7155 ;;
7156 esac
7157
7158 # If we're using GNU nm, then use its standard symbol codes.
7159 case `$NM -V 2>&1` in
7160 *GNU* | *'with BFD'*)
7161 symcode='[ABCDGIRSTW]' ;;
7162 esac
7163
7164 # Transform an extracted symbol line into a proper C declaration.
7165 # Some systems (esp. on ia64) link data and code symbols differently,
7166 # so use this general approach.
7167 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7168
7169 # Transform an extracted symbol line into symbol name and symbol address
7170 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7171 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'"
7172
7173 # Handle CRLF in mingw tool chain
7174 opt_cr=
7175 case $build_os in
7176 mingw*)
7177 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7178 ;;
7179 esac
7180
7181 # Try without a prefix underscore, then with it.
7182 for ac_symprfx in "" "_"; do
7183
7184 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7185 symxfrm="\\1 $ac_symprfx\\2 \\2"
7186
7187 # Write the raw and C identifiers.
7188 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7189 # Fake it for dumpbin and say T for any non-static function
7190 # and D for any global variable.
7191 # Also find C++ and __fastcall symbols from MSVC++,
7192 # which start with @ or ?.
7193 lt_cv_sys_global_symbol_pipe="$AWK '"\
7194 " {last_section=section; section=\$ 3};"\
7195 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7196 " \$ 0!~/External *\|/{next};"\
7197 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7198 " {if(hide[section]) next};"\
7199 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7200 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7201 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7202 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7203 " ' prfx=^$ac_symprfx"
7204 else
7205 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7206 fi
7207
7208 # Check to see that the pipe works correctly.
7209 pipe_works=no
7210
7211 rm -f conftest*
7212 cat > conftest.$ac_ext <<_LT_EOF
7213 #ifdef __cplusplus
7214 extern "C" {
7215 #endif
7216 char nm_test_var;
7217 void nm_test_func(void);
7218 void nm_test_func(void){}
7219 #ifdef __cplusplus
7220 }
7221 #endif
7222 int main(){nm_test_var='a';nm_test_func();return(0);}
7223 _LT_EOF
7224
7225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7226 (eval $ac_compile) 2>&5
7227 ac_status=$?
7228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7229 test $ac_status = 0; }; then
7230 # Now try to grab the symbols.
7231 nlist=conftest.nm
7232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7233 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7234 ac_status=$?
7235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7236 test $ac_status = 0; } && test -s "$nlist"; then
7237 # Try sorting and uniquifying the output.
7238 if sort "$nlist" | uniq > "$nlist"T; then
7239 mv -f "$nlist"T "$nlist"
7240 else
7241 rm -f "$nlist"T
7242 fi
7243
7244 # Make sure that we snagged all the symbols we need.
7245 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7246 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7247 cat <<_LT_EOF > conftest.$ac_ext
7248 #ifdef __cplusplus
7249 extern "C" {
7250 #endif
7251
7252 _LT_EOF
7253 # Now generate the symbol file.
7254 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7255
7256 cat <<_LT_EOF >> conftest.$ac_ext
7257
7258 /* The mapping between symbol names and symbols. */
7259 const struct {
7260 const char *name;
7261 void *address;
7262 }
7263 lt__PROGRAM__LTX_preloaded_symbols[] =
7264 {
7265 { "@PROGRAM@", (void *) 0 },
7266 _LT_EOF
7267 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7268 cat <<\_LT_EOF >> conftest.$ac_ext
7269 {0, (void *) 0}
7270 };
7271
7272 /* This works around a problem in FreeBSD linker */
7273 #ifdef FREEBSD_WORKAROUND
7274 static const void *lt_preloaded_setup() {
7275 return lt__PROGRAM__LTX_preloaded_symbols;
7276 }
7277 #endif
7278
7279 #ifdef __cplusplus
7280 }
7281 #endif
7282 _LT_EOF
7283 # Now try linking the two files.
7284 mv conftest.$ac_objext conftstm.$ac_objext
7285 lt_save_LIBS="$LIBS"
7286 lt_save_CFLAGS="$CFLAGS"
7287 LIBS="conftstm.$ac_objext"
7288 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7290 (eval $ac_link) 2>&5
7291 ac_status=$?
7292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7293 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7294 pipe_works=yes
7295 fi
7296 LIBS="$lt_save_LIBS"
7297 CFLAGS="$lt_save_CFLAGS"
7298 else
7299 echo "cannot find nm_test_func in $nlist" >&5
7300 fi
7301 else
7302 echo "cannot find nm_test_var in $nlist" >&5
7303 fi
7304 else
7305 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7306 fi
7307 else
7308 echo "$progname: failed program was:" >&5
7309 cat conftest.$ac_ext >&5
7310 fi
7311 rm -rf conftest* conftst*
7312
7313 # Do not use the global_symbol_pipe unless it works.
7314 if test "$pipe_works" = yes; then
7315 break
7316 else
7317 lt_cv_sys_global_symbol_pipe=
7318 fi
7319 done
7320
7321 fi
7322
7323 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7324 lt_cv_sys_global_symbol_to_cdecl=
7325 fi
7326 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7328 $as_echo "failed" >&6; }
7329 else
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7331 $as_echo "ok" >&6; }
7332 fi
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355 # Check whether --enable-libtool-lock was given.
7356 if test "${enable_libtool_lock+set}" = set; then :
7357 enableval=$enable_libtool_lock;
7358 fi
7359
7360 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7361
7362 # Some flags need to be propagated to the compiler or linker for good
7363 # libtool support.
7364 case $host in
7365 ia64-*-hpux*)
7366 # Find out which ABI we are using.
7367 echo 'int i;' > conftest.$ac_ext
7368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7369 (eval $ac_compile) 2>&5
7370 ac_status=$?
7371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7372 test $ac_status = 0; }; then
7373 case `/usr/bin/file conftest.$ac_objext` in
7374 *ELF-32*)
7375 HPUX_IA64_MODE="32"
7376 ;;
7377 *ELF-64*)
7378 HPUX_IA64_MODE="64"
7379 ;;
7380 esac
7381 fi
7382 rm -rf conftest*
7383 ;;
7384 *-*-irix6*)
7385 # Find out which ABI we are using.
7386 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7388 (eval $ac_compile) 2>&5
7389 ac_status=$?
7390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7391 test $ac_status = 0; }; then
7392 if test "$lt_cv_prog_gnu_ld" = yes; then
7393 case `/usr/bin/file conftest.$ac_objext` in
7394 *32-bit*)
7395 LD="${LD-ld} -melf32bsmip"
7396 ;;
7397 *N32*)
7398 LD="${LD-ld} -melf32bmipn32"
7399 ;;
7400 *64-bit*)
7401 LD="${LD-ld} -melf64bmip"
7402 ;;
7403 esac
7404 else
7405 case `/usr/bin/file conftest.$ac_objext` in
7406 *32-bit*)
7407 LD="${LD-ld} -32"
7408 ;;
7409 *N32*)
7410 LD="${LD-ld} -n32"
7411 ;;
7412 *64-bit*)
7413 LD="${LD-ld} -64"
7414 ;;
7415 esac
7416 fi
7417 fi
7418 rm -rf conftest*
7419 ;;
7420
7421 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7422 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7423 # Find out which ABI we are using.
7424 echo 'int i;' > conftest.$ac_ext
7425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7426 (eval $ac_compile) 2>&5
7427 ac_status=$?
7428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7429 test $ac_status = 0; }; then
7430 case `/usr/bin/file conftest.o` in
7431 *32-bit*)
7432 case $host in
7433 x86_64-*kfreebsd*-gnu)
7434 LD="${LD-ld} -m elf_i386_fbsd"
7435 ;;
7436 x86_64-*linux*)
7437 case `/usr/bin/file conftest.o` in
7438 *x86-64*)
7439 LD="${LD-ld} -m elf32_x86_64"
7440 ;;
7441 *)
7442 LD="${LD-ld} -m elf_i386"
7443 ;;
7444 esac
7445 ;;
7446 powerpc64le-*linux*)
7447 LD="${LD-ld} -m elf32lppclinux"
7448 ;;
7449 powerpc64-*linux*)
7450 LD="${LD-ld} -m elf32ppclinux"
7451 ;;
7452 s390x-*linux*)
7453 LD="${LD-ld} -m elf_s390"
7454 ;;
7455 sparc64-*linux*)
7456 LD="${LD-ld} -m elf32_sparc"
7457 ;;
7458 esac
7459 ;;
7460 *64-bit*)
7461 case $host in
7462 x86_64-*kfreebsd*-gnu)
7463 LD="${LD-ld} -m elf_x86_64_fbsd"
7464 ;;
7465 x86_64-*linux*)
7466 LD="${LD-ld} -m elf_x86_64"
7467 ;;
7468 powerpcle-*linux*)
7469 LD="${LD-ld} -m elf64lppc"
7470 ;;
7471 powerpc-*linux*)
7472 LD="${LD-ld} -m elf64ppc"
7473 ;;
7474 s390*-*linux*|s390*-*tpf*)
7475 LD="${LD-ld} -m elf64_s390"
7476 ;;
7477 sparc*-*linux*)
7478 LD="${LD-ld} -m elf64_sparc"
7479 ;;
7480 esac
7481 ;;
7482 esac
7483 fi
7484 rm -rf conftest*
7485 ;;
7486
7487 *-*-sco3.2v5*)
7488 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7489 SAVE_CFLAGS="$CFLAGS"
7490 CFLAGS="$CFLAGS -belf"
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7492 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7493 if ${lt_cv_cc_needs_belf+:} false; then :
7494 $as_echo_n "(cached) " >&6
7495 else
7496 ac_ext=c
7497 ac_cpp='$CPP $CPPFLAGS'
7498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7501
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7504
7505 int
7506 main ()
7507 {
7508
7509 ;
7510 return 0;
7511 }
7512 _ACEOF
7513 if ac_fn_c_try_link "$LINENO"; then :
7514 lt_cv_cc_needs_belf=yes
7515 else
7516 lt_cv_cc_needs_belf=no
7517 fi
7518 rm -f core conftest.err conftest.$ac_objext \
7519 conftest$ac_exeext conftest.$ac_ext
7520 ac_ext=c
7521 ac_cpp='$CPP $CPPFLAGS'
7522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7525
7526 fi
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7528 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7529 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7530 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7531 CFLAGS="$SAVE_CFLAGS"
7532 fi
7533 ;;
7534 sparc*-*solaris*)
7535 # Find out which ABI we are using.
7536 echo 'int i;' > conftest.$ac_ext
7537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7538 (eval $ac_compile) 2>&5
7539 ac_status=$?
7540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7541 test $ac_status = 0; }; then
7542 case `/usr/bin/file conftest.o` in
7543 *64-bit*)
7544 case $lt_cv_prog_gnu_ld in
7545 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7546 *)
7547 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7548 LD="${LD-ld} -64"
7549 fi
7550 ;;
7551 esac
7552 ;;
7553 esac
7554 fi
7555 rm -rf conftest*
7556 ;;
7557 esac
7558
7559 need_locks="$enable_libtool_lock"
7560
7561
7562 case $host_os in
7563 rhapsody* | darwin*)
7564 if test -n "$ac_tool_prefix"; then
7565 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7566 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568 $as_echo_n "checking for $ac_word... " >&6; }
7569 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7570 $as_echo_n "(cached) " >&6
7571 else
7572 if test -n "$DSYMUTIL"; then
7573 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7574 else
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH
7577 do
7578 IFS=$as_save_IFS
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 break 2
7585 fi
7586 done
7587 done
7588 IFS=$as_save_IFS
7589
7590 fi
7591 fi
7592 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7593 if test -n "$DSYMUTIL"; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7595 $as_echo "$DSYMUTIL" >&6; }
7596 else
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7599 fi
7600
7601
7602 fi
7603 if test -z "$ac_cv_prog_DSYMUTIL"; then
7604 ac_ct_DSYMUTIL=$DSYMUTIL
7605 # Extract the first word of "dsymutil", so it can be a program name with args.
7606 set dummy dsymutil; ac_word=$2
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7608 $as_echo_n "checking for $ac_word... " >&6; }
7609 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7610 $as_echo_n "(cached) " >&6
7611 else
7612 if test -n "$ac_ct_DSYMUTIL"; then
7613 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7614 else
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 for as_dir in $PATH
7617 do
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7622 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 break 2
7625 fi
7626 done
7627 done
7628 IFS=$as_save_IFS
7629
7630 fi
7631 fi
7632 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7633 if test -n "$ac_ct_DSYMUTIL"; then
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7635 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7636 else
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638 $as_echo "no" >&6; }
7639 fi
7640
7641 if test "x$ac_ct_DSYMUTIL" = x; then
7642 DSYMUTIL=":"
7643 else
7644 case $cross_compiling:$ac_tool_warned in
7645 yes:)
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7648 ac_tool_warned=yes ;;
7649 esac
7650 DSYMUTIL=$ac_ct_DSYMUTIL
7651 fi
7652 else
7653 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7654 fi
7655
7656 if test -n "$ac_tool_prefix"; then
7657 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7658 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if ${ac_cv_prog_NMEDIT+:} false; then :
7662 $as_echo_n "(cached) " >&6
7663 else
7664 if test -n "$NMEDIT"; then
7665 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7666 else
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7669 do
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7674 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 break 2
7677 fi
7678 done
7679 done
7680 IFS=$as_save_IFS
7681
7682 fi
7683 fi
7684 NMEDIT=$ac_cv_prog_NMEDIT
7685 if test -n "$NMEDIT"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7687 $as_echo "$NMEDIT" >&6; }
7688 else
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7691 fi
7692
7693
7694 fi
7695 if test -z "$ac_cv_prog_NMEDIT"; then
7696 ac_ct_NMEDIT=$NMEDIT
7697 # Extract the first word of "nmedit", so it can be a program name with args.
7698 set dummy nmedit; ac_word=$2
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700 $as_echo_n "checking for $ac_word... " >&6; }
7701 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 if test -n "$ac_ct_NMEDIT"; then
7705 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7706 else
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7709 do
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7717 fi
7718 done
7719 done
7720 IFS=$as_save_IFS
7721
7722 fi
7723 fi
7724 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7725 if test -n "$ac_ct_NMEDIT"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7727 $as_echo "$ac_ct_NMEDIT" >&6; }
7728 else
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7731 fi
7732
7733 if test "x$ac_ct_NMEDIT" = x; then
7734 NMEDIT=":"
7735 else
7736 case $cross_compiling:$ac_tool_warned in
7737 yes:)
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7740 ac_tool_warned=yes ;;
7741 esac
7742 NMEDIT=$ac_ct_NMEDIT
7743 fi
7744 else
7745 NMEDIT="$ac_cv_prog_NMEDIT"
7746 fi
7747
7748 if test -n "$ac_tool_prefix"; then
7749 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7750 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 $as_echo_n "checking for $ac_word... " >&6; }
7753 if ${ac_cv_prog_LIPO+:} false; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 if test -n "$LIPO"; then
7757 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7758 else
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 for as_dir in $PATH
7761 do
7762 IFS=$as_save_IFS
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7766 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 break 2
7769 fi
7770 done
7771 done
7772 IFS=$as_save_IFS
7773
7774 fi
7775 fi
7776 LIPO=$ac_cv_prog_LIPO
7777 if test -n "$LIPO"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7779 $as_echo "$LIPO" >&6; }
7780 else
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782 $as_echo "no" >&6; }
7783 fi
7784
7785
7786 fi
7787 if test -z "$ac_cv_prog_LIPO"; then
7788 ac_ct_LIPO=$LIPO
7789 # Extract the first word of "lipo", so it can be a program name with args.
7790 set dummy lipo; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 $as_echo_n "checking for $ac_word... " >&6; }
7793 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 if test -n "$ac_ct_LIPO"; then
7797 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7798 else
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 for as_dir in $PATH
7801 do
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806 ac_cv_prog_ac_ct_LIPO="lipo"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7809 fi
7810 done
7811 done
7812 IFS=$as_save_IFS
7813
7814 fi
7815 fi
7816 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7817 if test -n "$ac_ct_LIPO"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7819 $as_echo "$ac_ct_LIPO" >&6; }
7820 else
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7823 fi
7824
7825 if test "x$ac_ct_LIPO" = x; then
7826 LIPO=":"
7827 else
7828 case $cross_compiling:$ac_tool_warned in
7829 yes:)
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7832 ac_tool_warned=yes ;;
7833 esac
7834 LIPO=$ac_ct_LIPO
7835 fi
7836 else
7837 LIPO="$ac_cv_prog_LIPO"
7838 fi
7839
7840 if test -n "$ac_tool_prefix"; then
7841 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7842 set dummy ${ac_tool_prefix}otool; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if ${ac_cv_prog_OTOOL+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 if test -n "$OTOOL"; then
7849 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7853 do
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7858 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7861 fi
7862 done
7863 done
7864 IFS=$as_save_IFS
7865
7866 fi
7867 fi
7868 OTOOL=$ac_cv_prog_OTOOL
7869 if test -n "$OTOOL"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7871 $as_echo "$OTOOL" >&6; }
7872 else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7875 fi
7876
7877
7878 fi
7879 if test -z "$ac_cv_prog_OTOOL"; then
7880 ac_ct_OTOOL=$OTOOL
7881 # Extract the first word of "otool", so it can be a program name with args.
7882 set dummy otool; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 if test -n "$ac_ct_OTOOL"; then
7889 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7890 else
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 for as_dir in $PATH
7893 do
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898 ac_cv_prog_ac_ct_OTOOL="otool"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 break 2
7901 fi
7902 done
7903 done
7904 IFS=$as_save_IFS
7905
7906 fi
7907 fi
7908 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7909 if test -n "$ac_ct_OTOOL"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7911 $as_echo "$ac_ct_OTOOL" >&6; }
7912 else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7915 fi
7916
7917 if test "x$ac_ct_OTOOL" = x; then
7918 OTOOL=":"
7919 else
7920 case $cross_compiling:$ac_tool_warned in
7921 yes:)
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7924 ac_tool_warned=yes ;;
7925 esac
7926 OTOOL=$ac_ct_OTOOL
7927 fi
7928 else
7929 OTOOL="$ac_cv_prog_OTOOL"
7930 fi
7931
7932 if test -n "$ac_tool_prefix"; then
7933 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7934 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 $as_echo_n "checking for $ac_word... " >&6; }
7937 if ${ac_cv_prog_OTOOL64+:} false; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 if test -n "$OTOOL64"; then
7941 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7942 else
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 for as_dir in $PATH
7945 do
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7953 fi
7954 done
7955 done
7956 IFS=$as_save_IFS
7957
7958 fi
7959 fi
7960 OTOOL64=$ac_cv_prog_OTOOL64
7961 if test -n "$OTOOL64"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7963 $as_echo "$OTOOL64" >&6; }
7964 else
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7967 fi
7968
7969
7970 fi
7971 if test -z "$ac_cv_prog_OTOOL64"; then
7972 ac_ct_OTOOL64=$OTOOL64
7973 # Extract the first word of "otool64", so it can be a program name with args.
7974 set dummy otool64; ac_word=$2
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976 $as_echo_n "checking for $ac_word... " >&6; }
7977 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 if test -n "$ac_ct_OTOOL64"; then
7981 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7985 do
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_ac_ct_OTOOL64="otool64"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 break 2
7993 fi
7994 done
7995 done
7996 IFS=$as_save_IFS
7997
7998 fi
7999 fi
8000 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8001 if test -n "$ac_ct_OTOOL64"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8003 $as_echo "$ac_ct_OTOOL64" >&6; }
8004 else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8007 fi
8008
8009 if test "x$ac_ct_OTOOL64" = x; then
8010 OTOOL64=":"
8011 else
8012 case $cross_compiling:$ac_tool_warned in
8013 yes:)
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8016 ac_tool_warned=yes ;;
8017 esac
8018 OTOOL64=$ac_ct_OTOOL64
8019 fi
8020 else
8021 OTOOL64="$ac_cv_prog_OTOOL64"
8022 fi
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8051 $as_echo_n "checking for -single_module linker flag... " >&6; }
8052 if ${lt_cv_apple_cc_single_mod+:} false; then :
8053 $as_echo_n "(cached) " >&6
8054 else
8055 lt_cv_apple_cc_single_mod=no
8056 if test -z "${LT_MULTI_MODULE}"; then
8057 # By default we will add the -single_module flag. You can override
8058 # by either setting the environment variable LT_MULTI_MODULE
8059 # non-empty at configure time, or by adding -multi_module to the
8060 # link flags.
8061 rm -rf libconftest.dylib*
8062 echo "int foo(void){return 1;}" > conftest.c
8063 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8064 -dynamiclib -Wl,-single_module conftest.c" >&5
8065 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8066 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8067 _lt_result=$?
8068 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8069 lt_cv_apple_cc_single_mod=yes
8070 else
8071 cat conftest.err >&5
8072 fi
8073 rm -rf libconftest.dylib*
8074 rm -f conftest.*
8075 fi
8076 fi
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8078 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8080 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8081 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8082 $as_echo_n "(cached) " >&6
8083 else
8084 lt_cv_ld_exported_symbols_list=no
8085 save_LDFLAGS=$LDFLAGS
8086 echo "_main" > conftest.sym
8087 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089 /* end confdefs.h. */
8090
8091 int
8092 main ()
8093 {
8094
8095 ;
8096 return 0;
8097 }
8098 _ACEOF
8099 if ac_fn_c_try_link "$LINENO"; then :
8100 lt_cv_ld_exported_symbols_list=yes
8101 else
8102 lt_cv_ld_exported_symbols_list=no
8103 fi
8104 rm -f core conftest.err conftest.$ac_objext \
8105 conftest$ac_exeext conftest.$ac_ext
8106 LDFLAGS="$save_LDFLAGS"
8107
8108 fi
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8110 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8112 $as_echo_n "checking for -force_load linker flag... " >&6; }
8113 if ${lt_cv_ld_force_load+:} false; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 lt_cv_ld_force_load=no
8117 cat > conftest.c << _LT_EOF
8118 int forced_loaded() { return 2;}
8119 _LT_EOF
8120 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8121 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8122 echo "$AR cru libconftest.a conftest.o" >&5
8123 $AR cru libconftest.a conftest.o 2>&5
8124 cat > conftest.c << _LT_EOF
8125 int main() { return 0;}
8126 _LT_EOF
8127 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8128 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8129 _lt_result=$?
8130 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8131 lt_cv_ld_force_load=yes
8132 else
8133 cat conftest.err >&5
8134 fi
8135 rm -f conftest.err libconftest.a conftest conftest.c
8136 rm -rf conftest.dSYM
8137
8138 fi
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8140 $as_echo "$lt_cv_ld_force_load" >&6; }
8141 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8142 # build without first building modern cctools / linker.
8143 case $host_cpu-$host_os in
8144 *-rhapsody* | *-darwin1.[012])
8145 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8146 *-darwin1.*)
8147 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8148 *-darwin*)
8149 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8150 # deployment target is forced to an earlier version.
8151 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8152 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8153 ;;
8154 10.[012][,.]*)
8155 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8156 ;;
8157 *)
8158 ;;
8159 esac
8160 ;;
8161 esac
8162 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8163 _lt_dar_single_mod='$single_module'
8164 fi
8165 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8166 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8167 else
8168 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8169 fi
8170 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8171 _lt_dsymutil='~$DSYMUTIL $lib || :'
8172 else
8173 _lt_dsymutil=
8174 fi
8175 ;;
8176 esac
8177
8178 for ac_header in dlfcn.h
8179 do :
8180 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8181 "
8182 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8183 cat >>confdefs.h <<_ACEOF
8184 #define HAVE_DLFCN_H 1
8185 _ACEOF
8186
8187 fi
8188
8189 done
8190
8191
8192
8193
8194
8195
8196 # Set options
8197
8198
8199
8200 enable_dlopen=no
8201
8202
8203 enable_win32_dll=no
8204
8205
8206 # Check whether --enable-shared was given.
8207 if test "${enable_shared+set}" = set; then :
8208 enableval=$enable_shared; p=${PACKAGE-default}
8209 case $enableval in
8210 yes) enable_shared=yes ;;
8211 no) enable_shared=no ;;
8212 *)
8213 enable_shared=no
8214 # Look at the argument we got. We use all the common list separators.
8215 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8216 for pkg in $enableval; do
8217 IFS="$lt_save_ifs"
8218 if test "X$pkg" = "X$p"; then
8219 enable_shared=yes
8220 fi
8221 done
8222 IFS="$lt_save_ifs"
8223 ;;
8224 esac
8225 else
8226 enable_shared=yes
8227 fi
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237 # Check whether --enable-static was given.
8238 if test "${enable_static+set}" = set; then :
8239 enableval=$enable_static; p=${PACKAGE-default}
8240 case $enableval in
8241 yes) enable_static=yes ;;
8242 no) enable_static=no ;;
8243 *)
8244 enable_static=no
8245 # Look at the argument we got. We use all the common list separators.
8246 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8247 for pkg in $enableval; do
8248 IFS="$lt_save_ifs"
8249 if test "X$pkg" = "X$p"; then
8250 enable_static=yes
8251 fi
8252 done
8253 IFS="$lt_save_ifs"
8254 ;;
8255 esac
8256 else
8257 enable_static=yes
8258 fi
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269 # Check whether --with-pic was given.
8270 if test "${with_pic+set}" = set; then :
8271 withval=$with_pic; pic_mode="$withval"
8272 else
8273 pic_mode=default
8274 fi
8275
8276
8277 test -z "$pic_mode" && pic_mode=default
8278
8279
8280
8281
8282
8283
8284
8285 # Check whether --enable-fast-install was given.
8286 if test "${enable_fast_install+set}" = set; then :
8287 enableval=$enable_fast_install; p=${PACKAGE-default}
8288 case $enableval in
8289 yes) enable_fast_install=yes ;;
8290 no) enable_fast_install=no ;;
8291 *)
8292 enable_fast_install=no
8293 # Look at the argument we got. We use all the common list separators.
8294 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8295 for pkg in $enableval; do
8296 IFS="$lt_save_ifs"
8297 if test "X$pkg" = "X$p"; then
8298 enable_fast_install=yes
8299 fi
8300 done
8301 IFS="$lt_save_ifs"
8302 ;;
8303 esac
8304 else
8305 enable_fast_install=yes
8306 fi
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318 # This can be used to rebuild libtool when needed
8319 LIBTOOL_DEPS="$ltmain"
8320
8321 # Always use our own libtool.
8322 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349 test -z "$LN_S" && LN_S="ln -s"
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364 if test -n "${ZSH_VERSION+set}" ; then
8365 setopt NO_GLOB_SUBST
8366 fi
8367
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8369 $as_echo_n "checking for objdir... " >&6; }
8370 if ${lt_cv_objdir+:} false; then :
8371 $as_echo_n "(cached) " >&6
8372 else
8373 rm -f .libs 2>/dev/null
8374 mkdir .libs 2>/dev/null
8375 if test -d .libs; then
8376 lt_cv_objdir=.libs
8377 else
8378 # MS-DOS does not allow filenames that begin with a dot.
8379 lt_cv_objdir=_libs
8380 fi
8381 rmdir .libs 2>/dev/null
8382 fi
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8384 $as_echo "$lt_cv_objdir" >&6; }
8385 objdir=$lt_cv_objdir
8386
8387
8388
8389
8390
8391 cat >>confdefs.h <<_ACEOF
8392 #define LT_OBJDIR "$lt_cv_objdir/"
8393 _ACEOF
8394
8395
8396
8397
8398 case $host_os in
8399 aix3*)
8400 # AIX sometimes has problems with the GCC collect2 program. For some
8401 # reason, if we set the COLLECT_NAMES environment variable, the problems
8402 # vanish in a puff of smoke.
8403 if test "X${COLLECT_NAMES+set}" != Xset; then
8404 COLLECT_NAMES=
8405 export COLLECT_NAMES
8406 fi
8407 ;;
8408 esac
8409
8410 # Global variables:
8411 ofile=libtool
8412 can_build_shared=yes
8413
8414 # All known linkers require a `.a' archive for static linking (except MSVC,
8415 # which needs '.lib').
8416 libext=a
8417
8418 with_gnu_ld="$lt_cv_prog_gnu_ld"
8419
8420 old_CC="$CC"
8421 old_CFLAGS="$CFLAGS"
8422
8423 # Set sane defaults for various variables
8424 test -z "$CC" && CC=cc
8425 test -z "$LTCC" && LTCC=$CC
8426 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8427 test -z "$LD" && LD=ld
8428 test -z "$ac_objext" && ac_objext=o
8429
8430 for cc_temp in $compiler""; do
8431 case $cc_temp in
8432 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8433 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8434 \-*) ;;
8435 *) break;;
8436 esac
8437 done
8438 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8439
8440
8441 # Only perform the check for file, if the check method requires it
8442 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8443 case $deplibs_check_method in
8444 file_magic*)
8445 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8447 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8448 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451 case $MAGIC_CMD in
8452 [\\/*] | ?:[\\/]*)
8453 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8454 ;;
8455 *)
8456 lt_save_MAGIC_CMD="$MAGIC_CMD"
8457 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8458 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8459 for ac_dir in $ac_dummy; do
8460 IFS="$lt_save_ifs"
8461 test -z "$ac_dir" && ac_dir=.
8462 if test -f $ac_dir/${ac_tool_prefix}file; then
8463 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8464 if test -n "$file_magic_test_file"; then
8465 case $deplibs_check_method in
8466 "file_magic "*)
8467 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8469 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8470 $EGREP "$file_magic_regex" > /dev/null; then
8471 :
8472 else
8473 cat <<_LT_EOF 1>&2
8474
8475 *** Warning: the command libtool uses to detect shared libraries,
8476 *** $file_magic_cmd, produces output that libtool cannot recognize.
8477 *** The result is that libtool may fail to recognize shared libraries
8478 *** as such. This will affect the creation of libtool libraries that
8479 *** depend on shared libraries, but programs linked with such libtool
8480 *** libraries will work regardless of this problem. Nevertheless, you
8481 *** may want to report the problem to your system manager and/or to
8482 *** bug-libtool@gnu.org
8483
8484 _LT_EOF
8485 fi ;;
8486 esac
8487 fi
8488 break
8489 fi
8490 done
8491 IFS="$lt_save_ifs"
8492 MAGIC_CMD="$lt_save_MAGIC_CMD"
8493 ;;
8494 esac
8495 fi
8496
8497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8498 if test -n "$MAGIC_CMD"; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8500 $as_echo "$MAGIC_CMD" >&6; }
8501 else
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 $as_echo "no" >&6; }
8504 fi
8505
8506
8507
8508
8509
8510 if test -z "$lt_cv_path_MAGIC_CMD"; then
8511 if test -n "$ac_tool_prefix"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8513 $as_echo_n "checking for file... " >&6; }
8514 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 case $MAGIC_CMD in
8518 [\\/*] | ?:[\\/]*)
8519 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8520 ;;
8521 *)
8522 lt_save_MAGIC_CMD="$MAGIC_CMD"
8523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8524 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8525 for ac_dir in $ac_dummy; do
8526 IFS="$lt_save_ifs"
8527 test -z "$ac_dir" && ac_dir=.
8528 if test -f $ac_dir/file; then
8529 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8530 if test -n "$file_magic_test_file"; then
8531 case $deplibs_check_method in
8532 "file_magic "*)
8533 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8534 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8535 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8536 $EGREP "$file_magic_regex" > /dev/null; then
8537 :
8538 else
8539 cat <<_LT_EOF 1>&2
8540
8541 *** Warning: the command libtool uses to detect shared libraries,
8542 *** $file_magic_cmd, produces output that libtool cannot recognize.
8543 *** The result is that libtool may fail to recognize shared libraries
8544 *** as such. This will affect the creation of libtool libraries that
8545 *** depend on shared libraries, but programs linked with such libtool
8546 *** libraries will work regardless of this problem. Nevertheless, you
8547 *** may want to report the problem to your system manager and/or to
8548 *** bug-libtool@gnu.org
8549
8550 _LT_EOF
8551 fi ;;
8552 esac
8553 fi
8554 break
8555 fi
8556 done
8557 IFS="$lt_save_ifs"
8558 MAGIC_CMD="$lt_save_MAGIC_CMD"
8559 ;;
8560 esac
8561 fi
8562
8563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8564 if test -n "$MAGIC_CMD"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8566 $as_echo "$MAGIC_CMD" >&6; }
8567 else
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569 $as_echo "no" >&6; }
8570 fi
8571
8572
8573 else
8574 MAGIC_CMD=:
8575 fi
8576 fi
8577
8578 fi
8579 ;;
8580 esac
8581
8582 # Use C for the default configuration in the libtool script
8583
8584 lt_save_CC="$CC"
8585 ac_ext=c
8586 ac_cpp='$CPP $CPPFLAGS'
8587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8590
8591
8592 # Source file extension for C test sources.
8593 ac_ext=c
8594
8595 # Object file extension for compiled C test sources.
8596 objext=o
8597 objext=$objext
8598
8599 # Code to be used in simple compile tests
8600 lt_simple_compile_test_code="int some_variable = 0;"
8601
8602 # Code to be used in simple link tests
8603 lt_simple_link_test_code='int main(){return(0);}'
8604
8605
8606
8607
8608
8609
8610
8611 # If no C compiler was specified, use CC.
8612 LTCC=${LTCC-"$CC"}
8613
8614 # If no C compiler flags were specified, use CFLAGS.
8615 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8616
8617 # Allow CC to be a program name with arguments.
8618 compiler=$CC
8619
8620 # Save the default compiler, since it gets overwritten when the other
8621 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8622 compiler_DEFAULT=$CC
8623
8624 # save warnings/boilerplate of simple test code
8625 ac_outfile=conftest.$ac_objext
8626 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8627 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8628 _lt_compiler_boilerplate=`cat conftest.err`
8629 $RM conftest*
8630
8631 ac_outfile=conftest.$ac_objext
8632 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8633 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8634 _lt_linker_boilerplate=`cat conftest.err`
8635 $RM -r conftest*
8636
8637
8638 ## CAVEAT EMPTOR:
8639 ## There is no encapsulation within the following macros, do not change
8640 ## the running order or otherwise move them around unless you know exactly
8641 ## what you are doing...
8642 if test -n "$compiler"; then
8643
8644 lt_prog_compiler_no_builtin_flag=
8645
8646 if test "$GCC" = yes; then
8647 case $cc_basename in
8648 nvcc*)
8649 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8650 *)
8651 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8652 esac
8653
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8655 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8656 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 lt_cv_prog_compiler_rtti_exceptions=no
8660 ac_outfile=conftest.$ac_objext
8661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8662 lt_compiler_flag="-fno-rtti -fno-exceptions"
8663 # Insert the option either (1) after the last *FLAGS variable, or
8664 # (2) before a word containing "conftest.", or (3) at the end.
8665 # Note that $ac_compile itself does not contain backslashes and begins
8666 # with a dollar sign (not a hyphen), so the echo should work correctly.
8667 # The option is referenced via a variable to avoid confusing sed.
8668 lt_compile=`echo "$ac_compile" | $SED \
8669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8671 -e 's:$: $lt_compiler_flag:'`
8672 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8673 (eval "$lt_compile" 2>conftest.err)
8674 ac_status=$?
8675 cat conftest.err >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 if (exit $ac_status) && test -s "$ac_outfile"; then
8678 # The compiler can only warn and ignore the option if not recognized
8679 # So say no if there are warnings other than the usual output.
8680 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8682 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8683 lt_cv_prog_compiler_rtti_exceptions=yes
8684 fi
8685 fi
8686 $RM conftest*
8687
8688 fi
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8690 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8691
8692 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8693 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8694 else
8695 :
8696 fi
8697
8698 fi
8699
8700
8701
8702
8703
8704
8705 lt_prog_compiler_wl=
8706 lt_prog_compiler_pic=
8707 lt_prog_compiler_static=
8708
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8710 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8711
8712 if test "$GCC" = yes; then
8713 lt_prog_compiler_wl='-Wl,'
8714 lt_prog_compiler_static='-static'
8715
8716 case $host_os in
8717 aix*)
8718 # All AIX code is PIC.
8719 if test "$host_cpu" = ia64; then
8720 # AIX 5 now supports IA64 processor
8721 lt_prog_compiler_static='-Bstatic'
8722 fi
8723 lt_prog_compiler_pic='-fPIC'
8724 ;;
8725
8726 amigaos*)
8727 case $host_cpu in
8728 powerpc)
8729 # see comment about AmigaOS4 .so support
8730 lt_prog_compiler_pic='-fPIC'
8731 ;;
8732 m68k)
8733 # FIXME: we need at least 68020 code to build shared libraries, but
8734 # adding the `-m68020' flag to GCC prevents building anything better,
8735 # like `-m68040'.
8736 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8737 ;;
8738 esac
8739 ;;
8740
8741 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8742 # PIC is the default for these OSes.
8743 ;;
8744
8745 mingw* | cygwin* | pw32* | os2* | cegcc*)
8746 # This hack is so that the source file can tell whether it is being
8747 # built for inclusion in a dll (and should export symbols for example).
8748 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8749 # (--disable-auto-import) libraries
8750 lt_prog_compiler_pic='-DDLL_EXPORT'
8751 ;;
8752
8753 darwin* | rhapsody*)
8754 # PIC is the default on this platform
8755 # Common symbols not allowed in MH_DYLIB files
8756 lt_prog_compiler_pic='-fno-common'
8757 ;;
8758
8759 haiku*)
8760 # PIC is the default for Haiku.
8761 # The "-static" flag exists, but is broken.
8762 lt_prog_compiler_static=
8763 ;;
8764
8765 hpux*)
8766 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8767 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8768 # sets the default TLS model and affects inlining.
8769 case $host_cpu in
8770 hppa*64*)
8771 # +Z the default
8772 ;;
8773 *)
8774 lt_prog_compiler_pic='-fPIC'
8775 ;;
8776 esac
8777 ;;
8778
8779 interix[3-9]*)
8780 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8781 # Instead, we relocate shared libraries at runtime.
8782 ;;
8783
8784 msdosdjgpp*)
8785 # Just because we use GCC doesn't mean we suddenly get shared libraries
8786 # on systems that don't support them.
8787 lt_prog_compiler_can_build_shared=no
8788 enable_shared=no
8789 ;;
8790
8791 *nto* | *qnx*)
8792 # QNX uses GNU C++, but need to define -shared option too, otherwise
8793 # it will coredump.
8794 lt_prog_compiler_pic='-fPIC -shared'
8795 ;;
8796
8797 sysv4*MP*)
8798 if test -d /usr/nec; then
8799 lt_prog_compiler_pic=-Kconform_pic
8800 fi
8801 ;;
8802
8803 *)
8804 lt_prog_compiler_pic='-fPIC'
8805 ;;
8806 esac
8807
8808 case $cc_basename in
8809 nvcc*) # Cuda Compiler Driver 2.2
8810 lt_prog_compiler_wl='-Xlinker '
8811 lt_prog_compiler_pic='-Xcompiler -fPIC'
8812 ;;
8813 esac
8814 else
8815 # PORTME Check for flag to pass linker flags through the system compiler.
8816 case $host_os in
8817 aix*)
8818 lt_prog_compiler_wl='-Wl,'
8819 if test "$host_cpu" = ia64; then
8820 # AIX 5 now supports IA64 processor
8821 lt_prog_compiler_static='-Bstatic'
8822 else
8823 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8824 fi
8825 ;;
8826
8827 mingw* | cygwin* | pw32* | os2* | cegcc*)
8828 # This hack is so that the source file can tell whether it is being
8829 # built for inclusion in a dll (and should export symbols for example).
8830 lt_prog_compiler_pic='-DDLL_EXPORT'
8831 ;;
8832
8833 hpux9* | hpux10* | hpux11*)
8834 lt_prog_compiler_wl='-Wl,'
8835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8836 # not for PA HP-UX.
8837 case $host_cpu in
8838 hppa*64*|ia64*)
8839 # +Z the default
8840 ;;
8841 *)
8842 lt_prog_compiler_pic='+Z'
8843 ;;
8844 esac
8845 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8846 lt_prog_compiler_static='${wl}-a ${wl}archive'
8847 ;;
8848
8849 irix5* | irix6* | nonstopux*)
8850 lt_prog_compiler_wl='-Wl,'
8851 # PIC (with -KPIC) is the default.
8852 lt_prog_compiler_static='-non_shared'
8853 ;;
8854
8855 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8856 case $cc_basename in
8857 # old Intel for x86_64 which still supported -KPIC.
8858 ecc*)
8859 lt_prog_compiler_wl='-Wl,'
8860 lt_prog_compiler_pic='-KPIC'
8861 lt_prog_compiler_static='-static'
8862 ;;
8863 # icc used to be incompatible with GCC.
8864 # ICC 10 doesn't accept -KPIC any more.
8865 icc* | ifort*)
8866 lt_prog_compiler_wl='-Wl,'
8867 lt_prog_compiler_pic='-fPIC'
8868 lt_prog_compiler_static='-static'
8869 ;;
8870 # Lahey Fortran 8.1.
8871 lf95*)
8872 lt_prog_compiler_wl='-Wl,'
8873 lt_prog_compiler_pic='--shared'
8874 lt_prog_compiler_static='--static'
8875 ;;
8876 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8877 # Portland Group compilers (*not* the Pentium gcc compiler,
8878 # which looks to be a dead project)
8879 lt_prog_compiler_wl='-Wl,'
8880 lt_prog_compiler_pic='-fpic'
8881 lt_prog_compiler_static='-Bstatic'
8882 ;;
8883 ccc*)
8884 lt_prog_compiler_wl='-Wl,'
8885 # All Alpha code is PIC.
8886 lt_prog_compiler_static='-non_shared'
8887 ;;
8888 xl* | bgxl* | bgf* | mpixl*)
8889 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8890 lt_prog_compiler_wl='-Wl,'
8891 lt_prog_compiler_pic='-qpic'
8892 lt_prog_compiler_static='-qstaticlink'
8893 ;;
8894 *)
8895 case `$CC -V 2>&1 | sed 5q` in
8896 *Sun\ F* | *Sun*Fortran*)
8897 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8898 lt_prog_compiler_pic='-KPIC'
8899 lt_prog_compiler_static='-Bstatic'
8900 lt_prog_compiler_wl=''
8901 ;;
8902 *Sun\ C*)
8903 # Sun C 5.9
8904 lt_prog_compiler_pic='-KPIC'
8905 lt_prog_compiler_static='-Bstatic'
8906 lt_prog_compiler_wl='-Wl,'
8907 ;;
8908 esac
8909 ;;
8910 esac
8911 ;;
8912
8913 newsos6)
8914 lt_prog_compiler_pic='-KPIC'
8915 lt_prog_compiler_static='-Bstatic'
8916 ;;
8917
8918 *nto* | *qnx*)
8919 # QNX uses GNU C++, but need to define -shared option too, otherwise
8920 # it will coredump.
8921 lt_prog_compiler_pic='-fPIC -shared'
8922 ;;
8923
8924 osf3* | osf4* | osf5*)
8925 lt_prog_compiler_wl='-Wl,'
8926 # All OSF/1 code is PIC.
8927 lt_prog_compiler_static='-non_shared'
8928 ;;
8929
8930 rdos*)
8931 lt_prog_compiler_static='-non_shared'
8932 ;;
8933
8934 solaris*)
8935 lt_prog_compiler_pic='-KPIC'
8936 lt_prog_compiler_static='-Bstatic'
8937 case $cc_basename in
8938 f77* | f90* | f95*)
8939 lt_prog_compiler_wl='-Qoption ld ';;
8940 *)
8941 lt_prog_compiler_wl='-Wl,';;
8942 esac
8943 ;;
8944
8945 sunos4*)
8946 lt_prog_compiler_wl='-Qoption ld '
8947 lt_prog_compiler_pic='-PIC'
8948 lt_prog_compiler_static='-Bstatic'
8949 ;;
8950
8951 sysv4 | sysv4.2uw2* | sysv4.3*)
8952 lt_prog_compiler_wl='-Wl,'
8953 lt_prog_compiler_pic='-KPIC'
8954 lt_prog_compiler_static='-Bstatic'
8955 ;;
8956
8957 sysv4*MP*)
8958 if test -d /usr/nec ;then
8959 lt_prog_compiler_pic='-Kconform_pic'
8960 lt_prog_compiler_static='-Bstatic'
8961 fi
8962 ;;
8963
8964 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8965 lt_prog_compiler_wl='-Wl,'
8966 lt_prog_compiler_pic='-KPIC'
8967 lt_prog_compiler_static='-Bstatic'
8968 ;;
8969
8970 unicos*)
8971 lt_prog_compiler_wl='-Wl,'
8972 lt_prog_compiler_can_build_shared=no
8973 ;;
8974
8975 uts4*)
8976 lt_prog_compiler_pic='-pic'
8977 lt_prog_compiler_static='-Bstatic'
8978 ;;
8979
8980 *)
8981 lt_prog_compiler_can_build_shared=no
8982 ;;
8983 esac
8984 fi
8985
8986 case $host_os in
8987 # For platforms which do not support PIC, -DPIC is meaningless:
8988 *djgpp*)
8989 lt_prog_compiler_pic=
8990 ;;
8991 *)
8992 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8993 ;;
8994 esac
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8996 $as_echo "$lt_prog_compiler_pic" >&6; }
8997
8998
8999
9000
9001
9002
9003 #
9004 # Check to make sure the PIC flag actually works.
9005 #
9006 if test -n "$lt_prog_compiler_pic"; then
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9008 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9009 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9010 $as_echo_n "(cached) " >&6
9011 else
9012 lt_cv_prog_compiler_pic_works=no
9013 ac_outfile=conftest.$ac_objext
9014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9015 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9016 # Insert the option either (1) after the last *FLAGS variable, or
9017 # (2) before a word containing "conftest.", or (3) at the end.
9018 # Note that $ac_compile itself does not contain backslashes and begins
9019 # with a dollar sign (not a hyphen), so the echo should work correctly.
9020 # The option is referenced via a variable to avoid confusing sed.
9021 lt_compile=`echo "$ac_compile" | $SED \
9022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9024 -e 's:$: $lt_compiler_flag:'`
9025 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9026 (eval "$lt_compile" 2>conftest.err)
9027 ac_status=$?
9028 cat conftest.err >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 if (exit $ac_status) && test -s "$ac_outfile"; then
9031 # The compiler can only warn and ignore the option if not recognized
9032 # So say no if there are warnings other than the usual output.
9033 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9035 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9036 lt_cv_prog_compiler_pic_works=yes
9037 fi
9038 fi
9039 $RM conftest*
9040
9041 fi
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9043 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9044
9045 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9046 case $lt_prog_compiler_pic in
9047 "" | " "*) ;;
9048 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9049 esac
9050 else
9051 lt_prog_compiler_pic=
9052 lt_prog_compiler_can_build_shared=no
9053 fi
9054
9055 fi
9056
9057
9058
9059
9060
9061
9062 #
9063 # Check to make sure the static flag actually works.
9064 #
9065 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9067 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9068 if ${lt_cv_prog_compiler_static_works+:} false; then :
9069 $as_echo_n "(cached) " >&6
9070 else
9071 lt_cv_prog_compiler_static_works=no
9072 save_LDFLAGS="$LDFLAGS"
9073 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9074 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9075 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9076 # The linker can only warn and ignore the option if not recognized
9077 # So say no if there are warnings
9078 if test -s conftest.err; then
9079 # Append any errors to the config.log.
9080 cat conftest.err 1>&5
9081 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9083 if diff conftest.exp conftest.er2 >/dev/null; then
9084 lt_cv_prog_compiler_static_works=yes
9085 fi
9086 else
9087 lt_cv_prog_compiler_static_works=yes
9088 fi
9089 fi
9090 $RM -r conftest*
9091 LDFLAGS="$save_LDFLAGS"
9092
9093 fi
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9095 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9096
9097 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9098 :
9099 else
9100 lt_prog_compiler_static=
9101 fi
9102
9103
9104
9105
9106
9107
9108
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9110 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9111 if ${lt_cv_prog_compiler_c_o+:} false; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 lt_cv_prog_compiler_c_o=no
9115 $RM -r conftest 2>/dev/null
9116 mkdir conftest
9117 cd conftest
9118 mkdir out
9119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9120
9121 lt_compiler_flag="-o out/conftest2.$ac_objext"
9122 # Insert the option either (1) after the last *FLAGS variable, or
9123 # (2) before a word containing "conftest.", or (3) at the end.
9124 # Note that $ac_compile itself does not contain backslashes and begins
9125 # with a dollar sign (not a hyphen), so the echo should work correctly.
9126 lt_compile=`echo "$ac_compile" | $SED \
9127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9129 -e 's:$: $lt_compiler_flag:'`
9130 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9131 (eval "$lt_compile" 2>out/conftest.err)
9132 ac_status=$?
9133 cat out/conftest.err >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9136 then
9137 # The compiler can only warn and ignore the option if not recognized
9138 # So say no if there are warnings
9139 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9140 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9141 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9142 lt_cv_prog_compiler_c_o=yes
9143 fi
9144 fi
9145 chmod u+w . 2>&5
9146 $RM conftest*
9147 # SGI C++ compiler will create directory out/ii_files/ for
9148 # template instantiation
9149 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9150 $RM out/* && rmdir out
9151 cd ..
9152 $RM -r conftest
9153 $RM conftest*
9154
9155 fi
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9157 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9158
9159
9160
9161
9162
9163
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9165 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9166 if ${lt_cv_prog_compiler_c_o+:} false; then :
9167 $as_echo_n "(cached) " >&6
9168 else
9169 lt_cv_prog_compiler_c_o=no
9170 $RM -r conftest 2>/dev/null
9171 mkdir conftest
9172 cd conftest
9173 mkdir out
9174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9175
9176 lt_compiler_flag="-o out/conftest2.$ac_objext"
9177 # Insert the option either (1) after the last *FLAGS variable, or
9178 # (2) before a word containing "conftest.", or (3) at the end.
9179 # Note that $ac_compile itself does not contain backslashes and begins
9180 # with a dollar sign (not a hyphen), so the echo should work correctly.
9181 lt_compile=`echo "$ac_compile" | $SED \
9182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9184 -e 's:$: $lt_compiler_flag:'`
9185 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9186 (eval "$lt_compile" 2>out/conftest.err)
9187 ac_status=$?
9188 cat out/conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9191 then
9192 # The compiler can only warn and ignore the option if not recognized
9193 # So say no if there are warnings
9194 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9195 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9196 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9197 lt_cv_prog_compiler_c_o=yes
9198 fi
9199 fi
9200 chmod u+w . 2>&5
9201 $RM conftest*
9202 # SGI C++ compiler will create directory out/ii_files/ for
9203 # template instantiation
9204 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9205 $RM out/* && rmdir out
9206 cd ..
9207 $RM -r conftest
9208 $RM conftest*
9209
9210 fi
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9212 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9213
9214
9215
9216
9217 hard_links="nottested"
9218 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9219 # do not overwrite the value of need_locks provided by the user
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9221 $as_echo_n "checking if we can lock with hard links... " >&6; }
9222 hard_links=yes
9223 $RM conftest*
9224 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9225 touch conftest.a
9226 ln conftest.a conftest.b 2>&5 || hard_links=no
9227 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9229 $as_echo "$hard_links" >&6; }
9230 if test "$hard_links" = no; then
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9232 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9233 need_locks=warn
9234 fi
9235 else
9236 need_locks=no
9237 fi
9238
9239
9240
9241
9242
9243
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9245 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9246
9247 runpath_var=
9248 allow_undefined_flag=
9249 always_export_symbols=no
9250 archive_cmds=
9251 archive_expsym_cmds=
9252 compiler_needs_object=no
9253 enable_shared_with_static_runtimes=no
9254 export_dynamic_flag_spec=
9255 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9256 hardcode_automatic=no
9257 hardcode_direct=no
9258 hardcode_direct_absolute=no
9259 hardcode_libdir_flag_spec=
9260 hardcode_libdir_flag_spec_ld=
9261 hardcode_libdir_separator=
9262 hardcode_minus_L=no
9263 hardcode_shlibpath_var=unsupported
9264 inherit_rpath=no
9265 link_all_deplibs=unknown
9266 module_cmds=
9267 module_expsym_cmds=
9268 old_archive_from_new_cmds=
9269 old_archive_from_expsyms_cmds=
9270 thread_safe_flag_spec=
9271 whole_archive_flag_spec=
9272 # include_expsyms should be a list of space-separated symbols to be *always*
9273 # included in the symbol list
9274 include_expsyms=
9275 # exclude_expsyms can be an extended regexp of symbols to exclude
9276 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9277 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9278 # as well as any symbol that contains `d'.
9279 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9280 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9281 # platforms (ab)use it in PIC code, but their linkers get confused if
9282 # the symbol is explicitly referenced. Since portable code cannot
9283 # rely on this symbol name, it's probably fine to never include it in
9284 # preloaded symbol tables.
9285 # Exclude shared library initialization/finalization symbols.
9286 extract_expsyms_cmds=
9287
9288 case $host_os in
9289 cygwin* | mingw* | pw32* | cegcc*)
9290 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9291 # When not using gcc, we currently assume that we are using
9292 # Microsoft Visual C++.
9293 if test "$GCC" != yes; then
9294 with_gnu_ld=no
9295 fi
9296 ;;
9297 interix*)
9298 # we just hope/assume this is gcc and not c89 (= MSVC++)
9299 with_gnu_ld=yes
9300 ;;
9301 openbsd*)
9302 with_gnu_ld=no
9303 ;;
9304 esac
9305
9306 ld_shlibs=yes
9307
9308 # On some targets, GNU ld is compatible enough with the native linker
9309 # that we're better off using the native interface for both.
9310 lt_use_gnu_ld_interface=no
9311 if test "$with_gnu_ld" = yes; then
9312 case $host_os in
9313 aix*)
9314 # The AIX port of GNU ld has always aspired to compatibility
9315 # with the native linker. However, as the warning in the GNU ld
9316 # block says, versions before 2.19.5* couldn't really create working
9317 # shared libraries, regardless of the interface used.
9318 case `$LD -v 2>&1` in
9319 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9320 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9321 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9322 *)
9323 lt_use_gnu_ld_interface=yes
9324 ;;
9325 esac
9326 ;;
9327 *)
9328 lt_use_gnu_ld_interface=yes
9329 ;;
9330 esac
9331 fi
9332
9333 if test "$lt_use_gnu_ld_interface" = yes; then
9334 # If archive_cmds runs LD, not CC, wlarc should be empty
9335 wlarc='${wl}'
9336
9337 # Set some defaults for GNU ld with shared library support. These
9338 # are reset later if shared libraries are not supported. Putting them
9339 # here allows them to be overridden if necessary.
9340 runpath_var=LD_RUN_PATH
9341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9342 export_dynamic_flag_spec='${wl}--export-dynamic'
9343 # ancient GNU ld didn't support --whole-archive et. al.
9344 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9345 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9346 else
9347 whole_archive_flag_spec=
9348 fi
9349 supports_anon_versioning=no
9350 case `$LD -v 2>&1` in
9351 *GNU\ gold*) supports_anon_versioning=yes ;;
9352 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9353 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9354 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9355 *\ 2.11.*) ;; # other 2.11 versions
9356 *) supports_anon_versioning=yes ;;
9357 esac
9358
9359 # See if GNU ld supports shared libraries.
9360 case $host_os in
9361 aix[3-9]*)
9362 # On AIX/PPC, the GNU linker is very broken
9363 if test "$host_cpu" != ia64; then
9364 ld_shlibs=no
9365 cat <<_LT_EOF 1>&2
9366
9367 *** Warning: the GNU linker, at least up to release 2.19, is reported
9368 *** to be unable to reliably create shared libraries on AIX.
9369 *** Therefore, libtool is disabling shared libraries support. If you
9370 *** really care for shared libraries, you may want to install binutils
9371 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9372 *** You will then need to restart the configuration process.
9373
9374 _LT_EOF
9375 fi
9376 ;;
9377
9378 amigaos*)
9379 case $host_cpu in
9380 powerpc)
9381 # see comment about AmigaOS4 .so support
9382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9383 archive_expsym_cmds=''
9384 ;;
9385 m68k)
9386 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)'
9387 hardcode_libdir_flag_spec='-L$libdir'
9388 hardcode_minus_L=yes
9389 ;;
9390 esac
9391 ;;
9392
9393 beos*)
9394 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9395 allow_undefined_flag=unsupported
9396 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9397 # support --undefined. This deserves some investigation. FIXME
9398 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399 else
9400 ld_shlibs=no
9401 fi
9402 ;;
9403
9404 cygwin* | mingw* | pw32* | cegcc*)
9405 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9406 # as there is no search path for DLLs.
9407 hardcode_libdir_flag_spec='-L$libdir'
9408 export_dynamic_flag_spec='${wl}--export-all-symbols'
9409 allow_undefined_flag=unsupported
9410 always_export_symbols=no
9411 enable_shared_with_static_runtimes=yes
9412 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9413
9414 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9416 # If the export-symbols file already is a .def file (1st line
9417 # is EXPORTS), use it as is; otherwise, prepend...
9418 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9419 cp $export_symbols $output_objdir/$soname.def;
9420 else
9421 echo EXPORTS > $output_objdir/$soname.def;
9422 cat $export_symbols >> $output_objdir/$soname.def;
9423 fi~
9424 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9425 else
9426 ld_shlibs=no
9427 fi
9428 ;;
9429
9430 haiku*)
9431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9432 link_all_deplibs=yes
9433 ;;
9434
9435 interix[3-9]*)
9436 hardcode_direct=no
9437 hardcode_shlibpath_var=no
9438 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9439 export_dynamic_flag_spec='${wl}-E'
9440 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9441 # Instead, shared libraries are loaded at an image base (0x10000000 by
9442 # default) and relocated if they conflict, which is a slow very memory
9443 # consuming and fragmenting process. To avoid this, we pick a random,
9444 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9445 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9446 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9447 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'
9448 ;;
9449
9450 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9451 tmp_diet=no
9452 if test "$host_os" = linux-dietlibc; then
9453 case $cc_basename in
9454 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9455 esac
9456 fi
9457 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9458 && test "$tmp_diet" = no
9459 then
9460 tmp_addflag=' $pic_flag'
9461 tmp_sharedflag='-shared'
9462 case $cc_basename,$host_cpu in
9463 pgcc*) # Portland Group C compiler
9464 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'
9465 tmp_addflag=' $pic_flag'
9466 ;;
9467 pgf77* | pgf90* | pgf95* | pgfortran*)
9468 # Portland Group f77 and f90 compilers
9469 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'
9470 tmp_addflag=' $pic_flag -Mnomain' ;;
9471 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9472 tmp_addflag=' -i_dynamic' ;;
9473 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9474 tmp_addflag=' -i_dynamic -nofor_main' ;;
9475 ifc* | ifort*) # Intel Fortran compiler
9476 tmp_addflag=' -nofor_main' ;;
9477 lf95*) # Lahey Fortran 8.1
9478 whole_archive_flag_spec=
9479 tmp_sharedflag='--shared' ;;
9480 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9481 tmp_sharedflag='-qmkshrobj'
9482 tmp_addflag= ;;
9483 nvcc*) # Cuda Compiler Driver 2.2
9484 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'
9485 compiler_needs_object=yes
9486 ;;
9487 esac
9488 case `$CC -V 2>&1 | sed 5q` in
9489 *Sun\ C*) # Sun C 5.9
9490 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'
9491 compiler_needs_object=yes
9492 tmp_sharedflag='-G' ;;
9493 *Sun\ F*) # Sun Fortran 8.3
9494 tmp_sharedflag='-G' ;;
9495 esac
9496 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9497
9498 if test "x$supports_anon_versioning" = xyes; then
9499 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9500 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9501 echo "local: *; };" >> $output_objdir/$libname.ver~
9502 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9503 fi
9504
9505 case $cc_basename in
9506 xlf* | bgf* | bgxlf* | mpixlf*)
9507 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9508 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9509 hardcode_libdir_flag_spec=
9510 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9511 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9512 if test "x$supports_anon_versioning" = xyes; then
9513 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9514 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9515 echo "local: *; };" >> $output_objdir/$libname.ver~
9516 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9517 fi
9518 ;;
9519 esac
9520 else
9521 ld_shlibs=no
9522 fi
9523 ;;
9524
9525 netbsd*)
9526 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9527 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9528 wlarc=
9529 else
9530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9531 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9532 fi
9533 ;;
9534
9535 solaris*)
9536 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9537 ld_shlibs=no
9538 cat <<_LT_EOF 1>&2
9539
9540 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9541 *** create shared libraries on Solaris systems. Therefore, libtool
9542 *** is disabling shared libraries support. We urge you to upgrade GNU
9543 *** binutils to release 2.9.1 or newer. Another option is to modify
9544 *** your PATH or compiler configuration so that the native linker is
9545 *** used, and then restart.
9546
9547 _LT_EOF
9548 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9550 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9551 else
9552 ld_shlibs=no
9553 fi
9554 ;;
9555
9556 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9557 case `$LD -v 2>&1` in
9558 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9559 ld_shlibs=no
9560 cat <<_LT_EOF 1>&2
9561
9562 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9563 *** reliably create shared libraries on SCO systems. Therefore, libtool
9564 *** is disabling shared libraries support. We urge you to upgrade GNU
9565 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9566 *** your PATH or compiler configuration so that the native linker is
9567 *** used, and then restart.
9568
9569 _LT_EOF
9570 ;;
9571 *)
9572 # For security reasons, it is highly recommended that you always
9573 # use absolute paths for naming shared libraries, and exclude the
9574 # DT_RUNPATH tag from executables and libraries. But doing so
9575 # requires that you compile everything twice, which is a pain.
9576 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9577 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9579 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9580 else
9581 ld_shlibs=no
9582 fi
9583 ;;
9584 esac
9585 ;;
9586
9587 sunos4*)
9588 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9589 wlarc=
9590 hardcode_direct=yes
9591 hardcode_shlibpath_var=no
9592 ;;
9593
9594 *)
9595 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9598 else
9599 ld_shlibs=no
9600 fi
9601 ;;
9602 esac
9603
9604 if test "$ld_shlibs" = no; then
9605 runpath_var=
9606 hardcode_libdir_flag_spec=
9607 export_dynamic_flag_spec=
9608 whole_archive_flag_spec=
9609 fi
9610 else
9611 # PORTME fill in a description of your system's linker (not GNU ld)
9612 case $host_os in
9613 aix3*)
9614 allow_undefined_flag=unsupported
9615 always_export_symbols=yes
9616 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'
9617 # Note: this linker hardcodes the directories in LIBPATH if there
9618 # are no directories specified by -L.
9619 hardcode_minus_L=yes
9620 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9621 # Neither direct hardcoding nor static linking is supported with a
9622 # broken collect2.
9623 hardcode_direct=unsupported
9624 fi
9625 ;;
9626
9627 aix[4-9]*)
9628 if test "$host_cpu" = ia64; then
9629 # On IA64, the linker does run time linking by default, so we don't
9630 # have to do anything special.
9631 aix_use_runtimelinking=no
9632 exp_sym_flag='-Bexport'
9633 no_entry_flag=""
9634 else
9635 # If we're using GNU nm, then we don't want the "-C" option.
9636 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9637 # Also, AIX nm treats weak defined symbols like other global
9638 # defined symbols, whereas GNU nm marks them as "W".
9639 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9640 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'
9641 else
9642 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'
9643 fi
9644 aix_use_runtimelinking=no
9645
9646 # Test if we are trying to use run time linking or normal
9647 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9648 # need to do runtime linking.
9649 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9650 for ld_flag in $LDFLAGS; do
9651 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9652 aix_use_runtimelinking=yes
9653 break
9654 fi
9655 done
9656 ;;
9657 esac
9658
9659 exp_sym_flag='-bexport'
9660 no_entry_flag='-bnoentry'
9661 fi
9662
9663 # When large executables or shared objects are built, AIX ld can
9664 # have problems creating the table of contents. If linking a library
9665 # or program results in "error TOC overflow" add -mminimal-toc to
9666 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9667 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9668
9669 archive_cmds=''
9670 hardcode_direct=yes
9671 hardcode_direct_absolute=yes
9672 hardcode_libdir_separator=':'
9673 link_all_deplibs=yes
9674 file_list_spec='${wl}-f,'
9675
9676 if test "$GCC" = yes; then
9677 case $host_os in aix4.[012]|aix4.[012].*)
9678 # We only want to do this on AIX 4.2 and lower, the check
9679 # below for broken collect2 doesn't work under 4.3+
9680 collect2name=`${CC} -print-prog-name=collect2`
9681 if test -f "$collect2name" &&
9682 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9683 then
9684 # We have reworked collect2
9685 :
9686 else
9687 # We have old collect2
9688 hardcode_direct=unsupported
9689 # It fails to find uninstalled libraries when the uninstalled
9690 # path is not listed in the libpath. Setting hardcode_minus_L
9691 # to unsupported forces relinking
9692 hardcode_minus_L=yes
9693 hardcode_libdir_flag_spec='-L$libdir'
9694 hardcode_libdir_separator=
9695 fi
9696 ;;
9697 esac
9698 shared_flag='-shared'
9699 if test "$aix_use_runtimelinking" = yes; then
9700 shared_flag="$shared_flag "'${wl}-G'
9701 fi
9702 else
9703 # not using gcc
9704 if test "$host_cpu" = ia64; then
9705 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9706 # chokes on -Wl,-G. The following line is correct:
9707 shared_flag='-G'
9708 else
9709 if test "$aix_use_runtimelinking" = yes; then
9710 shared_flag='${wl}-G'
9711 else
9712 shared_flag='${wl}-bM:SRE'
9713 fi
9714 fi
9715 fi
9716
9717 export_dynamic_flag_spec='${wl}-bexpall'
9718 # It seems that -bexpall does not export symbols beginning with
9719 # underscore (_), so it is better to generate a list of symbols to export.
9720 always_export_symbols=yes
9721 if test "$aix_use_runtimelinking" = yes; then
9722 # Warning - without using the other runtime loading flags (-brtl),
9723 # -berok will link without error, but may produce a broken library.
9724 allow_undefined_flag='-berok'
9725 # Determine the default libpath from the value encoded in an
9726 # empty executable.
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9729
9730 int
9731 main ()
9732 {
9733
9734 ;
9735 return 0;
9736 }
9737 _ACEOF
9738 if ac_fn_c_try_link "$LINENO"; then :
9739
9740 lt_aix_libpath_sed='
9741 /Import File Strings/,/^$/ {
9742 /^0/ {
9743 s/^0 *\(.*\)$/\1/
9744 p
9745 }
9746 }'
9747 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9748 # Check for a 64-bit object if we didn't find anything.
9749 if test -z "$aix_libpath"; then
9750 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9751 fi
9752 fi
9753 rm -f core conftest.err conftest.$ac_objext \
9754 conftest$ac_exeext conftest.$ac_ext
9755 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9756
9757 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9758 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"
9759 else
9760 if test "$host_cpu" = ia64; then
9761 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9762 allow_undefined_flag="-z nodefs"
9763 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"
9764 else
9765 # Determine the default libpath from the value encoded in an
9766 # empty executable.
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769
9770 int
9771 main ()
9772 {
9773
9774 ;
9775 return 0;
9776 }
9777 _ACEOF
9778 if ac_fn_c_try_link "$LINENO"; then :
9779
9780 lt_aix_libpath_sed='
9781 /Import File Strings/,/^$/ {
9782 /^0/ {
9783 s/^0 *\(.*\)$/\1/
9784 p
9785 }
9786 }'
9787 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9788 # Check for a 64-bit object if we didn't find anything.
9789 if test -z "$aix_libpath"; then
9790 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9791 fi
9792 fi
9793 rm -f core conftest.err conftest.$ac_objext \
9794 conftest$ac_exeext conftest.$ac_ext
9795 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9796
9797 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9798 # Warning - without using the other run time loading flags,
9799 # -berok will link without error, but may produce a broken library.
9800 no_undefined_flag=' ${wl}-bernotok'
9801 allow_undefined_flag=' ${wl}-berok'
9802 if test "$with_gnu_ld" = yes; then
9803 # We only use this code for GNU lds that support --whole-archive.
9804 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9805 else
9806 # Exported symbols can be pulled into shared objects from archives
9807 whole_archive_flag_spec='$convenience'
9808 fi
9809 archive_cmds_need_lc=yes
9810 # This is similar to how AIX traditionally builds its shared libraries.
9811 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'
9812 fi
9813 fi
9814 ;;
9815
9816 amigaos*)
9817 case $host_cpu in
9818 powerpc)
9819 # see comment about AmigaOS4 .so support
9820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9821 archive_expsym_cmds=''
9822 ;;
9823 m68k)
9824 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)'
9825 hardcode_libdir_flag_spec='-L$libdir'
9826 hardcode_minus_L=yes
9827 ;;
9828 esac
9829 ;;
9830
9831 bsdi[45]*)
9832 export_dynamic_flag_spec=-rdynamic
9833 ;;
9834
9835 cygwin* | mingw* | pw32* | cegcc*)
9836 # When not using gcc, we currently assume that we are using
9837 # Microsoft Visual C++.
9838 # hardcode_libdir_flag_spec is actually meaningless, as there is
9839 # no search path for DLLs.
9840 hardcode_libdir_flag_spec=' '
9841 allow_undefined_flag=unsupported
9842 # Tell ltmain to make .lib files, not .a files.
9843 libext=lib
9844 # Tell ltmain to make .dll files, not .so files.
9845 shrext_cmds=".dll"
9846 # FIXME: Setting linknames here is a bad hack.
9847 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9848 # The linker will automatically build a .lib file if we build a DLL.
9849 old_archive_from_new_cmds='true'
9850 # FIXME: Should let the user specify the lib program.
9851 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9852 fix_srcfile_path='`cygpath -w "$srcfile"`'
9853 enable_shared_with_static_runtimes=yes
9854 ;;
9855
9856 darwin* | rhapsody*)
9857
9858
9859 archive_cmds_need_lc=no
9860 hardcode_direct=no
9861 hardcode_automatic=yes
9862 hardcode_shlibpath_var=unsupported
9863 if test "$lt_cv_ld_force_load" = "yes"; then
9864 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\"`'
9865 else
9866 whole_archive_flag_spec=''
9867 fi
9868 link_all_deplibs=yes
9869 allow_undefined_flag="$_lt_dar_allow_undefined"
9870 case $cc_basename in
9871 ifort*) _lt_dar_can_shared=yes ;;
9872 *) _lt_dar_can_shared=$GCC ;;
9873 esac
9874 if test "$_lt_dar_can_shared" = "yes"; then
9875 output_verbose_link_cmd=func_echo_all
9876 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9877 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9878 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}"
9879 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}"
9880
9881 else
9882 ld_shlibs=no
9883 fi
9884
9885 ;;
9886
9887 dgux*)
9888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9889 hardcode_libdir_flag_spec='-L$libdir'
9890 hardcode_shlibpath_var=no
9891 ;;
9892
9893 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9894 # support. Future versions do this automatically, but an explicit c++rt0.o
9895 # does not break anything, and helps significantly (at the cost of a little
9896 # extra space).
9897 freebsd2.2*)
9898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9899 hardcode_libdir_flag_spec='-R$libdir'
9900 hardcode_direct=yes
9901 hardcode_shlibpath_var=no
9902 ;;
9903
9904 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9905 freebsd2.*)
9906 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9907 hardcode_direct=yes
9908 hardcode_minus_L=yes
9909 hardcode_shlibpath_var=no
9910 ;;
9911
9912 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9913 freebsd* | dragonfly*)
9914 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9915 hardcode_libdir_flag_spec='-R$libdir'
9916 hardcode_direct=yes
9917 hardcode_shlibpath_var=no
9918 ;;
9919
9920 hpux9*)
9921 if test "$GCC" = yes; then
9922 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'
9923 else
9924 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'
9925 fi
9926 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9927 hardcode_libdir_separator=:
9928 hardcode_direct=yes
9929
9930 # hardcode_minus_L: Not really in the search PATH,
9931 # but as the default location of the library.
9932 hardcode_minus_L=yes
9933 export_dynamic_flag_spec='${wl}-E'
9934 ;;
9935
9936 hpux10*)
9937 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9938 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9939 else
9940 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9941 fi
9942 if test "$with_gnu_ld" = no; then
9943 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9944 hardcode_libdir_flag_spec_ld='+b $libdir'
9945 hardcode_libdir_separator=:
9946 hardcode_direct=yes
9947 hardcode_direct_absolute=yes
9948 export_dynamic_flag_spec='${wl}-E'
9949 # hardcode_minus_L: Not really in the search PATH,
9950 # but as the default location of the library.
9951 hardcode_minus_L=yes
9952 fi
9953 ;;
9954
9955 hpux11*)
9956 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9957 case $host_cpu in
9958 hppa*64*)
9959 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9960 ;;
9961 ia64*)
9962 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9963 ;;
9964 *)
9965 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9966 ;;
9967 esac
9968 else
9969 case $host_cpu in
9970 hppa*64*)
9971 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9972 ;;
9973 ia64*)
9974 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9975 ;;
9976 *)
9977
9978 # Older versions of the 11.00 compiler do not understand -b yet
9979 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9981 $as_echo_n "checking if $CC understands -b... " >&6; }
9982 if ${lt_cv_prog_compiler__b+:} false; then :
9983 $as_echo_n "(cached) " >&6
9984 else
9985 lt_cv_prog_compiler__b=no
9986 save_LDFLAGS="$LDFLAGS"
9987 LDFLAGS="$LDFLAGS -b"
9988 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9989 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9990 # The linker can only warn and ignore the option if not recognized
9991 # So say no if there are warnings
9992 if test -s conftest.err; then
9993 # Append any errors to the config.log.
9994 cat conftest.err 1>&5
9995 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9997 if diff conftest.exp conftest.er2 >/dev/null; then
9998 lt_cv_prog_compiler__b=yes
9999 fi
10000 else
10001 lt_cv_prog_compiler__b=yes
10002 fi
10003 fi
10004 $RM -r conftest*
10005 LDFLAGS="$save_LDFLAGS"
10006
10007 fi
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10009 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10010
10011 if test x"$lt_cv_prog_compiler__b" = xyes; then
10012 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10013 else
10014 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10015 fi
10016
10017 ;;
10018 esac
10019 fi
10020 if test "$with_gnu_ld" = no; then
10021 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10022 hardcode_libdir_separator=:
10023
10024 case $host_cpu in
10025 hppa*64*|ia64*)
10026 hardcode_direct=no
10027 hardcode_shlibpath_var=no
10028 ;;
10029 *)
10030 hardcode_direct=yes
10031 hardcode_direct_absolute=yes
10032 export_dynamic_flag_spec='${wl}-E'
10033
10034 # hardcode_minus_L: Not really in the search PATH,
10035 # but as the default location of the library.
10036 hardcode_minus_L=yes
10037 ;;
10038 esac
10039 fi
10040 ;;
10041
10042 irix5* | irix6* | nonstopux*)
10043 if test "$GCC" = yes; then
10044 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'
10045 # Try to use the -exported_symbol ld option, if it does not
10046 # work, assume that -exports_file does not work either and
10047 # implicitly export all symbols.
10048 save_LDFLAGS="$LDFLAGS"
10049 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051 /* end confdefs.h. */
10052 int foo(void) {}
10053 _ACEOF
10054 if ac_fn_c_try_link "$LINENO"; then :
10055 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'
10056
10057 fi
10058 rm -f core conftest.err conftest.$ac_objext \
10059 conftest$ac_exeext conftest.$ac_ext
10060 LDFLAGS="$save_LDFLAGS"
10061 else
10062 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'
10063 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'
10064 fi
10065 archive_cmds_need_lc='no'
10066 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10067 hardcode_libdir_separator=:
10068 inherit_rpath=yes
10069 link_all_deplibs=yes
10070 ;;
10071
10072 netbsd*)
10073 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10074 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10075 else
10076 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10077 fi
10078 hardcode_libdir_flag_spec='-R$libdir'
10079 hardcode_direct=yes
10080 hardcode_shlibpath_var=no
10081 ;;
10082
10083 newsos6)
10084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10085 hardcode_direct=yes
10086 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10087 hardcode_libdir_separator=:
10088 hardcode_shlibpath_var=no
10089 ;;
10090
10091 *nto* | *qnx*)
10092 ;;
10093
10094 openbsd*)
10095 if test -f /usr/libexec/ld.so; then
10096 hardcode_direct=yes
10097 hardcode_shlibpath_var=no
10098 hardcode_direct_absolute=yes
10099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10100 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10101 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10102 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10103 export_dynamic_flag_spec='${wl}-E'
10104 else
10105 case $host_os in
10106 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10107 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10108 hardcode_libdir_flag_spec='-R$libdir'
10109 ;;
10110 *)
10111 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10112 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10113 ;;
10114 esac
10115 fi
10116 else
10117 ld_shlibs=no
10118 fi
10119 ;;
10120
10121 os2*)
10122 hardcode_libdir_flag_spec='-L$libdir'
10123 hardcode_minus_L=yes
10124 allow_undefined_flag=unsupported
10125 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'
10126 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10127 ;;
10128
10129 osf3*)
10130 if test "$GCC" = yes; then
10131 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10132 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'
10133 else
10134 allow_undefined_flag=' -expect_unresolved \*'
10135 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'
10136 fi
10137 archive_cmds_need_lc='no'
10138 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10139 hardcode_libdir_separator=:
10140 ;;
10141
10142 osf4* | osf5*) # as osf3* with the addition of -msym flag
10143 if test "$GCC" = yes; then
10144 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10145 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'
10146 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10147 else
10148 allow_undefined_flag=' -expect_unresolved \*'
10149 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'
10150 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~
10151 $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'
10152
10153 # Both c and cxx compiler support -rpath directly
10154 hardcode_libdir_flag_spec='-rpath $libdir'
10155 fi
10156 archive_cmds_need_lc='no'
10157 hardcode_libdir_separator=:
10158 ;;
10159
10160 solaris*)
10161 no_undefined_flag=' -z defs'
10162 if test "$GCC" = yes; then
10163 wlarc='${wl}'
10164 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10165 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10166 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10167 else
10168 case `$CC -V 2>&1` in
10169 *"Compilers 5.0"*)
10170 wlarc=''
10171 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10172 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10173 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10174 ;;
10175 *)
10176 wlarc='${wl}'
10177 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10178 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10179 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10180 ;;
10181 esac
10182 fi
10183 hardcode_libdir_flag_spec='-R$libdir'
10184 hardcode_shlibpath_var=no
10185 case $host_os in
10186 solaris2.[0-5] | solaris2.[0-5].*) ;;
10187 *)
10188 # The compiler driver will combine and reorder linker options,
10189 # but understands `-z linker_flag'. GCC discards it without `$wl',
10190 # but is careful enough not to reorder.
10191 # Supported since Solaris 2.6 (maybe 2.5.1?)
10192 if test "$GCC" = yes; then
10193 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10194 else
10195 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10196 fi
10197 ;;
10198 esac
10199 link_all_deplibs=yes
10200 ;;
10201
10202 sunos4*)
10203 if test "x$host_vendor" = xsequent; then
10204 # Use $CC to link under sequent, because it throws in some extra .o
10205 # files that make .init and .fini sections work.
10206 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10207 else
10208 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10209 fi
10210 hardcode_libdir_flag_spec='-L$libdir'
10211 hardcode_direct=yes
10212 hardcode_minus_L=yes
10213 hardcode_shlibpath_var=no
10214 ;;
10215
10216 sysv4)
10217 case $host_vendor in
10218 sni)
10219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10220 hardcode_direct=yes # is this really true???
10221 ;;
10222 siemens)
10223 ## LD is ld it makes a PLAMLIB
10224 ## CC just makes a GrossModule.
10225 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10226 reload_cmds='$CC -r -o $output$reload_objs'
10227 hardcode_direct=no
10228 ;;
10229 motorola)
10230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10231 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10232 ;;
10233 esac
10234 runpath_var='LD_RUN_PATH'
10235 hardcode_shlibpath_var=no
10236 ;;
10237
10238 sysv4.3*)
10239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10240 hardcode_shlibpath_var=no
10241 export_dynamic_flag_spec='-Bexport'
10242 ;;
10243
10244 sysv4*MP*)
10245 if test -d /usr/nec; then
10246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10247 hardcode_shlibpath_var=no
10248 runpath_var=LD_RUN_PATH
10249 hardcode_runpath_var=yes
10250 ld_shlibs=yes
10251 fi
10252 ;;
10253
10254 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10255 no_undefined_flag='${wl}-z,text'
10256 archive_cmds_need_lc=no
10257 hardcode_shlibpath_var=no
10258 runpath_var='LD_RUN_PATH'
10259
10260 if test "$GCC" = yes; then
10261 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10262 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263 else
10264 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10265 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266 fi
10267 ;;
10268
10269 sysv5* | sco3.2v5* | sco5v6*)
10270 # Note: We can NOT use -z defs as we might desire, because we do not
10271 # link with -lc, and that would cause any symbols used from libc to
10272 # always be unresolved, which means just about no library would
10273 # ever link correctly. If we're not using GNU ld we use -z text
10274 # though, which does catch some bad symbols but isn't as heavy-handed
10275 # as -z defs.
10276 no_undefined_flag='${wl}-z,text'
10277 allow_undefined_flag='${wl}-z,nodefs'
10278 archive_cmds_need_lc=no
10279 hardcode_shlibpath_var=no
10280 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10281 hardcode_libdir_separator=':'
10282 link_all_deplibs=yes
10283 export_dynamic_flag_spec='${wl}-Bexport'
10284 runpath_var='LD_RUN_PATH'
10285
10286 if test "$GCC" = yes; then
10287 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10288 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10289 else
10290 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10291 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10292 fi
10293 ;;
10294
10295 uts4*)
10296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10297 hardcode_libdir_flag_spec='-L$libdir'
10298 hardcode_shlibpath_var=no
10299 ;;
10300
10301 *)
10302 ld_shlibs=no
10303 ;;
10304 esac
10305
10306 if test x$host_vendor = xsni; then
10307 case $host in
10308 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10309 export_dynamic_flag_spec='${wl}-Blargedynsym'
10310 ;;
10311 esac
10312 fi
10313 fi
10314
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10316 $as_echo "$ld_shlibs" >&6; }
10317 test "$ld_shlibs" = no && can_build_shared=no
10318
10319 with_gnu_ld=$with_gnu_ld
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335 #
10336 # Do we need to explicitly link libc?
10337 #
10338 case "x$archive_cmds_need_lc" in
10339 x|xyes)
10340 # Assume -lc should be added
10341 archive_cmds_need_lc=yes
10342
10343 if test "$enable_shared" = yes && test "$GCC" = yes; then
10344 case $archive_cmds in
10345 *'~'*)
10346 # FIXME: we may have to deal with multi-command sequences.
10347 ;;
10348 '$CC '*)
10349 # Test whether the compiler implicitly links with -lc since on some
10350 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10351 # to ld, don't add -lc before -lgcc.
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10353 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10354 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10355 $as_echo_n "(cached) " >&6
10356 else
10357 $RM conftest*
10358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10359
10360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10361 (eval $ac_compile) 2>&5
10362 ac_status=$?
10363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10364 test $ac_status = 0; } 2>conftest.err; then
10365 soname=conftest
10366 lib=conftest
10367 libobjs=conftest.$ac_objext
10368 deplibs=
10369 wl=$lt_prog_compiler_wl
10370 pic_flag=$lt_prog_compiler_pic
10371 compiler_flags=-v
10372 linker_flags=-v
10373 verstring=
10374 output_objdir=.
10375 libname=conftest
10376 lt_save_allow_undefined_flag=$allow_undefined_flag
10377 allow_undefined_flag=
10378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10379 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10380 ac_status=$?
10381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10382 test $ac_status = 0; }
10383 then
10384 lt_cv_archive_cmds_need_lc=no
10385 else
10386 lt_cv_archive_cmds_need_lc=yes
10387 fi
10388 allow_undefined_flag=$lt_save_allow_undefined_flag
10389 else
10390 cat conftest.err 1>&5
10391 fi
10392 $RM conftest*
10393
10394 fi
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10396 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10397 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10398 ;;
10399 esac
10400 fi
10401 ;;
10402 esac
10403
10404
10405
10406
10407
10408
10409
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10561 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10562
10563 if test "$GCC" = yes; then
10564 case $host_os in
10565 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10566 *) lt_awk_arg="/^libraries:/" ;;
10567 esac
10568 case $host_os in
10569 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10570 *) lt_sed_strip_eq="s,=/,/,g" ;;
10571 esac
10572 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10573 case $lt_search_path_spec in
10574 *\;*)
10575 # if the path contains ";" then we assume it to be the separator
10576 # otherwise default to the standard path separator (i.e. ":") - it is
10577 # assumed that no part of a normal pathname contains ";" but that should
10578 # okay in the real world where ";" in dirpaths is itself problematic.
10579 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10580 ;;
10581 *)
10582 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10583 ;;
10584 esac
10585 # Ok, now we have the path, separated by spaces, we can step through it
10586 # and add multilib dir if necessary.
10587 lt_tmp_lt_search_path_spec=
10588 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10589 for lt_sys_path in $lt_search_path_spec; do
10590 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10591 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10592 else
10593 test -d "$lt_sys_path" && \
10594 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10595 fi
10596 done
10597 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10598 BEGIN {RS=" "; FS="/|\n";} {
10599 lt_foo="";
10600 lt_count=0;
10601 for (lt_i = NF; lt_i > 0; lt_i--) {
10602 if ($lt_i != "" && $lt_i != ".") {
10603 if ($lt_i == "..") {
10604 lt_count++;
10605 } else {
10606 if (lt_count == 0) {
10607 lt_foo="/" $lt_i lt_foo;
10608 } else {
10609 lt_count--;
10610 }
10611 }
10612 }
10613 }
10614 if (lt_foo != "") { lt_freq[lt_foo]++; }
10615 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10616 }'`
10617 # AWK program above erroneously prepends '/' to C:/dos/paths
10618 # for these hosts.
10619 case $host_os in
10620 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10621 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10622 esac
10623 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10624 else
10625 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10626 fi
10627 library_names_spec=
10628 libname_spec='lib$name'
10629 soname_spec=
10630 shrext_cmds=".so"
10631 postinstall_cmds=
10632 postuninstall_cmds=
10633 finish_cmds=
10634 finish_eval=
10635 shlibpath_var=
10636 shlibpath_overrides_runpath=unknown
10637 version_type=none
10638 dynamic_linker="$host_os ld.so"
10639 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10640 need_lib_prefix=unknown
10641 hardcode_into_libs=no
10642
10643 # when you set need_version to no, make sure it does not cause -set_version
10644 # flags to be left without arguments
10645 need_version=unknown
10646
10647 case $host_os in
10648 aix3*)
10649 version_type=linux
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10651 shlibpath_var=LIBPATH
10652
10653 # AIX 3 has no versioning support, so we append a major version to the name.
10654 soname_spec='${libname}${release}${shared_ext}$major'
10655 ;;
10656
10657 aix[4-9]*)
10658 version_type=linux
10659 need_lib_prefix=no
10660 need_version=no
10661 hardcode_into_libs=yes
10662 if test "$host_cpu" = ia64; then
10663 # AIX 5 supports IA64
10664 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10665 shlibpath_var=LD_LIBRARY_PATH
10666 else
10667 # With GCC up to 2.95.x, collect2 would create an import file
10668 # for dependence libraries. The import file would start with
10669 # the line `#! .'. This would cause the generated library to
10670 # depend on `.', always an invalid library. This was fixed in
10671 # development snapshots of GCC prior to 3.0.
10672 case $host_os in
10673 aix4 | aix4.[01] | aix4.[01].*)
10674 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10675 echo ' yes '
10676 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10677 :
10678 else
10679 can_build_shared=no
10680 fi
10681 ;;
10682 esac
10683 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10684 # soname into executable. Probably we can add versioning support to
10685 # collect2, so additional links can be useful in future.
10686 if test "$aix_use_runtimelinking" = yes; then
10687 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10688 # instead of lib<name>.a to let people know that these are not
10689 # typical AIX shared libraries.
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691 else
10692 # We preserve .a as extension for shared libraries through AIX4.2
10693 # and later when we are not doing run time linking.
10694 library_names_spec='${libname}${release}.a $libname.a'
10695 soname_spec='${libname}${release}${shared_ext}$major'
10696 fi
10697 shlibpath_var=LIBPATH
10698 fi
10699 ;;
10700
10701 amigaos*)
10702 case $host_cpu in
10703 powerpc)
10704 # Since July 2007 AmigaOS4 officially supports .so libraries.
10705 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 ;;
10708 m68k)
10709 library_names_spec='$libname.ixlibrary $libname.a'
10710 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10711 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'
10712 ;;
10713 esac
10714 ;;
10715
10716 beos*)
10717 library_names_spec='${libname}${shared_ext}'
10718 dynamic_linker="$host_os ld.so"
10719 shlibpath_var=LIBRARY_PATH
10720 ;;
10721
10722 bsdi[45]*)
10723 version_type=linux
10724 need_version=no
10725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726 soname_spec='${libname}${release}${shared_ext}$major'
10727 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10728 shlibpath_var=LD_LIBRARY_PATH
10729 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10730 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10731 # the default ld.so.conf also contains /usr/contrib/lib and
10732 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10733 # libtool to hard-code these into programs
10734 ;;
10735
10736 cygwin* | mingw* | pw32* | cegcc*)
10737 version_type=windows
10738 shrext_cmds=".dll"
10739 need_version=no
10740 need_lib_prefix=no
10741
10742 case $GCC,$host_os in
10743 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10744 library_names_spec='$libname.dll.a'
10745 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10746 postinstall_cmds='base_file=`basename \${file}`~
10747 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10748 dldir=$destdir/`dirname \$dlpath`~
10749 test -d \$dldir || mkdir -p \$dldir~
10750 $install_prog $dir/$dlname \$dldir/$dlname~
10751 chmod a+x \$dldir/$dlname~
10752 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10753 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10754 fi'
10755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10756 dlpath=$dir/\$dldll~
10757 $RM \$dlpath'
10758 shlibpath_overrides_runpath=yes
10759
10760 case $host_os in
10761 cygwin*)
10762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10764
10765 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10766 ;;
10767 mingw* | cegcc*)
10768 # MinGW DLLs use traditional 'lib' prefix
10769 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10770 ;;
10771 pw32*)
10772 # pw32 DLLs use 'pw' prefix rather than 'lib'
10773 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10774 ;;
10775 esac
10776 ;;
10777
10778 *)
10779 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10780 ;;
10781 esac
10782 dynamic_linker='Win32 ld.exe'
10783 # FIXME: first we should search . and the directory the executable is in
10784 shlibpath_var=PATH
10785 ;;
10786
10787 darwin* | rhapsody*)
10788 dynamic_linker="$host_os dyld"
10789 version_type=darwin
10790 need_lib_prefix=no
10791 need_version=no
10792 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10793 soname_spec='${libname}${release}${major}$shared_ext'
10794 shlibpath_overrides_runpath=yes
10795 shlibpath_var=DYLD_LIBRARY_PATH
10796 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10797
10798 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10799 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10800 ;;
10801
10802 dgux*)
10803 version_type=linux
10804 need_lib_prefix=no
10805 need_version=no
10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10807 soname_spec='${libname}${release}${shared_ext}$major'
10808 shlibpath_var=LD_LIBRARY_PATH
10809 ;;
10810
10811 freebsd* | dragonfly*)
10812 # DragonFly does not have aout. When/if they implement a new
10813 # versioning mechanism, adjust this.
10814 if test -x /usr/bin/objformat; then
10815 objformat=`/usr/bin/objformat`
10816 else
10817 case $host_os in
10818 freebsd[23].*) objformat=aout ;;
10819 *) objformat=elf ;;
10820 esac
10821 fi
10822 version_type=freebsd-$objformat
10823 case $version_type in
10824 freebsd-elf*)
10825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10826 need_version=no
10827 need_lib_prefix=no
10828 ;;
10829 freebsd-*)
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10831 need_version=yes
10832 ;;
10833 esac
10834 shlibpath_var=LD_LIBRARY_PATH
10835 case $host_os in
10836 freebsd2.*)
10837 shlibpath_overrides_runpath=yes
10838 ;;
10839 freebsd3.[01]* | freebsdelf3.[01]*)
10840 shlibpath_overrides_runpath=yes
10841 hardcode_into_libs=yes
10842 ;;
10843 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10844 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10845 shlibpath_overrides_runpath=no
10846 hardcode_into_libs=yes
10847 ;;
10848 *) # from 4.6 on, and DragonFly
10849 shlibpath_overrides_runpath=yes
10850 hardcode_into_libs=yes
10851 ;;
10852 esac
10853 ;;
10854
10855 haiku*)
10856 version_type=linux
10857 need_lib_prefix=no
10858 need_version=no
10859 dynamic_linker="$host_os runtime_loader"
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10861 soname_spec='${libname}${release}${shared_ext}$major'
10862 shlibpath_var=LIBRARY_PATH
10863 shlibpath_overrides_runpath=yes
10864 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10865 hardcode_into_libs=yes
10866 ;;
10867
10868 hpux9* | hpux10* | hpux11*)
10869 # Give a soname corresponding to the major version so that dld.sl refuses to
10870 # link against other versions.
10871 version_type=sunos
10872 need_lib_prefix=no
10873 need_version=no
10874 case $host_cpu in
10875 ia64*)
10876 shrext_cmds='.so'
10877 hardcode_into_libs=yes
10878 dynamic_linker="$host_os dld.so"
10879 shlibpath_var=LD_LIBRARY_PATH
10880 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10882 soname_spec='${libname}${release}${shared_ext}$major'
10883 if test "X$HPUX_IA64_MODE" = X32; then
10884 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10885 else
10886 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10887 fi
10888 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10889 ;;
10890 hppa*64*)
10891 shrext_cmds='.sl'
10892 hardcode_into_libs=yes
10893 dynamic_linker="$host_os dld.sl"
10894 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10895 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10897 soname_spec='${libname}${release}${shared_ext}$major'
10898 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10899 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10900 ;;
10901 *)
10902 shrext_cmds='.sl'
10903 dynamic_linker="$host_os dld.sl"
10904 shlibpath_var=SHLIB_PATH
10905 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10907 soname_spec='${libname}${release}${shared_ext}$major'
10908 ;;
10909 esac
10910 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10911 postinstall_cmds='chmod 555 $lib'
10912 # or fails outright, so override atomically:
10913 install_override_mode=555
10914 ;;
10915
10916 interix[3-9]*)
10917 version_type=linux
10918 need_lib_prefix=no
10919 need_version=no
10920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10921 soname_spec='${libname}${release}${shared_ext}$major'
10922 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10923 shlibpath_var=LD_LIBRARY_PATH
10924 shlibpath_overrides_runpath=no
10925 hardcode_into_libs=yes
10926 ;;
10927
10928 irix5* | irix6* | nonstopux*)
10929 case $host_os in
10930 nonstopux*) version_type=nonstopux ;;
10931 *)
10932 if test "$lt_cv_prog_gnu_ld" = yes; then
10933 version_type=linux
10934 else
10935 version_type=irix
10936 fi ;;
10937 esac
10938 need_lib_prefix=no
10939 need_version=no
10940 soname_spec='${libname}${release}${shared_ext}$major'
10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10942 case $host_os in
10943 irix5* | nonstopux*)
10944 libsuff= shlibsuff=
10945 ;;
10946 *)
10947 case $LD in # libtool.m4 will add one of these switches to LD
10948 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10949 libsuff= shlibsuff= libmagic=32-bit;;
10950 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10951 libsuff=32 shlibsuff=N32 libmagic=N32;;
10952 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10953 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10954 *) libsuff= shlibsuff= libmagic=never-match;;
10955 esac
10956 ;;
10957 esac
10958 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10959 shlibpath_overrides_runpath=no
10960 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10961 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10962 hardcode_into_libs=yes
10963 ;;
10964
10965 # No shared lib support for Linux oldld, aout, or coff.
10966 linux*oldld* | linux*aout* | linux*coff*)
10967 dynamic_linker=no
10968 ;;
10969
10970 # This must be Linux ELF.
10971
10972 # uclinux* changes (here and below) have been submitted to the libtool
10973 # project, but have not yet been accepted: they are GCC-local changes
10974 # for the time being. (See
10975 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10976 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10977 version_type=linux
10978 need_lib_prefix=no
10979 need_version=no
10980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10981 soname_spec='${libname}${release}${shared_ext}$major'
10982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10983 shlibpath_var=LD_LIBRARY_PATH
10984 shlibpath_overrides_runpath=no
10985
10986 # Some binutils ld are patched to set DT_RUNPATH
10987 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 lt_cv_shlibpath_overrides_runpath=no
10991 save_LDFLAGS=$LDFLAGS
10992 save_libdir=$libdir
10993 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10994 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10997
10998 int
10999 main ()
11000 {
11001
11002 ;
11003 return 0;
11004 }
11005 _ACEOF
11006 if ac_fn_c_try_link "$LINENO"; then :
11007 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11008 lt_cv_shlibpath_overrides_runpath=yes
11009 fi
11010 fi
11011 rm -f core conftest.err conftest.$ac_objext \
11012 conftest$ac_exeext conftest.$ac_ext
11013 LDFLAGS=$save_LDFLAGS
11014 libdir=$save_libdir
11015
11016 fi
11017
11018 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11019
11020 # This implies no fast_install, which is unacceptable.
11021 # Some rework will be needed to allow for fast_install
11022 # before this can be enabled.
11023 hardcode_into_libs=yes
11024
11025 # Append ld.so.conf contents to the search path
11026 if test -f /etc/ld.so.conf; then
11027 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' ' '`
11028 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11029 fi
11030
11031 # We used to test for /lib/ld.so.1 and disable shared libraries on
11032 # powerpc, because MkLinux only supported shared libraries with the
11033 # GNU dynamic linker. Since this was broken with cross compilers,
11034 # most powerpc-linux boxes support dynamic linking these days and
11035 # people can always --disable-shared, the test was removed, and we
11036 # assume the GNU/Linux dynamic linker is in use.
11037 dynamic_linker='GNU/Linux ld.so'
11038 ;;
11039
11040 netbsd*)
11041 version_type=sunos
11042 need_lib_prefix=no
11043 need_version=no
11044 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11047 dynamic_linker='NetBSD (a.out) ld.so'
11048 else
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11050 soname_spec='${libname}${release}${shared_ext}$major'
11051 dynamic_linker='NetBSD ld.elf_so'
11052 fi
11053 shlibpath_var=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath=yes
11055 hardcode_into_libs=yes
11056 ;;
11057
11058 newsos6)
11059 version_type=linux
11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11061 shlibpath_var=LD_LIBRARY_PATH
11062 shlibpath_overrides_runpath=yes
11063 ;;
11064
11065 *nto* | *qnx*)
11066 version_type=qnx
11067 need_lib_prefix=no
11068 need_version=no
11069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11070 soname_spec='${libname}${release}${shared_ext}$major'
11071 shlibpath_var=LD_LIBRARY_PATH
11072 shlibpath_overrides_runpath=no
11073 hardcode_into_libs=yes
11074 dynamic_linker='ldqnx.so'
11075 ;;
11076
11077 openbsd*)
11078 version_type=sunos
11079 sys_lib_dlsearch_path_spec="/usr/lib"
11080 need_lib_prefix=no
11081 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11082 case $host_os in
11083 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11084 *) need_version=no ;;
11085 esac
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11088 shlibpath_var=LD_LIBRARY_PATH
11089 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11090 case $host_os in
11091 openbsd2.[89] | openbsd2.[89].*)
11092 shlibpath_overrides_runpath=no
11093 ;;
11094 *)
11095 shlibpath_overrides_runpath=yes
11096 ;;
11097 esac
11098 else
11099 shlibpath_overrides_runpath=yes
11100 fi
11101 ;;
11102
11103 os2*)
11104 libname_spec='$name'
11105 shrext_cmds=".dll"
11106 need_lib_prefix=no
11107 library_names_spec='$libname${shared_ext} $libname.a'
11108 dynamic_linker='OS/2 ld.exe'
11109 shlibpath_var=LIBPATH
11110 ;;
11111
11112 osf3* | osf4* | osf5*)
11113 version_type=osf
11114 need_lib_prefix=no
11115 need_version=no
11116 soname_spec='${libname}${release}${shared_ext}$major'
11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11118 shlibpath_var=LD_LIBRARY_PATH
11119 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11120 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11121 ;;
11122
11123 rdos*)
11124 dynamic_linker=no
11125 ;;
11126
11127 solaris*)
11128 version_type=linux
11129 need_lib_prefix=no
11130 need_version=no
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11132 soname_spec='${libname}${release}${shared_ext}$major'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 shlibpath_overrides_runpath=yes
11135 hardcode_into_libs=yes
11136 # ldd complains unless libraries are executable
11137 postinstall_cmds='chmod +x $lib'
11138 ;;
11139
11140 sunos4*)
11141 version_type=sunos
11142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11143 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11144 shlibpath_var=LD_LIBRARY_PATH
11145 shlibpath_overrides_runpath=yes
11146 if test "$with_gnu_ld" = yes; then
11147 need_lib_prefix=no
11148 fi
11149 need_version=yes
11150 ;;
11151
11152 sysv4 | sysv4.3*)
11153 version_type=linux
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 soname_spec='${libname}${release}${shared_ext}$major'
11156 shlibpath_var=LD_LIBRARY_PATH
11157 case $host_vendor in
11158 sni)
11159 shlibpath_overrides_runpath=no
11160 need_lib_prefix=no
11161 runpath_var=LD_RUN_PATH
11162 ;;
11163 siemens)
11164 need_lib_prefix=no
11165 ;;
11166 motorola)
11167 need_lib_prefix=no
11168 need_version=no
11169 shlibpath_overrides_runpath=no
11170 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11171 ;;
11172 esac
11173 ;;
11174
11175 sysv4*MP*)
11176 if test -d /usr/nec ;then
11177 version_type=linux
11178 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11179 soname_spec='$libname${shared_ext}.$major'
11180 shlibpath_var=LD_LIBRARY_PATH
11181 fi
11182 ;;
11183
11184 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11185 version_type=freebsd-elf
11186 need_lib_prefix=no
11187 need_version=no
11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11189 soname_spec='${libname}${release}${shared_ext}$major'
11190 shlibpath_var=LD_LIBRARY_PATH
11191 shlibpath_overrides_runpath=yes
11192 hardcode_into_libs=yes
11193 if test "$with_gnu_ld" = yes; then
11194 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11195 else
11196 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11197 case $host_os in
11198 sco3.2v5*)
11199 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11200 ;;
11201 esac
11202 fi
11203 sys_lib_dlsearch_path_spec='/usr/lib'
11204 ;;
11205
11206 tpf*)
11207 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11208 version_type=linux
11209 need_lib_prefix=no
11210 need_version=no
11211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11212 shlibpath_var=LD_LIBRARY_PATH
11213 shlibpath_overrides_runpath=no
11214 hardcode_into_libs=yes
11215 ;;
11216
11217 uts4*)
11218 version_type=linux
11219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11220 soname_spec='${libname}${release}${shared_ext}$major'
11221 shlibpath_var=LD_LIBRARY_PATH
11222 ;;
11223
11224 # Shared libraries for VwWorks, >= 7 only at this stage
11225 # and (fpic) still incompatible with "large" code models
11226 # in a few configurations. Only for RTP mode in any case,
11227 # and upon explicit request at configure time.
11228 vxworks7*)
11229 dynamic_linker=no
11230 case ${with_multisubdir}-${enable_shared} in
11231 *large*)
11232 ;;
11233 *mrtp*-yes)
11234 version_type=linux
11235 need_lib_prefix=no
11236 need_version=no
11237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11238 soname_spec='${libname}${release}${shared_ext}$major'
11239 dynamic_linker="$host_os module_loader"
11240 ;;
11241 esac
11242 ;;
11243 *)
11244 dynamic_linker=no
11245 ;;
11246 esac
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11248 $as_echo "$dynamic_linker" >&6; }
11249 test "$dynamic_linker" = no && can_build_shared=no
11250
11251 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11252 if test "$GCC" = yes; then
11253 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11254 fi
11255
11256 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11257 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11258 fi
11259 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11260 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11261 fi
11262
11263
11264
11265
11266
11267
11268
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11355 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11356 hardcode_action=
11357 if test -n "$hardcode_libdir_flag_spec" ||
11358 test -n "$runpath_var" ||
11359 test "X$hardcode_automatic" = "Xyes" ; then
11360
11361 # We can hardcode non-existent directories.
11362 if test "$hardcode_direct" != no &&
11363 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11364 # have to relink, otherwise we might link with an installed library
11365 # when we should be linking with a yet-to-be-installed one
11366 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11367 test "$hardcode_minus_L" != no; then
11368 # Linking always hardcodes the temporary library directory.
11369 hardcode_action=relink
11370 else
11371 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11372 hardcode_action=immediate
11373 fi
11374 else
11375 # We cannot hardcode anything, or else we can only hardcode existing
11376 # directories.
11377 hardcode_action=unsupported
11378 fi
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11380 $as_echo "$hardcode_action" >&6; }
11381
11382 if test "$hardcode_action" = relink ||
11383 test "$inherit_rpath" = yes; then
11384 # Fast installation is not supported
11385 enable_fast_install=no
11386 elif test "$shlibpath_overrides_runpath" = yes ||
11387 test "$enable_shared" = no; then
11388 # Fast installation is not necessary
11389 enable_fast_install=needless
11390 fi
11391
11392
11393
11394
11395
11396
11397 if test "x$enable_dlopen" != xyes; then
11398 enable_dlopen=unknown
11399 enable_dlopen_self=unknown
11400 enable_dlopen_self_static=unknown
11401 else
11402 lt_cv_dlopen=no
11403 lt_cv_dlopen_libs=
11404
11405 case $host_os in
11406 beos*)
11407 lt_cv_dlopen="load_add_on"
11408 lt_cv_dlopen_libs=
11409 lt_cv_dlopen_self=yes
11410 ;;
11411
11412 mingw* | pw32* | cegcc*)
11413 lt_cv_dlopen="LoadLibrary"
11414 lt_cv_dlopen_libs=
11415 ;;
11416
11417 cygwin*)
11418 lt_cv_dlopen="dlopen"
11419 lt_cv_dlopen_libs=
11420 ;;
11421
11422 darwin*)
11423 # if libdl is installed we need to link against it
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11425 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11426 if ${ac_cv_lib_dl_dlopen+:} false; then :
11427 $as_echo_n "(cached) " >&6
11428 else
11429 ac_check_lib_save_LIBS=$LIBS
11430 LIBS="-ldl $LIBS"
11431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11432 /* end confdefs.h. */
11433
11434 /* Override any GCC internal prototype to avoid an error.
11435 Use char because int might match the return type of a GCC
11436 builtin and then its argument prototype would still apply. */
11437 #ifdef __cplusplus
11438 extern "C"
11439 #endif
11440 char dlopen ();
11441 int
11442 main ()
11443 {
11444 return dlopen ();
11445 ;
11446 return 0;
11447 }
11448 _ACEOF
11449 if ac_fn_c_try_link "$LINENO"; then :
11450 ac_cv_lib_dl_dlopen=yes
11451 else
11452 ac_cv_lib_dl_dlopen=no
11453 fi
11454 rm -f core conftest.err conftest.$ac_objext \
11455 conftest$ac_exeext conftest.$ac_ext
11456 LIBS=$ac_check_lib_save_LIBS
11457 fi
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11459 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11460 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11461 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11462 else
11463
11464 lt_cv_dlopen="dyld"
11465 lt_cv_dlopen_libs=
11466 lt_cv_dlopen_self=yes
11467
11468 fi
11469
11470 ;;
11471
11472 *)
11473 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11474 if test "x$ac_cv_func_shl_load" = xyes; then :
11475 lt_cv_dlopen="shl_load"
11476 else
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11478 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11479 if ${ac_cv_lib_dld_shl_load+:} false; then :
11480 $as_echo_n "(cached) " >&6
11481 else
11482 ac_check_lib_save_LIBS=$LIBS
11483 LIBS="-ldld $LIBS"
11484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h. */
11486
11487 /* Override any GCC internal prototype to avoid an error.
11488 Use char because int might match the return type of a GCC
11489 builtin and then its argument prototype would still apply. */
11490 #ifdef __cplusplus
11491 extern "C"
11492 #endif
11493 char shl_load ();
11494 int
11495 main ()
11496 {
11497 return shl_load ();
11498 ;
11499 return 0;
11500 }
11501 _ACEOF
11502 if ac_fn_c_try_link "$LINENO"; then :
11503 ac_cv_lib_dld_shl_load=yes
11504 else
11505 ac_cv_lib_dld_shl_load=no
11506 fi
11507 rm -f core conftest.err conftest.$ac_objext \
11508 conftest$ac_exeext conftest.$ac_ext
11509 LIBS=$ac_check_lib_save_LIBS
11510 fi
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11512 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11513 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11514 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11515 else
11516 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11517 if test "x$ac_cv_func_dlopen" = xyes; then :
11518 lt_cv_dlopen="dlopen"
11519 else
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11521 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11522 if ${ac_cv_lib_dl_dlopen+:} false; then :
11523 $as_echo_n "(cached) " >&6
11524 else
11525 ac_check_lib_save_LIBS=$LIBS
11526 LIBS="-ldl $LIBS"
11527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11528 /* end confdefs.h. */
11529
11530 /* Override any GCC internal prototype to avoid an error.
11531 Use char because int might match the return type of a GCC
11532 builtin and then its argument prototype would still apply. */
11533 #ifdef __cplusplus
11534 extern "C"
11535 #endif
11536 char dlopen ();
11537 int
11538 main ()
11539 {
11540 return dlopen ();
11541 ;
11542 return 0;
11543 }
11544 _ACEOF
11545 if ac_fn_c_try_link "$LINENO"; then :
11546 ac_cv_lib_dl_dlopen=yes
11547 else
11548 ac_cv_lib_dl_dlopen=no
11549 fi
11550 rm -f core conftest.err conftest.$ac_objext \
11551 conftest$ac_exeext conftest.$ac_ext
11552 LIBS=$ac_check_lib_save_LIBS
11553 fi
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11555 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11556 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11557 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11558 else
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11560 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11561 if ${ac_cv_lib_svld_dlopen+:} false; then :
11562 $as_echo_n "(cached) " >&6
11563 else
11564 ac_check_lib_save_LIBS=$LIBS
11565 LIBS="-lsvld $LIBS"
11566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11567 /* end confdefs.h. */
11568
11569 /* Override any GCC internal prototype to avoid an error.
11570 Use char because int might match the return type of a GCC
11571 builtin and then its argument prototype would still apply. */
11572 #ifdef __cplusplus
11573 extern "C"
11574 #endif
11575 char dlopen ();
11576 int
11577 main ()
11578 {
11579 return dlopen ();
11580 ;
11581 return 0;
11582 }
11583 _ACEOF
11584 if ac_fn_c_try_link "$LINENO"; then :
11585 ac_cv_lib_svld_dlopen=yes
11586 else
11587 ac_cv_lib_svld_dlopen=no
11588 fi
11589 rm -f core conftest.err conftest.$ac_objext \
11590 conftest$ac_exeext conftest.$ac_ext
11591 LIBS=$ac_check_lib_save_LIBS
11592 fi
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11594 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11595 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11596 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11597 else
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11599 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11600 if ${ac_cv_lib_dld_dld_link+:} false; then :
11601 $as_echo_n "(cached) " >&6
11602 else
11603 ac_check_lib_save_LIBS=$LIBS
11604 LIBS="-ldld $LIBS"
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11607
11608 /* Override any GCC internal prototype to avoid an error.
11609 Use char because int might match the return type of a GCC
11610 builtin and then its argument prototype would still apply. */
11611 #ifdef __cplusplus
11612 extern "C"
11613 #endif
11614 char dld_link ();
11615 int
11616 main ()
11617 {
11618 return dld_link ();
11619 ;
11620 return 0;
11621 }
11622 _ACEOF
11623 if ac_fn_c_try_link "$LINENO"; then :
11624 ac_cv_lib_dld_dld_link=yes
11625 else
11626 ac_cv_lib_dld_dld_link=no
11627 fi
11628 rm -f core conftest.err conftest.$ac_objext \
11629 conftest$ac_exeext conftest.$ac_ext
11630 LIBS=$ac_check_lib_save_LIBS
11631 fi
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11633 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11634 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11635 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11636 fi
11637
11638
11639 fi
11640
11641
11642 fi
11643
11644
11645 fi
11646
11647
11648 fi
11649
11650
11651 fi
11652
11653 ;;
11654 esac
11655
11656 if test "x$lt_cv_dlopen" != xno; then
11657 enable_dlopen=yes
11658 else
11659 enable_dlopen=no
11660 fi
11661
11662 case $lt_cv_dlopen in
11663 dlopen)
11664 save_CPPFLAGS="$CPPFLAGS"
11665 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11666
11667 save_LDFLAGS="$LDFLAGS"
11668 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11669
11670 save_LIBS="$LIBS"
11671 LIBS="$lt_cv_dlopen_libs $LIBS"
11672
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11674 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11675 if ${lt_cv_dlopen_self+:} false; then :
11676 $as_echo_n "(cached) " >&6
11677 else
11678 if test "$cross_compiling" = yes; then :
11679 lt_cv_dlopen_self=cross
11680 else
11681 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11682 lt_status=$lt_dlunknown
11683 cat > conftest.$ac_ext <<_LT_EOF
11684 #line 11684 "configure"
11685 #include "confdefs.h"
11686
11687 #if HAVE_DLFCN_H
11688 #include <dlfcn.h>
11689 #endif
11690
11691 #include <stdio.h>
11692
11693 #ifdef RTLD_GLOBAL
11694 # define LT_DLGLOBAL RTLD_GLOBAL
11695 #else
11696 # ifdef DL_GLOBAL
11697 # define LT_DLGLOBAL DL_GLOBAL
11698 # else
11699 # define LT_DLGLOBAL 0
11700 # endif
11701 #endif
11702
11703 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11704 find out it does not work in some platform. */
11705 #ifndef LT_DLLAZY_OR_NOW
11706 # ifdef RTLD_LAZY
11707 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11708 # else
11709 # ifdef DL_LAZY
11710 # define LT_DLLAZY_OR_NOW DL_LAZY
11711 # else
11712 # ifdef RTLD_NOW
11713 # define LT_DLLAZY_OR_NOW RTLD_NOW
11714 # else
11715 # ifdef DL_NOW
11716 # define LT_DLLAZY_OR_NOW DL_NOW
11717 # else
11718 # define LT_DLLAZY_OR_NOW 0
11719 # endif
11720 # endif
11721 # endif
11722 # endif
11723 #endif
11724
11725 /* When -fvisbility=hidden is used, assume the code has been annotated
11726 correspondingly for the symbols needed. */
11727 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11728 void fnord () __attribute__((visibility("default")));
11729 #endif
11730
11731 void fnord () { int i=42; }
11732 int main ()
11733 {
11734 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11735 int status = $lt_dlunknown;
11736
11737 if (self)
11738 {
11739 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11740 else
11741 {
11742 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11743 else puts (dlerror ());
11744 }
11745 /* dlclose (self); */
11746 }
11747 else
11748 puts (dlerror ());
11749
11750 return status;
11751 }
11752 _LT_EOF
11753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11754 (eval $ac_link) 2>&5
11755 ac_status=$?
11756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11757 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11758 (./conftest; exit; ) >&5 2>/dev/null
11759 lt_status=$?
11760 case x$lt_status in
11761 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11762 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11763 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11764 esac
11765 else :
11766 # compilation failed
11767 lt_cv_dlopen_self=no
11768 fi
11769 fi
11770 rm -fr conftest*
11771
11772
11773 fi
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11775 $as_echo "$lt_cv_dlopen_self" >&6; }
11776
11777 if test "x$lt_cv_dlopen_self" = xyes; then
11778 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11780 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11781 if ${lt_cv_dlopen_self_static+:} false; then :
11782 $as_echo_n "(cached) " >&6
11783 else
11784 if test "$cross_compiling" = yes; then :
11785 lt_cv_dlopen_self_static=cross
11786 else
11787 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11788 lt_status=$lt_dlunknown
11789 cat > conftest.$ac_ext <<_LT_EOF
11790 #line 11790 "configure"
11791 #include "confdefs.h"
11792
11793 #if HAVE_DLFCN_H
11794 #include <dlfcn.h>
11795 #endif
11796
11797 #include <stdio.h>
11798
11799 #ifdef RTLD_GLOBAL
11800 # define LT_DLGLOBAL RTLD_GLOBAL
11801 #else
11802 # ifdef DL_GLOBAL
11803 # define LT_DLGLOBAL DL_GLOBAL
11804 # else
11805 # define LT_DLGLOBAL 0
11806 # endif
11807 #endif
11808
11809 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11810 find out it does not work in some platform. */
11811 #ifndef LT_DLLAZY_OR_NOW
11812 # ifdef RTLD_LAZY
11813 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11814 # else
11815 # ifdef DL_LAZY
11816 # define LT_DLLAZY_OR_NOW DL_LAZY
11817 # else
11818 # ifdef RTLD_NOW
11819 # define LT_DLLAZY_OR_NOW RTLD_NOW
11820 # else
11821 # ifdef DL_NOW
11822 # define LT_DLLAZY_OR_NOW DL_NOW
11823 # else
11824 # define LT_DLLAZY_OR_NOW 0
11825 # endif
11826 # endif
11827 # endif
11828 # endif
11829 #endif
11830
11831 /* When -fvisbility=hidden is used, assume the code has been annotated
11832 correspondingly for the symbols needed. */
11833 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11834 void fnord () __attribute__((visibility("default")));
11835 #endif
11836
11837 void fnord () { int i=42; }
11838 int main ()
11839 {
11840 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11841 int status = $lt_dlunknown;
11842
11843 if (self)
11844 {
11845 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11846 else
11847 {
11848 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11849 else puts (dlerror ());
11850 }
11851 /* dlclose (self); */
11852 }
11853 else
11854 puts (dlerror ());
11855
11856 return status;
11857 }
11858 _LT_EOF
11859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11860 (eval $ac_link) 2>&5
11861 ac_status=$?
11862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11863 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11864 (./conftest; exit; ) >&5 2>/dev/null
11865 lt_status=$?
11866 case x$lt_status in
11867 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11868 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11869 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11870 esac
11871 else :
11872 # compilation failed
11873 lt_cv_dlopen_self_static=no
11874 fi
11875 fi
11876 rm -fr conftest*
11877
11878
11879 fi
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11881 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11882 fi
11883
11884 CPPFLAGS="$save_CPPFLAGS"
11885 LDFLAGS="$save_LDFLAGS"
11886 LIBS="$save_LIBS"
11887 ;;
11888 esac
11889
11890 case $lt_cv_dlopen_self in
11891 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11892 *) enable_dlopen_self=unknown ;;
11893 esac
11894
11895 case $lt_cv_dlopen_self_static in
11896 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11897 *) enable_dlopen_self_static=unknown ;;
11898 esac
11899 fi
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917 striplib=
11918 old_striplib=
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11920 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11921 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11922 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11923 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11925 $as_echo "yes" >&6; }
11926 else
11927 # FIXME - insert some real tests, host_os isn't really good enough
11928 case $host_os in
11929 darwin*)
11930 if test -n "$STRIP" ; then
11931 striplib="$STRIP -x"
11932 old_striplib="$STRIP -S"
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11934 $as_echo "yes" >&6; }
11935 else
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937 $as_echo "no" >&6; }
11938 fi
11939 ;;
11940 *)
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942 $as_echo "no" >&6; }
11943 ;;
11944 esac
11945 fi
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958 # Report which library types will actually be built
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11960 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11962 $as_echo "$can_build_shared" >&6; }
11963
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11965 $as_echo_n "checking whether to build shared libraries... " >&6; }
11966 test "$can_build_shared" = "no" && enable_shared=no
11967
11968 # On AIX, shared libraries and static libraries use the same namespace, and
11969 # are all built from PIC.
11970 case $host_os in
11971 aix3*)
11972 test "$enable_shared" = yes && enable_static=no
11973 if test -n "$RANLIB"; then
11974 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11975 postinstall_cmds='$RANLIB $lib'
11976 fi
11977 ;;
11978
11979 aix[4-9]*)
11980 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11981 test "$enable_shared" = yes && enable_static=no
11982 fi
11983 ;;
11984 esac
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11986 $as_echo "$enable_shared" >&6; }
11987
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11989 $as_echo_n "checking whether to build static libraries... " >&6; }
11990 # Make sure either enable_shared or enable_static is yes.
11991 test "$enable_shared" = yes || enable_static=yes
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11993 $as_echo "$enable_static" >&6; }
11994
11995
11996
11997
11998 fi
11999 ac_ext=c
12000 ac_cpp='$CPP $CPPFLAGS'
12001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12004
12005 CC="$lt_save_CC"
12006
12007 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12008 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12009 (test "X$CXX" != "Xg++"))) ; then
12010 ac_ext=cpp
12011 ac_cpp='$CXXCPP $CPPFLAGS'
12012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12016 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12017 if test -z "$CXXCPP"; then
12018 if ${ac_cv_prog_CXXCPP+:} false; then :
12019 $as_echo_n "(cached) " >&6
12020 else
12021 # Double quotes because CXXCPP needs to be expanded
12022 for CXXCPP in "$CXX -E" "/lib/cpp"
12023 do
12024 ac_preproc_ok=false
12025 for ac_cxx_preproc_warn_flag in '' yes
12026 do
12027 # Use a header file that comes with gcc, so configuring glibc
12028 # with a fresh cross-compiler works.
12029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12030 # <limits.h> exists even on freestanding compilers.
12031 # On the NeXT, cc -E runs the code through the compiler's parser,
12032 # not just through cpp. "Syntax error" is here to catch this case.
12033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12034 /* end confdefs.h. */
12035 #ifdef __STDC__
12036 # include <limits.h>
12037 #else
12038 # include <assert.h>
12039 #endif
12040 Syntax error
12041 _ACEOF
12042 if ac_fn_cxx_try_cpp "$LINENO"; then :
12043
12044 else
12045 # Broken: fails on valid input.
12046 continue
12047 fi
12048 rm -f conftest.err conftest.i conftest.$ac_ext
12049
12050 # OK, works on sane cases. Now check whether nonexistent headers
12051 # can be detected and how.
12052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12053 /* end confdefs.h. */
12054 #include <ac_nonexistent.h>
12055 _ACEOF
12056 if ac_fn_cxx_try_cpp "$LINENO"; then :
12057 # Broken: success on invalid input.
12058 continue
12059 else
12060 # Passes both tests.
12061 ac_preproc_ok=:
12062 break
12063 fi
12064 rm -f conftest.err conftest.i conftest.$ac_ext
12065
12066 done
12067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12068 rm -f conftest.i conftest.err conftest.$ac_ext
12069 if $ac_preproc_ok; then :
12070 break
12071 fi
12072
12073 done
12074 ac_cv_prog_CXXCPP=$CXXCPP
12075
12076 fi
12077 CXXCPP=$ac_cv_prog_CXXCPP
12078 else
12079 ac_cv_prog_CXXCPP=$CXXCPP
12080 fi
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12082 $as_echo "$CXXCPP" >&6; }
12083 ac_preproc_ok=false
12084 for ac_cxx_preproc_warn_flag in '' yes
12085 do
12086 # Use a header file that comes with gcc, so configuring glibc
12087 # with a fresh cross-compiler works.
12088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12089 # <limits.h> exists even on freestanding compilers.
12090 # On the NeXT, cc -E runs the code through the compiler's parser,
12091 # not just through cpp. "Syntax error" is here to catch this case.
12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h. */
12094 #ifdef __STDC__
12095 # include <limits.h>
12096 #else
12097 # include <assert.h>
12098 #endif
12099 Syntax error
12100 _ACEOF
12101 if ac_fn_cxx_try_cpp "$LINENO"; then :
12102
12103 else
12104 # Broken: fails on valid input.
12105 continue
12106 fi
12107 rm -f conftest.err conftest.i conftest.$ac_ext
12108
12109 # OK, works on sane cases. Now check whether nonexistent headers
12110 # can be detected and how.
12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112 /* end confdefs.h. */
12113 #include <ac_nonexistent.h>
12114 _ACEOF
12115 if ac_fn_cxx_try_cpp "$LINENO"; then :
12116 # Broken: success on invalid input.
12117 continue
12118 else
12119 # Passes both tests.
12120 ac_preproc_ok=:
12121 break
12122 fi
12123 rm -f conftest.err conftest.i conftest.$ac_ext
12124
12125 done
12126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12127 rm -f conftest.i conftest.err conftest.$ac_ext
12128 if $ac_preproc_ok; then :
12129
12130 else
12131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12133 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12134 See \`config.log' for more details" "$LINENO" 5; }
12135 fi
12136
12137 ac_ext=c
12138 ac_cpp='$CPP $CPPFLAGS'
12139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12142
12143 else
12144 _lt_caught_CXX_error=yes
12145 fi
12146
12147 ac_ext=cpp
12148 ac_cpp='$CXXCPP $CPPFLAGS'
12149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12152
12153 archive_cmds_need_lc_CXX=no
12154 allow_undefined_flag_CXX=
12155 always_export_symbols_CXX=no
12156 archive_expsym_cmds_CXX=
12157 compiler_needs_object_CXX=no
12158 export_dynamic_flag_spec_CXX=
12159 hardcode_direct_CXX=no
12160 hardcode_direct_absolute_CXX=no
12161 hardcode_libdir_flag_spec_CXX=
12162 hardcode_libdir_flag_spec_ld_CXX=
12163 hardcode_libdir_separator_CXX=
12164 hardcode_minus_L_CXX=no
12165 hardcode_shlibpath_var_CXX=unsupported
12166 hardcode_automatic_CXX=no
12167 inherit_rpath_CXX=no
12168 module_cmds_CXX=
12169 module_expsym_cmds_CXX=
12170 link_all_deplibs_CXX=unknown
12171 old_archive_cmds_CXX=$old_archive_cmds
12172 reload_flag_CXX=$reload_flag
12173 reload_cmds_CXX=$reload_cmds
12174 no_undefined_flag_CXX=
12175 whole_archive_flag_spec_CXX=
12176 enable_shared_with_static_runtimes_CXX=no
12177
12178 # Source file extension for C++ test sources.
12179 ac_ext=cpp
12180
12181 # Object file extension for compiled C++ test sources.
12182 objext=o
12183 objext_CXX=$objext
12184
12185 # No sense in running all these tests if we already determined that
12186 # the CXX compiler isn't working. Some variables (like enable_shared)
12187 # are currently assumed to apply to all compilers on this platform,
12188 # and will be corrupted by setting them based on a non-working compiler.
12189 if test "$_lt_caught_CXX_error" != yes; then
12190 # Code to be used in simple compile tests
12191 lt_simple_compile_test_code="int some_variable = 0;"
12192
12193 # Code to be used in simple link tests
12194 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12195
12196 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12197
12198
12199
12200
12201
12202
12203 # If no C compiler was specified, use CC.
12204 LTCC=${LTCC-"$CC"}
12205
12206 # If no C compiler flags were specified, use CFLAGS.
12207 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12208
12209 # Allow CC to be a program name with arguments.
12210 compiler=$CC
12211
12212
12213 # save warnings/boilerplate of simple test code
12214 ac_outfile=conftest.$ac_objext
12215 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12216 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12217 _lt_compiler_boilerplate=`cat conftest.err`
12218 $RM conftest*
12219
12220 ac_outfile=conftest.$ac_objext
12221 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12222 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12223 _lt_linker_boilerplate=`cat conftest.err`
12224 $RM -r conftest*
12225
12226
12227 # Allow CC to be a program name with arguments.
12228 lt_save_CC=$CC
12229 lt_save_LD=$LD
12230 lt_save_GCC=$GCC
12231 GCC=$GXX
12232 lt_save_with_gnu_ld=$with_gnu_ld
12233 lt_save_path_LD=$lt_cv_path_LD
12234 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12235 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12236 else
12237 $as_unset lt_cv_prog_gnu_ld
12238 fi
12239 if test -n "${lt_cv_path_LDCXX+set}"; then
12240 lt_cv_path_LD=$lt_cv_path_LDCXX
12241 else
12242 $as_unset lt_cv_path_LD
12243 fi
12244 test -z "${LDCXX+set}" || LD=$LDCXX
12245 CC=${CXX-"c++"}
12246 compiler=$CC
12247 compiler_CXX=$CC
12248 for cc_temp in $compiler""; do
12249 case $cc_temp in
12250 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12251 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12252 \-*) ;;
12253 *) break;;
12254 esac
12255 done
12256 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12257
12258
12259 if test -n "$compiler"; then
12260 # We don't want -fno-exception when compiling C++ code, so set the
12261 # no_builtin_flag separately
12262 if test "$GXX" = yes; then
12263 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12264 else
12265 lt_prog_compiler_no_builtin_flag_CXX=
12266 fi
12267
12268 if test "$GXX" = yes; then
12269 # Set up default GNU C++ configuration
12270
12271
12272
12273 # Check whether --with-gnu-ld was given.
12274 if test "${with_gnu_ld+set}" = set; then :
12275 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12276 else
12277 with_gnu_ld=no
12278 fi
12279
12280 ac_prog=ld
12281 if test "$GCC" = yes; then
12282 # Check if gcc -print-prog-name=ld gives a path.
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12284 $as_echo_n "checking for ld used by $CC... " >&6; }
12285 case $host in
12286 *-*-mingw*)
12287 # gcc leaves a trailing carriage return which upsets mingw
12288 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12289 *)
12290 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12291 esac
12292 case $ac_prog in
12293 # Accept absolute paths.
12294 [\\/]* | ?:[\\/]*)
12295 re_direlt='/[^/][^/]*/\.\./'
12296 # Canonicalize the pathname of ld
12297 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12298 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12299 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12300 done
12301 test -z "$LD" && LD="$ac_prog"
12302 ;;
12303 "")
12304 # If it fails, then pretend we aren't using GCC.
12305 ac_prog=ld
12306 ;;
12307 *)
12308 # If it is relative, then search for the first ld in PATH.
12309 with_gnu_ld=unknown
12310 ;;
12311 esac
12312 elif test "$with_gnu_ld" = yes; then
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12314 $as_echo_n "checking for GNU ld... " >&6; }
12315 else
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12317 $as_echo_n "checking for non-GNU ld... " >&6; }
12318 fi
12319 if ${lt_cv_path_LD+:} false; then :
12320 $as_echo_n "(cached) " >&6
12321 else
12322 if test -z "$LD"; then
12323 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12324 for ac_dir in $PATH; do
12325 IFS="$lt_save_ifs"
12326 test -z "$ac_dir" && ac_dir=.
12327 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12328 lt_cv_path_LD="$ac_dir/$ac_prog"
12329 # Check to see if the program is GNU ld. I'd rather use --version,
12330 # but apparently some variants of GNU ld only accept -v.
12331 # Break only if it was the GNU/non-GNU ld that we prefer.
12332 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12333 *GNU* | *'with BFD'*)
12334 test "$with_gnu_ld" != no && break
12335 ;;
12336 *)
12337 test "$with_gnu_ld" != yes && break
12338 ;;
12339 esac
12340 fi
12341 done
12342 IFS="$lt_save_ifs"
12343 else
12344 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12345 fi
12346 fi
12347
12348 LD="$lt_cv_path_LD"
12349 if test -n "$LD"; then
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12351 $as_echo "$LD" >&6; }
12352 else
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354 $as_echo "no" >&6; }
12355 fi
12356 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12358 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12359 if ${lt_cv_prog_gnu_ld+:} false; then :
12360 $as_echo_n "(cached) " >&6
12361 else
12362 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12363 case `$LD -v 2>&1 </dev/null` in
12364 *GNU* | *'with BFD'*)
12365 lt_cv_prog_gnu_ld=yes
12366 ;;
12367 *)
12368 lt_cv_prog_gnu_ld=no
12369 ;;
12370 esac
12371 fi
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12373 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12374 with_gnu_ld=$lt_cv_prog_gnu_ld
12375
12376
12377
12378
12379
12380
12381
12382 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12383 # archiving commands below assume that GNU ld is being used.
12384 if test "$with_gnu_ld" = yes; then
12385 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12386 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'
12387
12388 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12389 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12390
12391 # If archive_cmds runs LD, not CC, wlarc should be empty
12392 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12393 # investigate it a little bit more. (MM)
12394 wlarc='${wl}'
12395
12396 # ancient GNU ld didn't support --whole-archive et. al.
12397 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12398 $GREP 'no-whole-archive' > /dev/null; then
12399 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12400 else
12401 whole_archive_flag_spec_CXX=
12402 fi
12403 else
12404 with_gnu_ld=no
12405 wlarc=
12406
12407 # A generic and very simple default shared library creation
12408 # command for GNU C++ for the case where it uses the native
12409 # linker, instead of GNU ld. If possible, this setting should
12410 # overridden to take advantage of the native linker features on
12411 # the platform it is being used on.
12412 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12413 fi
12414
12415 # Commands to make compiler produce verbose output that lists
12416 # what "hidden" libraries, object files and flags are used when
12417 # linking a shared library.
12418 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12419
12420 else
12421 GXX=no
12422 with_gnu_ld=no
12423 wlarc=
12424 fi
12425
12426 # PORTME: fill in a description of your system's C++ link characteristics
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12428 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12429 ld_shlibs_CXX=yes
12430 case $host_os in
12431 aix3*)
12432 # FIXME: insert proper C++ library support
12433 ld_shlibs_CXX=no
12434 ;;
12435 aix[4-9]*)
12436 if test "$host_cpu" = ia64; then
12437 # On IA64, the linker does run time linking by default, so we don't
12438 # have to do anything special.
12439 aix_use_runtimelinking=no
12440 exp_sym_flag='-Bexport'
12441 no_entry_flag=""
12442 else
12443 aix_use_runtimelinking=no
12444
12445 # Test if we are trying to use run time linking or normal
12446 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12447 # need to do runtime linking.
12448 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12449 for ld_flag in $LDFLAGS; do
12450 case $ld_flag in
12451 *-brtl*)
12452 aix_use_runtimelinking=yes
12453 break
12454 ;;
12455 esac
12456 done
12457 ;;
12458 esac
12459
12460 exp_sym_flag='-bexport'
12461 no_entry_flag='-bnoentry'
12462 fi
12463
12464 # When large executables or shared objects are built, AIX ld can
12465 # have problems creating the table of contents. If linking a library
12466 # or program results in "error TOC overflow" add -mminimal-toc to
12467 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12468 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12469
12470 archive_cmds_CXX=''
12471 hardcode_direct_CXX=yes
12472 hardcode_direct_absolute_CXX=yes
12473 hardcode_libdir_separator_CXX=':'
12474 link_all_deplibs_CXX=yes
12475 file_list_spec_CXX='${wl}-f,'
12476
12477 if test "$GXX" = yes; then
12478 case $host_os in aix4.[012]|aix4.[012].*)
12479 # We only want to do this on AIX 4.2 and lower, the check
12480 # below for broken collect2 doesn't work under 4.3+
12481 collect2name=`${CC} -print-prog-name=collect2`
12482 if test -f "$collect2name" &&
12483 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12484 then
12485 # We have reworked collect2
12486 :
12487 else
12488 # We have old collect2
12489 hardcode_direct_CXX=unsupported
12490 # It fails to find uninstalled libraries when the uninstalled
12491 # path is not listed in the libpath. Setting hardcode_minus_L
12492 # to unsupported forces relinking
12493 hardcode_minus_L_CXX=yes
12494 hardcode_libdir_flag_spec_CXX='-L$libdir'
12495 hardcode_libdir_separator_CXX=
12496 fi
12497 esac
12498 shared_flag='-shared'
12499 if test "$aix_use_runtimelinking" = yes; then
12500 shared_flag="$shared_flag "'${wl}-G'
12501 fi
12502 else
12503 # not using gcc
12504 if test "$host_cpu" = ia64; then
12505 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12506 # chokes on -Wl,-G. The following line is correct:
12507 shared_flag='-G'
12508 else
12509 if test "$aix_use_runtimelinking" = yes; then
12510 shared_flag='${wl}-G'
12511 else
12512 shared_flag='${wl}-bM:SRE'
12513 fi
12514 fi
12515 fi
12516
12517 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12518 # It seems that -bexpall does not export symbols beginning with
12519 # underscore (_), so it is better to generate a list of symbols to
12520 # export.
12521 always_export_symbols_CXX=yes
12522 if test "$aix_use_runtimelinking" = yes; then
12523 # Warning - without using the other runtime loading flags (-brtl),
12524 # -berok will link without error, but may produce a broken library.
12525 allow_undefined_flag_CXX='-berok'
12526 # Determine the default libpath from the value encoded in an empty
12527 # executable.
12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12530
12531 int
12532 main ()
12533 {
12534
12535 ;
12536 return 0;
12537 }
12538 _ACEOF
12539 if ac_fn_cxx_try_link "$LINENO"; then :
12540
12541 lt_aix_libpath_sed='
12542 /Import File Strings/,/^$/ {
12543 /^0/ {
12544 s/^0 *\(.*\)$/\1/
12545 p
12546 }
12547 }'
12548 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12549 # Check for a 64-bit object if we didn't find anything.
12550 if test -z "$aix_libpath"; then
12551 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12552 fi
12553 fi
12554 rm -f core conftest.err conftest.$ac_objext \
12555 conftest$ac_exeext conftest.$ac_ext
12556 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12557
12558 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12559
12560 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"
12561 else
12562 if test "$host_cpu" = ia64; then
12563 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12564 allow_undefined_flag_CXX="-z nodefs"
12565 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"
12566 else
12567 # Determine the default libpath from the value encoded in an
12568 # empty executable.
12569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570 /* end confdefs.h. */
12571
12572 int
12573 main ()
12574 {
12575
12576 ;
12577 return 0;
12578 }
12579 _ACEOF
12580 if ac_fn_cxx_try_link "$LINENO"; then :
12581
12582 lt_aix_libpath_sed='
12583 /Import File Strings/,/^$/ {
12584 /^0/ {
12585 s/^0 *\(.*\)$/\1/
12586 p
12587 }
12588 }'
12589 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12590 # Check for a 64-bit object if we didn't find anything.
12591 if test -z "$aix_libpath"; then
12592 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12593 fi
12594 fi
12595 rm -f core conftest.err conftest.$ac_objext \
12596 conftest$ac_exeext conftest.$ac_ext
12597 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12598
12599 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12600 # Warning - without using the other run time loading flags,
12601 # -berok will link without error, but may produce a broken library.
12602 no_undefined_flag_CXX=' ${wl}-bernotok'
12603 allow_undefined_flag_CXX=' ${wl}-berok'
12604 if test "$with_gnu_ld" = yes; then
12605 # We only use this code for GNU lds that support --whole-archive.
12606 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12607 else
12608 # Exported symbols can be pulled into shared objects from archives
12609 whole_archive_flag_spec_CXX='$convenience'
12610 fi
12611 archive_cmds_need_lc_CXX=yes
12612 # This is similar to how AIX traditionally builds its shared
12613 # libraries.
12614 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'
12615 fi
12616 fi
12617 ;;
12618
12619 beos*)
12620 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12621 allow_undefined_flag_CXX=unsupported
12622 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12623 # support --undefined. This deserves some investigation. FIXME
12624 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12625 else
12626 ld_shlibs_CXX=no
12627 fi
12628 ;;
12629
12630 chorus*)
12631 case $cc_basename in
12632 *)
12633 # FIXME: insert proper C++ library support
12634 ld_shlibs_CXX=no
12635 ;;
12636 esac
12637 ;;
12638
12639 cygwin* | mingw* | pw32* | cegcc*)
12640 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12641 # as there is no search path for DLLs.
12642 hardcode_libdir_flag_spec_CXX='-L$libdir'
12643 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12644 allow_undefined_flag_CXX=unsupported
12645 always_export_symbols_CXX=no
12646 enable_shared_with_static_runtimes_CXX=yes
12647
12648 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12649 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'
12650 # If the export-symbols file already is a .def file (1st line
12651 # is EXPORTS), use it as is; otherwise, prepend...
12652 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12653 cp $export_symbols $output_objdir/$soname.def;
12654 else
12655 echo EXPORTS > $output_objdir/$soname.def;
12656 cat $export_symbols >> $output_objdir/$soname.def;
12657 fi~
12658 $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'
12659 else
12660 ld_shlibs_CXX=no
12661 fi
12662 ;;
12663 darwin* | rhapsody*)
12664
12665
12666 archive_cmds_need_lc_CXX=no
12667 hardcode_direct_CXX=no
12668 hardcode_automatic_CXX=yes
12669 hardcode_shlibpath_var_CXX=unsupported
12670 if test "$lt_cv_ld_force_load" = "yes"; then
12671 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\"`'
12672 else
12673 whole_archive_flag_spec_CXX=''
12674 fi
12675 link_all_deplibs_CXX=yes
12676 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12677 case $cc_basename in
12678 ifort*) _lt_dar_can_shared=yes ;;
12679 *) _lt_dar_can_shared=$GCC ;;
12680 esac
12681 if test "$_lt_dar_can_shared" = "yes"; then
12682 output_verbose_link_cmd=func_echo_all
12683 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}"
12684 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12685 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}"
12686 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}"
12687 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12688 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}"
12689 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}"
12690 fi
12691
12692 else
12693 ld_shlibs_CXX=no
12694 fi
12695
12696 ;;
12697
12698 dgux*)
12699 case $cc_basename in
12700 ec++*)
12701 # FIXME: insert proper C++ library support
12702 ld_shlibs_CXX=no
12703 ;;
12704 ghcx*)
12705 # Green Hills C++ Compiler
12706 # FIXME: insert proper C++ library support
12707 ld_shlibs_CXX=no
12708 ;;
12709 *)
12710 # FIXME: insert proper C++ library support
12711 ld_shlibs_CXX=no
12712 ;;
12713 esac
12714 ;;
12715
12716 freebsd2.*)
12717 # C++ shared libraries reported to be fairly broken before
12718 # switch to ELF
12719 ld_shlibs_CXX=no
12720 ;;
12721
12722 freebsd-elf*)
12723 archive_cmds_need_lc_CXX=no
12724 ;;
12725
12726 freebsd* | dragonfly*)
12727 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12728 # conventions
12729 ld_shlibs_CXX=yes
12730 ;;
12731
12732 gnu*)
12733 ;;
12734
12735 haiku*)
12736 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12737 link_all_deplibs_CXX=yes
12738 ;;
12739
12740 hpux9*)
12741 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12742 hardcode_libdir_separator_CXX=:
12743 export_dynamic_flag_spec_CXX='${wl}-E'
12744 hardcode_direct_CXX=yes
12745 hardcode_minus_L_CXX=yes # Not in the search PATH,
12746 # but as the default
12747 # location of the library.
12748
12749 case $cc_basename in
12750 CC*)
12751 # FIXME: insert proper C++ library support
12752 ld_shlibs_CXX=no
12753 ;;
12754 aCC*)
12755 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'
12756 # Commands to make compiler produce verbose output that lists
12757 # what "hidden" libraries, object files and flags are used when
12758 # linking a shared library.
12759 #
12760 # There doesn't appear to be a way to prevent this compiler from
12761 # explicitly linking system object files so we need to strip them
12762 # from the output so that they don't get included in the library
12763 # dependencies.
12764 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"'
12765 ;;
12766 *)
12767 if test "$GXX" = yes; then
12768 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'
12769 else
12770 # FIXME: insert proper C++ library support
12771 ld_shlibs_CXX=no
12772 fi
12773 ;;
12774 esac
12775 ;;
12776
12777 hpux10*|hpux11*)
12778 if test $with_gnu_ld = no; then
12779 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12780 hardcode_libdir_separator_CXX=:
12781
12782 case $host_cpu in
12783 hppa*64*|ia64*)
12784 ;;
12785 *)
12786 export_dynamic_flag_spec_CXX='${wl}-E'
12787 ;;
12788 esac
12789 fi
12790 case $host_cpu in
12791 hppa*64*|ia64*)
12792 hardcode_direct_CXX=no
12793 hardcode_shlibpath_var_CXX=no
12794 ;;
12795 *)
12796 hardcode_direct_CXX=yes
12797 hardcode_direct_absolute_CXX=yes
12798 hardcode_minus_L_CXX=yes # Not in the search PATH,
12799 # but as the default
12800 # location of the library.
12801 ;;
12802 esac
12803
12804 case $cc_basename in
12805 CC*)
12806 # FIXME: insert proper C++ library support
12807 ld_shlibs_CXX=no
12808 ;;
12809 aCC*)
12810 case $host_cpu in
12811 hppa*64*)
12812 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12813 ;;
12814 ia64*)
12815 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12816 ;;
12817 *)
12818 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12819 ;;
12820 esac
12821 # Commands to make compiler produce verbose output that lists
12822 # what "hidden" libraries, object files and flags are used when
12823 # linking a shared library.
12824 #
12825 # There doesn't appear to be a way to prevent this compiler from
12826 # explicitly linking system object files so we need to strip them
12827 # from the output so that they don't get included in the library
12828 # dependencies.
12829 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"'
12830 ;;
12831 *)
12832 if test "$GXX" = yes; then
12833 if test $with_gnu_ld = no; then
12834 case $host_cpu in
12835 hppa*64*)
12836 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12837 ;;
12838 ia64*)
12839 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12840 ;;
12841 *)
12842 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'
12843 ;;
12844 esac
12845 fi
12846 else
12847 # FIXME: insert proper C++ library support
12848 ld_shlibs_CXX=no
12849 fi
12850 ;;
12851 esac
12852 ;;
12853
12854 interix[3-9]*)
12855 hardcode_direct_CXX=no
12856 hardcode_shlibpath_var_CXX=no
12857 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12858 export_dynamic_flag_spec_CXX='${wl}-E'
12859 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12860 # Instead, shared libraries are loaded at an image base (0x10000000 by
12861 # default) and relocated if they conflict, which is a slow very memory
12862 # consuming and fragmenting process. To avoid this, we pick a random,
12863 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12864 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12865 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'
12866 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'
12867 ;;
12868 irix5* | irix6*)
12869 case $cc_basename in
12870 CC*)
12871 # SGI C++
12872 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'
12873
12874 # Archives containing C++ object files must be created using
12875 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12876 # necessary to make sure instantiated templates are included
12877 # in the archive.
12878 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12879 ;;
12880 *)
12881 if test "$GXX" = yes; then
12882 if test "$with_gnu_ld" = no; then
12883 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'
12884 else
12885 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'
12886 fi
12887 fi
12888 link_all_deplibs_CXX=yes
12889 ;;
12890 esac
12891 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12892 hardcode_libdir_separator_CXX=:
12893 inherit_rpath_CXX=yes
12894 ;;
12895
12896 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12897 case $cc_basename in
12898 KCC*)
12899 # Kuck and Associates, Inc. (KAI) C++ Compiler
12900
12901 # KCC will only create a shared library if the output file
12902 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12903 # to its proper name (with version) after linking.
12904 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'
12905 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'
12906 # Commands to make compiler produce verbose output that lists
12907 # what "hidden" libraries, object files and flags are used when
12908 # linking a shared library.
12909 #
12910 # There doesn't appear to be a way to prevent this compiler from
12911 # explicitly linking system object files so we need to strip them
12912 # from the output so that they don't get included in the library
12913 # dependencies.
12914 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"'
12915
12916 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12917 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12918
12919 # Archives containing C++ object files must be created using
12920 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12921 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12922 ;;
12923 icpc* | ecpc* )
12924 # Intel C++
12925 with_gnu_ld=yes
12926 # version 8.0 and above of icpc choke on multiply defined symbols
12927 # if we add $predep_objects and $postdep_objects, however 7.1 and
12928 # earlier do not add the objects themselves.
12929 case `$CC -V 2>&1` in
12930 *"Version 7."*)
12931 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12932 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'
12933 ;;
12934 *) # Version 8.0 or newer
12935 tmp_idyn=
12936 case $host_cpu in
12937 ia64*) tmp_idyn=' -i_dynamic';;
12938 esac
12939 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12940 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'
12941 ;;
12942 esac
12943 archive_cmds_need_lc_CXX=no
12944 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12945 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12946 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12947 ;;
12948 pgCC* | pgcpp*)
12949 # Portland Group C++ compiler
12950 case `$CC -V` in
12951 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12952 prelink_cmds_CXX='tpldir=Template.dir~
12953 rm -rf $tpldir~
12954 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12955 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12956 old_archive_cmds_CXX='tpldir=Template.dir~
12957 rm -rf $tpldir~
12958 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12959 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12960 $RANLIB $oldlib'
12961 archive_cmds_CXX='tpldir=Template.dir~
12962 rm -rf $tpldir~
12963 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12964 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12965 archive_expsym_cmds_CXX='tpldir=Template.dir~
12966 rm -rf $tpldir~
12967 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12968 $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'
12969 ;;
12970 *) # Version 6 and above use weak symbols
12971 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12972 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'
12973 ;;
12974 esac
12975
12976 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12977 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12978 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'
12979 ;;
12980 cxx*)
12981 # Compaq C++
12982 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12983 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'
12984
12985 runpath_var=LD_RUN_PATH
12986 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12987 hardcode_libdir_separator_CXX=:
12988
12989 # Commands to make compiler produce verbose output that lists
12990 # what "hidden" libraries, object files and flags are used when
12991 # linking a shared library.
12992 #
12993 # There doesn't appear to be a way to prevent this compiler from
12994 # explicitly linking system object files so we need to strip them
12995 # from the output so that they don't get included in the library
12996 # dependencies.
12997 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'
12998 ;;
12999 xl* | mpixl* | bgxl*)
13000 # IBM XL 8.0 on PPC, with GNU ld
13001 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13002 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13003 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13004 if test "x$supports_anon_versioning" = xyes; then
13005 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13006 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13007 echo "local: *; };" >> $output_objdir/$libname.ver~
13008 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13009 fi
13010 ;;
13011 *)
13012 case `$CC -V 2>&1 | sed 5q` in
13013 *Sun\ C*)
13014 # Sun C++ 5.9
13015 no_undefined_flag_CXX=' -zdefs'
13016 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13017 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'
13018 hardcode_libdir_flag_spec_CXX='-R$libdir'
13019 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'
13020 compiler_needs_object_CXX=yes
13021
13022 # Not sure whether something based on
13023 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13024 # would be better.
13025 output_verbose_link_cmd='func_echo_all'
13026
13027 # Archives containing C++ object files must be created using
13028 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13029 # necessary to make sure instantiated templates are included
13030 # in the archive.
13031 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13032 ;;
13033 esac
13034 ;;
13035 esac
13036 ;;
13037
13038 lynxos*)
13039 # FIXME: insert proper C++ library support
13040 ld_shlibs_CXX=no
13041 ;;
13042
13043 m88k*)
13044 # FIXME: insert proper C++ library support
13045 ld_shlibs_CXX=no
13046 ;;
13047
13048 mvs*)
13049 case $cc_basename in
13050 cxx*)
13051 # FIXME: insert proper C++ library support
13052 ld_shlibs_CXX=no
13053 ;;
13054 *)
13055 # FIXME: insert proper C++ library support
13056 ld_shlibs_CXX=no
13057 ;;
13058 esac
13059 ;;
13060
13061 netbsd*)
13062 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13063 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13064 wlarc=
13065 hardcode_libdir_flag_spec_CXX='-R$libdir'
13066 hardcode_direct_CXX=yes
13067 hardcode_shlibpath_var_CXX=no
13068 fi
13069 # Workaround some broken pre-1.5 toolchains
13070 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13071 ;;
13072
13073 *nto* | *qnx*)
13074 ld_shlibs_CXX=yes
13075 ;;
13076
13077 openbsd2*)
13078 # C++ shared libraries are fairly broken
13079 ld_shlibs_CXX=no
13080 ;;
13081
13082 openbsd*)
13083 if test -f /usr/libexec/ld.so; then
13084 hardcode_direct_CXX=yes
13085 hardcode_shlibpath_var_CXX=no
13086 hardcode_direct_absolute_CXX=yes
13087 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13088 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13089 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13090 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13091 export_dynamic_flag_spec_CXX='${wl}-E'
13092 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13093 fi
13094 output_verbose_link_cmd=func_echo_all
13095 else
13096 ld_shlibs_CXX=no
13097 fi
13098 ;;
13099
13100 osf3* | osf4* | osf5*)
13101 case $cc_basename in
13102 KCC*)
13103 # Kuck and Associates, Inc. (KAI) C++ Compiler
13104
13105 # KCC will only create a shared library if the output file
13106 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13107 # to its proper name (with version) after linking.
13108 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'
13109
13110 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13111 hardcode_libdir_separator_CXX=:
13112
13113 # Archives containing C++ object files must be created using
13114 # the KAI C++ compiler.
13115 case $host in
13116 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13117 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13118 esac
13119 ;;
13120 RCC*)
13121 # Rational C++ 2.4.1
13122 # FIXME: insert proper C++ library support
13123 ld_shlibs_CXX=no
13124 ;;
13125 cxx*)
13126 case $host in
13127 osf3*)
13128 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13129 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'
13130 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13131 ;;
13132 *)
13133 allow_undefined_flag_CXX=' -expect_unresolved \*'
13134 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'
13135 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13136 echo "-hidden">> $lib.exp~
13137 $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~
13138 $RM $lib.exp'
13139 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13140 ;;
13141 esac
13142
13143 hardcode_libdir_separator_CXX=:
13144
13145 # Commands to make compiler produce verbose output that lists
13146 # what "hidden" libraries, object files and flags are used when
13147 # linking a shared library.
13148 #
13149 # There doesn't appear to be a way to prevent this compiler from
13150 # explicitly linking system object files so we need to strip them
13151 # from the output so that they don't get included in the library
13152 # dependencies.
13153 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"'
13154 ;;
13155 *)
13156 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13157 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13158 case $host in
13159 osf3*)
13160 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'
13161 ;;
13162 *)
13163 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'
13164 ;;
13165 esac
13166
13167 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13168 hardcode_libdir_separator_CXX=:
13169
13170 # Commands to make compiler produce verbose output that lists
13171 # what "hidden" libraries, object files and flags are used when
13172 # linking a shared library.
13173 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13174
13175 else
13176 # FIXME: insert proper C++ library support
13177 ld_shlibs_CXX=no
13178 fi
13179 ;;
13180 esac
13181 ;;
13182
13183 psos*)
13184 # FIXME: insert proper C++ library support
13185 ld_shlibs_CXX=no
13186 ;;
13187
13188 sunos4*)
13189 case $cc_basename in
13190 CC*)
13191 # Sun C++ 4.x
13192 # FIXME: insert proper C++ library support
13193 ld_shlibs_CXX=no
13194 ;;
13195 lcc*)
13196 # Lucid
13197 # FIXME: insert proper C++ library support
13198 ld_shlibs_CXX=no
13199 ;;
13200 *)
13201 # FIXME: insert proper C++ library support
13202 ld_shlibs_CXX=no
13203 ;;
13204 esac
13205 ;;
13206
13207 solaris*)
13208 case $cc_basename in
13209 CC*)
13210 # Sun C++ 4.2, 5.x and Centerline C++
13211 archive_cmds_need_lc_CXX=yes
13212 no_undefined_flag_CXX=' -zdefs'
13213 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13214 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13215 $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'
13216
13217 hardcode_libdir_flag_spec_CXX='-R$libdir'
13218 hardcode_shlibpath_var_CXX=no
13219 case $host_os in
13220 solaris2.[0-5] | solaris2.[0-5].*) ;;
13221 *)
13222 # The compiler driver will combine and reorder linker options,
13223 # but understands `-z linker_flag'.
13224 # Supported since Solaris 2.6 (maybe 2.5.1?)
13225 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13226 ;;
13227 esac
13228 link_all_deplibs_CXX=yes
13229
13230 output_verbose_link_cmd='func_echo_all'
13231
13232 # Archives containing C++ object files must be created using
13233 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13234 # necessary to make sure instantiated templates are included
13235 # in the archive.
13236 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13237 ;;
13238 gcx*)
13239 # Green Hills C++ Compiler
13240 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13241
13242 # The C++ compiler must be used to create the archive.
13243 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13244 ;;
13245 *)
13246 # GNU C++ compiler with Solaris linker
13247 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13248 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13249 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13250 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13251 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13252 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13253
13254 # Commands to make compiler produce verbose output that lists
13255 # what "hidden" libraries, object files and flags are used when
13256 # linking a shared library.
13257 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13258 else
13259 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13260 # platform.
13261 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13262 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13263 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13264
13265 # Commands to make compiler produce verbose output that lists
13266 # what "hidden" libraries, object files and flags are used when
13267 # linking a shared library.
13268 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13269 fi
13270
13271 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13272 case $host_os in
13273 solaris2.[0-5] | solaris2.[0-5].*) ;;
13274 *)
13275 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13276 ;;
13277 esac
13278 fi
13279 ;;
13280 esac
13281 ;;
13282
13283 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13284 no_undefined_flag_CXX='${wl}-z,text'
13285 archive_cmds_need_lc_CXX=no
13286 hardcode_shlibpath_var_CXX=no
13287 runpath_var='LD_RUN_PATH'
13288
13289 case $cc_basename in
13290 CC*)
13291 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13292 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13293 ;;
13294 *)
13295 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13296 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13297 ;;
13298 esac
13299 ;;
13300
13301 sysv5* | sco3.2v5* | sco5v6*)
13302 # Note: We can NOT use -z defs as we might desire, because we do not
13303 # link with -lc, and that would cause any symbols used from libc to
13304 # always be unresolved, which means just about no library would
13305 # ever link correctly. If we're not using GNU ld we use -z text
13306 # though, which does catch some bad symbols but isn't as heavy-handed
13307 # as -z defs.
13308 no_undefined_flag_CXX='${wl}-z,text'
13309 allow_undefined_flag_CXX='${wl}-z,nodefs'
13310 archive_cmds_need_lc_CXX=no
13311 hardcode_shlibpath_var_CXX=no
13312 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13313 hardcode_libdir_separator_CXX=':'
13314 link_all_deplibs_CXX=yes
13315 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13316 runpath_var='LD_RUN_PATH'
13317
13318 case $cc_basename in
13319 CC*)
13320 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13321 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13322 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13323 '"$old_archive_cmds_CXX"
13324 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13325 '"$reload_cmds_CXX"
13326 ;;
13327 *)
13328 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13329 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13330 ;;
13331 esac
13332 ;;
13333
13334 tandem*)
13335 case $cc_basename in
13336 NCC*)
13337 # NonStop-UX NCC 3.20
13338 # FIXME: insert proper C++ library support
13339 ld_shlibs_CXX=no
13340 ;;
13341 *)
13342 # FIXME: insert proper C++ library support
13343 ld_shlibs_CXX=no
13344 ;;
13345 esac
13346 ;;
13347
13348 vxworks*)
13349 # For VxWorks ports, we assume the use of a GNU linker with
13350 # standard elf conventions.
13351 ld_shlibs_CXX=yes
13352 ;;
13353
13354 *)
13355 # FIXME: insert proper C++ library support
13356 ld_shlibs_CXX=no
13357 ;;
13358 esac
13359
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13361 $as_echo "$ld_shlibs_CXX" >&6; }
13362 test "$ld_shlibs_CXX" = no && can_build_shared=no
13363
13364 GCC_CXX="$GXX"
13365 LD_CXX="$LD"
13366
13367 ## CAVEAT EMPTOR:
13368 ## There is no encapsulation within the following macros, do not change
13369 ## the running order or otherwise move them around unless you know exactly
13370 ## what you are doing...
13371 # Dependencies to place before and after the object being linked:
13372 predep_objects_CXX=
13373 postdep_objects_CXX=
13374 predeps_CXX=
13375 postdeps_CXX=
13376 compiler_lib_search_path_CXX=
13377
13378 cat > conftest.$ac_ext <<_LT_EOF
13379 class Foo
13380 {
13381 public:
13382 Foo (void) { a = 0; }
13383 private:
13384 int a;
13385 };
13386 _LT_EOF
13387
13388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13389 (eval $ac_compile) 2>&5
13390 ac_status=$?
13391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13392 test $ac_status = 0; }; then
13393 # Parse the compiler output and extract the necessary
13394 # objects, libraries and library flags.
13395
13396 # Sentinel used to keep track of whether or not we are before
13397 # the conftest object file.
13398 pre_test_object_deps_done=no
13399
13400 for p in `eval "$output_verbose_link_cmd"`; do
13401 case $p in
13402
13403 -L* | -R* | -l*)
13404 # Some compilers place space between "-{L,R}" and the path.
13405 # Remove the space.
13406 if test $p = "-L" ||
13407 test $p = "-R"; then
13408 prev=$p
13409 continue
13410 else
13411 prev=
13412 fi
13413
13414 if test "$pre_test_object_deps_done" = no; then
13415 case $p in
13416 -L* | -R*)
13417 # Internal compiler library paths should come after those
13418 # provided the user. The postdeps already come after the
13419 # user supplied libs so there is no need to process them.
13420 if test -z "$compiler_lib_search_path_CXX"; then
13421 compiler_lib_search_path_CXX="${prev}${p}"
13422 else
13423 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13424 fi
13425 ;;
13426 # The "-l" case would never come before the object being
13427 # linked, so don't bother handling this case.
13428 esac
13429 else
13430 if test -z "$postdeps_CXX"; then
13431 postdeps_CXX="${prev}${p}"
13432 else
13433 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13434 fi
13435 fi
13436 ;;
13437
13438 *.$objext)
13439 # This assumes that the test object file only shows up
13440 # once in the compiler output.
13441 if test "$p" = "conftest.$objext"; then
13442 pre_test_object_deps_done=yes
13443 continue
13444 fi
13445
13446 if test "$pre_test_object_deps_done" = no; then
13447 if test -z "$predep_objects_CXX"; then
13448 predep_objects_CXX="$p"
13449 else
13450 predep_objects_CXX="$predep_objects_CXX $p"
13451 fi
13452 else
13453 if test -z "$postdep_objects_CXX"; then
13454 postdep_objects_CXX="$p"
13455 else
13456 postdep_objects_CXX="$postdep_objects_CXX $p"
13457 fi
13458 fi
13459 ;;
13460
13461 *) ;; # Ignore the rest.
13462
13463 esac
13464 done
13465
13466 # Clean up.
13467 rm -f a.out a.exe
13468 else
13469 echo "libtool.m4: error: problem compiling CXX test program"
13470 fi
13471
13472 $RM -f confest.$objext
13473
13474 # PORTME: override above test on systems where it is broken
13475 case $host_os in
13476 interix[3-9]*)
13477 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13478 # hack all around it, let's just trust "g++" to DTRT.
13479 predep_objects_CXX=
13480 postdep_objects_CXX=
13481 postdeps_CXX=
13482 ;;
13483
13484 linux*)
13485 case `$CC -V 2>&1 | sed 5q` in
13486 *Sun\ C*)
13487 # Sun C++ 5.9
13488
13489 # The more standards-conforming stlport4 library is
13490 # incompatible with the Cstd library. Avoid specifying
13491 # it if it's in CXXFLAGS. Ignore libCrun as
13492 # -library=stlport4 depends on it.
13493 case " $CXX $CXXFLAGS " in
13494 *" -library=stlport4 "*)
13495 solaris_use_stlport4=yes
13496 ;;
13497 esac
13498
13499 if test "$solaris_use_stlport4" != yes; then
13500 postdeps_CXX='-library=Cstd -library=Crun'
13501 fi
13502 ;;
13503 esac
13504 ;;
13505
13506 solaris*)
13507 case $cc_basename in
13508 CC*)
13509 # The more standards-conforming stlport4 library is
13510 # incompatible with the Cstd library. Avoid specifying
13511 # it if it's in CXXFLAGS. Ignore libCrun as
13512 # -library=stlport4 depends on it.
13513 case " $CXX $CXXFLAGS " in
13514 *" -library=stlport4 "*)
13515 solaris_use_stlport4=yes
13516 ;;
13517 esac
13518
13519 # Adding this requires a known-good setup of shared libraries for
13520 # Sun compiler versions before 5.6, else PIC objects from an old
13521 # archive will be linked into the output, leading to subtle bugs.
13522 if test "$solaris_use_stlport4" != yes; then
13523 postdeps_CXX='-library=Cstd -library=Crun'
13524 fi
13525 ;;
13526 esac
13527 ;;
13528 esac
13529
13530
13531 case " $postdeps_CXX " in
13532 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13533 esac
13534 compiler_lib_search_dirs_CXX=
13535 if test -n "${compiler_lib_search_path_CXX}"; then
13536 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13537 fi
13538
13539
13540
13541
13542
13543
13544
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 lt_prog_compiler_wl_CXX=
13570 lt_prog_compiler_pic_CXX=
13571 lt_prog_compiler_static_CXX=
13572
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13574 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13575
13576 # C++ specific cases for pic, static, wl, etc.
13577 if test "$GXX" = yes; then
13578 lt_prog_compiler_wl_CXX='-Wl,'
13579 lt_prog_compiler_static_CXX='-static'
13580
13581 case $host_os in
13582 aix*)
13583 # All AIX code is PIC.
13584 if test "$host_cpu" = ia64; then
13585 # AIX 5 now supports IA64 processor
13586 lt_prog_compiler_static_CXX='-Bstatic'
13587 fi
13588 lt_prog_compiler_pic_CXX='-fPIC'
13589 ;;
13590
13591 amigaos*)
13592 case $host_cpu in
13593 powerpc)
13594 # see comment about AmigaOS4 .so support
13595 lt_prog_compiler_pic_CXX='-fPIC'
13596 ;;
13597 m68k)
13598 # FIXME: we need at least 68020 code to build shared libraries, but
13599 # adding the `-m68020' flag to GCC prevents building anything better,
13600 # like `-m68040'.
13601 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13602 ;;
13603 esac
13604 ;;
13605
13606 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13607 # PIC is the default for these OSes.
13608 ;;
13609 mingw* | cygwin* | os2* | pw32* | cegcc*)
13610 # This hack is so that the source file can tell whether it is being
13611 # built for inclusion in a dll (and should export symbols for example).
13612 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13613 # (--disable-auto-import) libraries
13614 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13615 ;;
13616 darwin* | rhapsody*)
13617 # PIC is the default on this platform
13618 # Common symbols not allowed in MH_DYLIB files
13619 lt_prog_compiler_pic_CXX='-fno-common'
13620 ;;
13621 *djgpp*)
13622 # DJGPP does not support shared libraries at all
13623 lt_prog_compiler_pic_CXX=
13624 ;;
13625 haiku*)
13626 # PIC is the default for Haiku.
13627 # The "-static" flag exists, but is broken.
13628 lt_prog_compiler_static_CXX=
13629 ;;
13630 interix[3-9]*)
13631 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13632 # Instead, we relocate shared libraries at runtime.
13633 ;;
13634 sysv4*MP*)
13635 if test -d /usr/nec; then
13636 lt_prog_compiler_pic_CXX=-Kconform_pic
13637 fi
13638 ;;
13639 hpux*)
13640 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13641 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13642 # sets the default TLS model and affects inlining.
13643 case $host_cpu in
13644 hppa*64*)
13645 ;;
13646 *)
13647 lt_prog_compiler_pic_CXX='-fPIC'
13648 ;;
13649 esac
13650 ;;
13651 *qnx* | *nto*)
13652 # QNX uses GNU C++, but need to define -shared option too, otherwise
13653 # it will coredump.
13654 lt_prog_compiler_pic_CXX='-fPIC -shared'
13655 ;;
13656 *)
13657 lt_prog_compiler_pic_CXX='-fPIC'
13658 ;;
13659 esac
13660 else
13661 case $host_os in
13662 aix[4-9]*)
13663 # All AIX code is PIC.
13664 if test "$host_cpu" = ia64; then
13665 # AIX 5 now supports IA64 processor
13666 lt_prog_compiler_static_CXX='-Bstatic'
13667 else
13668 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13669 fi
13670 ;;
13671 chorus*)
13672 case $cc_basename in
13673 cxch68*)
13674 # Green Hills C++ Compiler
13675 # _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"
13676 ;;
13677 esac
13678 ;;
13679 dgux*)
13680 case $cc_basename in
13681 ec++*)
13682 lt_prog_compiler_pic_CXX='-KPIC'
13683 ;;
13684 ghcx*)
13685 # Green Hills C++ Compiler
13686 lt_prog_compiler_pic_CXX='-pic'
13687 ;;
13688 *)
13689 ;;
13690 esac
13691 ;;
13692 freebsd* | dragonfly*)
13693 # FreeBSD uses GNU C++
13694 ;;
13695 hpux9* | hpux10* | hpux11*)
13696 case $cc_basename in
13697 CC*)
13698 lt_prog_compiler_wl_CXX='-Wl,'
13699 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13700 if test "$host_cpu" != ia64; then
13701 lt_prog_compiler_pic_CXX='+Z'
13702 fi
13703 ;;
13704 aCC*)
13705 lt_prog_compiler_wl_CXX='-Wl,'
13706 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13707 case $host_cpu in
13708 hppa*64*|ia64*)
13709 # +Z the default
13710 ;;
13711 *)
13712 lt_prog_compiler_pic_CXX='+Z'
13713 ;;
13714 esac
13715 ;;
13716 *)
13717 ;;
13718 esac
13719 ;;
13720 interix*)
13721 # This is c89, which is MS Visual C++ (no shared libs)
13722 # Anyone wants to do a port?
13723 ;;
13724 irix5* | irix6* | nonstopux*)
13725 case $cc_basename in
13726 CC*)
13727 lt_prog_compiler_wl_CXX='-Wl,'
13728 lt_prog_compiler_static_CXX='-non_shared'
13729 # CC pic flag -KPIC is the default.
13730 ;;
13731 *)
13732 ;;
13733 esac
13734 ;;
13735 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13736 case $cc_basename in
13737 KCC*)
13738 # KAI C++ Compiler
13739 lt_prog_compiler_wl_CXX='--backend -Wl,'
13740 lt_prog_compiler_pic_CXX='-fPIC'
13741 ;;
13742 ecpc* )
13743 # old Intel C++ for x86_64 which still supported -KPIC.
13744 lt_prog_compiler_wl_CXX='-Wl,'
13745 lt_prog_compiler_pic_CXX='-KPIC'
13746 lt_prog_compiler_static_CXX='-static'
13747 ;;
13748 icpc* )
13749 # Intel C++, used to be incompatible with GCC.
13750 # ICC 10 doesn't accept -KPIC any more.
13751 lt_prog_compiler_wl_CXX='-Wl,'
13752 lt_prog_compiler_pic_CXX='-fPIC'
13753 lt_prog_compiler_static_CXX='-static'
13754 ;;
13755 pgCC* | pgcpp*)
13756 # Portland Group C++ compiler
13757 lt_prog_compiler_wl_CXX='-Wl,'
13758 lt_prog_compiler_pic_CXX='-fpic'
13759 lt_prog_compiler_static_CXX='-Bstatic'
13760 ;;
13761 cxx*)
13762 # Compaq C++
13763 # Make sure the PIC flag is empty. It appears that all Alpha
13764 # Linux and Compaq Tru64 Unix objects are PIC.
13765 lt_prog_compiler_pic_CXX=
13766 lt_prog_compiler_static_CXX='-non_shared'
13767 ;;
13768 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13769 # IBM XL 8.0, 9.0 on PPC and BlueGene
13770 lt_prog_compiler_wl_CXX='-Wl,'
13771 lt_prog_compiler_pic_CXX='-qpic'
13772 lt_prog_compiler_static_CXX='-qstaticlink'
13773 ;;
13774 *)
13775 case `$CC -V 2>&1 | sed 5q` in
13776 *Sun\ C*)
13777 # Sun C++ 5.9
13778 lt_prog_compiler_pic_CXX='-KPIC'
13779 lt_prog_compiler_static_CXX='-Bstatic'
13780 lt_prog_compiler_wl_CXX='-Qoption ld '
13781 ;;
13782 esac
13783 ;;
13784 esac
13785 ;;
13786 lynxos*)
13787 ;;
13788 m88k*)
13789 ;;
13790 mvs*)
13791 case $cc_basename in
13792 cxx*)
13793 lt_prog_compiler_pic_CXX='-W c,exportall'
13794 ;;
13795 *)
13796 ;;
13797 esac
13798 ;;
13799 netbsd*)
13800 ;;
13801 *qnx* | *nto*)
13802 # QNX uses GNU C++, but need to define -shared option too, otherwise
13803 # it will coredump.
13804 lt_prog_compiler_pic_CXX='-fPIC -shared'
13805 ;;
13806 osf3* | osf4* | osf5*)
13807 case $cc_basename in
13808 KCC*)
13809 lt_prog_compiler_wl_CXX='--backend -Wl,'
13810 ;;
13811 RCC*)
13812 # Rational C++ 2.4.1
13813 lt_prog_compiler_pic_CXX='-pic'
13814 ;;
13815 cxx*)
13816 # Digital/Compaq C++
13817 lt_prog_compiler_wl_CXX='-Wl,'
13818 # Make sure the PIC flag is empty. It appears that all Alpha
13819 # Linux and Compaq Tru64 Unix objects are PIC.
13820 lt_prog_compiler_pic_CXX=
13821 lt_prog_compiler_static_CXX='-non_shared'
13822 ;;
13823 *)
13824 ;;
13825 esac
13826 ;;
13827 psos*)
13828 ;;
13829 solaris*)
13830 case $cc_basename in
13831 CC*)
13832 # Sun C++ 4.2, 5.x and Centerline C++
13833 lt_prog_compiler_pic_CXX='-KPIC'
13834 lt_prog_compiler_static_CXX='-Bstatic'
13835 lt_prog_compiler_wl_CXX='-Qoption ld '
13836 ;;
13837 gcx*)
13838 # Green Hills C++ Compiler
13839 lt_prog_compiler_pic_CXX='-PIC'
13840 ;;
13841 *)
13842 ;;
13843 esac
13844 ;;
13845 sunos4*)
13846 case $cc_basename in
13847 CC*)
13848 # Sun C++ 4.x
13849 lt_prog_compiler_pic_CXX='-pic'
13850 lt_prog_compiler_static_CXX='-Bstatic'
13851 ;;
13852 lcc*)
13853 # Lucid
13854 lt_prog_compiler_pic_CXX='-pic'
13855 ;;
13856 *)
13857 ;;
13858 esac
13859 ;;
13860 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13861 case $cc_basename in
13862 CC*)
13863 lt_prog_compiler_wl_CXX='-Wl,'
13864 lt_prog_compiler_pic_CXX='-KPIC'
13865 lt_prog_compiler_static_CXX='-Bstatic'
13866 ;;
13867 esac
13868 ;;
13869 tandem*)
13870 case $cc_basename in
13871 NCC*)
13872 # NonStop-UX NCC 3.20
13873 lt_prog_compiler_pic_CXX='-KPIC'
13874 ;;
13875 *)
13876 ;;
13877 esac
13878 ;;
13879 vxworks*)
13880 ;;
13881 *)
13882 lt_prog_compiler_can_build_shared_CXX=no
13883 ;;
13884 esac
13885 fi
13886
13887 case $host_os in
13888 # For platforms which do not support PIC, -DPIC is meaningless:
13889 *djgpp*)
13890 lt_prog_compiler_pic_CXX=
13891 ;;
13892 *)
13893 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13894 ;;
13895 esac
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13897 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13898
13899
13900
13901 #
13902 # Check to make sure the PIC flag actually works.
13903 #
13904 if test -n "$lt_prog_compiler_pic_CXX"; then
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13906 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13907 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13908 $as_echo_n "(cached) " >&6
13909 else
13910 lt_cv_prog_compiler_pic_works_CXX=no
13911 ac_outfile=conftest.$ac_objext
13912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13913 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13914 # Insert the option either (1) after the last *FLAGS variable, or
13915 # (2) before a word containing "conftest.", or (3) at the end.
13916 # Note that $ac_compile itself does not contain backslashes and begins
13917 # with a dollar sign (not a hyphen), so the echo should work correctly.
13918 # The option is referenced via a variable to avoid confusing sed.
13919 lt_compile=`echo "$ac_compile" | $SED \
13920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13922 -e 's:$: $lt_compiler_flag:'`
13923 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13924 (eval "$lt_compile" 2>conftest.err)
13925 ac_status=$?
13926 cat conftest.err >&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 if (exit $ac_status) && test -s "$ac_outfile"; then
13929 # The compiler can only warn and ignore the option if not recognized
13930 # So say no if there are warnings other than the usual output.
13931 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13933 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13934 lt_cv_prog_compiler_pic_works_CXX=yes
13935 fi
13936 fi
13937 $RM conftest*
13938
13939 fi
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13941 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13942
13943 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13944 case $lt_prog_compiler_pic_CXX in
13945 "" | " "*) ;;
13946 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13947 esac
13948 else
13949 lt_prog_compiler_pic_CXX=
13950 lt_prog_compiler_can_build_shared_CXX=no
13951 fi
13952
13953 fi
13954
13955
13956
13957 #
13958 # Check to make sure the static flag actually works.
13959 #
13960 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13962 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13963 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13964 $as_echo_n "(cached) " >&6
13965 else
13966 lt_cv_prog_compiler_static_works_CXX=no
13967 save_LDFLAGS="$LDFLAGS"
13968 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13969 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13970 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13971 # The linker can only warn and ignore the option if not recognized
13972 # So say no if there are warnings
13973 if test -s conftest.err; then
13974 # Append any errors to the config.log.
13975 cat conftest.err 1>&5
13976 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13978 if diff conftest.exp conftest.er2 >/dev/null; then
13979 lt_cv_prog_compiler_static_works_CXX=yes
13980 fi
13981 else
13982 lt_cv_prog_compiler_static_works_CXX=yes
13983 fi
13984 fi
13985 $RM -r conftest*
13986 LDFLAGS="$save_LDFLAGS"
13987
13988 fi
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13990 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13991
13992 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13993 :
13994 else
13995 lt_prog_compiler_static_CXX=
13996 fi
13997
13998
13999
14000
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14002 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14003 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14004 $as_echo_n "(cached) " >&6
14005 else
14006 lt_cv_prog_compiler_c_o_CXX=no
14007 $RM -r conftest 2>/dev/null
14008 mkdir conftest
14009 cd conftest
14010 mkdir out
14011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14012
14013 lt_compiler_flag="-o out/conftest2.$ac_objext"
14014 # Insert the option either (1) after the last *FLAGS variable, or
14015 # (2) before a word containing "conftest.", or (3) at the end.
14016 # Note that $ac_compile itself does not contain backslashes and begins
14017 # with a dollar sign (not a hyphen), so the echo should work correctly.
14018 lt_compile=`echo "$ac_compile" | $SED \
14019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14021 -e 's:$: $lt_compiler_flag:'`
14022 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14023 (eval "$lt_compile" 2>out/conftest.err)
14024 ac_status=$?
14025 cat out/conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14028 then
14029 # The compiler can only warn and ignore the option if not recognized
14030 # So say no if there are warnings
14031 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14032 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14033 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14034 lt_cv_prog_compiler_c_o_CXX=yes
14035 fi
14036 fi
14037 chmod u+w . 2>&5
14038 $RM conftest*
14039 # SGI C++ compiler will create directory out/ii_files/ for
14040 # template instantiation
14041 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14042 $RM out/* && rmdir out
14043 cd ..
14044 $RM -r conftest
14045 $RM conftest*
14046
14047 fi
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14049 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14050
14051
14052
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14054 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14055 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14056 $as_echo_n "(cached) " >&6
14057 else
14058 lt_cv_prog_compiler_c_o_CXX=no
14059 $RM -r conftest 2>/dev/null
14060 mkdir conftest
14061 cd conftest
14062 mkdir out
14063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14064
14065 lt_compiler_flag="-o out/conftest2.$ac_objext"
14066 # Insert the option either (1) after the last *FLAGS variable, or
14067 # (2) before a word containing "conftest.", or (3) at the end.
14068 # Note that $ac_compile itself does not contain backslashes and begins
14069 # with a dollar sign (not a hyphen), so the echo should work correctly.
14070 lt_compile=`echo "$ac_compile" | $SED \
14071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14073 -e 's:$: $lt_compiler_flag:'`
14074 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14075 (eval "$lt_compile" 2>out/conftest.err)
14076 ac_status=$?
14077 cat out/conftest.err >&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14080 then
14081 # The compiler can only warn and ignore the option if not recognized
14082 # So say no if there are warnings
14083 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14084 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14085 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14086 lt_cv_prog_compiler_c_o_CXX=yes
14087 fi
14088 fi
14089 chmod u+w . 2>&5
14090 $RM conftest*
14091 # SGI C++ compiler will create directory out/ii_files/ for
14092 # template instantiation
14093 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14094 $RM out/* && rmdir out
14095 cd ..
14096 $RM -r conftest
14097 $RM conftest*
14098
14099 fi
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14101 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14102
14103
14104
14105
14106 hard_links="nottested"
14107 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14108 # do not overwrite the value of need_locks provided by the user
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14110 $as_echo_n "checking if we can lock with hard links... " >&6; }
14111 hard_links=yes
14112 $RM conftest*
14113 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14114 touch conftest.a
14115 ln conftest.a conftest.b 2>&5 || hard_links=no
14116 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14118 $as_echo "$hard_links" >&6; }
14119 if test "$hard_links" = no; then
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14121 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14122 need_locks=warn
14123 fi
14124 else
14125 need_locks=no
14126 fi
14127
14128
14129
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14131 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14132
14133 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14134 case $host_os in
14135 aix[4-9]*)
14136 # If we're using GNU nm, then we don't want the "-C" option.
14137 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14138 # Also, AIX nm treats weak defined symbols like other global defined
14139 # symbols, whereas GNU nm marks them as "W".
14140 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14141 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'
14142 else
14143 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'
14144 fi
14145 ;;
14146 pw32*)
14147 export_symbols_cmds_CXX="$ltdll_cmds"
14148 ;;
14149 cygwin* | mingw* | cegcc*)
14150 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'
14151 ;;
14152 *)
14153 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14154 ;;
14155 esac
14156 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14157
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14159 $as_echo "$ld_shlibs_CXX" >&6; }
14160 test "$ld_shlibs_CXX" = no && can_build_shared=no
14161
14162 with_gnu_ld_CXX=$with_gnu_ld
14163
14164
14165
14166
14167
14168
14169 #
14170 # Do we need to explicitly link libc?
14171 #
14172 case "x$archive_cmds_need_lc_CXX" in
14173 x|xyes)
14174 # Assume -lc should be added
14175 archive_cmds_need_lc_CXX=yes
14176
14177 if test "$enable_shared" = yes && test "$GCC" = yes; then
14178 case $archive_cmds_CXX in
14179 *'~'*)
14180 # FIXME: we may have to deal with multi-command sequences.
14181 ;;
14182 '$CC '*)
14183 # Test whether the compiler implicitly links with -lc since on some
14184 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14185 # to ld, don't add -lc before -lgcc.
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14187 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14188 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14189 $as_echo_n "(cached) " >&6
14190 else
14191 $RM conftest*
14192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14193
14194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14195 (eval $ac_compile) 2>&5
14196 ac_status=$?
14197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14198 test $ac_status = 0; } 2>conftest.err; then
14199 soname=conftest
14200 lib=conftest
14201 libobjs=conftest.$ac_objext
14202 deplibs=
14203 wl=$lt_prog_compiler_wl_CXX
14204 pic_flag=$lt_prog_compiler_pic_CXX
14205 compiler_flags=-v
14206 linker_flags=-v
14207 verstring=
14208 output_objdir=.
14209 libname=conftest
14210 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14211 allow_undefined_flag_CXX=
14212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14213 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14214 ac_status=$?
14215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14216 test $ac_status = 0; }
14217 then
14218 lt_cv_archive_cmds_need_lc_CXX=no
14219 else
14220 lt_cv_archive_cmds_need_lc_CXX=yes
14221 fi
14222 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14223 else
14224 cat conftest.err 1>&5
14225 fi
14226 $RM conftest*
14227
14228 fi
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14230 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14231 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14232 ;;
14233 esac
14234 fi
14235 ;;
14236 esac
14237
14238
14239
14240
14241
14242
14243
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14302 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14303
14304 library_names_spec=
14305 libname_spec='lib$name'
14306 soname_spec=
14307 shrext_cmds=".so"
14308 postinstall_cmds=
14309 postuninstall_cmds=
14310 finish_cmds=
14311 finish_eval=
14312 shlibpath_var=
14313 shlibpath_overrides_runpath=unknown
14314 version_type=none
14315 dynamic_linker="$host_os ld.so"
14316 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14317 need_lib_prefix=unknown
14318 hardcode_into_libs=no
14319
14320 # when you set need_version to no, make sure it does not cause -set_version
14321 # flags to be left without arguments
14322 need_version=unknown
14323
14324 case $host_os in
14325 aix3*)
14326 version_type=linux
14327 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14328 shlibpath_var=LIBPATH
14329
14330 # AIX 3 has no versioning support, so we append a major version to the name.
14331 soname_spec='${libname}${release}${shared_ext}$major'
14332 ;;
14333
14334 aix[4-9]*)
14335 version_type=linux
14336 need_lib_prefix=no
14337 need_version=no
14338 hardcode_into_libs=yes
14339 if test "$host_cpu" = ia64; then
14340 # AIX 5 supports IA64
14341 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14342 shlibpath_var=LD_LIBRARY_PATH
14343 else
14344 # With GCC up to 2.95.x, collect2 would create an import file
14345 # for dependence libraries. The import file would start with
14346 # the line `#! .'. This would cause the generated library to
14347 # depend on `.', always an invalid library. This was fixed in
14348 # development snapshots of GCC prior to 3.0.
14349 case $host_os in
14350 aix4 | aix4.[01] | aix4.[01].*)
14351 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14352 echo ' yes '
14353 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14354 :
14355 else
14356 can_build_shared=no
14357 fi
14358 ;;
14359 esac
14360 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14361 # soname into executable. Probably we can add versioning support to
14362 # collect2, so additional links can be useful in future.
14363 if test "$aix_use_runtimelinking" = yes; then
14364 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14365 # instead of lib<name>.a to let people know that these are not
14366 # typical AIX shared libraries.
14367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14368 else
14369 # We preserve .a as extension for shared libraries through AIX4.2
14370 # and later when we are not doing run time linking.
14371 library_names_spec='${libname}${release}.a $libname.a'
14372 soname_spec='${libname}${release}${shared_ext}$major'
14373 fi
14374 shlibpath_var=LIBPATH
14375 fi
14376 ;;
14377
14378 amigaos*)
14379 case $host_cpu in
14380 powerpc)
14381 # Since July 2007 AmigaOS4 officially supports .so libraries.
14382 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14384 ;;
14385 m68k)
14386 library_names_spec='$libname.ixlibrary $libname.a'
14387 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14388 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'
14389 ;;
14390 esac
14391 ;;
14392
14393 beos*)
14394 library_names_spec='${libname}${shared_ext}'
14395 dynamic_linker="$host_os ld.so"
14396 shlibpath_var=LIBRARY_PATH
14397 ;;
14398
14399 bsdi[45]*)
14400 version_type=linux
14401 need_version=no
14402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14403 soname_spec='${libname}${release}${shared_ext}$major'
14404 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14405 shlibpath_var=LD_LIBRARY_PATH
14406 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14407 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14408 # the default ld.so.conf also contains /usr/contrib/lib and
14409 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14410 # libtool to hard-code these into programs
14411 ;;
14412
14413 cygwin* | mingw* | pw32* | cegcc*)
14414 version_type=windows
14415 shrext_cmds=".dll"
14416 need_version=no
14417 need_lib_prefix=no
14418
14419 case $GCC,$host_os in
14420 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14421 library_names_spec='$libname.dll.a'
14422 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14423 postinstall_cmds='base_file=`basename \${file}`~
14424 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14425 dldir=$destdir/`dirname \$dlpath`~
14426 test -d \$dldir || mkdir -p \$dldir~
14427 $install_prog $dir/$dlname \$dldir/$dlname~
14428 chmod a+x \$dldir/$dlname~
14429 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14430 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14431 fi'
14432 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14433 dlpath=$dir/\$dldll~
14434 $RM \$dlpath'
14435 shlibpath_overrides_runpath=yes
14436
14437 case $host_os in
14438 cygwin*)
14439 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14440 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14441
14442 ;;
14443 mingw* | cegcc*)
14444 # MinGW DLLs use traditional 'lib' prefix
14445 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14446 ;;
14447 pw32*)
14448 # pw32 DLLs use 'pw' prefix rather than 'lib'
14449 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14450 ;;
14451 esac
14452 ;;
14453
14454 *)
14455 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14456 ;;
14457 esac
14458 dynamic_linker='Win32 ld.exe'
14459 # FIXME: first we should search . and the directory the executable is in
14460 shlibpath_var=PATH
14461 ;;
14462
14463 darwin* | rhapsody*)
14464 dynamic_linker="$host_os dyld"
14465 version_type=darwin
14466 need_lib_prefix=no
14467 need_version=no
14468 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14469 soname_spec='${libname}${release}${major}$shared_ext'
14470 shlibpath_overrides_runpath=yes
14471 shlibpath_var=DYLD_LIBRARY_PATH
14472 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14473
14474 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14475 ;;
14476
14477 dgux*)
14478 version_type=linux
14479 need_lib_prefix=no
14480 need_version=no
14481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14482 soname_spec='${libname}${release}${shared_ext}$major'
14483 shlibpath_var=LD_LIBRARY_PATH
14484 ;;
14485
14486 freebsd* | dragonfly*)
14487 # DragonFly does not have aout. When/if they implement a new
14488 # versioning mechanism, adjust this.
14489 if test -x /usr/bin/objformat; then
14490 objformat=`/usr/bin/objformat`
14491 else
14492 case $host_os in
14493 freebsd[23].*) objformat=aout ;;
14494 *) objformat=elf ;;
14495 esac
14496 fi
14497 version_type=freebsd-$objformat
14498 case $version_type in
14499 freebsd-elf*)
14500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14501 need_version=no
14502 need_lib_prefix=no
14503 ;;
14504 freebsd-*)
14505 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14506 need_version=yes
14507 ;;
14508 esac
14509 shlibpath_var=LD_LIBRARY_PATH
14510 case $host_os in
14511 freebsd2.*)
14512 shlibpath_overrides_runpath=yes
14513 ;;
14514 freebsd3.[01]* | freebsdelf3.[01]*)
14515 shlibpath_overrides_runpath=yes
14516 hardcode_into_libs=yes
14517 ;;
14518 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14519 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14520 shlibpath_overrides_runpath=no
14521 hardcode_into_libs=yes
14522 ;;
14523 *) # from 4.6 on, and DragonFly
14524 shlibpath_overrides_runpath=yes
14525 hardcode_into_libs=yes
14526 ;;
14527 esac
14528 ;;
14529
14530 haiku*)
14531 version_type=linux
14532 need_lib_prefix=no
14533 need_version=no
14534 dynamic_linker="$host_os runtime_loader"
14535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14536 soname_spec='${libname}${release}${shared_ext}$major'
14537 shlibpath_var=LIBRARY_PATH
14538 shlibpath_overrides_runpath=yes
14539 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14540 hardcode_into_libs=yes
14541 ;;
14542
14543 hpux9* | hpux10* | hpux11*)
14544 # Give a soname corresponding to the major version so that dld.sl refuses to
14545 # link against other versions.
14546 version_type=sunos
14547 need_lib_prefix=no
14548 need_version=no
14549 case $host_cpu in
14550 ia64*)
14551 shrext_cmds='.so'
14552 hardcode_into_libs=yes
14553 dynamic_linker="$host_os dld.so"
14554 shlibpath_var=LD_LIBRARY_PATH
14555 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14557 soname_spec='${libname}${release}${shared_ext}$major'
14558 if test "X$HPUX_IA64_MODE" = X32; then
14559 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14560 else
14561 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14562 fi
14563 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14564 ;;
14565 hppa*64*)
14566 shrext_cmds='.sl'
14567 hardcode_into_libs=yes
14568 dynamic_linker="$host_os dld.sl"
14569 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14570 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14572 soname_spec='${libname}${release}${shared_ext}$major'
14573 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14575 ;;
14576 *)
14577 shrext_cmds='.sl'
14578 dynamic_linker="$host_os dld.sl"
14579 shlibpath_var=SHLIB_PATH
14580 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14582 soname_spec='${libname}${release}${shared_ext}$major'
14583 ;;
14584 esac
14585 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14586 postinstall_cmds='chmod 555 $lib'
14587 # or fails outright, so override atomically:
14588 install_override_mode=555
14589 ;;
14590
14591 interix[3-9]*)
14592 version_type=linux
14593 need_lib_prefix=no
14594 need_version=no
14595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14596 soname_spec='${libname}${release}${shared_ext}$major'
14597 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14598 shlibpath_var=LD_LIBRARY_PATH
14599 shlibpath_overrides_runpath=no
14600 hardcode_into_libs=yes
14601 ;;
14602
14603 irix5* | irix6* | nonstopux*)
14604 case $host_os in
14605 nonstopux*) version_type=nonstopux ;;
14606 *)
14607 if test "$lt_cv_prog_gnu_ld" = yes; then
14608 version_type=linux
14609 else
14610 version_type=irix
14611 fi ;;
14612 esac
14613 need_lib_prefix=no
14614 need_version=no
14615 soname_spec='${libname}${release}${shared_ext}$major'
14616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14617 case $host_os in
14618 irix5* | nonstopux*)
14619 libsuff= shlibsuff=
14620 ;;
14621 *)
14622 case $LD in # libtool.m4 will add one of these switches to LD
14623 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14624 libsuff= shlibsuff= libmagic=32-bit;;
14625 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14626 libsuff=32 shlibsuff=N32 libmagic=N32;;
14627 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14628 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14629 *) libsuff= shlibsuff= libmagic=never-match;;
14630 esac
14631 ;;
14632 esac
14633 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14634 shlibpath_overrides_runpath=no
14635 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14636 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14637 hardcode_into_libs=yes
14638 ;;
14639
14640 # No shared lib support for Linux oldld, aout, or coff.
14641 linux*oldld* | linux*aout* | linux*coff*)
14642 dynamic_linker=no
14643 ;;
14644
14645 # This must be Linux ELF.
14646
14647 # uclinux* changes (here and below) have been submitted to the libtool
14648 # project, but have not yet been accepted: they are GCC-local changes
14649 # for the time being. (See
14650 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14651 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14652 version_type=linux
14653 need_lib_prefix=no
14654 need_version=no
14655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14656 soname_spec='${libname}${release}${shared_ext}$major'
14657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14658 shlibpath_var=LD_LIBRARY_PATH
14659 shlibpath_overrides_runpath=no
14660
14661 # Some binutils ld are patched to set DT_RUNPATH
14662 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14663 $as_echo_n "(cached) " >&6
14664 else
14665 lt_cv_shlibpath_overrides_runpath=no
14666 save_LDFLAGS=$LDFLAGS
14667 save_libdir=$libdir
14668 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14669 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671 /* end confdefs.h. */
14672
14673 int
14674 main ()
14675 {
14676
14677 ;
14678 return 0;
14679 }
14680 _ACEOF
14681 if ac_fn_cxx_try_link "$LINENO"; then :
14682 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14683 lt_cv_shlibpath_overrides_runpath=yes
14684 fi
14685 fi
14686 rm -f core conftest.err conftest.$ac_objext \
14687 conftest$ac_exeext conftest.$ac_ext
14688 LDFLAGS=$save_LDFLAGS
14689 libdir=$save_libdir
14690
14691 fi
14692
14693 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14694
14695 # This implies no fast_install, which is unacceptable.
14696 # Some rework will be needed to allow for fast_install
14697 # before this can be enabled.
14698 hardcode_into_libs=yes
14699
14700 # Append ld.so.conf contents to the search path
14701 if test -f /etc/ld.so.conf; then
14702 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' ' '`
14703 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14704 fi
14705
14706 # We used to test for /lib/ld.so.1 and disable shared libraries on
14707 # powerpc, because MkLinux only supported shared libraries with the
14708 # GNU dynamic linker. Since this was broken with cross compilers,
14709 # most powerpc-linux boxes support dynamic linking these days and
14710 # people can always --disable-shared, the test was removed, and we
14711 # assume the GNU/Linux dynamic linker is in use.
14712 dynamic_linker='GNU/Linux ld.so'
14713 ;;
14714
14715 netbsd*)
14716 version_type=sunos
14717 need_lib_prefix=no
14718 need_version=no
14719 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14722 dynamic_linker='NetBSD (a.out) ld.so'
14723 else
14724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14725 soname_spec='${libname}${release}${shared_ext}$major'
14726 dynamic_linker='NetBSD ld.elf_so'
14727 fi
14728 shlibpath_var=LD_LIBRARY_PATH
14729 shlibpath_overrides_runpath=yes
14730 hardcode_into_libs=yes
14731 ;;
14732
14733 newsos6)
14734 version_type=linux
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14736 shlibpath_var=LD_LIBRARY_PATH
14737 shlibpath_overrides_runpath=yes
14738 ;;
14739
14740 *nto* | *qnx*)
14741 version_type=qnx
14742 need_lib_prefix=no
14743 need_version=no
14744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745 soname_spec='${libname}${release}${shared_ext}$major'
14746 shlibpath_var=LD_LIBRARY_PATH
14747 shlibpath_overrides_runpath=no
14748 hardcode_into_libs=yes
14749 dynamic_linker='ldqnx.so'
14750 ;;
14751
14752 openbsd*)
14753 version_type=sunos
14754 sys_lib_dlsearch_path_spec="/usr/lib"
14755 need_lib_prefix=no
14756 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14757 case $host_os in
14758 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14759 *) need_version=no ;;
14760 esac
14761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14763 shlibpath_var=LD_LIBRARY_PATH
14764 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14765 case $host_os in
14766 openbsd2.[89] | openbsd2.[89].*)
14767 shlibpath_overrides_runpath=no
14768 ;;
14769 *)
14770 shlibpath_overrides_runpath=yes
14771 ;;
14772 esac
14773 else
14774 shlibpath_overrides_runpath=yes
14775 fi
14776 ;;
14777
14778 os2*)
14779 libname_spec='$name'
14780 shrext_cmds=".dll"
14781 need_lib_prefix=no
14782 library_names_spec='$libname${shared_ext} $libname.a'
14783 dynamic_linker='OS/2 ld.exe'
14784 shlibpath_var=LIBPATH
14785 ;;
14786
14787 osf3* | osf4* | osf5*)
14788 version_type=osf
14789 need_lib_prefix=no
14790 need_version=no
14791 soname_spec='${libname}${release}${shared_ext}$major'
14792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14793 shlibpath_var=LD_LIBRARY_PATH
14794 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14795 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14796 ;;
14797
14798 rdos*)
14799 dynamic_linker=no
14800 ;;
14801
14802 solaris*)
14803 version_type=linux
14804 need_lib_prefix=no
14805 need_version=no
14806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14807 soname_spec='${libname}${release}${shared_ext}$major'
14808 shlibpath_var=LD_LIBRARY_PATH
14809 shlibpath_overrides_runpath=yes
14810 hardcode_into_libs=yes
14811 # ldd complains unless libraries are executable
14812 postinstall_cmds='chmod +x $lib'
14813 ;;
14814
14815 sunos4*)
14816 version_type=sunos
14817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14818 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14819 shlibpath_var=LD_LIBRARY_PATH
14820 shlibpath_overrides_runpath=yes
14821 if test "$with_gnu_ld" = yes; then
14822 need_lib_prefix=no
14823 fi
14824 need_version=yes
14825 ;;
14826
14827 sysv4 | sysv4.3*)
14828 version_type=linux
14829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14830 soname_spec='${libname}${release}${shared_ext}$major'
14831 shlibpath_var=LD_LIBRARY_PATH
14832 case $host_vendor in
14833 sni)
14834 shlibpath_overrides_runpath=no
14835 need_lib_prefix=no
14836 runpath_var=LD_RUN_PATH
14837 ;;
14838 siemens)
14839 need_lib_prefix=no
14840 ;;
14841 motorola)
14842 need_lib_prefix=no
14843 need_version=no
14844 shlibpath_overrides_runpath=no
14845 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14846 ;;
14847 esac
14848 ;;
14849
14850 sysv4*MP*)
14851 if test -d /usr/nec ;then
14852 version_type=linux
14853 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14854 soname_spec='$libname${shared_ext}.$major'
14855 shlibpath_var=LD_LIBRARY_PATH
14856 fi
14857 ;;
14858
14859 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14860 version_type=freebsd-elf
14861 need_lib_prefix=no
14862 need_version=no
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14864 soname_spec='${libname}${release}${shared_ext}$major'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 shlibpath_overrides_runpath=yes
14867 hardcode_into_libs=yes
14868 if test "$with_gnu_ld" = yes; then
14869 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14870 else
14871 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14872 case $host_os in
14873 sco3.2v5*)
14874 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14875 ;;
14876 esac
14877 fi
14878 sys_lib_dlsearch_path_spec='/usr/lib'
14879 ;;
14880
14881 tpf*)
14882 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14883 version_type=linux
14884 need_lib_prefix=no
14885 need_version=no
14886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14887 shlibpath_var=LD_LIBRARY_PATH
14888 shlibpath_overrides_runpath=no
14889 hardcode_into_libs=yes
14890 ;;
14891
14892 uts4*)
14893 version_type=linux
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895 soname_spec='${libname}${release}${shared_ext}$major'
14896 shlibpath_var=LD_LIBRARY_PATH
14897 ;;
14898
14899 # Shared libraries for VwWorks, >= 7 only at this stage
14900 # and (fpic) still incompatible with "large" code models
14901 # in a few configurations. Only for RTP mode in any case,
14902 # and upon explicit request at configure time.
14903 vxworks7*)
14904 dynamic_linker=no
14905 case ${with_multisubdir}-${enable_shared} in
14906 *large*)
14907 ;;
14908 *mrtp*-yes)
14909 version_type=linux
14910 need_lib_prefix=no
14911 need_version=no
14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14913 soname_spec='${libname}${release}${shared_ext}$major'
14914 dynamic_linker="$host_os module_loader"
14915 ;;
14916 esac
14917 ;;
14918 *)
14919 dynamic_linker=no
14920 ;;
14921 esac
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14923 $as_echo "$dynamic_linker" >&6; }
14924 test "$dynamic_linker" = no && can_build_shared=no
14925
14926 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14927 if test "$GCC" = yes; then
14928 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14929 fi
14930
14931 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14932 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14933 fi
14934 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14935 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14936 fi
14937
14938
14939
14940
14941
14942
14943
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14976 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14977 hardcode_action_CXX=
14978 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14979 test -n "$runpath_var_CXX" ||
14980 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14981
14982 # We can hardcode non-existent directories.
14983 if test "$hardcode_direct_CXX" != no &&
14984 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14985 # have to relink, otherwise we might link with an installed library
14986 # when we should be linking with a yet-to-be-installed one
14987 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14988 test "$hardcode_minus_L_CXX" != no; then
14989 # Linking always hardcodes the temporary library directory.
14990 hardcode_action_CXX=relink
14991 else
14992 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14993 hardcode_action_CXX=immediate
14994 fi
14995 else
14996 # We cannot hardcode anything, or else we can only hardcode existing
14997 # directories.
14998 hardcode_action_CXX=unsupported
14999 fi
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15001 $as_echo "$hardcode_action_CXX" >&6; }
15002
15003 if test "$hardcode_action_CXX" = relink ||
15004 test "$inherit_rpath_CXX" = yes; then
15005 # Fast installation is not supported
15006 enable_fast_install=no
15007 elif test "$shlibpath_overrides_runpath" = yes ||
15008 test "$enable_shared" = no; then
15009 # Fast installation is not necessary
15010 enable_fast_install=needless
15011 fi
15012
15013
15014
15015
15016
15017
15018
15019 fi # test -n "$compiler"
15020
15021 CC=$lt_save_CC
15022 LDCXX=$LD
15023 LD=$lt_save_LD
15024 GCC=$lt_save_GCC
15025 with_gnu_ld=$lt_save_with_gnu_ld
15026 lt_cv_path_LDCXX=$lt_cv_path_LD
15027 lt_cv_path_LD=$lt_save_path_LD
15028 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15029 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15030 fi # test "$_lt_caught_CXX_error" != yes
15031
15032 ac_ext=c
15033 ac_cpp='$CPP $CPPFLAGS'
15034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050 ac_config_commands="$ac_config_commands libtool"
15051
15052
15053
15054
15055 # Only expand once:
15056
15057
15058
15059 # The tests for host and target for $enable_largefile require
15060 # canonical names.
15061
15062
15063
15064 # As the $enable_largefile decision depends on --enable-plugins we must set it
15065 # even in directories otherwise not depending on the $plugins option.
15066
15067
15068 maybe_plugins=no
15069 for ac_header in dlfcn.h
15070 do :
15071 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15072 "
15073 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15074 cat >>confdefs.h <<_ACEOF
15075 #define HAVE_DLFCN_H 1
15076 _ACEOF
15077 maybe_plugins=yes
15078 fi
15079
15080 done
15081
15082 for ac_header in windows.h
15083 do :
15084 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15085 "
15086 if test "x$ac_cv_header_windows_h" = xyes; then :
15087 cat >>confdefs.h <<_ACEOF
15088 #define HAVE_WINDOWS_H 1
15089 _ACEOF
15090 maybe_plugins=yes
15091 fi
15092
15093 done
15094
15095
15096 # Check whether --enable-plugins was given.
15097 if test "${enable_plugins+set}" = set; then :
15098 enableval=$enable_plugins; case "${enableval}" in
15099 no) plugins=no ;;
15100 *) plugins=yes
15101 if test "$maybe_plugins" != "yes" ; then
15102 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15103 fi ;;
15104 esac
15105 else
15106 plugins=$maybe_plugins
15107
15108 fi
15109
15110 if test "$plugins" = "yes"; then
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
15112 $as_echo_n "checking for library containing dlsym... " >&6; }
15113 if ${ac_cv_search_dlsym+:} false; then :
15114 $as_echo_n "(cached) " >&6
15115 else
15116 ac_func_search_save_LIBS=$LIBS
15117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118 /* end confdefs.h. */
15119
15120 /* Override any GCC internal prototype to avoid an error.
15121 Use char because int might match the return type of a GCC
15122 builtin and then its argument prototype would still apply. */
15123 #ifdef __cplusplus
15124 extern "C"
15125 #endif
15126 char dlsym ();
15127 int
15128 main ()
15129 {
15130 return dlsym ();
15131 ;
15132 return 0;
15133 }
15134 _ACEOF
15135 for ac_lib in '' dl; do
15136 if test -z "$ac_lib"; then
15137 ac_res="none required"
15138 else
15139 ac_res=-l$ac_lib
15140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15141 fi
15142 if ac_fn_c_try_link "$LINENO"; then :
15143 ac_cv_search_dlsym=$ac_res
15144 fi
15145 rm -f core conftest.err conftest.$ac_objext \
15146 conftest$ac_exeext
15147 if ${ac_cv_search_dlsym+:} false; then :
15148 break
15149 fi
15150 done
15151 if ${ac_cv_search_dlsym+:} false; then :
15152
15153 else
15154 ac_cv_search_dlsym=no
15155 fi
15156 rm conftest.$ac_ext
15157 LIBS=$ac_func_search_save_LIBS
15158 fi
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
15160 $as_echo "$ac_cv_search_dlsym" >&6; }
15161 ac_res=$ac_cv_search_dlsym
15162 if test "$ac_res" != no; then :
15163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15164
15165 fi
15166
15167 fi
15168
15169
15170 case "${host}" in
15171 sparc-*-solaris*|i?86-*-solaris*)
15172 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
15173 # were mutually exclusive until Solaris 11.3. Without procfs support,
15174 # the bfd/ elf module cannot provide certain routines such as
15175 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
15176 # explicitly requested large-file support through the
15177 # --enable-largefile switch, disable large-file support in favor of
15178 # procfs support.
15179 #
15180 # Check if <sys/procfs.h> is incompatible with large-file support.
15181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15182 /* end confdefs.h. */
15183 #define _FILE_OFFSET_BITS 64
15184 #define _STRUCTURED_PROC 1
15185 #include <sys/procfs.h>
15186 int
15187 main ()
15188 {
15189
15190 ;
15191 return 0;
15192 }
15193 _ACEOF
15194 if ac_fn_c_try_compile "$LINENO"; then :
15195 acx_cv_procfs_lfs=yes
15196 else
15197 acx_cv_procfs_lfs=no
15198 fi
15199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15200 #
15201 # Forcefully disable large-file support only if necessary, gdb is in
15202 # tree and enabled.
15203 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
15204 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
15205 : ${enable_largefile="no"}
15206 if test "$plugins" = yes; then
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15208 plugin support disabled; require large-file support which is incompatible with GDB." >&5
15209 $as_echo "$as_me: WARNING:
15210 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
15211 plugins=no
15212 fi
15213 fi
15214 #
15215 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
15216 # benefit of g++ 9+ which predefines it on Solaris.
15217 if test "$enable_largefile" = no; then
15218 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
15219
15220 fi
15221 ;;
15222 esac
15223
15224 # Check whether --enable-largefile was given.
15225 if test "${enable_largefile+set}" = set; then :
15226 enableval=$enable_largefile;
15227 fi
15228
15229 if test "$enable_largefile" != no; then
15230
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15232 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15233 if ${ac_cv_sys_largefile_CC+:} false; then :
15234 $as_echo_n "(cached) " >&6
15235 else
15236 ac_cv_sys_largefile_CC=no
15237 if test "$GCC" != yes; then
15238 ac_save_CC=$CC
15239 while :; do
15240 # IRIX 6.2 and later do not support large files by default,
15241 # so use the C compiler's -n32 option if that helps.
15242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15243 /* end confdefs.h. */
15244 #include <sys/types.h>
15245 /* Check that off_t can represent 2**63 - 1 correctly.
15246 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15247 since some C++ compilers masquerading as C compilers
15248 incorrectly reject 9223372036854775807. */
15249 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15250 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15251 && LARGE_OFF_T % 2147483647 == 1)
15252 ? 1 : -1];
15253 int
15254 main ()
15255 {
15256
15257 ;
15258 return 0;
15259 }
15260 _ACEOF
15261 if ac_fn_c_try_compile "$LINENO"; then :
15262 break
15263 fi
15264 rm -f core conftest.err conftest.$ac_objext
15265 CC="$CC -n32"
15266 if ac_fn_c_try_compile "$LINENO"; then :
15267 ac_cv_sys_largefile_CC=' -n32'; break
15268 fi
15269 rm -f core conftest.err conftest.$ac_objext
15270 break
15271 done
15272 CC=$ac_save_CC
15273 rm -f conftest.$ac_ext
15274 fi
15275 fi
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15277 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15278 if test "$ac_cv_sys_largefile_CC" != no; then
15279 CC=$CC$ac_cv_sys_largefile_CC
15280 fi
15281
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15283 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15284 if ${ac_cv_sys_file_offset_bits+:} false; then :
15285 $as_echo_n "(cached) " >&6
15286 else
15287 while :; do
15288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15289 /* end confdefs.h. */
15290 #include <sys/types.h>
15291 /* Check that off_t can represent 2**63 - 1 correctly.
15292 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15293 since some C++ compilers masquerading as C compilers
15294 incorrectly reject 9223372036854775807. */
15295 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15296 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15297 && LARGE_OFF_T % 2147483647 == 1)
15298 ? 1 : -1];
15299 int
15300 main ()
15301 {
15302
15303 ;
15304 return 0;
15305 }
15306 _ACEOF
15307 if ac_fn_c_try_compile "$LINENO"; then :
15308 ac_cv_sys_file_offset_bits=no; break
15309 fi
15310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15313 #define _FILE_OFFSET_BITS 64
15314 #include <sys/types.h>
15315 /* Check that off_t can represent 2**63 - 1 correctly.
15316 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15317 since some C++ compilers masquerading as C compilers
15318 incorrectly reject 9223372036854775807. */
15319 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15320 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15321 && LARGE_OFF_T % 2147483647 == 1)
15322 ? 1 : -1];
15323 int
15324 main ()
15325 {
15326
15327 ;
15328 return 0;
15329 }
15330 _ACEOF
15331 if ac_fn_c_try_compile "$LINENO"; then :
15332 ac_cv_sys_file_offset_bits=64; break
15333 fi
15334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15335 ac_cv_sys_file_offset_bits=unknown
15336 break
15337 done
15338 fi
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15340 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15341 case $ac_cv_sys_file_offset_bits in #(
15342 no | unknown) ;;
15343 *)
15344 cat >>confdefs.h <<_ACEOF
15345 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15346 _ACEOF
15347 ;;
15348 esac
15349 rm -rf conftest*
15350 if test $ac_cv_sys_file_offset_bits = unknown; then
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15352 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15353 if ${ac_cv_sys_large_files+:} false; then :
15354 $as_echo_n "(cached) " >&6
15355 else
15356 while :; do
15357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358 /* end confdefs.h. */
15359 #include <sys/types.h>
15360 /* Check that off_t can represent 2**63 - 1 correctly.
15361 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15362 since some C++ compilers masquerading as C compilers
15363 incorrectly reject 9223372036854775807. */
15364 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15365 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15366 && LARGE_OFF_T % 2147483647 == 1)
15367 ? 1 : -1];
15368 int
15369 main ()
15370 {
15371
15372 ;
15373 return 0;
15374 }
15375 _ACEOF
15376 if ac_fn_c_try_compile "$LINENO"; then :
15377 ac_cv_sys_large_files=no; break
15378 fi
15379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h. */
15382 #define _LARGE_FILES 1
15383 #include <sys/types.h>
15384 /* Check that off_t can represent 2**63 - 1 correctly.
15385 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15386 since some C++ compilers masquerading as C compilers
15387 incorrectly reject 9223372036854775807. */
15388 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15389 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15390 && LARGE_OFF_T % 2147483647 == 1)
15391 ? 1 : -1];
15392 int
15393 main ()
15394 {
15395
15396 ;
15397 return 0;
15398 }
15399 _ACEOF
15400 if ac_fn_c_try_compile "$LINENO"; then :
15401 ac_cv_sys_large_files=1; break
15402 fi
15403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15404 ac_cv_sys_large_files=unknown
15405 break
15406 done
15407 fi
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15409 $as_echo "$ac_cv_sys_large_files" >&6; }
15410 case $ac_cv_sys_large_files in #(
15411 no | unknown) ;;
15412 *)
15413 cat >>confdefs.h <<_ACEOF
15414 #define _LARGE_FILES $ac_cv_sys_large_files
15415 _ACEOF
15416 ;;
15417 esac
15418 rm -rf conftest*
15419 fi
15420
15421
15422 fi
15423
15424
15425
15426 ac_checking=
15427 . ${srcdir}/../bfd/development.sh
15428 test "$development" = true && ac_checking=yes
15429 # Check whether --enable-checking was given.
15430 if test "${enable_checking+set}" = set; then :
15431 enableval=$enable_checking; case "${enableval}" in
15432 no|none) ac_checking= ;;
15433 *) ac_checking=yes ;;
15434 esac
15435 fi
15436 if test x$ac_checking != x ; then
15437
15438 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
15439
15440 fi
15441
15442
15443 # Check whether --with-lib-path was given.
15444 if test "${with_lib_path+set}" = set; then :
15445 withval=$with_lib_path; LIB_PATH=$withval
15446 fi
15447
15448 # Check whether --enable-targets was given.
15449 if test "${enable_targets+set}" = set; then :
15450 enableval=$enable_targets; case "${enableval}" in
15451 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
15452 ;;
15453 no) enable_targets= ;;
15454 *) enable_targets=$enableval ;;
15455 esac
15456 fi
15457
15458 # Check whether --enable-64-bit-bfd was given.
15459 if test "${enable_64_bit_bfd+set}" = set; then :
15460 enableval=$enable_64_bit_bfd; case $enableval in #(
15461 yes|no) :
15462 ;; #(
15463 *) :
15464 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
15465 *) :
15466 ;;
15467 esac
15468 else
15469 enable_64_bit_bfd=no
15470 fi
15471
15472
15473 if test "x$enable_64_bit_bfd" = "xno"; then :
15474 # The cast to long int works around a bug in the HP C Compiler
15475 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15476 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15477 # This bug is HP SR number 8606223364.
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15479 $as_echo_n "checking size of void *... " >&6; }
15480 if ${ac_cv_sizeof_void_p+:} false; then :
15481 $as_echo_n "(cached) " >&6
15482 else
15483 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15484
15485 else
15486 if test "$ac_cv_type_void_p" = yes; then
15487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15489 as_fn_error 77 "cannot compute sizeof (void *)
15490 See \`config.log' for more details" "$LINENO" 5; }
15491 else
15492 ac_cv_sizeof_void_p=0
15493 fi
15494 fi
15495
15496 fi
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15498 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15499
15500
15501
15502 cat >>confdefs.h <<_ACEOF
15503 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15504 _ACEOF
15505
15506
15507 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
15508 enable_64_bit_bfd=yes
15509 fi
15510
15511 fi
15512
15513 if test "x$enable_64_bit_bfd" = "xyes"; then
15514 ENABLE_BFD_64_BIT_TRUE=
15515 ENABLE_BFD_64_BIT_FALSE='#'
15516 else
15517 ENABLE_BFD_64_BIT_TRUE='#'
15518 ENABLE_BFD_64_BIT_FALSE=
15519 fi
15520
15521
15522
15523
15524 # Check whether --with-sysroot was given.
15525 if test "${with_sysroot+set}" = set; then :
15526 withval=$with_sysroot;
15527 case ${with_sysroot} in
15528 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15529 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15530 esac
15531
15532 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15533 use_sysroot=yes
15534
15535 if test "x$prefix" = xNONE; then
15536 test_prefix=/usr/local
15537 else
15538 test_prefix=$prefix
15539 fi
15540 if test "x$exec_prefix" = xNONE; then
15541 test_exec_prefix=$test_prefix
15542 else
15543 test_exec_prefix=$exec_prefix
15544 fi
15545 case ${TARGET_SYSTEM_ROOT} in
15546 "${test_prefix}"|"${test_prefix}/"*|\
15547 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15548 '${prefix}'|'${prefix}/'*|\
15549 '${exec_prefix}'|'${exec_prefix}/'*)
15550 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15551 TARGET_SYSTEM_ROOT_DEFINE="$t"
15552 ;;
15553 esac
15554
15555 else
15556
15557 use_sysroot=no
15558 TARGET_SYSTEM_ROOT=
15559 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15560
15561 fi
15562
15563
15564
15565
15566
15567 # Check whether --enable-gold was given.
15568 if test "${enable_gold+set}" = set; then :
15569 enableval=$enable_gold; case "${enableval}" in
15570 default)
15571 install_as_default=no
15572 installed_linker=ld.bfd
15573 ;;
15574 yes|no)
15575 install_as_default=yes
15576 installed_linker=ld.bfd
15577 ;;
15578 *)
15579 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
15580 ;;
15581 esac
15582 else
15583 install_as_default=yes
15584 installed_linker=ld.bfd
15585 fi
15586
15587
15588
15589
15590 # Check whether --enable-got was given.
15591 if test "${enable_got+set}" = set; then :
15592 enableval=$enable_got; case "${enableval}" in
15593 target | single | negative | multigot) got_handling=$enableval ;;
15594 *) as_fn_error $? "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15595 esac
15596 else
15597 got_handling=target
15598 fi
15599
15600
15601 case "${got_handling}" in
15602 target)
15603
15604 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15605 ;;
15606 single)
15607
15608 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15609 ;;
15610 negative)
15611
15612 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15613 ;;
15614 multigot)
15615
15616 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15617 ;;
15618 *) as_fn_error $? "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15619 esac
15620
15621 # PR gas/19109
15622 # Decide the default method for compressing debug sections.
15623 ac_default_compressed_debug_sections=unset
15624 # Provide a configure time option to override our default.
15625 # Check whether --enable-compressed_debug_sections was given.
15626 if test "${enable_compressed_debug_sections+set}" = set; then :
15627 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
15628 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
15629 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
15630 esac
15631 fi
15632
15633 # Select default compression algorithm.
15634 ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_GABI_ZLIB
15635 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
15636 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
15637 enableval=$enable_default_compressed_debug_sections_algorithm; case "${enableval}" in
15638 zstd) ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_ZSTD ;;
15639 esac
15640 fi
15641
15642 # Decide setting DT_RUNPATH instead of DT_RPATH by default
15643 ac_default_new_dtags=unset
15644 # Provide a configure time option to override our default.
15645 # Check whether --enable-new_dtags was given.
15646 if test "${enable_new_dtags+set}" = set; then :
15647 enableval=$enable_new_dtags; case "${enableval}" in
15648 yes) ac_default_new_dtags=1 ;;
15649 no) ac_default_new_dtags=0 ;;
15650 esac
15651 fi
15652
15653 # Decide if -z relro should be enabled in ELF linker by default.
15654 ac_default_ld_z_relro=unset
15655 # Provide a configure time option to override our default.
15656 # Check whether --enable-relro was given.
15657 if test "${enable_relro+set}" = set; then :
15658 enableval=$enable_relro; case "${enableval}" in
15659 yes) ac_default_ld_z_relro=1 ;;
15660 no) ac_default_ld_z_relro=0 ;;
15661 esac
15662 fi
15663
15664 # Decide if DT_TEXTREL check should be enabled in ELF linker.
15665 ac_default_ld_textrel_check=unset
15666 # Check whether --enable-textrel-check was given.
15667 if test "${enable_textrel_check+set}" = set; then :
15668 enableval=$enable_textrel_check; case "${enableval}" in
15669 yes|no|warning|error) ac_default_ld_textrel_check=${enableval} ;;
15670 esac
15671 fi
15672
15673
15674 # Decide if -z separate-code should be enabled in ELF linker by default.
15675 ac_default_ld_z_separate_code=unset
15676 # Check whether --enable-separate-code was given.
15677 if test "${enable_separate_code+set}" = set; then :
15678 enableval=$enable_separate_code; case "${enableval}" in
15679 yes) ac_default_ld_z_separate_code=1 ;;
15680 no) ac_default_ld_z_separate_code=0 ;;
15681 esac
15682 fi
15683
15684
15685
15686 # By default warn when an executable stack is created due to object files
15687 # requesting such, not when the user specifies -z execstack.
15688 ac_default_ld_warn_execstack=2
15689 # Check whether --enable-warn-execstack was given.
15690 if test "${enable_warn_execstack+set}" = set; then :
15691 enableval=$enable_warn_execstack; case "${enableval}" in
15692 yes) ac_default_ld_warn_execstack=1 ;;
15693 no) ac_default_ld_warn_execstack=0 ;;
15694 esac
15695 fi
15696
15697
15698 ac_default_ld_error_execstack=0
15699 # Check whether --enable-error-execstack was given.
15700 if test "${enable_error_execstack+set}" = set; then :
15701 enableval=$enable_error_execstack; case "${enableval}" in
15702 yes) ac_default_ld_error_execstack=1 ;;
15703 no) ac_default_ld_error_execstack=0 ;;
15704 esac
15705 fi
15706
15707
15708 ac_default_ld_warn_rwx_segments=unset
15709 # Check whether --enable-warn-rwx-segments was given.
15710 if test "${enable_warn_rwx_segments+set}" = set; then :
15711 enableval=$enable_warn_rwx_segments; case "${enableval}" in
15712 yes) ac_default_ld_warn_rwx_segments=1 ;;
15713 no) ac_default_ld_warn_rwx_segments=0 ;;
15714 esac
15715 fi
15716
15717
15718 ac_default_ld_error_rwx_segments=0
15719 # Check whether --enable-error-rwx-segments was given.
15720 if test "${enable_error_rwx_segments+set}" = set; then :
15721 enableval=$enable_error_rwx_segments; case "${enableval}" in
15722 yes) ac_default_ld_error_rwx_segments=1 ;;
15723 no) ac_default_ld_error_rwx_segments=0 ;;
15724 esac
15725 fi
15726
15727
15728 ac_default_ld_default_execstack=unset
15729 # Check whether --enable-default-execstack was given.
15730 if test "${enable_default_execstack+set}" = set; then :
15731 enableval=$enable_default_execstack; case "${enableval}" in
15732 yes) ac_default_ld_default_execstack=1 ;;
15733 no) ac_default_ld_default_execstack=0 ;;
15734 esac
15735 fi
15736
15737
15738
15739 # Decide if --error-handling-script should be supported.
15740 ac_support_error_handling_script=unset
15741 # Check whether --enable-error-handling-script was given.
15742 if test "${enable_error_handling_script+set}" = set; then :
15743 enableval=$enable_error_handling_script; case "${enableval}" in
15744 yes) ac_support_error_handling_script=1 ;;
15745 no) ac_support_error_handling_script=0 ;;
15746 esac
15747 fi
15748
15749
15750 # Decide which "--hash-style" to use by default
15751 # Provide a configure time option to override our default.
15752 # Check whether --enable-default-hash-style was given.
15753 if test "${enable_default_hash_style+set}" = set; then :
15754 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
15755 sysv | gnu | both) ;;
15756 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
15757 esac
15758 else
15759 case "${target}" in
15760 # Enable gnu hash only on GNU targets, but not mips
15761 mips*-*-*) enable_default_hash_style=sysv ;;
15762 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
15763 *) enable_default_hash_style=sysv ;;
15764 esac
15765 fi
15766
15767
15768 case "${enable_default_hash_style}" in
15769 sysv | both) ac_default_emit_sysv_hash=1 ;;
15770 *) ac_default_emit_sysv_hash=0 ;;
15771 esac
15772
15773 case "${enable_default_hash_style}" in
15774 gnu | both) ac_default_emit_gnu_hash=1 ;;
15775 *) ac_default_emit_gnu_hash=0 ;;
15776 esac
15777
15778 # Check whether --enable-initfini-array was given.
15779 if test "${enable_initfini_array+set}" = set; then :
15780 enableval=$enable_initfini_array; case "${enableval}" in
15781 yes|no) ;;
15782 *) as_fn_error $? "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
15783 esac
15784 else
15785 enable_initfini_array=yes
15786 fi
15787
15788
15789 if test $enable_initfini_array = yes; then
15790
15791 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
15792
15793 fi
15794
15795 # Check whether --enable-libctf was given.
15796 if test "${enable_libctf+set}" = set; then :
15797 enableval=$enable_libctf;
15798 case "$enableval" in
15799 yes|no) ;;
15800 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
15801 esac
15802
15803 else
15804 enable_libctf=yes
15805 fi
15806
15807
15808 if test "${enable_libctf}" = yes; then
15809
15810 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
15811
15812 fi
15813 if test "${enable_libctf}" = yes; then
15814 ENABLE_LIBCTF_TRUE=
15815 ENABLE_LIBCTF_FALSE='#'
15816 else
15817 ENABLE_LIBCTF_TRUE='#'
15818 ENABLE_LIBCTF_FALSE=
15819 fi
15820
15821
15822
15823 # Used to validate --package-metadata= input. Disabled by default.
15824 # Check whether --enable-jansson was given.
15825 if test "${enable_jansson+set}" = set; then :
15826 enableval=$enable_jansson; enable_jansson=$enableval
15827 else
15828 enable_jansson="no"
15829 fi
15830
15831
15832 if test "x$enable_jansson" != "xno"; then :
15833
15834 pkg_failed=no
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
15836 $as_echo_n "checking for jansson... " >&6; }
15837
15838 if test -n "$JANSSON_CFLAGS"; then
15839 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
15840 elif test -n "$PKG_CONFIG"; then
15841 if test -n "$PKG_CONFIG" && \
15842 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15843 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15844 ac_status=$?
15845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15846 test $ac_status = 0; }; then
15847 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
15848 test "x$?" != "x0" && pkg_failed=yes
15849 else
15850 pkg_failed=yes
15851 fi
15852 else
15853 pkg_failed=untried
15854 fi
15855 if test -n "$JANSSON_LIBS"; then
15856 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
15857 elif test -n "$PKG_CONFIG"; then
15858 if test -n "$PKG_CONFIG" && \
15859 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15860 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15861 ac_status=$?
15862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15863 test $ac_status = 0; }; then
15864 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
15865 test "x$?" != "x0" && pkg_failed=yes
15866 else
15867 pkg_failed=yes
15868 fi
15869 else
15870 pkg_failed=untried
15871 fi
15872
15873 if test $pkg_failed = no; then
15874 pkg_save_LDFLAGS="$LDFLAGS"
15875 LDFLAGS="$LDFLAGS $pkg_cv_JANSSON_LIBS"
15876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877 /* end confdefs.h. */
15878
15879 int
15880 main ()
15881 {
15882
15883 ;
15884 return 0;
15885 }
15886 _ACEOF
15887 if ac_fn_c_try_link "$LINENO"; then :
15888
15889 else
15890 pkg_failed=yes
15891 fi
15892 rm -f core conftest.err conftest.$ac_objext \
15893 conftest$ac_exeext conftest.$ac_ext
15894 LDFLAGS=$pkg_save_LDFLAGS
15895 fi
15896
15897
15898
15899 if test $pkg_failed = yes; then
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15901 $as_echo "no" >&6; }
15902
15903 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15904 _pkg_short_errors_supported=yes
15905 else
15906 _pkg_short_errors_supported=no
15907 fi
15908 if test $_pkg_short_errors_supported = yes; then
15909 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
15910 else
15911 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
15912 fi
15913 # Put the nasty error message in config.log where it belongs
15914 echo "$JANSSON_PKG_ERRORS" >&5
15915
15916 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
15917 elif test $pkg_failed = untried; then
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15919 $as_echo "no" >&6; }
15920 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
15921 else
15922 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
15923 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15925 $as_echo "yes" >&6; }
15926
15927
15928 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
15929
15930
15931
15932
15933 fi
15934
15935 fi
15936
15937
15938 # Set the 'development' global.
15939 . $srcdir/../bfd/development.sh
15940
15941 # Set acp_cpp_for_build variable
15942 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
15943
15944 # Default set of GCC warnings to enable.
15945 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15946 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15947
15948 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950 /* end confdefs.h. */
15951 __GNUC__
15952 _ACEOF
15953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15954 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
15955
15956 else
15957 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
15958 fi
15959 rm -f conftest*
15960
15961
15962 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15964 /* end confdefs.h. */
15965 __GNUC__
15966 _ACEOF
15967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15968 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
15969
15970 else
15971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972 /* end confdefs.h. */
15973 __clang__
15974 _ACEOF
15975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15976 $EGREP "^__clang__$" >/dev/null 2>&1; then :
15977 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15978 fi
15979 rm -f conftest*
15980
15981 fi
15982 rm -f conftest*
15983
15984
15985 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15986 WARN_WRITE_STRINGS=""
15987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988 /* end confdefs.h. */
15989 __GNUC__
15990 _ACEOF
15991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15992 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
15993
15994 else
15995 WARN_WRITE_STRINGS="-Wwrite-strings"
15996 fi
15997 rm -f conftest*
15998
15999
16000 # Verify CC_FOR_BUILD to be compatible with warning flags
16001
16002 # Add -Wshadow 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_for_build conftest.$ac_ext") 2>&5 |
16008 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
16009
16010 else
16011 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
16012 fi
16013 rm -f conftest*
16014
16015
16016 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
16017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16018 /* end confdefs.h. */
16019 __GNUC__
16020 _ACEOF
16021 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16022 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
16023
16024 else
16025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16026 /* end confdefs.h. */
16027 __clang__
16028 _ACEOF
16029 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16030 $EGREP "^__clang__$" >/dev/null 2>&1; then :
16031 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
16032 fi
16033 rm -f conftest*
16034
16035 fi
16036 rm -f conftest*
16037
16038
16039 # Check whether --enable-werror was given.
16040 if test "${enable_werror+set}" = set; then :
16041 enableval=$enable_werror; case "${enableval}" in
16042 yes | y) ERROR_ON_WARNING="yes" ;;
16043 no | n) ERROR_ON_WARNING="no" ;;
16044 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16045 esac
16046 fi
16047
16048
16049 # Disable -Wformat by default when using gcc on mingw
16050 case "${host}" in
16051 *-*-mingw32*)
16052 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16053 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
16054 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
16055 fi
16056 ;;
16057 *) ;;
16058 esac
16059
16060 # Enable -Werror by default when using gcc. Turn it off for releases.
16061 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
16062 ERROR_ON_WARNING=yes
16063 fi
16064
16065 NO_WERROR=
16066 if test "${ERROR_ON_WARNING}" = yes ; then
16067 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
16068 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
16069 NO_WERROR="-Wno-error"
16070 fi
16071
16072 if test "${GCC}" = yes ; then
16073 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
16074 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
16075 fi
16076
16077 # Check whether --enable-build-warnings was given.
16078 if test "${enable_build_warnings+set}" = set; then :
16079 enableval=$enable_build_warnings; case "${enableval}" in
16080 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
16081 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
16082 no) if test "${GCC}" = yes ; then
16083 WARN_CFLAGS="-w"
16084 WARN_CFLAGS_FOR_BUILD="-w"
16085 fi;;
16086 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16087 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
16088 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
16089 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16090 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
16091 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
16092 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
16093 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16094 esac
16095 fi
16096
16097
16098 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
16099 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
16100 fi
16101
16102
16103
16104
16105
16106
16107
16108
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
16110 $as_echo_n "checking for LC_MESSAGES... " >&6; }
16111 if ${am_cv_val_LC_MESSAGES+:} false; then :
16112 $as_echo_n "(cached) " >&6
16113 else
16114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16115 /* end confdefs.h. */
16116 #include <locale.h>
16117 int
16118 main ()
16119 {
16120 return LC_MESSAGES
16121 ;
16122 return 0;
16123 }
16124 _ACEOF
16125 if ac_fn_c_try_link "$LINENO"; then :
16126 am_cv_val_LC_MESSAGES=yes
16127 else
16128 am_cv_val_LC_MESSAGES=no
16129 fi
16130 rm -f core conftest.err conftest.$ac_objext \
16131 conftest$ac_exeext conftest.$ac_ext
16132 fi
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
16134 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
16135 if test $am_cv_val_LC_MESSAGES = yes; then
16136
16137 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
16138
16139 fi
16140
16141
16142 ac_config_headers="$ac_config_headers config.h:config.in"
16143
16144
16145 # PR 14072
16146
16147
16148 if test -z "$target" ; then
16149 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
16150 fi
16151 if test -z "$host" ; then
16152 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
16153 fi
16154
16155 # host-specific stuff:
16156
16157 ALL_LINGUAS="bg da de es fi fr ga id it ja pt_BR ru sr sv tr uk vi zh_CN zh_TW"
16158
16159 MKINSTALLDIRS=
16160 if test -n "$ac_aux_dir"; then
16161 case "$ac_aux_dir" in
16162 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16163 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16164 esac
16165 fi
16166 if test -z "$MKINSTALLDIRS"; then
16167 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16168 fi
16169
16170
16171
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16173 $as_echo_n "checking whether NLS is requested... " >&6; }
16174 # Check whether --enable-nls was given.
16175 if test "${enable_nls+set}" = set; then :
16176 enableval=$enable_nls; USE_NLS=$enableval
16177 else
16178 USE_NLS=yes
16179 fi
16180
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16182 $as_echo "$USE_NLS" >&6; }
16183
16184
16185
16186
16187
16188
16189 # Prepare PATH_SEPARATOR.
16190 # The user is always right.
16191 if test "${PATH_SEPARATOR+set}" != set; then
16192 echo "#! /bin/sh" >conf$$.sh
16193 echo "exit 0" >>conf$$.sh
16194 chmod +x conf$$.sh
16195 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16196 PATH_SEPARATOR=';'
16197 else
16198 PATH_SEPARATOR=:
16199 fi
16200 rm -f conf$$.sh
16201 fi
16202
16203 # Find out how to test for executable files. Don't use a zero-byte file,
16204 # as systems may use methods other than mode bits to determine executability.
16205 cat >conf$$.file <<_ASEOF
16206 #! /bin/sh
16207 exit 0
16208 _ASEOF
16209 chmod +x conf$$.file
16210 if test -x conf$$.file >/dev/null 2>&1; then
16211 ac_executable_p="test -x"
16212 else
16213 ac_executable_p="test -f"
16214 fi
16215 rm -f conf$$.file
16216
16217 # Extract the first word of "msgfmt", so it can be a program name with args.
16218 set dummy msgfmt; ac_word=$2
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16220 $as_echo_n "checking for $ac_word... " >&6; }
16221 if ${ac_cv_path_MSGFMT+:} false; then :
16222 $as_echo_n "(cached) " >&6
16223 else
16224 case "$MSGFMT" in
16225 [\\/]* | ?:[\\/]*)
16226 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16227 ;;
16228 *)
16229 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16230 for ac_dir in $PATH; do
16231 IFS="$ac_save_IFS"
16232 test -z "$ac_dir" && ac_dir=.
16233 for ac_exec_ext in '' $ac_executable_extensions; do
16234 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16235 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
16236 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16237 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16238 break 2
16239 fi
16240 fi
16241 done
16242 done
16243 IFS="$ac_save_IFS"
16244 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16245 ;;
16246 esac
16247 fi
16248 MSGFMT="$ac_cv_path_MSGFMT"
16249 if test "$MSGFMT" != ":"; then
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16251 $as_echo "$MSGFMT" >&6; }
16252 else
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16254 $as_echo "no" >&6; }
16255 fi
16256
16257 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16258 set dummy gmsgfmt; 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_GMSGFMT+:} false; then :
16262 $as_echo_n "(cached) " >&6
16263 else
16264 case $GMSGFMT in
16265 [\\/]* | ?:[\\/]*)
16266 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16267 ;;
16268 *)
16269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16270 for as_dir in $PATH
16271 do
16272 IFS=$as_save_IFS
16273 test -z "$as_dir" && as_dir=.
16274 for ac_exec_ext in '' $ac_executable_extensions; do
16275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16276 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16278 break 2
16279 fi
16280 done
16281 done
16282 IFS=$as_save_IFS
16283
16284 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16285 ;;
16286 esac
16287 fi
16288 GMSGFMT=$ac_cv_path_GMSGFMT
16289 if test -n "$GMSGFMT"; then
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16291 $as_echo "$GMSGFMT" >&6; }
16292 else
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16294 $as_echo "no" >&6; }
16295 fi
16296
16297
16298
16299
16300 # Prepare PATH_SEPARATOR.
16301 # The user is always right.
16302 if test "${PATH_SEPARATOR+set}" != set; then
16303 echo "#! /bin/sh" >conf$$.sh
16304 echo "exit 0" >>conf$$.sh
16305 chmod +x conf$$.sh
16306 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16307 PATH_SEPARATOR=';'
16308 else
16309 PATH_SEPARATOR=:
16310 fi
16311 rm -f conf$$.sh
16312 fi
16313
16314 # Find out how to test for executable files. Don't use a zero-byte file,
16315 # as systems may use methods other than mode bits to determine executability.
16316 cat >conf$$.file <<_ASEOF
16317 #! /bin/sh
16318 exit 0
16319 _ASEOF
16320 chmod +x conf$$.file
16321 if test -x conf$$.file >/dev/null 2>&1; then
16322 ac_executable_p="test -x"
16323 else
16324 ac_executable_p="test -f"
16325 fi
16326 rm -f conf$$.file
16327
16328 # Extract the first word of "xgettext", so it can be a program name with args.
16329 set dummy xgettext; ac_word=$2
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16331 $as_echo_n "checking for $ac_word... " >&6; }
16332 if ${ac_cv_path_XGETTEXT+:} false; then :
16333 $as_echo_n "(cached) " >&6
16334 else
16335 case "$XGETTEXT" in
16336 [\\/]* | ?:[\\/]*)
16337 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16338 ;;
16339 *)
16340 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16341 for ac_dir in $PATH; do
16342 IFS="$ac_save_IFS"
16343 test -z "$ac_dir" && ac_dir=.
16344 for ac_exec_ext in '' $ac_executable_extensions; do
16345 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16346 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16347 (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
16348 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16349 break 2
16350 fi
16351 fi
16352 done
16353 done
16354 IFS="$ac_save_IFS"
16355 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16356 ;;
16357 esac
16358 fi
16359 XGETTEXT="$ac_cv_path_XGETTEXT"
16360 if test "$XGETTEXT" != ":"; then
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16362 $as_echo "$XGETTEXT" >&6; }
16363 else
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16365 $as_echo "no" >&6; }
16366 fi
16367
16368 rm -f messages.po
16369
16370
16371 # Prepare PATH_SEPARATOR.
16372 # The user is always right.
16373 if test "${PATH_SEPARATOR+set}" != set; then
16374 echo "#! /bin/sh" >conf$$.sh
16375 echo "exit 0" >>conf$$.sh
16376 chmod +x conf$$.sh
16377 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16378 PATH_SEPARATOR=';'
16379 else
16380 PATH_SEPARATOR=:
16381 fi
16382 rm -f conf$$.sh
16383 fi
16384
16385 # Find out how to test for executable files. Don't use a zero-byte file,
16386 # as systems may use methods other than mode bits to determine executability.
16387 cat >conf$$.file <<_ASEOF
16388 #! /bin/sh
16389 exit 0
16390 _ASEOF
16391 chmod +x conf$$.file
16392 if test -x conf$$.file >/dev/null 2>&1; then
16393 ac_executable_p="test -x"
16394 else
16395 ac_executable_p="test -f"
16396 fi
16397 rm -f conf$$.file
16398
16399 # Extract the first word of "msgmerge", so it can be a program name with args.
16400 set dummy msgmerge; ac_word=$2
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16402 $as_echo_n "checking for $ac_word... " >&6; }
16403 if ${ac_cv_path_MSGMERGE+:} false; then :
16404 $as_echo_n "(cached) " >&6
16405 else
16406 case "$MSGMERGE" in
16407 [\\/]* | ?:[\\/]*)
16408 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16409 ;;
16410 *)
16411 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16412 for ac_dir in $PATH; do
16413 IFS="$ac_save_IFS"
16414 test -z "$ac_dir" && ac_dir=.
16415 for ac_exec_ext in '' $ac_executable_extensions; do
16416 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16417 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16418 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16419 break 2
16420 fi
16421 fi
16422 done
16423 done
16424 IFS="$ac_save_IFS"
16425 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16426 ;;
16427 esac
16428 fi
16429 MSGMERGE="$ac_cv_path_MSGMERGE"
16430 if test "$MSGMERGE" != ":"; then
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16432 $as_echo "$MSGMERGE" >&6; }
16433 else
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16435 $as_echo "no" >&6; }
16436 fi
16437
16438
16439 if test "$GMSGFMT" != ":"; then
16440 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16441 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16442 : ;
16443 else
16444 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16446 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16447 GMSGFMT=":"
16448 fi
16449 fi
16450
16451 if test "$XGETTEXT" != ":"; then
16452 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16453 (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
16454 : ;
16455 else
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16457 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16458 XGETTEXT=":"
16459 fi
16460 rm -f messages.po
16461 fi
16462
16463 ac_config_commands="$ac_config_commands default-1"
16464
16465
16466
16467 if test "X$prefix" = "XNONE"; then
16468 acl_final_prefix="$ac_default_prefix"
16469 else
16470 acl_final_prefix="$prefix"
16471 fi
16472 if test "X$exec_prefix" = "XNONE"; then
16473 acl_final_exec_prefix='${prefix}'
16474 else
16475 acl_final_exec_prefix="$exec_prefix"
16476 fi
16477 acl_save_prefix="$prefix"
16478 prefix="$acl_final_prefix"
16479 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16480 prefix="$acl_save_prefix"
16481
16482
16483 # Check whether --with-gnu-ld was given.
16484 if test "${with_gnu_ld+set}" = set; then :
16485 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16486 else
16487 with_gnu_ld=no
16488 fi
16489
16490 # Prepare PATH_SEPARATOR.
16491 # The user is always right.
16492 if test "${PATH_SEPARATOR+set}" != set; then
16493 echo "#! /bin/sh" >conf$$.sh
16494 echo "exit 0" >>conf$$.sh
16495 chmod +x conf$$.sh
16496 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16497 PATH_SEPARATOR=';'
16498 else
16499 PATH_SEPARATOR=:
16500 fi
16501 rm -f conf$$.sh
16502 fi
16503 ac_prog=ld
16504 if test "$GCC" = yes; then
16505 # Check if gcc -print-prog-name=ld gives a path.
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16507 $as_echo_n "checking for ld used by GCC... " >&6; }
16508 case $host in
16509 *-*-mingw*)
16510 # gcc leaves a trailing carriage return which upsets mingw
16511 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16512 *)
16513 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16514 esac
16515 case $ac_prog in
16516 # Accept absolute paths.
16517 [\\/]* | [A-Za-z]:[\\/]*)
16518 re_direlt='/[^/][^/]*/\.\./'
16519 # Canonicalize the path of ld
16520 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16521 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16522 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16523 done
16524 test -z "$LD" && LD="$ac_prog"
16525 ;;
16526 "")
16527 # If it fails, then pretend we aren't using GCC.
16528 ac_prog=ld
16529 ;;
16530 *)
16531 # If it is relative, then search for the first ld in PATH.
16532 with_gnu_ld=unknown
16533 ;;
16534 esac
16535 elif test "$with_gnu_ld" = yes; then
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16537 $as_echo_n "checking for GNU ld... " >&6; }
16538 else
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16540 $as_echo_n "checking for non-GNU ld... " >&6; }
16541 fi
16542 if ${acl_cv_path_LD+:} false; then :
16543 $as_echo_n "(cached) " >&6
16544 else
16545 if test -z "$LD"; then
16546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16547 for ac_dir in $PATH; do
16548 test -z "$ac_dir" && ac_dir=.
16549 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16550 acl_cv_path_LD="$ac_dir/$ac_prog"
16551 # Check to see if the program is GNU ld. I'd rather use --version,
16552 # but apparently some GNU ld's only accept -v.
16553 # Break only if it was the GNU/non-GNU ld that we prefer.
16554 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
16555 test "$with_gnu_ld" != no && break
16556 else
16557 test "$with_gnu_ld" != yes && break
16558 fi
16559 fi
16560 done
16561 IFS="$ac_save_ifs"
16562 else
16563 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16564 fi
16565 fi
16566
16567 LD="$acl_cv_path_LD"
16568 if test -n "$LD"; then
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16570 $as_echo "$LD" >&6; }
16571 else
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16573 $as_echo "no" >&6; }
16574 fi
16575 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16577 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16578 if ${acl_cv_prog_gnu_ld+:} false; then :
16579 $as_echo_n "(cached) " >&6
16580 else
16581 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16582 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
16583 acl_cv_prog_gnu_ld=yes
16584 else
16585 acl_cv_prog_gnu_ld=no
16586 fi
16587 fi
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16589 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16590 with_gnu_ld=$acl_cv_prog_gnu_ld
16591
16592
16593
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16595 $as_echo_n "checking for shared library run path origin... " >&6; }
16596 if ${acl_cv_rpath+:} false; then :
16597 $as_echo_n "(cached) " >&6
16598 else
16599
16600 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16601 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16602 . ./conftest.sh
16603 rm -f ./conftest.sh
16604 acl_cv_rpath=done
16605
16606 fi
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16608 $as_echo "$acl_cv_rpath" >&6; }
16609 wl="$acl_cv_wl"
16610 libext="$acl_cv_libext"
16611 shlibext="$acl_cv_shlibext"
16612 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16613 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16614 hardcode_direct="$acl_cv_hardcode_direct"
16615 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16616 # Check whether --enable-rpath was given.
16617 if test "${enable_rpath+set}" = set; then :
16618 enableval=$enable_rpath; :
16619 else
16620 enable_rpath=yes
16621 fi
16622
16623
16624
16625
16626
16627
16628
16629
16630 use_additional=yes
16631
16632 acl_save_prefix="$prefix"
16633 prefix="$acl_final_prefix"
16634 acl_save_exec_prefix="$exec_prefix"
16635 exec_prefix="$acl_final_exec_prefix"
16636
16637 eval additional_includedir=\"$includedir\"
16638 eval additional_libdir=\"$libdir\"
16639
16640 exec_prefix="$acl_save_exec_prefix"
16641 prefix="$acl_save_prefix"
16642
16643
16644 # Check whether --with-libiconv-prefix was given.
16645 if test "${with_libiconv_prefix+set}" = set; then :
16646 withval=$with_libiconv_prefix;
16647 if test "X$withval" = "Xno"; then
16648 use_additional=no
16649 else
16650 if test "X$withval" = "X"; then
16651
16652 acl_save_prefix="$prefix"
16653 prefix="$acl_final_prefix"
16654 acl_save_exec_prefix="$exec_prefix"
16655 exec_prefix="$acl_final_exec_prefix"
16656
16657 eval additional_includedir=\"$includedir\"
16658 eval additional_libdir=\"$libdir\"
16659
16660 exec_prefix="$acl_save_exec_prefix"
16661 prefix="$acl_save_prefix"
16662
16663 else
16664 additional_includedir="$withval/include"
16665 additional_libdir="$withval/lib"
16666 fi
16667 fi
16668
16669 fi
16670
16671
16672 # Check whether --with-libiconv-type was given.
16673 if test "${with_libiconv_type+set}" = set; then :
16674 withval=$with_libiconv_type; with_libiconv_type=$withval
16675 else
16676 with_libiconv_type=auto
16677 fi
16678
16679 lib_type=`eval echo \$with_libiconv_type`
16680
16681 LIBICONV=
16682 LTLIBICONV=
16683 INCICONV=
16684 rpathdirs=
16685 ltrpathdirs=
16686 names_already_handled=
16687 names_next_round='iconv '
16688 while test -n "$names_next_round"; do
16689 names_this_round="$names_next_round"
16690 names_next_round=
16691 for name in $names_this_round; do
16692 already_handled=
16693 for n in $names_already_handled; do
16694 if test "$n" = "$name"; then
16695 already_handled=yes
16696 break
16697 fi
16698 done
16699 if test -z "$already_handled"; then
16700 names_already_handled="$names_already_handled $name"
16701 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16702 eval value=\"\$HAVE_LIB$uppername\"
16703 if test -n "$value"; then
16704 if test "$value" = yes; then
16705 eval value=\"\$LIB$uppername\"
16706 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16707 eval value=\"\$LTLIB$uppername\"
16708 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16709 else
16710 :
16711 fi
16712 else
16713 found_dir=
16714 found_la=
16715 found_so=
16716 found_a=
16717 if test $use_additional = yes; then
16718 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
16719 found_dir="$additional_libdir"
16720 found_so="$additional_libdir/lib$name.$shlibext"
16721 if test -f "$additional_libdir/lib$name.la"; then
16722 found_la="$additional_libdir/lib$name.la"
16723 fi
16724 elif test x$lib_type != xshared; then
16725 if test -f "$additional_libdir/lib$name.$libext"; then
16726 found_dir="$additional_libdir"
16727 found_a="$additional_libdir/lib$name.$libext"
16728 if test -f "$additional_libdir/lib$name.la"; then
16729 found_la="$additional_libdir/lib$name.la"
16730 fi
16731 fi
16732 fi
16733 fi
16734 if test "X$found_dir" = "X"; then
16735 for x in $LDFLAGS $LTLIBICONV; do
16736
16737 acl_save_prefix="$prefix"
16738 prefix="$acl_final_prefix"
16739 acl_save_exec_prefix="$exec_prefix"
16740 exec_prefix="$acl_final_exec_prefix"
16741 eval x=\"$x\"
16742 exec_prefix="$acl_save_exec_prefix"
16743 prefix="$acl_save_prefix"
16744
16745 case "$x" in
16746 -L*)
16747 dir=`echo "X$x" | sed -e 's/^X-L//'`
16748 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
16749 found_dir="$dir"
16750 found_so="$dir/lib$name.$shlibext"
16751 if test -f "$dir/lib$name.la"; then
16752 found_la="$dir/lib$name.la"
16753 fi
16754 elif test x$lib_type != xshared; then
16755 if test -f "$dir/lib$name.$libext"; then
16756 found_dir="$dir"
16757 found_a="$dir/lib$name.$libext"
16758 if test -f "$dir/lib$name.la"; then
16759 found_la="$dir/lib$name.la"
16760 fi
16761 fi
16762 fi
16763 ;;
16764 esac
16765 if test "X$found_dir" != "X"; then
16766 break
16767 fi
16768 done
16769 fi
16770 if test "X$found_dir" != "X"; then
16771 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16772 if test "X$found_so" != "X"; then
16773 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16774 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16775 else
16776 haveit=
16777 for x in $ltrpathdirs; do
16778 if test "X$x" = "X$found_dir"; then
16779 haveit=yes
16780 break
16781 fi
16782 done
16783 if test -z "$haveit"; then
16784 ltrpathdirs="$ltrpathdirs $found_dir"
16785 fi
16786 if test "$hardcode_direct" = yes; then
16787 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16788 else
16789 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16790 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16791 haveit=
16792 for x in $rpathdirs; do
16793 if test "X$x" = "X$found_dir"; then
16794 haveit=yes
16795 break
16796 fi
16797 done
16798 if test -z "$haveit"; then
16799 rpathdirs="$rpathdirs $found_dir"
16800 fi
16801 else
16802 haveit=
16803 for x in $LDFLAGS $LIBICONV; do
16804
16805 acl_save_prefix="$prefix"
16806 prefix="$acl_final_prefix"
16807 acl_save_exec_prefix="$exec_prefix"
16808 exec_prefix="$acl_final_exec_prefix"
16809 eval x=\"$x\"
16810 exec_prefix="$acl_save_exec_prefix"
16811 prefix="$acl_save_prefix"
16812
16813 if test "X$x" = "X-L$found_dir"; then
16814 haveit=yes
16815 break
16816 fi
16817 done
16818 if test -z "$haveit"; then
16819 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16820 fi
16821 if test "$hardcode_minus_L" != no; then
16822 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16823 else
16824 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16825 fi
16826 fi
16827 fi
16828 fi
16829 else
16830 if test "X$found_a" != "X"; then
16831 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16832 else
16833 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16834 fi
16835 fi
16836 additional_includedir=
16837 case "$found_dir" in
16838 */lib | */lib/)
16839 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16840 additional_includedir="$basedir/include"
16841 ;;
16842 esac
16843 if test "X$additional_includedir" != "X"; then
16844 if test "X$additional_includedir" != "X/usr/include"; then
16845 haveit=
16846 if test "X$additional_includedir" = "X/usr/local/include"; then
16847 if test -n "$GCC"; then
16848 case $host_os in
16849 linux*) haveit=yes;;
16850 esac
16851 fi
16852 fi
16853 if test -z "$haveit"; then
16854 for x in $CPPFLAGS $INCICONV; do
16855
16856 acl_save_prefix="$prefix"
16857 prefix="$acl_final_prefix"
16858 acl_save_exec_prefix="$exec_prefix"
16859 exec_prefix="$acl_final_exec_prefix"
16860 eval x=\"$x\"
16861 exec_prefix="$acl_save_exec_prefix"
16862 prefix="$acl_save_prefix"
16863
16864 if test "X$x" = "X-I$additional_includedir"; then
16865 haveit=yes
16866 break
16867 fi
16868 done
16869 if test -z "$haveit"; then
16870 if test -d "$additional_includedir"; then
16871 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16872 fi
16873 fi
16874 fi
16875 fi
16876 fi
16877 if test -n "$found_la"; then
16878 save_libdir="$libdir"
16879 case "$found_la" in
16880 */* | *\\*) . "$found_la" ;;
16881 *) . "./$found_la" ;;
16882 esac
16883 libdir="$save_libdir"
16884 for dep in $dependency_libs; do
16885 case "$dep" in
16886 -L*)
16887 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16888 if test "X$additional_libdir" != "X/usr/lib"; then
16889 haveit=
16890 if test "X$additional_libdir" = "X/usr/local/lib"; then
16891 if test -n "$GCC"; then
16892 case $host_os in
16893 linux*) haveit=yes;;
16894 esac
16895 fi
16896 fi
16897 if test -z "$haveit"; then
16898 haveit=
16899 for x in $LDFLAGS $LIBICONV; do
16900
16901 acl_save_prefix="$prefix"
16902 prefix="$acl_final_prefix"
16903 acl_save_exec_prefix="$exec_prefix"
16904 exec_prefix="$acl_final_exec_prefix"
16905 eval x=\"$x\"
16906 exec_prefix="$acl_save_exec_prefix"
16907 prefix="$acl_save_prefix"
16908
16909 if test "X$x" = "X-L$additional_libdir"; then
16910 haveit=yes
16911 break
16912 fi
16913 done
16914 if test -z "$haveit"; then
16915 if test -d "$additional_libdir"; then
16916 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16917 fi
16918 fi
16919 haveit=
16920 for x in $LDFLAGS $LTLIBICONV; do
16921
16922 acl_save_prefix="$prefix"
16923 prefix="$acl_final_prefix"
16924 acl_save_exec_prefix="$exec_prefix"
16925 exec_prefix="$acl_final_exec_prefix"
16926 eval x=\"$x\"
16927 exec_prefix="$acl_save_exec_prefix"
16928 prefix="$acl_save_prefix"
16929
16930 if test "X$x" = "X-L$additional_libdir"; then
16931 haveit=yes
16932 break
16933 fi
16934 done
16935 if test -z "$haveit"; then
16936 if test -d "$additional_libdir"; then
16937 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16938 fi
16939 fi
16940 fi
16941 fi
16942 ;;
16943 -R*)
16944 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16945 if test "$enable_rpath" != no; then
16946 haveit=
16947 for x in $rpathdirs; do
16948 if test "X$x" = "X$dir"; then
16949 haveit=yes
16950 break
16951 fi
16952 done
16953 if test -z "$haveit"; then
16954 rpathdirs="$rpathdirs $dir"
16955 fi
16956 haveit=
16957 for x in $ltrpathdirs; do
16958 if test "X$x" = "X$dir"; then
16959 haveit=yes
16960 break
16961 fi
16962 done
16963 if test -z "$haveit"; then
16964 ltrpathdirs="$ltrpathdirs $dir"
16965 fi
16966 fi
16967 ;;
16968 -l*)
16969 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16970 ;;
16971 *.la)
16972 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16973 ;;
16974 *)
16975 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16976 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16977 ;;
16978 esac
16979 done
16980 fi
16981 else
16982 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
16983 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16984 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16985 else
16986 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
16987 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
16988 fi
16989 fi
16990 fi
16991 fi
16992 done
16993 done
16994 if test "X$rpathdirs" != "X"; then
16995 if test -n "$hardcode_libdir_separator"; then
16996 alldirs=
16997 for found_dir in $rpathdirs; do
16998 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16999 done
17000 acl_save_libdir="$libdir"
17001 libdir="$alldirs"
17002 eval flag=\"$hardcode_libdir_flag_spec\"
17003 libdir="$acl_save_libdir"
17004 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17005 else
17006 for found_dir in $rpathdirs; do
17007 acl_save_libdir="$libdir"
17008 libdir="$found_dir"
17009 eval flag=\"$hardcode_libdir_flag_spec\"
17010 libdir="$acl_save_libdir"
17011 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17012 done
17013 fi
17014 fi
17015 if test "X$ltrpathdirs" != "X"; then
17016 for found_dir in $ltrpathdirs; do
17017 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17018 done
17019 fi
17020
17021
17022
17023
17024
17025 if test -f ../gettext/uninstalled-config.sh; then
17026 relative_builddir='$(top_builddir)/../gettext'
17027 . ../gettext/uninstalled-config.sh
17028 else
17029 # The sister gettext directory doesn't exist and won't collect information on
17030 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17055 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17056 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
17057 $as_echo_n "(cached) " >&6
17058 else
17059 gt_save_LIBS="$LIBS"
17060 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17062 /* end confdefs.h. */
17063 #include <CoreFoundation/CFPreferences.h>
17064 int
17065 main ()
17066 {
17067 CFPreferencesCopyAppValue(NULL, NULL)
17068 ;
17069 return 0;
17070 }
17071 _ACEOF
17072 if ac_fn_c_try_link "$LINENO"; then :
17073 gt_cv_func_CFPreferencesCopyAppValue=yes
17074 else
17075 gt_cv_func_CFPreferencesCopyAppValue=no
17076 fi
17077 rm -f core conftest.err conftest.$ac_objext \
17078 conftest$ac_exeext conftest.$ac_ext
17079 LIBS="$gt_save_LIBS"
17080 fi
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17082 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17083 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17084
17085 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17086
17087 fi
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
17089 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
17090 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
17091 $as_echo_n "(cached) " >&6
17092 else
17093 gt_save_LIBS="$LIBS"
17094 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17096 /* end confdefs.h. */
17097 #include <CoreFoundation/CFLocale.h>
17098 int
17099 main ()
17100 {
17101 CFLocaleCopyPreferredLanguages();
17102 ;
17103 return 0;
17104 }
17105 _ACEOF
17106 if ac_fn_c_try_link "$LINENO"; then :
17107 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
17108 else
17109 gt_cv_func_CFLocaleCopyPreferredLanguages=no
17110 fi
17111 rm -f core conftest.err conftest.$ac_objext \
17112 conftest$ac_exeext conftest.$ac_ext
17113 LIBS="$gt_save_LIBS"
17114 fi
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
17116 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
17117 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17118
17119 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
17120
17121 fi
17122 INTL_MACOSX_LIBS=
17123 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
17124 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17125 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
17126 fi
17127
17128
17129
17130
17131
17132
17133 LIBINTL=
17134 LTLIBINTL=
17135 POSUB=
17136
17137 case " $gt_needs " in
17138 *" need-formatstring-macros "*) gt_api_version=3 ;;
17139 *" need-ngettext "*) gt_api_version=2 ;;
17140 *) gt_api_version=1 ;;
17141 esac
17142 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
17143 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
17144
17145 if test "$USE_NLS" = "yes"; then
17146 gt_use_preinstalled_gnugettext=no
17147
17148
17149 if test $gt_api_version -ge 3; then
17150 gt_revision_test_code='
17151 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17152 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
17153 #endif
17154 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
17155 '
17156 else
17157 gt_revision_test_code=
17158 fi
17159 if test $gt_api_version -ge 2; then
17160 gt_expression_test_code=' + * ngettext ("", "", 0)'
17161 else
17162 gt_expression_test_code=
17163 fi
17164
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17166 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17167 if eval \${$gt_func_gnugettext_libc+:} false; then :
17168 $as_echo_n "(cached) " >&6
17169 else
17170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17171 /* end confdefs.h. */
17172
17173 #include <libintl.h>
17174 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17175 extern int _nl_msg_cat_cntr;
17176 extern int *_nl_domain_bindings;
17177 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
17178 #else
17179 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17180 #endif
17181 $gt_revision_test_code
17182
17183 int
17184 main ()
17185 {
17186
17187 bindtextdomain ("", "");
17188 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17189
17190 ;
17191 return 0;
17192 }
17193 _ACEOF
17194 if ac_fn_c_try_link "$LINENO"; then :
17195 eval "$gt_func_gnugettext_libc=yes"
17196 else
17197 eval "$gt_func_gnugettext_libc=no"
17198 fi
17199 rm -f core conftest.err conftest.$ac_objext \
17200 conftest$ac_exeext conftest.$ac_ext
17201 fi
17202 eval ac_res=\$$gt_func_gnugettext_libc
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17204 $as_echo "$ac_res" >&6; }
17205
17206 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
17207
17208
17209
17210
17211
17212 am_save_CPPFLAGS="$CPPFLAGS"
17213
17214 for element in $INCICONV; do
17215 haveit=
17216 for x in $CPPFLAGS; do
17217
17218 acl_save_prefix="$prefix"
17219 prefix="$acl_final_prefix"
17220 acl_save_exec_prefix="$exec_prefix"
17221 exec_prefix="$acl_final_exec_prefix"
17222 eval x=\"$x\"
17223 exec_prefix="$acl_save_exec_prefix"
17224 prefix="$acl_save_prefix"
17225
17226 if test "X$x" = "X$element"; then
17227 haveit=yes
17228 break
17229 fi
17230 done
17231 if test -z "$haveit"; then
17232 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17233 fi
17234 done
17235
17236
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17238 $as_echo_n "checking for iconv... " >&6; }
17239 if ${am_cv_func_iconv+:} false; then :
17240 $as_echo_n "(cached) " >&6
17241 else
17242
17243 am_cv_func_iconv="no, consider installing GNU libiconv"
17244 am_cv_lib_iconv=no
17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h. */
17247
17248 #include <stdlib.h>
17249 #include <iconv.h>
17250
17251 int
17252 main ()
17253 {
17254 iconv_t cd = iconv_open("","");
17255 iconv(cd,NULL,NULL,NULL,NULL);
17256 iconv_close(cd);
17257 ;
17258 return 0;
17259 }
17260 _ACEOF
17261 if ac_fn_c_try_link "$LINENO"; then :
17262 am_cv_func_iconv=yes
17263 fi
17264 rm -f core conftest.err conftest.$ac_objext \
17265 conftest$ac_exeext conftest.$ac_ext
17266 if test "$am_cv_func_iconv" != yes; then
17267 am_save_LIBS="$LIBS"
17268 LIBS="$LIBS $LIBICONV"
17269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17270 /* end confdefs.h. */
17271
17272 #include <stdlib.h>
17273 #include <iconv.h>
17274
17275 int
17276 main ()
17277 {
17278 iconv_t cd = iconv_open("","");
17279 iconv(cd,NULL,NULL,NULL,NULL);
17280 iconv_close(cd);
17281 ;
17282 return 0;
17283 }
17284 _ACEOF
17285 if ac_fn_c_try_link "$LINENO"; then :
17286 am_cv_lib_iconv=yes
17287 am_cv_func_iconv=yes
17288 fi
17289 rm -f core conftest.err conftest.$ac_objext \
17290 conftest$ac_exeext conftest.$ac_ext
17291 LIBS="$am_save_LIBS"
17292 fi
17293
17294 fi
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17296 $as_echo "$am_cv_func_iconv" >&6; }
17297 if test "$am_cv_func_iconv" = yes; then
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17299 $as_echo_n "checking for working iconv... " >&6; }
17300 if ${am_cv_func_iconv_works+:} false; then :
17301 $as_echo_n "(cached) " >&6
17302 else
17303
17304 am_save_LIBS="$LIBS"
17305 if test $am_cv_lib_iconv = yes; then
17306 LIBS="$LIBS $LIBICONV"
17307 fi
17308 am_cv_func_iconv_works=no
17309 for ac_iconv_const in '' 'const'; do
17310 if test "$cross_compiling" = yes; then :
17311 case "$host_os" in
17312 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17313 *) am_cv_func_iconv_works="guessing yes" ;;
17314 esac
17315 else
17316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17317 /* end confdefs.h. */
17318
17319 #include <iconv.h>
17320 #include <string.h>
17321
17322 #ifndef ICONV_CONST
17323 # define ICONV_CONST $ac_iconv_const
17324 #endif
17325
17326 int
17327 main ()
17328 {
17329 int result = 0;
17330 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
17331 successful returns. This is even documented in
17332 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
17333 {
17334 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17335 if (cd_utf8_to_88591 != (iconv_t)(-1))
17336 {
17337 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
17338 char buf[10];
17339 ICONV_CONST char *inptr = input;
17340 size_t inbytesleft = strlen (input);
17341 char *outptr = buf;
17342 size_t outbytesleft = sizeof (buf);
17343 size_t res = iconv (cd_utf8_to_88591,
17344 &inptr, &inbytesleft,
17345 &outptr, &outbytesleft);
17346 if (res == 0)
17347 result |= 1;
17348 iconv_close (cd_utf8_to_88591);
17349 }
17350 }
17351 /* Test against Solaris 10 bug: Failures are not distinguishable from
17352 successful returns. */
17353 {
17354 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17355 if (cd_ascii_to_88591 != (iconv_t)(-1))
17356 {
17357 static ICONV_CONST char input[] = "\263";
17358 char buf[10];
17359 ICONV_CONST char *inptr = input;
17360 size_t inbytesleft = strlen (input);
17361 char *outptr = buf;
17362 size_t outbytesleft = sizeof (buf);
17363 size_t res = iconv (cd_ascii_to_88591,
17364 &inptr, &inbytesleft,
17365 &outptr, &outbytesleft);
17366 if (res == 0)
17367 result |= 2;
17368 iconv_close (cd_ascii_to_88591);
17369 }
17370 }
17371 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
17372 {
17373 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
17374 if (cd_88591_to_utf8 != (iconv_t)(-1))
17375 {
17376 static ICONV_CONST char input[] = "\304";
17377 static char buf[2] = { (char)0xDE, (char)0xAD };
17378 ICONV_CONST char *inptr = input;
17379 size_t inbytesleft = 1;
17380 char *outptr = buf;
17381 size_t outbytesleft = 1;
17382 size_t res = iconv (cd_88591_to_utf8,
17383 &inptr, &inbytesleft,
17384 &outptr, &outbytesleft);
17385 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
17386 result |= 4;
17387 iconv_close (cd_88591_to_utf8);
17388 }
17389 }
17390 #if 0 /* This bug could be worked around by the caller. */
17391 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
17392 {
17393 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17394 if (cd_88591_to_utf8 != (iconv_t)(-1))
17395 {
17396 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17397 char buf[50];
17398 ICONV_CONST char *inptr = input;
17399 size_t inbytesleft = strlen (input);
17400 char *outptr = buf;
17401 size_t outbytesleft = sizeof (buf);
17402 size_t res = iconv (cd_88591_to_utf8,
17403 &inptr, &inbytesleft,
17404 &outptr, &outbytesleft);
17405 if ((int)res > 0)
17406 result |= 8;
17407 iconv_close (cd_88591_to_utf8);
17408 }
17409 }
17410 #endif
17411 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17412 provided. */
17413 {
17414 /* Try standardized names. */
17415 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
17416 /* Try IRIX, OSF/1 names. */
17417 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
17418 /* Try AIX names. */
17419 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
17420 /* Try HP-UX names. */
17421 iconv_t cd4 = iconv_open ("utf8", "eucJP");
17422 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
17423 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
17424 result |= 16;
17425 if (cd1 != (iconv_t)(-1))
17426 iconv_close (cd1);
17427 if (cd2 != (iconv_t)(-1))
17428 iconv_close (cd2);
17429 if (cd3 != (iconv_t)(-1))
17430 iconv_close (cd3);
17431 if (cd4 != (iconv_t)(-1))
17432 iconv_close (cd4);
17433 }
17434 return result;
17435
17436 ;
17437 return 0;
17438 }
17439 _ACEOF
17440 if ac_fn_c_try_run "$LINENO"; then :
17441 am_cv_func_iconv_works=yes
17442 fi
17443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17444 conftest.$ac_objext conftest.beam conftest.$ac_ext
17445 fi
17446
17447 test "$am_cv_func_iconv_works" = no || break
17448 done
17449 LIBS="$am_save_LIBS"
17450
17451 fi
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17453 $as_echo "$am_cv_func_iconv_works" >&6; }
17454 case "$am_cv_func_iconv_works" in
17455 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17456 *) am_func_iconv=yes ;;
17457 esac
17458 else
17459 am_func_iconv=no am_cv_lib_iconv=no
17460 fi
17461 if test "$am_func_iconv" = yes; then
17462
17463 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17464
17465 fi
17466 if test "$am_cv_lib_iconv" = yes; then
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17468 $as_echo_n "checking how to link with libiconv... " >&6; }
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17470 $as_echo "$LIBICONV" >&6; }
17471 else
17472 CPPFLAGS="$am_save_CPPFLAGS"
17473 LIBICONV=
17474 LTLIBICONV=
17475 fi
17476
17477
17478
17479
17480
17481
17482 use_additional=yes
17483
17484 acl_save_prefix="$prefix"
17485 prefix="$acl_final_prefix"
17486 acl_save_exec_prefix="$exec_prefix"
17487 exec_prefix="$acl_final_exec_prefix"
17488
17489 eval additional_includedir=\"$includedir\"
17490 eval additional_libdir=\"$libdir\"
17491
17492 exec_prefix="$acl_save_exec_prefix"
17493 prefix="$acl_save_prefix"
17494
17495
17496 # Check whether --with-libintl-prefix was given.
17497 if test "${with_libintl_prefix+set}" = set; then :
17498 withval=$with_libintl_prefix;
17499 if test "X$withval" = "Xno"; then
17500 use_additional=no
17501 else
17502 if test "X$withval" = "X"; then
17503
17504 acl_save_prefix="$prefix"
17505 prefix="$acl_final_prefix"
17506 acl_save_exec_prefix="$exec_prefix"
17507 exec_prefix="$acl_final_exec_prefix"
17508
17509 eval additional_includedir=\"$includedir\"
17510 eval additional_libdir=\"$libdir\"
17511
17512 exec_prefix="$acl_save_exec_prefix"
17513 prefix="$acl_save_prefix"
17514
17515 else
17516 additional_includedir="$withval/include"
17517 additional_libdir="$withval/lib"
17518 fi
17519 fi
17520
17521 fi
17522
17523
17524 # Check whether --with-libintl-type was given.
17525 if test "${with_libintl_type+set}" = set; then :
17526 withval=$with_libintl_type; with_libintl_type=$withval
17527 else
17528 with_libintl_type=auto
17529 fi
17530
17531 lib_type=`eval echo \$with_libintl_type`
17532
17533 LIBINTL=
17534 LTLIBINTL=
17535 INCINTL=
17536 rpathdirs=
17537 ltrpathdirs=
17538 names_already_handled=
17539 names_next_round='intl '
17540 while test -n "$names_next_round"; do
17541 names_this_round="$names_next_round"
17542 names_next_round=
17543 for name in $names_this_round; do
17544 already_handled=
17545 for n in $names_already_handled; do
17546 if test "$n" = "$name"; then
17547 already_handled=yes
17548 break
17549 fi
17550 done
17551 if test -z "$already_handled"; then
17552 names_already_handled="$names_already_handled $name"
17553 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17554 eval value=\"\$HAVE_LIB$uppername\"
17555 if test -n "$value"; then
17556 if test "$value" = yes; then
17557 eval value=\"\$LIB$uppername\"
17558 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17559 eval value=\"\$LTLIB$uppername\"
17560 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17561 else
17562 :
17563 fi
17564 else
17565 found_dir=
17566 found_la=
17567 found_so=
17568 found_a=
17569 if test $use_additional = yes; then
17570 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
17571 found_dir="$additional_libdir"
17572 found_so="$additional_libdir/lib$name.$shlibext"
17573 if test -f "$additional_libdir/lib$name.la"; then
17574 found_la="$additional_libdir/lib$name.la"
17575 fi
17576 elif test x$lib_type != xshared; then
17577 if test -f "$additional_libdir/lib$name.$libext"; then
17578 found_dir="$additional_libdir"
17579 found_a="$additional_libdir/lib$name.$libext"
17580 if test -f "$additional_libdir/lib$name.la"; then
17581 found_la="$additional_libdir/lib$name.la"
17582 fi
17583 fi
17584 fi
17585 fi
17586 if test "X$found_dir" = "X"; then
17587 for x in $LDFLAGS $LTLIBINTL; do
17588
17589 acl_save_prefix="$prefix"
17590 prefix="$acl_final_prefix"
17591 acl_save_exec_prefix="$exec_prefix"
17592 exec_prefix="$acl_final_exec_prefix"
17593 eval x=\"$x\"
17594 exec_prefix="$acl_save_exec_prefix"
17595 prefix="$acl_save_prefix"
17596
17597 case "$x" in
17598 -L*)
17599 dir=`echo "X$x" | sed -e 's/^X-L//'`
17600 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
17601 found_dir="$dir"
17602 found_so="$dir/lib$name.$shlibext"
17603 if test -f "$dir/lib$name.la"; then
17604 found_la="$dir/lib$name.la"
17605 fi
17606 elif test x$lib_type != xshared; then
17607 if test -f "$dir/lib$name.$libext"; then
17608 found_dir="$dir"
17609 found_a="$dir/lib$name.$libext"
17610 if test -f "$dir/lib$name.la"; then
17611 found_la="$dir/lib$name.la"
17612 fi
17613 fi
17614 fi
17615 ;;
17616 esac
17617 if test "X$found_dir" != "X"; then
17618 break
17619 fi
17620 done
17621 fi
17622 if test "X$found_dir" != "X"; then
17623 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17624 if test "X$found_so" != "X"; then
17625 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17626 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17627 else
17628 haveit=
17629 for x in $ltrpathdirs; do
17630 if test "X$x" = "X$found_dir"; then
17631 haveit=yes
17632 break
17633 fi
17634 done
17635 if test -z "$haveit"; then
17636 ltrpathdirs="$ltrpathdirs $found_dir"
17637 fi
17638 if test "$hardcode_direct" = yes; then
17639 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17640 else
17641 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17642 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17643 haveit=
17644 for x in $rpathdirs; do
17645 if test "X$x" = "X$found_dir"; then
17646 haveit=yes
17647 break
17648 fi
17649 done
17650 if test -z "$haveit"; then
17651 rpathdirs="$rpathdirs $found_dir"
17652 fi
17653 else
17654 haveit=
17655 for x in $LDFLAGS $LIBINTL; do
17656
17657 acl_save_prefix="$prefix"
17658 prefix="$acl_final_prefix"
17659 acl_save_exec_prefix="$exec_prefix"
17660 exec_prefix="$acl_final_exec_prefix"
17661 eval x=\"$x\"
17662 exec_prefix="$acl_save_exec_prefix"
17663 prefix="$acl_save_prefix"
17664
17665 if test "X$x" = "X-L$found_dir"; then
17666 haveit=yes
17667 break
17668 fi
17669 done
17670 if test -z "$haveit"; then
17671 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17672 fi
17673 if test "$hardcode_minus_L" != no; then
17674 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17675 else
17676 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17677 fi
17678 fi
17679 fi
17680 fi
17681 else
17682 if test "X$found_a" != "X"; then
17683 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17684 else
17685 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17686 fi
17687 fi
17688 additional_includedir=
17689 case "$found_dir" in
17690 */lib | */lib/)
17691 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17692 additional_includedir="$basedir/include"
17693 ;;
17694 esac
17695 if test "X$additional_includedir" != "X"; then
17696 if test "X$additional_includedir" != "X/usr/include"; then
17697 haveit=
17698 if test "X$additional_includedir" = "X/usr/local/include"; then
17699 if test -n "$GCC"; then
17700 case $host_os in
17701 linux*) haveit=yes;;
17702 esac
17703 fi
17704 fi
17705 if test -z "$haveit"; then
17706 for x in $CPPFLAGS $INCINTL; do
17707
17708 acl_save_prefix="$prefix"
17709 prefix="$acl_final_prefix"
17710 acl_save_exec_prefix="$exec_prefix"
17711 exec_prefix="$acl_final_exec_prefix"
17712 eval x=\"$x\"
17713 exec_prefix="$acl_save_exec_prefix"
17714 prefix="$acl_save_prefix"
17715
17716 if test "X$x" = "X-I$additional_includedir"; then
17717 haveit=yes
17718 break
17719 fi
17720 done
17721 if test -z "$haveit"; then
17722 if test -d "$additional_includedir"; then
17723 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17724 fi
17725 fi
17726 fi
17727 fi
17728 fi
17729 if test -n "$found_la"; then
17730 save_libdir="$libdir"
17731 case "$found_la" in
17732 */* | *\\*) . "$found_la" ;;
17733 *) . "./$found_la" ;;
17734 esac
17735 libdir="$save_libdir"
17736 for dep in $dependency_libs; do
17737 case "$dep" in
17738 -L*)
17739 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17740 if test "X$additional_libdir" != "X/usr/lib"; then
17741 haveit=
17742 if test "X$additional_libdir" = "X/usr/local/lib"; then
17743 if test -n "$GCC"; then
17744 case $host_os in
17745 linux*) haveit=yes;;
17746 esac
17747 fi
17748 fi
17749 if test -z "$haveit"; then
17750 haveit=
17751 for x in $LDFLAGS $LIBINTL; do
17752
17753 acl_save_prefix="$prefix"
17754 prefix="$acl_final_prefix"
17755 acl_save_exec_prefix="$exec_prefix"
17756 exec_prefix="$acl_final_exec_prefix"
17757 eval x=\"$x\"
17758 exec_prefix="$acl_save_exec_prefix"
17759 prefix="$acl_save_prefix"
17760
17761 if test "X$x" = "X-L$additional_libdir"; then
17762 haveit=yes
17763 break
17764 fi
17765 done
17766 if test -z "$haveit"; then
17767 if test -d "$additional_libdir"; then
17768 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17769 fi
17770 fi
17771 haveit=
17772 for x in $LDFLAGS $LTLIBINTL; do
17773
17774 acl_save_prefix="$prefix"
17775 prefix="$acl_final_prefix"
17776 acl_save_exec_prefix="$exec_prefix"
17777 exec_prefix="$acl_final_exec_prefix"
17778 eval x=\"$x\"
17779 exec_prefix="$acl_save_exec_prefix"
17780 prefix="$acl_save_prefix"
17781
17782 if test "X$x" = "X-L$additional_libdir"; then
17783 haveit=yes
17784 break
17785 fi
17786 done
17787 if test -z "$haveit"; then
17788 if test -d "$additional_libdir"; then
17789 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17790 fi
17791 fi
17792 fi
17793 fi
17794 ;;
17795 -R*)
17796 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17797 if test "$enable_rpath" != no; then
17798 haveit=
17799 for x in $rpathdirs; do
17800 if test "X$x" = "X$dir"; then
17801 haveit=yes
17802 break
17803 fi
17804 done
17805 if test -z "$haveit"; then
17806 rpathdirs="$rpathdirs $dir"
17807 fi
17808 haveit=
17809 for x in $ltrpathdirs; do
17810 if test "X$x" = "X$dir"; then
17811 haveit=yes
17812 break
17813 fi
17814 done
17815 if test -z "$haveit"; then
17816 ltrpathdirs="$ltrpathdirs $dir"
17817 fi
17818 fi
17819 ;;
17820 -l*)
17821 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17822 ;;
17823 *.la)
17824 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17825 ;;
17826 *)
17827 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17828 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17829 ;;
17830 esac
17831 done
17832 fi
17833 else
17834 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
17835 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17836 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17837 else
17838 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
17839 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
17840 fi
17841 fi
17842 fi
17843 fi
17844 done
17845 done
17846 if test "X$rpathdirs" != "X"; then
17847 if test -n "$hardcode_libdir_separator"; then
17848 alldirs=
17849 for found_dir in $rpathdirs; do
17850 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17851 done
17852 acl_save_libdir="$libdir"
17853 libdir="$alldirs"
17854 eval flag=\"$hardcode_libdir_flag_spec\"
17855 libdir="$acl_save_libdir"
17856 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17857 else
17858 for found_dir in $rpathdirs; do
17859 acl_save_libdir="$libdir"
17860 libdir="$found_dir"
17861 eval flag=\"$hardcode_libdir_flag_spec\"
17862 libdir="$acl_save_libdir"
17863 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17864 done
17865 fi
17866 fi
17867 if test "X$ltrpathdirs" != "X"; then
17868 for found_dir in $ltrpathdirs; do
17869 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17870 done
17871 fi
17872
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17874 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17875 if eval \${$gt_func_gnugettext_libintl+:} false; then :
17876 $as_echo_n "(cached) " >&6
17877 else
17878 gt_save_CPPFLAGS="$CPPFLAGS"
17879 CPPFLAGS="$CPPFLAGS $INCINTL"
17880 gt_save_LIBS="$LIBS"
17881 LIBS="$LIBS $LIBINTL"
17882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17883 /* end confdefs.h. */
17884
17885 #include <libintl.h>
17886 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17887 extern int _nl_msg_cat_cntr;
17888 extern
17889 #ifdef __cplusplus
17890 "C"
17891 #endif
17892 const char *_nl_expand_alias (const char *);
17893 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17894 #else
17895 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17896 #endif
17897 $gt_revision_test_code
17898
17899 int
17900 main ()
17901 {
17902
17903 bindtextdomain ("", "");
17904 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17905
17906 ;
17907 return 0;
17908 }
17909 _ACEOF
17910 if ac_fn_c_try_link "$LINENO"; then :
17911 eval "$gt_func_gnugettext_libintl=yes"
17912 else
17913 eval "$gt_func_gnugettext_libintl=no"
17914 fi
17915 rm -f core conftest.err conftest.$ac_objext \
17916 conftest$ac_exeext conftest.$ac_ext
17917 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
17918 LIBS="$LIBS $LIBICONV"
17919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17920 /* end confdefs.h. */
17921
17922 #include <libintl.h>
17923 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17924 extern int _nl_msg_cat_cntr;
17925 extern
17926 #ifdef __cplusplus
17927 "C"
17928 #endif
17929 const char *_nl_expand_alias (const char *);
17930 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17931 #else
17932 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17933 #endif
17934 $gt_revision_test_code
17935
17936 int
17937 main ()
17938 {
17939
17940 bindtextdomain ("", "");
17941 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17942
17943 ;
17944 return 0;
17945 }
17946 _ACEOF
17947 if ac_fn_c_try_link "$LINENO"; then :
17948 LIBINTL="$LIBINTL $LIBICONV"
17949 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17950 eval "$gt_func_gnugettext_libintl=yes"
17951
17952 fi
17953 rm -f core conftest.err conftest.$ac_objext \
17954 conftest$ac_exeext conftest.$ac_ext
17955 fi
17956 CPPFLAGS="$gt_save_CPPFLAGS"
17957 LIBS="$gt_save_LIBS"
17958 fi
17959 eval ac_res=\$$gt_func_gnugettext_libintl
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17961 $as_echo "$ac_res" >&6; }
17962 fi
17963
17964 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
17965 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
17966 && test "$PACKAGE" != gettext-runtime \
17967 && test "$PACKAGE" != gettext-tools; }; then
17968 gt_use_preinstalled_gnugettext=yes
17969 else
17970 LIBINTL=
17971 LTLIBINTL=
17972 INCINTL=
17973 fi
17974
17975
17976
17977 if test -n "$INTL_MACOSX_LIBS"; then
17978 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17979 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17980 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17981 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17982 fi
17983 fi
17984
17985 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17986 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17987
17988 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17989
17990 else
17991 USE_NLS=no
17992 fi
17993 fi
17994
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17996 $as_echo_n "checking whether to use NLS... " >&6; }
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17998 $as_echo "$USE_NLS" >&6; }
17999 if test "$USE_NLS" = "yes"; then
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18001 $as_echo_n "checking where the gettext function comes from... " >&6; }
18002 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18003 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18004 gt_source="external libintl"
18005 else
18006 gt_source="libc"
18007 fi
18008 else
18009 gt_source="included intl directory"
18010 fi
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18012 $as_echo "$gt_source" >&6; }
18013 fi
18014
18015 if test "$USE_NLS" = "yes"; then
18016
18017 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18018 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18020 $as_echo_n "checking how to link with libintl... " >&6; }
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18022 $as_echo "$LIBINTL" >&6; }
18023
18024 for element in $INCINTL; do
18025 haveit=
18026 for x in $CPPFLAGS; do
18027
18028 acl_save_prefix="$prefix"
18029 prefix="$acl_final_prefix"
18030 acl_save_exec_prefix="$exec_prefix"
18031 exec_prefix="$acl_final_exec_prefix"
18032 eval x=\"$x\"
18033 exec_prefix="$acl_save_exec_prefix"
18034 prefix="$acl_save_prefix"
18035
18036 if test "X$x" = "X$element"; then
18037 haveit=yes
18038 break
18039 fi
18040 done
18041 if test -z "$haveit"; then
18042 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18043 fi
18044 done
18045
18046 fi
18047
18048
18049 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18050
18051
18052 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18053
18054 fi
18055
18056 POSUB=po
18057 fi
18058
18059
18060
18061 INTLLIBS="$LIBINTL"
18062
18063
18064
18065
18066
18067
18068 fi
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18081 $as_echo_n "checking whether NLS is requested... " >&6; }
18082 if test x"$USE_NLS" != xyes; then
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18084 $as_echo "no" >&6; }
18085 else
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18087 $as_echo "yes" >&6; }
18088
18089 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18090
18091
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
18093 $as_echo_n "checking for catalogs to be installed... " >&6; }
18094 # Look for .po and .gmo files in the source directory.
18095 CATALOGS=
18096 XLINGUAS=
18097 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
18098 # If there aren't any .gmo files the shell will give us the
18099 # literal string "../path/to/srcdir/po/*.gmo" which has to be
18100 # weeded out.
18101 case "$cat" in *\**)
18102 continue;;
18103 esac
18104 # The quadruple backslash is collapsed to a double backslash
18105 # by the backticks, then collapsed again by the double quotes,
18106 # leaving us with one backslash in the sed expression (right
18107 # before the dot that mustn't act as a wildcard).
18108 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
18109 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
18110 # The user is allowed to set LINGUAS to a list of languages to
18111 # install catalogs for. If it's empty that means "all of them."
18112 if test "x$LINGUAS" = x; then
18113 CATALOGS="$CATALOGS $cat"
18114 XLINGUAS="$XLINGUAS $lang"
18115 else
18116 case "$LINGUAS" in *$lang*)
18117 CATALOGS="$CATALOGS $cat"
18118 XLINGUAS="$XLINGUAS $lang"
18119 ;;
18120 esac
18121 fi
18122 done
18123 LINGUAS="$XLINGUAS"
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
18125 $as_echo "$LINGUAS" >&6; }
18126
18127
18128 DATADIRNAME=share
18129
18130 INSTOBJEXT=.mo
18131
18132 GENCAT=gencat
18133
18134 CATOBJEXT=.gmo
18135
18136 fi
18137
18138
18139
18140
18141 # Prepare PATH_SEPARATOR.
18142 # The user is always right.
18143 if test "${PATH_SEPARATOR+set}" != set; then
18144 echo "#! /bin/sh" >conf$$.sh
18145 echo "exit 0" >>conf$$.sh
18146 chmod +x conf$$.sh
18147 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18148 PATH_SEPARATOR=';'
18149 else
18150 PATH_SEPARATOR=:
18151 fi
18152 rm -f conf$$.sh
18153 fi
18154
18155 # Find out how to test for executable files. Don't use a zero-byte file,
18156 # as systems may use methods other than mode bits to determine executability.
18157 cat >conf$$.file <<_ASEOF
18158 #! /bin/sh
18159 exit 0
18160 _ASEOF
18161 chmod +x conf$$.file
18162 if test -x conf$$.file >/dev/null 2>&1; then
18163 ac_executable_p="test -x"
18164 else
18165 ac_executable_p="test -f"
18166 fi
18167 rm -f conf$$.file
18168
18169 # Extract the first word of "msgfmt", so it can be a program name with args.
18170 set dummy msgfmt; ac_word=$2
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18172 $as_echo_n "checking for $ac_word... " >&6; }
18173 if ${ac_cv_path_MSGFMT+:} false; then :
18174 $as_echo_n "(cached) " >&6
18175 else
18176 case "$MSGFMT" in
18177 [\\/]* | ?:[\\/]*)
18178 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18179 ;;
18180 *)
18181 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18182 for ac_dir in $PATH; do
18183 IFS="$ac_save_IFS"
18184 test -z "$ac_dir" && ac_dir=.
18185 for ac_exec_ext in '' $ac_executable_extensions; do
18186 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18187 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
18188 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18189 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
18190 break 2
18191 fi
18192 fi
18193 done
18194 done
18195 IFS="$ac_save_IFS"
18196 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
18197 ;;
18198 esac
18199 fi
18200 MSGFMT="$ac_cv_path_MSGFMT"
18201 if test "$MSGFMT" != ":"; then
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18203 $as_echo "$MSGFMT" >&6; }
18204 else
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18206 $as_echo "no" >&6; }
18207 fi
18208
18209 # Extract the first word of "gmsgfmt", so it can be a program name with args.
18210 set dummy gmsgfmt; 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_GMSGFMT+:} false; then :
18214 $as_echo_n "(cached) " >&6
18215 else
18216 case $GMSGFMT in
18217 [\\/]* | ?:[\\/]*)
18218 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18219 ;;
18220 *)
18221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18222 for as_dir in $PATH
18223 do
18224 IFS=$as_save_IFS
18225 test -z "$as_dir" && as_dir=.
18226 for ac_exec_ext in '' $ac_executable_extensions; do
18227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18228 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
18229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18230 break 2
18231 fi
18232 done
18233 done
18234 IFS=$as_save_IFS
18235
18236 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18237 ;;
18238 esac
18239 fi
18240 GMSGFMT=$ac_cv_path_GMSGFMT
18241 if test -n "$GMSGFMT"; then
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
18243 $as_echo "$GMSGFMT" >&6; }
18244 else
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18246 $as_echo "no" >&6; }
18247 fi
18248
18249
18250
18251
18252 # Prepare PATH_SEPARATOR.
18253 # The user is always right.
18254 if test "${PATH_SEPARATOR+set}" != set; then
18255 echo "#! /bin/sh" >conf$$.sh
18256 echo "exit 0" >>conf$$.sh
18257 chmod +x conf$$.sh
18258 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18259 PATH_SEPARATOR=';'
18260 else
18261 PATH_SEPARATOR=:
18262 fi
18263 rm -f conf$$.sh
18264 fi
18265
18266 # Find out how to test for executable files. Don't use a zero-byte file,
18267 # as systems may use methods other than mode bits to determine executability.
18268 cat >conf$$.file <<_ASEOF
18269 #! /bin/sh
18270 exit 0
18271 _ASEOF
18272 chmod +x conf$$.file
18273 if test -x conf$$.file >/dev/null 2>&1; then
18274 ac_executable_p="test -x"
18275 else
18276 ac_executable_p="test -f"
18277 fi
18278 rm -f conf$$.file
18279
18280 # Extract the first word of "xgettext", so it can be a program name with args.
18281 set dummy xgettext; ac_word=$2
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18283 $as_echo_n "checking for $ac_word... " >&6; }
18284 if ${ac_cv_path_XGETTEXT+:} false; then :
18285 $as_echo_n "(cached) " >&6
18286 else
18287 case "$XGETTEXT" in
18288 [\\/]* | ?:[\\/]*)
18289 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18290 ;;
18291 *)
18292 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18293 for ac_dir in $PATH; do
18294 IFS="$ac_save_IFS"
18295 test -z "$ac_dir" && ac_dir=.
18296 for ac_exec_ext in '' $ac_executable_extensions; do
18297 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18298 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
18299 (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
18300 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
18301 break 2
18302 fi
18303 fi
18304 done
18305 done
18306 IFS="$ac_save_IFS"
18307 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
18308 ;;
18309 esac
18310 fi
18311 XGETTEXT="$ac_cv_path_XGETTEXT"
18312 if test "$XGETTEXT" != ":"; then
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18314 $as_echo "$XGETTEXT" >&6; }
18315 else
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18317 $as_echo "no" >&6; }
18318 fi
18319
18320 rm -f messages.po
18321
18322
18323 # Prepare PATH_SEPARATOR.
18324 # The user is always right.
18325 if test "${PATH_SEPARATOR+set}" != set; then
18326 echo "#! /bin/sh" >conf$$.sh
18327 echo "exit 0" >>conf$$.sh
18328 chmod +x conf$$.sh
18329 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18330 PATH_SEPARATOR=';'
18331 else
18332 PATH_SEPARATOR=:
18333 fi
18334 rm -f conf$$.sh
18335 fi
18336
18337 # Find out how to test for executable files. Don't use a zero-byte file,
18338 # as systems may use methods other than mode bits to determine executability.
18339 cat >conf$$.file <<_ASEOF
18340 #! /bin/sh
18341 exit 0
18342 _ASEOF
18343 chmod +x conf$$.file
18344 if test -x conf$$.file >/dev/null 2>&1; then
18345 ac_executable_p="test -x"
18346 else
18347 ac_executable_p="test -f"
18348 fi
18349 rm -f conf$$.file
18350
18351 # Extract the first word of "msgmerge", so it can be a program name with args.
18352 set dummy msgmerge; ac_word=$2
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18354 $as_echo_n "checking for $ac_word... " >&6; }
18355 if ${ac_cv_path_MSGMERGE+:} false; then :
18356 $as_echo_n "(cached) " >&6
18357 else
18358 case "$MSGMERGE" in
18359 [\\/]* | ?:[\\/]*)
18360 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18361 ;;
18362 *)
18363 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18364 for ac_dir in $PATH; do
18365 IFS="$ac_save_IFS"
18366 test -z "$ac_dir" && ac_dir=.
18367 for ac_exec_ext in '' $ac_executable_extensions; do
18368 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18369 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
18370 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
18371 break 2
18372 fi
18373 fi
18374 done
18375 done
18376 IFS="$ac_save_IFS"
18377 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
18378 ;;
18379 esac
18380 fi
18381 MSGMERGE="$ac_cv_path_MSGMERGE"
18382 if test "$MSGMERGE" != ":"; then
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18384 $as_echo "$MSGMERGE" >&6; }
18385 else
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18387 $as_echo "no" >&6; }
18388 fi
18389
18390
18391 if test "$GMSGFMT" != ":"; then
18392 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
18393 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18394 : ;
18395 else
18396 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
18398 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
18399 GMSGFMT=":"
18400 fi
18401 fi
18402
18403 if test "$XGETTEXT" != ":"; then
18404 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
18405 (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
18406 : ;
18407 else
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
18409 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
18410 XGETTEXT=":"
18411 fi
18412 rm -f messages.po
18413 fi
18414
18415 ac_config_commands="$ac_config_commands default-2"
18416
18417
18418
18419
18420
18421 for ac_prog in 'bison -y' byacc
18422 do
18423 # Extract the first word of "$ac_prog", so it can be a program name with args.
18424 set dummy $ac_prog; ac_word=$2
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18426 $as_echo_n "checking for $ac_word... " >&6; }
18427 if ${ac_cv_prog_YACC+:} false; then :
18428 $as_echo_n "(cached) " >&6
18429 else
18430 if test -n "$YACC"; then
18431 ac_cv_prog_YACC="$YACC" # Let the user override the test.
18432 else
18433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18434 for as_dir in $PATH
18435 do
18436 IFS=$as_save_IFS
18437 test -z "$as_dir" && as_dir=.
18438 for ac_exec_ext in '' $ac_executable_extensions; do
18439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18440 ac_cv_prog_YACC="$ac_prog"
18441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18442 break 2
18443 fi
18444 done
18445 done
18446 IFS=$as_save_IFS
18447
18448 fi
18449 fi
18450 YACC=$ac_cv_prog_YACC
18451 if test -n "$YACC"; then
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
18453 $as_echo "$YACC" >&6; }
18454 else
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18456 $as_echo "no" >&6; }
18457 fi
18458
18459
18460 test -n "$YACC" && break
18461 done
18462 test -n "$YACC" || YACC="yacc"
18463
18464 for ac_prog in flex lex
18465 do
18466 # Extract the first word of "$ac_prog", so it can be a program name with args.
18467 set dummy $ac_prog; ac_word=$2
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18469 $as_echo_n "checking for $ac_word... " >&6; }
18470 if ${ac_cv_prog_LEX+:} false; then :
18471 $as_echo_n "(cached) " >&6
18472 else
18473 if test -n "$LEX"; then
18474 ac_cv_prog_LEX="$LEX" # Let the user override the test.
18475 else
18476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18477 for as_dir in $PATH
18478 do
18479 IFS=$as_save_IFS
18480 test -z "$as_dir" && as_dir=.
18481 for ac_exec_ext in '' $ac_executable_extensions; do
18482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18483 ac_cv_prog_LEX="$ac_prog"
18484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18485 break 2
18486 fi
18487 done
18488 done
18489 IFS=$as_save_IFS
18490
18491 fi
18492 fi
18493 LEX=$ac_cv_prog_LEX
18494 if test -n "$LEX"; then
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
18496 $as_echo "$LEX" >&6; }
18497 else
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18499 $as_echo "no" >&6; }
18500 fi
18501
18502
18503 test -n "$LEX" && break
18504 done
18505 test -n "$LEX" || LEX=":"
18506
18507 case "$LEX" in
18508 :|*"missing "*) ;;
18509 *) cat >conftest.l <<_ACEOF
18510 %%
18511 a { ECHO; }
18512 b { REJECT; }
18513 c { yymore (); }
18514 d { yyless (1); }
18515 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
18516 yyless ((input () != 0)); }
18517 f { unput (yytext[0]); }
18518 . { BEGIN INITIAL; }
18519 %%
18520 #ifdef YYTEXT_POINTER
18521 extern char *yytext;
18522 #endif
18523 int
18524 main (void)
18525 {
18526 return ! yylex () + ! yywrap ();
18527 }
18528 _ACEOF
18529 { { ac_try="$LEX conftest.l"
18530 case "(($ac_try" in
18531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532 *) ac_try_echo=$ac_try;;
18533 esac
18534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18535 $as_echo "$ac_try_echo"; } >&5
18536 (eval "$LEX conftest.l") 2>&5
18537 ac_status=$?
18538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18539 test $ac_status = 0; }
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
18541 $as_echo_n "checking lex output file root... " >&6; }
18542 if ${ac_cv_prog_lex_root+:} false; then :
18543 $as_echo_n "(cached) " >&6
18544 else
18545
18546 if test -f lex.yy.c; then
18547 ac_cv_prog_lex_root=lex.yy
18548 elif test -f lexyy.c; then
18549 ac_cv_prog_lex_root=lexyy
18550 else
18551 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
18552 fi
18553 fi
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
18555 $as_echo "$ac_cv_prog_lex_root" >&6; }
18556 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
18557
18558 if test -z "${LEXLIB+set}"; then
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
18560 $as_echo_n "checking lex library... " >&6; }
18561 if ${ac_cv_lib_lex+:} false; then :
18562 $as_echo_n "(cached) " >&6
18563 else
18564
18565 ac_save_LIBS=$LIBS
18566 ac_cv_lib_lex='none needed'
18567 for ac_lib in '' -lfl -ll; do
18568 LIBS="$ac_lib $ac_save_LIBS"
18569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18570 /* end confdefs.h. */
18571 `cat $LEX_OUTPUT_ROOT.c`
18572 _ACEOF
18573 if ac_fn_c_try_link "$LINENO"; then :
18574 ac_cv_lib_lex=$ac_lib
18575 fi
18576 rm -f core conftest.err conftest.$ac_objext \
18577 conftest$ac_exeext conftest.$ac_ext
18578 test "$ac_cv_lib_lex" != 'none needed' && break
18579 done
18580 LIBS=$ac_save_LIBS
18581
18582 fi
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
18584 $as_echo "$ac_cv_lib_lex" >&6; }
18585 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
18586 fi
18587
18588
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
18590 $as_echo_n "checking whether yytext is a pointer... " >&6; }
18591 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
18592 $as_echo_n "(cached) " >&6
18593 else
18594 # POSIX says lex can declare yytext either as a pointer or an array; the
18595 # default is implementation-dependent. Figure out which it is, since
18596 # not all implementations provide the %pointer and %array declarations.
18597 ac_cv_prog_lex_yytext_pointer=no
18598 ac_save_LIBS=$LIBS
18599 LIBS="$LEXLIB $ac_save_LIBS"
18600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18601 /* end confdefs.h. */
18602
18603 #define YYTEXT_POINTER 1
18604 `cat $LEX_OUTPUT_ROOT.c`
18605 _ACEOF
18606 if ac_fn_c_try_link "$LINENO"; then :
18607 ac_cv_prog_lex_yytext_pointer=yes
18608 fi
18609 rm -f core conftest.err conftest.$ac_objext \
18610 conftest$ac_exeext conftest.$ac_ext
18611 LIBS=$ac_save_LIBS
18612
18613 fi
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
18615 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
18616 if test $ac_cv_prog_lex_yytext_pointer = yes; then
18617
18618 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
18619
18620 fi
18621 rm -f conftest.l $LEX_OUTPUT_ROOT.c
18622 ;;
18623 esac
18624 if test "$LEX" = :; then
18625 LEX=${am_missing_run}flex
18626 fi
18627
18628
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18630 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18631 # Check whether --enable-maintainer-mode was given.
18632 if test "${enable_maintainer_mode+set}" = set; then :
18633 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18634 else
18635 USE_MAINTAINER_MODE=no
18636 fi
18637
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18639 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18640 if test $USE_MAINTAINER_MODE = yes; then
18641 MAINTAINER_MODE_TRUE=
18642 MAINTAINER_MODE_FALSE='#'
18643 else
18644 MAINTAINER_MODE_TRUE='#'
18645 MAINTAINER_MODE_FALSE=
18646 fi
18647
18648 MAINT=$MAINTAINER_MODE_TRUE
18649
18650
18651 if false; then
18652 GENINSRC_NEVER_TRUE=
18653 GENINSRC_NEVER_FALSE='#'
18654 else
18655 GENINSRC_NEVER_TRUE='#'
18656 GENINSRC_NEVER_FALSE=
18657 fi
18658
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
18660 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
18661 if ${gcc_cv_prog_cmp_skip+:} false; then :
18662 $as_echo_n "(cached) " >&6
18663 else
18664 echo abfoo >t1
18665 echo cdfoo >t2
18666 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
18667 if cmp t1 t2 2 2 > /dev/null 2>&1; then
18668 if cmp t1 t2 1 1 > /dev/null 2>&1; then
18669 :
18670 else
18671 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
18672 fi
18673 fi
18674 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
18675 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
18676 :
18677 else
18678 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
18679 fi
18680 fi
18681 rm t1 t2
18682
18683 fi
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
18685 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
18686 do_compare="$gcc_cv_prog_cmp_skip"
18687
18688
18689
18690 . ${srcdir}/configure.host
18691
18692
18693
18694
18695 # We use headers from include/ that check various HAVE_*_H macros, thus
18696 # should ensure they are set by configure. This is true even when C99
18697 # guarantees they are available.
18698 # sha1.h and md4.h test HAVE_LIMITS_H, HAVE_SYS_TYPES_H and HAVE_STDINT_H
18699 # plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
18700 # Besides those, we need to check anything used in ld/ not in C99.
18701 for ac_header in fcntl.h elf-hints.h limits.h inttypes.h stdint.h \
18702 sys/file.h sys/mman.h sys/param.h sys/stat.h sys/time.h \
18703 sys/types.h unistd.h
18704 do :
18705 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18706 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18707 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18708 cat >>confdefs.h <<_ACEOF
18709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18710 _ACEOF
18711
18712 fi
18713
18714 done
18715
18716 for ac_func in close glob lseek mkstemp open realpath waitpid
18717 do :
18718 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18719 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18720 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18721 cat >>confdefs.h <<_ACEOF
18722 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18723 _ACEOF
18724
18725 fi
18726 done
18727
18728
18729
18730 case "${host}" in
18731 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
18732
18733 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
18734 ;;
18735 esac
18736
18737 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
18738 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
18739 ac_have_decl=1
18740 else
18741 ac_have_decl=0
18742 fi
18743
18744 cat >>confdefs.h <<_ACEOF
18745 #define HAVE_DECL_ASPRINTF $ac_have_decl
18746 _ACEOF
18747 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
18748 if test "x$ac_cv_have_decl_environ" = xyes; then :
18749 ac_have_decl=1
18750 else
18751 ac_have_decl=0
18752 fi
18753
18754 cat >>confdefs.h <<_ACEOF
18755 #define HAVE_DECL_ENVIRON $ac_have_decl
18756 _ACEOF
18757 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
18758 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
18759 ac_have_decl=1
18760 else
18761 ac_have_decl=0
18762 fi
18763
18764 cat >>confdefs.h <<_ACEOF
18765 #define HAVE_DECL_STPCPY $ac_have_decl
18766 _ACEOF
18767
18768
18769
18770
18771
18772 for ac_header in $ac_header_list
18773 do :
18774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18775 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18776 "
18777 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18778 cat >>confdefs.h <<_ACEOF
18779 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18780 _ACEOF
18781
18782 fi
18783
18784 done
18785
18786
18787
18788
18789
18790
18791
18792
18793 for ac_func in getpagesize
18794 do :
18795 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18796 if test "x$ac_cv_func_getpagesize" = xyes; then :
18797 cat >>confdefs.h <<_ACEOF
18798 #define HAVE_GETPAGESIZE 1
18799 _ACEOF
18800
18801 fi
18802 done
18803
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18805 $as_echo_n "checking for working mmap... " >&6; }
18806 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18807 $as_echo_n "(cached) " >&6
18808 else
18809 if test "$cross_compiling" = yes; then :
18810 ac_cv_func_mmap_fixed_mapped=no
18811 else
18812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18813 /* end confdefs.h. */
18814 $ac_includes_default
18815 /* malloc might have been renamed as rpl_malloc. */
18816 #undef malloc
18817
18818 /* Thanks to Mike Haertel and Jim Avera for this test.
18819 Here is a matrix of mmap possibilities:
18820 mmap private not fixed
18821 mmap private fixed at somewhere currently unmapped
18822 mmap private fixed at somewhere already mapped
18823 mmap shared not fixed
18824 mmap shared fixed at somewhere currently unmapped
18825 mmap shared fixed at somewhere already mapped
18826 For private mappings, we should verify that changes cannot be read()
18827 back from the file, nor mmap's back from the file at a different
18828 address. (There have been systems where private was not correctly
18829 implemented like the infamous i386 svr4.0, and systems where the
18830 VM page cache was not coherent with the file system buffer cache
18831 like early versions of FreeBSD and possibly contemporary NetBSD.)
18832 For shared mappings, we should conversely verify that changes get
18833 propagated back to all the places they're supposed to be.
18834
18835 Grep wants private fixed already mapped.
18836 The main things grep needs to know about mmap are:
18837 * does it exist and is it safe to write into the mmap'd area
18838 * how to use it (BSD variants) */
18839
18840 #include <fcntl.h>
18841 #include <sys/mman.h>
18842
18843 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18844 char *malloc ();
18845 #endif
18846
18847 /* This mess was copied from the GNU getpagesize.h. */
18848 #ifndef HAVE_GETPAGESIZE
18849 # ifdef _SC_PAGESIZE
18850 # define getpagesize() sysconf(_SC_PAGESIZE)
18851 # else /* no _SC_PAGESIZE */
18852 # ifdef HAVE_SYS_PARAM_H
18853 # include <sys/param.h>
18854 # ifdef EXEC_PAGESIZE
18855 # define getpagesize() EXEC_PAGESIZE
18856 # else /* no EXEC_PAGESIZE */
18857 # ifdef NBPG
18858 # define getpagesize() NBPG * CLSIZE
18859 # ifndef CLSIZE
18860 # define CLSIZE 1
18861 # endif /* no CLSIZE */
18862 # else /* no NBPG */
18863 # ifdef NBPC
18864 # define getpagesize() NBPC
18865 # else /* no NBPC */
18866 # ifdef PAGESIZE
18867 # define getpagesize() PAGESIZE
18868 # endif /* PAGESIZE */
18869 # endif /* no NBPC */
18870 # endif /* no NBPG */
18871 # endif /* no EXEC_PAGESIZE */
18872 # else /* no HAVE_SYS_PARAM_H */
18873 # define getpagesize() 8192 /* punt totally */
18874 # endif /* no HAVE_SYS_PARAM_H */
18875 # endif /* no _SC_PAGESIZE */
18876
18877 #endif /* no HAVE_GETPAGESIZE */
18878
18879 int
18880 main ()
18881 {
18882 char *data, *data2, *data3;
18883 const char *cdata2;
18884 int i, pagesize;
18885 int fd, fd2;
18886
18887 pagesize = getpagesize ();
18888
18889 /* First, make a file with some known garbage in it. */
18890 data = (char *) malloc (pagesize);
18891 if (!data)
18892 return 1;
18893 for (i = 0; i < pagesize; ++i)
18894 *(data + i) = rand ();
18895 umask (0);
18896 fd = creat ("conftest.mmap", 0600);
18897 if (fd < 0)
18898 return 2;
18899 if (write (fd, data, pagesize) != pagesize)
18900 return 3;
18901 close (fd);
18902
18903 /* Next, check that the tail of a page is zero-filled. File must have
18904 non-zero length, otherwise we risk SIGBUS for entire page. */
18905 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18906 if (fd2 < 0)
18907 return 4;
18908 cdata2 = "";
18909 if (write (fd2, cdata2, 1) != 1)
18910 return 5;
18911 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18912 if (data2 == MAP_FAILED)
18913 return 6;
18914 for (i = 0; i < pagesize; ++i)
18915 if (*(data2 + i))
18916 return 7;
18917 close (fd2);
18918 if (munmap (data2, pagesize))
18919 return 8;
18920
18921 /* Next, try to mmap the file at a fixed address which already has
18922 something else allocated at it. If we can, also make sure that
18923 we see the same garbage. */
18924 fd = open ("conftest.mmap", O_RDWR);
18925 if (fd < 0)
18926 return 9;
18927 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18928 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18929 return 10;
18930 for (i = 0; i < pagesize; ++i)
18931 if (*(data + i) != *(data2 + i))
18932 return 11;
18933
18934 /* Finally, make sure that changes to the mapped area do not
18935 percolate back to the file as seen by read(). (This is a bug on
18936 some variants of i386 svr4.0.) */
18937 for (i = 0; i < pagesize; ++i)
18938 *(data2 + i) = *(data2 + i) + 1;
18939 data3 = (char *) malloc (pagesize);
18940 if (!data3)
18941 return 12;
18942 if (read (fd, data3, pagesize) != pagesize)
18943 return 13;
18944 for (i = 0; i < pagesize; ++i)
18945 if (*(data + i) != *(data3 + i))
18946 return 14;
18947 close (fd);
18948 return 0;
18949 }
18950 _ACEOF
18951 if ac_fn_c_try_run "$LINENO"; then :
18952 ac_cv_func_mmap_fixed_mapped=yes
18953 else
18954 ac_cv_func_mmap_fixed_mapped=no
18955 fi
18956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18957 conftest.$ac_objext conftest.beam conftest.$ac_ext
18958 fi
18959
18960 fi
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18962 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18963 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18964
18965 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18966
18967 fi
18968 rm -f conftest.mmap conftest.txt
18969
18970
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18972 $as_echo_n "checking for library containing dlopen... " >&6; }
18973 if ${ac_cv_search_dlopen+:} false; then :
18974 $as_echo_n "(cached) " >&6
18975 else
18976 ac_func_search_save_LIBS=$LIBS
18977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18978 /* end confdefs.h. */
18979
18980 /* Override any GCC internal prototype to avoid an error.
18981 Use char because int might match the return type of a GCC
18982 builtin and then its argument prototype would still apply. */
18983 #ifdef __cplusplus
18984 extern "C"
18985 #endif
18986 char dlopen ();
18987 int
18988 main ()
18989 {
18990 return dlopen ();
18991 ;
18992 return 0;
18993 }
18994 _ACEOF
18995 for ac_lib in '' dl; do
18996 if test -z "$ac_lib"; then
18997 ac_res="none required"
18998 else
18999 ac_res=-l$ac_lib
19000 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19001 fi
19002 if ac_fn_c_try_link "$LINENO"; then :
19003 ac_cv_search_dlopen=$ac_res
19004 fi
19005 rm -f core conftest.err conftest.$ac_objext \
19006 conftest$ac_exeext
19007 if ${ac_cv_search_dlopen+:} false; then :
19008 break
19009 fi
19010 done
19011 if ${ac_cv_search_dlopen+:} false; then :
19012
19013 else
19014 ac_cv_search_dlopen=no
19015 fi
19016 rm conftest.$ac_ext
19017 LIBS=$ac_func_search_save_LIBS
19018 fi
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19020 $as_echo "$ac_cv_search_dlopen" >&6; }
19021 ac_res=$ac_cv_search_dlopen
19022 if test "$ac_res" != no; then :
19023 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19024
19025 fi
19026
19027
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
19029 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
19030 if ${ld_cv_decl_getopt_unistd_h+:} false; then :
19031 $as_echo_n "(cached) " >&6
19032 else
19033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19034 /* end confdefs.h. */
19035 #include <unistd.h>
19036 int
19037 main ()
19038 {
19039 extern int getopt (int, char *const*, const char *);
19040 ;
19041 return 0;
19042 }
19043 _ACEOF
19044 if ac_fn_c_try_compile "$LINENO"; then :
19045 ld_cv_decl_getopt_unistd_h=yes
19046 else
19047 ld_cv_decl_getopt_unistd_h=no
19048 fi
19049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19050 fi
19051
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
19053 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
19054 if test $ld_cv_decl_getopt_unistd_h = yes; then
19055
19056 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
19057
19058 fi
19059
19060 # Link in zlib/zstd if we can. This allows us to read and write
19061 # compressed debug sections.
19062
19063 # Use the system's zlib library.
19064 zlibdir="-L\$(top_builddir)/../zlib"
19065 zlibinc="-I\$(top_srcdir)/../zlib"
19066
19067 # Check whether --with-system-zlib was given.
19068 if test "${with_system_zlib+set}" = set; then :
19069 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
19070 zlibdir=
19071 zlibinc=
19072 fi
19073
19074 fi
19075
19076
19077
19078
19079
19080
19081 # Check whether --with-zstd was given.
19082 if test "${with_zstd+set}" = set; then :
19083 withval=$with_zstd;
19084 else
19085 with_zstd=auto
19086 fi
19087
19088
19089 if test "$with_zstd" != no; then :
19090
19091 pkg_failed=no
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
19093 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
19094
19095 if test -n "$ZSTD_CFLAGS"; then
19096 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
19097 elif test -n "$PKG_CONFIG"; then
19098 if test -n "$PKG_CONFIG" && \
19099 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19100 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19101 ac_status=$?
19102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19103 test $ac_status = 0; }; then
19104 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
19105 test "x$?" != "x0" && pkg_failed=yes
19106 else
19107 pkg_failed=yes
19108 fi
19109 else
19110 pkg_failed=untried
19111 fi
19112 if test -n "$ZSTD_LIBS"; then
19113 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
19114 elif test -n "$PKG_CONFIG"; then
19115 if test -n "$PKG_CONFIG" && \
19116 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19117 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19118 ac_status=$?
19119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19120 test $ac_status = 0; }; then
19121 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
19122 test "x$?" != "x0" && pkg_failed=yes
19123 else
19124 pkg_failed=yes
19125 fi
19126 else
19127 pkg_failed=untried
19128 fi
19129
19130 if test $pkg_failed = no; then
19131 pkg_save_LDFLAGS="$LDFLAGS"
19132 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
19133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134 /* end confdefs.h. */
19135
19136 int
19137 main ()
19138 {
19139
19140 ;
19141 return 0;
19142 }
19143 _ACEOF
19144 if ac_fn_c_try_link "$LINENO"; then :
19145
19146 else
19147 pkg_failed=yes
19148 fi
19149 rm -f core conftest.err conftest.$ac_objext \
19150 conftest$ac_exeext conftest.$ac_ext
19151 LDFLAGS=$pkg_save_LDFLAGS
19152 fi
19153
19154
19155
19156 if test $pkg_failed = yes; then
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19158 $as_echo "no" >&6; }
19159
19160 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19161 _pkg_short_errors_supported=yes
19162 else
19163 _pkg_short_errors_supported=no
19164 fi
19165 if test $_pkg_short_errors_supported = yes; then
19166 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19167 else
19168 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19169 fi
19170 # Put the nasty error message in config.log where it belongs
19171 echo "$ZSTD_PKG_ERRORS" >&5
19172
19173
19174 if test "$with_zstd" = yes; then
19175 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19176 fi
19177
19178 elif test $pkg_failed = untried; then
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19180 $as_echo "no" >&6; }
19181
19182 if test "$with_zstd" = yes; then
19183 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19184 fi
19185
19186 else
19187 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
19188 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19190 $as_echo "yes" >&6; }
19191
19192
19193 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
19194
19195
19196 fi
19197
19198 fi
19199
19200
19201 # target-specific stuff:
19202
19203 all_targets=
19204 EMUL=
19205 all_emuls=
19206 all_emul_extras=
19207 all_libpath=
19208 TDIRS=
19209
19210 elf_list_options=false
19211 elf_shlib_list_options=false
19212 elf_plt_unwind_list_options=false
19213 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
19214 do
19215 if test "$targ_alias" = "all"; then
19216 all_targets=true
19217 elf_list_options=true
19218 elf_shlib_list_options=true
19219 elf_plt_unwind_list_options=true
19220 else
19221 # Canonicalize the secondary target names.
19222 result=`$ac_config_sub $targ_alias 2>/dev/null`
19223 if test -n "$result"; then
19224 targ=$result
19225 else
19226 targ=$targ_alias
19227 fi
19228
19229 . ${srcdir}/configure.tgt
19230
19231 if test "$targ" = "$target"; then
19232 EMUL=$targ_emul
19233 fi
19234
19235 if test x${enable_64_bit_bfd} = xno; then
19236 . ${srcdir}/../bfd/config.bfd
19237 fi
19238
19239 if test x${enable_64_bit_bfd} = xyes; then
19240 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
19241 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
19242 fi
19243
19244 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
19245 case " $all_emuls " in
19246 *" e${i}.o "*) ;;
19247 *)
19248 all_emuls="$all_emuls e${i}.o"
19249 eval result=\$tdir_$i
19250 test -z "$result" && result=$targ_alias
19251 TDIRS="$TDIRS
19252 tdir_$i=$result"
19253 case "${i}" in
19254 *elf*)
19255 elf_list_options=true
19256 ;;
19257 *)
19258 if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
19259 elf_list_options=true
19260 fi
19261 ;;
19262 esac
19263 if test "$elf_list_options" = "true"; then
19264 source_sh()
19265 {
19266 . $1
19267 }
19268 source_sh ${srcdir}/emulparams/${i}.sh
19269 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
19270 elf_shlib_list_options=true
19271 fi
19272 if test x${PLT_UNWIND} = xyes; then
19273 elf_plt_unwind_list_options=true
19274 fi
19275 fi
19276 ;;
19277 esac
19278 done
19279
19280 for i in $targ_emul $targ_extra_libpath; do
19281 case " $all_libpath " in
19282 *" ${i} "*) ;;
19283 *)
19284 if test -z "$all_libpath"; then
19285 all_libpath=${i}
19286 else
19287 all_libpath="$all_libpath ${i}"
19288 fi
19289 ;;
19290 esac
19291 done
19292
19293 for i in $targ_extra_ofiles; do
19294 case " $all_emul_extras " in
19295 *" ${i} "*) ;;
19296 *)
19297 all_emul_extras="$all_emul_extras ${i}"
19298 ;;
19299 esac
19300 done
19301
19302 fi
19303 done
19304
19305 if test x$ac_default_compressed_debug_sections = xyes ; then
19306
19307 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
19308
19309 fi
19310
19311
19312 cat >>confdefs.h <<_ACEOF
19313 #define DEFAULT_COMPRESSED_DEBUG_ALGORITHM $ac_default_compressed_debug_sections_algorithm
19314 _ACEOF
19315
19316
19317 if test "${ac_default_new_dtags}" = unset; then
19318 ac_default_new_dtags=0
19319 fi
19320
19321 cat >>confdefs.h <<_ACEOF
19322 #define DEFAULT_NEW_DTAGS $ac_default_new_dtags
19323 _ACEOF
19324
19325
19326 if test "${ac_default_ld_z_relro}" = unset; then
19327 ac_default_ld_z_relro=0
19328 fi
19329
19330 cat >>confdefs.h <<_ACEOF
19331 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
19332 _ACEOF
19333
19334
19335 ac_default_ld_textrel_check_warning=0
19336 case "${ac_default_ld_textrel_check}" in
19337 unset|no)
19338 ac_default_ld_textrel_check=textrel_check_none
19339 ;;
19340 yes|warning)
19341 ac_default_ld_textrel_check=textrel_check_warning
19342 ac_default_ld_textrel_check_warning=1
19343 ;;
19344 error)
19345 ac_default_ld_textrel_check=textrel_check_error
19346 ;;
19347 esac
19348
19349 cat >>confdefs.h <<_ACEOF
19350 #define DEFAULT_LD_TEXTREL_CHECK $ac_default_ld_textrel_check
19351 _ACEOF
19352
19353
19354 cat >>confdefs.h <<_ACEOF
19355 #define DEFAULT_LD_TEXTREL_CHECK_WARNING $ac_default_ld_textrel_check_warning
19356 _ACEOF
19357
19358
19359 if test "${ac_default_ld_z_separate_code}" = unset; then
19360 ac_default_ld_z_separate_code=0
19361 fi
19362
19363 cat >>confdefs.h <<_ACEOF
19364 #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
19365 _ACEOF
19366
19367
19368
19369
19370 cat >>confdefs.h <<_ACEOF
19371 #define DEFAULT_LD_WARN_EXECSTACK $ac_default_ld_warn_execstack
19372 _ACEOF
19373
19374
19375
19376 cat >>confdefs.h <<_ACEOF
19377 #define DEFAULT_LD_ERROR_EXECSTACK $ac_default_ld_error_execstack
19378 _ACEOF
19379
19380
19381 if test "${ac_default_ld_warn_rwx_segments}" = unset; then
19382 ac_default_ld_warn_rwx_segments=1
19383 fi
19384
19385 cat >>confdefs.h <<_ACEOF
19386 #define DEFAULT_LD_WARN_RWX_SEGMENTS $ac_default_ld_warn_rwx_segments
19387 _ACEOF
19388
19389
19390
19391 cat >>confdefs.h <<_ACEOF
19392 #define DEFAULT_LD_ERROR_RWX_SEGMENTS $ac_default_ld_error_rwx_segments
19393 _ACEOF
19394
19395
19396 if test "${ac_default_ld_default_execstack}" = unset; then
19397 ac_default_ld_default_execstack=1
19398 fi
19399
19400 cat >>confdefs.h <<_ACEOF
19401 #define DEFAULT_LD_EXECSTACK $ac_default_ld_default_execstack
19402 _ACEOF
19403
19404
19405
19406 if test "${ac_support_error_handling_script}" = unset; then
19407 ac_support_error_handling_script=1
19408 fi
19409
19410 cat >>confdefs.h <<_ACEOF
19411 #define SUPPORT_ERROR_HANDLING_SCRIPT $ac_support_error_handling_script
19412 _ACEOF
19413
19414
19415
19416 cat >>confdefs.h <<_ACEOF
19417 #define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash
19418 _ACEOF
19419
19420
19421
19422 cat >>confdefs.h <<_ACEOF
19423 #define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash
19424 _ACEOF
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435 if test x${all_targets} = xtrue; then
19436 if test x${enable_64_bit_bfd} = xyes; then
19437 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
19438 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
19439 else
19440 EMULATION_OFILES='$(ALL_EMULATIONS)'
19441 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
19442 fi
19443 else
19444 EMULATION_OFILES=$all_emuls
19445 EMUL_EXTRA_OFILES=$all_emul_extras
19446 fi
19447
19448
19449
19450
19451 EMULATION_LIBPATH=$all_libpath
19452
19453
19454 if test x${enable_static} = xno; then
19455 TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
19456 TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
19457 TESTSFRAMELIB="-Wl,--rpath,../libsframe/.libs ../libsframe/.libs/libsframe.so"
19458 else
19459 TESTBFDLIB="../bfd/.libs/libbfd.a"
19460 TESTCTFLIB="../libctf/.libs/libctf.a"
19461 TESTSFRAMELIB="../libsframe/.libs/libsframe.a"
19462 fi
19463 if test "${enable_libctf}" = no; then
19464 TESTCTFLIB=
19465 fi
19466
19467
19468
19469
19470 target_vendor=${target_vendor=$host_vendor}
19471 case "$target_vendor" in
19472 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
19473 *) EXTRA_SHLIB_EXTENSION= ;;
19474 esac
19475
19476 case "$target_os" in
19477 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
19478 esac
19479
19480 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
19481
19482 cat >>confdefs.h <<_ACEOF
19483 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
19484 _ACEOF
19485
19486 fi
19487
19488 ac_config_commands="$ac_config_commands default"
19489
19490
19491
19492
19493
19494
19495
19496 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
19497
19498 cat >confcache <<\_ACEOF
19499 # This file is a shell script that caches the results of configure
19500 # tests run on this system so they can be shared between configure
19501 # scripts and configure runs, see configure's option --config-cache.
19502 # It is not useful on other systems. If it contains results you don't
19503 # want to keep, you may remove or edit it.
19504 #
19505 # config.status only pays attention to the cache file if you give it
19506 # the --recheck option to rerun configure.
19507 #
19508 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19509 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19510 # following values.
19511
19512 _ACEOF
19513
19514 # The following way of writing the cache mishandles newlines in values,
19515 # but we know of no workaround that is simple, portable, and efficient.
19516 # So, we kill variables containing newlines.
19517 # Ultrix sh set writes to stderr and can't be redirected directly,
19518 # and sets the high bit in the cache file unless we assign to the vars.
19519 (
19520 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19521 eval ac_val=\$$ac_var
19522 case $ac_val in #(
19523 *${as_nl}*)
19524 case $ac_var in #(
19525 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19526 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19527 esac
19528 case $ac_var in #(
19529 _ | IFS | as_nl) ;; #(
19530 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19531 *) { eval $ac_var=; unset $ac_var;} ;;
19532 esac ;;
19533 esac
19534 done
19535
19536 (set) 2>&1 |
19537 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19538 *${as_nl}ac_space=\ *)
19539 # `set' does not quote correctly, so add quotes: double-quote
19540 # substitution turns \\\\ into \\, and sed turns \\ into \.
19541 sed -n \
19542 "s/'/'\\\\''/g;
19543 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19544 ;; #(
19545 *)
19546 # `set' quotes correctly as required by POSIX, so do not add quotes.
19547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19548 ;;
19549 esac |
19550 sort
19551 ) |
19552 sed '
19553 /^ac_cv_env_/b end
19554 t clear
19555 :clear
19556 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19557 t end
19558 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19559 :end' >>confcache
19560 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19561 if test -w "$cache_file"; then
19562 if test "x$cache_file" != "x/dev/null"; then
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19564 $as_echo "$as_me: updating cache $cache_file" >&6;}
19565 if test ! -f "$cache_file" || test -h "$cache_file"; then
19566 cat confcache >"$cache_file"
19567 else
19568 case $cache_file in #(
19569 */* | ?:*)
19570 mv -f confcache "$cache_file"$$ &&
19571 mv -f "$cache_file"$$ "$cache_file" ;; #(
19572 *)
19573 mv -f confcache "$cache_file" ;;
19574 esac
19575 fi
19576 fi
19577 else
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19579 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19580 fi
19581 fi
19582 rm -f confcache
19583
19584 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19585 # Let make expand exec_prefix.
19586 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19587
19588 DEFS=-DHAVE_CONFIG_H
19589
19590 ac_libobjs=
19591 ac_ltlibobjs=
19592 U=
19593 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19594 # 1. Remove the extension, and $U if already installed.
19595 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19596 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19597 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19598 # will be set to the directory where LIBOBJS objects are built.
19599 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19600 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19601 done
19602 LIBOBJS=$ac_libobjs
19603
19604 LTLIBOBJS=$ac_ltlibobjs
19605
19606
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19608 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19609 if test -n "$am_sleep_pid"; then
19610 # Hide warnings about reused PIDs.
19611 wait $am_sleep_pid 2>/dev/null
19612 fi
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19614 $as_echo "done" >&6; }
19615 if test -n "$EXEEXT"; then
19616 am__EXEEXT_TRUE=
19617 am__EXEEXT_FALSE='#'
19618 else
19619 am__EXEEXT_TRUE='#'
19620 am__EXEEXT_FALSE=
19621 fi
19622
19623 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19624 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19626 fi
19627 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19628 as_fn_error $? "conditional \"AMDEP\" was never defined.
19629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19630 fi
19631 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19632 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19634 fi
19635 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19636 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19638 fi
19639 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
19640 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
19641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19642 fi
19643 if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
19644 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
19645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19646 fi
19647 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19648 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19650 fi
19651 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
19652 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
19653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19654 fi
19655
19656 : "${CONFIG_STATUS=./config.status}"
19657 ac_write_fail=0
19658 ac_clean_files_save=$ac_clean_files
19659 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19661 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19662 as_write_fail=0
19663 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19664 #! $SHELL
19665 # Generated by $as_me.
19666 # Run this file to recreate the current configuration.
19667 # Compiler output produced by configure, useful for debugging
19668 # configure, is in config.log if it exists.
19669
19670 debug=false
19671 ac_cs_recheck=false
19672 ac_cs_silent=false
19673
19674 SHELL=\${CONFIG_SHELL-$SHELL}
19675 export SHELL
19676 _ASEOF
19677 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19678 ## -------------------- ##
19679 ## M4sh Initialization. ##
19680 ## -------------------- ##
19681
19682 # Be more Bourne compatible
19683 DUALCASE=1; export DUALCASE # for MKS sh
19684 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19685 emulate sh
19686 NULLCMD=:
19687 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19688 # is contrary to our usage. Disable this feature.
19689 alias -g '${1+"$@"}'='"$@"'
19690 setopt NO_GLOB_SUBST
19691 else
19692 case `(set -o) 2>/dev/null` in #(
19693 *posix*) :
19694 set -o posix ;; #(
19695 *) :
19696 ;;
19697 esac
19698 fi
19699
19700
19701 as_nl='
19702 '
19703 export as_nl
19704 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19705 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19706 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19707 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19708 # Prefer a ksh shell builtin over an external printf program on Solaris,
19709 # but without wasting forks for bash or zsh.
19710 if test -z "$BASH_VERSION$ZSH_VERSION" \
19711 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19712 as_echo='print -r --'
19713 as_echo_n='print -rn --'
19714 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19715 as_echo='printf %s\n'
19716 as_echo_n='printf %s'
19717 else
19718 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19719 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19720 as_echo_n='/usr/ucb/echo -n'
19721 else
19722 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19723 as_echo_n_body='eval
19724 arg=$1;
19725 case $arg in #(
19726 *"$as_nl"*)
19727 expr "X$arg" : "X\\(.*\\)$as_nl";
19728 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19729 esac;
19730 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19731 '
19732 export as_echo_n_body
19733 as_echo_n='sh -c $as_echo_n_body as_echo'
19734 fi
19735 export as_echo_body
19736 as_echo='sh -c $as_echo_body as_echo'
19737 fi
19738
19739 # The user is always right.
19740 if test "${PATH_SEPARATOR+set}" != set; then
19741 PATH_SEPARATOR=:
19742 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19743 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19744 PATH_SEPARATOR=';'
19745 }
19746 fi
19747
19748
19749 # IFS
19750 # We need space, tab and new line, in precisely that order. Quoting is
19751 # there to prevent editors from complaining about space-tab.
19752 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19753 # splitting by setting IFS to empty value.)
19754 IFS=" "" $as_nl"
19755
19756 # Find who we are. Look in the path if we contain no directory separator.
19757 as_myself=
19758 case $0 in #((
19759 *[\\/]* ) as_myself=$0 ;;
19760 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19761 for as_dir in $PATH
19762 do
19763 IFS=$as_save_IFS
19764 test -z "$as_dir" && as_dir=.
19765 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19766 done
19767 IFS=$as_save_IFS
19768
19769 ;;
19770 esac
19771 # We did not find ourselves, most probably we were run as `sh COMMAND'
19772 # in which case we are not to be found in the path.
19773 if test "x$as_myself" = x; then
19774 as_myself=$0
19775 fi
19776 if test ! -f "$as_myself"; then
19777 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19778 exit 1
19779 fi
19780
19781 # Unset variables that we do not need and which cause bugs (e.g. in
19782 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19783 # suppresses any "Segmentation fault" message there. '((' could
19784 # trigger a bug in pdksh 5.2.14.
19785 for as_var in BASH_ENV ENV MAIL MAILPATH
19786 do eval test x\${$as_var+set} = xset \
19787 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19788 done
19789 PS1='$ '
19790 PS2='> '
19791 PS4='+ '
19792
19793 # NLS nuisances.
19794 LC_ALL=C
19795 export LC_ALL
19796 LANGUAGE=C
19797 export LANGUAGE
19798
19799 # CDPATH.
19800 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19801
19802
19803 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19804 # ----------------------------------------
19805 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19806 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19807 # script with STATUS, using 1 if that was 0.
19808 as_fn_error ()
19809 {
19810 as_status=$1; test $as_status -eq 0 && as_status=1
19811 if test "$4"; then
19812 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19813 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19814 fi
19815 $as_echo "$as_me: error: $2" >&2
19816 as_fn_exit $as_status
19817 } # as_fn_error
19818
19819
19820 # as_fn_set_status STATUS
19821 # -----------------------
19822 # Set $? to STATUS, without forking.
19823 as_fn_set_status ()
19824 {
19825 return $1
19826 } # as_fn_set_status
19827
19828 # as_fn_exit STATUS
19829 # -----------------
19830 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19831 as_fn_exit ()
19832 {
19833 set +e
19834 as_fn_set_status $1
19835 exit $1
19836 } # as_fn_exit
19837
19838 # as_fn_unset VAR
19839 # ---------------
19840 # Portably unset VAR.
19841 as_fn_unset ()
19842 {
19843 { eval $1=; unset $1;}
19844 }
19845 as_unset=as_fn_unset
19846 # as_fn_append VAR VALUE
19847 # ----------------------
19848 # Append the text in VALUE to the end of the definition contained in VAR. Take
19849 # advantage of any shell optimizations that allow amortized linear growth over
19850 # repeated appends, instead of the typical quadratic growth present in naive
19851 # implementations.
19852 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19853 eval 'as_fn_append ()
19854 {
19855 eval $1+=\$2
19856 }'
19857 else
19858 as_fn_append ()
19859 {
19860 eval $1=\$$1\$2
19861 }
19862 fi # as_fn_append
19863
19864 # as_fn_arith ARG...
19865 # ------------------
19866 # Perform arithmetic evaluation on the ARGs, and store the result in the
19867 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19868 # must be portable across $(()) and expr.
19869 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19870 eval 'as_fn_arith ()
19871 {
19872 as_val=$(( $* ))
19873 }'
19874 else
19875 as_fn_arith ()
19876 {
19877 as_val=`expr "$@" || test $? -eq 1`
19878 }
19879 fi # as_fn_arith
19880
19881
19882 if expr a : '\(a\)' >/dev/null 2>&1 &&
19883 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19884 as_expr=expr
19885 else
19886 as_expr=false
19887 fi
19888
19889 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19890 as_basename=basename
19891 else
19892 as_basename=false
19893 fi
19894
19895 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19896 as_dirname=dirname
19897 else
19898 as_dirname=false
19899 fi
19900
19901 as_me=`$as_basename -- "$0" ||
19902 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19903 X"$0" : 'X\(//\)$' \| \
19904 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19905 $as_echo X/"$0" |
19906 sed '/^.*\/\([^/][^/]*\)\/*$/{
19907 s//\1/
19908 q
19909 }
19910 /^X\/\(\/\/\)$/{
19911 s//\1/
19912 q
19913 }
19914 /^X\/\(\/\).*/{
19915 s//\1/
19916 q
19917 }
19918 s/.*/./; q'`
19919
19920 # Avoid depending upon Character Ranges.
19921 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19922 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19923 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19924 as_cr_digits='0123456789'
19925 as_cr_alnum=$as_cr_Letters$as_cr_digits
19926
19927 ECHO_C= ECHO_N= ECHO_T=
19928 case `echo -n x` in #(((((
19929 -n*)
19930 case `echo 'xy\c'` in
19931 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19932 xy) ECHO_C='\c';;
19933 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19934 ECHO_T=' ';;
19935 esac;;
19936 *)
19937 ECHO_N='-n';;
19938 esac
19939
19940 rm -f conf$$ conf$$.exe conf$$.file
19941 if test -d conf$$.dir; then
19942 rm -f conf$$.dir/conf$$.file
19943 else
19944 rm -f conf$$.dir
19945 mkdir conf$$.dir 2>/dev/null
19946 fi
19947 if (echo >conf$$.file) 2>/dev/null; then
19948 if ln -s conf$$.file conf$$ 2>/dev/null; then
19949 as_ln_s='ln -s'
19950 # ... but there are two gotchas:
19951 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19952 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19953 # In both cases, we have to default to `cp -pR'.
19954 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19955 as_ln_s='cp -pR'
19956 elif ln conf$$.file conf$$ 2>/dev/null; then
19957 as_ln_s=ln
19958 else
19959 as_ln_s='cp -pR'
19960 fi
19961 else
19962 as_ln_s='cp -pR'
19963 fi
19964 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19965 rmdir conf$$.dir 2>/dev/null
19966
19967
19968 # as_fn_mkdir_p
19969 # -------------
19970 # Create "$as_dir" as a directory, including parents if necessary.
19971 as_fn_mkdir_p ()
19972 {
19973
19974 case $as_dir in #(
19975 -*) as_dir=./$as_dir;;
19976 esac
19977 test -d "$as_dir" || eval $as_mkdir_p || {
19978 as_dirs=
19979 while :; do
19980 case $as_dir in #(
19981 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19982 *) as_qdir=$as_dir;;
19983 esac
19984 as_dirs="'$as_qdir' $as_dirs"
19985 as_dir=`$as_dirname -- "$as_dir" ||
19986 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19987 X"$as_dir" : 'X\(//\)[^/]' \| \
19988 X"$as_dir" : 'X\(//\)$' \| \
19989 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19990 $as_echo X"$as_dir" |
19991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19992 s//\1/
19993 q
19994 }
19995 /^X\(\/\/\)[^/].*/{
19996 s//\1/
19997 q
19998 }
19999 /^X\(\/\/\)$/{
20000 s//\1/
20001 q
20002 }
20003 /^X\(\/\).*/{
20004 s//\1/
20005 q
20006 }
20007 s/.*/./; q'`
20008 test -d "$as_dir" && break
20009 done
20010 test -z "$as_dirs" || eval "mkdir $as_dirs"
20011 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20012
20013
20014 } # as_fn_mkdir_p
20015 if mkdir -p . 2>/dev/null; then
20016 as_mkdir_p='mkdir -p "$as_dir"'
20017 else
20018 test -d ./-p && rmdir ./-p
20019 as_mkdir_p=false
20020 fi
20021
20022
20023 # as_fn_executable_p FILE
20024 # -----------------------
20025 # Test if FILE is an executable regular file.
20026 as_fn_executable_p ()
20027 {
20028 test -f "$1" && test -x "$1"
20029 } # as_fn_executable_p
20030 as_test_x='test -x'
20031 as_executable_p=as_fn_executable_p
20032
20033 # Sed expression to map a string onto a valid CPP name.
20034 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20035
20036 # Sed expression to map a string onto a valid variable name.
20037 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20038
20039
20040 exec 6>&1
20041 ## ----------------------------------- ##
20042 ## Main body of $CONFIG_STATUS script. ##
20043 ## ----------------------------------- ##
20044 _ASEOF
20045 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20046
20047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20048 # Save the log message, to keep $0 and so on meaningful, and to
20049 # report actual input values of CONFIG_FILES etc. instead of their
20050 # values after options handling.
20051 ac_log="
20052 This file was extended by ld $as_me 2.41.50, which was
20053 generated by GNU Autoconf 2.69. Invocation command line was
20054
20055 CONFIG_FILES = $CONFIG_FILES
20056 CONFIG_HEADERS = $CONFIG_HEADERS
20057 CONFIG_LINKS = $CONFIG_LINKS
20058 CONFIG_COMMANDS = $CONFIG_COMMANDS
20059 $ $0 $@
20060
20061 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20062 "
20063
20064 _ACEOF
20065
20066 case $ac_config_files in *"
20067 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20068 esac
20069
20070 case $ac_config_headers in *"
20071 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20072 esac
20073
20074
20075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20076 # Files that config.status was made for.
20077 config_files="$ac_config_files"
20078 config_headers="$ac_config_headers"
20079 config_commands="$ac_config_commands"
20080
20081 _ACEOF
20082
20083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20084 ac_cs_usage="\
20085 \`$as_me' instantiates files and other configuration actions
20086 from templates according to the current configuration. Unless the files
20087 and actions are specified as TAGs, all are instantiated by default.
20088
20089 Usage: $0 [OPTION]... [TAG]...
20090
20091 -h, --help print this help, then exit
20092 -V, --version print version number and configuration settings, then exit
20093 --config print configuration, then exit
20094 -q, --quiet, --silent
20095 do not print progress messages
20096 -d, --debug don't remove temporary files
20097 --recheck update $as_me by reconfiguring in the same conditions
20098 --file=FILE[:TEMPLATE]
20099 instantiate the configuration file FILE
20100 --header=FILE[:TEMPLATE]
20101 instantiate the configuration header FILE
20102
20103 Configuration files:
20104 $config_files
20105
20106 Configuration headers:
20107 $config_headers
20108
20109 Configuration commands:
20110 $config_commands
20111
20112 Report bugs to the package provider."
20113
20114 _ACEOF
20115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20116 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20117 ac_cs_version="\\
20118 ld config.status 2.41.50
20119 configured by $0, generated by GNU Autoconf 2.69,
20120 with options \\"\$ac_cs_config\\"
20121
20122 Copyright (C) 2012 Free Software Foundation, Inc.
20123 This config.status script is free software; the Free Software Foundation
20124 gives unlimited permission to copy, distribute and modify it."
20125
20126 ac_pwd='$ac_pwd'
20127 srcdir='$srcdir'
20128 INSTALL='$INSTALL'
20129 MKDIR_P='$MKDIR_P'
20130 AWK='$AWK'
20131 test -n "\$AWK" || AWK=awk
20132 _ACEOF
20133
20134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20135 # The default lists apply if the user does not specify any file.
20136 ac_need_defaults=:
20137 while test $# != 0
20138 do
20139 case $1 in
20140 --*=?*)
20141 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20142 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20143 ac_shift=:
20144 ;;
20145 --*=)
20146 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20147 ac_optarg=
20148 ac_shift=:
20149 ;;
20150 *)
20151 ac_option=$1
20152 ac_optarg=$2
20153 ac_shift=shift
20154 ;;
20155 esac
20156
20157 case $ac_option in
20158 # Handling of the options.
20159 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20160 ac_cs_recheck=: ;;
20161 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20162 $as_echo "$ac_cs_version"; exit ;;
20163 --config | --confi | --conf | --con | --co | --c )
20164 $as_echo "$ac_cs_config"; exit ;;
20165 --debug | --debu | --deb | --de | --d | -d )
20166 debug=: ;;
20167 --file | --fil | --fi | --f )
20168 $ac_shift
20169 case $ac_optarg in
20170 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20171 '') as_fn_error $? "missing file argument" ;;
20172 esac
20173 as_fn_append CONFIG_FILES " '$ac_optarg'"
20174 ac_need_defaults=false;;
20175 --header | --heade | --head | --hea )
20176 $ac_shift
20177 case $ac_optarg in
20178 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20179 esac
20180 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20181 ac_need_defaults=false;;
20182 --he | --h)
20183 # Conflict between --help and --header
20184 as_fn_error $? "ambiguous option: \`$1'
20185 Try \`$0 --help' for more information.";;
20186 --help | --hel | -h )
20187 $as_echo "$ac_cs_usage"; exit ;;
20188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20189 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20190 ac_cs_silent=: ;;
20191
20192 # This is an error.
20193 -*) as_fn_error $? "unrecognized option: \`$1'
20194 Try \`$0 --help' for more information." ;;
20195
20196 *) as_fn_append ac_config_targets " $1"
20197 ac_need_defaults=false ;;
20198
20199 esac
20200 shift
20201 done
20202
20203 ac_configure_extra_args=
20204
20205 if $ac_cs_silent; then
20206 exec 6>/dev/null
20207 ac_configure_extra_args="$ac_configure_extra_args --silent"
20208 fi
20209
20210 _ACEOF
20211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20212 if \$ac_cs_recheck; then
20213 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20214 shift
20215 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20216 CONFIG_SHELL='$SHELL'
20217 export CONFIG_SHELL
20218 exec "\$@"
20219 fi
20220
20221 _ACEOF
20222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20223 exec 5>>config.log
20224 {
20225 echo
20226 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20227 ## Running $as_me. ##
20228 _ASBOX
20229 $as_echo "$ac_log"
20230 } >&5
20231
20232 _ACEOF
20233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20234 #
20235 # INIT-COMMANDS
20236 #
20237 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20238
20239
20240 # The HP-UX ksh and POSIX shell print the target directory to stdout
20241 # if CDPATH is set.
20242 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20243
20244 sed_quote_subst='$sed_quote_subst'
20245 double_quote_subst='$double_quote_subst'
20246 delay_variable_subst='$delay_variable_subst'
20247 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20248 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20249 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20250 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20251 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20252 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20253 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20254 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20255 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20256 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20257 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20258 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20259 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20260 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20261 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20262 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20263 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20264 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20265 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20266 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20267 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20268 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20269 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20270 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20271 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20272 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20273 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20274 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20275 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20276 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20277 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20278 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20279 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20280 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20281 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20282 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20283 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20284 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20285 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20286 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20287 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20288 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20289 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20290 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20291 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20292 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20293 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20294 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20295 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"`'
20296 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20297 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20298 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20299 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20300 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20301 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20302 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20303 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20304 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20305 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20306 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20307 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20308 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20309 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20310 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20311 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20312 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20313 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20314 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20315 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20316 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20317 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20318 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20319 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20320 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20321 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20322 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20323 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20324 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20325 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20326 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20327 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20328 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20329 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20330 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20331 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20332 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20333 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20334 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20335 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20336 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
20337 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20338 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20339 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20340 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20341 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20342 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20343 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20344 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20345 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20346 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20347 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20348 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20349 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20350 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20351 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20352 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20353 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20354 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20355 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20356 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20357 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20358 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20359 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20360 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20361 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20362 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20363 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20364 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20365 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20366 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20367 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20368 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20369 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20370 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20371 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20372 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20373 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20374 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20375 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20376 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20377 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20378 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20379 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20380 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20381 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20382 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20383 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20384 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20385 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20386 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20387 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20388 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20389 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20390 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20391 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20392 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20393 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20394 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20395 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20396 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20397 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20398 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20399 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
20400 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20401 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20402 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20403 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20404 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20405 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20406 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20407 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20408 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
20409 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20410 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20411 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20412 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20413 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20414 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20415 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20416 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20417 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20418 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20419 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20420 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20421 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20422
20423 LTCC='$LTCC'
20424 LTCFLAGS='$LTCFLAGS'
20425 compiler='$compiler_DEFAULT'
20426
20427 # A function that is used when there is no print builtin or printf.
20428 func_fallback_echo ()
20429 {
20430 eval 'cat <<_LTECHO_EOF
20431 \$1
20432 _LTECHO_EOF'
20433 }
20434
20435 # Quote evaled strings.
20436 for var in SHELL \
20437 ECHO \
20438 SED \
20439 GREP \
20440 EGREP \
20441 FGREP \
20442 LD \
20443 NM \
20444 LN_S \
20445 lt_SP2NL \
20446 lt_NL2SP \
20447 reload_flag \
20448 OBJDUMP \
20449 deplibs_check_method \
20450 file_magic_cmd \
20451 AR \
20452 AR_FLAGS \
20453 STRIP \
20454 RANLIB \
20455 CC \
20456 CFLAGS \
20457 compiler \
20458 lt_cv_sys_global_symbol_pipe \
20459 lt_cv_sys_global_symbol_to_cdecl \
20460 lt_cv_sys_global_symbol_to_c_name_address \
20461 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20462 lt_prog_compiler_no_builtin_flag \
20463 lt_prog_compiler_wl \
20464 lt_prog_compiler_pic \
20465 lt_prog_compiler_static \
20466 lt_cv_prog_compiler_c_o \
20467 need_locks \
20468 DSYMUTIL \
20469 NMEDIT \
20470 LIPO \
20471 OTOOL \
20472 OTOOL64 \
20473 shrext_cmds \
20474 export_dynamic_flag_spec \
20475 whole_archive_flag_spec \
20476 compiler_needs_object \
20477 with_gnu_ld \
20478 allow_undefined_flag \
20479 no_undefined_flag \
20480 hardcode_libdir_flag_spec \
20481 hardcode_libdir_flag_spec_ld \
20482 hardcode_libdir_separator \
20483 fix_srcfile_path \
20484 exclude_expsyms \
20485 include_expsyms \
20486 file_list_spec \
20487 variables_saved_for_relink \
20488 libname_spec \
20489 library_names_spec \
20490 soname_spec \
20491 install_override_mode \
20492 finish_eval \
20493 old_striplib \
20494 striplib \
20495 compiler_lib_search_dirs \
20496 predep_objects \
20497 postdep_objects \
20498 predeps \
20499 postdeps \
20500 compiler_lib_search_path \
20501 LD_CXX \
20502 reload_flag_CXX \
20503 compiler_CXX \
20504 lt_prog_compiler_no_builtin_flag_CXX \
20505 lt_prog_compiler_wl_CXX \
20506 lt_prog_compiler_pic_CXX \
20507 lt_prog_compiler_static_CXX \
20508 lt_cv_prog_compiler_c_o_CXX \
20509 export_dynamic_flag_spec_CXX \
20510 whole_archive_flag_spec_CXX \
20511 compiler_needs_object_CXX \
20512 with_gnu_ld_CXX \
20513 allow_undefined_flag_CXX \
20514 no_undefined_flag_CXX \
20515 hardcode_libdir_flag_spec_CXX \
20516 hardcode_libdir_flag_spec_ld_CXX \
20517 hardcode_libdir_separator_CXX \
20518 fix_srcfile_path_CXX \
20519 exclude_expsyms_CXX \
20520 include_expsyms_CXX \
20521 file_list_spec_CXX \
20522 compiler_lib_search_dirs_CXX \
20523 predep_objects_CXX \
20524 postdep_objects_CXX \
20525 predeps_CXX \
20526 postdeps_CXX \
20527 compiler_lib_search_path_CXX; do
20528 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20529 *[\\\\\\\`\\"\\\$]*)
20530 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20531 ;;
20532 *)
20533 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20534 ;;
20535 esac
20536 done
20537
20538 # Double-quote double-evaled strings.
20539 for var in reload_cmds \
20540 old_postinstall_cmds \
20541 old_postuninstall_cmds \
20542 old_archive_cmds \
20543 extract_expsyms_cmds \
20544 old_archive_from_new_cmds \
20545 old_archive_from_expsyms_cmds \
20546 archive_cmds \
20547 archive_expsym_cmds \
20548 module_cmds \
20549 module_expsym_cmds \
20550 export_symbols_cmds \
20551 prelink_cmds \
20552 postinstall_cmds \
20553 postuninstall_cmds \
20554 finish_cmds \
20555 sys_lib_search_path_spec \
20556 sys_lib_dlsearch_path_spec \
20557 reload_cmds_CXX \
20558 old_archive_cmds_CXX \
20559 old_archive_from_new_cmds_CXX \
20560 old_archive_from_expsyms_cmds_CXX \
20561 archive_cmds_CXX \
20562 archive_expsym_cmds_CXX \
20563 module_cmds_CXX \
20564 module_expsym_cmds_CXX \
20565 export_symbols_cmds_CXX \
20566 prelink_cmds_CXX; do
20567 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20568 *[\\\\\\\`\\"\\\$]*)
20569 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20570 ;;
20571 *)
20572 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20573 ;;
20574 esac
20575 done
20576
20577 ac_aux_dir='$ac_aux_dir'
20578 xsi_shell='$xsi_shell'
20579 lt_shell_append='$lt_shell_append'
20580
20581 # See if we are running on zsh, and set the options which allow our
20582 # commands through without removal of \ escapes INIT.
20583 if test -n "\${ZSH_VERSION+set}" ; then
20584 setopt NO_GLOB_SUBST
20585 fi
20586
20587
20588 PACKAGE='$PACKAGE'
20589 VERSION='$VERSION'
20590 TIMESTAMP='$TIMESTAMP'
20591 RM='$RM'
20592 ofile='$ofile'
20593
20594
20595
20596
20597
20598 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20599 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20600 # from automake.
20601 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20602 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20603 LINGUAS="${LINGUAS-%UNSET%}"
20604
20605 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20606 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20607 # from automake.
20608 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20609 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20610 LINGUAS="${LINGUAS-%UNSET%}"
20611
20612
20613
20614 _ACEOF
20615
20616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20617
20618 # Handling of arguments.
20619 for ac_config_target in $ac_config_targets
20620 do
20621 case $ac_config_target in
20622 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20623 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20624 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
20625 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20626 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
20627 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20628 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20629 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
20630
20631 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20632 esac
20633 done
20634
20635
20636 # If the user did not use the arguments to specify the items to instantiate,
20637 # then the envvar interface is used. Set only those that are not.
20638 # We use the long form for the default assignment because of an extremely
20639 # bizarre bug on SunOS 4.1.3.
20640 if $ac_need_defaults; then
20641 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20642 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20643 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20644 fi
20645
20646 # Have a temporary directory for convenience. Make it in the build tree
20647 # simply because there is no reason against having it here, and in addition,
20648 # creating and moving files from /tmp can sometimes cause problems.
20649 # Hook for its removal unless debugging.
20650 # Note that there is a small window in which the directory will not be cleaned:
20651 # after its creation but before its name has been assigned to `$tmp'.
20652 $debug ||
20653 {
20654 tmp= ac_tmp=
20655 trap 'exit_status=$?
20656 : "${ac_tmp:=$tmp}"
20657 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20658 ' 0
20659 trap 'as_fn_exit 1' 1 2 13 15
20660 }
20661 # Create a (secure) tmp directory for tmp files.
20662
20663 {
20664 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20665 test -d "$tmp"
20666 } ||
20667 {
20668 tmp=./conf$$-$RANDOM
20669 (umask 077 && mkdir "$tmp")
20670 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20671 ac_tmp=$tmp
20672
20673 # Set up the scripts for CONFIG_FILES section.
20674 # No need to generate them if there are no CONFIG_FILES.
20675 # This happens for instance with `./config.status config.h'.
20676 if test -n "$CONFIG_FILES"; then
20677
20678
20679 ac_cr=`echo X | tr X '\015'`
20680 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20681 # But we know of no other shell where ac_cr would be empty at this
20682 # point, so we can use a bashism as a fallback.
20683 if test "x$ac_cr" = x; then
20684 eval ac_cr=\$\'\\r\'
20685 fi
20686 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20687 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20688 ac_cs_awk_cr='\\r'
20689 else
20690 ac_cs_awk_cr=$ac_cr
20691 fi
20692
20693 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20694 _ACEOF
20695
20696
20697 {
20698 echo "cat >conf$$subs.awk <<_ACEOF" &&
20699 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20700 echo "_ACEOF"
20701 } >conf$$subs.sh ||
20702 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20703 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20704 ac_delim='%!_!# '
20705 for ac_last_try in false false false false false :; do
20706 . ./conf$$subs.sh ||
20707 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20708
20709 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20710 if test $ac_delim_n = $ac_delim_num; then
20711 break
20712 elif $ac_last_try; then
20713 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20714 else
20715 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20716 fi
20717 done
20718 rm -f conf$$subs.sh
20719
20720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20721 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20722 _ACEOF
20723 sed -n '
20724 h
20725 s/^/S["/; s/!.*/"]=/
20726 p
20727 g
20728 s/^[^!]*!//
20729 :repl
20730 t repl
20731 s/'"$ac_delim"'$//
20732 t delim
20733 :nl
20734 h
20735 s/\(.\{148\}\)..*/\1/
20736 t more1
20737 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20738 p
20739 n
20740 b repl
20741 :more1
20742 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20743 p
20744 g
20745 s/.\{148\}//
20746 t nl
20747 :delim
20748 h
20749 s/\(.\{148\}\)..*/\1/
20750 t more2
20751 s/["\\]/\\&/g; s/^/"/; s/$/"/
20752 p
20753 b
20754 :more2
20755 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20756 p
20757 g
20758 s/.\{148\}//
20759 t delim
20760 ' <conf$$subs.awk | sed '
20761 /^[^""]/{
20762 N
20763 s/\n//
20764 }
20765 ' >>$CONFIG_STATUS || ac_write_fail=1
20766 rm -f conf$$subs.awk
20767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20768 _ACAWK
20769 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20770 for (key in S) S_is_set[key] = 1
20771 FS = "\a"
20772
20773 }
20774 {
20775 line = $ 0
20776 nfields = split(line, field, "@")
20777 substed = 0
20778 len = length(field[1])
20779 for (i = 2; i < nfields; i++) {
20780 key = field[i]
20781 keylen = length(key)
20782 if (S_is_set[key]) {
20783 value = S[key]
20784 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20785 len += length(value) + length(field[++i])
20786 substed = 1
20787 } else
20788 len += 1 + keylen
20789 }
20790
20791 print line
20792 }
20793
20794 _ACAWK
20795 _ACEOF
20796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20797 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20798 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20799 else
20800 cat
20801 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20802 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20803 _ACEOF
20804
20805 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20806 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20807 # trailing colons and then remove the whole line if VPATH becomes empty
20808 # (actually we leave an empty line to preserve line numbers).
20809 if test "x$srcdir" = x.; then
20810 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20811 h
20812 s///
20813 s/^/:/
20814 s/[ ]*$/:/
20815 s/:\$(srcdir):/:/g
20816 s/:\${srcdir}:/:/g
20817 s/:@srcdir@:/:/g
20818 s/^:*//
20819 s/:*$//
20820 x
20821 s/\(=[ ]*\).*/\1/
20822 G
20823 s/\n//
20824 s/^[^=]*=[ ]*$//
20825 }'
20826 fi
20827
20828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20829 fi # test -n "$CONFIG_FILES"
20830
20831 # Set up the scripts for CONFIG_HEADERS section.
20832 # No need to generate them if there are no CONFIG_HEADERS.
20833 # This happens for instance with `./config.status Makefile'.
20834 if test -n "$CONFIG_HEADERS"; then
20835 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20836 BEGIN {
20837 _ACEOF
20838
20839 # Transform confdefs.h into an awk script `defines.awk', embedded as
20840 # here-document in config.status, that substitutes the proper values into
20841 # config.h.in to produce config.h.
20842
20843 # Create a delimiter string that does not exist in confdefs.h, to ease
20844 # handling of long lines.
20845 ac_delim='%!_!# '
20846 for ac_last_try in false false :; do
20847 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20848 if test -z "$ac_tt"; then
20849 break
20850 elif $ac_last_try; then
20851 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20852 else
20853 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20854 fi
20855 done
20856
20857 # For the awk script, D is an array of macro values keyed by name,
20858 # likewise P contains macro parameters if any. Preserve backslash
20859 # newline sequences.
20860
20861 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20862 sed -n '
20863 s/.\{148\}/&'"$ac_delim"'/g
20864 t rset
20865 :rset
20866 s/^[ ]*#[ ]*define[ ][ ]*/ /
20867 t def
20868 d
20869 :def
20870 s/\\$//
20871 t bsnl
20872 s/["\\]/\\&/g
20873 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20874 D["\1"]=" \3"/p
20875 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20876 d
20877 :bsnl
20878 s/["\\]/\\&/g
20879 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20880 D["\1"]=" \3\\\\\\n"\\/p
20881 t cont
20882 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20883 t cont
20884 d
20885 :cont
20886 n
20887 s/.\{148\}/&'"$ac_delim"'/g
20888 t clear
20889 :clear
20890 s/\\$//
20891 t bsnlc
20892 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20893 d
20894 :bsnlc
20895 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20896 b cont
20897 ' <confdefs.h | sed '
20898 s/'"$ac_delim"'/"\\\
20899 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20900
20901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20902 for (key in D) D_is_set[key] = 1
20903 FS = "\a"
20904 }
20905 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20906 line = \$ 0
20907 split(line, arg, " ")
20908 if (arg[1] == "#") {
20909 defundef = arg[2]
20910 mac1 = arg[3]
20911 } else {
20912 defundef = substr(arg[1], 2)
20913 mac1 = arg[2]
20914 }
20915 split(mac1, mac2, "(") #)
20916 macro = mac2[1]
20917 prefix = substr(line, 1, index(line, defundef) - 1)
20918 if (D_is_set[macro]) {
20919 # Preserve the white space surrounding the "#".
20920 print prefix "define", macro P[macro] D[macro]
20921 next
20922 } else {
20923 # Replace #undef with comments. This is necessary, for example,
20924 # in the case of _POSIX_SOURCE, which is predefined and required
20925 # on some systems where configure will not decide to define it.
20926 if (defundef == "undef") {
20927 print "/*", prefix defundef, macro, "*/"
20928 next
20929 }
20930 }
20931 }
20932 { print }
20933 _ACAWK
20934 _ACEOF
20935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20936 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20937 fi # test -n "$CONFIG_HEADERS"
20938
20939
20940 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20941 shift
20942 for ac_tag
20943 do
20944 case $ac_tag in
20945 :[FHLC]) ac_mode=$ac_tag; continue;;
20946 esac
20947 case $ac_mode$ac_tag in
20948 :[FHL]*:*);;
20949 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20950 :[FH]-) ac_tag=-:-;;
20951 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20952 esac
20953 ac_save_IFS=$IFS
20954 IFS=:
20955 set x $ac_tag
20956 IFS=$ac_save_IFS
20957 shift
20958 ac_file=$1
20959 shift
20960
20961 case $ac_mode in
20962 :L) ac_source=$1;;
20963 :[FH])
20964 ac_file_inputs=
20965 for ac_f
20966 do
20967 case $ac_f in
20968 -) ac_f="$ac_tmp/stdin";;
20969 *) # Look for the file first in the build tree, then in the source tree
20970 # (if the path is not absolute). The absolute path cannot be DOS-style,
20971 # because $ac_f cannot contain `:'.
20972 test -f "$ac_f" ||
20973 case $ac_f in
20974 [\\/$]*) false;;
20975 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20976 esac ||
20977 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20978 esac
20979 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20980 as_fn_append ac_file_inputs " '$ac_f'"
20981 done
20982
20983 # Let's still pretend it is `configure' which instantiates (i.e., don't
20984 # use $as_me), people would be surprised to read:
20985 # /* config.h. Generated by config.status. */
20986 configure_input='Generated from '`
20987 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20988 `' by configure.'
20989 if test x"$ac_file" != x-; then
20990 configure_input="$ac_file. $configure_input"
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20992 $as_echo "$as_me: creating $ac_file" >&6;}
20993 fi
20994 # Neutralize special characters interpreted by sed in replacement strings.
20995 case $configure_input in #(
20996 *\&* | *\|* | *\\* )
20997 ac_sed_conf_input=`$as_echo "$configure_input" |
20998 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20999 *) ac_sed_conf_input=$configure_input;;
21000 esac
21001
21002 case $ac_tag in
21003 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21004 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21005 esac
21006 ;;
21007 esac
21008
21009 ac_dir=`$as_dirname -- "$ac_file" ||
21010 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21011 X"$ac_file" : 'X\(//\)[^/]' \| \
21012 X"$ac_file" : 'X\(//\)$' \| \
21013 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21014 $as_echo X"$ac_file" |
21015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21016 s//\1/
21017 q
21018 }
21019 /^X\(\/\/\)[^/].*/{
21020 s//\1/
21021 q
21022 }
21023 /^X\(\/\/\)$/{
21024 s//\1/
21025 q
21026 }
21027 /^X\(\/\).*/{
21028 s//\1/
21029 q
21030 }
21031 s/.*/./; q'`
21032 as_dir="$ac_dir"; as_fn_mkdir_p
21033 ac_builddir=.
21034
21035 case "$ac_dir" in
21036 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21037 *)
21038 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21039 # A ".." for each directory in $ac_dir_suffix.
21040 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21041 case $ac_top_builddir_sub in
21042 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21043 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21044 esac ;;
21045 esac
21046 ac_abs_top_builddir=$ac_pwd
21047 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21048 # for backward compatibility:
21049 ac_top_builddir=$ac_top_build_prefix
21050
21051 case $srcdir in
21052 .) # We are building in place.
21053 ac_srcdir=.
21054 ac_top_srcdir=$ac_top_builddir_sub
21055 ac_abs_top_srcdir=$ac_pwd ;;
21056 [\\/]* | ?:[\\/]* ) # Absolute name.
21057 ac_srcdir=$srcdir$ac_dir_suffix;
21058 ac_top_srcdir=$srcdir
21059 ac_abs_top_srcdir=$srcdir ;;
21060 *) # Relative name.
21061 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21062 ac_top_srcdir=$ac_top_build_prefix$srcdir
21063 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21064 esac
21065 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21066
21067
21068 case $ac_mode in
21069 :F)
21070 #
21071 # CONFIG_FILE
21072 #
21073
21074 case $INSTALL in
21075 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21076 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21077 esac
21078 ac_MKDIR_P=$MKDIR_P
21079 case $MKDIR_P in
21080 [\\/$]* | ?:[\\/]* ) ;;
21081 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21082 esac
21083 _ACEOF
21084
21085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21086 # If the template does not know about datarootdir, expand it.
21087 # FIXME: This hack should be removed a few years after 2.60.
21088 ac_datarootdir_hack=; ac_datarootdir_seen=
21089 ac_sed_dataroot='
21090 /datarootdir/ {
21091 p
21092 q
21093 }
21094 /@datadir@/p
21095 /@docdir@/p
21096 /@infodir@/p
21097 /@localedir@/p
21098 /@mandir@/p'
21099 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21100 *datarootdir*) ac_datarootdir_seen=yes;;
21101 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21103 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21104 _ACEOF
21105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21106 ac_datarootdir_hack='
21107 s&@datadir@&$datadir&g
21108 s&@docdir@&$docdir&g
21109 s&@infodir@&$infodir&g
21110 s&@localedir@&$localedir&g
21111 s&@mandir@&$mandir&g
21112 s&\\\${datarootdir}&$datarootdir&g' ;;
21113 esac
21114 _ACEOF
21115
21116 # Neutralize VPATH when `$srcdir' = `.'.
21117 # Shell code in configure.ac might set extrasub.
21118 # FIXME: do we really want to maintain this feature?
21119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21120 ac_sed_extra="$ac_vpsub
21121 $extrasub
21122 _ACEOF
21123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21124 :t
21125 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21126 s|@configure_input@|$ac_sed_conf_input|;t t
21127 s&@top_builddir@&$ac_top_builddir_sub&;t t
21128 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21129 s&@srcdir@&$ac_srcdir&;t t
21130 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21131 s&@top_srcdir@&$ac_top_srcdir&;t t
21132 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21133 s&@builddir@&$ac_builddir&;t t
21134 s&@abs_builddir@&$ac_abs_builddir&;t t
21135 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21136 s&@INSTALL@&$ac_INSTALL&;t t
21137 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21138 $ac_datarootdir_hack
21139 "
21140 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21141 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21142
21143 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21144 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21145 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21146 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21148 which seems to be undefined. Please make sure it is defined" >&5
21149 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21150 which seems to be undefined. Please make sure it is defined" >&2;}
21151
21152 rm -f "$ac_tmp/stdin"
21153 case $ac_file in
21154 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21155 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21156 esac \
21157 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21158 ;;
21159 :H)
21160 #
21161 # CONFIG_HEADER
21162 #
21163 if test x"$ac_file" != x-; then
21164 {
21165 $as_echo "/* $configure_input */" \
21166 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21167 } >"$ac_tmp/config.h" \
21168 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21169 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21171 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21172 else
21173 rm -f "$ac_file"
21174 mv "$ac_tmp/config.h" "$ac_file" \
21175 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21176 fi
21177 else
21178 $as_echo "/* $configure_input */" \
21179 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21180 || as_fn_error $? "could not create -" "$LINENO" 5
21181 fi
21182 # Compute "$ac_file"'s index in $config_headers.
21183 _am_arg="$ac_file"
21184 _am_stamp_count=1
21185 for _am_header in $config_headers :; do
21186 case $_am_header in
21187 $_am_arg | $_am_arg:* )
21188 break ;;
21189 * )
21190 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21191 esac
21192 done
21193 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21194 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21195 X"$_am_arg" : 'X\(//\)[^/]' \| \
21196 X"$_am_arg" : 'X\(//\)$' \| \
21197 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21198 $as_echo X"$_am_arg" |
21199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21200 s//\1/
21201 q
21202 }
21203 /^X\(\/\/\)[^/].*/{
21204 s//\1/
21205 q
21206 }
21207 /^X\(\/\/\)$/{
21208 s//\1/
21209 q
21210 }
21211 /^X\(\/\).*/{
21212 s//\1/
21213 q
21214 }
21215 s/.*/./; q'`/stamp-h$_am_stamp_count
21216 ;;
21217
21218 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21219 $as_echo "$as_me: executing $ac_file commands" >&6;}
21220 ;;
21221 esac
21222
21223
21224 case $ac_file$ac_mode in
21225 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21226 # Older Autoconf quotes --file arguments for eval, but not when files
21227 # are listed without --file. Let's play safe and only enable the eval
21228 # if we detect the quoting.
21229 case $CONFIG_FILES in
21230 *\'*) eval set x "$CONFIG_FILES" ;;
21231 *) set x $CONFIG_FILES ;;
21232 esac
21233 shift
21234 for mf
21235 do
21236 # Strip MF so we end up with the name of the file.
21237 mf=`echo "$mf" | sed -e 's/:.*$//'`
21238 # Check whether this is an Automake generated Makefile or not.
21239 # We used to match only the files named 'Makefile.in', but
21240 # some people rename them; so instead we look at the file content.
21241 # Grep'ing the first line is not enough: some people post-process
21242 # each Makefile.in and add a new line on top of each file to say so.
21243 # Grep'ing the whole file is not good either: AIX grep has a line
21244 # limit of 2048, but all sed's we know have understand at least 4000.
21245 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21246 dirpart=`$as_dirname -- "$mf" ||
21247 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21248 X"$mf" : 'X\(//\)[^/]' \| \
21249 X"$mf" : 'X\(//\)$' \| \
21250 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21251 $as_echo X"$mf" |
21252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21253 s//\1/
21254 q
21255 }
21256 /^X\(\/\/\)[^/].*/{
21257 s//\1/
21258 q
21259 }
21260 /^X\(\/\/\)$/{
21261 s//\1/
21262 q
21263 }
21264 /^X\(\/\).*/{
21265 s//\1/
21266 q
21267 }
21268 s/.*/./; q'`
21269 else
21270 continue
21271 fi
21272 # Extract the definition of DEPDIR, am__include, and am__quote
21273 # from the Makefile without running 'make'.
21274 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21275 test -z "$DEPDIR" && continue
21276 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21277 test -z "$am__include" && continue
21278 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21279 # Find all dependency output files, they are included files with
21280 # $(DEPDIR) in their names. We invoke sed twice because it is the
21281 # simplest approach to changing $(DEPDIR) to its actual value in the
21282 # expansion.
21283 for file in `sed -n "
21284 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21285 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21286 # Make sure the directory exists.
21287 test -f "$dirpart/$file" && continue
21288 fdir=`$as_dirname -- "$file" ||
21289 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21290 X"$file" : 'X\(//\)[^/]' \| \
21291 X"$file" : 'X\(//\)$' \| \
21292 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21293 $as_echo X"$file" |
21294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21295 s//\1/
21296 q
21297 }
21298 /^X\(\/\/\)[^/].*/{
21299 s//\1/
21300 q
21301 }
21302 /^X\(\/\/\)$/{
21303 s//\1/
21304 q
21305 }
21306 /^X\(\/\).*/{
21307 s//\1/
21308 q
21309 }
21310 s/.*/./; q'`
21311 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21312 # echo "creating $dirpart/$file"
21313 echo '# dummy' > "$dirpart/$file"
21314 done
21315 done
21316 }
21317 ;;
21318 "libtool":C)
21319
21320 # See if we are running on zsh, and set the options which allow our
21321 # commands through without removal of \ escapes.
21322 if test -n "${ZSH_VERSION+set}" ; then
21323 setopt NO_GLOB_SUBST
21324 fi
21325
21326 cfgfile="${ofile}T"
21327 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21328 $RM "$cfgfile"
21329
21330 cat <<_LT_EOF >> "$cfgfile"
21331 #! $SHELL
21332
21333 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21334 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21335 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21336 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21337 #
21338 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21339 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
21340 # Written by Gordon Matzigkeit, 1996
21341 #
21342 # This file is part of GNU Libtool.
21343 #
21344 # GNU Libtool is free software; you can redistribute it and/or
21345 # modify it under the terms of the GNU General Public License as
21346 # published by the Free Software Foundation; either version 2 of
21347 # the License, or (at your option) any later version.
21348 #
21349 # As a special exception to the GNU General Public License,
21350 # if you distribute this file as part of a program or library that
21351 # is built using GNU Libtool, you may include this file under the
21352 # same distribution terms that you use for the rest of that program.
21353 #
21354 # GNU Libtool is distributed in the hope that it will be useful,
21355 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21356 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21357 # GNU General Public License for more details.
21358 #
21359 # You should have received a copy of the GNU General Public License
21360 # along with GNU Libtool; see the file COPYING. If not, a copy
21361 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21362 # obtained by writing to the Free Software Foundation, Inc.,
21363 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21364
21365
21366 # The names of the tagged configurations supported by this script.
21367 available_tags="CXX "
21368
21369 # ### BEGIN LIBTOOL CONFIG
21370
21371 # Which release of libtool.m4 was used?
21372 macro_version=$macro_version
21373 macro_revision=$macro_revision
21374
21375 # Whether or not to build shared libraries.
21376 build_libtool_libs=$enable_shared
21377
21378 # Whether or not to build static libraries.
21379 build_old_libs=$enable_static
21380
21381 # What type of objects to build.
21382 pic_mode=$pic_mode
21383
21384 # Whether or not to optimize for fast installation.
21385 fast_install=$enable_fast_install
21386
21387 # Shell to use when invoking shell scripts.
21388 SHELL=$lt_SHELL
21389
21390 # An echo program that protects backslashes.
21391 ECHO=$lt_ECHO
21392
21393 # The host system.
21394 host_alias=$host_alias
21395 host=$host
21396 host_os=$host_os
21397
21398 # The build system.
21399 build_alias=$build_alias
21400 build=$build
21401 build_os=$build_os
21402
21403 # A sed program that does not truncate output.
21404 SED=$lt_SED
21405
21406 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21407 Xsed="\$SED -e 1s/^X//"
21408
21409 # A grep program that handles long lines.
21410 GREP=$lt_GREP
21411
21412 # An ERE matcher.
21413 EGREP=$lt_EGREP
21414
21415 # A literal string matcher.
21416 FGREP=$lt_FGREP
21417
21418 # A BSD- or MS-compatible name lister.
21419 NM=$lt_NM
21420
21421 # Whether we need soft or hard links.
21422 LN_S=$lt_LN_S
21423
21424 # What is the maximum length of a command?
21425 max_cmd_len=$max_cmd_len
21426
21427 # Object file suffix (normally "o").
21428 objext=$ac_objext
21429
21430 # Executable file suffix (normally "").
21431 exeext=$exeext
21432
21433 # whether the shell understands "unset".
21434 lt_unset=$lt_unset
21435
21436 # turn spaces into newlines.
21437 SP2NL=$lt_lt_SP2NL
21438
21439 # turn newlines into spaces.
21440 NL2SP=$lt_lt_NL2SP
21441
21442 # An object symbol dumper.
21443 OBJDUMP=$lt_OBJDUMP
21444
21445 # Method to check whether dependent libraries are shared objects.
21446 deplibs_check_method=$lt_deplibs_check_method
21447
21448 # Command to use when deplibs_check_method == "file_magic".
21449 file_magic_cmd=$lt_file_magic_cmd
21450
21451 # The archiver.
21452 AR=$lt_AR
21453 AR_FLAGS=$lt_AR_FLAGS
21454
21455 # A symbol stripping program.
21456 STRIP=$lt_STRIP
21457
21458 # Commands used to install an old-style archive.
21459 RANLIB=$lt_RANLIB
21460 old_postinstall_cmds=$lt_old_postinstall_cmds
21461 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21462
21463 # Whether to use a lock for old archive extraction.
21464 lock_old_archive_extraction=$lock_old_archive_extraction
21465
21466 # A C compiler.
21467 LTCC=$lt_CC
21468
21469 # LTCC compiler flags.
21470 LTCFLAGS=$lt_CFLAGS
21471
21472 # Take the output of nm and produce a listing of raw symbols and C names.
21473 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21474
21475 # Transform the output of nm in a proper C declaration.
21476 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21477
21478 # Transform the output of nm in a C name address pair.
21479 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21480
21481 # Transform the output of nm in a C name address pair when lib prefix is needed.
21482 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21483
21484 # The name of the directory that contains temporary libtool files.
21485 objdir=$objdir
21486
21487 # Used to examine libraries when file_magic_cmd begins with "file".
21488 MAGIC_CMD=$MAGIC_CMD
21489
21490 # Must we lock files when doing compilation?
21491 need_locks=$lt_need_locks
21492
21493 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21494 DSYMUTIL=$lt_DSYMUTIL
21495
21496 # Tool to change global to local symbols on Mac OS X.
21497 NMEDIT=$lt_NMEDIT
21498
21499 # Tool to manipulate fat objects and archives on Mac OS X.
21500 LIPO=$lt_LIPO
21501
21502 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21503 OTOOL=$lt_OTOOL
21504
21505 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21506 OTOOL64=$lt_OTOOL64
21507
21508 # Old archive suffix (normally "a").
21509 libext=$libext
21510
21511 # Shared library suffix (normally ".so").
21512 shrext_cmds=$lt_shrext_cmds
21513
21514 # The commands to extract the exported symbol list from a shared archive.
21515 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21516
21517 # Variables whose values should be saved in libtool wrapper scripts and
21518 # restored at link time.
21519 variables_saved_for_relink=$lt_variables_saved_for_relink
21520
21521 # Do we need the "lib" prefix for modules?
21522 need_lib_prefix=$need_lib_prefix
21523
21524 # Do we need a version for libraries?
21525 need_version=$need_version
21526
21527 # Library versioning type.
21528 version_type=$version_type
21529
21530 # Shared library runtime path variable.
21531 runpath_var=$runpath_var
21532
21533 # Shared library path variable.
21534 shlibpath_var=$shlibpath_var
21535
21536 # Is shlibpath searched before the hard-coded library search path?
21537 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21538
21539 # Format of library name prefix.
21540 libname_spec=$lt_libname_spec
21541
21542 # List of archive names. First name is the real one, the rest are links.
21543 # The last name is the one that the linker finds with -lNAME
21544 library_names_spec=$lt_library_names_spec
21545
21546 # The coded name of the library, if different from the real name.
21547 soname_spec=$lt_soname_spec
21548
21549 # Permission mode override for installation of shared libraries.
21550 install_override_mode=$lt_install_override_mode
21551
21552 # Command to use after installation of a shared archive.
21553 postinstall_cmds=$lt_postinstall_cmds
21554
21555 # Command to use after uninstallation of a shared archive.
21556 postuninstall_cmds=$lt_postuninstall_cmds
21557
21558 # Commands used to finish a libtool library installation in a directory.
21559 finish_cmds=$lt_finish_cmds
21560
21561 # As "finish_cmds", except a single script fragment to be evaled but
21562 # not shown.
21563 finish_eval=$lt_finish_eval
21564
21565 # Whether we should hardcode library paths into libraries.
21566 hardcode_into_libs=$hardcode_into_libs
21567
21568 # Compile-time system search path for libraries.
21569 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21570
21571 # Run-time system search path for libraries.
21572 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21573
21574 # Whether dlopen is supported.
21575 dlopen_support=$enable_dlopen
21576
21577 # Whether dlopen of programs is supported.
21578 dlopen_self=$enable_dlopen_self
21579
21580 # Whether dlopen of statically linked programs is supported.
21581 dlopen_self_static=$enable_dlopen_self_static
21582
21583 # Commands to strip libraries.
21584 old_striplib=$lt_old_striplib
21585 striplib=$lt_striplib
21586
21587
21588 # The linker used to build libraries.
21589 LD=$lt_LD
21590
21591 # How to create reloadable object files.
21592 reload_flag=$lt_reload_flag
21593 reload_cmds=$lt_reload_cmds
21594
21595 # Commands used to build an old-style archive.
21596 old_archive_cmds=$lt_old_archive_cmds
21597
21598 # A language specific compiler.
21599 CC=$lt_compiler
21600
21601 # Is the compiler the GNU compiler?
21602 with_gcc=$GCC
21603
21604 # Compiler flag to turn off builtin functions.
21605 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21606
21607 # How to pass a linker flag through the compiler.
21608 wl=$lt_lt_prog_compiler_wl
21609
21610 # Additional compiler flags for building library objects.
21611 pic_flag=$lt_lt_prog_compiler_pic
21612
21613 # Compiler flag to prevent dynamic linking.
21614 link_static_flag=$lt_lt_prog_compiler_static
21615
21616 # Does compiler simultaneously support -c and -o options?
21617 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21618
21619 # Whether or not to add -lc for building shared libraries.
21620 build_libtool_need_lc=$archive_cmds_need_lc
21621
21622 # Whether or not to disallow shared libs when runtime libs are static.
21623 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21624
21625 # Compiler flag to allow reflexive dlopens.
21626 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21627
21628 # Compiler flag to generate shared objects directly from archives.
21629 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21630
21631 # Whether the compiler copes with passing no objects directly.
21632 compiler_needs_object=$lt_compiler_needs_object
21633
21634 # Create an old-style archive from a shared archive.
21635 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21636
21637 # Create a temporary old-style archive to link instead of a shared archive.
21638 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21639
21640 # Commands used to build a shared archive.
21641 archive_cmds=$lt_archive_cmds
21642 archive_expsym_cmds=$lt_archive_expsym_cmds
21643
21644 # Commands used to build a loadable module if different from building
21645 # a shared archive.
21646 module_cmds=$lt_module_cmds
21647 module_expsym_cmds=$lt_module_expsym_cmds
21648
21649 # Whether we are building with GNU ld or not.
21650 with_gnu_ld=$lt_with_gnu_ld
21651
21652 # Flag that allows shared libraries with undefined symbols to be built.
21653 allow_undefined_flag=$lt_allow_undefined_flag
21654
21655 # Flag that enforces no undefined symbols.
21656 no_undefined_flag=$lt_no_undefined_flag
21657
21658 # Flag to hardcode \$libdir into a binary during linking.
21659 # This must work even if \$libdir does not exist
21660 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21661
21662 # If ld is used when linking, flag to hardcode \$libdir into a binary
21663 # during linking. This must work even if \$libdir does not exist.
21664 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21665
21666 # Whether we need a single "-rpath" flag with a separated argument.
21667 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21668
21669 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21670 # DIR into the resulting binary.
21671 hardcode_direct=$hardcode_direct
21672
21673 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21674 # DIR into the resulting binary and the resulting library dependency is
21675 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21676 # library is relocated.
21677 hardcode_direct_absolute=$hardcode_direct_absolute
21678
21679 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21680 # into the resulting binary.
21681 hardcode_minus_L=$hardcode_minus_L
21682
21683 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21684 # into the resulting binary.
21685 hardcode_shlibpath_var=$hardcode_shlibpath_var
21686
21687 # Set to "yes" if building a shared library automatically hardcodes DIR
21688 # into the library and all subsequent libraries and executables linked
21689 # against it.
21690 hardcode_automatic=$hardcode_automatic
21691
21692 # Set to yes if linker adds runtime paths of dependent libraries
21693 # to runtime path list.
21694 inherit_rpath=$inherit_rpath
21695
21696 # Whether libtool must link a program against all its dependency libraries.
21697 link_all_deplibs=$link_all_deplibs
21698
21699 # Fix the shell variable \$srcfile for the compiler.
21700 fix_srcfile_path=$lt_fix_srcfile_path
21701
21702 # Set to "yes" if exported symbols are required.
21703 always_export_symbols=$always_export_symbols
21704
21705 # The commands to list exported symbols.
21706 export_symbols_cmds=$lt_export_symbols_cmds
21707
21708 # Symbols that should not be listed in the preloaded symbols.
21709 exclude_expsyms=$lt_exclude_expsyms
21710
21711 # Symbols that must always be exported.
21712 include_expsyms=$lt_include_expsyms
21713
21714 # Commands necessary for linking programs (against libraries) with templates.
21715 prelink_cmds=$lt_prelink_cmds
21716
21717 # Specify filename containing input files.
21718 file_list_spec=$lt_file_list_spec
21719
21720 # How to hardcode a shared library path into an executable.
21721 hardcode_action=$hardcode_action
21722
21723 # The directories searched by this compiler when creating a shared library.
21724 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21725
21726 # Dependencies to place before and after the objects being linked to
21727 # create a shared library.
21728 predep_objects=$lt_predep_objects
21729 postdep_objects=$lt_postdep_objects
21730 predeps=$lt_predeps
21731 postdeps=$lt_postdeps
21732
21733 # The library search path used internally by the compiler when linking
21734 # a shared library.
21735 compiler_lib_search_path=$lt_compiler_lib_search_path
21736
21737 # ### END LIBTOOL CONFIG
21738
21739 _LT_EOF
21740
21741 case $host_os in
21742 aix3*)
21743 cat <<\_LT_EOF >> "$cfgfile"
21744 # AIX sometimes has problems with the GCC collect2 program. For some
21745 # reason, if we set the COLLECT_NAMES environment variable, the problems
21746 # vanish in a puff of smoke.
21747 if test "X${COLLECT_NAMES+set}" != Xset; then
21748 COLLECT_NAMES=
21749 export COLLECT_NAMES
21750 fi
21751 _LT_EOF
21752 ;;
21753 esac
21754
21755
21756 ltmain="$ac_aux_dir/ltmain.sh"
21757
21758
21759 # We use sed instead of cat because bash on DJGPP gets confused if
21760 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21761 # text mode, it properly converts lines to CR/LF. This bash problem
21762 # is reportedly fixed, but why not run on old versions too?
21763 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21764 || (rm -f "$cfgfile"; exit 1)
21765
21766 case $xsi_shell in
21767 yes)
21768 cat << \_LT_EOF >> "$cfgfile"
21769
21770 # func_dirname file append nondir_replacement
21771 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21772 # otherwise set result to NONDIR_REPLACEMENT.
21773 func_dirname ()
21774 {
21775 case ${1} in
21776 */*) func_dirname_result="${1%/*}${2}" ;;
21777 * ) func_dirname_result="${3}" ;;
21778 esac
21779 }
21780
21781 # func_basename file
21782 func_basename ()
21783 {
21784 func_basename_result="${1##*/}"
21785 }
21786
21787 # func_dirname_and_basename file append nondir_replacement
21788 # perform func_basename and func_dirname in a single function
21789 # call:
21790 # dirname: Compute the dirname of FILE. If nonempty,
21791 # add APPEND to the result, otherwise set result
21792 # to NONDIR_REPLACEMENT.
21793 # value returned in "$func_dirname_result"
21794 # basename: Compute filename of FILE.
21795 # value retuned in "$func_basename_result"
21796 # Implementation must be kept synchronized with func_dirname
21797 # and func_basename. For efficiency, we do not delegate to
21798 # those functions but instead duplicate the functionality here.
21799 func_dirname_and_basename ()
21800 {
21801 case ${1} in
21802 */*) func_dirname_result="${1%/*}${2}" ;;
21803 * ) func_dirname_result="${3}" ;;
21804 esac
21805 func_basename_result="${1##*/}"
21806 }
21807
21808 # func_stripname prefix suffix name
21809 # strip PREFIX and SUFFIX off of NAME.
21810 # PREFIX and SUFFIX must not contain globbing or regex special
21811 # characters, hashes, percent signs, but SUFFIX may contain a leading
21812 # dot (in which case that matches only a dot).
21813 func_stripname ()
21814 {
21815 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21816 # positional parameters, so assign one to ordinary parameter first.
21817 func_stripname_result=${3}
21818 func_stripname_result=${func_stripname_result#"${1}"}
21819 func_stripname_result=${func_stripname_result%"${2}"}
21820 }
21821
21822 # func_opt_split
21823 func_opt_split ()
21824 {
21825 func_opt_split_opt=${1%%=*}
21826 func_opt_split_arg=${1#*=}
21827 }
21828
21829 # func_lo2o object
21830 func_lo2o ()
21831 {
21832 case ${1} in
21833 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21834 *) func_lo2o_result=${1} ;;
21835 esac
21836 }
21837
21838 # func_xform libobj-or-source
21839 func_xform ()
21840 {
21841 func_xform_result=${1%.*}.lo
21842 }
21843
21844 # func_arith arithmetic-term...
21845 func_arith ()
21846 {
21847 func_arith_result=$(( $* ))
21848 }
21849
21850 # func_len string
21851 # STRING may not start with a hyphen.
21852 func_len ()
21853 {
21854 func_len_result=${#1}
21855 }
21856
21857 _LT_EOF
21858 ;;
21859 *) # Bourne compatible functions.
21860 cat << \_LT_EOF >> "$cfgfile"
21861
21862 # func_dirname file append nondir_replacement
21863 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21864 # otherwise set result to NONDIR_REPLACEMENT.
21865 func_dirname ()
21866 {
21867 # Extract subdirectory from the argument.
21868 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
21869 if test "X$func_dirname_result" = "X${1}"; then
21870 func_dirname_result="${3}"
21871 else
21872 func_dirname_result="$func_dirname_result${2}"
21873 fi
21874 }
21875
21876 # func_basename file
21877 func_basename ()
21878 {
21879 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
21880 }
21881
21882
21883 # func_stripname prefix suffix name
21884 # strip PREFIX and SUFFIX off of NAME.
21885 # PREFIX and SUFFIX must not contain globbing or regex special
21886 # characters, hashes, percent signs, but SUFFIX may contain a leading
21887 # dot (in which case that matches only a dot).
21888 # func_strip_suffix prefix name
21889 func_stripname ()
21890 {
21891 case ${2} in
21892 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
21893 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
21894 esac
21895 }
21896
21897 # sed scripts:
21898 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21899 my_sed_long_arg='1s/^-[^=]*=//'
21900
21901 # func_opt_split
21902 func_opt_split ()
21903 {
21904 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
21905 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
21906 }
21907
21908 # func_lo2o object
21909 func_lo2o ()
21910 {
21911 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
21912 }
21913
21914 # func_xform libobj-or-source
21915 func_xform ()
21916 {
21917 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
21918 }
21919
21920 # func_arith arithmetic-term...
21921 func_arith ()
21922 {
21923 func_arith_result=`expr "$@"`
21924 }
21925
21926 # func_len string
21927 # STRING may not start with a hyphen.
21928 func_len ()
21929 {
21930 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21931 }
21932
21933 _LT_EOF
21934 esac
21935
21936 case $lt_shell_append in
21937 yes)
21938 cat << \_LT_EOF >> "$cfgfile"
21939
21940 # func_append var value
21941 # Append VALUE to the end of shell variable VAR.
21942 func_append ()
21943 {
21944 eval "$1+=\$2"
21945 }
21946 _LT_EOF
21947 ;;
21948 *)
21949 cat << \_LT_EOF >> "$cfgfile"
21950
21951 # func_append var value
21952 # Append VALUE to the end of shell variable VAR.
21953 func_append ()
21954 {
21955 eval "$1=\$$1\$2"
21956 }
21957
21958 _LT_EOF
21959 ;;
21960 esac
21961
21962
21963 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21964 || (rm -f "$cfgfile"; exit 1)
21965
21966 mv -f "$cfgfile" "$ofile" ||
21967 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21968 chmod +x "$ofile"
21969
21970
21971 cat <<_LT_EOF >> "$ofile"
21972
21973 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21974
21975 # The linker used to build libraries.
21976 LD=$lt_LD_CXX
21977
21978 # How to create reloadable object files.
21979 reload_flag=$lt_reload_flag_CXX
21980 reload_cmds=$lt_reload_cmds_CXX
21981
21982 # Commands used to build an old-style archive.
21983 old_archive_cmds=$lt_old_archive_cmds_CXX
21984
21985 # A language specific compiler.
21986 CC=$lt_compiler_CXX
21987
21988 # Is the compiler the GNU compiler?
21989 with_gcc=$GCC_CXX
21990
21991 # Compiler flag to turn off builtin functions.
21992 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21993
21994 # How to pass a linker flag through the compiler.
21995 wl=$lt_lt_prog_compiler_wl_CXX
21996
21997 # Additional compiler flags for building library objects.
21998 pic_flag=$lt_lt_prog_compiler_pic_CXX
21999
22000 # Compiler flag to prevent dynamic linking.
22001 link_static_flag=$lt_lt_prog_compiler_static_CXX
22002
22003 # Does compiler simultaneously support -c and -o options?
22004 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22005
22006 # Whether or not to add -lc for building shared libraries.
22007 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22008
22009 # Whether or not to disallow shared libs when runtime libs are static.
22010 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22011
22012 # Compiler flag to allow reflexive dlopens.
22013 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22014
22015 # Compiler flag to generate shared objects directly from archives.
22016 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22017
22018 # Whether the compiler copes with passing no objects directly.
22019 compiler_needs_object=$lt_compiler_needs_object_CXX
22020
22021 # Create an old-style archive from a shared archive.
22022 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22023
22024 # Create a temporary old-style archive to link instead of a shared archive.
22025 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22026
22027 # Commands used to build a shared archive.
22028 archive_cmds=$lt_archive_cmds_CXX
22029 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22030
22031 # Commands used to build a loadable module if different from building
22032 # a shared archive.
22033 module_cmds=$lt_module_cmds_CXX
22034 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22035
22036 # Whether we are building with GNU ld or not.
22037 with_gnu_ld=$lt_with_gnu_ld_CXX
22038
22039 # Flag that allows shared libraries with undefined symbols to be built.
22040 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22041
22042 # Flag that enforces no undefined symbols.
22043 no_undefined_flag=$lt_no_undefined_flag_CXX
22044
22045 # Flag to hardcode \$libdir into a binary during linking.
22046 # This must work even if \$libdir does not exist
22047 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22048
22049 # If ld is used when linking, flag to hardcode \$libdir into a binary
22050 # during linking. This must work even if \$libdir does not exist.
22051 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22052
22053 # Whether we need a single "-rpath" flag with a separated argument.
22054 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22055
22056 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22057 # DIR into the resulting binary.
22058 hardcode_direct=$hardcode_direct_CXX
22059
22060 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22061 # DIR into the resulting binary and the resulting library dependency is
22062 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22063 # library is relocated.
22064 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22065
22066 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22067 # into the resulting binary.
22068 hardcode_minus_L=$hardcode_minus_L_CXX
22069
22070 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22071 # into the resulting binary.
22072 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22073
22074 # Set to "yes" if building a shared library automatically hardcodes DIR
22075 # into the library and all subsequent libraries and executables linked
22076 # against it.
22077 hardcode_automatic=$hardcode_automatic_CXX
22078
22079 # Set to yes if linker adds runtime paths of dependent libraries
22080 # to runtime path list.
22081 inherit_rpath=$inherit_rpath_CXX
22082
22083 # Whether libtool must link a program against all its dependency libraries.
22084 link_all_deplibs=$link_all_deplibs_CXX
22085
22086 # Fix the shell variable \$srcfile for the compiler.
22087 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22088
22089 # Set to "yes" if exported symbols are required.
22090 always_export_symbols=$always_export_symbols_CXX
22091
22092 # The commands to list exported symbols.
22093 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22094
22095 # Symbols that should not be listed in the preloaded symbols.
22096 exclude_expsyms=$lt_exclude_expsyms_CXX
22097
22098 # Symbols that must always be exported.
22099 include_expsyms=$lt_include_expsyms_CXX
22100
22101 # Commands necessary for linking programs (against libraries) with templates.
22102 prelink_cmds=$lt_prelink_cmds_CXX
22103
22104 # Specify filename containing input files.
22105 file_list_spec=$lt_file_list_spec_CXX
22106
22107 # How to hardcode a shared library path into an executable.
22108 hardcode_action=$hardcode_action_CXX
22109
22110 # The directories searched by this compiler when creating a shared library.
22111 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22112
22113 # Dependencies to place before and after the objects being linked to
22114 # create a shared library.
22115 predep_objects=$lt_predep_objects_CXX
22116 postdep_objects=$lt_postdep_objects_CXX
22117 predeps=$lt_predeps_CXX
22118 postdeps=$lt_postdeps_CXX
22119
22120 # The library search path used internally by the compiler when linking
22121 # a shared library.
22122 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22123
22124 # ### END LIBTOOL TAG CONFIG: CXX
22125 _LT_EOF
22126
22127 ;;
22128 "default-1":C)
22129 for ac_file in $CONFIG_FILES; do
22130 # Support "outfile[:infile[:infile...]]"
22131 case "$ac_file" in
22132 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22133 esac
22134 # PO directories have a Makefile.in generated from Makefile.in.in.
22135 case "$ac_file" in */Makefile.in)
22136 # Adjust a relative srcdir.
22137 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22138 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22139 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22140 # In autoconf-2.13 it is called $ac_given_srcdir.
22141 # In autoconf-2.50 it is called $srcdir.
22142 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22143 case "$ac_given_srcdir" in
22144 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22145 /*) top_srcdir="$ac_given_srcdir" ;;
22146 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22147 esac
22148 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22149 rm -f "$ac_dir/POTFILES"
22150 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22151 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22152 POMAKEFILEDEPS="POTFILES.in"
22153 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22154 # on $ac_dir but don't depend on user-specified configuration
22155 # parameters.
22156 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22157 # The LINGUAS file contains the set of available languages.
22158 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22159 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
22160 fi
22161 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22162 # Hide the ALL_LINGUAS assigment from automake.
22163 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22164 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22165 else
22166 # The set of available languages was given in configure.ac.
22167 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22168 fi
22169 case "$ac_given_srcdir" in
22170 .) srcdirpre= ;;
22171 *) srcdirpre='$(srcdir)/' ;;
22172 esac
22173 POFILES=
22174 GMOFILES=
22175 UPDATEPOFILES=
22176 DUMMYPOFILES=
22177 for lang in $ALL_LINGUAS; do
22178 POFILES="$POFILES $srcdirpre$lang.po"
22179 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22180 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22181 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22182 done
22183 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22184 # environment variable.
22185 INST_LINGUAS=
22186 if test -n "$ALL_LINGUAS"; then
22187 for presentlang in $ALL_LINGUAS; do
22188 useit=no
22189 if test "%UNSET%" != "$LINGUAS"; then
22190 desiredlanguages="$LINGUAS"
22191 else
22192 desiredlanguages="$ALL_LINGUAS"
22193 fi
22194 for desiredlang in $desiredlanguages; do
22195 # Use the presentlang catalog if desiredlang is
22196 # a. equal to presentlang, or
22197 # b. a variant of presentlang (because in this case,
22198 # presentlang can be used as a fallback for messages
22199 # which are not translated in the desiredlang catalog).
22200 case "$desiredlang" in
22201 "$presentlang"*) useit=yes;;
22202 esac
22203 done
22204 if test $useit = yes; then
22205 INST_LINGUAS="$INST_LINGUAS $presentlang"
22206 fi
22207 done
22208 fi
22209 CATALOGS=
22210 if test -n "$INST_LINGUAS"; then
22211 for lang in $INST_LINGUAS; do
22212 CATALOGS="$CATALOGS $lang.gmo"
22213 done
22214 fi
22215 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22216 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"
22217 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22218 if test -f "$f"; then
22219 case "$f" in
22220 *.orig | *.bak | *~) ;;
22221 *) cat "$f" >> "$ac_dir/Makefile" ;;
22222 esac
22223 fi
22224 done
22225 fi
22226 ;;
22227 esac
22228 done ;;
22229 "default-2":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":C)
22331 case "$srcdir" in
22332 .) srcdirpre= ;;
22333 *) srcdirpre='$(srcdir)/' ;;
22334 esac
22335 POFILES=
22336 GMOFILES=
22337 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
22338 if test $lang != dummy; then
22339 POFILES="$POFILES $srcdirpre$lang.po"
22340 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22341 fi
22342 done
22343 sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
22344 -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
22345 -e "s,@POFILES@,$POFILES," \
22346 -e "s,@GMOFILES@,$GMOFILES," \
22347 po/Makefile.in > po/Makefile ;;
22348
22349 esac
22350 done # for ac_tag
22351
22352
22353 as_fn_exit 0
22354 _ACEOF
22355 ac_clean_files=$ac_clean_files_save
22356
22357 test $ac_write_fail = 0 ||
22358 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22359
22360
22361 # configure is writing to config.log, and then calls config.status.
22362 # config.status does its own redirection, appending to config.log.
22363 # Unfortunately, on DOS this fails, as config.log is still kept open
22364 # by configure, so config.status won't be able to write to it; its
22365 # output is simply discarded. So we exec the FD to /dev/null,
22366 # effectively closing config.log, so it can be properly (re)opened and
22367 # appended to by config.status. When coming back to configure, we
22368 # need to make the FD available again.
22369 if test "$no_create" != yes; then
22370 ac_cs_success=:
22371 ac_config_status_args=
22372 test "$silent" = yes &&
22373 ac_config_status_args="$ac_config_status_args --quiet"
22374 exec 5>/dev/null
22375 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22376 exec 5>>config.log
22377 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22378 # would make configure fail if this is the last instruction.
22379 $ac_cs_success || as_fn_exit 1
22380 fi
22381 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22383 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22384 fi
22385
22386
22387
22388 touch config.status.tmp
22389 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
22390 sed '/as_fn_exit 0/i \
22391 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
22392 touch --reference=Makefile Makefile.tmp \
22393 mv Makefile.tmp Makefile \
22394 ' config.status > config.status.tmp
22395 touch --reference=config.status config.status.tmp
22396 mv config.status.tmp config.status
22397 chmod +x config.status
22398 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
22399 touch --reference=Makefile Makefile.tmp
22400 mv Makefile.tmp Makefile
22401 else
22402 rm -f config.status.tmp
22403 fi