configure revision 1.1.1.9 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for zlib 1.3.1.
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
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || 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 (at] 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='zlib'
589 PACKAGE_TARNAME='zlib'
590 PACKAGE_VERSION='1.3.1'
591 PACKAGE_STRING='zlib 1.3.1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="zlib.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_header_list=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 PICFLAG
638 enable_host_pie
639 enable_host_shared
640 TARGET_LIBRARY_FALSE
641 TARGET_LIBRARY_TRUE
642 toolexeclibdir
643 toolexecdir
644 ENABLE_DARWIN_AT_RPATH_FALSE
645 ENABLE_DARWIN_AT_RPATH_TRUE
646 OTOOL64
647 OTOOL
648 LIPO
649 NMEDIT
650 DSYMUTIL
651 RANLIB
652 AR
653 LLVM_CONFIG
654 CPP
655 OBJDUMP
656 LN_S
657 NM
658 ac_ct_DUMPBIN
659 DUMPBIN
660 LD
661 FGREP
662 EGREP
663 GREP
664 SED
665 LIBTOOL
666 CET_FLAGS
667 am__fastdepCC_FALSE
668 am__fastdepCC_TRUE
669 CCDEPMODE
670 am__nodep
671 AMDEPBACKSLASH
672 AMDEP_FALSE
673 AMDEP_TRUE
674 am__quote
675 am__include
676 DEPDIR
677 OBJEXT
678 EXEEXT
679 ac_ct_CC
680 CPPFLAGS
681 LDFLAGS
682 CFLAGS
683 CC
684 COMPPATH
685 MAINT
686 MAINTAINER_MODE_FALSE
687 MAINTAINER_MODE_TRUE
688 AM_BACKSLASH
689 AM_DEFAULT_VERBOSITY
690 AM_DEFAULT_V
691 AM_V
692 am__untar
693 am__tar
694 AMTAR
695 am__leading_dot
696 SET_MAKE
697 AWK
698 mkdir_p
699 MKDIR_P
700 INSTALL_STRIP_PROGRAM
701 STRIP
702 install_sh
703 MAKEINFO
704 AUTOHEADER
705 AUTOMAKE
706 AUTOCONF
707 ACLOCAL
708 VERSION
709 PACKAGE
710 CYGPATH_W
711 am__isrc
712 INSTALL_DATA
713 INSTALL_SCRIPT
714 INSTALL_PROGRAM
715 mkinstalldirs
716 target_os
717 target_vendor
718 target_cpu
719 target
720 host_os
721 host_vendor
722 host_cpu
723 host
724 build_os
725 build_vendor
726 build_cpu
727 build
728 multi_basedir
729 target_alias
730 host_alias
731 build_alias
732 LIBS
733 ECHO_T
734 ECHO_N
735 ECHO_C
736 DEFS
737 mandir
738 localedir
739 libdir
740 psdir
741 pdfdir
742 dvidir
743 htmldir
744 infodir
745 docdir
746 oldincludedir
747 includedir
748 localstatedir
749 sharedstatedir
750 sysconfdir
751 datadir
752 datarootdir
753 libexecdir
754 sbindir
755 bindir
756 program_transform_name
757 prefix
758 exec_prefix
759 PACKAGE_URL
760 PACKAGE_BUGREPORT
761 PACKAGE_STRING
762 PACKAGE_VERSION
763 PACKAGE_TARNAME
764 PACKAGE_NAME
765 PATH_SEPARATOR
766 SHELL'
767 ac_subst_files=''
768 ac_user_opts='
769 enable_option_checking
770 enable_multilib
771 enable_silent_rules
772 enable_maintainer_mode
773 with_target_subdir
774 with_cross_host
775 with_system_zlib
776 enable_dependency_tracking
777 enable_cet
778 enable_shared
779 enable_static
780 with_pic
781 enable_fast_install
782 with_gnu_ld
783 enable_libtool_lock
784 with_toolexeclibdir
785 enable_host_shared
786 enable_host_pie
787 '
788 ac_precious_vars='build_alias
789 host_alias
790 target_alias
791 CPP
792 CPPFLAGS'
793
794
795 # Initialize some variables set by options.
796 ac_init_help=
797 ac_init_version=false
798 ac_unrecognized_opts=
799 ac_unrecognized_sep=
800 # The variables have the same names as the options, with
801 # dashes changed to underlines.
802 cache_file=/dev/null
803 exec_prefix=NONE
804 no_create=
805 no_recursion=
806 prefix=NONE
807 program_prefix=NONE
808 program_suffix=NONE
809 program_transform_name=s,x,x,
810 silent=
811 site=
812 srcdir=
813 verbose=
814 x_includes=NONE
815 x_libraries=NONE
816
817 # Installation directory options.
818 # These are left unexpanded so users can "make install exec_prefix=/foo"
819 # and all the variables that are supposed to be based on exec_prefix
820 # by default will actually change.
821 # Use braces instead of parens because sh, perl, etc. also accept them.
822 # (The list follows the same order as the GNU Coding Standards.)
823 bindir='${exec_prefix}/bin'
824 sbindir='${exec_prefix}/sbin'
825 libexecdir='${exec_prefix}/libexec'
826 datarootdir='${prefix}/share'
827 datadir='${datarootdir}'
828 sysconfdir='${prefix}/etc'
829 sharedstatedir='${prefix}/com'
830 localstatedir='${prefix}/var'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
835 htmldir='${docdir}'
836 dvidir='${docdir}'
837 pdfdir='${docdir}'
838 psdir='${docdir}'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
842
843 ac_prev=
844 ac_dashdash=
845 for ac_option
846 do
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
849 eval $ac_prev=\$ac_option
850 ac_prev=
851 continue
852 fi
853
854 case $ac_option in
855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856 *=) ac_optarg= ;;
857 *) ac_optarg=yes ;;
858 esac
859
860 # Accept the important Cygnus configure options, so we can diagnose typos.
861
862 case $ac_dashdash$ac_option in
863 --)
864 ac_dashdash=yes ;;
865
866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
867 ac_prev=bindir ;;
868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869 bindir=$ac_optarg ;;
870
871 -build | --build | --buil | --bui | --bu)
872 ac_prev=build_alias ;;
873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874 build_alias=$ac_optarg ;;
875
876 -cache-file | --cache-file | --cache-fil | --cache-fi \
877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878 ac_prev=cache_file ;;
879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881 cache_file=$ac_optarg ;;
882
883 --config-cache | -C)
884 cache_file=config.cache ;;
885
886 -datadir | --datadir | --datadi | --datad)
887 ac_prev=datadir ;;
888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
889 datadir=$ac_optarg ;;
890
891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892 | --dataroo | --dataro | --datar)
893 ac_prev=datarootdir ;;
894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896 datarootdir=$ac_optarg ;;
897
898 -disable-* | --disable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902 as_fn_error $? "invalid feature name: $ac_useropt"
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
906 *"
907 "enable_$ac_useropt"
908 "*) ;;
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
911 esac
912 eval enable_$ac_useropt=no ;;
913
914 -docdir | --docdir | --docdi | --doc | --do)
915 ac_prev=docdir ;;
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917 docdir=$ac_optarg ;;
918
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 ac_prev=dvidir ;;
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922 dvidir=$ac_optarg ;;
923
924 -enable-* | --enable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=\$ac_optarg ;;
939
940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942 | --exec | --exe | --ex)
943 ac_prev=exec_prefix ;;
944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946 | --exec=* | --exe=* | --ex=*)
947 exec_prefix=$ac_optarg ;;
948
949 -gas | --gas | --ga | --g)
950 # Obsolete; use --with-gas.
951 with_gas=yes ;;
952
953 -help | --help | --hel | --he | -h)
954 ac_init_help=long ;;
955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956 ac_init_help=recursive ;;
957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958 ac_init_help=short ;;
959
960 -host | --host | --hos | --ho)
961 ac_prev=host_alias ;;
962 -host=* | --host=* | --hos=* | --ho=*)
963 host_alias=$ac_optarg ;;
964
965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966 ac_prev=htmldir ;;
967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968 | --ht=*)
969 htmldir=$ac_optarg ;;
970
971 -includedir | --includedir | --includedi | --included | --include \
972 | --includ | --inclu | --incl | --inc)
973 ac_prev=includedir ;;
974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975 | --includ=* | --inclu=* | --incl=* | --inc=*)
976 includedir=$ac_optarg ;;
977
978 -infodir | --infodir | --infodi | --infod | --info | --inf)
979 ac_prev=infodir ;;
980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981 infodir=$ac_optarg ;;
982
983 -libdir | --libdir | --libdi | --libd)
984 ac_prev=libdir ;;
985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
986 libdir=$ac_optarg ;;
987
988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989 | --libexe | --libex | --libe)
990 ac_prev=libexecdir ;;
991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992 | --libexe=* | --libex=* | --libe=*)
993 libexecdir=$ac_optarg ;;
994
995 -localedir | --localedir | --localedi | --localed | --locale)
996 ac_prev=localedir ;;
997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998 localedir=$ac_optarg ;;
999
1000 -localstatedir | --localstatedir | --localstatedi | --localstated \
1001 | --localstate | --localstat | --localsta | --localst | --locals)
1002 ac_prev=localstatedir ;;
1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005 localstatedir=$ac_optarg ;;
1006
1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008 ac_prev=mandir ;;
1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010 mandir=$ac_optarg ;;
1011
1012 -nfp | --nfp | --nf)
1013 # Obsolete; use --without-fp.
1014 with_fp=no ;;
1015
1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017 | --no-cr | --no-c | -n)
1018 no_create=yes ;;
1019
1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022 no_recursion=yes ;;
1023
1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026 | --oldin | --oldi | --old | --ol | --o)
1027 ac_prev=oldincludedir ;;
1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031 oldincludedir=$ac_optarg ;;
1032
1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034 ac_prev=prefix ;;
1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036 prefix=$ac_optarg ;;
1037
1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039 | --program-pre | --program-pr | --program-p)
1040 ac_prev=program_prefix ;;
1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043 program_prefix=$ac_optarg ;;
1044
1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046 | --program-suf | --program-su | --program-s)
1047 ac_prev=program_suffix ;;
1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050 program_suffix=$ac_optarg ;;
1051
1052 -program-transform-name | --program-transform-name \
1053 | --program-transform-nam | --program-transform-na \
1054 | --program-transform-n | --program-transform- \
1055 | --program-transform | --program-transfor \
1056 | --program-transfo | --program-transf \
1057 | --program-trans | --program-tran \
1058 | --progr-tra | --program-tr | --program-t)
1059 ac_prev=program_transform_name ;;
1060 -program-transform-name=* | --program-transform-name=* \
1061 | --program-transform-nam=* | --program-transform-na=* \
1062 | --program-transform-n=* | --program-transform-=* \
1063 | --program-transform=* | --program-transfor=* \
1064 | --program-transfo=* | --program-transf=* \
1065 | --program-trans=* | --program-tran=* \
1066 | --progr-tra=* | --program-tr=* | --program-t=*)
1067 program_transform_name=$ac_optarg ;;
1068
1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070 ac_prev=pdfdir ;;
1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072 pdfdir=$ac_optarg ;;
1073
1074 -psdir | --psdir | --psdi | --psd | --ps)
1075 ac_prev=psdir ;;
1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077 psdir=$ac_optarg ;;
1078
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1081 silent=yes ;;
1082
1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084 ac_prev=sbindir ;;
1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086 | --sbi=* | --sb=*)
1087 sbindir=$ac_optarg ;;
1088
1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091 | --sharedst | --shareds | --shared | --share | --shar \
1092 | --sha | --sh)
1093 ac_prev=sharedstatedir ;;
1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097 | --sha=* | --sh=*)
1098 sharedstatedir=$ac_optarg ;;
1099
1100 -site | --site | --sit)
1101 ac_prev=site ;;
1102 -site=* | --site=* | --sit=*)
1103 site=$ac_optarg ;;
1104
1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106 ac_prev=srcdir ;;
1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108 srcdir=$ac_optarg ;;
1109
1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111 | --syscon | --sysco | --sysc | --sys | --sy)
1112 ac_prev=sysconfdir ;;
1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115 sysconfdir=$ac_optarg ;;
1116
1117 -target | --target | --targe | --targ | --tar | --ta | --t)
1118 ac_prev=target_alias ;;
1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120 target_alias=$ac_optarg ;;
1121
1122 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123 verbose=yes ;;
1124
1125 -version | --version | --versio | --versi | --vers | -V)
1126 ac_init_version=: ;;
1127
1128 -with-* | --with-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error $? "invalid package name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1136 *"
1137 "with_$ac_useropt"
1138 "*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1141 esac
1142 eval with_$ac_useropt=\$ac_optarg ;;
1143
1144 -without-* | --without-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error $? "invalid package name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1152 *"
1153 "with_$ac_useropt"
1154 "*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1157 esac
1158 eval with_$ac_useropt=no ;;
1159
1160 --x)
1161 # Obsolete; use --with-x.
1162 with_x=yes ;;
1163
1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165 | --x-incl | --x-inc | --x-in | --x-i)
1166 ac_prev=x_includes ;;
1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169 x_includes=$ac_optarg ;;
1170
1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173 ac_prev=x_libraries ;;
1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176 x_libraries=$ac_optarg ;;
1177
1178 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179 Try \`$0 --help' for more information"
1180 ;;
1181
1182 *=*)
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
1185 case $ac_envvar in #(
1186 '' | [0-9]* | *[!_$as_cr_alnum]* )
1187 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1188 esac
1189 eval $ac_envvar=\$ac_optarg
1190 export $ac_envvar ;;
1191
1192 *)
1193 # FIXME: should be removed in autoconf 3.0.
1194 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1198 ;;
1199
1200 esac
1201 done
1202
1203 if test -n "$ac_prev"; then
1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205 as_fn_error $? "missing argument to $ac_option"
1206 fi
1207
1208 if test -n "$ac_unrecognized_opts"; then
1209 case $enable_option_checking in
1210 no) ;;
1211 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213 esac
1214 fi
1215
1216 # Check all directory arguments for consistency.
1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir
1221 do
1222 eval ac_val=\$$ac_var
1223 # Remove trailing slashes.
1224 case $ac_val in
1225 */ )
1226 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227 eval $ac_var=\$ac_val;;
1228 esac
1229 # Be sure to have absolute directory names.
1230 case $ac_val in
1231 [\\/$]* | ?:[\\/]* ) continue;;
1232 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233 esac
1234 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1235 done
1236
1237 # There might be people who depend on the old broken behavior: `$host'
1238 # used to hold the argument of --host etc.
1239 # FIXME: To remove some day.
1240 build=$build_alias
1241 host=$host_alias
1242 target=$target_alias
1243
1244 # FIXME: To remove some day.
1245 if test "x$host_alias" != x; then
1246 if test "x$build_alias" = x; then
1247 cross_compiling=maybe
1248 elif test "x$build_alias" != "x$host_alias"; then
1249 cross_compiling=yes
1250 fi
1251 fi
1252
1253 ac_tool_prefix=
1254 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255
1256 test "$silent" = yes && exec 6>/dev/null
1257
1258
1259 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260 ac_ls_di=`ls -di .` &&
1261 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262 as_fn_error $? "working directory cannot be determined"
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264 as_fn_error $? "pwd does not report name of working directory"
1265
1266
1267 # Find the source files, if location was not specified.
1268 if test -z "$srcdir"; then
1269 ac_srcdir_defaulted=yes
1270 # Try the directory containing this script, then the parent directory.
1271 ac_confdir=`$as_dirname -- "$as_myself" ||
1272 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273 X"$as_myself" : 'X\(//\)[^/]' \| \
1274 X"$as_myself" : 'X\(//\)$' \| \
1275 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276 $as_echo X"$as_myself" |
1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)[^/].*/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\/\)$/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\).*/{
1290 s//\1/
1291 q
1292 }
1293 s/.*/./; q'`
1294 srcdir=$ac_confdir
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 srcdir=..
1297 fi
1298 else
1299 ac_srcdir_defaulted=no
1300 fi
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1304 fi
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 ac_abs_confdir=`(
1307 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308 pwd)`
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 srcdir=.
1312 fi
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1316 case $srcdir in
1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 esac
1319 for ac_var in $ac_precious_vars; do
1320 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_env_${ac_var}_value=\$${ac_var}
1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 done
1325
1326 #
1327 # Report the --help message.
1328 #
1329 if test "$ac_init_help" = "long"; then
1330 # Omit some internal or obsolete options to make the list less imposing.
1331 # This message is too long to be a string in the A/UX 3.1 sh.
1332 cat <<_ACEOF
1333 \`configure' configures zlib 1.3.1 to adapt to many kinds of systems.
1334
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1336
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE. See below for descriptions of some of the useful variables.
1339
1340 Defaults for the options are specified in brackets.
1341
1342 Configuration:
1343 -h, --help display this help and exit
1344 --help=short display options specific to this package
1345 --help=recursive display the short help of all the included packages
1346 -V, --version display version information and exit
1347 -q, --quiet, --silent do not print \`checking ...' messages
1348 --cache-file=FILE cache test results in FILE [disabled]
1349 -C, --config-cache alias for \`--cache-file=config.cache'
1350 -n, --no-create do not create output files
1351 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352
1353 Installation directories:
1354 --prefix=PREFIX install architecture-independent files in PREFIX
1355 [$ac_default_prefix]
1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 [PREFIX]
1358
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1363
1364 For better control, use the options below.
1365
1366 Fine tuning of the installation directories:
1367 --bindir=DIR user executables [EPREFIX/bin]
1368 --sbindir=DIR system admin executables [EPREFIX/sbin]
1369 --libexecdir=DIR program executables [EPREFIX/libexec]
1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/zlib]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1386 _ACEOF
1387
1388 cat <<\_ACEOF
1389
1390 Program names:
1391 --program-prefix=PREFIX prepend PREFIX to installed program names
1392 --program-suffix=SUFFIX append SUFFIX to installed program names
1393 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1394
1395 System types:
1396 --build=BUILD configure for building on BUILD [guessed]
1397 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1398 --target=TARGET configure for building compilers for TARGET [HOST]
1399 _ACEOF
1400 fi
1401
1402 if test -n "$ac_init_help"; then
1403 case $ac_init_help in
1404 short | recursive ) echo "Configuration of zlib 1.3.1:";;
1405 esac
1406 cat <<\_ACEOF
1407
1408 Optional Features:
1409 --disable-option-checking ignore unrecognized --enable/--with options
1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1412 --enable-multilib build many library versions (default)
1413 --enable-silent-rules less verbose build output (undo: "make V=1")
1414 --disable-silent-rules verbose build output (undo: "make V=0")
1415 --enable-maintainer-mode
1416 enable make rules and dependencies not useful (and
1417 sometimes confusing) to the casual installer
1418 --enable-dependency-tracking
1419 do not reject slow dependency extractors
1420 --disable-dependency-tracking
1421 speeds up one-time build
1422 --enable-cet enable Intel CET in target libraries [default=auto]
1423 --enable-shared[=PKGS] build shared libraries [default=yes]
1424 --enable-static[=PKGS] build static libraries [default=yes]
1425 --enable-fast-install[=PKGS]
1426 optimize for fast installation [default=yes]
1427 --disable-libtool-lock avoid locking (might break parallel builds)
1428 --enable-host-shared build host code as shared libraries
1429 --enable-host-pie build host code as PIE
1430
1431 Optional Packages:
1432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1434 --with-target-subdir=SUBDIR
1435 configuring in a subdirectory
1436 --with-cross-host=HOST configuring with a cross compiler
1437 --with-system-zlib use installed libz
1438 --with-pic try to use only PIC/non-PIC objects [default=use
1439 both]
1440 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1441 --with-toolexeclibdir=DIR
1442 install libraries built with a cross compiler within
1443 DIR
1444
1445 Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
1450 LIBS libraries to pass to the linker, e.g. -l<library>
1451 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1452 you have headers in a nonstandard directory <include dir>
1453 CPP C preprocessor
1454
1455 Use these variables to override the choices made by `configure' or to help
1456 it to find libraries and programs with nonstandard names/locations.
1457
1458 Report bugs to the package provider.
1459 _ACEOF
1460 ac_status=$?
1461 fi
1462
1463 if test "$ac_init_help" = "recursive"; then
1464 # If there are subdirs, report their specific --help.
1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1466 test -d "$ac_dir" ||
1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1468 continue
1469 ac_builddir=.
1470
1471 case "$ac_dir" in
1472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *)
1474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1475 # A ".." for each directory in $ac_dir_suffix.
1476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1477 case $ac_top_builddir_sub in
1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480 esac ;;
1481 esac
1482 ac_abs_top_builddir=$ac_pwd
1483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484 # for backward compatibility:
1485 ac_top_builddir=$ac_top_build_prefix
1486
1487 case $srcdir in
1488 .) # We are building in place.
1489 ac_srcdir=.
1490 ac_top_srcdir=$ac_top_builddir_sub
1491 ac_abs_top_srcdir=$ac_pwd ;;
1492 [\\/]* | ?:[\\/]* ) # Absolute name.
1493 ac_srcdir=$srcdir$ac_dir_suffix;
1494 ac_top_srcdir=$srcdir
1495 ac_abs_top_srcdir=$srcdir ;;
1496 *) # Relative name.
1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498 ac_top_srcdir=$ac_top_build_prefix$srcdir
1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1500 esac
1501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502
1503 cd "$ac_dir" || { ac_status=$?; continue; }
1504 # Check for guested configure.
1505 if test -f "$ac_srcdir/configure.gnu"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508 elif test -f "$ac_srcdir/configure"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure" --help=recursive
1511 else
1512 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513 fi || ac_status=$?
1514 cd "$ac_pwd" || { ac_status=$?; break; }
1515 done
1516 fi
1517
1518 test -n "$ac_init_help" && exit $ac_status
1519 if $ac_init_version; then
1520 cat <<\_ACEOF
1521 zlib configure 1.3.1
1522 generated by GNU Autoconf 2.69
1523
1524 Copyright (C) 2012 Free Software Foundation, Inc.
1525 This configure script is free software; the Free Software Foundation
1526 gives unlimited permission to copy, distribute and modify it.
1527 _ACEOF
1528 exit
1529 fi
1530
1531 ## ------------------------ ##
1532 ## Autoconf initialization. ##
1533 ## ------------------------ ##
1534
1535 # ac_fn_c_try_compile LINENO
1536 # --------------------------
1537 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1538 ac_fn_c_try_compile ()
1539 {
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 rm -f conftest.$ac_objext
1542 if { { ac_try="$ac_compile"
1543 case "(($ac_try" in
1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1546 esac
1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548 $as_echo "$ac_try_echo"; } >&5
1549 (eval "$ac_compile") 2>conftest.err
1550 ac_status=$?
1551 if test -s conftest.err; then
1552 grep -v '^ *+' conftest.err >conftest.er1
1553 cat conftest.er1 >&5
1554 mv -f conftest.er1 conftest.err
1555 fi
1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } && {
1558 test -z "$ac_c_werror_flag" ||
1559 test ! -s conftest.err
1560 } && test -s conftest.$ac_objext; then :
1561 ac_retval=0
1562 else
1563 $as_echo "$as_me: failed program was:" >&5
1564 sed 's/^/| /' conftest.$ac_ext >&5
1565
1566 ac_retval=1
1567 fi
1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569 as_fn_set_status $ac_retval
1570
1571 } # ac_fn_c_try_compile
1572
1573 # ac_fn_c_try_cpp LINENO
1574 # ----------------------
1575 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_cpp ()
1577 {
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 if { { ac_try="$ac_cpp conftest.$ac_ext"
1580 case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583 esac
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1587 ac_status=$?
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1592 fi
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } > conftest.i && {
1595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1597 }; then :
1598 ac_retval=0
1599 else
1600 $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1602
1603 ac_retval=1
1604 fi
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1607
1608 } # ac_fn_c_try_cpp
1609
1610 # ac_fn_c_try_link LINENO
1611 # -----------------------
1612 # Try to link conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_link ()
1614 {
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 rm -f conftest.$ac_objext conftest$ac_exeext
1617 if { { ac_try="$ac_link"
1618 case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_link") 2>conftest.err
1625 ac_status=$?
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1630 fi
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && {
1633 test -z "$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 } && test -s conftest$ac_exeext && {
1636 test "$cross_compiling" = yes ||
1637 test -x conftest$ac_exeext
1638 }; then :
1639 ac_retval=0
1640 else
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643
1644 ac_retval=1
1645 fi
1646 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1647 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1648 # interfere with the next link command; also delete a directory that is
1649 # left behind by Apple's compiler. We do this before executing the actions.
1650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1653
1654 } # ac_fn_c_try_link
1655
1656 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1657 # -------------------------------------------------------
1658 # Tests whether HEADER exists and can be compiled using the include files in
1659 # INCLUDES, setting the cache variable VAR accordingly.
1660 ac_fn_c_check_header_compile ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664 $as_echo_n "checking for $2... " >&6; }
1665 if eval \${$3+:} false; then :
1666 $as_echo_n "(cached) " >&6
1667 else
1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669 /* end confdefs.h. */
1670 $4
1671 #include <$2>
1672 _ACEOF
1673 if ac_fn_c_try_compile "$LINENO"; then :
1674 eval "$3=yes"
1675 else
1676 eval "$3=no"
1677 fi
1678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679 fi
1680 eval ac_res=\$$3
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682 $as_echo "$ac_res" >&6; }
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684
1685 } # ac_fn_c_check_header_compile
1686
1687 # ac_fn_c_try_run LINENO
1688 # ----------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1690 # that executables *can* be run.
1691 ac_fn_c_try_run ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_link"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_link") 2>&5
1702 ac_status=$?
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1705 { { case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_try") 2>&5
1712 ac_status=$?
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; }; }; then :
1715 ac_retval=0
1716 else
1717 $as_echo "$as_me: program exited with status $ac_status" >&5
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1720
1721 ac_retval=$ac_status
1722 fi
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_run
1728
1729 # ac_fn_c_check_func LINENO FUNC VAR
1730 # ----------------------------------
1731 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1732 ac_fn_c_check_func ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 $as_echo_n "checking for $2... " >&6; }
1737 if eval \${$3+:} false; then :
1738 $as_echo_n "(cached) " >&6
1739 else
1740 if test x$gcc_no_link = xyes; then
1741 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1742 fi
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1747 #define $2 innocuous_$2
1748
1749 /* System header to define __stub macros and hopefully few prototypes,
1750 which can conflict with char $2 (); below.
1751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1752 <limits.h> exists even on freestanding compilers. */
1753
1754 #ifdef __STDC__
1755 # include <limits.h>
1756 #else
1757 # include <assert.h>
1758 #endif
1759
1760 #undef $2
1761
1762 /* Override any GCC internal prototype to avoid an error.
1763 Use char because int might match the return type of a GCC
1764 builtin and then its argument prototype would still apply. */
1765 #ifdef __cplusplus
1766 extern "C"
1767 #endif
1768 char $2 ();
1769 /* The GNU C library defines this for functions which it implements
1770 to always fail with ENOSYS. Some functions are actually named
1771 something starting with __ and the normal name is an alias. */
1772 #if defined __stub_$2 || defined __stub___$2
1773 choke me
1774 #endif
1775
1776 int
1777 main ()
1778 {
1779 return $2 ();
1780 ;
1781 return 0;
1782 }
1783 _ACEOF
1784 if ac_fn_c_try_link "$LINENO"; then :
1785 eval "$3=yes"
1786 else
1787 eval "$3=no"
1788 fi
1789 rm -f core conftest.err conftest.$ac_objext \
1790 conftest$ac_exeext conftest.$ac_ext
1791 fi
1792 eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797 } # ac_fn_c_check_func
1798
1799 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1800 # -------------------------------------------------------
1801 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1802 # the include files in INCLUDES and setting the cache variable VAR
1803 # accordingly.
1804 ac_fn_c_check_header_mongrel ()
1805 {
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 if eval \${$3+:} false; then :
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if eval \${$3+:} false; then :
1811 $as_echo_n "(cached) " >&6
1812 fi
1813 eval ac_res=\$$3
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1816 else
1817 # Is the header compilable?
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1819 $as_echo_n "checking $2 usability... " >&6; }
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1822 $4
1823 #include <$2>
1824 _ACEOF
1825 if ac_fn_c_try_compile "$LINENO"; then :
1826 ac_header_compiler=yes
1827 else
1828 ac_header_compiler=no
1829 fi
1830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1832 $as_echo "$ac_header_compiler" >&6; }
1833
1834 # Is the header present?
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1836 $as_echo_n "checking $2 presence... " >&6; }
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 #include <$2>
1840 _ACEOF
1841 if ac_fn_c_try_cpp "$LINENO"; then :
1842 ac_header_preproc=yes
1843 else
1844 ac_header_preproc=no
1845 fi
1846 rm -f conftest.err conftest.i conftest.$ac_ext
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1848 $as_echo "$ac_header_preproc" >&6; }
1849
1850 # So? What about this header?
1851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1852 yes:no: )
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1854 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1856 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1857 ;;
1858 no:yes:* )
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1860 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1862 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1864 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1866 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1868 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869 ;;
1870 esac
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874 $as_echo_n "(cached) " >&6
1875 else
1876 eval "$3=\$ac_header_compiler"
1877 fi
1878 eval ac_res=\$$3
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 fi
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883
1884 } # ac_fn_c_check_header_mongrel
1885 cat >config.log <<_ACEOF
1886 This file contains any messages produced by compilers while
1887 running configure, to aid debugging if configure makes a mistake.
1888
1889 It was created by zlib $as_me 1.3.1, which was
1890 generated by GNU Autoconf 2.69. Invocation command line was
1891
1892 $ $0 $@
1893
1894 _ACEOF
1895 exec 5>>config.log
1896 {
1897 cat <<_ASUNAME
1898 ## --------- ##
1899 ## Platform. ##
1900 ## --------- ##
1901
1902 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1903 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1904 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1905 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1906 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1907
1908 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1909 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1910
1911 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1912 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1913 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1914 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1915 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1916 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1917 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1918
1919 _ASUNAME
1920
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 for as_dir in $PATH
1923 do
1924 IFS=$as_save_IFS
1925 test -z "$as_dir" && as_dir=.
1926 $as_echo "PATH: $as_dir"
1927 done
1928 IFS=$as_save_IFS
1929
1930 } >&5
1931
1932 cat >&5 <<_ACEOF
1933
1934
1935 ## ----------- ##
1936 ## Core tests. ##
1937 ## ----------- ##
1938
1939 _ACEOF
1940
1941
1942 # Keep a trace of the command line.
1943 # Strip out --no-create and --no-recursion so they do not pile up.
1944 # Strip out --silent because we don't want to record it for future runs.
1945 # Also quote any args containing shell meta-characters.
1946 # Make two passes to allow for proper duplicate-argument suppression.
1947 ac_configure_args=
1948 ac_configure_args0=
1949 ac_configure_args1=
1950 ac_must_keep_next=false
1951 for ac_pass in 1 2
1952 do
1953 for ac_arg
1954 do
1955 case $ac_arg in
1956 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1958 | -silent | --silent | --silen | --sile | --sil)
1959 continue ;;
1960 *\'*)
1961 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1962 esac
1963 case $ac_pass in
1964 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1965 2)
1966 as_fn_append ac_configure_args1 " '$ac_arg'"
1967 if test $ac_must_keep_next = true; then
1968 ac_must_keep_next=false # Got value, back to normal.
1969 else
1970 case $ac_arg in
1971 *=* | --config-cache | -C | -disable-* | --disable-* \
1972 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1973 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1974 | -with-* | --with-* | -without-* | --without-* | --x)
1975 case "$ac_configure_args0 " in
1976 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1977 esac
1978 ;;
1979 -* ) ac_must_keep_next=true ;;
1980 esac
1981 fi
1982 as_fn_append ac_configure_args " '$ac_arg'"
1983 ;;
1984 esac
1985 done
1986 done
1987 { ac_configure_args0=; unset ac_configure_args0;}
1988 { ac_configure_args1=; unset ac_configure_args1;}
1989
1990 # When interrupted or exit'd, cleanup temporary files, and complete
1991 # config.log. We remove comments because anyway the quotes in there
1992 # would cause problems or look ugly.
1993 # WARNING: Use '\'' to represent an apostrophe within the trap.
1994 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1995 trap 'exit_status=$?
1996 # Save into config.log some information that might help in debugging.
1997 {
1998 echo
1999
2000 $as_echo "## ---------------- ##
2001 ## Cache variables. ##
2002 ## ---------------- ##"
2003 echo
2004 # The following way of writing the cache mishandles newlines in values,
2005 (
2006 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2007 eval ac_val=\$$ac_var
2008 case $ac_val in #(
2009 *${as_nl}*)
2010 case $ac_var in #(
2011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2012 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2013 esac
2014 case $ac_var in #(
2015 _ | IFS | as_nl) ;; #(
2016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2017 *) { eval $ac_var=; unset $ac_var;} ;;
2018 esac ;;
2019 esac
2020 done
2021 (set) 2>&1 |
2022 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2023 *${as_nl}ac_space=\ *)
2024 sed -n \
2025 "s/'\''/'\''\\\\'\'''\''/g;
2026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2027 ;; #(
2028 *)
2029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2030 ;;
2031 esac |
2032 sort
2033 )
2034 echo
2035
2036 $as_echo "## ----------------- ##
2037 ## Output variables. ##
2038 ## ----------------- ##"
2039 echo
2040 for ac_var in $ac_subst_vars
2041 do
2042 eval ac_val=\$$ac_var
2043 case $ac_val in
2044 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2045 esac
2046 $as_echo "$ac_var='\''$ac_val'\''"
2047 done | sort
2048 echo
2049
2050 if test -n "$ac_subst_files"; then
2051 $as_echo "## ------------------- ##
2052 ## File substitutions. ##
2053 ## ------------------- ##"
2054 echo
2055 for ac_var in $ac_subst_files
2056 do
2057 eval ac_val=\$$ac_var
2058 case $ac_val in
2059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2060 esac
2061 $as_echo "$ac_var='\''$ac_val'\''"
2062 done | sort
2063 echo
2064 fi
2065
2066 if test -s confdefs.h; then
2067 $as_echo "## ----------- ##
2068 ## confdefs.h. ##
2069 ## ----------- ##"
2070 echo
2071 cat confdefs.h
2072 echo
2073 fi
2074 test "$ac_signal" != 0 &&
2075 $as_echo "$as_me: caught signal $ac_signal"
2076 $as_echo "$as_me: exit $exit_status"
2077 } >&5
2078 rm -f core *.core core.conftest.* &&
2079 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2080 exit $exit_status
2081 ' 0
2082 for ac_signal in 1 2 13 15; do
2083 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2084 done
2085 ac_signal=0
2086
2087 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2088 rm -f -r conftest* confdefs.h
2089
2090 $as_echo "/* confdefs.h */" > confdefs.h
2091
2092 # Predefined preprocessor variables.
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_NAME "$PACKAGE_NAME"
2096 _ACEOF
2097
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2100 _ACEOF
2101
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2104 _ACEOF
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_STRING "$PACKAGE_STRING"
2108 _ACEOF
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2112 _ACEOF
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_URL "$PACKAGE_URL"
2116 _ACEOF
2117
2118
2119 # Let the site file select an alternate cache file if it wants to.
2120 # Prefer an explicitly selected file to automatically selected ones.
2121 ac_site_file1=NONE
2122 ac_site_file2=NONE
2123 if test -n "$CONFIG_SITE"; then
2124 # We do not want a PATH search for config.site.
2125 case $CONFIG_SITE in #((
2126 -*) ac_site_file1=./$CONFIG_SITE;;
2127 */*) ac_site_file1=$CONFIG_SITE;;
2128 *) ac_site_file1=./$CONFIG_SITE;;
2129 esac
2130 elif test "x$prefix" != xNONE; then
2131 ac_site_file1=$prefix/share/config.site
2132 ac_site_file2=$prefix/etc/config.site
2133 else
2134 ac_site_file1=$ac_default_prefix/share/config.site
2135 ac_site_file2=$ac_default_prefix/etc/config.site
2136 fi
2137 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2138 do
2139 test "x$ac_site_file" = xNONE && continue
2140 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2142 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2143 sed 's/^/| /' "$ac_site_file" >&5
2144 . "$ac_site_file" \
2145 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2147 as_fn_error $? "failed to load site script $ac_site_file
2148 See \`config.log' for more details" "$LINENO" 5; }
2149 fi
2150 done
2151
2152 if test -r "$cache_file"; then
2153 # Some versions of bash will fail to source /dev/null (special files
2154 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2155 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2157 $as_echo "$as_me: loading cache $cache_file" >&6;}
2158 case $cache_file in
2159 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2160 *) . "./$cache_file";;
2161 esac
2162 fi
2163 else
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2165 $as_echo "$as_me: creating cache $cache_file" >&6;}
2166 >$cache_file
2167 fi
2168
2169 as_fn_append ac_header_list " stdlib.h"
2170 as_fn_append ac_header_list " unistd.h"
2171 as_fn_append ac_header_list " sys/param.h"
2172 # Check that the precious variables saved in the cache have kept the same
2173 # value.
2174 ac_cache_corrupted=false
2175 for ac_var in $ac_precious_vars; do
2176 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2177 eval ac_new_set=\$ac_env_${ac_var}_set
2178 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2179 eval ac_new_val=\$ac_env_${ac_var}_value
2180 case $ac_old_set,$ac_new_set in
2181 set,)
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2183 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2184 ac_cache_corrupted=: ;;
2185 ,set)
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2187 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2188 ac_cache_corrupted=: ;;
2189 ,);;
2190 *)
2191 if test "x$ac_old_val" != "x$ac_new_val"; then
2192 # differences in whitespace do not lead to failure.
2193 ac_old_val_w=`echo x $ac_old_val`
2194 ac_new_val_w=`echo x $ac_new_val`
2195 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2197 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2198 ac_cache_corrupted=:
2199 else
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2201 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2202 eval $ac_var=\$ac_old_val
2203 fi
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2205 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2207 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2208 fi;;
2209 esac
2210 # Pass precious variables to config.status.
2211 if test "$ac_new_set" = set; then
2212 case $ac_new_val in
2213 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2214 *) ac_arg=$ac_var=$ac_new_val ;;
2215 esac
2216 case " $ac_configure_args " in
2217 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2218 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2219 esac
2220 fi
2221 done
2222 if $ac_cache_corrupted; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2226 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2227 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2228 fi
2229 ## -------------------- ##
2230 ## Main body of script. ##
2231 ## -------------------- ##
2232
2233 ac_ext=c
2234 ac_cpp='$CPP $CPPFLAGS'
2235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2238
2239
2240
2241
2242
2243
2244
2245 if test -n "${with_target_subdir}"; then
2246 # Default to --enable-multilib
2247 # Check whether --enable-multilib was given.
2248 if test "${enable_multilib+set}" = set; then :
2249 enableval=$enable_multilib; case "$enableval" in
2250 yes) multilib=yes ;;
2251 no) multilib=no ;;
2252 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2253 esac
2254 else
2255 multilib=yes
2256 fi
2257
2258
2259 # We may get other options which we leave undocumented:
2260 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2261 # See config-ml.in if you want the gory details.
2262
2263 if test "$srcdir" = "."; then
2264 if test "$with_target_subdir" != "."; then
2265 multi_basedir="$srcdir/$with_multisrctop../.."
2266 else
2267 multi_basedir="$srcdir/$with_multisrctop.."
2268 fi
2269 else
2270 multi_basedir="$srcdir/.."
2271 fi
2272
2273
2274 # Even if the default multilib is not a cross compilation,
2275 # it may be that some of the other multilibs are.
2276 if test $cross_compiling = no && test $multilib = yes \
2277 && test "x${with_multisubdir}" != x ; then
2278 cross_compiling=maybe
2279 fi
2280
2281 ac_config_commands="$ac_config_commands default-1"
2282
2283 fi
2284
2285 ac_aux_dir=
2286 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2287 if test -f "$ac_dir/install-sh"; then
2288 ac_aux_dir=$ac_dir
2289 ac_install_sh="$ac_aux_dir/install-sh -c"
2290 break
2291 elif test -f "$ac_dir/install.sh"; then
2292 ac_aux_dir=$ac_dir
2293 ac_install_sh="$ac_aux_dir/install.sh -c"
2294 break
2295 elif test -f "$ac_dir/shtool"; then
2296 ac_aux_dir=$ac_dir
2297 ac_install_sh="$ac_aux_dir/shtool install -c"
2298 break
2299 fi
2300 done
2301 if test -z "$ac_aux_dir"; then
2302 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2303 fi
2304
2305 # These three variables are undocumented and unsupported,
2306 # and are intended to be withdrawn in a future Autoconf release.
2307 # They can cause serious problems if a builder's source tree is in a directory
2308 # whose full name contains unusual characters.
2309 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2310 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2311 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2312
2313
2314 # Make sure we can run config.sub.
2315 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2316 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2317
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2319 $as_echo_n "checking build system type... " >&6; }
2320 if ${ac_cv_build+:} false; then :
2321 $as_echo_n "(cached) " >&6
2322 else
2323 ac_build_alias=$build_alias
2324 test "x$ac_build_alias" = x &&
2325 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2326 test "x$ac_build_alias" = x &&
2327 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2328 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2329 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2330
2331 fi
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2333 $as_echo "$ac_cv_build" >&6; }
2334 case $ac_cv_build in
2335 *-*-*) ;;
2336 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2337 esac
2338 build=$ac_cv_build
2339 ac_save_IFS=$IFS; IFS='-'
2340 set x $ac_cv_build
2341 shift
2342 build_cpu=$1
2343 build_vendor=$2
2344 shift; shift
2345 # Remember, the first character of IFS is used to create $*,
2346 # except with old shells:
2347 build_os=$*
2348 IFS=$ac_save_IFS
2349 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2350
2351
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2353 $as_echo_n "checking host system type... " >&6; }
2354 if ${ac_cv_host+:} false; then :
2355 $as_echo_n "(cached) " >&6
2356 else
2357 if test "x$host_alias" = x; then
2358 ac_cv_host=$ac_cv_build
2359 else
2360 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2361 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2362 fi
2363
2364 fi
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2366 $as_echo "$ac_cv_host" >&6; }
2367 case $ac_cv_host in
2368 *-*-*) ;;
2369 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2370 esac
2371 host=$ac_cv_host
2372 ac_save_IFS=$IFS; IFS='-'
2373 set x $ac_cv_host
2374 shift
2375 host_cpu=$1
2376 host_vendor=$2
2377 shift; shift
2378 # Remember, the first character of IFS is used to create $*,
2379 # except with old shells:
2380 host_os=$*
2381 IFS=$ac_save_IFS
2382 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2383
2384
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2386 $as_echo_n "checking target system type... " >&6; }
2387 if ${ac_cv_target+:} false; then :
2388 $as_echo_n "(cached) " >&6
2389 else
2390 if test "x$target_alias" = x; then
2391 ac_cv_target=$ac_cv_host
2392 else
2393 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2394 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2395 fi
2396
2397 fi
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2399 $as_echo "$ac_cv_target" >&6; }
2400 case $ac_cv_target in
2401 *-*-*) ;;
2402 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2403 esac
2404 target=$ac_cv_target
2405 ac_save_IFS=$IFS; IFS='-'
2406 set x $ac_cv_target
2407 shift
2408 target_cpu=$1
2409 target_vendor=$2
2410 shift; shift
2411 # Remember, the first character of IFS is used to create $*,
2412 # except with old shells:
2413 target_os=$*
2414 IFS=$ac_save_IFS
2415 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2416
2417
2418 # The aliases save the names the user supplied, while $host etc.
2419 # will get canonicalized.
2420 test -n "$target_alias" &&
2421 test "$program_prefix$program_suffix$program_transform_name" = \
2422 NONENONEs,x,x, &&
2423 program_prefix=${target_alias}-
2424
2425
2426 # This works around an automake problem.
2427 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
2428
2429
2430 am__api_version='1.15'
2431
2432 # Find a good install program. We prefer a C program (faster),
2433 # so one script is as good as another. But avoid the broken or
2434 # incompatible versions:
2435 # SysV /etc/install, /usr/sbin/install
2436 # SunOS /usr/etc/install
2437 # IRIX /sbin/install
2438 # AIX /bin/install
2439 # AmigaOS /C/install, which installs bootblocks on floppy discs
2440 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2441 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2442 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2443 # OS/2's system install, which has a completely different semantic
2444 # ./install, which can be erroneously created by make from ./install.sh.
2445 # Reject install programs that cannot install multiple files.
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2447 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2448 if test -z "$INSTALL"; then
2449 if ${ac_cv_path_install+:} false; then :
2450 $as_echo_n "(cached) " >&6
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 # Account for people who put trailing slashes in PATH elements.
2458 case $as_dir/ in #((
2459 ./ | .// | /[cC]/* | \
2460 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2461 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2462 /usr/ucb/* ) ;;
2463 *)
2464 # OSF1 and SCO ODT 3.0 have their own names for install.
2465 # Don't use installbsd from OSF since it installs stuff as root
2466 # by default.
2467 for ac_prog in ginstall scoinst install; do
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2470 if test $ac_prog = install &&
2471 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2472 # AIX install. It has an incompatible calling convention.
2473 :
2474 elif test $ac_prog = install &&
2475 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2476 # program-specific install script used by HP pwplus--don't use.
2477 :
2478 else
2479 rm -rf conftest.one conftest.two conftest.dir
2480 echo one > conftest.one
2481 echo two > conftest.two
2482 mkdir conftest.dir
2483 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2484 test -s conftest.one && test -s conftest.two &&
2485 test -s conftest.dir/conftest.one &&
2486 test -s conftest.dir/conftest.two
2487 then
2488 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2489 break 3
2490 fi
2491 fi
2492 fi
2493 done
2494 done
2495 ;;
2496 esac
2497
2498 done
2499 IFS=$as_save_IFS
2500
2501 rm -rf conftest.one conftest.two conftest.dir
2502
2503 fi
2504 if test "${ac_cv_path_install+set}" = set; then
2505 INSTALL=$ac_cv_path_install
2506 else
2507 # As a last resort, use the slow shell script. Don't cache a
2508 # value for INSTALL within a source directory, because that will
2509 # break other packages using the cache if that directory is
2510 # removed, or if the value is a relative name.
2511 INSTALL=$ac_install_sh
2512 fi
2513 fi
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2515 $as_echo "$INSTALL" >&6; }
2516
2517 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2518 # It thinks the first close brace ends the variable substitution.
2519 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2520
2521 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2522
2523 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2524
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2526 $as_echo_n "checking whether build environment is sane... " >&6; }
2527 # Reject unsafe characters in $srcdir or the absolute working directory
2528 # name. Accept space and tab only in the latter.
2529 am_lf='
2530 '
2531 case `pwd` in
2532 *[\\\"\#\$\&\'\`$am_lf]*)
2533 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2534 esac
2535 case $srcdir in
2536 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2537 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2538 esac
2539
2540 # Do 'set' in a subshell so we don't clobber the current shell's
2541 # arguments. Must try -L first in case configure is actually a
2542 # symlink; some systems play weird games with the mod time of symlinks
2543 # (eg FreeBSD returns the mod time of the symlink's containing
2544 # directory).
2545 if (
2546 am_has_slept=no
2547 for am_try in 1 2; do
2548 echo "timestamp, slept: $am_has_slept" > conftest.file
2549 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2550 if test "$*" = "X"; then
2551 # -L didn't work.
2552 set X `ls -t "$srcdir/configure" conftest.file`
2553 fi
2554 if test "$*" != "X $srcdir/configure conftest.file" \
2555 && test "$*" != "X conftest.file $srcdir/configure"; then
2556
2557 # If neither matched, then we have a broken ls. This can happen
2558 # if, for instance, CONFIG_SHELL is bash and it inherits a
2559 # broken ls alias from the environment. This has actually
2560 # happened. Such a system could not be considered "sane".
2561 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2562 alias in your environment" "$LINENO" 5
2563 fi
2564 if test "$2" = conftest.file || test $am_try -eq 2; then
2565 break
2566 fi
2567 # Just in case.
2568 sleep 1
2569 am_has_slept=yes
2570 done
2571 test "$2" = conftest.file
2572 )
2573 then
2574 # Ok.
2575 :
2576 else
2577 as_fn_error $? "newly created file is older than distributed files!
2578 Check your system clock" "$LINENO" 5
2579 fi
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2581 $as_echo "yes" >&6; }
2582 # If we didn't sleep, we still need to ensure time stamps of config.status and
2583 # generated files are strictly newer.
2584 am_sleep_pid=
2585 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2586 ( sleep 1 ) &
2587 am_sleep_pid=$!
2588 fi
2589
2590 rm -f conftest.file
2591
2592 test "$program_prefix" != NONE &&
2593 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2594 # Use a double $ so make ignores it.
2595 test "$program_suffix" != NONE &&
2596 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2597 # Double any \ or $.
2598 # By default was `s,x,x', remove it if useless.
2599 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2600 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2601
2602 # Expand $ac_aux_dir to an absolute path.
2603 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2604
2605 if test x"${MISSING+set}" != xset; then
2606 case $am_aux_dir in
2607 *\ * | *\ *)
2608 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2609 *)
2610 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2611 esac
2612 fi
2613 # Use eval to expand $SHELL
2614 if eval "$MISSING --is-lightweight"; then
2615 am_missing_run="$MISSING "
2616 else
2617 am_missing_run=
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2619 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2620 fi
2621
2622 if test x"${install_sh+set}" != xset; then
2623 case $am_aux_dir in
2624 *\ * | *\ *)
2625 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2626 *)
2627 install_sh="\${SHELL} $am_aux_dir/install-sh"
2628 esac
2629 fi
2630
2631 # Installed binaries are usually stripped using 'strip' when the user
2632 # run "make install-strip". However 'strip' might not be the right
2633 # tool to use in cross-compilation environments, therefore Automake
2634 # will honor the 'STRIP' environment variable to overrule this program.
2635 if test "$cross_compiling" != no; then
2636 if test -n "$ac_tool_prefix"; then
2637 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2638 set dummy ${ac_tool_prefix}strip; ac_word=$2
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2640 $as_echo_n "checking for $ac_word... " >&6; }
2641 if ${ac_cv_prog_STRIP+:} false; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 if test -n "$STRIP"; then
2645 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2649 do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2654 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2657 fi
2658 done
2659 done
2660 IFS=$as_save_IFS
2661
2662 fi
2663 fi
2664 STRIP=$ac_cv_prog_STRIP
2665 if test -n "$STRIP"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2667 $as_echo "$STRIP" >&6; }
2668 else
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670 $as_echo "no" >&6; }
2671 fi
2672
2673
2674 fi
2675 if test -z "$ac_cv_prog_STRIP"; then
2676 ac_ct_STRIP=$STRIP
2677 # Extract the first word of "strip", so it can be a program name with args.
2678 set dummy strip; ac_word=$2
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2682 $as_echo_n "(cached) " >&6
2683 else
2684 if test -n "$ac_ct_STRIP"; then
2685 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 ac_cv_prog_ac_ct_STRIP="strip"
2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2697 fi
2698 done
2699 done
2700 IFS=$as_save_IFS
2701
2702 fi
2703 fi
2704 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2705 if test -n "$ac_ct_STRIP"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2707 $as_echo "$ac_ct_STRIP" >&6; }
2708 else
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 $as_echo "no" >&6; }
2711 fi
2712
2713 if test "x$ac_ct_STRIP" = x; then
2714 STRIP=":"
2715 else
2716 case $cross_compiling:$ac_tool_warned in
2717 yes:)
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2720 ac_tool_warned=yes ;;
2721 esac
2722 STRIP=$ac_ct_STRIP
2723 fi
2724 else
2725 STRIP="$ac_cv_prog_STRIP"
2726 fi
2727
2728 fi
2729 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2730
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2732 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2733 if test -z "$MKDIR_P"; then
2734 if ${ac_cv_path_mkdir+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2739 do
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 for ac_prog in mkdir gmkdir; do
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2745 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2746 'mkdir (GNU coreutils) '* | \
2747 'mkdir (coreutils) '* | \
2748 'mkdir (fileutils) '4.1*)
2749 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2750 break 3;;
2751 esac
2752 done
2753 done
2754 done
2755 IFS=$as_save_IFS
2756
2757 fi
2758
2759 test -d ./--version && rmdir ./--version
2760 if test "${ac_cv_path_mkdir+set}" = set; then
2761 MKDIR_P="$ac_cv_path_mkdir -p"
2762 else
2763 # As a last resort, use the slow shell script. Don't cache a
2764 # value for MKDIR_P within a source directory, because that will
2765 # break other packages using the cache if that directory is
2766 # removed, or if the value is a relative name.
2767 MKDIR_P="$ac_install_sh -d"
2768 fi
2769 fi
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2771 $as_echo "$MKDIR_P" >&6; }
2772
2773 for ac_prog in gawk mawk nawk awk
2774 do
2775 # Extract the first word of "$ac_prog", so it can be a program name with args.
2776 set dummy $ac_prog; ac_word=$2
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778 $as_echo_n "checking for $ac_word... " >&6; }
2779 if ${ac_cv_prog_AWK+:} false; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 if test -n "$AWK"; then
2783 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2787 do
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792 ac_cv_prog_AWK="$ac_prog"
2793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 break 2
2795 fi
2796 done
2797 done
2798 IFS=$as_save_IFS
2799
2800 fi
2801 fi
2802 AWK=$ac_cv_prog_AWK
2803 if test -n "$AWK"; then
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2805 $as_echo "$AWK" >&6; }
2806 else
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 $as_echo "no" >&6; }
2809 fi
2810
2811
2812 test -n "$AWK" && break
2813 done
2814
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2816 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2817 set x ${MAKE-make}
2818 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2819 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2820 $as_echo_n "(cached) " >&6
2821 else
2822 cat >conftest.make <<\_ACEOF
2823 SHELL = /bin/sh
2824 all:
2825 @echo '@@@%%%=$(MAKE)=@@@%%%'
2826 _ACEOF
2827 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2828 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2829 *@@@%%%=?*=@@@%%%*)
2830 eval ac_cv_prog_make_${ac_make}_set=yes;;
2831 *)
2832 eval ac_cv_prog_make_${ac_make}_set=no;;
2833 esac
2834 rm -f conftest.make
2835 fi
2836 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2838 $as_echo "yes" >&6; }
2839 SET_MAKE=
2840 else
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2843 SET_MAKE="MAKE=${MAKE-make}"
2844 fi
2845
2846 rm -rf .tst 2>/dev/null
2847 mkdir .tst 2>/dev/null
2848 if test -d .tst; then
2849 am__leading_dot=.
2850 else
2851 am__leading_dot=_
2852 fi
2853 rmdir .tst 2>/dev/null
2854
2855 # Check whether --enable-silent-rules was given.
2856 if test "${enable_silent_rules+set}" = set; then :
2857 enableval=$enable_silent_rules;
2858 fi
2859
2860 case $enable_silent_rules in # (((
2861 yes) AM_DEFAULT_VERBOSITY=0;;
2862 no) AM_DEFAULT_VERBOSITY=1;;
2863 *) AM_DEFAULT_VERBOSITY=1;;
2864 esac
2865 am_make=${MAKE-make}
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2867 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2868 if ${am_cv_make_support_nested_variables+:} false; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 if $as_echo 'TRUE=$(BAR$(V))
2872 BAR0=false
2873 BAR1=true
2874 V=1
2875 am__doit:
2876 @$(TRUE)
2877 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2878 am_cv_make_support_nested_variables=yes
2879 else
2880 am_cv_make_support_nested_variables=no
2881 fi
2882 fi
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2884 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2885 if test $am_cv_make_support_nested_variables = yes; then
2886 AM_V='$(V)'
2887 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2888 else
2889 AM_V=$AM_DEFAULT_VERBOSITY
2890 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2891 fi
2892 AM_BACKSLASH='\'
2893
2894 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2895 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2896 # is not polluted with repeated "-I."
2897 am__isrc=' -I$(srcdir)'
2898 # test to see if srcdir already configured
2899 if test -f $srcdir/config.status; then
2900 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2901 fi
2902 fi
2903
2904 # test whether we have cygpath
2905 if test -z "$CYGPATH_W"; then
2906 if (cygpath --version) >/dev/null 2>/dev/null; then
2907 CYGPATH_W='cygpath -w'
2908 else
2909 CYGPATH_W=echo
2910 fi
2911 fi
2912
2913
2914 # Define the identity of the package.
2915 PACKAGE='zlib'
2916 VERSION='1.3.1'
2917
2918
2919 cat >>confdefs.h <<_ACEOF
2920 #define PACKAGE "$PACKAGE"
2921 _ACEOF
2922
2923
2924 cat >>confdefs.h <<_ACEOF
2925 #define VERSION "$VERSION"
2926 _ACEOF
2927
2928 # Some tools Automake needs.
2929
2930 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2931
2932
2933 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2934
2935
2936 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2937
2938
2939 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2940
2941
2942 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2943
2944 # For better backward compatibility. To be removed once Automake 1.9.x
2945 # dies out for good. For more background, see:
2946 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2947 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2948 mkdir_p='$(MKDIR_P)'
2949
2950 # We need awk for the "check" target (and possibly the TAP driver). The
2951 # system "awk" is bad on some platforms.
2952 # Always define AMTAR for backward compatibility. Yes, it's still used
2953 # in the wild :-( We should find a proper way to deprecate it ...
2954 AMTAR='$${TAR-tar}'
2955
2956
2957 # We'll loop over all known methods to create a tar archive until one works.
2958 _am_tools='gnutar pax cpio none'
2959
2960 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2961
2962
2963
2964
2965
2966
2967 # POSIX will say in a future version that running "rm -f" with no argument
2968 # is OK; and we want to be able to make that assumption in our Makefile
2969 # recipes. So use an aggressive probe to check that the usage we want is
2970 # actually supported "in the wild" to an acceptable degree.
2971 # See automake bug#10828.
2972 # To make any issue more visible, cause the running configure to be aborted
2973 # by default if the 'rm' program in use doesn't match our expectations; the
2974 # user can still override this though.
2975 if rm -f && rm -fr && rm -rf; then : OK; else
2976 cat >&2 <<'END'
2977 Oops!
2978
2979 Your 'rm' program seems unable to run without file operands specified
2980 on the command line, even when the '-f' option is present. This is contrary
2981 to the behaviour of most rm programs out there, and not conforming with
2982 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2983
2984 Please tell bug-automake@gnu.org about your system, including the value
2985 of your $PATH and any error possibly output before this message. This
2986 can help us improve future automake versions.
2987
2988 END
2989 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2990 echo 'Configuration will proceed anyway, since you have set the' >&2
2991 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2992 echo >&2
2993 else
2994 cat >&2 <<'END'
2995 Aborting the configuration process, to ensure you take notice of the issue.
2996
2997 You can download and install GNU coreutils to get an 'rm' implementation
2998 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2999
3000 If you want to complete the configuration process using your problematic
3001 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3002 to "yes", and re-run configure.
3003
3004 END
3005 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3006 fi
3007 fi
3008
3009
3010
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3012 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3013 # Check whether --enable-maintainer-mode was given.
3014 if test "${enable_maintainer_mode+set}" = set; then :
3015 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3016 else
3017 USE_MAINTAINER_MODE=no
3018 fi
3019
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3021 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3022 if test $USE_MAINTAINER_MODE = yes; then
3023 MAINTAINER_MODE_TRUE=
3024 MAINTAINER_MODE_FALSE='#'
3025 else
3026 MAINTAINER_MODE_TRUE='#'
3027 MAINTAINER_MODE_FALSE=
3028 fi
3029
3030 MAINT=$MAINTAINER_MODE_TRUE
3031
3032
3033
3034
3035 # Check whether --with-target-subdir was given.
3036 if test "${with_target_subdir+set}" = set; then :
3037 withval=$with_target_subdir;
3038 fi
3039
3040
3041 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
3042 COMPPATH=.
3043 else
3044 COMPPATH=..
3045 fi
3046
3047
3048
3049 # Check whether --with-cross-host was given.
3050 if test "${with_cross_host+set}" = set; then :
3051 withval=$with_cross_host;
3052 fi
3053
3054
3055 # Check whether --enable-multilib was given.
3056 if test "${enable_multilib+set}" = set; then :
3057 enableval=$enable_multilib; case "${enableval}" in
3058 yes) multilib=yes ;;
3059 no) multilib=no ;;
3060 *) as_fn_error $? "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
3061 esac
3062 else
3063 test -z "$with_target_subdir" && multilib=no || multilib=yes
3064 fi
3065
3066
3067 # Check whether --with-system-zlib was given.
3068 if test "${with_system_zlib+set}" = set; then :
3069 withval=$with_system_zlib;
3070 fi
3071
3072
3073 # Make sure we don't test executables when making cross-tools.
3074
3075
3076 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3077 # We must force CC to /not/ be precious variables; otherwise
3078 # the wrong, non-multilib-adjusted value will be used in multilibs.
3079 # As a side effect, we have to subst CFLAGS ourselves.
3080
3081
3082
3083 ac_ext=c
3084 ac_cpp='$CPP $CPPFLAGS'
3085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088 if test -n "$ac_tool_prefix"; then
3089 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3090 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if ${ac_cv_prog_CC+:} false; then :
3094 $as_echo_n "(cached) " >&6
3095 else
3096 if test -n "$CC"; then
3097 ac_cv_prog_CC="$CC" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 break 2
3109 fi
3110 done
3111 done
3112 IFS=$as_save_IFS
3113
3114 fi
3115 fi
3116 CC=$ac_cv_prog_CC
3117 if test -n "$CC"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119 $as_echo "$CC" >&6; }
3120 else
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3123 fi
3124
3125
3126 fi
3127 if test -z "$ac_cv_prog_CC"; then
3128 ac_ct_CC=$CC
3129 # Extract the first word of "gcc", so it can be a program name with args.
3130 set dummy gcc; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3134 $as_echo_n "(cached) " >&6
3135 else
3136 if test -n "$ac_ct_CC"; then
3137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3138 else
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3141 do
3142 IFS=$as_save_IFS
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146 ac_cv_prog_ac_ct_CC="gcc"
3147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 break 2
3149 fi
3150 done
3151 done
3152 IFS=$as_save_IFS
3153
3154 fi
3155 fi
3156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3157 if test -n "$ac_ct_CC"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3159 $as_echo "$ac_ct_CC" >&6; }
3160 else
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3163 fi
3164
3165 if test "x$ac_ct_CC" = x; then
3166 CC=""
3167 else
3168 case $cross_compiling:$ac_tool_warned in
3169 yes:)
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3172 ac_tool_warned=yes ;;
3173 esac
3174 CC=$ac_ct_CC
3175 fi
3176 else
3177 CC="$ac_cv_prog_CC"
3178 fi
3179
3180 if test -z "$CC"; then
3181 if test -n "$ac_tool_prefix"; then
3182 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3183 set dummy ${ac_tool_prefix}cc; ac_word=$2
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if ${ac_cv_prog_CC+:} false; then :
3187 $as_echo_n "(cached) " >&6
3188 else
3189 if test -n "$CC"; then
3190 ac_cv_prog_CC="$CC" # Let the user override the test.
3191 else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199 ac_cv_prog_CC="${ac_tool_prefix}cc"
3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 break 2
3202 fi
3203 done
3204 done
3205 IFS=$as_save_IFS
3206
3207 fi
3208 fi
3209 CC=$ac_cv_prog_CC
3210 if test -n "$CC"; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3212 $as_echo "$CC" >&6; }
3213 else
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3216 fi
3217
3218
3219 fi
3220 fi
3221 if test -z "$CC"; then
3222 # Extract the first word of "cc", so it can be a program name with args.
3223 set dummy cc; ac_word=$2
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225 $as_echo_n "checking for $ac_word... " >&6; }
3226 if ${ac_cv_prog_CC+:} false; then :
3227 $as_echo_n "(cached) " >&6
3228 else
3229 if test -n "$CC"; then
3230 ac_cv_prog_CC="$CC" # Let the user override the test.
3231 else
3232 ac_prog_rejected=no
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 for as_dir in $PATH
3235 do
3236 IFS=$as_save_IFS
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3241 ac_prog_rejected=yes
3242 continue
3243 fi
3244 ac_cv_prog_CC="cc"
3245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 break 2
3247 fi
3248 done
3249 done
3250 IFS=$as_save_IFS
3251
3252 if test $ac_prog_rejected = yes; then
3253 # We found a bogon in the path, so make sure we never use it.
3254 set dummy $ac_cv_prog_CC
3255 shift
3256 if test $# != 0; then
3257 # We chose a different compiler from the bogus one.
3258 # However, it has the same basename, so the bogon will be chosen
3259 # first if we set CC to just the basename; use the full file name.
3260 shift
3261 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3262 fi
3263 fi
3264 fi
3265 fi
3266 CC=$ac_cv_prog_CC
3267 if test -n "$CC"; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3269 $as_echo "$CC" >&6; }
3270 else
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 fi
3274
3275
3276 fi
3277 if test -z "$CC"; then
3278 if test -n "$ac_tool_prefix"; then
3279 for ac_prog in cl.exe
3280 do
3281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if ${ac_cv_prog_CC+:} false; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 if test -n "$CC"; then
3289 ac_cv_prog_CC="$CC" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3293 do
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3301 fi
3302 done
3303 done
3304 IFS=$as_save_IFS
3305
3306 fi
3307 fi
3308 CC=$ac_cv_prog_CC
3309 if test -n "$CC"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3311 $as_echo "$CC" >&6; }
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3315 fi
3316
3317
3318 test -n "$CC" && break
3319 done
3320 fi
3321 if test -z "$CC"; then
3322 ac_ct_CC=$CC
3323 for ac_prog in cl.exe
3324 do
3325 # Extract the first word of "$ac_prog", so it can be a program name with args.
3326 set dummy $ac_prog; ac_word=$2
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3330 $as_echo_n "(cached) " >&6
3331 else
3332 if test -n "$ac_ct_CC"; then
3333 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3337 do
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3342 ac_cv_prog_ac_ct_CC="$ac_prog"
3343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 break 2
3345 fi
3346 done
3347 done
3348 IFS=$as_save_IFS
3349
3350 fi
3351 fi
3352 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3353 if test -n "$ac_ct_CC"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3355 $as_echo "$ac_ct_CC" >&6; }
3356 else
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3359 fi
3360
3361
3362 test -n "$ac_ct_CC" && break
3363 done
3364
3365 if test "x$ac_ct_CC" = x; then
3366 CC=""
3367 else
3368 case $cross_compiling:$ac_tool_warned in
3369 yes:)
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3372 ac_tool_warned=yes ;;
3373 esac
3374 CC=$ac_ct_CC
3375 fi
3376 fi
3377
3378 fi
3379
3380
3381 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383 as_fn_error $? "no acceptable C compiler found in \$PATH
3384 See \`config.log' for more details" "$LINENO" 5; }
3385
3386 # Provide some information about the compiler.
3387 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3388 set X $ac_compile
3389 ac_compiler=$2
3390 for ac_option in --version -v -V -qversion; do
3391 { { ac_try="$ac_compiler $ac_option >&5"
3392 case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395 esac
3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397 $as_echo "$ac_try_echo"; } >&5
3398 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3399 ac_status=$?
3400 if test -s conftest.err; then
3401 sed '10a\
3402 ... rest of stderr output deleted ...
3403 10q' conftest.err >conftest.er1
3404 cat conftest.er1 >&5
3405 fi
3406 rm -f conftest.er1 conftest.err
3407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3408 test $ac_status = 0; }
3409 done
3410
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3413 #include <stdio.h>
3414 int
3415 main ()
3416 {
3417 printf ("hello world\n");
3418 ;
3419 return 0;
3420 }
3421 _ACEOF
3422 # FIXME: Cleanup?
3423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3424 (eval $ac_link) 2>&5
3425 ac_status=$?
3426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427 test $ac_status = 0; }; then :
3428 gcc_no_link=no
3429 else
3430 gcc_no_link=yes
3431 fi
3432 if test x$gcc_no_link = xyes; then
3433 # Setting cross_compile will disable run tests; it will
3434 # also disable AC_CHECK_FILE but that's generally
3435 # correct if we can't link.
3436 cross_compiling=yes
3437 EXEEXT=
3438 else
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h. */
3441
3442 int
3443 main ()
3444 {
3445
3446 ;
3447 return 0;
3448 }
3449 _ACEOF
3450 ac_clean_files_save=$ac_clean_files
3451 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3452 # Try to create an executable without -o first, disregard a.out.
3453 # It will help us diagnose broken compilers, and finding out an intuition
3454 # of exeext.
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3456 $as_echo_n "checking whether the C compiler works... " >&6; }
3457 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3458
3459 # The possible output files:
3460 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3461
3462 ac_rmfiles=
3463 for ac_file in $ac_files
3464 do
3465 case $ac_file in
3466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3467 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3468 esac
3469 done
3470 rm -f $ac_rmfiles
3471
3472 if { { ac_try="$ac_link_default"
3473 case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
3477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 $as_echo "$ac_try_echo"; } >&5
3479 (eval "$ac_link_default") 2>&5
3480 ac_status=$?
3481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482 test $ac_status = 0; }; then :
3483 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3484 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3485 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3486 # so that the user can short-circuit this test for compilers unknown to
3487 # Autoconf.
3488 for ac_file in $ac_files ''
3489 do
3490 test -f "$ac_file" || continue
3491 case $ac_file in
3492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3493 ;;
3494 [ab].out )
3495 # We found the default executable, but exeext='' is most
3496 # certainly right.
3497 break;;
3498 *.* )
3499 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3500 then :; else
3501 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3502 fi
3503 # We set ac_cv_exeext here because the later test for it is not
3504 # safe: cross compilers may not add the suffix if given an `-o'
3505 # argument, so we may need to know it at that point already.
3506 # Even if this section looks crufty: it has the advantage of
3507 # actually working.
3508 break;;
3509 * )
3510 break;;
3511 esac
3512 done
3513 test "$ac_cv_exeext" = no && ac_cv_exeext=
3514
3515 else
3516 ac_file=''
3517 fi
3518 if test -z "$ac_file"; then :
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520 $as_echo "no" >&6; }
3521 $as_echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3523
3524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526 as_fn_error 77 "C compiler cannot create executables
3527 See \`config.log' for more details" "$LINENO" 5; }
3528 else
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3530 $as_echo "yes" >&6; }
3531 fi
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3533 $as_echo_n "checking for C compiler default output file name... " >&6; }
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3535 $as_echo "$ac_file" >&6; }
3536 ac_exeext=$ac_cv_exeext
3537
3538 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3539 ac_clean_files=$ac_clean_files_save
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3541 $as_echo_n "checking for suffix of executables... " >&6; }
3542 if { { ac_try="$ac_link"
3543 case "(($ac_try" in
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3546 esac
3547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548 $as_echo "$ac_try_echo"; } >&5
3549 (eval "$ac_link") 2>&5
3550 ac_status=$?
3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552 test $ac_status = 0; }; then :
3553 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3554 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3555 # work properly (i.e., refer to `conftest.exe'), while it won't with
3556 # `rm'.
3557 for ac_file in conftest.exe conftest conftest.*; do
3558 test -f "$ac_file" || continue
3559 case $ac_file in
3560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3561 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3562 break;;
3563 * ) break;;
3564 esac
3565 done
3566 else
3567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3569 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3570 See \`config.log' for more details" "$LINENO" 5; }
3571 fi
3572 rm -f conftest conftest$ac_cv_exeext
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3574 $as_echo "$ac_cv_exeext" >&6; }
3575
3576 rm -f conftest.$ac_ext
3577 EXEEXT=$ac_cv_exeext
3578 ac_exeext=$EXEEXT
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3581 #include <stdio.h>
3582 int
3583 main ()
3584 {
3585 FILE *f = fopen ("conftest.out", "w");
3586 return ferror (f) || fclose (f) != 0;
3587
3588 ;
3589 return 0;
3590 }
3591 _ACEOF
3592 ac_clean_files="$ac_clean_files conftest.out"
3593 # Check that the compiler produces executables we can run. If not, either
3594 # the compiler is broken, or we cross compile.
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3596 $as_echo_n "checking whether we are cross compiling... " >&6; }
3597 if test "$cross_compiling" != yes; then
3598 { { ac_try="$ac_link"
3599 case "(($ac_try" in
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3602 esac
3603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604 $as_echo "$ac_try_echo"; } >&5
3605 (eval "$ac_link") 2>&5
3606 ac_status=$?
3607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3608 test $ac_status = 0; }
3609 if { ac_try='./conftest$ac_cv_exeext'
3610 { { case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613 esac
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616 (eval "$ac_try") 2>&5
3617 ac_status=$?
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; }; }; then
3620 cross_compiling=no
3621 else
3622 if test "$cross_compiling" = maybe; then
3623 cross_compiling=yes
3624 else
3625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3627 as_fn_error $? "cannot run C compiled programs.
3628 If you meant to cross compile, use \`--host'.
3629 See \`config.log' for more details" "$LINENO" 5; }
3630 fi
3631 fi
3632 fi
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3634 $as_echo "$cross_compiling" >&6; }
3635
3636 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3637 ac_clean_files=$ac_clean_files_save
3638 fi
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3640 $as_echo_n "checking for suffix of object files... " >&6; }
3641 if ${ac_cv_objext+:} false; then :
3642 $as_echo_n "(cached) " >&6
3643 else
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3646
3647 int
3648 main ()
3649 {
3650
3651 ;
3652 return 0;
3653 }
3654 _ACEOF
3655 rm -f conftest.o conftest.obj
3656 if { { ac_try="$ac_compile"
3657 case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660 esac
3661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662 $as_echo "$ac_try_echo"; } >&5
3663 (eval "$ac_compile") 2>&5
3664 ac_status=$?
3665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3666 test $ac_status = 0; }; then :
3667 for ac_file in conftest.o conftest.obj conftest.*; do
3668 test -f "$ac_file" || continue;
3669 case $ac_file in
3670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3671 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3672 break;;
3673 esac
3674 done
3675 else
3676 $as_echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3678
3679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3681 as_fn_error $? "cannot compute suffix of object files: cannot compile
3682 See \`config.log' for more details" "$LINENO" 5; }
3683 fi
3684 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3685 fi
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3687 $as_echo "$ac_cv_objext" >&6; }
3688 OBJEXT=$ac_cv_objext
3689 ac_objext=$OBJEXT
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3691 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3692 if ${ac_cv_c_compiler_gnu+:} false; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3697
3698 int
3699 main ()
3700 {
3701 #ifndef __GNUC__
3702 choke me
3703 #endif
3704
3705 ;
3706 return 0;
3707 }
3708 _ACEOF
3709 if ac_fn_c_try_compile "$LINENO"; then :
3710 ac_compiler_gnu=yes
3711 else
3712 ac_compiler_gnu=no
3713 fi
3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3716
3717 fi
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3719 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3720 if test $ac_compiler_gnu = yes; then
3721 GCC=yes
3722 else
3723 GCC=
3724 fi
3725 ac_test_CFLAGS=${CFLAGS+set}
3726 ac_save_CFLAGS=$CFLAGS
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3728 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3729 if ${ac_cv_prog_cc_g+:} false; then :
3730 $as_echo_n "(cached) " >&6
3731 else
3732 ac_save_c_werror_flag=$ac_c_werror_flag
3733 ac_c_werror_flag=yes
3734 ac_cv_prog_cc_g=no
3735 CFLAGS="-g"
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738
3739 int
3740 main ()
3741 {
3742
3743 ;
3744 return 0;
3745 }
3746 _ACEOF
3747 if ac_fn_c_try_compile "$LINENO"; then :
3748 ac_cv_prog_cc_g=yes
3749 else
3750 CFLAGS=""
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3753
3754 int
3755 main ()
3756 {
3757
3758 ;
3759 return 0;
3760 }
3761 _ACEOF
3762 if ac_fn_c_try_compile "$LINENO"; then :
3763
3764 else
3765 ac_c_werror_flag=$ac_save_c_werror_flag
3766 CFLAGS="-g"
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3769
3770 int
3771 main ()
3772 {
3773
3774 ;
3775 return 0;
3776 }
3777 _ACEOF
3778 if ac_fn_c_try_compile "$LINENO"; then :
3779 ac_cv_prog_cc_g=yes
3780 fi
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782 fi
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 fi
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 ac_c_werror_flag=$ac_save_c_werror_flag
3787 fi
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3789 $as_echo "$ac_cv_prog_cc_g" >&6; }
3790 if test "$ac_test_CFLAGS" = set; then
3791 CFLAGS=$ac_save_CFLAGS
3792 elif test $ac_cv_prog_cc_g = yes; then
3793 if test "$GCC" = yes; then
3794 CFLAGS="-g -O2"
3795 else
3796 CFLAGS="-g"
3797 fi
3798 else
3799 if test "$GCC" = yes; then
3800 CFLAGS="-O2"
3801 else
3802 CFLAGS=
3803 fi
3804 fi
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3806 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3807 if ${ac_cv_prog_cc_c89+:} false; then :
3808 $as_echo_n "(cached) " >&6
3809 else
3810 ac_cv_prog_cc_c89=no
3811 ac_save_CC=$CC
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3814 #include <stdarg.h>
3815 #include <stdio.h>
3816 struct stat;
3817 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3818 struct buf { int x; };
3819 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3820 static char *e (p, i)
3821 char **p;
3822 int i;
3823 {
3824 return p[i];
3825 }
3826 static char *f (char * (*g) (char **, int), char **p, ...)
3827 {
3828 char *s;
3829 va_list v;
3830 va_start (v,p);
3831 s = g (p, va_arg (v,int));
3832 va_end (v);
3833 return s;
3834 }
3835
3836 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3837 function prototypes and stuff, but not '\xHH' hex character constants.
3838 These don't provoke an error unfortunately, instead are silently treated
3839 as 'x'. The following induces an error, until -std is added to get
3840 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3841 array size at least. It's necessary to write '\x00'==0 to get something
3842 that's true only with -std. */
3843 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3844
3845 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3846 inside strings and character constants. */
3847 #define FOO(x) 'x'
3848 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3849
3850 int test (int i, double x);
3851 struct s1 {int (*f) (int a);};
3852 struct s2 {int (*f) (double a);};
3853 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3854 int argc;
3855 char **argv;
3856 int
3857 main ()
3858 {
3859 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3860 ;
3861 return 0;
3862 }
3863 _ACEOF
3864 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3865 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3866 do
3867 CC="$ac_save_CC $ac_arg"
3868 if ac_fn_c_try_compile "$LINENO"; then :
3869 ac_cv_prog_cc_c89=$ac_arg
3870 fi
3871 rm -f core conftest.err conftest.$ac_objext
3872 test "x$ac_cv_prog_cc_c89" != "xno" && break
3873 done
3874 rm -f conftest.$ac_ext
3875 CC=$ac_save_CC
3876
3877 fi
3878 # AC_CACHE_VAL
3879 case "x$ac_cv_prog_cc_c89" in
3880 x)
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3882 $as_echo "none needed" >&6; } ;;
3883 xno)
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3885 $as_echo "unsupported" >&6; } ;;
3886 *)
3887 CC="$CC $ac_cv_prog_cc_c89"
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3889 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3890 esac
3891 if test "x$ac_cv_prog_cc_c89" != xno; then :
3892
3893 fi
3894
3895 ac_ext=c
3896 ac_cpp='$CPP $CPPFLAGS'
3897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900
3901 ac_ext=c
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3907 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3908 if ${am_cv_prog_cc_c_o+:} false; then :
3909 $as_echo_n "(cached) " >&6
3910 else
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3913
3914 int
3915 main ()
3916 {
3917
3918 ;
3919 return 0;
3920 }
3921 _ACEOF
3922 # Make sure it works both with $CC and with simple cc.
3923 # Following AC_PROG_CC_C_O, we do the test twice because some
3924 # compilers refuse to overwrite an existing .o file with -o,
3925 # though they will create one.
3926 am_cv_prog_cc_c_o=yes
3927 for am_i in 1 2; do
3928 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3929 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } \
3933 && test -f conftest2.$ac_objext; then
3934 : OK
3935 else
3936 am_cv_prog_cc_c_o=no
3937 break
3938 fi
3939 done
3940 rm -f core conftest*
3941 unset am_i
3942 fi
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3944 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3945 if test "$am_cv_prog_cc_c_o" != yes; then
3946 # Losing compiler, so override with the script.
3947 # FIXME: It is wrong to rewrite CC.
3948 # But if we don't then we get into trouble of one sort or another.
3949 # A longer-term fix would be to have automake use am__CC in this case,
3950 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3951 CC="$am_aux_dir/compile $CC"
3952 fi
3953 ac_ext=c
3954 ac_cpp='$CPP $CPPFLAGS'
3955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958
3959 DEPDIR="${am__leading_dot}deps"
3960
3961 ac_config_commands="$ac_config_commands depfiles"
3962
3963
3964 am_make=${MAKE-make}
3965 cat > confinc << 'END'
3966 am__doit:
3967 @echo this is the am__doit target
3968 .PHONY: am__doit
3969 END
3970 # If we don't find an include directive, just comment out the code.
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3972 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3973 am__include="#"
3974 am__quote=
3975 _am_result=none
3976 # First try GNU make style include.
3977 echo "include confinc" > confmf
3978 # Ignore all kinds of additional output from 'make'.
3979 case `$am_make -s -f confmf 2> /dev/null` in #(
3980 *the\ am__doit\ target*)
3981 am__include=include
3982 am__quote=
3983 _am_result=GNU
3984 ;;
3985 esac
3986 # Now try BSD make style include.
3987 if test "$am__include" = "#"; then
3988 echo '.include "confinc"' > confmf
3989 case `$am_make -s -f confmf 2> /dev/null` in #(
3990 *the\ am__doit\ target*)
3991 am__include=.include
3992 am__quote="\""
3993 _am_result=BSD
3994 ;;
3995 esac
3996 fi
3997
3998
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4000 $as_echo "$_am_result" >&6; }
4001 rm -f confinc confmf
4002
4003 # Check whether --enable-dependency-tracking was given.
4004 if test "${enable_dependency_tracking+set}" = set; then :
4005 enableval=$enable_dependency_tracking;
4006 fi
4007
4008 if test "x$enable_dependency_tracking" != xno; then
4009 am_depcomp="$ac_aux_dir/depcomp"
4010 AMDEPBACKSLASH='\'
4011 am__nodep='_no'
4012 fi
4013 if test "x$enable_dependency_tracking" != xno; then
4014 AMDEP_TRUE=
4015 AMDEP_FALSE='#'
4016 else
4017 AMDEP_TRUE='#'
4018 AMDEP_FALSE=
4019 fi
4020
4021
4022
4023 depcc="$CC" am_compiler_list=
4024
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4026 $as_echo_n "checking dependency style of $depcc... " >&6; }
4027 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4028 $as_echo_n "(cached) " >&6
4029 else
4030 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4031 # We make a subdir and do the tests there. Otherwise we can end up
4032 # making bogus files that we don't know about and never remove. For
4033 # instance it was reported that on HP-UX the gcc test will end up
4034 # making a dummy file named 'D' -- because '-MD' means "put the output
4035 # in D".
4036 rm -rf conftest.dir
4037 mkdir conftest.dir
4038 # Copy depcomp to subdir because otherwise we won't find it if we're
4039 # using a relative directory.
4040 cp "$am_depcomp" conftest.dir
4041 cd conftest.dir
4042 # We will build objects and dependencies in a subdirectory because
4043 # it helps to detect inapplicable dependency modes. For instance
4044 # both Tru64's cc and ICC support -MD to output dependencies as a
4045 # side effect of compilation, but ICC will put the dependencies in
4046 # the current directory while Tru64 will put them in the object
4047 # directory.
4048 mkdir sub
4049
4050 am_cv_CC_dependencies_compiler_type=none
4051 if test "$am_compiler_list" = ""; then
4052 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4053 fi
4054 am__universal=false
4055 case " $depcc " in #(
4056 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4057 esac
4058
4059 for depmode in $am_compiler_list; do
4060 # Setup a source with many dependencies, because some compilers
4061 # like to wrap large dependency lists on column 80 (with \), and
4062 # we should not choose a depcomp mode which is confused by this.
4063 #
4064 # We need to recreate these files for each test, as the compiler may
4065 # overwrite some of them when testing with obscure command lines.
4066 # This happens at least with the AIX C compiler.
4067 : > sub/conftest.c
4068 for i in 1 2 3 4 5 6; do
4069 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4070 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4071 # Solaris 10 /bin/sh.
4072 echo '/* dummy */' > sub/conftst$i.h
4073 done
4074 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4075
4076 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4077 # mode. It turns out that the SunPro C++ compiler does not properly
4078 # handle '-M -o', and we need to detect this. Also, some Intel
4079 # versions had trouble with output in subdirs.
4080 am__obj=sub/conftest.${OBJEXT-o}
4081 am__minus_obj="-o $am__obj"
4082 case $depmode in
4083 gcc)
4084 # This depmode causes a compiler race in universal mode.
4085 test "$am__universal" = false || continue
4086 ;;
4087 nosideeffect)
4088 # After this tag, mechanisms are not by side-effect, so they'll
4089 # only be used when explicitly requested.
4090 if test "x$enable_dependency_tracking" = xyes; then
4091 continue
4092 else
4093 break
4094 fi
4095 ;;
4096 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4097 # This compiler won't grok '-c -o', but also, the minuso test has
4098 # not run yet. These depmodes are late enough in the game, and
4099 # so weak that their functioning should not be impacted.
4100 am__obj=conftest.${OBJEXT-o}
4101 am__minus_obj=
4102 ;;
4103 none) break ;;
4104 esac
4105 if depmode=$depmode \
4106 source=sub/conftest.c object=$am__obj \
4107 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4108 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4109 >/dev/null 2>conftest.err &&
4110 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4111 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4112 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4113 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4114 # icc doesn't choke on unknown options, it will just issue warnings
4115 # or remarks (even with -Werror). So we grep stderr for any message
4116 # that says an option was ignored or not supported.
4117 # When given -MP, icc 7.0 and 7.1 complain thusly:
4118 # icc: Command line warning: ignoring option '-M'; no argument required
4119 # The diagnosis changed in icc 8.0:
4120 # icc: Command line remark: option '-MP' not supported
4121 if (grep 'ignoring option' conftest.err ||
4122 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4123 am_cv_CC_dependencies_compiler_type=$depmode
4124 break
4125 fi
4126 fi
4127 done
4128
4129 cd ..
4130 rm -rf conftest.dir
4131 else
4132 am_cv_CC_dependencies_compiler_type=none
4133 fi
4134
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4137 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4138 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4139
4140 if
4141 test "x$enable_dependency_tracking" != xno \
4142 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4143 am__fastdepCC_TRUE=
4144 am__fastdepCC_FALSE='#'
4145 else
4146 am__fastdepCC_TRUE='#'
4147 am__fastdepCC_FALSE=
4148 fi
4149
4150
4151
4152
4153
4154
4155 # Add CET specific flags if CET is enabled
4156
4157 # Check whether --enable-cet was given.
4158 if test "${enable_cet+set}" = set; then :
4159 enableval=$enable_cet;
4160 case "$enableval" in
4161 yes|no|auto) ;;
4162 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
4163 esac
4164
4165 else
4166 enable_cet=auto
4167 fi
4168
4169
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4171 $as_echo_n "checking for CET support... " >&6; }
4172
4173 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
4174 case "$host" in
4175 i[34567]86-*-linux* | x86_64-*-linux*)
4176 case "$enable_cet" in
4177 auto)
4178 # Check if target supports multi-byte NOPs
4179 # and if compiler and assembler support CET insn.
4180 cet_save_CFLAGS="$CFLAGS"
4181 CFLAGS="$CFLAGS -fcf-protection"
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4184
4185 int
4186 main ()
4187 {
4188
4189 #if !defined(__SSE2__)
4190 #error target does not support multi-byte NOPs
4191 #else
4192 asm ("setssbsy");
4193 #endif
4194
4195 ;
4196 return 0;
4197 }
4198 _ACEOF
4199 if ac_fn_c_try_compile "$LINENO"; then :
4200 enable_cet=yes
4201 else
4202 enable_cet=no
4203 fi
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 CFLAGS="$cet_save_CFLAGS"
4206 ;;
4207 yes)
4208 # Check if assembler supports CET.
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4211
4212 int
4213 main ()
4214 {
4215 asm ("setssbsy");
4216 ;
4217 return 0;
4218 }
4219 _ACEOF
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221
4222 else
4223 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
4224 fi
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 ;;
4227 esac
4228 ;;
4229 *)
4230 enable_cet=no
4231 ;;
4232 esac
4233 if test x$enable_cet = xyes; then
4234 CET_FLAGS="-fcf-protection -mshstk"
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4236 $as_echo "yes" >&6; }
4237 else
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239 $as_echo "no" >&6; }
4240 fi
4241
4242
4243
4244 case `pwd` in
4245 *\ * | *\ *)
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4247 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4248 esac
4249
4250
4251
4252 macro_version='2.2.7a'
4253 macro_revision='1.3134'
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267 ltmain="$ac_aux_dir/ltmain.sh"
4268
4269 # Backslashify metacharacters that are still active within
4270 # double-quoted strings.
4271 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4272
4273 # Same as above, but do not quote variable references.
4274 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4275
4276 # Sed substitution to delay expansion of an escaped shell variable in a
4277 # double_quote_subst'ed string.
4278 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4279
4280 # Sed substitution to delay expansion of an escaped single quote.
4281 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4282
4283 # Sed substitution to avoid accidental globbing in evaled expressions
4284 no_glob_subst='s/\*/\\\*/g'
4285
4286 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4287 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4288 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4289
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4291 $as_echo_n "checking how to print strings... " >&6; }
4292 # Test print first, because it will be a builtin if present.
4293 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4294 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4295 ECHO='print -r --'
4296 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4297 ECHO='printf %s\n'
4298 else
4299 # Use this function as a fallback that always works.
4300 func_fallback_echo ()
4301 {
4302 eval 'cat <<_LTECHO_EOF
4303 $1
4304 _LTECHO_EOF'
4305 }
4306 ECHO='func_fallback_echo'
4307 fi
4308
4309 # func_echo_all arg...
4310 # Invoke $ECHO with all args, space-separated.
4311 func_echo_all ()
4312 {
4313 $ECHO ""
4314 }
4315
4316 case "$ECHO" in
4317 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4318 $as_echo "printf" >&6; } ;;
4319 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4320 $as_echo "print -r" >&6; } ;;
4321 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4322 $as_echo "cat" >&6; } ;;
4323 esac
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4339 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4340 if ${ac_cv_path_SED+:} false; then :
4341 $as_echo_n "(cached) " >&6
4342 else
4343 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4344 for ac_i in 1 2 3 4 5 6 7; do
4345 ac_script="$ac_script$as_nl$ac_script"
4346 done
4347 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4348 { ac_script=; unset ac_script;}
4349 if test -z "$SED"; then
4350 ac_path_SED_found=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4354 do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_prog in sed gsed; do
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4360 as_fn_executable_p "$ac_path_SED" || continue
4361 # Check for GNU ac_path_SED and select it if it is found.
4362 # Check for GNU $ac_path_SED
4363 case `"$ac_path_SED" --version 2>&1` in
4364 *GNU*)
4365 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4366 *)
4367 ac_count=0
4368 $as_echo_n 0123456789 >"conftest.in"
4369 while :
4370 do
4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
4372 mv "conftest.tmp" "conftest.in"
4373 cp "conftest.in" "conftest.nl"
4374 $as_echo '' >> "conftest.nl"
4375 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4377 as_fn_arith $ac_count + 1 && ac_count=$as_val
4378 if test $ac_count -gt ${ac_path_SED_max-0}; then
4379 # Best one so far, save it but keep looking for a better one
4380 ac_cv_path_SED="$ac_path_SED"
4381 ac_path_SED_max=$ac_count
4382 fi
4383 # 10*(2^10) chars as input seems more than enough
4384 test $ac_count -gt 10 && break
4385 done
4386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4387 esac
4388
4389 $ac_path_SED_found && break 3
4390 done
4391 done
4392 done
4393 IFS=$as_save_IFS
4394 if test -z "$ac_cv_path_SED"; then
4395 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4396 fi
4397 else
4398 ac_cv_path_SED=$SED
4399 fi
4400
4401 fi
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4403 $as_echo "$ac_cv_path_SED" >&6; }
4404 SED="$ac_cv_path_SED"
4405 rm -f conftest.sed
4406
4407 test -z "$SED" && SED=sed
4408 Xsed="$SED -e 1s/^X//"
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4421 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4422 if ${ac_cv_path_GREP+:} false; then :
4423 $as_echo_n "(cached) " >&6
4424 else
4425 if test -z "$GREP"; then
4426 ac_path_GREP_found=false
4427 # Loop through the user's path and test for each of PROGNAME-LIST
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4430 do
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
4433 for ac_prog in grep ggrep; do
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4436 as_fn_executable_p "$ac_path_GREP" || continue
4437 # Check for GNU ac_path_GREP and select it if it is found.
4438 # Check for GNU $ac_path_GREP
4439 case `"$ac_path_GREP" --version 2>&1` in
4440 *GNU*)
4441 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4442 *)
4443 ac_count=0
4444 $as_echo_n 0123456789 >"conftest.in"
4445 while :
4446 do
4447 cat "conftest.in" "conftest.in" >"conftest.tmp"
4448 mv "conftest.tmp" "conftest.in"
4449 cp "conftest.in" "conftest.nl"
4450 $as_echo 'GREP' >> "conftest.nl"
4451 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4452 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4453 as_fn_arith $ac_count + 1 && ac_count=$as_val
4454 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4455 # Best one so far, save it but keep looking for a better one
4456 ac_cv_path_GREP="$ac_path_GREP"
4457 ac_path_GREP_max=$ac_count
4458 fi
4459 # 10*(2^10) chars as input seems more than enough
4460 test $ac_count -gt 10 && break
4461 done
4462 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4463 esac
4464
4465 $ac_path_GREP_found && break 3
4466 done
4467 done
4468 done
4469 IFS=$as_save_IFS
4470 if test -z "$ac_cv_path_GREP"; then
4471 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4472 fi
4473 else
4474 ac_cv_path_GREP=$GREP
4475 fi
4476
4477 fi
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4479 $as_echo "$ac_cv_path_GREP" >&6; }
4480 GREP="$ac_cv_path_GREP"
4481
4482
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4484 $as_echo_n "checking for egrep... " >&6; }
4485 if ${ac_cv_path_EGREP+:} false; then :
4486 $as_echo_n "(cached) " >&6
4487 else
4488 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4489 then ac_cv_path_EGREP="$GREP -E"
4490 else
4491 if test -z "$EGREP"; then
4492 ac_path_EGREP_found=false
4493 # Loop through the user's path and test for each of PROGNAME-LIST
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4496 do
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_prog in egrep; do
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4502 as_fn_executable_p "$ac_path_EGREP" || continue
4503 # Check for GNU ac_path_EGREP and select it if it is found.
4504 # Check for GNU $ac_path_EGREP
4505 case `"$ac_path_EGREP" --version 2>&1` in
4506 *GNU*)
4507 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4508 *)
4509 ac_count=0
4510 $as_echo_n 0123456789 >"conftest.in"
4511 while :
4512 do
4513 cat "conftest.in" "conftest.in" >"conftest.tmp"
4514 mv "conftest.tmp" "conftest.in"
4515 cp "conftest.in" "conftest.nl"
4516 $as_echo 'EGREP' >> "conftest.nl"
4517 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4518 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4519 as_fn_arith $ac_count + 1 && ac_count=$as_val
4520 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4521 # Best one so far, save it but keep looking for a better one
4522 ac_cv_path_EGREP="$ac_path_EGREP"
4523 ac_path_EGREP_max=$ac_count
4524 fi
4525 # 10*(2^10) chars as input seems more than enough
4526 test $ac_count -gt 10 && break
4527 done
4528 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4529 esac
4530
4531 $ac_path_EGREP_found && break 3
4532 done
4533 done
4534 done
4535 IFS=$as_save_IFS
4536 if test -z "$ac_cv_path_EGREP"; then
4537 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4538 fi
4539 else
4540 ac_cv_path_EGREP=$EGREP
4541 fi
4542
4543 fi
4544 fi
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4546 $as_echo "$ac_cv_path_EGREP" >&6; }
4547 EGREP="$ac_cv_path_EGREP"
4548
4549
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4551 $as_echo_n "checking for fgrep... " >&6; }
4552 if ${ac_cv_path_FGREP+:} false; then :
4553 $as_echo_n "(cached) " >&6
4554 else
4555 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4556 then ac_cv_path_FGREP="$GREP -F"
4557 else
4558 if test -z "$FGREP"; then
4559 ac_path_FGREP_found=false
4560 # Loop through the user's path and test for each of PROGNAME-LIST
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4563 do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_prog in fgrep; do
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4569 as_fn_executable_p "$ac_path_FGREP" || continue
4570 # Check for GNU ac_path_FGREP and select it if it is found.
4571 # Check for GNU $ac_path_FGREP
4572 case `"$ac_path_FGREP" --version 2>&1` in
4573 *GNU*)
4574 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4575 *)
4576 ac_count=0
4577 $as_echo_n 0123456789 >"conftest.in"
4578 while :
4579 do
4580 cat "conftest.in" "conftest.in" >"conftest.tmp"
4581 mv "conftest.tmp" "conftest.in"
4582 cp "conftest.in" "conftest.nl"
4583 $as_echo 'FGREP' >> "conftest.nl"
4584 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4586 as_fn_arith $ac_count + 1 && ac_count=$as_val
4587 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4588 # Best one so far, save it but keep looking for a better one
4589 ac_cv_path_FGREP="$ac_path_FGREP"
4590 ac_path_FGREP_max=$ac_count
4591 fi
4592 # 10*(2^10) chars as input seems more than enough
4593 test $ac_count -gt 10 && break
4594 done
4595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4596 esac
4597
4598 $ac_path_FGREP_found && break 3
4599 done
4600 done
4601 done
4602 IFS=$as_save_IFS
4603 if test -z "$ac_cv_path_FGREP"; then
4604 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4605 fi
4606 else
4607 ac_cv_path_FGREP=$FGREP
4608 fi
4609
4610 fi
4611 fi
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4613 $as_echo "$ac_cv_path_FGREP" >&6; }
4614 FGREP="$ac_cv_path_FGREP"
4615
4616
4617 test -z "$GREP" && GREP=grep
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637 # Check whether --with-gnu-ld was given.
4638 if test "${with_gnu_ld+set}" = set; then :
4639 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4640 else
4641 with_gnu_ld=no
4642 fi
4643
4644 ac_prog=ld
4645 if test "$GCC" = yes; then
4646 # Check if gcc -print-prog-name=ld gives a path.
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4648 $as_echo_n "checking for ld used by $CC... " >&6; }
4649 case $host in
4650 *-*-mingw*)
4651 # gcc leaves a trailing carriage return which upsets mingw
4652 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4653 *)
4654 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4655 esac
4656 case $ac_prog in
4657 # Accept absolute paths.
4658 [\\/]* | ?:[\\/]*)
4659 re_direlt='/[^/][^/]*/\.\./'
4660 # Canonicalize the pathname of ld
4661 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4662 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4663 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4664 done
4665 test -z "$LD" && LD="$ac_prog"
4666 ;;
4667 "")
4668 # If it fails, then pretend we aren't using GCC.
4669 ac_prog=ld
4670 ;;
4671 *)
4672 # If it is relative, then search for the first ld in PATH.
4673 with_gnu_ld=unknown
4674 ;;
4675 esac
4676 elif test "$with_gnu_ld" = yes; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4678 $as_echo_n "checking for GNU ld... " >&6; }
4679 else
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4681 $as_echo_n "checking for non-GNU ld... " >&6; }
4682 fi
4683 if ${lt_cv_path_LD+:} false; then :
4684 $as_echo_n "(cached) " >&6
4685 else
4686 if test -z "$LD"; then
4687 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4688 for ac_dir in $PATH; do
4689 IFS="$lt_save_ifs"
4690 test -z "$ac_dir" && ac_dir=.
4691 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4692 lt_cv_path_LD="$ac_dir/$ac_prog"
4693 # Check to see if the program is GNU ld. I'd rather use --version,
4694 # but apparently some variants of GNU ld only accept -v.
4695 # Break only if it was the GNU/non-GNU ld that we prefer.
4696 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4697 *GNU* | *'with BFD'*)
4698 test "$with_gnu_ld" != no && break
4699 ;;
4700 *)
4701 test "$with_gnu_ld" != yes && break
4702 ;;
4703 esac
4704 fi
4705 done
4706 IFS="$lt_save_ifs"
4707 else
4708 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4709 fi
4710 fi
4711
4712 LD="$lt_cv_path_LD"
4713 if test -n "$LD"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4715 $as_echo "$LD" >&6; }
4716 else
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718 $as_echo "no" >&6; }
4719 fi
4720 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4722 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4723 if ${lt_cv_prog_gnu_ld+:} false; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4727 case `$LD -v 2>&1 </dev/null` in
4728 *GNU* | *'with BFD'*)
4729 lt_cv_prog_gnu_ld=yes
4730 ;;
4731 *)
4732 lt_cv_prog_gnu_ld=no
4733 ;;
4734 esac
4735 fi
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4737 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4738 with_gnu_ld=$lt_cv_prog_gnu_ld
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4749 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4750 if ${lt_cv_path_NM+:} false; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 if test -n "$NM"; then
4754 # Let the user override the nm to test.
4755 lt_nm_to_check="$NM"
4756 else
4757 lt_nm_to_check="${ac_tool_prefix}nm"
4758 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4759 lt_nm_to_check="$lt_nm_to_check nm"
4760 fi
4761 fi
4762 for lt_tmp_nm in "$lt_nm_to_check"; do
4763 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4764 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4765 IFS="$lt_save_ifs"
4766 test -z "$ac_dir" && ac_dir=.
4767 # Strip out any user-provided options from the nm to test twice,
4768 # the first time to test to see if nm (rather than its options) has
4769 # an explicit path, the second time to yield a file which can be
4770 # nm'ed itself.
4771 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
4772 case "$tmp_nm_path" in
4773 */*|*\\*) tmp_nm="$lt_tmp_nm";;
4774 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
4775 esac
4776 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
4777 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
4778 # Check to see if the nm accepts a BSD-compat flag.
4779 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4780 # nm: unknown option "B" ignored
4781 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
4782 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
4783 break
4784 ;;
4785 *)
4786 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
4787 *$tmp_nm*)
4788 lt_cv_path_NM="$tmp_nm -p"
4789 break
4790 ;;
4791 *)
4792 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4793 continue # so that we can try to find one that supports BSD flags
4794 ;;
4795 esac
4796 ;;
4797 esac
4798 fi
4799 done
4800 IFS="$lt_save_ifs"
4801 done
4802 : ${lt_cv_path_NM=no}
4803 fi
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4805 $as_echo "$lt_cv_path_NM" >&6; }
4806 if test "$lt_cv_path_NM" != "no"; then
4807 NM="$lt_cv_path_NM"
4808 else
4809 # Didn't find any BSD compatible name lister, look for dumpbin.
4810 if test -n "$DUMPBIN"; then :
4811 # Let the user override the test.
4812 else
4813 if test -n "$ac_tool_prefix"; then
4814 for ac_prog in dumpbin "link -dump"
4815 do
4816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if ${ac_cv_prog_DUMPBIN+:} false; then :
4821 $as_echo_n "(cached) " >&6
4822 else
4823 if test -n "$DUMPBIN"; then
4824 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4836 fi
4837 done
4838 done
4839 IFS=$as_save_IFS
4840
4841 fi
4842 fi
4843 DUMPBIN=$ac_cv_prog_DUMPBIN
4844 if test -n "$DUMPBIN"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4846 $as_echo "$DUMPBIN" >&6; }
4847 else
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4850 fi
4851
4852
4853 test -n "$DUMPBIN" && break
4854 done
4855 fi
4856 if test -z "$DUMPBIN"; then
4857 ac_ct_DUMPBIN=$DUMPBIN
4858 for ac_prog in dumpbin "link -dump"
4859 do
4860 # Extract the first word of "$ac_prog", so it can be a program name with args.
4861 set dummy $ac_prog; ac_word=$2
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 $as_echo_n "checking for $ac_word... " >&6; }
4864 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4865 $as_echo_n "(cached) " >&6
4866 else
4867 if test -n "$ac_ct_DUMPBIN"; then
4868 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4884
4885 fi
4886 fi
4887 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4888 if test -n "$ac_ct_DUMPBIN"; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4890 $as_echo "$ac_ct_DUMPBIN" >&6; }
4891 else
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4894 fi
4895
4896
4897 test -n "$ac_ct_DUMPBIN" && break
4898 done
4899
4900 if test "x$ac_ct_DUMPBIN" = x; then
4901 DUMPBIN=":"
4902 else
4903 case $cross_compiling:$ac_tool_warned in
4904 yes:)
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4907 ac_tool_warned=yes ;;
4908 esac
4909 DUMPBIN=$ac_ct_DUMPBIN
4910 fi
4911 fi
4912
4913 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4914 *COFF*)
4915 DUMPBIN="$DUMPBIN -symbols"
4916 ;;
4917 *)
4918 DUMPBIN=:
4919 ;;
4920 esac
4921 fi
4922
4923 if test "$DUMPBIN" != ":"; then
4924 NM="$DUMPBIN"
4925 fi
4926 fi
4927 test -z "$NM" && NM=nm
4928
4929
4930
4931
4932
4933
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4935 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4936 if ${lt_cv_nm_interface+:} false; then :
4937 $as_echo_n "(cached) " >&6
4938 else
4939 lt_cv_nm_interface="BSD nm"
4940 echo "int some_variable = 0;" > conftest.$ac_ext
4941 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4942 (eval "$ac_compile" 2>conftest.err)
4943 cat conftest.err >&5
4944 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4945 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4946 cat conftest.err >&5
4947 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4948 cat conftest.out >&5
4949 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4950 lt_cv_nm_interface="MS dumpbin"
4951 fi
4952 rm -f conftest*
4953 fi
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4955 $as_echo "$lt_cv_nm_interface" >&6; }
4956
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4958 $as_echo_n "checking whether ln -s works... " >&6; }
4959 LN_S=$as_ln_s
4960 if test "$LN_S" = "ln -s"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4962 $as_echo "yes" >&6; }
4963 else
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4965 $as_echo "no, using $LN_S" >&6; }
4966 fi
4967
4968 # find the maximum length of command line arguments
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4970 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4971 if ${lt_cv_sys_max_cmd_len+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 i=0
4975 teststring="ABCD"
4976
4977 case $build_os in
4978 msdosdjgpp*)
4979 # On DJGPP, this test can blow up pretty badly due to problems in libc
4980 # (any single argument exceeding 2000 bytes causes a buffer overrun
4981 # during glob expansion). Even if it were fixed, the result of this
4982 # check would be larger than it should be.
4983 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4984 ;;
4985
4986 gnu*)
4987 # Under GNU Hurd, this test is not required because there is
4988 # no limit to the length of command line arguments.
4989 # Libtool will interpret -1 as no limit whatsoever
4990 lt_cv_sys_max_cmd_len=-1;
4991 ;;
4992
4993 cygwin* | mingw* | cegcc*)
4994 # On Win9x/ME, this test blows up -- it succeeds, but takes
4995 # about 5 minutes as the teststring grows exponentially.
4996 # Worse, since 9x/ME are not pre-emptively multitasking,
4997 # you end up with a "frozen" computer, even though with patience
4998 # the test eventually succeeds (with a max line length of 256k).
4999 # Instead, let's just punt: use the minimum linelength reported by
5000 # all of the supported platforms: 8192 (on NT/2K/XP).
5001 lt_cv_sys_max_cmd_len=8192;
5002 ;;
5003
5004 mint*)
5005 # On MiNT this can take a long time and run out of memory.
5006 lt_cv_sys_max_cmd_len=8192;
5007 ;;
5008
5009 amigaos*)
5010 # On AmigaOS with pdksh, this test takes hours, literally.
5011 # So we just punt and use a minimum line length of 8192.
5012 lt_cv_sys_max_cmd_len=8192;
5013 ;;
5014
5015 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5016 # This has been around since 386BSD, at least. Likely further.
5017 if test -x /sbin/sysctl; then
5018 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5019 elif test -x /usr/sbin/sysctl; then
5020 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5021 else
5022 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5023 fi
5024 # And add a safety zone
5025 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5026 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5027 ;;
5028
5029 interix*)
5030 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5031 lt_cv_sys_max_cmd_len=196608
5032 ;;
5033
5034 osf*)
5035 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5036 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5037 # nice to cause kernel panics so lets avoid the loop below.
5038 # First set a reasonable default.
5039 lt_cv_sys_max_cmd_len=16384
5040 #
5041 if test -x /sbin/sysconfig; then
5042 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5043 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5044 esac
5045 fi
5046 ;;
5047 sco3.2v5*)
5048 lt_cv_sys_max_cmd_len=102400
5049 ;;
5050 sysv5* | sco5v6* | sysv4.2uw2*)
5051 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5052 if test -n "$kargmax"; then
5053 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5054 else
5055 lt_cv_sys_max_cmd_len=32768
5056 fi
5057 ;;
5058 *)
5059 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5060 if test -n "$lt_cv_sys_max_cmd_len"; then
5061 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5062 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5063 else
5064 # Make teststring a little bigger before we do anything with it.
5065 # a 1K string should be a reasonable start.
5066 for i in 1 2 3 4 5 6 7 8 ; do
5067 teststring=$teststring$teststring
5068 done
5069 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5070 # If test is not a shell built-in, we'll probably end up computing a
5071 # maximum length that is only half of the actual maximum length, but
5072 # we can't tell.
5073 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5074 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5075 test $i != 17 # 1/2 MB should be enough
5076 do
5077 i=`expr $i + 1`
5078 teststring=$teststring$teststring
5079 done
5080 # Only check the string length outside the loop.
5081 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5082 teststring=
5083 # Add a significant safety factor because C++ compilers can tack on
5084 # massive amounts of additional arguments before passing them to the
5085 # linker. It appears as though 1/2 is a usable value.
5086 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5087 fi
5088 ;;
5089 esac
5090
5091 fi
5092
5093 if test -n $lt_cv_sys_max_cmd_len ; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5095 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5096 else
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5098 $as_echo "none" >&6; }
5099 fi
5100 max_cmd_len=$lt_cv_sys_max_cmd_len
5101
5102
5103
5104
5105
5106
5107 : ${CP="cp -f"}
5108 : ${MV="mv -f"}
5109 : ${RM="rm -f"}
5110
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5112 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5113 # Try some XSI features
5114 xsi_shell=no
5115 ( _lt_dummy="a/b/c"
5116 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5117 = c,a/b,, \
5118 && eval 'test $(( 1 + 1 )) -eq 2 \
5119 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5120 && xsi_shell=yes
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5122 $as_echo "$xsi_shell" >&6; }
5123
5124
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5126 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5127 lt_shell_append=no
5128 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5129 >/dev/null 2>&1 \
5130 && lt_shell_append=yes
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5132 $as_echo "$lt_shell_append" >&6; }
5133
5134
5135 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5136 lt_unset=unset
5137 else
5138 lt_unset=false
5139 fi
5140
5141
5142
5143
5144
5145 # test EBCDIC or ASCII
5146 case `echo X|tr X '\101'` in
5147 A) # ASCII based system
5148 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5149 lt_SP2NL='tr \040 \012'
5150 lt_NL2SP='tr \015\012 \040\040'
5151 ;;
5152 *) # EBCDIC based system
5153 lt_SP2NL='tr \100 \n'
5154 lt_NL2SP='tr \r\n \100\100'
5155 ;;
5156 esac
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5167 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5168 if ${lt_cv_ld_reload_flag+:} false; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 lt_cv_ld_reload_flag='-r'
5172 fi
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5174 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5175 reload_flag=$lt_cv_ld_reload_flag
5176 case $reload_flag in
5177 "" | " "*) ;;
5178 *) reload_flag=" $reload_flag" ;;
5179 esac
5180 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5181 case $host_os in
5182 darwin*)
5183 if test "$GCC" = yes; then
5184 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5185 else
5186 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5187 fi
5188 ;;
5189 esac
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199 if test -n "$ac_tool_prefix"; then
5200 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5201 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if ${ac_cv_prog_OBJDUMP+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 if test -n "$OBJDUMP"; then
5208 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5220 fi
5221 done
5222 done
5223 IFS=$as_save_IFS
5224
5225 fi
5226 fi
5227 OBJDUMP=$ac_cv_prog_OBJDUMP
5228 if test -n "$OBJDUMP"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5230 $as_echo "$OBJDUMP" >&6; }
5231 else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234 fi
5235
5236
5237 fi
5238 if test -z "$ac_cv_prog_OBJDUMP"; then
5239 ac_ct_OBJDUMP=$OBJDUMP
5240 # Extract the first word of "objdump", so it can be a program name with args.
5241 set dummy objdump; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 if test -n "$ac_ct_OBJDUMP"; then
5248 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5249 else
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5252 do
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 break 2
5260 fi
5261 done
5262 done
5263 IFS=$as_save_IFS
5264
5265 fi
5266 fi
5267 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5268 if test -n "$ac_ct_OBJDUMP"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5270 $as_echo "$ac_ct_OBJDUMP" >&6; }
5271 else
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5274 fi
5275
5276 if test "x$ac_ct_OBJDUMP" = x; then
5277 OBJDUMP="false"
5278 else
5279 case $cross_compiling:$ac_tool_warned in
5280 yes:)
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5283 ac_tool_warned=yes ;;
5284 esac
5285 OBJDUMP=$ac_ct_OBJDUMP
5286 fi
5287 else
5288 OBJDUMP="$ac_cv_prog_OBJDUMP"
5289 fi
5290
5291 test -z "$OBJDUMP" && OBJDUMP=objdump
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5302 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5303 if ${lt_cv_deplibs_check_method+:} false; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 lt_cv_file_magic_cmd='$MAGIC_CMD'
5307 lt_cv_file_magic_test_file=
5308 lt_cv_deplibs_check_method='unknown'
5309 # Need to set the preceding variable on all platforms that support
5310 # interlibrary dependencies.
5311 # 'none' -- dependencies not supported.
5312 # `unknown' -- same as none, but documents that we really don't know.
5313 # 'pass_all' -- all dependencies passed with no checks.
5314 # 'test_compile' -- check by making test program.
5315 # 'file_magic [[regex]]' -- check by looking for files in library path
5316 # which responds to the $file_magic_cmd with a given extended regex.
5317 # If you have `file' or equivalent on your system and you're not sure
5318 # whether `pass_all' will *always* work, you probably want this one.
5319
5320 case $host_os in
5321 aix[4-9]*)
5322 lt_cv_deplibs_check_method=pass_all
5323 ;;
5324
5325 beos*)
5326 lt_cv_deplibs_check_method=pass_all
5327 ;;
5328
5329 bsdi[45]*)
5330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5331 lt_cv_file_magic_cmd='/usr/bin/file -L'
5332 lt_cv_file_magic_test_file=/shlib/libc.so
5333 ;;
5334
5335 cygwin*)
5336 # func_win32_libid is a shell function defined in ltmain.sh
5337 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5338 lt_cv_file_magic_cmd='func_win32_libid'
5339 ;;
5340
5341 mingw* | pw32*)
5342 # Base MSYS/MinGW do not provide the 'file' command needed by
5343 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5344 # unless we find 'file', for example because we are cross-compiling.
5345 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5346 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5347 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5348 lt_cv_file_magic_cmd='func_win32_libid'
5349 else
5350 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5351 lt_cv_file_magic_cmd='$OBJDUMP -f'
5352 fi
5353 ;;
5354
5355 cegcc*)
5356 # use the weaker test based on 'objdump'. See mingw*.
5357 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5358 lt_cv_file_magic_cmd='$OBJDUMP -f'
5359 ;;
5360
5361 darwin* | rhapsody*)
5362 lt_cv_deplibs_check_method=pass_all
5363 ;;
5364
5365 freebsd* | dragonfly*)
5366 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5367 case $host_cpu in
5368 i*86 )
5369 # Not sure whether the presence of OpenBSD here was a mistake.
5370 # Let's accept both of them until this is cleared up.
5371 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5372 lt_cv_file_magic_cmd=/usr/bin/file
5373 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5374 ;;
5375 esac
5376 else
5377 lt_cv_deplibs_check_method=pass_all
5378 fi
5379 ;;
5380
5381 gnu*)
5382 lt_cv_deplibs_check_method=pass_all
5383 ;;
5384
5385 haiku*)
5386 lt_cv_deplibs_check_method=pass_all
5387 ;;
5388
5389 hpux10.20* | hpux11*)
5390 lt_cv_file_magic_cmd=/usr/bin/file
5391 case $host_cpu in
5392 ia64*)
5393 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5394 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5395 ;;
5396 hppa*64*)
5397 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]'
5398 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5399 ;;
5400 *)
5401 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5402 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5403 ;;
5404 esac
5405 ;;
5406
5407 interix[3-9]*)
5408 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5409 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5410 ;;
5411
5412 irix5* | irix6* | nonstopux*)
5413 case $LD in
5414 *-32|*"-32 ") libmagic=32-bit;;
5415 *-n32|*"-n32 ") libmagic=N32;;
5416 *-64|*"-64 ") libmagic=64-bit;;
5417 *) libmagic=never-match;;
5418 esac
5419 lt_cv_deplibs_check_method=pass_all
5420 ;;
5421
5422 # This must be Linux ELF.
5423 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5424 lt_cv_deplibs_check_method=pass_all
5425 ;;
5426
5427 netbsd*)
5428 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5429 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5430 else
5431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5432 fi
5433 ;;
5434
5435 newos6*)
5436 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5437 lt_cv_file_magic_cmd=/usr/bin/file
5438 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5439 ;;
5440
5441 *nto* | *qnx*)
5442 lt_cv_deplibs_check_method=pass_all
5443 ;;
5444
5445 openbsd*)
5446 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5447 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5448 else
5449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5450 fi
5451 ;;
5452
5453 osf3* | osf4* | osf5*)
5454 lt_cv_deplibs_check_method=pass_all
5455 ;;
5456
5457 rdos*)
5458 lt_cv_deplibs_check_method=pass_all
5459 ;;
5460
5461 solaris*)
5462 lt_cv_deplibs_check_method=pass_all
5463 ;;
5464
5465 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5466 lt_cv_deplibs_check_method=pass_all
5467 ;;
5468
5469 sysv4 | sysv4.3*)
5470 case $host_vendor in
5471 motorola)
5472 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]'
5473 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5474 ;;
5475 ncr)
5476 lt_cv_deplibs_check_method=pass_all
5477 ;;
5478 sequent)
5479 lt_cv_file_magic_cmd='/bin/file'
5480 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5481 ;;
5482 sni)
5483 lt_cv_file_magic_cmd='/bin/file'
5484 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5485 lt_cv_file_magic_test_file=/lib/libc.so
5486 ;;
5487 siemens)
5488 lt_cv_deplibs_check_method=pass_all
5489 ;;
5490 pc)
5491 lt_cv_deplibs_check_method=pass_all
5492 ;;
5493 esac
5494 ;;
5495
5496 tpf*)
5497 lt_cv_deplibs_check_method=pass_all
5498 ;;
5499 vxworks*)
5500 # Assume VxWorks cross toolchains are built on Linux, possibly
5501 # as canadian for Windows hosts.
5502 lt_cv_deplibs_check_method=pass_all
5503 ;;
5504 esac
5505
5506 fi
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5508 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5509 file_magic_cmd=$lt_cv_file_magic_cmd
5510 deplibs_check_method=$lt_cv_deplibs_check_method
5511 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524 ac_ext=c
5525 ac_cpp='$CPP $CPPFLAGS'
5526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5530 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5531 # On Suns, sometimes $CPP names a directory.
5532 if test -n "$CPP" && test -d "$CPP"; then
5533 CPP=
5534 fi
5535 if test -z "$CPP"; then
5536 if ${ac_cv_prog_CPP+:} false; then :
5537 $as_echo_n "(cached) " >&6
5538 else
5539 # Double quotes because CPP needs to be expanded
5540 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5541 do
5542 ac_preproc_ok=false
5543 for ac_c_preproc_warn_flag in '' yes
5544 do
5545 # Use a header file that comes with gcc, so configuring glibc
5546 # with a fresh cross-compiler works.
5547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5548 # <limits.h> exists even on freestanding compilers.
5549 # On the NeXT, cc -E runs the code through the compiler's parser,
5550 # not just through cpp. "Syntax error" is here to catch this case.
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 #ifdef __STDC__
5554 # include <limits.h>
5555 #else
5556 # include <assert.h>
5557 #endif
5558 Syntax error
5559 _ACEOF
5560 if ac_fn_c_try_cpp "$LINENO"; then :
5561
5562 else
5563 # Broken: fails on valid input.
5564 continue
5565 fi
5566 rm -f conftest.err conftest.i conftest.$ac_ext
5567
5568 # OK, works on sane cases. Now check whether nonexistent headers
5569 # can be detected and how.
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572 #include <ac_nonexistent.h>
5573 _ACEOF
5574 if ac_fn_c_try_cpp "$LINENO"; then :
5575 # Broken: success on invalid input.
5576 continue
5577 else
5578 # Passes both tests.
5579 ac_preproc_ok=:
5580 break
5581 fi
5582 rm -f conftest.err conftest.i conftest.$ac_ext
5583
5584 done
5585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5586 rm -f conftest.i conftest.err conftest.$ac_ext
5587 if $ac_preproc_ok; then :
5588 break
5589 fi
5590
5591 done
5592 ac_cv_prog_CPP=$CPP
5593
5594 fi
5595 CPP=$ac_cv_prog_CPP
5596 else
5597 ac_cv_prog_CPP=$CPP
5598 fi
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5600 $as_echo "$CPP" >&6; }
5601 ac_preproc_ok=false
5602 for ac_c_preproc_warn_flag in '' yes
5603 do
5604 # Use a header file that comes with gcc, so configuring glibc
5605 # with a fresh cross-compiler works.
5606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5607 # <limits.h> exists even on freestanding compilers.
5608 # On the NeXT, cc -E runs the code through the compiler's parser,
5609 # not just through cpp. "Syntax error" is here to catch this case.
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 #ifdef __STDC__
5613 # include <limits.h>
5614 #else
5615 # include <assert.h>
5616 #endif
5617 Syntax error
5618 _ACEOF
5619 if ac_fn_c_try_cpp "$LINENO"; then :
5620
5621 else
5622 # Broken: fails on valid input.
5623 continue
5624 fi
5625 rm -f conftest.err conftest.i conftest.$ac_ext
5626
5627 # OK, works on sane cases. Now check whether nonexistent headers
5628 # can be detected and how.
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5631 #include <ac_nonexistent.h>
5632 _ACEOF
5633 if ac_fn_c_try_cpp "$LINENO"; then :
5634 # Broken: success on invalid input.
5635 continue
5636 else
5637 # Passes both tests.
5638 ac_preproc_ok=:
5639 break
5640 fi
5641 rm -f conftest.err conftest.i conftest.$ac_ext
5642
5643 done
5644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5645 rm -f conftest.i conftest.err conftest.$ac_ext
5646 if $ac_preproc_ok; then :
5647
5648 else
5649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5651 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5652 See \`config.log' for more details" "$LINENO" 5; }
5653 fi
5654
5655 ac_ext=c
5656 ac_cpp='$CPP $CPPFLAGS'
5657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5660
5661
5662
5663 # Try CLANG_PLUGIN_FILE first since GCC_PLUGIN_OPTION may return the
5664 # wrong plugin_option with clang.
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
5666 $as_echo_n "checking for clang... " >&6; }
5667 if ${clang_cv_is_clang+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673
5674 #ifdef __clang__
5675 yes
5676 #endif
5677
5678 _ACEOF
5679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5680 $EGREP "yes" >/dev/null 2>&1; then :
5681 clang_cv_is_clang=yes
5682 else
5683 clang_cv_is_clang=no
5684 fi
5685 rm -f conftest*
5686
5687 fi
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
5689 $as_echo "$clang_cv_is_clang" >&6; }
5690 if test -n "$ac_tool_prefix"; then
5691 # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
5692 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if ${ac_cv_prog_LLVM_CONFIG+:} false; then :
5696 $as_echo_n "(cached) " >&6
5697 else
5698 if test -n "$LLVM_CONFIG"; then
5699 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test.
5700 else
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5708 ac_cv_prog_LLVM_CONFIG="${ac_tool_prefix}llvm-config"
5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710 break 2
5711 fi
5712 done
5713 done
5714 IFS=$as_save_IFS
5715
5716 fi
5717 fi
5718 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG
5719 if test -n "$LLVM_CONFIG"; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5721 $as_echo "$LLVM_CONFIG" >&6; }
5722 else
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5725 fi
5726
5727
5728 fi
5729 if test -z "$ac_cv_prog_LLVM_CONFIG"; then
5730 ac_ct_LLVM_CONFIG=$LLVM_CONFIG
5731 # Extract the first word of "llvm-config", so it can be a program name with args.
5732 set dummy llvm-config; ac_word=$2
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734 $as_echo_n "checking for $ac_word... " >&6; }
5735 if ${ac_cv_prog_ac_ct_LLVM_CONFIG+:} false; then :
5736 $as_echo_n "(cached) " >&6
5737 else
5738 if test -n "$ac_ct_LLVM_CONFIG"; then
5739 ac_cv_prog_ac_ct_LLVM_CONFIG="$ac_ct_LLVM_CONFIG" # Let the user override the test.
5740 else
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5743 do
5744 IFS=$as_save_IFS
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748 ac_cv_prog_ac_ct_LLVM_CONFIG="llvm-config"
5749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 break 2
5751 fi
5752 done
5753 done
5754 IFS=$as_save_IFS
5755
5756 fi
5757 fi
5758 ac_ct_LLVM_CONFIG=$ac_cv_prog_ac_ct_LLVM_CONFIG
5759 if test -n "$ac_ct_LLVM_CONFIG"; then
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LLVM_CONFIG" >&5
5761 $as_echo "$ac_ct_LLVM_CONFIG" >&6; }
5762 else
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764 $as_echo "no" >&6; }
5765 fi
5766
5767 if test "x$ac_ct_LLVM_CONFIG" = x; then
5768 LLVM_CONFIG=""
5769 else
5770 case $cross_compiling:$ac_tool_warned in
5771 yes:)
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5774 ac_tool_warned=yes ;;
5775 esac
5776 LLVM_CONFIG=$ac_ct_LLVM_CONFIG
5777 fi
5778 else
5779 LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
5780 fi
5781
5782 plugin_file=
5783 if test $clang_cv_is_clang = yes; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
5785 $as_echo_n "checking for clang plugin file... " >&6; }
5786 plugin_names="LLVMgold.so"
5787 for plugin in $plugin_names; do
5788 plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
5789 if test "$plugin_file" != "$plugin"; then
5790 break;
5791 fi
5792 if test -n "${LLVM_CONFIG}"; then
5793 plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
5794 if test -f "$plugin_file"; then
5795 break;
5796 fi
5797 fi
5798 plugin_file=
5799 done
5800 if test -z "$plugin_file"; then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802 $as_echo "no" >&6; }
5803 else
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
5805 $as_echo "$plugin_file" >&6; }
5806 if test -n "$ac_tool_prefix"; then
5807 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5808 set dummy ${ac_tool_prefix}ar; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if ${ac_cv_prog_AR+:} false; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 if test -n "$AR"; then
5815 ac_cv_prog_AR="$AR" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824 ac_cv_prog_AR="${ac_tool_prefix}ar"
5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5827 fi
5828 done
5829 done
5830 IFS=$as_save_IFS
5831
5832 fi
5833 fi
5834 AR=$ac_cv_prog_AR
5835 if test -n "$AR"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5837 $as_echo "$AR" >&6; }
5838 else
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5841 fi
5842
5843
5844 fi
5845 if test -z "$ac_cv_prog_AR"; then
5846 ac_ct_AR=$AR
5847 # Extract the first word of "ar", so it can be a program name with args.
5848 set dummy ar; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 if test -n "$ac_ct_AR"; then
5855 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864 ac_cv_prog_ac_ct_AR="ar"
5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5867 fi
5868 done
5869 done
5870 IFS=$as_save_IFS
5871
5872 fi
5873 fi
5874 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5875 if test -n "$ac_ct_AR"; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5877 $as_echo "$ac_ct_AR" >&6; }
5878 else
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5881 fi
5882
5883 if test "x$ac_ct_AR" = x; then
5884 AR=""
5885 else
5886 case $cross_compiling:$ac_tool_warned in
5887 yes:)
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5890 ac_tool_warned=yes ;;
5891 esac
5892 AR=$ac_ct_AR
5893 fi
5894 else
5895 AR="$ac_cv_prog_AR"
5896 fi
5897
5898 if test -z "${AR}"; then
5899 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
5900 fi
5901 plugin_option="--plugin $plugin_file"
5902 touch conftest.c
5903 ${AR} $plugin_option rc conftest.a conftest.c
5904 if test "$?" != 0; then
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5906 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5907 plugin_file=
5908 fi
5909 rm -f conftest.*
5910 fi
5911 fi
5912 plugin_file="$plugin_file"
5913
5914 if test -n "$plugin_file"; then
5915 plugin_option="--plugin $plugin_file"
5916 else
5917 if test -n "$ac_tool_prefix"; then
5918 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5919 set dummy ${ac_tool_prefix}ar; ac_word=$2
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921 $as_echo_n "checking for $ac_word... " >&6; }
5922 if ${ac_cv_prog_AR+:} false; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 if test -n "$AR"; then
5926 ac_cv_prog_AR="$AR" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5935 ac_cv_prog_AR="${ac_tool_prefix}ar"
5936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 break 2
5938 fi
5939 done
5940 done
5941 IFS=$as_save_IFS
5942
5943 fi
5944 fi
5945 AR=$ac_cv_prog_AR
5946 if test -n "$AR"; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5948 $as_echo "$AR" >&6; }
5949 else
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5952 fi
5953
5954
5955 fi
5956 if test -z "$ac_cv_prog_AR"; then
5957 ac_ct_AR=$AR
5958 # Extract the first word of "ar", so it can be a program name with args.
5959 set dummy ar; ac_word=$2
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5961 $as_echo_n "checking for $ac_word... " >&6; }
5962 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 if test -n "$ac_ct_AR"; then
5966 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5967 else
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5975 ac_cv_prog_ac_ct_AR="ar"
5976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 break 2
5978 fi
5979 done
5980 done
5981 IFS=$as_save_IFS
5982
5983 fi
5984 fi
5985 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5986 if test -n "$ac_ct_AR"; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5988 $as_echo "$ac_ct_AR" >&6; }
5989 else
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991 $as_echo "no" >&6; }
5992 fi
5993
5994 if test "x$ac_ct_AR" = x; then
5995 AR=""
5996 else
5997 case $cross_compiling:$ac_tool_warned in
5998 yes:)
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6001 ac_tool_warned=yes ;;
6002 esac
6003 AR=$ac_ct_AR
6004 fi
6005 else
6006 AR="$ac_cv_prog_AR"
6007 fi
6008
6009 if test -z "${AR}"; then
6010 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
6011 fi
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
6013 $as_echo_n "checking for -plugin option... " >&6; }
6014 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6015 plugin_option=
6016 for plugin in $plugin_names; do
6017 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6018 if test x$plugin_so = x$plugin; then
6019 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6020 fi
6021 if test x$plugin_so != x$plugin; then
6022 plugin_option="--plugin $plugin_so"
6023 break
6024 fi
6025 done
6026 if test -z "$plugin_option"; then
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 $as_echo "no" >&6; }
6029 else
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
6031 $as_echo "$plugin_option" >&6; }
6032 touch conftest.c
6033 ${AR} $plugin_option rc conftest.a conftest.c
6034 if test "$?" != 0; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6036 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6037 plugin_option=
6038 fi
6039 rm -f conftest.*
6040 fi
6041 plugin_option="$plugin_option"
6042
6043 fi
6044 if test -n "$ac_tool_prefix"; then
6045 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6046 set dummy ${ac_tool_prefix}ar; ac_word=$2
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6048 $as_echo_n "checking for $ac_word... " >&6; }
6049 if ${ac_cv_prog_AR+:} false; then :
6050 $as_echo_n "(cached) " >&6
6051 else
6052 if test -n "$AR"; then
6053 ac_cv_prog_AR="$AR" # Let the user override the test.
6054 else
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058 IFS=$as_save_IFS
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6062 ac_cv_prog_AR="${ac_tool_prefix}ar"
6063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 break 2
6065 fi
6066 done
6067 done
6068 IFS=$as_save_IFS
6069
6070 fi
6071 fi
6072 AR=$ac_cv_prog_AR
6073 if test -n "$AR"; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6075 $as_echo "$AR" >&6; }
6076 else
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078 $as_echo "no" >&6; }
6079 fi
6080
6081
6082 fi
6083 if test -z "$ac_cv_prog_AR"; then
6084 ac_ct_AR=$AR
6085 # Extract the first word of "ar", so it can be a program name with args.
6086 set dummy ar; ac_word=$2
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 $as_echo_n "checking for $ac_word... " >&6; }
6089 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6090 $as_echo_n "(cached) " >&6
6091 else
6092 if test -n "$ac_ct_AR"; then
6093 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6094 else
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6097 do
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102 ac_cv_prog_ac_ct_AR="ar"
6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 break 2
6105 fi
6106 done
6107 done
6108 IFS=$as_save_IFS
6109
6110 fi
6111 fi
6112 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6113 if test -n "$ac_ct_AR"; then
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6115 $as_echo "$ac_ct_AR" >&6; }
6116 else
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 $as_echo "no" >&6; }
6119 fi
6120
6121 if test "x$ac_ct_AR" = x; then
6122 AR="false"
6123 else
6124 case $cross_compiling:$ac_tool_warned in
6125 yes:)
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6128 ac_tool_warned=yes ;;
6129 esac
6130 AR=$ac_ct_AR
6131 fi
6132 else
6133 AR="$ac_cv_prog_AR"
6134 fi
6135
6136 test -z "$AR" && AR=ar
6137 if test -n "$plugin_option"; then
6138 case "$AR" in
6139 *"$plugin_option"*)
6140 ;;
6141 *)
6142 if $AR --help 2>&1 | grep -q "\--plugin"; then
6143 AR="$AR $plugin_option"
6144 fi
6145 ;;
6146 esac
6147 fi
6148 test -z "$AR_FLAGS" && AR_FLAGS=cru
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160 if test -n "$ac_tool_prefix"; then
6161 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6162 set dummy ${ac_tool_prefix}strip; ac_word=$2
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164 $as_echo_n "checking for $ac_word... " >&6; }
6165 if ${ac_cv_prog_STRIP+:} false; then :
6166 $as_echo_n "(cached) " >&6
6167 else
6168 if test -n "$STRIP"; then
6169 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6170 else
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 for as_dir in $PATH
6173 do
6174 IFS=$as_save_IFS
6175 test -z "$as_dir" && as_dir=.
6176 for ac_exec_ext in '' $ac_executable_extensions; do
6177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6178 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 break 2
6181 fi
6182 done
6183 done
6184 IFS=$as_save_IFS
6185
6186 fi
6187 fi
6188 STRIP=$ac_cv_prog_STRIP
6189 if test -n "$STRIP"; then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6191 $as_echo "$STRIP" >&6; }
6192 else
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6195 fi
6196
6197
6198 fi
6199 if test -z "$ac_cv_prog_STRIP"; then
6200 ac_ct_STRIP=$STRIP
6201 # Extract the first word of "strip", so it can be a program name with args.
6202 set dummy strip; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6206 $as_echo_n "(cached) " >&6
6207 else
6208 if test -n "$ac_ct_STRIP"; then
6209 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6210 else
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH
6213 do
6214 IFS=$as_save_IFS
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6218 ac_cv_prog_ac_ct_STRIP="strip"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 break 2
6221 fi
6222 done
6223 done
6224 IFS=$as_save_IFS
6225
6226 fi
6227 fi
6228 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6229 if test -n "$ac_ct_STRIP"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6231 $as_echo "$ac_ct_STRIP" >&6; }
6232 else
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234 $as_echo "no" >&6; }
6235 fi
6236
6237 if test "x$ac_ct_STRIP" = x; then
6238 STRIP=":"
6239 else
6240 case $cross_compiling:$ac_tool_warned in
6241 yes:)
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6244 ac_tool_warned=yes ;;
6245 esac
6246 STRIP=$ac_ct_STRIP
6247 fi
6248 else
6249 STRIP="$ac_cv_prog_STRIP"
6250 fi
6251
6252 test -z "$STRIP" && STRIP=:
6253
6254
6255
6256
6257
6258
6259 if test -n "$ac_tool_prefix"; then
6260 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6261 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263 $as_echo_n "checking for $ac_word... " >&6; }
6264 if ${ac_cv_prog_RANLIB+:} false; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 if test -n "$RANLIB"; then
6268 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6269 else
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH
6272 do
6273 IFS=$as_save_IFS
6274 test -z "$as_dir" && as_dir=.
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6277 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 break 2
6280 fi
6281 done
6282 done
6283 IFS=$as_save_IFS
6284
6285 fi
6286 fi
6287 RANLIB=$ac_cv_prog_RANLIB
6288 if test -n "$RANLIB"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6290 $as_echo "$RANLIB" >&6; }
6291 else
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6294 fi
6295
6296
6297 fi
6298 if test -z "$ac_cv_prog_RANLIB"; then
6299 ac_ct_RANLIB=$RANLIB
6300 # Extract the first word of "ranlib", so it can be a program name with args.
6301 set dummy ranlib; ac_word=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 if test -n "$ac_ct_RANLIB"; then
6308 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6309 else
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6312 do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6317 ac_cv_prog_ac_ct_RANLIB="ranlib"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6320 fi
6321 done
6322 done
6323 IFS=$as_save_IFS
6324
6325 fi
6326 fi
6327 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6328 if test -n "$ac_ct_RANLIB"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6330 $as_echo "$ac_ct_RANLIB" >&6; }
6331 else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6334 fi
6335
6336 if test "x$ac_ct_RANLIB" = x; then
6337 RANLIB=":"
6338 else
6339 case $cross_compiling:$ac_tool_warned in
6340 yes:)
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6343 ac_tool_warned=yes ;;
6344 esac
6345 RANLIB=$ac_ct_RANLIB
6346 fi
6347 else
6348 RANLIB="$ac_cv_prog_RANLIB"
6349 fi
6350
6351 test -z "$RANLIB" && RANLIB=:
6352 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6353 case "$RANLIB" in
6354 *"$plugin_option"*)
6355 ;;
6356 *)
6357 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6358 RANLIB="$RANLIB $plugin_option"
6359 fi
6360 ;;
6361 esac
6362 fi
6363
6364
6365
6366
6367
6368
6369 # Determine commands to create old-style static archives.
6370 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6371 old_postinstall_cmds='chmod 644 $oldlib'
6372 old_postuninstall_cmds=
6373
6374 if test -n "$RANLIB"; then
6375 case $host_os in
6376 openbsd*)
6377 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6378 ;;
6379 *)
6380 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6381 ;;
6382 esac
6383 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6384 fi
6385
6386 case $host_os in
6387 darwin*)
6388 lock_old_archive_extraction=yes ;;
6389 *)
6390 lock_old_archive_extraction=no ;;
6391 esac
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431 # If no C compiler was specified, use CC.
6432 LTCC=${LTCC-"$CC"}
6433
6434 # If no C compiler flags were specified, use CFLAGS.
6435 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6436
6437 # Allow CC to be a program name with arguments.
6438 compiler=$CC
6439
6440
6441 # Check for command to grab the raw symbol name followed by C symbol from nm.
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6443 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6444 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6445 $as_echo_n "(cached) " >&6
6446 else
6447
6448 # These are sane defaults that work on at least a few old systems.
6449 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6450
6451 # Character class describing NM global symbol codes.
6452 symcode='[BCDEGRST]'
6453
6454 # Regexp to match symbols that can be accessed directly from C.
6455 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6456
6457 # Define system-specific variables.
6458 case $host_os in
6459 aix*)
6460 symcode='[BCDT]'
6461 ;;
6462 cygwin* | mingw* | pw32* | cegcc*)
6463 symcode='[ABCDGISTW]'
6464 ;;
6465 hpux*)
6466 if test "$host_cpu" = ia64; then
6467 symcode='[ABCDEGRST]'
6468 fi
6469 ;;
6470 irix* | nonstopux*)
6471 symcode='[BCDEGRST]'
6472 ;;
6473 osf*)
6474 symcode='[BCDEGQRST]'
6475 ;;
6476 solaris*)
6477 symcode='[BCDRT]'
6478 ;;
6479 sco3.2v5*)
6480 symcode='[DT]'
6481 ;;
6482 sysv4.2uw2*)
6483 symcode='[DT]'
6484 ;;
6485 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6486 symcode='[ABDT]'
6487 ;;
6488 sysv4)
6489 symcode='[DFNSTU]'
6490 ;;
6491 esac
6492
6493 # If we're using GNU nm, then use its standard symbol codes.
6494 case `$NM -V 2>&1` in
6495 *GNU* | *'with BFD'*)
6496 symcode='[ABCDGIRSTW]' ;;
6497 esac
6498
6499 # Transform an extracted symbol line into a proper C declaration.
6500 # Some systems (esp. on ia64) link data and code symbols differently,
6501 # so use this general approach.
6502 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6503
6504 # Transform an extracted symbol line into symbol name and symbol address
6505 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6506 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'"
6507
6508 # Handle CRLF in mingw tool chain
6509 opt_cr=
6510 case $build_os in
6511 mingw*)
6512 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6513 ;;
6514 esac
6515
6516 # Try without a prefix underscore, then with it.
6517 for ac_symprfx in "" "_"; do
6518
6519 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6520 symxfrm="\\1 $ac_symprfx\\2 \\2"
6521
6522 # Write the raw and C identifiers.
6523 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6524 # Fake it for dumpbin and say T for any non-static function
6525 # and D for any global variable.
6526 # Also find C++ and __fastcall symbols from MSVC++,
6527 # which start with @ or ?.
6528 lt_cv_sys_global_symbol_pipe="$AWK '"\
6529 " {last_section=section; section=\$ 3};"\
6530 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6531 " \$ 0!~/External *\|/{next};"\
6532 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6533 " {if(hide[section]) next};"\
6534 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6535 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6536 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6537 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6538 " ' prfx=^$ac_symprfx"
6539 else
6540 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6541 fi
6542
6543 # Check to see that the pipe works correctly.
6544 pipe_works=no
6545
6546 rm -f conftest*
6547 cat > conftest.$ac_ext <<_LT_EOF
6548 #ifdef __cplusplus
6549 extern "C" {
6550 #endif
6551 char nm_test_var;
6552 void nm_test_func(void);
6553 void nm_test_func(void){}
6554 #ifdef __cplusplus
6555 }
6556 #endif
6557 int main(){nm_test_var='a';nm_test_func();return(0);}
6558 _LT_EOF
6559
6560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6561 (eval $ac_compile) 2>&5
6562 ac_status=$?
6563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6564 test $ac_status = 0; }; then
6565 # Now try to grab the symbols.
6566 nlist=conftest.nm
6567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6568 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6569 ac_status=$?
6570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6571 test $ac_status = 0; } && test -s "$nlist"; then
6572 # Try sorting and uniquifying the output.
6573 if sort "$nlist" | uniq > "$nlist"T; then
6574 mv -f "$nlist"T "$nlist"
6575 else
6576 rm -f "$nlist"T
6577 fi
6578
6579 # Make sure that we snagged all the symbols we need.
6580 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6581 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6582 cat <<_LT_EOF > conftest.$ac_ext
6583 #ifdef __cplusplus
6584 extern "C" {
6585 #endif
6586
6587 _LT_EOF
6588 # Now generate the symbol file.
6589 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6590
6591 cat <<_LT_EOF >> conftest.$ac_ext
6592
6593 /* The mapping between symbol names and symbols. */
6594 const struct {
6595 const char *name;
6596 void *address;
6597 }
6598 lt__PROGRAM__LTX_preloaded_symbols[] =
6599 {
6600 { "@PROGRAM@", (void *) 0 },
6601 _LT_EOF
6602 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6603 cat <<\_LT_EOF >> conftest.$ac_ext
6604 {0, (void *) 0}
6605 };
6606
6607 /* This works around a problem in FreeBSD linker */
6608 #ifdef FREEBSD_WORKAROUND
6609 static const void *lt_preloaded_setup() {
6610 return lt__PROGRAM__LTX_preloaded_symbols;
6611 }
6612 #endif
6613
6614 #ifdef __cplusplus
6615 }
6616 #endif
6617 _LT_EOF
6618 # Now try linking the two files.
6619 mv conftest.$ac_objext conftstm.$ac_objext
6620 lt_save_LIBS="$LIBS"
6621 lt_save_CFLAGS="$CFLAGS"
6622 LIBS="conftstm.$ac_objext"
6623 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6625 (eval $ac_link) 2>&5
6626 ac_status=$?
6627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6628 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6629 pipe_works=yes
6630 fi
6631 LIBS="$lt_save_LIBS"
6632 CFLAGS="$lt_save_CFLAGS"
6633 else
6634 echo "cannot find nm_test_func in $nlist" >&5
6635 fi
6636 else
6637 echo "cannot find nm_test_var in $nlist" >&5
6638 fi
6639 else
6640 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6641 fi
6642 else
6643 echo "$progname: failed program was:" >&5
6644 cat conftest.$ac_ext >&5
6645 fi
6646 rm -rf conftest* conftst*
6647
6648 # Do not use the global_symbol_pipe unless it works.
6649 if test "$pipe_works" = yes; then
6650 break
6651 else
6652 lt_cv_sys_global_symbol_pipe=
6653 fi
6654 done
6655
6656 fi
6657
6658 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6659 lt_cv_sys_global_symbol_to_cdecl=
6660 fi
6661 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6663 $as_echo "failed" >&6; }
6664 else
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6666 $as_echo "ok" >&6; }
6667 fi
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690 # Check whether --enable-libtool-lock was given.
6691 if test "${enable_libtool_lock+set}" = set; then :
6692 enableval=$enable_libtool_lock;
6693 fi
6694
6695 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6696
6697 # Some flags need to be propagated to the compiler or linker for good
6698 # libtool support.
6699 case $host in
6700 ia64-*-hpux*)
6701 # Find out which ABI we are using.
6702 echo 'int i;' > conftest.$ac_ext
6703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6704 (eval $ac_compile) 2>&5
6705 ac_status=$?
6706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6707 test $ac_status = 0; }; then
6708 case `/usr/bin/file conftest.$ac_objext` in
6709 *ELF-32*)
6710 HPUX_IA64_MODE="32"
6711 ;;
6712 *ELF-64*)
6713 HPUX_IA64_MODE="64"
6714 ;;
6715 esac
6716 fi
6717 rm -rf conftest*
6718 ;;
6719 *-*-irix6*)
6720 # Find out which ABI we are using.
6721 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6723 (eval $ac_compile) 2>&5
6724 ac_status=$?
6725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6726 test $ac_status = 0; }; then
6727 if test "$lt_cv_prog_gnu_ld" = yes; then
6728 case `/usr/bin/file conftest.$ac_objext` in
6729 *32-bit*)
6730 LD="${LD-ld} -melf32bsmip"
6731 ;;
6732 *N32*)
6733 LD="${LD-ld} -melf32bmipn32"
6734 ;;
6735 *64-bit*)
6736 LD="${LD-ld} -melf64bmip"
6737 ;;
6738 esac
6739 else
6740 case `/usr/bin/file conftest.$ac_objext` in
6741 *32-bit*)
6742 LD="${LD-ld} -32"
6743 ;;
6744 *N32*)
6745 LD="${LD-ld} -n32"
6746 ;;
6747 *64-bit*)
6748 LD="${LD-ld} -64"
6749 ;;
6750 esac
6751 fi
6752 fi
6753 rm -rf conftest*
6754 ;;
6755
6756 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6757 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6758 # Find out which ABI we are using.
6759 echo 'int i;' > conftest.$ac_ext
6760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6761 (eval $ac_compile) 2>&5
6762 ac_status=$?
6763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6764 test $ac_status = 0; }; then
6765 case `/usr/bin/file conftest.o` in
6766 *32-bit*)
6767 case $host in
6768 x86_64-*kfreebsd*-gnu)
6769 LD="${LD-ld} -m elf_i386_fbsd"
6770 ;;
6771 x86_64-*linux*)
6772 case `/usr/bin/file conftest.o` in
6773 *x86-64*)
6774 LD="${LD-ld} -m elf32_x86_64"
6775 ;;
6776 *)
6777 LD="${LD-ld} -m elf_i386"
6778 ;;
6779 esac
6780 ;;
6781 powerpc64le-*linux*)
6782 LD="${LD-ld} -m elf32lppclinux"
6783 ;;
6784 powerpc64-*linux*)
6785 LD="${LD-ld} -m elf32ppclinux"
6786 ;;
6787 s390x-*linux*)
6788 LD="${LD-ld} -m elf_s390"
6789 ;;
6790 sparc64-*linux*)
6791 LD="${LD-ld} -m elf32_sparc"
6792 ;;
6793 esac
6794 ;;
6795 *64-bit*)
6796 case $host in
6797 x86_64-*kfreebsd*-gnu)
6798 LD="${LD-ld} -m elf_x86_64_fbsd"
6799 ;;
6800 x86_64-*linux*)
6801 LD="${LD-ld} -m elf_x86_64"
6802 ;;
6803 powerpcle-*linux*)
6804 LD="${LD-ld} -m elf64lppc"
6805 ;;
6806 powerpc-*linux*)
6807 LD="${LD-ld} -m elf64ppc"
6808 ;;
6809 s390*-*linux*|s390*-*tpf*)
6810 LD="${LD-ld} -m elf64_s390"
6811 ;;
6812 sparc*-*linux*)
6813 LD="${LD-ld} -m elf64_sparc"
6814 ;;
6815 esac
6816 ;;
6817 esac
6818 fi
6819 rm -rf conftest*
6820 ;;
6821
6822 *-*-sco3.2v5*)
6823 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6824 SAVE_CFLAGS="$CFLAGS"
6825 CFLAGS="$CFLAGS -belf"
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6827 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6828 if ${lt_cv_cc_needs_belf+:} false; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 ac_ext=c
6832 ac_cpp='$CPP $CPPFLAGS'
6833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6836
6837 if test x$gcc_no_link = xyes; then
6838 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6839 fi
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6842
6843 int
6844 main ()
6845 {
6846
6847 ;
6848 return 0;
6849 }
6850 _ACEOF
6851 if ac_fn_c_try_link "$LINENO"; then :
6852 lt_cv_cc_needs_belf=yes
6853 else
6854 lt_cv_cc_needs_belf=no
6855 fi
6856 rm -f core conftest.err conftest.$ac_objext \
6857 conftest$ac_exeext conftest.$ac_ext
6858 ac_ext=c
6859 ac_cpp='$CPP $CPPFLAGS'
6860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6863
6864 fi
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6866 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6867 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6868 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6869 CFLAGS="$SAVE_CFLAGS"
6870 fi
6871 ;;
6872 sparc*-*solaris*)
6873 # Find out which ABI we are using.
6874 echo 'int i;' > conftest.$ac_ext
6875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6876 (eval $ac_compile) 2>&5
6877 ac_status=$?
6878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6879 test $ac_status = 0; }; then
6880 case `/usr/bin/file conftest.o` in
6881 *64-bit*)
6882 case $lt_cv_prog_gnu_ld in
6883 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6884 *)
6885 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6886 LD="${LD-ld} -64"
6887 fi
6888 ;;
6889 esac
6890 ;;
6891 esac
6892 fi
6893 rm -rf conftest*
6894 ;;
6895 esac
6896
6897 need_locks="$enable_libtool_lock"
6898
6899
6900 case $host_os in
6901 rhapsody* | darwin*)
6902 if test -n "$ac_tool_prefix"; then
6903 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6904 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6906 $as_echo_n "checking for $ac_word... " >&6; }
6907 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6908 $as_echo_n "(cached) " >&6
6909 else
6910 if test -n "$DSYMUTIL"; then
6911 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6912 else
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 for as_dir in $PATH
6915 do
6916 IFS=$as_save_IFS
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6920 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 break 2
6923 fi
6924 done
6925 done
6926 IFS=$as_save_IFS
6927
6928 fi
6929 fi
6930 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6931 if test -n "$DSYMUTIL"; then
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6933 $as_echo "$DSYMUTIL" >&6; }
6934 else
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936 $as_echo "no" >&6; }
6937 fi
6938
6939
6940 fi
6941 if test -z "$ac_cv_prog_DSYMUTIL"; then
6942 ac_ct_DSYMUTIL=$DSYMUTIL
6943 # Extract the first word of "dsymutil", so it can be a program name with args.
6944 set dummy dsymutil; ac_word=$2
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6946 $as_echo_n "checking for $ac_word... " >&6; }
6947 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6948 $as_echo_n "(cached) " >&6
6949 else
6950 if test -n "$ac_ct_DSYMUTIL"; then
6951 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6952 else
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6955 do
6956 IFS=$as_save_IFS
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6960 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 break 2
6963 fi
6964 done
6965 done
6966 IFS=$as_save_IFS
6967
6968 fi
6969 fi
6970 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6971 if test -n "$ac_ct_DSYMUTIL"; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6973 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6974 else
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6976 $as_echo "no" >&6; }
6977 fi
6978
6979 if test "x$ac_ct_DSYMUTIL" = x; then
6980 DSYMUTIL=":"
6981 else
6982 case $cross_compiling:$ac_tool_warned in
6983 yes:)
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6986 ac_tool_warned=yes ;;
6987 esac
6988 DSYMUTIL=$ac_ct_DSYMUTIL
6989 fi
6990 else
6991 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6992 fi
6993
6994 if test -n "$ac_tool_prefix"; then
6995 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6996 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6998 $as_echo_n "checking for $ac_word... " >&6; }
6999 if ${ac_cv_prog_NMEDIT+:} false; then :
7000 $as_echo_n "(cached) " >&6
7001 else
7002 if test -n "$NMEDIT"; then
7003 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7004 else
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7007 do
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7012 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 break 2
7015 fi
7016 done
7017 done
7018 IFS=$as_save_IFS
7019
7020 fi
7021 fi
7022 NMEDIT=$ac_cv_prog_NMEDIT
7023 if test -n "$NMEDIT"; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7025 $as_echo "$NMEDIT" >&6; }
7026 else
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7028 $as_echo "no" >&6; }
7029 fi
7030
7031
7032 fi
7033 if test -z "$ac_cv_prog_NMEDIT"; then
7034 ac_ct_NMEDIT=$NMEDIT
7035 # Extract the first word of "nmedit", so it can be a program name with args.
7036 set dummy nmedit; ac_word=$2
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038 $as_echo_n "checking for $ac_word... " >&6; }
7039 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7040 $as_echo_n "(cached) " >&6
7041 else
7042 if test -n "$ac_ct_NMEDIT"; then
7043 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7044 else
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 for as_dir in $PATH
7047 do
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7052 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 break 2
7055 fi
7056 done
7057 done
7058 IFS=$as_save_IFS
7059
7060 fi
7061 fi
7062 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7063 if test -n "$ac_ct_NMEDIT"; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7065 $as_echo "$ac_ct_NMEDIT" >&6; }
7066 else
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 $as_echo "no" >&6; }
7069 fi
7070
7071 if test "x$ac_ct_NMEDIT" = x; then
7072 NMEDIT=":"
7073 else
7074 case $cross_compiling:$ac_tool_warned in
7075 yes:)
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7078 ac_tool_warned=yes ;;
7079 esac
7080 NMEDIT=$ac_ct_NMEDIT
7081 fi
7082 else
7083 NMEDIT="$ac_cv_prog_NMEDIT"
7084 fi
7085
7086 if test -n "$ac_tool_prefix"; then
7087 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7088 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 $as_echo_n "checking for $ac_word... " >&6; }
7091 if ${ac_cv_prog_LIPO+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 if test -n "$LIPO"; then
7095 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7096 else
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108 done
7109 done
7110 IFS=$as_save_IFS
7111
7112 fi
7113 fi
7114 LIPO=$ac_cv_prog_LIPO
7115 if test -n "$LIPO"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7117 $as_echo "$LIPO" >&6; }
7118 else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7121 fi
7122
7123
7124 fi
7125 if test -z "$ac_cv_prog_LIPO"; then
7126 ac_ct_LIPO=$LIPO
7127 # Extract the first word of "lipo", so it can be a program name with args.
7128 set dummy lipo; ac_word=$2
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130 $as_echo_n "checking for $ac_word... " >&6; }
7131 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7132 $as_echo_n "(cached) " >&6
7133 else
7134 if test -n "$ac_ct_LIPO"; then
7135 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7136 else
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7139 do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144 ac_cv_prog_ac_ct_LIPO="lipo"
7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148 done
7149 done
7150 IFS=$as_save_IFS
7151
7152 fi
7153 fi
7154 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7155 if test -n "$ac_ct_LIPO"; then
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7157 $as_echo "$ac_ct_LIPO" >&6; }
7158 else
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160 $as_echo "no" >&6; }
7161 fi
7162
7163 if test "x$ac_ct_LIPO" = x; then
7164 LIPO=":"
7165 else
7166 case $cross_compiling:$ac_tool_warned in
7167 yes:)
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7170 ac_tool_warned=yes ;;
7171 esac
7172 LIPO=$ac_ct_LIPO
7173 fi
7174 else
7175 LIPO="$ac_cv_prog_LIPO"
7176 fi
7177
7178 if test -n "$ac_tool_prefix"; then
7179 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7180 set dummy ${ac_tool_prefix}otool; ac_word=$2
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182 $as_echo_n "checking for $ac_word... " >&6; }
7183 if ${ac_cv_prog_OTOOL+:} false; then :
7184 $as_echo_n "(cached) " >&6
7185 else
7186 if test -n "$OTOOL"; then
7187 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7188 else
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190 for as_dir in $PATH
7191 do
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 break 2
7199 fi
7200 done
7201 done
7202 IFS=$as_save_IFS
7203
7204 fi
7205 fi
7206 OTOOL=$ac_cv_prog_OTOOL
7207 if test -n "$OTOOL"; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7209 $as_echo "$OTOOL" >&6; }
7210 else
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 $as_echo "no" >&6; }
7213 fi
7214
7215
7216 fi
7217 if test -z "$ac_cv_prog_OTOOL"; then
7218 ac_ct_OTOOL=$OTOOL
7219 # Extract the first word of "otool", so it can be a program name with args.
7220 set dummy otool; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7224 $as_echo_n "(cached) " >&6
7225 else
7226 if test -n "$ac_ct_OTOOL"; then
7227 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7228 else
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236 ac_cv_prog_ac_ct_OTOOL="otool"
7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 break 2
7239 fi
7240 done
7241 done
7242 IFS=$as_save_IFS
7243
7244 fi
7245 fi
7246 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7247 if test -n "$ac_ct_OTOOL"; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7249 $as_echo "$ac_ct_OTOOL" >&6; }
7250 else
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7253 fi
7254
7255 if test "x$ac_ct_OTOOL" = x; then
7256 OTOOL=":"
7257 else
7258 case $cross_compiling:$ac_tool_warned in
7259 yes:)
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7262 ac_tool_warned=yes ;;
7263 esac
7264 OTOOL=$ac_ct_OTOOL
7265 fi
7266 else
7267 OTOOL="$ac_cv_prog_OTOOL"
7268 fi
7269
7270 if test -n "$ac_tool_prefix"; then
7271 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7272 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274 $as_echo_n "checking for $ac_word... " >&6; }
7275 if ${ac_cv_prog_OTOOL64+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 if test -n "$OTOOL64"; then
7279 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7283 do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7291 fi
7292 done
7293 done
7294 IFS=$as_save_IFS
7295
7296 fi
7297 fi
7298 OTOOL64=$ac_cv_prog_OTOOL64
7299 if test -n "$OTOOL64"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7301 $as_echo "$OTOOL64" >&6; }
7302 else
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7305 fi
7306
7307
7308 fi
7309 if test -z "$ac_cv_prog_OTOOL64"; then
7310 ac_ct_OTOOL64=$OTOOL64
7311 # Extract the first word of "otool64", so it can be a program name with args.
7312 set dummy otool64; ac_word=$2
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314 $as_echo_n "checking for $ac_word... " >&6; }
7315 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7316 $as_echo_n "(cached) " >&6
7317 else
7318 if test -n "$ac_ct_OTOOL64"; then
7319 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7320 else
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 for as_dir in $PATH
7323 do
7324 IFS=$as_save_IFS
7325 test -z "$as_dir" && as_dir=.
7326 for ac_exec_ext in '' $ac_executable_extensions; do
7327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7328 ac_cv_prog_ac_ct_OTOOL64="otool64"
7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 break 2
7331 fi
7332 done
7333 done
7334 IFS=$as_save_IFS
7335
7336 fi
7337 fi
7338 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7339 if test -n "$ac_ct_OTOOL64"; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7341 $as_echo "$ac_ct_OTOOL64" >&6; }
7342 else
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7345 fi
7346
7347 if test "x$ac_ct_OTOOL64" = x; then
7348 OTOOL64=":"
7349 else
7350 case $cross_compiling:$ac_tool_warned in
7351 yes:)
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7354 ac_tool_warned=yes ;;
7355 esac
7356 OTOOL64=$ac_ct_OTOOL64
7357 fi
7358 else
7359 OTOOL64="$ac_cv_prog_OTOOL64"
7360 fi
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7389 $as_echo_n "checking for -single_module linker flag... " >&6; }
7390 if ${lt_cv_apple_cc_single_mod+:} false; then :
7391 $as_echo_n "(cached) " >&6
7392 else
7393 lt_cv_apple_cc_single_mod=no
7394 if test -z "${LT_MULTI_MODULE}"; then
7395 # By default we will add the -single_module flag. You can override
7396 # by either setting the environment variable LT_MULTI_MODULE
7397 # non-empty at configure time, or by adding -multi_module to the
7398 # link flags.
7399 rm -rf libconftest.dylib*
7400 echo "int foo(void){return 1;}" > conftest.c
7401 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7402 -dynamiclib -Wl,-single_module conftest.c" >&5
7403 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7404 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7405 _lt_result=$?
7406 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7407 lt_cv_apple_cc_single_mod=yes
7408 else
7409 cat conftest.err >&5
7410 fi
7411 rm -rf libconftest.dylib*
7412 rm -f conftest.*
7413 fi
7414 fi
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7416 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7418 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7419 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7422 lt_cv_ld_exported_symbols_list=no
7423 save_LDFLAGS=$LDFLAGS
7424 echo "_main" > conftest.sym
7425 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7426 if test x$gcc_no_link = xyes; then
7427 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7428 fi
7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h. */
7431
7432 int
7433 main ()
7434 {
7435
7436 ;
7437 return 0;
7438 }
7439 _ACEOF
7440 if ac_fn_c_try_link "$LINENO"; then :
7441 lt_cv_ld_exported_symbols_list=yes
7442 else
7443 lt_cv_ld_exported_symbols_list=no
7444 fi
7445 rm -f core conftest.err conftest.$ac_objext \
7446 conftest$ac_exeext conftest.$ac_ext
7447 LDFLAGS="$save_LDFLAGS"
7448
7449 fi
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7451 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7453 $as_echo_n "checking for -force_load linker flag... " >&6; }
7454 if ${lt_cv_ld_force_load+:} false; then :
7455 $as_echo_n "(cached) " >&6
7456 else
7457 lt_cv_ld_force_load=no
7458 cat > conftest.c << _LT_EOF
7459 int forced_loaded() { return 2;}
7460 _LT_EOF
7461 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7462 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7463 echo "$AR cru libconftest.a conftest.o" >&5
7464 $AR cru libconftest.a conftest.o 2>&5
7465 cat > conftest.c << _LT_EOF
7466 int main() { return 0;}
7467 _LT_EOF
7468 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7469 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7470 _lt_result=$?
7471 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7472 lt_cv_ld_force_load=yes
7473 else
7474 cat conftest.err >&5
7475 fi
7476 rm -f conftest.err libconftest.a conftest conftest.c
7477 rm -rf conftest.dSYM
7478
7479 fi
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7481 $as_echo "$lt_cv_ld_force_load" >&6; }
7482 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7483 # build without first building modern cctools / linker.
7484 case $host_cpu-$host_os in
7485 *-rhapsody* | *-darwin1.[012])
7486 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7487 *-darwin1.*)
7488 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7489 *-darwin*)
7490 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7491 # deployment target is forced to an earlier version.
7492 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7493 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7494 ;;
7495 10.[012][,.]*)
7496 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7497 ;;
7498 *)
7499 ;;
7500 esac
7501 ;;
7502 esac
7503 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7504 _lt_dar_single_mod='$single_module'
7505 fi
7506 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7507 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7508 else
7509 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7510 fi
7511 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7512 _lt_dsymutil='~$DSYMUTIL $lib || :'
7513 else
7514 _lt_dsymutil=
7515 fi
7516 ;;
7517 esac
7518
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7520 $as_echo_n "checking for ANSI C header files... " >&6; }
7521 if ${ac_cv_header_stdc+:} false; then :
7522 $as_echo_n "(cached) " >&6
7523 else
7524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525 /* end confdefs.h. */
7526 #include <stdlib.h>
7527 #include <stdarg.h>
7528 #include <string.h>
7529 #include <float.h>
7530
7531 int
7532 main ()
7533 {
7534
7535 ;
7536 return 0;
7537 }
7538 _ACEOF
7539 if ac_fn_c_try_compile "$LINENO"; then :
7540 ac_cv_header_stdc=yes
7541 else
7542 ac_cv_header_stdc=no
7543 fi
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545
7546 if test $ac_cv_header_stdc = yes; then
7547 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549 /* end confdefs.h. */
7550 #include <string.h>
7551
7552 _ACEOF
7553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7554 $EGREP "memchr" >/dev/null 2>&1; then :
7555
7556 else
7557 ac_cv_header_stdc=no
7558 fi
7559 rm -f conftest*
7560
7561 fi
7562
7563 if test $ac_cv_header_stdc = yes; then
7564 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h. */
7567 #include <stdlib.h>
7568
7569 _ACEOF
7570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7571 $EGREP "free" >/dev/null 2>&1; then :
7572
7573 else
7574 ac_cv_header_stdc=no
7575 fi
7576 rm -f conftest*
7577
7578 fi
7579
7580 if test $ac_cv_header_stdc = yes; then
7581 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7582 if test "$cross_compiling" = yes; then :
7583 :
7584 else
7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7587 #include <ctype.h>
7588 #include <stdlib.h>
7589 #if ((' ' & 0x0FF) == 0x020)
7590 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7591 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7592 #else
7593 # define ISLOWER(c) \
7594 (('a' <= (c) && (c) <= 'i') \
7595 || ('j' <= (c) && (c) <= 'r') \
7596 || ('s' <= (c) && (c) <= 'z'))
7597 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7598 #endif
7599
7600 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7601 int
7602 main ()
7603 {
7604 int i;
7605 for (i = 0; i < 256; i++)
7606 if (XOR (islower (i), ISLOWER (i))
7607 || toupper (i) != TOUPPER (i))
7608 return 2;
7609 return 0;
7610 }
7611 _ACEOF
7612 if ac_fn_c_try_run "$LINENO"; then :
7613
7614 else
7615 ac_cv_header_stdc=no
7616 fi
7617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7618 conftest.$ac_objext conftest.beam conftest.$ac_ext
7619 fi
7620
7621 fi
7622 fi
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7624 $as_echo "$ac_cv_header_stdc" >&6; }
7625 if test $ac_cv_header_stdc = yes; then
7626
7627 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7628
7629 fi
7630
7631 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7632 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7633 inttypes.h stdint.h unistd.h
7634 do :
7635 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7636 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7637 "
7638 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7639 cat >>confdefs.h <<_ACEOF
7640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7641 _ACEOF
7642
7643 fi
7644
7645 done
7646
7647
7648 for ac_header in dlfcn.h
7649 do :
7650 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7651 "
7652 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7653 cat >>confdefs.h <<_ACEOF
7654 #define HAVE_DLFCN_H 1
7655 _ACEOF
7656
7657 fi
7658
7659 done
7660
7661
7662
7663
7664
7665 # Set options
7666
7667
7668
7669 enable_dlopen=no
7670
7671
7672 enable_win32_dll=no
7673
7674
7675 # Check whether --enable-shared was given.
7676 if test "${enable_shared+set}" = set; then :
7677 enableval=$enable_shared; p=${PACKAGE-default}
7678 case $enableval in
7679 yes) enable_shared=yes ;;
7680 no) enable_shared=no ;;
7681 *)
7682 enable_shared=no
7683 # Look at the argument we got. We use all the common list separators.
7684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7685 for pkg in $enableval; do
7686 IFS="$lt_save_ifs"
7687 if test "X$pkg" = "X$p"; then
7688 enable_shared=yes
7689 fi
7690 done
7691 IFS="$lt_save_ifs"
7692 ;;
7693 esac
7694 else
7695 enable_shared=yes
7696 fi
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706 # Check whether --enable-static was given.
7707 if test "${enable_static+set}" = set; then :
7708 enableval=$enable_static; p=${PACKAGE-default}
7709 case $enableval in
7710 yes) enable_static=yes ;;
7711 no) enable_static=no ;;
7712 *)
7713 enable_static=no
7714 # Look at the argument we got. We use all the common list separators.
7715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7716 for pkg in $enableval; do
7717 IFS="$lt_save_ifs"
7718 if test "X$pkg" = "X$p"; then
7719 enable_static=yes
7720 fi
7721 done
7722 IFS="$lt_save_ifs"
7723 ;;
7724 esac
7725 else
7726 enable_static=yes
7727 fi
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738 # Check whether --with-pic was given.
7739 if test "${with_pic+set}" = set; then :
7740 withval=$with_pic; pic_mode="$withval"
7741 else
7742 pic_mode=default
7743 fi
7744
7745
7746 test -z "$pic_mode" && pic_mode=default
7747
7748
7749
7750
7751
7752
7753
7754 # Check whether --enable-fast-install was given.
7755 if test "${enable_fast_install+set}" = set; then :
7756 enableval=$enable_fast_install; p=${PACKAGE-default}
7757 case $enableval in
7758 yes) enable_fast_install=yes ;;
7759 no) enable_fast_install=no ;;
7760 *)
7761 enable_fast_install=no
7762 # Look at the argument we got. We use all the common list separators.
7763 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7764 for pkg in $enableval; do
7765 IFS="$lt_save_ifs"
7766 if test "X$pkg" = "X$p"; then
7767 enable_fast_install=yes
7768 fi
7769 done
7770 IFS="$lt_save_ifs"
7771 ;;
7772 esac
7773 else
7774 enable_fast_install=yes
7775 fi
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787 # This can be used to rebuild libtool when needed
7788 LIBTOOL_DEPS="$ltmain"
7789
7790 # Always use our own libtool.
7791 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818 test -z "$LN_S" && LN_S="ln -s"
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833 if test -n "${ZSH_VERSION+set}" ; then
7834 setopt NO_GLOB_SUBST
7835 fi
7836
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7838 $as_echo_n "checking for objdir... " >&6; }
7839 if ${lt_cv_objdir+:} false; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 rm -f .libs 2>/dev/null
7843 mkdir .libs 2>/dev/null
7844 if test -d .libs; then
7845 lt_cv_objdir=.libs
7846 else
7847 # MS-DOS does not allow filenames that begin with a dot.
7848 lt_cv_objdir=_libs
7849 fi
7850 rmdir .libs 2>/dev/null
7851 fi
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7853 $as_echo "$lt_cv_objdir" >&6; }
7854 objdir=$lt_cv_objdir
7855
7856
7857
7858
7859
7860 cat >>confdefs.h <<_ACEOF
7861 #define LT_OBJDIR "$lt_cv_objdir/"
7862 _ACEOF
7863
7864
7865
7866
7867 case $host_os in
7868 aix3*)
7869 # AIX sometimes has problems with the GCC collect2 program. For some
7870 # reason, if we set the COLLECT_NAMES environment variable, the problems
7871 # vanish in a puff of smoke.
7872 if test "X${COLLECT_NAMES+set}" != Xset; then
7873 COLLECT_NAMES=
7874 export COLLECT_NAMES
7875 fi
7876 ;;
7877 esac
7878
7879 # Global variables:
7880 ofile=libtool
7881 can_build_shared=yes
7882
7883 # All known linkers require a `.a' archive for static linking (except MSVC,
7884 # which needs '.lib').
7885 libext=a
7886
7887 with_gnu_ld="$lt_cv_prog_gnu_ld"
7888
7889 old_CC="$CC"
7890 old_CFLAGS="$CFLAGS"
7891
7892 # Set sane defaults for various variables
7893 test -z "$CC" && CC=cc
7894 test -z "$LTCC" && LTCC=$CC
7895 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7896 test -z "$LD" && LD=ld
7897 test -z "$ac_objext" && ac_objext=o
7898
7899 for cc_temp in $compiler""; do
7900 case $cc_temp in
7901 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7902 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7903 \-*) ;;
7904 *) break;;
7905 esac
7906 done
7907 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7908
7909
7910 # Only perform the check for file, if the check method requires it
7911 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7912 case $deplibs_check_method in
7913 file_magic*)
7914 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7916 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7917 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7918 $as_echo_n "(cached) " >&6
7919 else
7920 case $MAGIC_CMD in
7921 [\\/*] | ?:[\\/]*)
7922 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7923 ;;
7924 *)
7925 lt_save_MAGIC_CMD="$MAGIC_CMD"
7926 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7927 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7928 for ac_dir in $ac_dummy; do
7929 IFS="$lt_save_ifs"
7930 test -z "$ac_dir" && ac_dir=.
7931 if test -f $ac_dir/${ac_tool_prefix}file; then
7932 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7933 if test -n "$file_magic_test_file"; then
7934 case $deplibs_check_method in
7935 "file_magic "*)
7936 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7938 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7939 $EGREP "$file_magic_regex" > /dev/null; then
7940 :
7941 else
7942 cat <<_LT_EOF 1>&2
7943
7944 *** Warning: the command libtool uses to detect shared libraries,
7945 *** $file_magic_cmd, produces output that libtool cannot recognize.
7946 *** The result is that libtool may fail to recognize shared libraries
7947 *** as such. This will affect the creation of libtool libraries that
7948 *** depend on shared libraries, but programs linked with such libtool
7949 *** libraries will work regardless of this problem. Nevertheless, you
7950 *** may want to report the problem to your system manager and/or to
7951 *** bug-libtool (at] gnu.org
7952
7953 _LT_EOF
7954 fi ;;
7955 esac
7956 fi
7957 break
7958 fi
7959 done
7960 IFS="$lt_save_ifs"
7961 MAGIC_CMD="$lt_save_MAGIC_CMD"
7962 ;;
7963 esac
7964 fi
7965
7966 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7967 if test -n "$MAGIC_CMD"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7969 $as_echo "$MAGIC_CMD" >&6; }
7970 else
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7973 fi
7974
7975
7976
7977
7978
7979 if test -z "$lt_cv_path_MAGIC_CMD"; then
7980 if test -n "$ac_tool_prefix"; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7982 $as_echo_n "checking for file... " >&6; }
7983 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7984 $as_echo_n "(cached) " >&6
7985 else
7986 case $MAGIC_CMD in
7987 [\\/*] | ?:[\\/]*)
7988 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7989 ;;
7990 *)
7991 lt_save_MAGIC_CMD="$MAGIC_CMD"
7992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7993 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7994 for ac_dir in $ac_dummy; do
7995 IFS="$lt_save_ifs"
7996 test -z "$ac_dir" && ac_dir=.
7997 if test -f $ac_dir/file; then
7998 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7999 if test -n "$file_magic_test_file"; then
8000 case $deplibs_check_method in
8001 "file_magic "*)
8002 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8003 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8004 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8005 $EGREP "$file_magic_regex" > /dev/null; then
8006 :
8007 else
8008 cat <<_LT_EOF 1>&2
8009
8010 *** Warning: the command libtool uses to detect shared libraries,
8011 *** $file_magic_cmd, produces output that libtool cannot recognize.
8012 *** The result is that libtool may fail to recognize shared libraries
8013 *** as such. This will affect the creation of libtool libraries that
8014 *** depend on shared libraries, but programs linked with such libtool
8015 *** libraries will work regardless of this problem. Nevertheless, you
8016 *** may want to report the problem to your system manager and/or to
8017 *** bug-libtool (at] gnu.org
8018
8019 _LT_EOF
8020 fi ;;
8021 esac
8022 fi
8023 break
8024 fi
8025 done
8026 IFS="$lt_save_ifs"
8027 MAGIC_CMD="$lt_save_MAGIC_CMD"
8028 ;;
8029 esac
8030 fi
8031
8032 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8033 if test -n "$MAGIC_CMD"; then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8035 $as_echo "$MAGIC_CMD" >&6; }
8036 else
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038 $as_echo "no" >&6; }
8039 fi
8040
8041
8042 else
8043 MAGIC_CMD=:
8044 fi
8045 fi
8046
8047 fi
8048 ;;
8049 esac
8050
8051 # Use C for the default configuration in the libtool script
8052
8053 lt_save_CC="$CC"
8054 ac_ext=c
8055 ac_cpp='$CPP $CPPFLAGS'
8056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8059
8060
8061 # Source file extension for C test sources.
8062 ac_ext=c
8063
8064 # Object file extension for compiled C test sources.
8065 objext=o
8066 objext=$objext
8067
8068 # Code to be used in simple compile tests
8069 lt_simple_compile_test_code="int some_variable = 0;"
8070
8071 # Code to be used in simple link tests
8072 lt_simple_link_test_code='int main(){return(0);}'
8073
8074
8075
8076
8077
8078
8079
8080 # If no C compiler was specified, use CC.
8081 LTCC=${LTCC-"$CC"}
8082
8083 # If no C compiler flags were specified, use CFLAGS.
8084 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8085
8086 # Allow CC to be a program name with arguments.
8087 compiler=$CC
8088
8089 # Save the default compiler, since it gets overwritten when the other
8090 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8091 compiler_DEFAULT=$CC
8092
8093 # save warnings/boilerplate of simple test code
8094 ac_outfile=conftest.$ac_objext
8095 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8096 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8097 _lt_compiler_boilerplate=`cat conftest.err`
8098 $RM conftest*
8099
8100 ac_outfile=conftest.$ac_objext
8101 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8102 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8103 _lt_linker_boilerplate=`cat conftest.err`
8104 $RM -r conftest*
8105
8106
8107 ## CAVEAT EMPTOR:
8108 ## There is no encapsulation within the following macros, do not change
8109 ## the running order or otherwise move them around unless you know exactly
8110 ## what you are doing...
8111 if test -n "$compiler"; then
8112
8113 lt_prog_compiler_no_builtin_flag=
8114
8115 if test "$GCC" = yes; then
8116 case $cc_basename in
8117 nvcc*)
8118 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8119 *)
8120 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8121 esac
8122
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8124 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8125 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8126 $as_echo_n "(cached) " >&6
8127 else
8128 lt_cv_prog_compiler_rtti_exceptions=no
8129 ac_outfile=conftest.$ac_objext
8130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8131 lt_compiler_flag="-fno-rtti -fno-exceptions"
8132 # Insert the option either (1) after the last *FLAGS variable, or
8133 # (2) before a word containing "conftest.", or (3) at the end.
8134 # Note that $ac_compile itself does not contain backslashes and begins
8135 # with a dollar sign (not a hyphen), so the echo should work correctly.
8136 # The option is referenced via a variable to avoid confusing sed.
8137 lt_compile=`echo "$ac_compile" | $SED \
8138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8140 -e 's:$: $lt_compiler_flag:'`
8141 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8142 (eval "$lt_compile" 2>conftest.err)
8143 ac_status=$?
8144 cat conftest.err >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 if (exit $ac_status) && test -s "$ac_outfile"; then
8147 # The compiler can only warn and ignore the option if not recognized
8148 # So say no if there are warnings other than the usual output.
8149 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8151 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8152 lt_cv_prog_compiler_rtti_exceptions=yes
8153 fi
8154 fi
8155 $RM conftest*
8156
8157 fi
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8159 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8160
8161 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8162 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8163 else
8164 :
8165 fi
8166
8167 fi
8168
8169
8170
8171
8172
8173
8174 lt_prog_compiler_wl=
8175 lt_prog_compiler_pic=
8176 lt_prog_compiler_static=
8177
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8179 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8180
8181 if test "$GCC" = yes; then
8182 lt_prog_compiler_wl='-Wl,'
8183 lt_prog_compiler_static='-static'
8184
8185 case $host_os in
8186 aix*)
8187 # All AIX code is PIC.
8188 if test "$host_cpu" = ia64; then
8189 # AIX 5 now supports IA64 processor
8190 lt_prog_compiler_static='-Bstatic'
8191 fi
8192 lt_prog_compiler_pic='-fPIC'
8193 ;;
8194
8195 amigaos*)
8196 case $host_cpu in
8197 powerpc)
8198 # see comment about AmigaOS4 .so support
8199 lt_prog_compiler_pic='-fPIC'
8200 ;;
8201 m68k)
8202 # FIXME: we need at least 68020 code to build shared libraries, but
8203 # adding the `-m68020' flag to GCC prevents building anything better,
8204 # like `-m68040'.
8205 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8206 ;;
8207 esac
8208 ;;
8209
8210 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8211 # PIC is the default for these OSes.
8212 ;;
8213
8214 mingw* | cygwin* | pw32* | os2* | cegcc*)
8215 # This hack is so that the source file can tell whether it is being
8216 # built for inclusion in a dll (and should export symbols for example).
8217 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8218 # (--disable-auto-import) libraries
8219 lt_prog_compiler_pic='-DDLL_EXPORT'
8220 ;;
8221
8222 darwin* | rhapsody*)
8223 # PIC is the default on this platform
8224 # Common symbols not allowed in MH_DYLIB files
8225 lt_prog_compiler_pic='-fno-common'
8226 ;;
8227
8228 haiku*)
8229 # PIC is the default for Haiku.
8230 # The "-static" flag exists, but is broken.
8231 lt_prog_compiler_static=
8232 ;;
8233
8234 hpux*)
8235 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8236 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8237 # sets the default TLS model and affects inlining.
8238 case $host_cpu in
8239 hppa*64*)
8240 # +Z the default
8241 ;;
8242 *)
8243 lt_prog_compiler_pic='-fPIC'
8244 ;;
8245 esac
8246 ;;
8247
8248 interix[3-9]*)
8249 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8250 # Instead, we relocate shared libraries at runtime.
8251 ;;
8252
8253 msdosdjgpp*)
8254 # Just because we use GCC doesn't mean we suddenly get shared libraries
8255 # on systems that don't support them.
8256 lt_prog_compiler_can_build_shared=no
8257 enable_shared=no
8258 ;;
8259
8260 *nto* | *qnx*)
8261 # QNX uses GNU C++, but need to define -shared option too, otherwise
8262 # it will coredump.
8263 lt_prog_compiler_pic='-fPIC -shared'
8264 ;;
8265
8266 sysv4*MP*)
8267 if test -d /usr/nec; then
8268 lt_prog_compiler_pic=-Kconform_pic
8269 fi
8270 ;;
8271
8272 *)
8273 lt_prog_compiler_pic='-fPIC'
8274 ;;
8275 esac
8276
8277 case $cc_basename in
8278 nvcc*) # Cuda Compiler Driver 2.2
8279 lt_prog_compiler_wl='-Xlinker '
8280 lt_prog_compiler_pic='-Xcompiler -fPIC'
8281 ;;
8282 esac
8283 else
8284 # PORTME Check for flag to pass linker flags through the system compiler.
8285 case $host_os in
8286 aix*)
8287 lt_prog_compiler_wl='-Wl,'
8288 if test "$host_cpu" = ia64; then
8289 # AIX 5 now supports IA64 processor
8290 lt_prog_compiler_static='-Bstatic'
8291 else
8292 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8293 fi
8294 ;;
8295
8296 mingw* | cygwin* | pw32* | os2* | cegcc*)
8297 # This hack is so that the source file can tell whether it is being
8298 # built for inclusion in a dll (and should export symbols for example).
8299 lt_prog_compiler_pic='-DDLL_EXPORT'
8300 ;;
8301
8302 hpux9* | hpux10* | hpux11*)
8303 lt_prog_compiler_wl='-Wl,'
8304 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8305 # not for PA HP-UX.
8306 case $host_cpu in
8307 hppa*64*|ia64*)
8308 # +Z the default
8309 ;;
8310 *)
8311 lt_prog_compiler_pic='+Z'
8312 ;;
8313 esac
8314 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8315 lt_prog_compiler_static='${wl}-a ${wl}archive'
8316 ;;
8317
8318 irix5* | irix6* | nonstopux*)
8319 lt_prog_compiler_wl='-Wl,'
8320 # PIC (with -KPIC) is the default.
8321 lt_prog_compiler_static='-non_shared'
8322 ;;
8323
8324 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8325 case $cc_basename in
8326 # old Intel for x86_64 which still supported -KPIC.
8327 ecc*)
8328 lt_prog_compiler_wl='-Wl,'
8329 lt_prog_compiler_pic='-KPIC'
8330 lt_prog_compiler_static='-static'
8331 ;;
8332 # icc used to be incompatible with GCC.
8333 # ICC 10 doesn't accept -KPIC any more.
8334 icc* | ifort*)
8335 lt_prog_compiler_wl='-Wl,'
8336 lt_prog_compiler_pic='-fPIC'
8337 lt_prog_compiler_static='-static'
8338 ;;
8339 # Lahey Fortran 8.1.
8340 lf95*)
8341 lt_prog_compiler_wl='-Wl,'
8342 lt_prog_compiler_pic='--shared'
8343 lt_prog_compiler_static='--static'
8344 ;;
8345 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8346 # Portland Group compilers (*not* the Pentium gcc compiler,
8347 # which looks to be a dead project)
8348 lt_prog_compiler_wl='-Wl,'
8349 lt_prog_compiler_pic='-fpic'
8350 lt_prog_compiler_static='-Bstatic'
8351 ;;
8352 ccc*)
8353 lt_prog_compiler_wl='-Wl,'
8354 # All Alpha code is PIC.
8355 lt_prog_compiler_static='-non_shared'
8356 ;;
8357 xl* | bgxl* | bgf* | mpixl*)
8358 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8359 lt_prog_compiler_wl='-Wl,'
8360 lt_prog_compiler_pic='-qpic'
8361 lt_prog_compiler_static='-qstaticlink'
8362 ;;
8363 *)
8364 case `$CC -V 2>&1 | sed 5q` in
8365 *Sun\ F* | *Sun*Fortran*)
8366 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8367 lt_prog_compiler_pic='-KPIC'
8368 lt_prog_compiler_static='-Bstatic'
8369 lt_prog_compiler_wl=''
8370 ;;
8371 *Sun\ C*)
8372 # Sun C 5.9
8373 lt_prog_compiler_pic='-KPIC'
8374 lt_prog_compiler_static='-Bstatic'
8375 lt_prog_compiler_wl='-Wl,'
8376 ;;
8377 esac
8378 ;;
8379 esac
8380 ;;
8381
8382 newsos6)
8383 lt_prog_compiler_pic='-KPIC'
8384 lt_prog_compiler_static='-Bstatic'
8385 ;;
8386
8387 *nto* | *qnx*)
8388 # QNX uses GNU C++, but need to define -shared option too, otherwise
8389 # it will coredump.
8390 lt_prog_compiler_pic='-fPIC -shared'
8391 ;;
8392
8393 osf3* | osf4* | osf5*)
8394 lt_prog_compiler_wl='-Wl,'
8395 # All OSF/1 code is PIC.
8396 lt_prog_compiler_static='-non_shared'
8397 ;;
8398
8399 rdos*)
8400 lt_prog_compiler_static='-non_shared'
8401 ;;
8402
8403 solaris*)
8404 lt_prog_compiler_pic='-KPIC'
8405 lt_prog_compiler_static='-Bstatic'
8406 case $cc_basename in
8407 f77* | f90* | f95*)
8408 lt_prog_compiler_wl='-Qoption ld ';;
8409 *)
8410 lt_prog_compiler_wl='-Wl,';;
8411 esac
8412 ;;
8413
8414 sunos4*)
8415 lt_prog_compiler_wl='-Qoption ld '
8416 lt_prog_compiler_pic='-PIC'
8417 lt_prog_compiler_static='-Bstatic'
8418 ;;
8419
8420 sysv4 | sysv4.2uw2* | sysv4.3*)
8421 lt_prog_compiler_wl='-Wl,'
8422 lt_prog_compiler_pic='-KPIC'
8423 lt_prog_compiler_static='-Bstatic'
8424 ;;
8425
8426 sysv4*MP*)
8427 if test -d /usr/nec ;then
8428 lt_prog_compiler_pic='-Kconform_pic'
8429 lt_prog_compiler_static='-Bstatic'
8430 fi
8431 ;;
8432
8433 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8434 lt_prog_compiler_wl='-Wl,'
8435 lt_prog_compiler_pic='-KPIC'
8436 lt_prog_compiler_static='-Bstatic'
8437 ;;
8438
8439 unicos*)
8440 lt_prog_compiler_wl='-Wl,'
8441 lt_prog_compiler_can_build_shared=no
8442 ;;
8443
8444 uts4*)
8445 lt_prog_compiler_pic='-pic'
8446 lt_prog_compiler_static='-Bstatic'
8447 ;;
8448
8449 *)
8450 lt_prog_compiler_can_build_shared=no
8451 ;;
8452 esac
8453 fi
8454
8455 case $host_os in
8456 # For platforms which do not support PIC, -DPIC is meaningless:
8457 *djgpp*)
8458 lt_prog_compiler_pic=
8459 ;;
8460 *)
8461 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8462 ;;
8463 esac
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8465 $as_echo "$lt_prog_compiler_pic" >&6; }
8466
8467
8468
8469
8470
8471
8472 #
8473 # Check to make sure the PIC flag actually works.
8474 #
8475 if test -n "$lt_prog_compiler_pic"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8477 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8478 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8479 $as_echo_n "(cached) " >&6
8480 else
8481 lt_cv_prog_compiler_pic_works=no
8482 ac_outfile=conftest.$ac_objext
8483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8484 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8485 # Insert the option either (1) after the last *FLAGS variable, or
8486 # (2) before a word containing "conftest.", or (3) at the end.
8487 # Note that $ac_compile itself does not contain backslashes and begins
8488 # with a dollar sign (not a hyphen), so the echo should work correctly.
8489 # The option is referenced via a variable to avoid confusing sed.
8490 lt_compile=`echo "$ac_compile" | $SED \
8491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8493 -e 's:$: $lt_compiler_flag:'`
8494 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8495 (eval "$lt_compile" 2>conftest.err)
8496 ac_status=$?
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 if (exit $ac_status) && test -s "$ac_outfile"; then
8500 # The compiler can only warn and ignore the option if not recognized
8501 # So say no if there are warnings other than the usual output.
8502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8504 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8505 lt_cv_prog_compiler_pic_works=yes
8506 fi
8507 fi
8508 $RM conftest*
8509
8510 fi
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8512 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8513
8514 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8515 case $lt_prog_compiler_pic in
8516 "" | " "*) ;;
8517 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8518 esac
8519 else
8520 lt_prog_compiler_pic=
8521 lt_prog_compiler_can_build_shared=no
8522 fi
8523
8524 fi
8525
8526
8527
8528
8529
8530
8531 #
8532 # Check to make sure the static flag actually works.
8533 #
8534 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8536 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8537 if ${lt_cv_prog_compiler_static_works+:} false; then :
8538 $as_echo_n "(cached) " >&6
8539 else
8540 lt_cv_prog_compiler_static_works=no
8541 save_LDFLAGS="$LDFLAGS"
8542 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8543 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8544 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8545 # The linker can only warn and ignore the option if not recognized
8546 # So say no if there are warnings
8547 if test -s conftest.err; then
8548 # Append any errors to the config.log.
8549 cat conftest.err 1>&5
8550 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8552 if diff conftest.exp conftest.er2 >/dev/null; then
8553 lt_cv_prog_compiler_static_works=yes
8554 fi
8555 else
8556 lt_cv_prog_compiler_static_works=yes
8557 fi
8558 fi
8559 $RM -r conftest*
8560 LDFLAGS="$save_LDFLAGS"
8561
8562 fi
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8564 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8565
8566 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8567 :
8568 else
8569 lt_prog_compiler_static=
8570 fi
8571
8572
8573
8574
8575
8576
8577
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8579 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8580 if ${lt_cv_prog_compiler_c_o+:} false; then :
8581 $as_echo_n "(cached) " >&6
8582 else
8583 lt_cv_prog_compiler_c_o=no
8584 $RM -r conftest 2>/dev/null
8585 mkdir conftest
8586 cd conftest
8587 mkdir out
8588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8589
8590 lt_compiler_flag="-o out/conftest2.$ac_objext"
8591 # Insert the option either (1) after the last *FLAGS variable, or
8592 # (2) before a word containing "conftest.", or (3) at the end.
8593 # Note that $ac_compile itself does not contain backslashes and begins
8594 # with a dollar sign (not a hyphen), so the echo should work correctly.
8595 lt_compile=`echo "$ac_compile" | $SED \
8596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8598 -e 's:$: $lt_compiler_flag:'`
8599 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8600 (eval "$lt_compile" 2>out/conftest.err)
8601 ac_status=$?
8602 cat out/conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8605 then
8606 # The compiler can only warn and ignore the option if not recognized
8607 # So say no if there are warnings
8608 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8609 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8610 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8611 lt_cv_prog_compiler_c_o=yes
8612 fi
8613 fi
8614 chmod u+w . 2>&5
8615 $RM conftest*
8616 # SGI C++ compiler will create directory out/ii_files/ for
8617 # template instantiation
8618 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8619 $RM out/* && rmdir out
8620 cd ..
8621 $RM -r conftest
8622 $RM conftest*
8623
8624 fi
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8626 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8627
8628
8629
8630
8631
8632
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8634 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8635 if ${lt_cv_prog_compiler_c_o+:} false; then :
8636 $as_echo_n "(cached) " >&6
8637 else
8638 lt_cv_prog_compiler_c_o=no
8639 $RM -r conftest 2>/dev/null
8640 mkdir conftest
8641 cd conftest
8642 mkdir out
8643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8644
8645 lt_compiler_flag="-o out/conftest2.$ac_objext"
8646 # Insert the option either (1) after the last *FLAGS variable, or
8647 # (2) before a word containing "conftest.", or (3) at the end.
8648 # Note that $ac_compile itself does not contain backslashes and begins
8649 # with a dollar sign (not a hyphen), so the echo should work correctly.
8650 lt_compile=`echo "$ac_compile" | $SED \
8651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8653 -e 's:$: $lt_compiler_flag:'`
8654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8655 (eval "$lt_compile" 2>out/conftest.err)
8656 ac_status=$?
8657 cat out/conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8660 then
8661 # The compiler can only warn and ignore the option if not recognized
8662 # So say no if there are warnings
8663 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8666 lt_cv_prog_compiler_c_o=yes
8667 fi
8668 fi
8669 chmod u+w . 2>&5
8670 $RM conftest*
8671 # SGI C++ compiler will create directory out/ii_files/ for
8672 # template instantiation
8673 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8674 $RM out/* && rmdir out
8675 cd ..
8676 $RM -r conftest
8677 $RM conftest*
8678
8679 fi
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8681 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8682
8683
8684
8685
8686 hard_links="nottested"
8687 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8688 # do not overwrite the value of need_locks provided by the user
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8690 $as_echo_n "checking if we can lock with hard links... " >&6; }
8691 hard_links=yes
8692 $RM conftest*
8693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8694 touch conftest.a
8695 ln conftest.a conftest.b 2>&5 || hard_links=no
8696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8698 $as_echo "$hard_links" >&6; }
8699 if test "$hard_links" = no; then
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8701 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8702 need_locks=warn
8703 fi
8704 else
8705 need_locks=no
8706 fi
8707
8708
8709
8710
8711
8712
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8714 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8715
8716 runpath_var=
8717 allow_undefined_flag=
8718 always_export_symbols=no
8719 archive_cmds=
8720 archive_expsym_cmds=
8721 compiler_needs_object=no
8722 enable_shared_with_static_runtimes=no
8723 export_dynamic_flag_spec=
8724 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8725 hardcode_automatic=no
8726 hardcode_direct=no
8727 hardcode_direct_absolute=no
8728 hardcode_libdir_flag_spec=
8729 hardcode_libdir_flag_spec_ld=
8730 hardcode_libdir_separator=
8731 hardcode_minus_L=no
8732 hardcode_shlibpath_var=unsupported
8733 inherit_rpath=no
8734 link_all_deplibs=unknown
8735 module_cmds=
8736 module_expsym_cmds=
8737 old_archive_from_new_cmds=
8738 old_archive_from_expsyms_cmds=
8739 thread_safe_flag_spec=
8740 whole_archive_flag_spec=
8741 # include_expsyms should be a list of space-separated symbols to be *always*
8742 # included in the symbol list
8743 include_expsyms=
8744 # exclude_expsyms can be an extended regexp of symbols to exclude
8745 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8746 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8747 # as well as any symbol that contains `d'.
8748 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8749 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8750 # platforms (ab)use it in PIC code, but their linkers get confused if
8751 # the symbol is explicitly referenced. Since portable code cannot
8752 # rely on this symbol name, it's probably fine to never include it in
8753 # preloaded symbol tables.
8754 # Exclude shared library initialization/finalization symbols.
8755 extract_expsyms_cmds=
8756
8757 case $host_os in
8758 cygwin* | mingw* | pw32* | cegcc*)
8759 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8760 # When not using gcc, we currently assume that we are using
8761 # Microsoft Visual C++.
8762 if test "$GCC" != yes; then
8763 with_gnu_ld=no
8764 fi
8765 ;;
8766 interix*)
8767 # we just hope/assume this is gcc and not c89 (= MSVC++)
8768 with_gnu_ld=yes
8769 ;;
8770 openbsd*)
8771 with_gnu_ld=no
8772 ;;
8773 esac
8774
8775 ld_shlibs=yes
8776
8777 # On some targets, GNU ld is compatible enough with the native linker
8778 # that we're better off using the native interface for both.
8779 lt_use_gnu_ld_interface=no
8780 if test "$with_gnu_ld" = yes; then
8781 case $host_os in
8782 aix*)
8783 # The AIX port of GNU ld has always aspired to compatibility
8784 # with the native linker. However, as the warning in the GNU ld
8785 # block says, versions before 2.19.5* couldn't really create working
8786 # shared libraries, regardless of the interface used.
8787 case `$LD -v 2>&1` in
8788 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8789 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8790 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8791 *)
8792 lt_use_gnu_ld_interface=yes
8793 ;;
8794 esac
8795 ;;
8796 *)
8797 lt_use_gnu_ld_interface=yes
8798 ;;
8799 esac
8800 fi
8801
8802 if test "$lt_use_gnu_ld_interface" = yes; then
8803 # If archive_cmds runs LD, not CC, wlarc should be empty
8804 wlarc='${wl}'
8805
8806 # Set some defaults for GNU ld with shared library support. These
8807 # are reset later if shared libraries are not supported. Putting them
8808 # here allows them to be overridden if necessary.
8809 runpath_var=LD_RUN_PATH
8810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8811 export_dynamic_flag_spec='${wl}--export-dynamic'
8812 # ancient GNU ld didn't support --whole-archive et. al.
8813 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8814 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8815 else
8816 whole_archive_flag_spec=
8817 fi
8818 supports_anon_versioning=no
8819 case `$LD -v 2>&1` in
8820 *GNU\ gold*) supports_anon_versioning=yes ;;
8821 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8822 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8823 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8824 *\ 2.11.*) ;; # other 2.11 versions
8825 *) supports_anon_versioning=yes ;;
8826 esac
8827
8828 # See if GNU ld supports shared libraries.
8829 case $host_os in
8830 aix[3-9]*)
8831 # On AIX/PPC, the GNU linker is very broken
8832 if test "$host_cpu" != ia64; then
8833 ld_shlibs=no
8834 cat <<_LT_EOF 1>&2
8835
8836 *** Warning: the GNU linker, at least up to release 2.19, is reported
8837 *** to be unable to reliably create shared libraries on AIX.
8838 *** Therefore, libtool is disabling shared libraries support. If you
8839 *** really care for shared libraries, you may want to install binutils
8840 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8841 *** You will then need to restart the configuration process.
8842
8843 _LT_EOF
8844 fi
8845 ;;
8846
8847 amigaos*)
8848 case $host_cpu in
8849 powerpc)
8850 # see comment about AmigaOS4 .so support
8851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8852 archive_expsym_cmds=''
8853 ;;
8854 m68k)
8855 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)'
8856 hardcode_libdir_flag_spec='-L$libdir'
8857 hardcode_minus_L=yes
8858 ;;
8859 esac
8860 ;;
8861
8862 beos*)
8863 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8864 allow_undefined_flag=unsupported
8865 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8866 # support --undefined. This deserves some investigation. FIXME
8867 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8868 else
8869 ld_shlibs=no
8870 fi
8871 ;;
8872
8873 cygwin* | mingw* | pw32* | cegcc*)
8874 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8875 # as there is no search path for DLLs.
8876 hardcode_libdir_flag_spec='-L$libdir'
8877 export_dynamic_flag_spec='${wl}--export-all-symbols'
8878 allow_undefined_flag=unsupported
8879 always_export_symbols=no
8880 enable_shared_with_static_runtimes=yes
8881 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8882
8883 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8885 # If the export-symbols file already is a .def file (1st line
8886 # is EXPORTS), use it as is; otherwise, prepend...
8887 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8888 cp $export_symbols $output_objdir/$soname.def;
8889 else
8890 echo EXPORTS > $output_objdir/$soname.def;
8891 cat $export_symbols >> $output_objdir/$soname.def;
8892 fi~
8893 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8894 else
8895 ld_shlibs=no
8896 fi
8897 ;;
8898
8899 haiku*)
8900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8901 link_all_deplibs=yes
8902 ;;
8903
8904 interix[3-9]*)
8905 hardcode_direct=no
8906 hardcode_shlibpath_var=no
8907 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8908 export_dynamic_flag_spec='${wl}-E'
8909 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8910 # Instead, shared libraries are loaded at an image base (0x10000000 by
8911 # default) and relocated if they conflict, which is a slow very memory
8912 # consuming and fragmenting process. To avoid this, we pick a random,
8913 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8914 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8915 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8916 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'
8917 ;;
8918
8919 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8920 tmp_diet=no
8921 if test "$host_os" = linux-dietlibc; then
8922 case $cc_basename in
8923 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8924 esac
8925 fi
8926 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8927 && test "$tmp_diet" = no
8928 then
8929 tmp_addflag=' $pic_flag'
8930 tmp_sharedflag='-shared'
8931 case $cc_basename,$host_cpu in
8932 pgcc*) # Portland Group C compiler
8933 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'
8934 tmp_addflag=' $pic_flag'
8935 ;;
8936 pgf77* | pgf90* | pgf95* | pgfortran*)
8937 # Portland Group f77 and f90 compilers
8938 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'
8939 tmp_addflag=' $pic_flag -Mnomain' ;;
8940 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8941 tmp_addflag=' -i_dynamic' ;;
8942 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8943 tmp_addflag=' -i_dynamic -nofor_main' ;;
8944 ifc* | ifort*) # Intel Fortran compiler
8945 tmp_addflag=' -nofor_main' ;;
8946 lf95*) # Lahey Fortran 8.1
8947 whole_archive_flag_spec=
8948 tmp_sharedflag='--shared' ;;
8949 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8950 tmp_sharedflag='-qmkshrobj'
8951 tmp_addflag= ;;
8952 nvcc*) # Cuda Compiler Driver 2.2
8953 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'
8954 compiler_needs_object=yes
8955 ;;
8956 esac
8957 case `$CC -V 2>&1 | sed 5q` in
8958 *Sun\ C*) # Sun C 5.9
8959 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'
8960 compiler_needs_object=yes
8961 tmp_sharedflag='-G' ;;
8962 *Sun\ F*) # Sun Fortran 8.3
8963 tmp_sharedflag='-G' ;;
8964 esac
8965 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8966
8967 if test "x$supports_anon_versioning" = xyes; then
8968 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8969 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8970 echo "local: *; };" >> $output_objdir/$libname.ver~
8971 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8972 fi
8973
8974 case $cc_basename in
8975 xlf* | bgf* | bgxlf* | mpixlf*)
8976 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8977 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8978 hardcode_libdir_flag_spec=
8979 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8980 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8981 if test "x$supports_anon_versioning" = xyes; then
8982 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8983 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8984 echo "local: *; };" >> $output_objdir/$libname.ver~
8985 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8986 fi
8987 ;;
8988 esac
8989 else
8990 ld_shlibs=no
8991 fi
8992 ;;
8993
8994 netbsd*)
8995 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8996 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8997 wlarc=
8998 else
8999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9000 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9001 fi
9002 ;;
9003
9004 solaris*)
9005 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9006 ld_shlibs=no
9007 cat <<_LT_EOF 1>&2
9008
9009 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9010 *** create shared libraries on Solaris systems. Therefore, libtool
9011 *** is disabling shared libraries support. We urge you to upgrade GNU
9012 *** binutils to release 2.9.1 or newer. Another option is to modify
9013 *** your PATH or compiler configuration so that the native linker is
9014 *** used, and then restart.
9015
9016 _LT_EOF
9017 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9020 else
9021 ld_shlibs=no
9022 fi
9023 ;;
9024
9025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9026 case `$LD -v 2>&1` in
9027 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9028 ld_shlibs=no
9029 cat <<_LT_EOF 1>&2
9030
9031 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9032 *** reliably create shared libraries on SCO systems. Therefore, libtool
9033 *** is disabling shared libraries support. We urge you to upgrade GNU
9034 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9035 *** your PATH or compiler configuration so that the native linker is
9036 *** used, and then restart.
9037
9038 _LT_EOF
9039 ;;
9040 *)
9041 # For security reasons, it is highly recommended that you always
9042 # use absolute paths for naming shared libraries, and exclude the
9043 # DT_RUNPATH tag from executables and libraries. But doing so
9044 # requires that you compile everything twice, which is a pain.
9045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9049 else
9050 ld_shlibs=no
9051 fi
9052 ;;
9053 esac
9054 ;;
9055
9056 sunos4*)
9057 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9058 wlarc=
9059 hardcode_direct=yes
9060 hardcode_shlibpath_var=no
9061 ;;
9062
9063 *)
9064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9066 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9067 else
9068 ld_shlibs=no
9069 fi
9070 ;;
9071 esac
9072
9073 if test "$ld_shlibs" = no; then
9074 runpath_var=
9075 hardcode_libdir_flag_spec=
9076 export_dynamic_flag_spec=
9077 whole_archive_flag_spec=
9078 fi
9079 else
9080 # PORTME fill in a description of your system's linker (not GNU ld)
9081 case $host_os in
9082 aix3*)
9083 allow_undefined_flag=unsupported
9084 always_export_symbols=yes
9085 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'
9086 # Note: this linker hardcodes the directories in LIBPATH if there
9087 # are no directories specified by -L.
9088 hardcode_minus_L=yes
9089 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9090 # Neither direct hardcoding nor static linking is supported with a
9091 # broken collect2.
9092 hardcode_direct=unsupported
9093 fi
9094 ;;
9095
9096 aix[4-9]*)
9097 if test "$host_cpu" = ia64; then
9098 # On IA64, the linker does run time linking by default, so we don't
9099 # have to do anything special.
9100 aix_use_runtimelinking=no
9101 exp_sym_flag='-Bexport'
9102 no_entry_flag=""
9103 else
9104 # If we're using GNU nm, then we don't want the "-C" option.
9105 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9106 # Also, AIX nm treats weak defined symbols like other global
9107 # defined symbols, whereas GNU nm marks them as "W".
9108 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9109 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'
9110 else
9111 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'
9112 fi
9113 aix_use_runtimelinking=no
9114
9115 # Test if we are trying to use run time linking or normal
9116 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9117 # need to do runtime linking.
9118 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9119 for ld_flag in $LDFLAGS; do
9120 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9121 aix_use_runtimelinking=yes
9122 break
9123 fi
9124 done
9125 ;;
9126 esac
9127
9128 exp_sym_flag='-bexport'
9129 no_entry_flag='-bnoentry'
9130 fi
9131
9132 # When large executables or shared objects are built, AIX ld can
9133 # have problems creating the table of contents. If linking a library
9134 # or program results in "error TOC overflow" add -mminimal-toc to
9135 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9136 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9137
9138 archive_cmds=''
9139 hardcode_direct=yes
9140 hardcode_direct_absolute=yes
9141 hardcode_libdir_separator=':'
9142 link_all_deplibs=yes
9143 file_list_spec='${wl}-f,'
9144
9145 if test "$GCC" = yes; then
9146 case $host_os in aix4.[012]|aix4.[012].*)
9147 # We only want to do this on AIX 4.2 and lower, the check
9148 # below for broken collect2 doesn't work under 4.3+
9149 collect2name=`${CC} -print-prog-name=collect2`
9150 if test -f "$collect2name" &&
9151 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9152 then
9153 # We have reworked collect2
9154 :
9155 else
9156 # We have old collect2
9157 hardcode_direct=unsupported
9158 # It fails to find uninstalled libraries when the uninstalled
9159 # path is not listed in the libpath. Setting hardcode_minus_L
9160 # to unsupported forces relinking
9161 hardcode_minus_L=yes
9162 hardcode_libdir_flag_spec='-L$libdir'
9163 hardcode_libdir_separator=
9164 fi
9165 ;;
9166 esac
9167 shared_flag='-shared'
9168 if test "$aix_use_runtimelinking" = yes; then
9169 shared_flag="$shared_flag "'${wl}-G'
9170 fi
9171 else
9172 # not using gcc
9173 if test "$host_cpu" = ia64; then
9174 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9175 # chokes on -Wl,-G. The following line is correct:
9176 shared_flag='-G'
9177 else
9178 if test "$aix_use_runtimelinking" = yes; then
9179 shared_flag='${wl}-G'
9180 else
9181 shared_flag='${wl}-bM:SRE'
9182 fi
9183 fi
9184 fi
9185
9186 export_dynamic_flag_spec='${wl}-bexpall'
9187 # It seems that -bexpall does not export symbols beginning with
9188 # underscore (_), so it is better to generate a list of symbols to export.
9189 always_export_symbols=yes
9190 if test "$aix_use_runtimelinking" = yes; then
9191 # Warning - without using the other runtime loading flags (-brtl),
9192 # -berok will link without error, but may produce a broken library.
9193 allow_undefined_flag='-berok'
9194 # Determine the default libpath from the value encoded in an
9195 # empty executable.
9196 if test x$gcc_no_link = xyes; then
9197 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9198 fi
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9201
9202 int
9203 main ()
9204 {
9205
9206 ;
9207 return 0;
9208 }
9209 _ACEOF
9210 if ac_fn_c_try_link "$LINENO"; then :
9211
9212 lt_aix_libpath_sed='
9213 /Import File Strings/,/^$/ {
9214 /^0/ {
9215 s/^0 *\(.*\)$/\1/
9216 p
9217 }
9218 }'
9219 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9220 # Check for a 64-bit object if we didn't find anything.
9221 if test -z "$aix_libpath"; then
9222 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9223 fi
9224 fi
9225 rm -f core conftest.err conftest.$ac_objext \
9226 conftest$ac_exeext conftest.$ac_ext
9227 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9228
9229 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9230 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"
9231 else
9232 if test "$host_cpu" = ia64; then
9233 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9234 allow_undefined_flag="-z nodefs"
9235 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"
9236 else
9237 # Determine the default libpath from the value encoded in an
9238 # empty executable.
9239 if test x$gcc_no_link = xyes; then
9240 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9241 fi
9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243 /* end confdefs.h. */
9244
9245 int
9246 main ()
9247 {
9248
9249 ;
9250 return 0;
9251 }
9252 _ACEOF
9253 if ac_fn_c_try_link "$LINENO"; then :
9254
9255 lt_aix_libpath_sed='
9256 /Import File Strings/,/^$/ {
9257 /^0/ {
9258 s/^0 *\(.*\)$/\1/
9259 p
9260 }
9261 }'
9262 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9263 # Check for a 64-bit object if we didn't find anything.
9264 if test -z "$aix_libpath"; then
9265 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9266 fi
9267 fi
9268 rm -f core conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
9270 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9271
9272 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9273 # Warning - without using the other run time loading flags,
9274 # -berok will link without error, but may produce a broken library.
9275 no_undefined_flag=' ${wl}-bernotok'
9276 allow_undefined_flag=' ${wl}-berok'
9277 if test "$with_gnu_ld" = yes; then
9278 # We only use this code for GNU lds that support --whole-archive.
9279 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9280 else
9281 # Exported symbols can be pulled into shared objects from archives
9282 whole_archive_flag_spec='$convenience'
9283 fi
9284 archive_cmds_need_lc=yes
9285 # This is similar to how AIX traditionally builds its shared libraries.
9286 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'
9287 fi
9288 fi
9289 ;;
9290
9291 amigaos*)
9292 case $host_cpu in
9293 powerpc)
9294 # see comment about AmigaOS4 .so support
9295 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9296 archive_expsym_cmds=''
9297 ;;
9298 m68k)
9299 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)'
9300 hardcode_libdir_flag_spec='-L$libdir'
9301 hardcode_minus_L=yes
9302 ;;
9303 esac
9304 ;;
9305
9306 bsdi[45]*)
9307 export_dynamic_flag_spec=-rdynamic
9308 ;;
9309
9310 cygwin* | mingw* | pw32* | cegcc*)
9311 # When not using gcc, we currently assume that we are using
9312 # Microsoft Visual C++.
9313 # hardcode_libdir_flag_spec is actually meaningless, as there is
9314 # no search path for DLLs.
9315 hardcode_libdir_flag_spec=' '
9316 allow_undefined_flag=unsupported
9317 # Tell ltmain to make .lib files, not .a files.
9318 libext=lib
9319 # Tell ltmain to make .dll files, not .so files.
9320 shrext_cmds=".dll"
9321 # FIXME: Setting linknames here is a bad hack.
9322 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9323 # The linker will automatically build a .lib file if we build a DLL.
9324 old_archive_from_new_cmds='true'
9325 # FIXME: Should let the user specify the lib program.
9326 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9327 fix_srcfile_path='`cygpath -w "$srcfile"`'
9328 enable_shared_with_static_runtimes=yes
9329 ;;
9330
9331 darwin* | rhapsody*)
9332
9333
9334 archive_cmds_need_lc=no
9335 hardcode_direct=no
9336 hardcode_automatic=yes
9337 hardcode_shlibpath_var=unsupported
9338 if test "$lt_cv_ld_force_load" = "yes"; then
9339 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\"`'
9340 else
9341 whole_archive_flag_spec=''
9342 fi
9343 link_all_deplibs=yes
9344 allow_undefined_flag="$_lt_dar_allow_undefined"
9345 case $cc_basename in
9346 ifort*) _lt_dar_can_shared=yes ;;
9347 *) _lt_dar_can_shared=$GCC ;;
9348 esac
9349 if test "$_lt_dar_can_shared" = "yes"; then
9350 output_verbose_link_cmd=func_echo_all
9351 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9352 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9353 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}"
9354 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}"
9355
9356 else
9357 ld_shlibs=no
9358 fi
9359
9360 ;;
9361
9362 dgux*)
9363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9364 hardcode_libdir_flag_spec='-L$libdir'
9365 hardcode_shlibpath_var=no
9366 ;;
9367
9368 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9369 # support. Future versions do this automatically, but an explicit c++rt0.o
9370 # does not break anything, and helps significantly (at the cost of a little
9371 # extra space).
9372 freebsd2.2*)
9373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9374 hardcode_libdir_flag_spec='-R$libdir'
9375 hardcode_direct=yes
9376 hardcode_shlibpath_var=no
9377 ;;
9378
9379 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9380 freebsd2.*)
9381 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9382 hardcode_direct=yes
9383 hardcode_minus_L=yes
9384 hardcode_shlibpath_var=no
9385 ;;
9386
9387 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9388 freebsd* | dragonfly*)
9389 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9390 hardcode_libdir_flag_spec='-R$libdir'
9391 hardcode_direct=yes
9392 hardcode_shlibpath_var=no
9393 ;;
9394
9395 hpux9*)
9396 if test "$GCC" = yes; then
9397 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'
9398 else
9399 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'
9400 fi
9401 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9402 hardcode_libdir_separator=:
9403 hardcode_direct=yes
9404
9405 # hardcode_minus_L: Not really in the search PATH,
9406 # but as the default location of the library.
9407 hardcode_minus_L=yes
9408 export_dynamic_flag_spec='${wl}-E'
9409 ;;
9410
9411 hpux10*)
9412 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9413 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9414 else
9415 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9416 fi
9417 if test "$with_gnu_ld" = no; then
9418 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9419 hardcode_libdir_flag_spec_ld='+b $libdir'
9420 hardcode_libdir_separator=:
9421 hardcode_direct=yes
9422 hardcode_direct_absolute=yes
9423 export_dynamic_flag_spec='${wl}-E'
9424 # hardcode_minus_L: Not really in the search PATH,
9425 # but as the default location of the library.
9426 hardcode_minus_L=yes
9427 fi
9428 ;;
9429
9430 hpux11*)
9431 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9432 case $host_cpu in
9433 hppa*64*)
9434 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9435 ;;
9436 ia64*)
9437 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9438 ;;
9439 *)
9440 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9441 ;;
9442 esac
9443 else
9444 case $host_cpu in
9445 hppa*64*)
9446 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9447 ;;
9448 ia64*)
9449 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9450 ;;
9451 *)
9452
9453 # Older versions of the 11.00 compiler do not understand -b yet
9454 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9456 $as_echo_n "checking if $CC understands -b... " >&6; }
9457 if ${lt_cv_prog_compiler__b+:} false; then :
9458 $as_echo_n "(cached) " >&6
9459 else
9460 lt_cv_prog_compiler__b=no
9461 save_LDFLAGS="$LDFLAGS"
9462 LDFLAGS="$LDFLAGS -b"
9463 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9464 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9465 # The linker can only warn and ignore the option if not recognized
9466 # So say no if there are warnings
9467 if test -s conftest.err; then
9468 # Append any errors to the config.log.
9469 cat conftest.err 1>&5
9470 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9472 if diff conftest.exp conftest.er2 >/dev/null; then
9473 lt_cv_prog_compiler__b=yes
9474 fi
9475 else
9476 lt_cv_prog_compiler__b=yes
9477 fi
9478 fi
9479 $RM -r conftest*
9480 LDFLAGS="$save_LDFLAGS"
9481
9482 fi
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9484 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9485
9486 if test x"$lt_cv_prog_compiler__b" = xyes; then
9487 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9488 else
9489 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9490 fi
9491
9492 ;;
9493 esac
9494 fi
9495 if test "$with_gnu_ld" = no; then
9496 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9497 hardcode_libdir_separator=:
9498
9499 case $host_cpu in
9500 hppa*64*|ia64*)
9501 hardcode_direct=no
9502 hardcode_shlibpath_var=no
9503 ;;
9504 *)
9505 hardcode_direct=yes
9506 hardcode_direct_absolute=yes
9507 export_dynamic_flag_spec='${wl}-E'
9508
9509 # hardcode_minus_L: Not really in the search PATH,
9510 # but as the default location of the library.
9511 hardcode_minus_L=yes
9512 ;;
9513 esac
9514 fi
9515 ;;
9516
9517 irix5* | irix6* | nonstopux*)
9518 if test "$GCC" = yes; then
9519 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'
9520 # Try to use the -exported_symbol ld option, if it does not
9521 # work, assume that -exports_file does not work either and
9522 # implicitly export all symbols.
9523 save_LDFLAGS="$LDFLAGS"
9524 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9525 if test x$gcc_no_link = xyes; then
9526 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9527 fi
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9530 int foo(void) {}
9531 _ACEOF
9532 if ac_fn_c_try_link "$LINENO"; then :
9533 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'
9534
9535 fi
9536 rm -f core conftest.err conftest.$ac_objext \
9537 conftest$ac_exeext conftest.$ac_ext
9538 LDFLAGS="$save_LDFLAGS"
9539 else
9540 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'
9541 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'
9542 fi
9543 archive_cmds_need_lc='no'
9544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9545 hardcode_libdir_separator=:
9546 inherit_rpath=yes
9547 link_all_deplibs=yes
9548 ;;
9549
9550 netbsd*)
9551 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9553 else
9554 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9555 fi
9556 hardcode_libdir_flag_spec='-R$libdir'
9557 hardcode_direct=yes
9558 hardcode_shlibpath_var=no
9559 ;;
9560
9561 newsos6)
9562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9563 hardcode_direct=yes
9564 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9565 hardcode_libdir_separator=:
9566 hardcode_shlibpath_var=no
9567 ;;
9568
9569 *nto* | *qnx*)
9570 ;;
9571
9572 openbsd*)
9573 if test -f /usr/libexec/ld.so; then
9574 hardcode_direct=yes
9575 hardcode_shlibpath_var=no
9576 hardcode_direct_absolute=yes
9577 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9578 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9579 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9580 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9581 export_dynamic_flag_spec='${wl}-E'
9582 else
9583 case $host_os in
9584 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9585 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9586 hardcode_libdir_flag_spec='-R$libdir'
9587 ;;
9588 *)
9589 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9590 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9591 ;;
9592 esac
9593 fi
9594 else
9595 ld_shlibs=no
9596 fi
9597 ;;
9598
9599 os2*)
9600 hardcode_libdir_flag_spec='-L$libdir'
9601 hardcode_minus_L=yes
9602 allow_undefined_flag=unsupported
9603 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'
9604 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9605 ;;
9606
9607 osf3*)
9608 if test "$GCC" = yes; then
9609 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9610 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'
9611 else
9612 allow_undefined_flag=' -expect_unresolved \*'
9613 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'
9614 fi
9615 archive_cmds_need_lc='no'
9616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9617 hardcode_libdir_separator=:
9618 ;;
9619
9620 osf4* | osf5*) # as osf3* with the addition of -msym flag
9621 if test "$GCC" = yes; then
9622 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9623 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'
9624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9625 else
9626 allow_undefined_flag=' -expect_unresolved \*'
9627 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'
9628 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~
9629 $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'
9630
9631 # Both c and cxx compiler support -rpath directly
9632 hardcode_libdir_flag_spec='-rpath $libdir'
9633 fi
9634 archive_cmds_need_lc='no'
9635 hardcode_libdir_separator=:
9636 ;;
9637
9638 solaris*)
9639 no_undefined_flag=' -z defs'
9640 if test "$GCC" = yes; then
9641 wlarc='${wl}'
9642 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9643 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9644 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9645 else
9646 case `$CC -V 2>&1` in
9647 *"Compilers 5.0"*)
9648 wlarc=''
9649 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9650 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9651 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9652 ;;
9653 *)
9654 wlarc='${wl}'
9655 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9656 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9657 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9658 ;;
9659 esac
9660 fi
9661 hardcode_libdir_flag_spec='-R$libdir'
9662 hardcode_shlibpath_var=no
9663 case $host_os in
9664 solaris2.[0-5] | solaris2.[0-5].*) ;;
9665 *)
9666 # The compiler driver will combine and reorder linker options,
9667 # but understands `-z linker_flag'. GCC discards it without `$wl',
9668 # but is careful enough not to reorder.
9669 # Supported since Solaris 2.6 (maybe 2.5.1?)
9670 if test "$GCC" = yes; then
9671 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9672 else
9673 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9674 fi
9675 ;;
9676 esac
9677 link_all_deplibs=yes
9678 ;;
9679
9680 sunos4*)
9681 if test "x$host_vendor" = xsequent; then
9682 # Use $CC to link under sequent, because it throws in some extra .o
9683 # files that make .init and .fini sections work.
9684 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9685 else
9686 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9687 fi
9688 hardcode_libdir_flag_spec='-L$libdir'
9689 hardcode_direct=yes
9690 hardcode_minus_L=yes
9691 hardcode_shlibpath_var=no
9692 ;;
9693
9694 sysv4)
9695 case $host_vendor in
9696 sni)
9697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698 hardcode_direct=yes # is this really true???
9699 ;;
9700 siemens)
9701 ## LD is ld it makes a PLAMLIB
9702 ## CC just makes a GrossModule.
9703 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9704 reload_cmds='$CC -r -o $output$reload_objs'
9705 hardcode_direct=no
9706 ;;
9707 motorola)
9708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9709 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9710 ;;
9711 esac
9712 runpath_var='LD_RUN_PATH'
9713 hardcode_shlibpath_var=no
9714 ;;
9715
9716 sysv4.3*)
9717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9718 hardcode_shlibpath_var=no
9719 export_dynamic_flag_spec='-Bexport'
9720 ;;
9721
9722 sysv4*MP*)
9723 if test -d /usr/nec; then
9724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725 hardcode_shlibpath_var=no
9726 runpath_var=LD_RUN_PATH
9727 hardcode_runpath_var=yes
9728 ld_shlibs=yes
9729 fi
9730 ;;
9731
9732 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9733 no_undefined_flag='${wl}-z,text'
9734 archive_cmds_need_lc=no
9735 hardcode_shlibpath_var=no
9736 runpath_var='LD_RUN_PATH'
9737
9738 if test "$GCC" = yes; then
9739 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9740 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9741 else
9742 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9743 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9744 fi
9745 ;;
9746
9747 sysv5* | sco3.2v5* | sco5v6*)
9748 # Note: We can NOT use -z defs as we might desire, because we do not
9749 # link with -lc, and that would cause any symbols used from libc to
9750 # always be unresolved, which means just about no library would
9751 # ever link correctly. If we're not using GNU ld we use -z text
9752 # though, which does catch some bad symbols but isn't as heavy-handed
9753 # as -z defs.
9754 no_undefined_flag='${wl}-z,text'
9755 allow_undefined_flag='${wl}-z,nodefs'
9756 archive_cmds_need_lc=no
9757 hardcode_shlibpath_var=no
9758 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9759 hardcode_libdir_separator=':'
9760 link_all_deplibs=yes
9761 export_dynamic_flag_spec='${wl}-Bexport'
9762 runpath_var='LD_RUN_PATH'
9763
9764 if test "$GCC" = yes; then
9765 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9766 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9767 else
9768 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9769 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9770 fi
9771 ;;
9772
9773 uts4*)
9774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9775 hardcode_libdir_flag_spec='-L$libdir'
9776 hardcode_shlibpath_var=no
9777 ;;
9778
9779 *)
9780 ld_shlibs=no
9781 ;;
9782 esac
9783
9784 if test x$host_vendor = xsni; then
9785 case $host in
9786 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9787 export_dynamic_flag_spec='${wl}-Blargedynsym'
9788 ;;
9789 esac
9790 fi
9791 fi
9792
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9794 $as_echo "$ld_shlibs" >&6; }
9795 test "$ld_shlibs" = no && can_build_shared=no
9796
9797 with_gnu_ld=$with_gnu_ld
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813 #
9814 # Do we need to explicitly link libc?
9815 #
9816 case "x$archive_cmds_need_lc" in
9817 x|xyes)
9818 # Assume -lc should be added
9819 archive_cmds_need_lc=yes
9820
9821 if test "$enable_shared" = yes && test "$GCC" = yes; then
9822 case $archive_cmds in
9823 *'~'*)
9824 # FIXME: we may have to deal with multi-command sequences.
9825 ;;
9826 '$CC '*)
9827 # Test whether the compiler implicitly links with -lc since on some
9828 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9829 # to ld, don't add -lc before -lgcc.
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9831 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9832 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9833 $as_echo_n "(cached) " >&6
9834 else
9835 $RM conftest*
9836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9837
9838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9839 (eval $ac_compile) 2>&5
9840 ac_status=$?
9841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9842 test $ac_status = 0; } 2>conftest.err; then
9843 soname=conftest
9844 lib=conftest
9845 libobjs=conftest.$ac_objext
9846 deplibs=
9847 wl=$lt_prog_compiler_wl
9848 pic_flag=$lt_prog_compiler_pic
9849 compiler_flags=-v
9850 linker_flags=-v
9851 verstring=
9852 output_objdir=.
9853 libname=conftest
9854 lt_save_allow_undefined_flag=$allow_undefined_flag
9855 allow_undefined_flag=
9856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9857 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9858 ac_status=$?
9859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9860 test $ac_status = 0; }
9861 then
9862 lt_cv_archive_cmds_need_lc=no
9863 else
9864 lt_cv_archive_cmds_need_lc=yes
9865 fi
9866 allow_undefined_flag=$lt_save_allow_undefined_flag
9867 else
9868 cat conftest.err 1>&5
9869 fi
9870 $RM conftest*
9871
9872 fi
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9874 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9875 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9876 ;;
9877 esac
9878 fi
9879 ;;
9880 esac
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10039 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10040
10041 if test "$GCC" = yes; then
10042 case $host_os in
10043 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10044 *) lt_awk_arg="/^libraries:/" ;;
10045 esac
10046 case $host_os in
10047 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10048 *) lt_sed_strip_eq="s,=/,/,g" ;;
10049 esac
10050 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10051 case $lt_search_path_spec in
10052 *\;*)
10053 # if the path contains ";" then we assume it to be the separator
10054 # otherwise default to the standard path separator (i.e. ":") - it is
10055 # assumed that no part of a normal pathname contains ";" but that should
10056 # okay in the real world where ";" in dirpaths is itself problematic.
10057 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10058 ;;
10059 *)
10060 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10061 ;;
10062 esac
10063 # Ok, now we have the path, separated by spaces, we can step through it
10064 # and add multilib dir if necessary.
10065 lt_tmp_lt_search_path_spec=
10066 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10067 for lt_sys_path in $lt_search_path_spec; do
10068 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10069 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10070 else
10071 test -d "$lt_sys_path" && \
10072 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10073 fi
10074 done
10075 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10076 BEGIN {RS=" "; FS="/|\n";} {
10077 lt_foo="";
10078 lt_count=0;
10079 for (lt_i = NF; lt_i > 0; lt_i--) {
10080 if ($lt_i != "" && $lt_i != ".") {
10081 if ($lt_i == "..") {
10082 lt_count++;
10083 } else {
10084 if (lt_count == 0) {
10085 lt_foo="/" $lt_i lt_foo;
10086 } else {
10087 lt_count--;
10088 }
10089 }
10090 }
10091 }
10092 if (lt_foo != "") { lt_freq[lt_foo]++; }
10093 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10094 }'`
10095 # AWK program above erroneously prepends '/' to C:/dos/paths
10096 # for these hosts.
10097 case $host_os in
10098 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10099 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10100 esac
10101 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10102 else
10103 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10104 fi
10105 library_names_spec=
10106 libname_spec='lib$name'
10107 soname_spec=
10108 shrext_cmds=".so"
10109 postinstall_cmds=
10110 postuninstall_cmds=
10111 finish_cmds=
10112 finish_eval=
10113 shlibpath_var=
10114 shlibpath_overrides_runpath=unknown
10115 version_type=none
10116 dynamic_linker="$host_os ld.so"
10117 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10118 need_lib_prefix=unknown
10119 hardcode_into_libs=no
10120
10121 # when you set need_version to no, make sure it does not cause -set_version
10122 # flags to be left without arguments
10123 need_version=unknown
10124
10125 case $host_os in
10126 aix3*)
10127 version_type=linux
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10129 shlibpath_var=LIBPATH
10130
10131 # AIX 3 has no versioning support, so we append a major version to the name.
10132 soname_spec='${libname}${release}${shared_ext}$major'
10133 ;;
10134
10135 aix[4-9]*)
10136 version_type=linux
10137 need_lib_prefix=no
10138 need_version=no
10139 hardcode_into_libs=yes
10140 if test "$host_cpu" = ia64; then
10141 # AIX 5 supports IA64
10142 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10143 shlibpath_var=LD_LIBRARY_PATH
10144 else
10145 # With GCC up to 2.95.x, collect2 would create an import file
10146 # for dependence libraries. The import file would start with
10147 # the line `#! .'. This would cause the generated library to
10148 # depend on `.', always an invalid library. This was fixed in
10149 # development snapshots of GCC prior to 3.0.
10150 case $host_os in
10151 aix4 | aix4.[01] | aix4.[01].*)
10152 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10153 echo ' yes '
10154 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10155 :
10156 else
10157 can_build_shared=no
10158 fi
10159 ;;
10160 esac
10161 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10162 # soname into executable. Probably we can add versioning support to
10163 # collect2, so additional links can be useful in future.
10164 if test "$aix_use_runtimelinking" = yes; then
10165 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10166 # instead of lib<name>.a to let people know that these are not
10167 # typical AIX shared libraries.
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169 else
10170 # We preserve .a as extension for shared libraries through AIX4.2
10171 # and later when we are not doing run time linking.
10172 library_names_spec='${libname}${release}.a $libname.a'
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 fi
10175 shlibpath_var=LIBPATH
10176 fi
10177 ;;
10178
10179 amigaos*)
10180 case $host_cpu in
10181 powerpc)
10182 # Since July 2007 AmigaOS4 officially supports .so libraries.
10183 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185 ;;
10186 m68k)
10187 library_names_spec='$libname.ixlibrary $libname.a'
10188 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10189 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'
10190 ;;
10191 esac
10192 ;;
10193
10194 beos*)
10195 library_names_spec='${libname}${shared_ext}'
10196 dynamic_linker="$host_os ld.so"
10197 shlibpath_var=LIBRARY_PATH
10198 ;;
10199
10200 bsdi[45]*)
10201 version_type=linux
10202 need_version=no
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10204 soname_spec='${libname}${release}${shared_ext}$major'
10205 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10206 shlibpath_var=LD_LIBRARY_PATH
10207 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10208 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10209 # the default ld.so.conf also contains /usr/contrib/lib and
10210 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10211 # libtool to hard-code these into programs
10212 ;;
10213
10214 cygwin* | mingw* | pw32* | cegcc*)
10215 version_type=windows
10216 shrext_cmds=".dll"
10217 need_version=no
10218 need_lib_prefix=no
10219
10220 case $GCC,$host_os in
10221 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10222 library_names_spec='$libname.dll.a'
10223 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10224 postinstall_cmds='base_file=`basename \${file}`~
10225 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10226 dldir=$destdir/`dirname \$dlpath`~
10227 test -d \$dldir || mkdir -p \$dldir~
10228 $install_prog $dir/$dlname \$dldir/$dlname~
10229 chmod a+x \$dldir/$dlname~
10230 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10231 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10232 fi'
10233 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10234 dlpath=$dir/\$dldll~
10235 $RM \$dlpath'
10236 shlibpath_overrides_runpath=yes
10237
10238 case $host_os in
10239 cygwin*)
10240 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10241 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10242
10243 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10244 ;;
10245 mingw* | cegcc*)
10246 # MinGW DLLs use traditional 'lib' prefix
10247 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10248 ;;
10249 pw32*)
10250 # pw32 DLLs use 'pw' prefix rather than 'lib'
10251 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10252 ;;
10253 esac
10254 ;;
10255
10256 *)
10257 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10258 ;;
10259 esac
10260 dynamic_linker='Win32 ld.exe'
10261 # FIXME: first we should search . and the directory the executable is in
10262 shlibpath_var=PATH
10263 ;;
10264
10265 darwin* | rhapsody*)
10266 dynamic_linker="$host_os dyld"
10267 version_type=darwin
10268 need_lib_prefix=no
10269 need_version=no
10270 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10271 soname_spec='${libname}${release}${major}$shared_ext'
10272 shlibpath_overrides_runpath=yes
10273 shlibpath_var=DYLD_LIBRARY_PATH
10274 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10275
10276 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10277 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10278 ;;
10279
10280 dgux*)
10281 version_type=linux
10282 need_lib_prefix=no
10283 need_version=no
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10285 soname_spec='${libname}${release}${shared_ext}$major'
10286 shlibpath_var=LD_LIBRARY_PATH
10287 ;;
10288
10289 freebsd* | dragonfly*)
10290 # DragonFly does not have aout. When/if they implement a new
10291 # versioning mechanism, adjust this.
10292 if test -x /usr/bin/objformat; then
10293 objformat=`/usr/bin/objformat`
10294 else
10295 case $host_os in
10296 freebsd[23].*) objformat=aout ;;
10297 *) objformat=elf ;;
10298 esac
10299 fi
10300 version_type=freebsd-$objformat
10301 case $version_type in
10302 freebsd-elf*)
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10304 need_version=no
10305 need_lib_prefix=no
10306 ;;
10307 freebsd-*)
10308 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10309 need_version=yes
10310 ;;
10311 esac
10312 shlibpath_var=LD_LIBRARY_PATH
10313 case $host_os in
10314 freebsd2.*)
10315 shlibpath_overrides_runpath=yes
10316 ;;
10317 freebsd3.[01]* | freebsdelf3.[01]*)
10318 shlibpath_overrides_runpath=yes
10319 hardcode_into_libs=yes
10320 ;;
10321 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10322 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10323 shlibpath_overrides_runpath=no
10324 hardcode_into_libs=yes
10325 ;;
10326 *) # from 4.6 on, and DragonFly
10327 shlibpath_overrides_runpath=yes
10328 hardcode_into_libs=yes
10329 ;;
10330 esac
10331 ;;
10332
10333 haiku*)
10334 version_type=linux
10335 need_lib_prefix=no
10336 need_version=no
10337 dynamic_linker="$host_os runtime_loader"
10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10339 soname_spec='${libname}${release}${shared_ext}$major'
10340 shlibpath_var=LIBRARY_PATH
10341 shlibpath_overrides_runpath=yes
10342 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10343 hardcode_into_libs=yes
10344 ;;
10345
10346 hpux9* | hpux10* | hpux11*)
10347 # Give a soname corresponding to the major version so that dld.sl refuses to
10348 # link against other versions.
10349 version_type=sunos
10350 need_lib_prefix=no
10351 need_version=no
10352 case $host_cpu in
10353 ia64*)
10354 shrext_cmds='.so'
10355 hardcode_into_libs=yes
10356 dynamic_linker="$host_os dld.so"
10357 shlibpath_var=LD_LIBRARY_PATH
10358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360 soname_spec='${libname}${release}${shared_ext}$major'
10361 if test "X$HPUX_IA64_MODE" = X32; then
10362 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10363 else
10364 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10365 fi
10366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10367 ;;
10368 hppa*64*)
10369 shrext_cmds='.sl'
10370 hardcode_into_libs=yes
10371 dynamic_linker="$host_os dld.sl"
10372 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10375 soname_spec='${libname}${release}${shared_ext}$major'
10376 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10378 ;;
10379 *)
10380 shrext_cmds='.sl'
10381 dynamic_linker="$host_os dld.sl"
10382 shlibpath_var=SHLIB_PATH
10383 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385 soname_spec='${libname}${release}${shared_ext}$major'
10386 ;;
10387 esac
10388 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10389 postinstall_cmds='chmod 555 $lib'
10390 # or fails outright, so override atomically:
10391 install_override_mode=555
10392 ;;
10393
10394 interix[3-9]*)
10395 version_type=linux
10396 need_lib_prefix=no
10397 need_version=no
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10399 soname_spec='${libname}${release}${shared_ext}$major'
10400 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10401 shlibpath_var=LD_LIBRARY_PATH
10402 shlibpath_overrides_runpath=no
10403 hardcode_into_libs=yes
10404 ;;
10405
10406 irix5* | irix6* | nonstopux*)
10407 case $host_os in
10408 nonstopux*) version_type=nonstopux ;;
10409 *)
10410 if test "$lt_cv_prog_gnu_ld" = yes; then
10411 version_type=linux
10412 else
10413 version_type=irix
10414 fi ;;
10415 esac
10416 need_lib_prefix=no
10417 need_version=no
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10420 case $host_os in
10421 irix5* | nonstopux*)
10422 libsuff= shlibsuff=
10423 ;;
10424 *)
10425 case $LD in # libtool.m4 will add one of these switches to LD
10426 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10427 libsuff= shlibsuff= libmagic=32-bit;;
10428 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10429 libsuff=32 shlibsuff=N32 libmagic=N32;;
10430 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10431 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10432 *) libsuff= shlibsuff= libmagic=never-match;;
10433 esac
10434 ;;
10435 esac
10436 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10437 shlibpath_overrides_runpath=no
10438 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10439 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10440 hardcode_into_libs=yes
10441 ;;
10442
10443 # No shared lib support for Linux oldld, aout, or coff.
10444 linux*oldld* | linux*aout* | linux*coff*)
10445 dynamic_linker=no
10446 ;;
10447
10448 # This must be Linux ELF.
10449
10450 # uclinux* changes (here and below) have been submitted to the libtool
10451 # project, but have not yet been accepted: they are GCC-local changes
10452 # for the time being. (See
10453 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10454 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10455 version_type=linux
10456 need_lib_prefix=no
10457 need_version=no
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10461 shlibpath_var=LD_LIBRARY_PATH
10462 shlibpath_overrides_runpath=no
10463
10464 # Some binutils ld are patched to set DT_RUNPATH
10465 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10466 $as_echo_n "(cached) " >&6
10467 else
10468 lt_cv_shlibpath_overrides_runpath=no
10469 save_LDFLAGS=$LDFLAGS
10470 save_libdir=$libdir
10471 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10472 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10473 if test x$gcc_no_link = xyes; then
10474 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10475 fi
10476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477 /* end confdefs.h. */
10478
10479 int
10480 main ()
10481 {
10482
10483 ;
10484 return 0;
10485 }
10486 _ACEOF
10487 if ac_fn_c_try_link "$LINENO"; then :
10488 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10489 lt_cv_shlibpath_overrides_runpath=yes
10490 fi
10491 fi
10492 rm -f core conftest.err conftest.$ac_objext \
10493 conftest$ac_exeext conftest.$ac_ext
10494 LDFLAGS=$save_LDFLAGS
10495 libdir=$save_libdir
10496
10497 fi
10498
10499 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10500
10501 # This implies no fast_install, which is unacceptable.
10502 # Some rework will be needed to allow for fast_install
10503 # before this can be enabled.
10504 hardcode_into_libs=yes
10505
10506 # Append ld.so.conf contents to the search path
10507 if test -f /etc/ld.so.conf; then
10508 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' ' '`
10509 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10510 fi
10511
10512 # We used to test for /lib/ld.so.1 and disable shared libraries on
10513 # powerpc, because MkLinux only supported shared libraries with the
10514 # GNU dynamic linker. Since this was broken with cross compilers,
10515 # most powerpc-linux boxes support dynamic linking these days and
10516 # people can always --disable-shared, the test was removed, and we
10517 # assume the GNU/Linux dynamic linker is in use.
10518 dynamic_linker='GNU/Linux ld.so'
10519 ;;
10520
10521 netbsd*)
10522 version_type=sunos
10523 need_lib_prefix=no
10524 need_version=no
10525 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10528 dynamic_linker='NetBSD (a.out) ld.so'
10529 else
10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10531 soname_spec='${libname}${release}${shared_ext}$major'
10532 dynamic_linker='NetBSD ld.elf_so'
10533 fi
10534 shlibpath_var=LD_LIBRARY_PATH
10535 shlibpath_overrides_runpath=yes
10536 hardcode_into_libs=yes
10537 ;;
10538
10539 newsos6)
10540 version_type=linux
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10542 shlibpath_var=LD_LIBRARY_PATH
10543 shlibpath_overrides_runpath=yes
10544 ;;
10545
10546 *nto* | *qnx*)
10547 version_type=qnx
10548 need_lib_prefix=no
10549 need_version=no
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551 soname_spec='${libname}${release}${shared_ext}$major'
10552 shlibpath_var=LD_LIBRARY_PATH
10553 shlibpath_overrides_runpath=no
10554 hardcode_into_libs=yes
10555 dynamic_linker='ldqnx.so'
10556 ;;
10557
10558 openbsd*)
10559 version_type=sunos
10560 sys_lib_dlsearch_path_spec="/usr/lib"
10561 need_lib_prefix=no
10562 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10563 case $host_os in
10564 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10565 *) need_version=no ;;
10566 esac
10567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10569 shlibpath_var=LD_LIBRARY_PATH
10570 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10571 case $host_os in
10572 openbsd2.[89] | openbsd2.[89].*)
10573 shlibpath_overrides_runpath=no
10574 ;;
10575 *)
10576 shlibpath_overrides_runpath=yes
10577 ;;
10578 esac
10579 else
10580 shlibpath_overrides_runpath=yes
10581 fi
10582 ;;
10583
10584 os2*)
10585 libname_spec='$name'
10586 shrext_cmds=".dll"
10587 need_lib_prefix=no
10588 library_names_spec='$libname${shared_ext} $libname.a'
10589 dynamic_linker='OS/2 ld.exe'
10590 shlibpath_var=LIBPATH
10591 ;;
10592
10593 osf3* | osf4* | osf5*)
10594 version_type=osf
10595 need_lib_prefix=no
10596 need_version=no
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10601 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10602 ;;
10603
10604 rdos*)
10605 dynamic_linker=no
10606 ;;
10607
10608 solaris*)
10609 version_type=linux
10610 need_lib_prefix=no
10611 need_version=no
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 soname_spec='${libname}${release}${shared_ext}$major'
10614 shlibpath_var=LD_LIBRARY_PATH
10615 shlibpath_overrides_runpath=yes
10616 hardcode_into_libs=yes
10617 # ldd complains unless libraries are executable
10618 postinstall_cmds='chmod +x $lib'
10619 ;;
10620
10621 sunos4*)
10622 version_type=sunos
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10624 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10625 shlibpath_var=LD_LIBRARY_PATH
10626 shlibpath_overrides_runpath=yes
10627 if test "$with_gnu_ld" = yes; then
10628 need_lib_prefix=no
10629 fi
10630 need_version=yes
10631 ;;
10632
10633 sysv4 | sysv4.3*)
10634 version_type=linux
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636 soname_spec='${libname}${release}${shared_ext}$major'
10637 shlibpath_var=LD_LIBRARY_PATH
10638 case $host_vendor in
10639 sni)
10640 shlibpath_overrides_runpath=no
10641 need_lib_prefix=no
10642 runpath_var=LD_RUN_PATH
10643 ;;
10644 siemens)
10645 need_lib_prefix=no
10646 ;;
10647 motorola)
10648 need_lib_prefix=no
10649 need_version=no
10650 shlibpath_overrides_runpath=no
10651 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10652 ;;
10653 esac
10654 ;;
10655
10656 sysv4*MP*)
10657 if test -d /usr/nec ;then
10658 version_type=linux
10659 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10660 soname_spec='$libname${shared_ext}.$major'
10661 shlibpath_var=LD_LIBRARY_PATH
10662 fi
10663 ;;
10664
10665 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10666 version_type=freebsd-elf
10667 need_lib_prefix=no
10668 need_version=no
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10670 soname_spec='${libname}${release}${shared_ext}$major'
10671 shlibpath_var=LD_LIBRARY_PATH
10672 shlibpath_overrides_runpath=yes
10673 hardcode_into_libs=yes
10674 if test "$with_gnu_ld" = yes; then
10675 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10676 else
10677 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10678 case $host_os in
10679 sco3.2v5*)
10680 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10681 ;;
10682 esac
10683 fi
10684 sys_lib_dlsearch_path_spec='/usr/lib'
10685 ;;
10686
10687 tpf*)
10688 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10689 version_type=linux
10690 need_lib_prefix=no
10691 need_version=no
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693 shlibpath_var=LD_LIBRARY_PATH
10694 shlibpath_overrides_runpath=no
10695 hardcode_into_libs=yes
10696 ;;
10697
10698 uts4*)
10699 version_type=linux
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 soname_spec='${libname}${release}${shared_ext}$major'
10702 shlibpath_var=LD_LIBRARY_PATH
10703 ;;
10704
10705 # Shared libraries for VwWorks, >= 7 only at this stage
10706 # and (fpic) still incompatible with "large" code models
10707 # in a few configurations. Only for RTP mode in any case,
10708 # and upon explicit request at configure time.
10709 vxworks7*)
10710 dynamic_linker=no
10711 case ${with_multisubdir}-${enable_shared} in
10712 *large*)
10713 ;;
10714 *mrtp*-yes)
10715 version_type=linux
10716 need_lib_prefix=no
10717 need_version=no
10718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10719 soname_spec='${libname}${release}${shared_ext}$major'
10720 dynamic_linker="$host_os module_loader"
10721 ;;
10722 esac
10723 ;;
10724 *)
10725 dynamic_linker=no
10726 ;;
10727 esac
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10729 $as_echo "$dynamic_linker" >&6; }
10730 test "$dynamic_linker" = no && can_build_shared=no
10731
10732 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10733 if test "$GCC" = yes; then
10734 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10735 fi
10736
10737 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10738 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10739 fi
10740 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10741 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10742 fi
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10836 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10837 hardcode_action=
10838 if test -n "$hardcode_libdir_flag_spec" ||
10839 test -n "$runpath_var" ||
10840 test "X$hardcode_automatic" = "Xyes" ; then
10841
10842 # We can hardcode non-existent directories.
10843 if test "$hardcode_direct" != no &&
10844 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10845 # have to relink, otherwise we might link with an installed library
10846 # when we should be linking with a yet-to-be-installed one
10847 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10848 test "$hardcode_minus_L" != no; then
10849 # Linking always hardcodes the temporary library directory.
10850 hardcode_action=relink
10851 else
10852 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10853 hardcode_action=immediate
10854 fi
10855 else
10856 # We cannot hardcode anything, or else we can only hardcode existing
10857 # directories.
10858 hardcode_action=unsupported
10859 fi
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10861 $as_echo "$hardcode_action" >&6; }
10862
10863 if test "$hardcode_action" = relink ||
10864 test "$inherit_rpath" = yes; then
10865 # Fast installation is not supported
10866 enable_fast_install=no
10867 elif test "$shlibpath_overrides_runpath" = yes ||
10868 test "$enable_shared" = no; then
10869 # Fast installation is not necessary
10870 enable_fast_install=needless
10871 fi
10872
10873
10874
10875
10876
10877
10878 if test "x$enable_dlopen" != xyes; then
10879 enable_dlopen=unknown
10880 enable_dlopen_self=unknown
10881 enable_dlopen_self_static=unknown
10882 else
10883 lt_cv_dlopen=no
10884 lt_cv_dlopen_libs=
10885
10886 case $host_os in
10887 beos*)
10888 lt_cv_dlopen="load_add_on"
10889 lt_cv_dlopen_libs=
10890 lt_cv_dlopen_self=yes
10891 ;;
10892
10893 mingw* | pw32* | cegcc*)
10894 lt_cv_dlopen="LoadLibrary"
10895 lt_cv_dlopen_libs=
10896 ;;
10897
10898 cygwin*)
10899 lt_cv_dlopen="dlopen"
10900 lt_cv_dlopen_libs=
10901 ;;
10902
10903 darwin*)
10904 # if libdl is installed we need to link against it
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10906 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10907 if ${ac_cv_lib_dl_dlopen+:} false; then :
10908 $as_echo_n "(cached) " >&6
10909 else
10910 ac_check_lib_save_LIBS=$LIBS
10911 LIBS="-ldl $LIBS"
10912 if test x$gcc_no_link = xyes; then
10913 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10914 fi
10915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10916 /* end confdefs.h. */
10917
10918 /* Override any GCC internal prototype to avoid an error.
10919 Use char because int might match the return type of a GCC
10920 builtin and then its argument prototype would still apply. */
10921 #ifdef __cplusplus
10922 extern "C"
10923 #endif
10924 char dlopen ();
10925 int
10926 main ()
10927 {
10928 return dlopen ();
10929 ;
10930 return 0;
10931 }
10932 _ACEOF
10933 if ac_fn_c_try_link "$LINENO"; then :
10934 ac_cv_lib_dl_dlopen=yes
10935 else
10936 ac_cv_lib_dl_dlopen=no
10937 fi
10938 rm -f core conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext conftest.$ac_ext
10940 LIBS=$ac_check_lib_save_LIBS
10941 fi
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10943 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10944 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10945 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10946 else
10947
10948 lt_cv_dlopen="dyld"
10949 lt_cv_dlopen_libs=
10950 lt_cv_dlopen_self=yes
10951
10952 fi
10953
10954 ;;
10955
10956 *)
10957 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10958 if test "x$ac_cv_func_shl_load" = xyes; then :
10959 lt_cv_dlopen="shl_load"
10960 else
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10962 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10963 if ${ac_cv_lib_dld_shl_load+:} false; then :
10964 $as_echo_n "(cached) " >&6
10965 else
10966 ac_check_lib_save_LIBS=$LIBS
10967 LIBS="-ldld $LIBS"
10968 if test x$gcc_no_link = xyes; then
10969 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10970 fi
10971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10972 /* end confdefs.h. */
10973
10974 /* Override any GCC internal prototype to avoid an error.
10975 Use char because int might match the return type of a GCC
10976 builtin and then its argument prototype would still apply. */
10977 #ifdef __cplusplus
10978 extern "C"
10979 #endif
10980 char shl_load ();
10981 int
10982 main ()
10983 {
10984 return shl_load ();
10985 ;
10986 return 0;
10987 }
10988 _ACEOF
10989 if ac_fn_c_try_link "$LINENO"; then :
10990 ac_cv_lib_dld_shl_load=yes
10991 else
10992 ac_cv_lib_dld_shl_load=no
10993 fi
10994 rm -f core conftest.err conftest.$ac_objext \
10995 conftest$ac_exeext conftest.$ac_ext
10996 LIBS=$ac_check_lib_save_LIBS
10997 fi
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10999 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11000 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11001 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11002 else
11003 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11004 if test "x$ac_cv_func_dlopen" = xyes; then :
11005 lt_cv_dlopen="dlopen"
11006 else
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11008 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11009 if ${ac_cv_lib_dl_dlopen+:} false; then :
11010 $as_echo_n "(cached) " >&6
11011 else
11012 ac_check_lib_save_LIBS=$LIBS
11013 LIBS="-ldl $LIBS"
11014 if test x$gcc_no_link = xyes; then
11015 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11016 fi
11017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h. */
11019
11020 /* Override any GCC internal prototype to avoid an error.
11021 Use char because int might match the return type of a GCC
11022 builtin and then its argument prototype would still apply. */
11023 #ifdef __cplusplus
11024 extern "C"
11025 #endif
11026 char dlopen ();
11027 int
11028 main ()
11029 {
11030 return dlopen ();
11031 ;
11032 return 0;
11033 }
11034 _ACEOF
11035 if ac_fn_c_try_link "$LINENO"; then :
11036 ac_cv_lib_dl_dlopen=yes
11037 else
11038 ac_cv_lib_dl_dlopen=no
11039 fi
11040 rm -f core conftest.err conftest.$ac_objext \
11041 conftest$ac_exeext conftest.$ac_ext
11042 LIBS=$ac_check_lib_save_LIBS
11043 fi
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11045 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11046 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11047 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11048 else
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11050 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11051 if ${ac_cv_lib_svld_dlopen+:} false; then :
11052 $as_echo_n "(cached) " >&6
11053 else
11054 ac_check_lib_save_LIBS=$LIBS
11055 LIBS="-lsvld $LIBS"
11056 if test x$gcc_no_link = xyes; then
11057 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11058 fi
11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11061
11062 /* Override any GCC internal prototype to avoid an error.
11063 Use char because int might match the return type of a GCC
11064 builtin and then its argument prototype would still apply. */
11065 #ifdef __cplusplus
11066 extern "C"
11067 #endif
11068 char dlopen ();
11069 int
11070 main ()
11071 {
11072 return dlopen ();
11073 ;
11074 return 0;
11075 }
11076 _ACEOF
11077 if ac_fn_c_try_link "$LINENO"; then :
11078 ac_cv_lib_svld_dlopen=yes
11079 else
11080 ac_cv_lib_svld_dlopen=no
11081 fi
11082 rm -f core conftest.err conftest.$ac_objext \
11083 conftest$ac_exeext conftest.$ac_ext
11084 LIBS=$ac_check_lib_save_LIBS
11085 fi
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11087 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11088 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11089 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11090 else
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11092 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11093 if ${ac_cv_lib_dld_dld_link+:} false; then :
11094 $as_echo_n "(cached) " >&6
11095 else
11096 ac_check_lib_save_LIBS=$LIBS
11097 LIBS="-ldld $LIBS"
11098 if test x$gcc_no_link = xyes; then
11099 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11100 fi
11101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102 /* end confdefs.h. */
11103
11104 /* Override any GCC internal prototype to avoid an error.
11105 Use char because int might match the return type of a GCC
11106 builtin and then its argument prototype would still apply. */
11107 #ifdef __cplusplus
11108 extern "C"
11109 #endif
11110 char dld_link ();
11111 int
11112 main ()
11113 {
11114 return dld_link ();
11115 ;
11116 return 0;
11117 }
11118 _ACEOF
11119 if ac_fn_c_try_link "$LINENO"; then :
11120 ac_cv_lib_dld_dld_link=yes
11121 else
11122 ac_cv_lib_dld_dld_link=no
11123 fi
11124 rm -f core conftest.err conftest.$ac_objext \
11125 conftest$ac_exeext conftest.$ac_ext
11126 LIBS=$ac_check_lib_save_LIBS
11127 fi
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11129 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11130 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11131 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11132 fi
11133
11134
11135 fi
11136
11137
11138 fi
11139
11140
11141 fi
11142
11143
11144 fi
11145
11146
11147 fi
11148
11149 ;;
11150 esac
11151
11152 if test "x$lt_cv_dlopen" != xno; then
11153 enable_dlopen=yes
11154 else
11155 enable_dlopen=no
11156 fi
11157
11158 case $lt_cv_dlopen in
11159 dlopen)
11160 save_CPPFLAGS="$CPPFLAGS"
11161 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11162
11163 save_LDFLAGS="$LDFLAGS"
11164 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11165
11166 save_LIBS="$LIBS"
11167 LIBS="$lt_cv_dlopen_libs $LIBS"
11168
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11170 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11171 if ${lt_cv_dlopen_self+:} false; then :
11172 $as_echo_n "(cached) " >&6
11173 else
11174 if test "$cross_compiling" = yes; then :
11175 lt_cv_dlopen_self=cross
11176 else
11177 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11178 lt_status=$lt_dlunknown
11179 cat > conftest.$ac_ext <<_LT_EOF
11180 #line 11180 "configure"
11181 #include "confdefs.h"
11182
11183 #if HAVE_DLFCN_H
11184 #include <dlfcn.h>
11185 #endif
11186
11187 #include <stdio.h>
11188
11189 #ifdef RTLD_GLOBAL
11190 # define LT_DLGLOBAL RTLD_GLOBAL
11191 #else
11192 # ifdef DL_GLOBAL
11193 # define LT_DLGLOBAL DL_GLOBAL
11194 # else
11195 # define LT_DLGLOBAL 0
11196 # endif
11197 #endif
11198
11199 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11200 find out it does not work in some platform. */
11201 #ifndef LT_DLLAZY_OR_NOW
11202 # ifdef RTLD_LAZY
11203 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11204 # else
11205 # ifdef DL_LAZY
11206 # define LT_DLLAZY_OR_NOW DL_LAZY
11207 # else
11208 # ifdef RTLD_NOW
11209 # define LT_DLLAZY_OR_NOW RTLD_NOW
11210 # else
11211 # ifdef DL_NOW
11212 # define LT_DLLAZY_OR_NOW DL_NOW
11213 # else
11214 # define LT_DLLAZY_OR_NOW 0
11215 # endif
11216 # endif
11217 # endif
11218 # endif
11219 #endif
11220
11221 /* When -fvisbility=hidden is used, assume the code has been annotated
11222 correspondingly for the symbols needed. */
11223 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11224 void fnord () __attribute__((visibility("default")));
11225 #endif
11226
11227 void fnord () { int i=42; }
11228 int main ()
11229 {
11230 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11231 int status = $lt_dlunknown;
11232
11233 if (self)
11234 {
11235 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11236 else
11237 {
11238 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11239 else puts (dlerror ());
11240 }
11241 /* dlclose (self); */
11242 }
11243 else
11244 puts (dlerror ());
11245
11246 return status;
11247 }
11248 _LT_EOF
11249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11250 (eval $ac_link) 2>&5
11251 ac_status=$?
11252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11253 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11254 (./conftest; exit; ) >&5 2>/dev/null
11255 lt_status=$?
11256 case x$lt_status in
11257 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11258 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11259 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11260 esac
11261 else :
11262 # compilation failed
11263 lt_cv_dlopen_self=no
11264 fi
11265 fi
11266 rm -fr conftest*
11267
11268
11269 fi
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11271 $as_echo "$lt_cv_dlopen_self" >&6; }
11272
11273 if test "x$lt_cv_dlopen_self" = xyes; then
11274 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11276 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11277 if ${lt_cv_dlopen_self_static+:} false; then :
11278 $as_echo_n "(cached) " >&6
11279 else
11280 if test "$cross_compiling" = yes; then :
11281 lt_cv_dlopen_self_static=cross
11282 else
11283 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11284 lt_status=$lt_dlunknown
11285 cat > conftest.$ac_ext <<_LT_EOF
11286 #line 11286 "configure"
11287 #include "confdefs.h"
11288
11289 #if HAVE_DLFCN_H
11290 #include <dlfcn.h>
11291 #endif
11292
11293 #include <stdio.h>
11294
11295 #ifdef RTLD_GLOBAL
11296 # define LT_DLGLOBAL RTLD_GLOBAL
11297 #else
11298 # ifdef DL_GLOBAL
11299 # define LT_DLGLOBAL DL_GLOBAL
11300 # else
11301 # define LT_DLGLOBAL 0
11302 # endif
11303 #endif
11304
11305 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11306 find out it does not work in some platform. */
11307 #ifndef LT_DLLAZY_OR_NOW
11308 # ifdef RTLD_LAZY
11309 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11310 # else
11311 # ifdef DL_LAZY
11312 # define LT_DLLAZY_OR_NOW DL_LAZY
11313 # else
11314 # ifdef RTLD_NOW
11315 # define LT_DLLAZY_OR_NOW RTLD_NOW
11316 # else
11317 # ifdef DL_NOW
11318 # define LT_DLLAZY_OR_NOW DL_NOW
11319 # else
11320 # define LT_DLLAZY_OR_NOW 0
11321 # endif
11322 # endif
11323 # endif
11324 # endif
11325 #endif
11326
11327 /* When -fvisbility=hidden is used, assume the code has been annotated
11328 correspondingly for the symbols needed. */
11329 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11330 void fnord () __attribute__((visibility("default")));
11331 #endif
11332
11333 void fnord () { int i=42; }
11334 int main ()
11335 {
11336 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11337 int status = $lt_dlunknown;
11338
11339 if (self)
11340 {
11341 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11342 else
11343 {
11344 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11345 else puts (dlerror ());
11346 }
11347 /* dlclose (self); */
11348 }
11349 else
11350 puts (dlerror ());
11351
11352 return status;
11353 }
11354 _LT_EOF
11355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11356 (eval $ac_link) 2>&5
11357 ac_status=$?
11358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11359 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11360 (./conftest; exit; ) >&5 2>/dev/null
11361 lt_status=$?
11362 case x$lt_status in
11363 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11364 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11365 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11366 esac
11367 else :
11368 # compilation failed
11369 lt_cv_dlopen_self_static=no
11370 fi
11371 fi
11372 rm -fr conftest*
11373
11374
11375 fi
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11377 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11378 fi
11379
11380 CPPFLAGS="$save_CPPFLAGS"
11381 LDFLAGS="$save_LDFLAGS"
11382 LIBS="$save_LIBS"
11383 ;;
11384 esac
11385
11386 case $lt_cv_dlopen_self in
11387 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11388 *) enable_dlopen_self=unknown ;;
11389 esac
11390
11391 case $lt_cv_dlopen_self_static in
11392 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11393 *) enable_dlopen_self_static=unknown ;;
11394 esac
11395 fi
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413 striplib=
11414 old_striplib=
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11416 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11417 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11418 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11419 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11421 $as_echo "yes" >&6; }
11422 else
11423 # FIXME - insert some real tests, host_os isn't really good enough
11424 case $host_os in
11425 darwin*)
11426 if test -n "$STRIP" ; then
11427 striplib="$STRIP -x"
11428 old_striplib="$STRIP -S"
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11430 $as_echo "yes" >&6; }
11431 else
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433 $as_echo "no" >&6; }
11434 fi
11435 ;;
11436 *)
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11438 $as_echo "no" >&6; }
11439 ;;
11440 esac
11441 fi
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454 # Report which library types will actually be built
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11456 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11458 $as_echo "$can_build_shared" >&6; }
11459
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11461 $as_echo_n "checking whether to build shared libraries... " >&6; }
11462 test "$can_build_shared" = "no" && enable_shared=no
11463
11464 # On AIX, shared libraries and static libraries use the same namespace, and
11465 # are all built from PIC.
11466 case $host_os in
11467 aix3*)
11468 test "$enable_shared" = yes && enable_static=no
11469 if test -n "$RANLIB"; then
11470 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11471 postinstall_cmds='$RANLIB $lib'
11472 fi
11473 ;;
11474
11475 aix[4-9]*)
11476 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11477 test "$enable_shared" = yes && enable_static=no
11478 fi
11479 ;;
11480 esac
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11482 $as_echo "$enable_shared" >&6; }
11483
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11485 $as_echo_n "checking whether to build static libraries... " >&6; }
11486 # Make sure either enable_shared or enable_static is yes.
11487 test "$enable_shared" = yes || enable_static=yes
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11489 $as_echo "$enable_static" >&6; }
11490
11491
11492
11493
11494 fi
11495 ac_ext=c
11496 ac_cpp='$CPP $CPPFLAGS'
11497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11500
11501 CC="$lt_save_CC"
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515 ac_config_commands="$ac_config_commands libtool"
11516
11517
11518
11519
11520 # Only expand once:
11521
11522
11523 if test x$enable_darwin_at_rpath = xyes; then
11524 ENABLE_DARWIN_AT_RPATH_TRUE=
11525 ENABLE_DARWIN_AT_RPATH_FALSE='#'
11526 else
11527 ENABLE_DARWIN_AT_RPATH_TRUE='#'
11528 ENABLE_DARWIN_AT_RPATH_FALSE=
11529 fi
11530
11531
11532 # Find CPP now so that any conditional tests below won't do it and
11533 # thereby make the resulting definitions conditional.
11534 ac_ext=c
11535 ac_cpp='$CPP $CPPFLAGS'
11536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11540 $as_echo_n "checking how to run the C preprocessor... " >&6; }
11541 # On Suns, sometimes $CPP names a directory.
11542 if test -n "$CPP" && test -d "$CPP"; then
11543 CPP=
11544 fi
11545 if test -z "$CPP"; then
11546 if ${ac_cv_prog_CPP+:} false; then :
11547 $as_echo_n "(cached) " >&6
11548 else
11549 # Double quotes because CPP needs to be expanded
11550 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11551 do
11552 ac_preproc_ok=false
11553 for ac_c_preproc_warn_flag in '' yes
11554 do
11555 # Use a header file that comes with gcc, so configuring glibc
11556 # with a fresh cross-compiler works.
11557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11558 # <limits.h> exists even on freestanding compilers.
11559 # On the NeXT, cc -E runs the code through the compiler's parser,
11560 # not just through cpp. "Syntax error" is here to catch this case.
11561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562 /* end confdefs.h. */
11563 #ifdef __STDC__
11564 # include <limits.h>
11565 #else
11566 # include <assert.h>
11567 #endif
11568 Syntax error
11569 _ACEOF
11570 if ac_fn_c_try_cpp "$LINENO"; then :
11571
11572 else
11573 # Broken: fails on valid input.
11574 continue
11575 fi
11576 rm -f conftest.err conftest.i conftest.$ac_ext
11577
11578 # OK, works on sane cases. Now check whether nonexistent headers
11579 # can be detected and how.
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h. */
11582 #include <ac_nonexistent.h>
11583 _ACEOF
11584 if ac_fn_c_try_cpp "$LINENO"; then :
11585 # Broken: success on invalid input.
11586 continue
11587 else
11588 # Passes both tests.
11589 ac_preproc_ok=:
11590 break
11591 fi
11592 rm -f conftest.err conftest.i conftest.$ac_ext
11593
11594 done
11595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11596 rm -f conftest.i conftest.err conftest.$ac_ext
11597 if $ac_preproc_ok; then :
11598 break
11599 fi
11600
11601 done
11602 ac_cv_prog_CPP=$CPP
11603
11604 fi
11605 CPP=$ac_cv_prog_CPP
11606 else
11607 ac_cv_prog_CPP=$CPP
11608 fi
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11610 $as_echo "$CPP" >&6; }
11611 ac_preproc_ok=false
11612 for ac_c_preproc_warn_flag in '' yes
11613 do
11614 # Use a header file that comes with gcc, so configuring glibc
11615 # with a fresh cross-compiler works.
11616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11617 # <limits.h> exists even on freestanding compilers.
11618 # On the NeXT, cc -E runs the code through the compiler's parser,
11619 # not just through cpp. "Syntax error" is here to catch this case.
11620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h. */
11622 #ifdef __STDC__
11623 # include <limits.h>
11624 #else
11625 # include <assert.h>
11626 #endif
11627 Syntax error
11628 _ACEOF
11629 if ac_fn_c_try_cpp "$LINENO"; then :
11630
11631 else
11632 # Broken: fails on valid input.
11633 continue
11634 fi
11635 rm -f conftest.err conftest.i conftest.$ac_ext
11636
11637 # OK, works on sane cases. Now check whether nonexistent headers
11638 # can be detected and how.
11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h. */
11641 #include <ac_nonexistent.h>
11642 _ACEOF
11643 if ac_fn_c_try_cpp "$LINENO"; then :
11644 # Broken: success on invalid input.
11645 continue
11646 else
11647 # Passes both tests.
11648 ac_preproc_ok=:
11649 break
11650 fi
11651 rm -f conftest.err conftest.i conftest.$ac_ext
11652
11653 done
11654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11655 rm -f conftest.i conftest.err conftest.$ac_ext
11656 if $ac_preproc_ok; then :
11657
11658 else
11659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11661 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
11662 See \`config.log' for more details" "$LINENO" 5; }
11663 fi
11664
11665 ac_ext=c
11666 ac_cpp='$CPP $CPPFLAGS'
11667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11670
11671
11672 if test -n "$with_cross_host"; then
11673 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
11674 # may not work correctly, because the compiler may not be able to
11675 # link executables.
11676
11677 # We assume newlib. This lets us hard-code the functions we know
11678 # we'll have.
11679 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
11680
11681 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
11682
11683 else
11684
11685
11686
11687 for ac_header in $ac_header_list
11688 do :
11689 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11690 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11691 "
11692 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11693 cat >>confdefs.h <<_ACEOF
11694 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11695 _ACEOF
11696
11697 fi
11698
11699 done
11700
11701
11702
11703
11704
11705
11706
11707
11708 for ac_func in getpagesize
11709 do :
11710 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11711 if test "x$ac_cv_func_getpagesize" = xyes; then :
11712 cat >>confdefs.h <<_ACEOF
11713 #define HAVE_GETPAGESIZE 1
11714 _ACEOF
11715
11716 fi
11717 done
11718
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11720 $as_echo_n "checking for working mmap... " >&6; }
11721 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
11722 $as_echo_n "(cached) " >&6
11723 else
11724 if test "$cross_compiling" = yes; then :
11725 ac_cv_func_mmap_fixed_mapped=no
11726 else
11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11729 $ac_includes_default
11730 /* malloc might have been renamed as rpl_malloc. */
11731 #undef malloc
11732
11733 /* Thanks to Mike Haertel and Jim Avera for this test.
11734 Here is a matrix of mmap possibilities:
11735 mmap private not fixed
11736 mmap private fixed at somewhere currently unmapped
11737 mmap private fixed at somewhere already mapped
11738 mmap shared not fixed
11739 mmap shared fixed at somewhere currently unmapped
11740 mmap shared fixed at somewhere already mapped
11741 For private mappings, we should verify that changes cannot be read()
11742 back from the file, nor mmap's back from the file at a different
11743 address. (There have been systems where private was not correctly
11744 implemented like the infamous i386 svr4.0, and systems where the
11745 VM page cache was not coherent with the file system buffer cache
11746 like early versions of FreeBSD and possibly contemporary NetBSD.)
11747 For shared mappings, we should conversely verify that changes get
11748 propagated back to all the places they're supposed to be.
11749
11750 Grep wants private fixed already mapped.
11751 The main things grep needs to know about mmap are:
11752 * does it exist and is it safe to write into the mmap'd area
11753 * how to use it (BSD variants) */
11754
11755 #include <fcntl.h>
11756 #include <sys/mman.h>
11757
11758 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11759 char *malloc ();
11760 #endif
11761
11762 /* This mess was copied from the GNU getpagesize.h. */
11763 #ifndef HAVE_GETPAGESIZE
11764 # ifdef _SC_PAGESIZE
11765 # define getpagesize() sysconf(_SC_PAGESIZE)
11766 # else /* no _SC_PAGESIZE */
11767 # ifdef HAVE_SYS_PARAM_H
11768 # include <sys/param.h>
11769 # ifdef EXEC_PAGESIZE
11770 # define getpagesize() EXEC_PAGESIZE
11771 # else /* no EXEC_PAGESIZE */
11772 # ifdef NBPG
11773 # define getpagesize() NBPG * CLSIZE
11774 # ifndef CLSIZE
11775 # define CLSIZE 1
11776 # endif /* no CLSIZE */
11777 # else /* no NBPG */
11778 # ifdef NBPC
11779 # define getpagesize() NBPC
11780 # else /* no NBPC */
11781 # ifdef PAGESIZE
11782 # define getpagesize() PAGESIZE
11783 # endif /* PAGESIZE */
11784 # endif /* no NBPC */
11785 # endif /* no NBPG */
11786 # endif /* no EXEC_PAGESIZE */
11787 # else /* no HAVE_SYS_PARAM_H */
11788 # define getpagesize() 8192 /* punt totally */
11789 # endif /* no HAVE_SYS_PARAM_H */
11790 # endif /* no _SC_PAGESIZE */
11791
11792 #endif /* no HAVE_GETPAGESIZE */
11793
11794 int
11795 main ()
11796 {
11797 char *data, *data2, *data3;
11798 const char *cdata2;
11799 int i, pagesize;
11800 int fd, fd2;
11801
11802 pagesize = getpagesize ();
11803
11804 /* First, make a file with some known garbage in it. */
11805 data = (char *) malloc (pagesize);
11806 if (!data)
11807 return 1;
11808 for (i = 0; i < pagesize; ++i)
11809 *(data + i) = rand ();
11810 umask (0);
11811 fd = creat ("conftest.mmap", 0600);
11812 if (fd < 0)
11813 return 2;
11814 if (write (fd, data, pagesize) != pagesize)
11815 return 3;
11816 close (fd);
11817
11818 /* Next, check that the tail of a page is zero-filled. File must have
11819 non-zero length, otherwise we risk SIGBUS for entire page. */
11820 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
11821 if (fd2 < 0)
11822 return 4;
11823 cdata2 = "";
11824 if (write (fd2, cdata2, 1) != 1)
11825 return 5;
11826 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
11827 if (data2 == MAP_FAILED)
11828 return 6;
11829 for (i = 0; i < pagesize; ++i)
11830 if (*(data2 + i))
11831 return 7;
11832 close (fd2);
11833 if (munmap (data2, pagesize))
11834 return 8;
11835
11836 /* Next, try to mmap the file at a fixed address which already has
11837 something else allocated at it. If we can, also make sure that
11838 we see the same garbage. */
11839 fd = open ("conftest.mmap", O_RDWR);
11840 if (fd < 0)
11841 return 9;
11842 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11843 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11844 return 10;
11845 for (i = 0; i < pagesize; ++i)
11846 if (*(data + i) != *(data2 + i))
11847 return 11;
11848
11849 /* Finally, make sure that changes to the mapped area do not
11850 percolate back to the file as seen by read(). (This is a bug on
11851 some variants of i386 svr4.0.) */
11852 for (i = 0; i < pagesize; ++i)
11853 *(data2 + i) = *(data2 + i) + 1;
11854 data3 = (char *) malloc (pagesize);
11855 if (!data3)
11856 return 12;
11857 if (read (fd, data3, pagesize) != pagesize)
11858 return 13;
11859 for (i = 0; i < pagesize; ++i)
11860 if (*(data + i) != *(data3 + i))
11861 return 14;
11862 close (fd);
11863 return 0;
11864 }
11865 _ACEOF
11866 if ac_fn_c_try_run "$LINENO"; then :
11867 ac_cv_func_mmap_fixed_mapped=yes
11868 else
11869 ac_cv_func_mmap_fixed_mapped=no
11870 fi
11871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11872 conftest.$ac_objext conftest.beam conftest.$ac_ext
11873 fi
11874
11875 fi
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11877 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11878 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11879
11880 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11881
11882 fi
11883 rm -f conftest.mmap conftest.txt
11884
11885 for ac_func in memcpy strerror
11886 do :
11887 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11888 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11889 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11890 cat >>confdefs.h <<_ACEOF
11891 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11892 _ACEOF
11893
11894 fi
11895 done
11896
11897 fi
11898
11899 for ac_header in unistd.h
11900 do :
11901 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11902 if test "x$ac_cv_header_unistd_h" = xyes; then :
11903 cat >>confdefs.h <<_ACEOF
11904 #define HAVE_UNISTD_H 1
11905 _ACEOF
11906
11907 fi
11908
11909 done
11910
11911
11912
11913 # Check whether --with-toolexeclibdir was given.
11914 if test "${with_toolexeclibdir+set}" = set; then :
11915 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
11916 /)
11917 ;;
11918 */)
11919 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
11920 ;;
11921 esac
11922 else
11923 with_toolexeclibdir=no
11924 fi
11925
11926
11927
11928 if test -n "$with_cross_host" &&
11929 test x"$with_cross_host" != x"no"; then
11930 toolexecdir='$(exec_prefix)/$(target_alias)'
11931 case ${with_toolexeclibdir} in
11932 no)
11933 toolexeclibdir='$(toolexecdir)/lib'
11934 ;;
11935 *)
11936 toolexeclibdir=${with_toolexeclibdir}
11937 ;;
11938 esac
11939 else
11940 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11941 toolexeclibdir='$(libdir)'
11942 fi
11943 if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
11944 multiosdir=/`$CC -print-multi-os-directory`
11945 case $multiosdir in
11946 /.) multiosdir= ;; # Avoid trailing /.
11947 esac
11948 else
11949 multiosdir=
11950 fi
11951 toolexeclibdir=${toolexeclibdir}${multiosdir}
11952
11953
11954
11955 if test -n "$with_target_subdir"; then
11956 TARGET_LIBRARY_TRUE=
11957 TARGET_LIBRARY_FALSE='#'
11958 else
11959 TARGET_LIBRARY_TRUE='#'
11960 TARGET_LIBRARY_FALSE=
11961 fi
11962
11963
11964 if test "${multilib}" = "yes"; then
11965 multilib_arg="--enable-multilib"
11966 else
11967 multilib_arg=
11968 fi
11969
11970 # Enable --enable-host-shared.
11971 # Check whether --enable-host-shared was given.
11972 if test "${enable_host_shared+set}" = set; then :
11973 enableval=$enable_host_shared;
11974 fi
11975
11976
11977
11978 # Enable --enable-host-pie.
11979 # Check whether --enable-host-pie was given.
11980 if test "${enable_host_pie+set}" = set; then :
11981 enableval=$enable_host_pie;
11982 fi
11983
11984
11985
11986 if test x$enable_host_shared = xyes; then
11987 PICFLAG=-fPIC
11988 elif test x$enable_host_pie = xyes; then
11989 PICFLAG=-fPIE
11990 else
11991 PICFLAG=
11992 fi
11993
11994
11995 ac_config_files="$ac_config_files Makefile"
11996
11997 cat >confcache <<\_ACEOF
11998 # This file is a shell script that caches the results of configure
11999 # tests run on this system so they can be shared between configure
12000 # scripts and configure runs, see configure's option --config-cache.
12001 # It is not useful on other systems. If it contains results you don't
12002 # want to keep, you may remove or edit it.
12003 #
12004 # config.status only pays attention to the cache file if you give it
12005 # the --recheck option to rerun configure.
12006 #
12007 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12008 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12009 # following values.
12010
12011 _ACEOF
12012
12013 # The following way of writing the cache mishandles newlines in values,
12014 # but we know of no workaround that is simple, portable, and efficient.
12015 # So, we kill variables containing newlines.
12016 # Ultrix sh set writes to stderr and can't be redirected directly,
12017 # and sets the high bit in the cache file unless we assign to the vars.
12018 (
12019 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12020 eval ac_val=\$$ac_var
12021 case $ac_val in #(
12022 *${as_nl}*)
12023 case $ac_var in #(
12024 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12025 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12026 esac
12027 case $ac_var in #(
12028 _ | IFS | as_nl) ;; #(
12029 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12030 *) { eval $ac_var=; unset $ac_var;} ;;
12031 esac ;;
12032 esac
12033 done
12034
12035 (set) 2>&1 |
12036 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12037 *${as_nl}ac_space=\ *)
12038 # `set' does not quote correctly, so add quotes: double-quote
12039 # substitution turns \\\\ into \\, and sed turns \\ into \.
12040 sed -n \
12041 "s/'/'\\\\''/g;
12042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12043 ;; #(
12044 *)
12045 # `set' quotes correctly as required by POSIX, so do not add quotes.
12046 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12047 ;;
12048 esac |
12049 sort
12050 ) |
12051 sed '
12052 /^ac_cv_env_/b end
12053 t clear
12054 :clear
12055 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12056 t end
12057 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12058 :end' >>confcache
12059 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12060 if test -w "$cache_file"; then
12061 if test "x$cache_file" != "x/dev/null"; then
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12063 $as_echo "$as_me: updating cache $cache_file" >&6;}
12064 if test ! -f "$cache_file" || test -h "$cache_file"; then
12065 cat confcache >"$cache_file"
12066 else
12067 case $cache_file in #(
12068 */* | ?:*)
12069 mv -f confcache "$cache_file"$$ &&
12070 mv -f "$cache_file"$$ "$cache_file" ;; #(
12071 *)
12072 mv -f confcache "$cache_file" ;;
12073 esac
12074 fi
12075 fi
12076 else
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12078 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12079 fi
12080 fi
12081 rm -f confcache
12082
12083 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12084 # Let make expand exec_prefix.
12085 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12086
12087 # Transform confdefs.h into DEFS.
12088 # Protect against shell expansion while executing Makefile rules.
12089 # Protect against Makefile macro expansion.
12090 #
12091 # If the first sed substitution is executed (which looks for macros that
12092 # take arguments), then branch to the quote section. Otherwise,
12093 # look for a macro that doesn't take arguments.
12094 ac_script='
12095 :mline
12096 /\\$/{
12097 N
12098 s,\\\n,,
12099 b mline
12100 }
12101 t clear
12102 :clear
12103 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
12104 t quote
12105 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
12106 t quote
12107 b any
12108 :quote
12109 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12110 s/\[/\\&/g
12111 s/\]/\\&/g
12112 s/\$/$$/g
12113 H
12114 :any
12115 ${
12116 g
12117 s/^\n//
12118 s/\n/ /g
12119 p
12120 }
12121 '
12122 DEFS=`sed -n "$ac_script" confdefs.h`
12123
12124
12125 ac_libobjs=
12126 ac_ltlibobjs=
12127 U=
12128 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12129 # 1. Remove the extension, and $U if already installed.
12130 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12131 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12132 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12133 # will be set to the directory where LIBOBJS objects are built.
12134 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12135 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12136 done
12137 LIBOBJS=$ac_libobjs
12138
12139 LTLIBOBJS=$ac_ltlibobjs
12140
12141
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12143 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12144 if test -n "$am_sleep_pid"; then
12145 # Hide warnings about reused PIDs.
12146 wait $am_sleep_pid 2>/dev/null
12147 fi
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12149 $as_echo "done" >&6; }
12150 if test -n "$EXEEXT"; then
12151 am__EXEEXT_TRUE=
12152 am__EXEEXT_FALSE='#'
12153 else
12154 am__EXEEXT_TRUE='#'
12155 am__EXEEXT_FALSE=
12156 fi
12157
12158 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12159 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12161 fi
12162 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12163 as_fn_error $? "conditional \"AMDEP\" was never defined.
12164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12165 fi
12166 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12167 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12169 fi
12170 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
12171 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
12172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12173 fi
12174 if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
12175 as_fn_error $? "conditional \"TARGET_LIBRARY\" was never defined.
12176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12177 fi
12178
12179 : "${CONFIG_STATUS=./config.status}"
12180 ac_write_fail=0
12181 ac_clean_files_save=$ac_clean_files
12182 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12184 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12185 as_write_fail=0
12186 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12187 #! $SHELL
12188 # Generated by $as_me.
12189 # Run this file to recreate the current configuration.
12190 # Compiler output produced by configure, useful for debugging
12191 # configure, is in config.log if it exists.
12192
12193 debug=false
12194 ac_cs_recheck=false
12195 ac_cs_silent=false
12196
12197 SHELL=\${CONFIG_SHELL-$SHELL}
12198 export SHELL
12199 _ASEOF
12200 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12201 ## -------------------- ##
12202 ## M4sh Initialization. ##
12203 ## -------------------- ##
12204
12205 # Be more Bourne compatible
12206 DUALCASE=1; export DUALCASE # for MKS sh
12207 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12208 emulate sh
12209 NULLCMD=:
12210 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12211 # is contrary to our usage. Disable this feature.
12212 alias -g '${1+"$@"}'='"$@"'
12213 setopt NO_GLOB_SUBST
12214 else
12215 case `(set -o) 2>/dev/null` in #(
12216 *posix*) :
12217 set -o posix ;; #(
12218 *) :
12219 ;;
12220 esac
12221 fi
12222
12223
12224 as_nl='
12225 '
12226 export as_nl
12227 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12228 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12229 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12230 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12231 # Prefer a ksh shell builtin over an external printf program on Solaris,
12232 # but without wasting forks for bash or zsh.
12233 if test -z "$BASH_VERSION$ZSH_VERSION" \
12234 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12235 as_echo='print -r --'
12236 as_echo_n='print -rn --'
12237 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12238 as_echo='printf %s\n'
12239 as_echo_n='printf %s'
12240 else
12241 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12242 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12243 as_echo_n='/usr/ucb/echo -n'
12244 else
12245 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12246 as_echo_n_body='eval
12247 arg=$1;
12248 case $arg in #(
12249 *"$as_nl"*)
12250 expr "X$arg" : "X\\(.*\\)$as_nl";
12251 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12252 esac;
12253 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12254 '
12255 export as_echo_n_body
12256 as_echo_n='sh -c $as_echo_n_body as_echo'
12257 fi
12258 export as_echo_body
12259 as_echo='sh -c $as_echo_body as_echo'
12260 fi
12261
12262 # The user is always right.
12263 if test "${PATH_SEPARATOR+set}" != set; then
12264 PATH_SEPARATOR=:
12265 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12266 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12267 PATH_SEPARATOR=';'
12268 }
12269 fi
12270
12271
12272 # IFS
12273 # We need space, tab and new line, in precisely that order. Quoting is
12274 # there to prevent editors from complaining about space-tab.
12275 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12276 # splitting by setting IFS to empty value.)
12277 IFS=" "" $as_nl"
12278
12279 # Find who we are. Look in the path if we contain no directory separator.
12280 as_myself=
12281 case $0 in #((
12282 *[\\/]* ) as_myself=$0 ;;
12283 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284 for as_dir in $PATH
12285 do
12286 IFS=$as_save_IFS
12287 test -z "$as_dir" && as_dir=.
12288 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12289 done
12290 IFS=$as_save_IFS
12291
12292 ;;
12293 esac
12294 # We did not find ourselves, most probably we were run as `sh COMMAND'
12295 # in which case we are not to be found in the path.
12296 if test "x$as_myself" = x; then
12297 as_myself=$0
12298 fi
12299 if test ! -f "$as_myself"; then
12300 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12301 exit 1
12302 fi
12303
12304 # Unset variables that we do not need and which cause bugs (e.g. in
12305 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12306 # suppresses any "Segmentation fault" message there. '((' could
12307 # trigger a bug in pdksh 5.2.14.
12308 for as_var in BASH_ENV ENV MAIL MAILPATH
12309 do eval test x\${$as_var+set} = xset \
12310 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12311 done
12312 PS1='$ '
12313 PS2='> '
12314 PS4='+ '
12315
12316 # NLS nuisances.
12317 LC_ALL=C
12318 export LC_ALL
12319 LANGUAGE=C
12320 export LANGUAGE
12321
12322 # CDPATH.
12323 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12324
12325
12326 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12327 # ----------------------------------------
12328 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12329 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12330 # script with STATUS, using 1 if that was 0.
12331 as_fn_error ()
12332 {
12333 as_status=$1; test $as_status -eq 0 && as_status=1
12334 if test "$4"; then
12335 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12336 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12337 fi
12338 $as_echo "$as_me: error: $2" >&2
12339 as_fn_exit $as_status
12340 } # as_fn_error
12341
12342
12343 # as_fn_set_status STATUS
12344 # -----------------------
12345 # Set $? to STATUS, without forking.
12346 as_fn_set_status ()
12347 {
12348 return $1
12349 } # as_fn_set_status
12350
12351 # as_fn_exit STATUS
12352 # -----------------
12353 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12354 as_fn_exit ()
12355 {
12356 set +e
12357 as_fn_set_status $1
12358 exit $1
12359 } # as_fn_exit
12360
12361 # as_fn_unset VAR
12362 # ---------------
12363 # Portably unset VAR.
12364 as_fn_unset ()
12365 {
12366 { eval $1=; unset $1;}
12367 }
12368 as_unset=as_fn_unset
12369 # as_fn_append VAR VALUE
12370 # ----------------------
12371 # Append the text in VALUE to the end of the definition contained in VAR. Take
12372 # advantage of any shell optimizations that allow amortized linear growth over
12373 # repeated appends, instead of the typical quadratic growth present in naive
12374 # implementations.
12375 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12376 eval 'as_fn_append ()
12377 {
12378 eval $1+=\$2
12379 }'
12380 else
12381 as_fn_append ()
12382 {
12383 eval $1=\$$1\$2
12384 }
12385 fi # as_fn_append
12386
12387 # as_fn_arith ARG...
12388 # ------------------
12389 # Perform arithmetic evaluation on the ARGs, and store the result in the
12390 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12391 # must be portable across $(()) and expr.
12392 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12393 eval 'as_fn_arith ()
12394 {
12395 as_val=$(( $* ))
12396 }'
12397 else
12398 as_fn_arith ()
12399 {
12400 as_val=`expr "$@" || test $? -eq 1`
12401 }
12402 fi # as_fn_arith
12403
12404
12405 if expr a : '\(a\)' >/dev/null 2>&1 &&
12406 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12407 as_expr=expr
12408 else
12409 as_expr=false
12410 fi
12411
12412 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12413 as_basename=basename
12414 else
12415 as_basename=false
12416 fi
12417
12418 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12419 as_dirname=dirname
12420 else
12421 as_dirname=false
12422 fi
12423
12424 as_me=`$as_basename -- "$0" ||
12425 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12426 X"$0" : 'X\(//\)$' \| \
12427 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12428 $as_echo X/"$0" |
12429 sed '/^.*\/\([^/][^/]*\)\/*$/{
12430 s//\1/
12431 q
12432 }
12433 /^X\/\(\/\/\)$/{
12434 s//\1/
12435 q
12436 }
12437 /^X\/\(\/\).*/{
12438 s//\1/
12439 q
12440 }
12441 s/.*/./; q'`
12442
12443 # Avoid depending upon Character Ranges.
12444 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12445 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12446 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12447 as_cr_digits='0123456789'
12448 as_cr_alnum=$as_cr_Letters$as_cr_digits
12449
12450 ECHO_C= ECHO_N= ECHO_T=
12451 case `echo -n x` in #(((((
12452 -n*)
12453 case `echo 'xy\c'` in
12454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12455 xy) ECHO_C='\c';;
12456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12457 ECHO_T=' ';;
12458 esac;;
12459 *)
12460 ECHO_N='-n';;
12461 esac
12462
12463 rm -f conf$$ conf$$.exe conf$$.file
12464 if test -d conf$$.dir; then
12465 rm -f conf$$.dir/conf$$.file
12466 else
12467 rm -f conf$$.dir
12468 mkdir conf$$.dir 2>/dev/null
12469 fi
12470 if (echo >conf$$.file) 2>/dev/null; then
12471 if ln -s conf$$.file conf$$ 2>/dev/null; then
12472 as_ln_s='ln -s'
12473 # ... but there are two gotchas:
12474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12476 # In both cases, we have to default to `cp -pR'.
12477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12478 as_ln_s='cp -pR'
12479 elif ln conf$$.file conf$$ 2>/dev/null; then
12480 as_ln_s=ln
12481 else
12482 as_ln_s='cp -pR'
12483 fi
12484 else
12485 as_ln_s='cp -pR'
12486 fi
12487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12488 rmdir conf$$.dir 2>/dev/null
12489
12490
12491 # as_fn_mkdir_p
12492 # -------------
12493 # Create "$as_dir" as a directory, including parents if necessary.
12494 as_fn_mkdir_p ()
12495 {
12496
12497 case $as_dir in #(
12498 -*) as_dir=./$as_dir;;
12499 esac
12500 test -d "$as_dir" || eval $as_mkdir_p || {
12501 as_dirs=
12502 while :; do
12503 case $as_dir in #(
12504 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12505 *) as_qdir=$as_dir;;
12506 esac
12507 as_dirs="'$as_qdir' $as_dirs"
12508 as_dir=`$as_dirname -- "$as_dir" ||
12509 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12510 X"$as_dir" : 'X\(//\)[^/]' \| \
12511 X"$as_dir" : 'X\(//\)$' \| \
12512 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12513 $as_echo X"$as_dir" |
12514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12515 s//\1/
12516 q
12517 }
12518 /^X\(\/\/\)[^/].*/{
12519 s//\1/
12520 q
12521 }
12522 /^X\(\/\/\)$/{
12523 s//\1/
12524 q
12525 }
12526 /^X\(\/\).*/{
12527 s//\1/
12528 q
12529 }
12530 s/.*/./; q'`
12531 test -d "$as_dir" && break
12532 done
12533 test -z "$as_dirs" || eval "mkdir $as_dirs"
12534 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12535
12536
12537 } # as_fn_mkdir_p
12538 if mkdir -p . 2>/dev/null; then
12539 as_mkdir_p='mkdir -p "$as_dir"'
12540 else
12541 test -d ./-p && rmdir ./-p
12542 as_mkdir_p=false
12543 fi
12544
12545
12546 # as_fn_executable_p FILE
12547 # -----------------------
12548 # Test if FILE is an executable regular file.
12549 as_fn_executable_p ()
12550 {
12551 test -f "$1" && test -x "$1"
12552 } # as_fn_executable_p
12553 as_test_x='test -x'
12554 as_executable_p=as_fn_executable_p
12555
12556 # Sed expression to map a string onto a valid CPP name.
12557 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12558
12559 # Sed expression to map a string onto a valid variable name.
12560 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12561
12562
12563 exec 6>&1
12564 ## ----------------------------------- ##
12565 ## Main body of $CONFIG_STATUS script. ##
12566 ## ----------------------------------- ##
12567 _ASEOF
12568 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12569
12570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12571 # Save the log message, to keep $0 and so on meaningful, and to
12572 # report actual input values of CONFIG_FILES etc. instead of their
12573 # values after options handling.
12574 ac_log="
12575 This file was extended by zlib $as_me 1.3.1, which was
12576 generated by GNU Autoconf 2.69. Invocation command line was
12577
12578 CONFIG_FILES = $CONFIG_FILES
12579 CONFIG_HEADERS = $CONFIG_HEADERS
12580 CONFIG_LINKS = $CONFIG_LINKS
12581 CONFIG_COMMANDS = $CONFIG_COMMANDS
12582 $ $0 $@
12583
12584 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12585 "
12586
12587 _ACEOF
12588
12589 case $ac_config_files in *"
12590 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12591 esac
12592
12593
12594
12595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12596 # Files that config.status was made for.
12597 config_files="$ac_config_files"
12598 config_commands="$ac_config_commands"
12599
12600 _ACEOF
12601
12602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12603 ac_cs_usage="\
12604 \`$as_me' instantiates files and other configuration actions
12605 from templates according to the current configuration. Unless the files
12606 and actions are specified as TAGs, all are instantiated by default.
12607
12608 Usage: $0 [OPTION]... [TAG]...
12609
12610 -h, --help print this help, then exit
12611 -V, --version print version number and configuration settings, then exit
12612 --config print configuration, then exit
12613 -q, --quiet, --silent
12614 do not print progress messages
12615 -d, --debug don't remove temporary files
12616 --recheck update $as_me by reconfiguring in the same conditions
12617 --file=FILE[:TEMPLATE]
12618 instantiate the configuration file FILE
12619
12620 Configuration files:
12621 $config_files
12622
12623 Configuration commands:
12624 $config_commands
12625
12626 Report bugs to the package provider."
12627
12628 _ACEOF
12629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12630 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12631 ac_cs_version="\\
12632 zlib config.status 1.3.1
12633 configured by $0, generated by GNU Autoconf 2.69,
12634 with options \\"\$ac_cs_config\\"
12635
12636 Copyright (C) 2012 Free Software Foundation, Inc.
12637 This config.status script is free software; the Free Software Foundation
12638 gives unlimited permission to copy, distribute and modify it."
12639
12640 ac_pwd='$ac_pwd'
12641 srcdir='$srcdir'
12642 INSTALL='$INSTALL'
12643 MKDIR_P='$MKDIR_P'
12644 AWK='$AWK'
12645 test -n "\$AWK" || AWK=awk
12646 _ACEOF
12647
12648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12649 # The default lists apply if the user does not specify any file.
12650 ac_need_defaults=:
12651 while test $# != 0
12652 do
12653 case $1 in
12654 --*=?*)
12655 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12656 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12657 ac_shift=:
12658 ;;
12659 --*=)
12660 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12661 ac_optarg=
12662 ac_shift=:
12663 ;;
12664 *)
12665 ac_option=$1
12666 ac_optarg=$2
12667 ac_shift=shift
12668 ;;
12669 esac
12670
12671 case $ac_option in
12672 # Handling of the options.
12673 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12674 ac_cs_recheck=: ;;
12675 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12676 $as_echo "$ac_cs_version"; exit ;;
12677 --config | --confi | --conf | --con | --co | --c )
12678 $as_echo "$ac_cs_config"; exit ;;
12679 --debug | --debu | --deb | --de | --d | -d )
12680 debug=: ;;
12681 --file | --fil | --fi | --f )
12682 $ac_shift
12683 case $ac_optarg in
12684 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12685 '') as_fn_error $? "missing file argument" ;;
12686 esac
12687 as_fn_append CONFIG_FILES " '$ac_optarg'"
12688 ac_need_defaults=false;;
12689 --he | --h | --help | --hel | -h )
12690 $as_echo "$ac_cs_usage"; exit ;;
12691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12692 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12693 ac_cs_silent=: ;;
12694
12695 # This is an error.
12696 -*) as_fn_error $? "unrecognized option: \`$1'
12697 Try \`$0 --help' for more information." ;;
12698
12699 *) as_fn_append ac_config_targets " $1"
12700 ac_need_defaults=false ;;
12701
12702 esac
12703 shift
12704 done
12705
12706 ac_configure_extra_args=
12707
12708 if $ac_cs_silent; then
12709 exec 6>/dev/null
12710 ac_configure_extra_args="$ac_configure_extra_args --silent"
12711 fi
12712
12713 _ACEOF
12714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12715 if \$ac_cs_recheck; then
12716 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12717 shift
12718 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12719 CONFIG_SHELL='$SHELL'
12720 export CONFIG_SHELL
12721 exec "\$@"
12722 fi
12723
12724 _ACEOF
12725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12726 exec 5>>config.log
12727 {
12728 echo
12729 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12730 ## Running $as_me. ##
12731 _ASBOX
12732 $as_echo "$ac_log"
12733 } >&5
12734
12735 _ACEOF
12736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12737 #
12738 # INIT-COMMANDS
12739 #
12740
12741 srcdir="$srcdir"
12742 host="$host"
12743 target="$target"
12744 with_multisubdir="$with_multisubdir"
12745 with_multisrctop="$with_multisrctop"
12746 with_target_subdir="$with_target_subdir"
12747 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12748 multi_basedir="$multi_basedir"
12749 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12750 CC="$CC"
12751 CXX="$CXX"
12752 GFORTRAN="$GFORTRAN"
12753 GDC="$GDC"
12754 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12755
12756
12757 # The HP-UX ksh and POSIX shell print the target directory to stdout
12758 # if CDPATH is set.
12759 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12760
12761 sed_quote_subst='$sed_quote_subst'
12762 double_quote_subst='$double_quote_subst'
12763 delay_variable_subst='$delay_variable_subst'
12764 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12765 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12766 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12767 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12768 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12769 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12770 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12771 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12772 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12773 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12774 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12775 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12776 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12777 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12778 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12779 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12780 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12781 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12782 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12783 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12784 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12785 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12786 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12787 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12788 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12789 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12790 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12791 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12792 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12793 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12794 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12795 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12796 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12797 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12798 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12799 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12800 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12801 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12802 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12803 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12804 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12805 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12806 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12807 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12808 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12809 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12810 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12811 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12812 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"`'
12813 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12814 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12815 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12816 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12817 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12818 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12819 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12820 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12821 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12822 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12823 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12824 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12825 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12826 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12827 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12828 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12829 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12830 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12831 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12832 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12833 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12834 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12835 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12836 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12837 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12838 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12839 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12840 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12841 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12842 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12843 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12844 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12845 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12846 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12847 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12848 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12849 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12850 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12851 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12852 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12853 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12854 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12855 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12856 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12857 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12858 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12859 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12860 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12861 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12862 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12863 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12864 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12865 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12866 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12867 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12868 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12869 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12870 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12871 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12872 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12873 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12874 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12875 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12876 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12877 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12878 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12879 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12880 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12881 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12882 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12883 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12884
12885 LTCC='$LTCC'
12886 LTCFLAGS='$LTCFLAGS'
12887 compiler='$compiler_DEFAULT'
12888
12889 # A function that is used when there is no print builtin or printf.
12890 func_fallback_echo ()
12891 {
12892 eval 'cat <<_LTECHO_EOF
12893 \$1
12894 _LTECHO_EOF'
12895 }
12896
12897 # Quote evaled strings.
12898 for var in SHELL \
12899 ECHO \
12900 SED \
12901 GREP \
12902 EGREP \
12903 FGREP \
12904 LD \
12905 NM \
12906 LN_S \
12907 lt_SP2NL \
12908 lt_NL2SP \
12909 reload_flag \
12910 OBJDUMP \
12911 deplibs_check_method \
12912 file_magic_cmd \
12913 AR \
12914 AR_FLAGS \
12915 STRIP \
12916 RANLIB \
12917 CC \
12918 CFLAGS \
12919 compiler \
12920 lt_cv_sys_global_symbol_pipe \
12921 lt_cv_sys_global_symbol_to_cdecl \
12922 lt_cv_sys_global_symbol_to_c_name_address \
12923 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12924 lt_prog_compiler_no_builtin_flag \
12925 lt_prog_compiler_wl \
12926 lt_prog_compiler_pic \
12927 lt_prog_compiler_static \
12928 lt_cv_prog_compiler_c_o \
12929 need_locks \
12930 DSYMUTIL \
12931 NMEDIT \
12932 LIPO \
12933 OTOOL \
12934 OTOOL64 \
12935 shrext_cmds \
12936 export_dynamic_flag_spec \
12937 whole_archive_flag_spec \
12938 compiler_needs_object \
12939 with_gnu_ld \
12940 allow_undefined_flag \
12941 no_undefined_flag \
12942 hardcode_libdir_flag_spec \
12943 hardcode_libdir_flag_spec_ld \
12944 hardcode_libdir_separator \
12945 fix_srcfile_path \
12946 exclude_expsyms \
12947 include_expsyms \
12948 file_list_spec \
12949 variables_saved_for_relink \
12950 libname_spec \
12951 library_names_spec \
12952 soname_spec \
12953 install_override_mode \
12954 finish_eval \
12955 old_striplib \
12956 striplib; do
12957 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12958 *[\\\\\\\`\\"\\\$]*)
12959 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12960 ;;
12961 *)
12962 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12963 ;;
12964 esac
12965 done
12966
12967 # Double-quote double-evaled strings.
12968 for var in reload_cmds \
12969 old_postinstall_cmds \
12970 old_postuninstall_cmds \
12971 old_archive_cmds \
12972 extract_expsyms_cmds \
12973 old_archive_from_new_cmds \
12974 old_archive_from_expsyms_cmds \
12975 archive_cmds \
12976 archive_expsym_cmds \
12977 module_cmds \
12978 module_expsym_cmds \
12979 export_symbols_cmds \
12980 prelink_cmds \
12981 postinstall_cmds \
12982 postuninstall_cmds \
12983 finish_cmds \
12984 sys_lib_search_path_spec \
12985 sys_lib_dlsearch_path_spec; do
12986 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12987 *[\\\\\\\`\\"\\\$]*)
12988 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12989 ;;
12990 *)
12991 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12992 ;;
12993 esac
12994 done
12995
12996 ac_aux_dir='$ac_aux_dir'
12997 xsi_shell='$xsi_shell'
12998 lt_shell_append='$lt_shell_append'
12999
13000 # See if we are running on zsh, and set the options which allow our
13001 # commands through without removal of \ escapes INIT.
13002 if test -n "\${ZSH_VERSION+set}" ; then
13003 setopt NO_GLOB_SUBST
13004 fi
13005
13006
13007 PACKAGE='$PACKAGE'
13008 VERSION='$VERSION'
13009 TIMESTAMP='$TIMESTAMP'
13010 RM='$RM'
13011 ofile='$ofile'
13012
13013
13014
13015
13016 _ACEOF
13017
13018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13019
13020 # Handling of arguments.
13021 for ac_config_target in $ac_config_targets
13022 do
13023 case $ac_config_target in
13024 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13025 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13026 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13027 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13028
13029 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13030 esac
13031 done
13032
13033
13034 # If the user did not use the arguments to specify the items to instantiate,
13035 # then the envvar interface is used. Set only those that are not.
13036 # We use the long form for the default assignment because of an extremely
13037 # bizarre bug on SunOS 4.1.3.
13038 if $ac_need_defaults; then
13039 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13040 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13041 fi
13042
13043 # Have a temporary directory for convenience. Make it in the build tree
13044 # simply because there is no reason against having it here, and in addition,
13045 # creating and moving files from /tmp can sometimes cause problems.
13046 # Hook for its removal unless debugging.
13047 # Note that there is a small window in which the directory will not be cleaned:
13048 # after its creation but before its name has been assigned to `$tmp'.
13049 $debug ||
13050 {
13051 tmp= ac_tmp=
13052 trap 'exit_status=$?
13053 : "${ac_tmp:=$tmp}"
13054 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13055 ' 0
13056 trap 'as_fn_exit 1' 1 2 13 15
13057 }
13058 # Create a (secure) tmp directory for tmp files.
13059
13060 {
13061 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13062 test -d "$tmp"
13063 } ||
13064 {
13065 tmp=./conf$$-$RANDOM
13066 (umask 077 && mkdir "$tmp")
13067 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13068 ac_tmp=$tmp
13069
13070 # Set up the scripts for CONFIG_FILES section.
13071 # No need to generate them if there are no CONFIG_FILES.
13072 # This happens for instance with `./config.status config.h'.
13073 if test -n "$CONFIG_FILES"; then
13074
13075
13076 ac_cr=`echo X | tr X '\015'`
13077 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13078 # But we know of no other shell where ac_cr would be empty at this
13079 # point, so we can use a bashism as a fallback.
13080 if test "x$ac_cr" = x; then
13081 eval ac_cr=\$\'\\r\'
13082 fi
13083 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13084 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13085 ac_cs_awk_cr='\\r'
13086 else
13087 ac_cs_awk_cr=$ac_cr
13088 fi
13089
13090 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13091 _ACEOF
13092
13093
13094 {
13095 echo "cat >conf$$subs.awk <<_ACEOF" &&
13096 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13097 echo "_ACEOF"
13098 } >conf$$subs.sh ||
13099 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13100 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13101 ac_delim='%!_!# '
13102 for ac_last_try in false false false false false :; do
13103 . ./conf$$subs.sh ||
13104 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13105
13106 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13107 if test $ac_delim_n = $ac_delim_num; then
13108 break
13109 elif $ac_last_try; then
13110 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13111 else
13112 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13113 fi
13114 done
13115 rm -f conf$$subs.sh
13116
13117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13118 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13119 _ACEOF
13120 sed -n '
13121 h
13122 s/^/S["/; s/!.*/"]=/
13123 p
13124 g
13125 s/^[^!]*!//
13126 :repl
13127 t repl
13128 s/'"$ac_delim"'$//
13129 t delim
13130 :nl
13131 h
13132 s/\(.\{148\}\)..*/\1/
13133 t more1
13134 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13135 p
13136 n
13137 b repl
13138 :more1
13139 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13140 p
13141 g
13142 s/.\{148\}//
13143 t nl
13144 :delim
13145 h
13146 s/\(.\{148\}\)..*/\1/
13147 t more2
13148 s/["\\]/\\&/g; s/^/"/; s/$/"/
13149 p
13150 b
13151 :more2
13152 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13153 p
13154 g
13155 s/.\{148\}//
13156 t delim
13157 ' <conf$$subs.awk | sed '
13158 /^[^""]/{
13159 N
13160 s/\n//
13161 }
13162 ' >>$CONFIG_STATUS || ac_write_fail=1
13163 rm -f conf$$subs.awk
13164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13165 _ACAWK
13166 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13167 for (key in S) S_is_set[key] = 1
13168 FS = ""
13169
13170 }
13171 {
13172 line = $ 0
13173 nfields = split(line, field, "@")
13174 substed = 0
13175 len = length(field[1])
13176 for (i = 2; i < nfields; i++) {
13177 key = field[i]
13178 keylen = length(key)
13179 if (S_is_set[key]) {
13180 value = S[key]
13181 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13182 len += length(value) + length(field[++i])
13183 substed = 1
13184 } else
13185 len += 1 + keylen
13186 }
13187
13188 print line
13189 }
13190
13191 _ACAWK
13192 _ACEOF
13193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13194 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13195 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13196 else
13197 cat
13198 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13199 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13200 _ACEOF
13201
13202 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13203 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13204 # trailing colons and then remove the whole line if VPATH becomes empty
13205 # (actually we leave an empty line to preserve line numbers).
13206 if test "x$srcdir" = x.; then
13207 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13208 h
13209 s///
13210 s/^/:/
13211 s/[ ]*$/:/
13212 s/:\$(srcdir):/:/g
13213 s/:\${srcdir}:/:/g
13214 s/:@srcdir@:/:/g
13215 s/^:*//
13216 s/:*$//
13217 x
13218 s/\(=[ ]*\).*/\1/
13219 G
13220 s/\n//
13221 s/^[^=]*=[ ]*$//
13222 }'
13223 fi
13224
13225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13226 fi # test -n "$CONFIG_FILES"
13227
13228
13229 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
13230 shift
13231 for ac_tag
13232 do
13233 case $ac_tag in
13234 :[FHLC]) ac_mode=$ac_tag; continue;;
13235 esac
13236 case $ac_mode$ac_tag in
13237 :[FHL]*:*);;
13238 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13239 :[FH]-) ac_tag=-:-;;
13240 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13241 esac
13242 ac_save_IFS=$IFS
13243 IFS=:
13244 set x $ac_tag
13245 IFS=$ac_save_IFS
13246 shift
13247 ac_file=$1
13248 shift
13249
13250 case $ac_mode in
13251 :L) ac_source=$1;;
13252 :[FH])
13253 ac_file_inputs=
13254 for ac_f
13255 do
13256 case $ac_f in
13257 -) ac_f="$ac_tmp/stdin";;
13258 *) # Look for the file first in the build tree, then in the source tree
13259 # (if the path is not absolute). The absolute path cannot be DOS-style,
13260 # because $ac_f cannot contain `:'.
13261 test -f "$ac_f" ||
13262 case $ac_f in
13263 [\\/$]*) false;;
13264 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13265 esac ||
13266 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13267 esac
13268 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13269 as_fn_append ac_file_inputs " '$ac_f'"
13270 done
13271
13272 # Let's still pretend it is `configure' which instantiates (i.e., don't
13273 # use $as_me), people would be surprised to read:
13274 # /* config.h. Generated by config.status. */
13275 configure_input='Generated from '`
13276 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13277 `' by configure.'
13278 if test x"$ac_file" != x-; then
13279 configure_input="$ac_file. $configure_input"
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13281 $as_echo "$as_me: creating $ac_file" >&6;}
13282 fi
13283 # Neutralize special characters interpreted by sed in replacement strings.
13284 case $configure_input in #(
13285 *\&* | *\|* | *\\* )
13286 ac_sed_conf_input=`$as_echo "$configure_input" |
13287 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13288 *) ac_sed_conf_input=$configure_input;;
13289 esac
13290
13291 case $ac_tag in
13292 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13293 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13294 esac
13295 ;;
13296 esac
13297
13298 ac_dir=`$as_dirname -- "$ac_file" ||
13299 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13300 X"$ac_file" : 'X\(//\)[^/]' \| \
13301 X"$ac_file" : 'X\(//\)$' \| \
13302 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13303 $as_echo X"$ac_file" |
13304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13305 s//\1/
13306 q
13307 }
13308 /^X\(\/\/\)[^/].*/{
13309 s//\1/
13310 q
13311 }
13312 /^X\(\/\/\)$/{
13313 s//\1/
13314 q
13315 }
13316 /^X\(\/\).*/{
13317 s//\1/
13318 q
13319 }
13320 s/.*/./; q'`
13321 as_dir="$ac_dir"; as_fn_mkdir_p
13322 ac_builddir=.
13323
13324 case "$ac_dir" in
13325 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13326 *)
13327 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13328 # A ".." for each directory in $ac_dir_suffix.
13329 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13330 case $ac_top_builddir_sub in
13331 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13332 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13333 esac ;;
13334 esac
13335 ac_abs_top_builddir=$ac_pwd
13336 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13337 # for backward compatibility:
13338 ac_top_builddir=$ac_top_build_prefix
13339
13340 case $srcdir in
13341 .) # We are building in place.
13342 ac_srcdir=.
13343 ac_top_srcdir=$ac_top_builddir_sub
13344 ac_abs_top_srcdir=$ac_pwd ;;
13345 [\\/]* | ?:[\\/]* ) # Absolute name.
13346 ac_srcdir=$srcdir$ac_dir_suffix;
13347 ac_top_srcdir=$srcdir
13348 ac_abs_top_srcdir=$srcdir ;;
13349 *) # Relative name.
13350 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13351 ac_top_srcdir=$ac_top_build_prefix$srcdir
13352 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13353 esac
13354 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13355
13356
13357 case $ac_mode in
13358 :F)
13359 #
13360 # CONFIG_FILE
13361 #
13362
13363 case $INSTALL in
13364 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13365 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13366 esac
13367 ac_MKDIR_P=$MKDIR_P
13368 case $MKDIR_P in
13369 [\\/$]* | ?:[\\/]* ) ;;
13370 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13371 esac
13372 _ACEOF
13373
13374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13375 # If the template does not know about datarootdir, expand it.
13376 # FIXME: This hack should be removed a few years after 2.60.
13377 ac_datarootdir_hack=; ac_datarootdir_seen=
13378 ac_sed_dataroot='
13379 /datarootdir/ {
13380 p
13381 q
13382 }
13383 /@datadir@/p
13384 /@docdir@/p
13385 /@infodir@/p
13386 /@localedir@/p
13387 /@mandir@/p'
13388 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13389 *datarootdir*) ac_datarootdir_seen=yes;;
13390 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13392 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13393 _ACEOF
13394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13395 ac_datarootdir_hack='
13396 s&@datadir@&$datadir&g
13397 s&@docdir@&$docdir&g
13398 s&@infodir@&$infodir&g
13399 s&@localedir@&$localedir&g
13400 s&@mandir@&$mandir&g
13401 s&\\\${datarootdir}&$datarootdir&g' ;;
13402 esac
13403 _ACEOF
13404
13405 # Neutralize VPATH when `$srcdir' = `.'.
13406 # Shell code in configure.ac might set extrasub.
13407 # FIXME: do we really want to maintain this feature?
13408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13409 ac_sed_extra="$ac_vpsub
13410 $extrasub
13411 _ACEOF
13412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13413 :t
13414 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13415 s|@configure_input@|$ac_sed_conf_input|;t t
13416 s&@top_builddir@&$ac_top_builddir_sub&;t t
13417 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13418 s&@srcdir@&$ac_srcdir&;t t
13419 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13420 s&@top_srcdir@&$ac_top_srcdir&;t t
13421 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13422 s&@builddir@&$ac_builddir&;t t
13423 s&@abs_builddir@&$ac_abs_builddir&;t t
13424 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13425 s&@INSTALL@&$ac_INSTALL&;t t
13426 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13427 $ac_datarootdir_hack
13428 "
13429 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13430 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13431
13432 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13433 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13434 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13435 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13437 which seems to be undefined. Please make sure it is defined" >&5
13438 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13439 which seems to be undefined. Please make sure it is defined" >&2;}
13440
13441 rm -f "$ac_tmp/stdin"
13442 case $ac_file in
13443 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13444 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13445 esac \
13446 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13447 ;;
13448
13449
13450 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13451 $as_echo "$as_me: executing $ac_file commands" >&6;}
13452 ;;
13453 esac
13454
13455
13456 case $ac_file$ac_mode in
13457 "default-1":C)
13458 # Only add multilib support code if we just rebuilt the top-level
13459 # Makefile.
13460 case " $CONFIG_FILES " in
13461 *" Makefile "*)
13462 ac_file=Makefile . ${multi_basedir}/config-ml.in
13463 ;;
13464 esac ;;
13465 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13466 # Older Autoconf quotes --file arguments for eval, but not when files
13467 # are listed without --file. Let's play safe and only enable the eval
13468 # if we detect the quoting.
13469 case $CONFIG_FILES in
13470 *\'*) eval set x "$CONFIG_FILES" ;;
13471 *) set x $CONFIG_FILES ;;
13472 esac
13473 shift
13474 for mf
13475 do
13476 # Strip MF so we end up with the name of the file.
13477 mf=`echo "$mf" | sed -e 's/:.*$//'`
13478 # Check whether this is an Automake generated Makefile or not.
13479 # We used to match only the files named 'Makefile.in', but
13480 # some people rename them; so instead we look at the file content.
13481 # Grep'ing the first line is not enough: some people post-process
13482 # each Makefile.in and add a new line on top of each file to say so.
13483 # Grep'ing the whole file is not good either: AIX grep has a line
13484 # limit of 2048, but all sed's we know have understand at least 4000.
13485 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13486 dirpart=`$as_dirname -- "$mf" ||
13487 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13488 X"$mf" : 'X\(//\)[^/]' \| \
13489 X"$mf" : 'X\(//\)$' \| \
13490 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13491 $as_echo X"$mf" |
13492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13493 s//\1/
13494 q
13495 }
13496 /^X\(\/\/\)[^/].*/{
13497 s//\1/
13498 q
13499 }
13500 /^X\(\/\/\)$/{
13501 s//\1/
13502 q
13503 }
13504 /^X\(\/\).*/{
13505 s//\1/
13506 q
13507 }
13508 s/.*/./; q'`
13509 else
13510 continue
13511 fi
13512 # Extract the definition of DEPDIR, am__include, and am__quote
13513 # from the Makefile without running 'make'.
13514 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13515 test -z "$DEPDIR" && continue
13516 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13517 test -z "$am__include" && continue
13518 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13519 # Find all dependency output files, they are included files with
13520 # $(DEPDIR) in their names. We invoke sed twice because it is the
13521 # simplest approach to changing $(DEPDIR) to its actual value in the
13522 # expansion.
13523 for file in `sed -n "
13524 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13525 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13526 # Make sure the directory exists.
13527 test -f "$dirpart/$file" && continue
13528 fdir=`$as_dirname -- "$file" ||
13529 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13530 X"$file" : 'X\(//\)[^/]' \| \
13531 X"$file" : 'X\(//\)$' \| \
13532 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13533 $as_echo X"$file" |
13534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13535 s//\1/
13536 q
13537 }
13538 /^X\(\/\/\)[^/].*/{
13539 s//\1/
13540 q
13541 }
13542 /^X\(\/\/\)$/{
13543 s//\1/
13544 q
13545 }
13546 /^X\(\/\).*/{
13547 s//\1/
13548 q
13549 }
13550 s/.*/./; q'`
13551 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13552 # echo "creating $dirpart/$file"
13553 echo '# dummy' > "$dirpart/$file"
13554 done
13555 done
13556 }
13557 ;;
13558 "libtool":C)
13559
13560 # See if we are running on zsh, and set the options which allow our
13561 # commands through without removal of \ escapes.
13562 if test -n "${ZSH_VERSION+set}" ; then
13563 setopt NO_GLOB_SUBST
13564 fi
13565
13566 cfgfile="${ofile}T"
13567 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13568 $RM "$cfgfile"
13569
13570 cat <<_LT_EOF >> "$cfgfile"
13571 #! $SHELL
13572
13573 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13574 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13575 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13576 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13577 #
13578 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13579 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13580 # Written by Gordon Matzigkeit, 1996
13581 #
13582 # This file is part of GNU Libtool.
13583 #
13584 # GNU Libtool is free software; you can redistribute it and/or
13585 # modify it under the terms of the GNU General Public License as
13586 # published by the Free Software Foundation; either version 2 of
13587 # the License, or (at your option) any later version.
13588 #
13589 # As a special exception to the GNU General Public License,
13590 # if you distribute this file as part of a program or library that
13591 # is built using GNU Libtool, you may include this file under the
13592 # same distribution terms that you use for the rest of that program.
13593 #
13594 # GNU Libtool is distributed in the hope that it will be useful,
13595 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13596 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13597 # GNU General Public License for more details.
13598 #
13599 # You should have received a copy of the GNU General Public License
13600 # along with GNU Libtool; see the file COPYING. If not, a copy
13601 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13602 # obtained by writing to the Free Software Foundation, Inc.,
13603 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13604
13605
13606 # The names of the tagged configurations supported by this script.
13607 available_tags=""
13608
13609 # ### BEGIN LIBTOOL CONFIG
13610
13611 # Which release of libtool.m4 was used?
13612 macro_version=$macro_version
13613 macro_revision=$macro_revision
13614
13615 # Whether or not to build shared libraries.
13616 build_libtool_libs=$enable_shared
13617
13618 # Whether or not to build static libraries.
13619 build_old_libs=$enable_static
13620
13621 # What type of objects to build.
13622 pic_mode=$pic_mode
13623
13624 # Whether or not to optimize for fast installation.
13625 fast_install=$enable_fast_install
13626
13627 # Shell to use when invoking shell scripts.
13628 SHELL=$lt_SHELL
13629
13630 # An echo program that protects backslashes.
13631 ECHO=$lt_ECHO
13632
13633 # The host system.
13634 host_alias=$host_alias
13635 host=$host
13636 host_os=$host_os
13637
13638 # The build system.
13639 build_alias=$build_alias
13640 build=$build
13641 build_os=$build_os
13642
13643 # A sed program that does not truncate output.
13644 SED=$lt_SED
13645
13646 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13647 Xsed="\$SED -e 1s/^X//"
13648
13649 # A grep program that handles long lines.
13650 GREP=$lt_GREP
13651
13652 # An ERE matcher.
13653 EGREP=$lt_EGREP
13654
13655 # A literal string matcher.
13656 FGREP=$lt_FGREP
13657
13658 # A BSD- or MS-compatible name lister.
13659 NM=$lt_NM
13660
13661 # Whether we need soft or hard links.
13662 LN_S=$lt_LN_S
13663
13664 # What is the maximum length of a command?
13665 max_cmd_len=$max_cmd_len
13666
13667 # Object file suffix (normally "o").
13668 objext=$ac_objext
13669
13670 # Executable file suffix (normally "").
13671 exeext=$exeext
13672
13673 # whether the shell understands "unset".
13674 lt_unset=$lt_unset
13675
13676 # turn spaces into newlines.
13677 SP2NL=$lt_lt_SP2NL
13678
13679 # turn newlines into spaces.
13680 NL2SP=$lt_lt_NL2SP
13681
13682 # An object symbol dumper.
13683 OBJDUMP=$lt_OBJDUMP
13684
13685 # Method to check whether dependent libraries are shared objects.
13686 deplibs_check_method=$lt_deplibs_check_method
13687
13688 # Command to use when deplibs_check_method == "file_magic".
13689 file_magic_cmd=$lt_file_magic_cmd
13690
13691 # The archiver.
13692 AR=$lt_AR
13693 AR_FLAGS=$lt_AR_FLAGS
13694
13695 # A symbol stripping program.
13696 STRIP=$lt_STRIP
13697
13698 # Commands used to install an old-style archive.
13699 RANLIB=$lt_RANLIB
13700 old_postinstall_cmds=$lt_old_postinstall_cmds
13701 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13702
13703 # Whether to use a lock for old archive extraction.
13704 lock_old_archive_extraction=$lock_old_archive_extraction
13705
13706 # A C compiler.
13707 LTCC=$lt_CC
13708
13709 # LTCC compiler flags.
13710 LTCFLAGS=$lt_CFLAGS
13711
13712 # Take the output of nm and produce a listing of raw symbols and C names.
13713 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13714
13715 # Transform the output of nm in a proper C declaration.
13716 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13717
13718 # Transform the output of nm in a C name address pair.
13719 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13720
13721 # Transform the output of nm in a C name address pair when lib prefix is needed.
13722 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13723
13724 # The name of the directory that contains temporary libtool files.
13725 objdir=$objdir
13726
13727 # Used to examine libraries when file_magic_cmd begins with "file".
13728 MAGIC_CMD=$MAGIC_CMD
13729
13730 # Must we lock files when doing compilation?
13731 need_locks=$lt_need_locks
13732
13733 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13734 DSYMUTIL=$lt_DSYMUTIL
13735
13736 # Tool to change global to local symbols on Mac OS X.
13737 NMEDIT=$lt_NMEDIT
13738
13739 # Tool to manipulate fat objects and archives on Mac OS X.
13740 LIPO=$lt_LIPO
13741
13742 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13743 OTOOL=$lt_OTOOL
13744
13745 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13746 OTOOL64=$lt_OTOOL64
13747
13748 # Old archive suffix (normally "a").
13749 libext=$libext
13750
13751 # Shared library suffix (normally ".so").
13752 shrext_cmds=$lt_shrext_cmds
13753
13754 # The commands to extract the exported symbol list from a shared archive.
13755 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13756
13757 # Variables whose values should be saved in libtool wrapper scripts and
13758 # restored at link time.
13759 variables_saved_for_relink=$lt_variables_saved_for_relink
13760
13761 # Do we need the "lib" prefix for modules?
13762 need_lib_prefix=$need_lib_prefix
13763
13764 # Do we need a version for libraries?
13765 need_version=$need_version
13766
13767 # Library versioning type.
13768 version_type=$version_type
13769
13770 # Shared library runtime path variable.
13771 runpath_var=$runpath_var
13772
13773 # Shared library path variable.
13774 shlibpath_var=$shlibpath_var
13775
13776 # Is shlibpath searched before the hard-coded library search path?
13777 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13778
13779 # Format of library name prefix.
13780 libname_spec=$lt_libname_spec
13781
13782 # List of archive names. First name is the real one, the rest are links.
13783 # The last name is the one that the linker finds with -lNAME
13784 library_names_spec=$lt_library_names_spec
13785
13786 # The coded name of the library, if different from the real name.
13787 soname_spec=$lt_soname_spec
13788
13789 # Permission mode override for installation of shared libraries.
13790 install_override_mode=$lt_install_override_mode
13791
13792 # Command to use after installation of a shared archive.
13793 postinstall_cmds=$lt_postinstall_cmds
13794
13795 # Command to use after uninstallation of a shared archive.
13796 postuninstall_cmds=$lt_postuninstall_cmds
13797
13798 # Commands used to finish a libtool library installation in a directory.
13799 finish_cmds=$lt_finish_cmds
13800
13801 # As "finish_cmds", except a single script fragment to be evaled but
13802 # not shown.
13803 finish_eval=$lt_finish_eval
13804
13805 # Whether we should hardcode library paths into libraries.
13806 hardcode_into_libs=$hardcode_into_libs
13807
13808 # Compile-time system search path for libraries.
13809 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13810
13811 # Run-time system search path for libraries.
13812 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13813
13814 # Whether dlopen is supported.
13815 dlopen_support=$enable_dlopen
13816
13817 # Whether dlopen of programs is supported.
13818 dlopen_self=$enable_dlopen_self
13819
13820 # Whether dlopen of statically linked programs is supported.
13821 dlopen_self_static=$enable_dlopen_self_static
13822
13823 # Commands to strip libraries.
13824 old_striplib=$lt_old_striplib
13825 striplib=$lt_striplib
13826
13827
13828 # The linker used to build libraries.
13829 LD=$lt_LD
13830
13831 # How to create reloadable object files.
13832 reload_flag=$lt_reload_flag
13833 reload_cmds=$lt_reload_cmds
13834
13835 # Commands used to build an old-style archive.
13836 old_archive_cmds=$lt_old_archive_cmds
13837
13838 # A language specific compiler.
13839 CC=$lt_compiler
13840
13841 # Is the compiler the GNU compiler?
13842 with_gcc=$GCC
13843
13844 # Compiler flag to turn off builtin functions.
13845 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13846
13847 # How to pass a linker flag through the compiler.
13848 wl=$lt_lt_prog_compiler_wl
13849
13850 # Additional compiler flags for building library objects.
13851 pic_flag=$lt_lt_prog_compiler_pic
13852
13853 # Compiler flag to prevent dynamic linking.
13854 link_static_flag=$lt_lt_prog_compiler_static
13855
13856 # Does compiler simultaneously support -c and -o options?
13857 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13858
13859 # Whether or not to add -lc for building shared libraries.
13860 build_libtool_need_lc=$archive_cmds_need_lc
13861
13862 # Whether or not to disallow shared libs when runtime libs are static.
13863 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13864
13865 # Compiler flag to allow reflexive dlopens.
13866 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13867
13868 # Compiler flag to generate shared objects directly from archives.
13869 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13870
13871 # Whether the compiler copes with passing no objects directly.
13872 compiler_needs_object=$lt_compiler_needs_object
13873
13874 # Create an old-style archive from a shared archive.
13875 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13876
13877 # Create a temporary old-style archive to link instead of a shared archive.
13878 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13879
13880 # Commands used to build a shared archive.
13881 archive_cmds=$lt_archive_cmds
13882 archive_expsym_cmds=$lt_archive_expsym_cmds
13883
13884 # Commands used to build a loadable module if different from building
13885 # a shared archive.
13886 module_cmds=$lt_module_cmds
13887 module_expsym_cmds=$lt_module_expsym_cmds
13888
13889 # Whether we are building with GNU ld or not.
13890 with_gnu_ld=$lt_with_gnu_ld
13891
13892 # Flag that allows shared libraries with undefined symbols to be built.
13893 allow_undefined_flag=$lt_allow_undefined_flag
13894
13895 # Flag that enforces no undefined symbols.
13896 no_undefined_flag=$lt_no_undefined_flag
13897
13898 # Flag to hardcode \$libdir into a binary during linking.
13899 # This must work even if \$libdir does not exist
13900 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13901
13902 # If ld is used when linking, flag to hardcode \$libdir into a binary
13903 # during linking. This must work even if \$libdir does not exist.
13904 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13905
13906 # Whether we need a single "-rpath" flag with a separated argument.
13907 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13908
13909 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13910 # DIR into the resulting binary.
13911 hardcode_direct=$hardcode_direct
13912
13913 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13914 # DIR into the resulting binary and the resulting library dependency is
13915 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13916 # library is relocated.
13917 hardcode_direct_absolute=$hardcode_direct_absolute
13918
13919 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13920 # into the resulting binary.
13921 hardcode_minus_L=$hardcode_minus_L
13922
13923 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13924 # into the resulting binary.
13925 hardcode_shlibpath_var=$hardcode_shlibpath_var
13926
13927 # Set to "yes" if building a shared library automatically hardcodes DIR
13928 # into the library and all subsequent libraries and executables linked
13929 # against it.
13930 hardcode_automatic=$hardcode_automatic
13931
13932 # Set to yes if linker adds runtime paths of dependent libraries
13933 # to runtime path list.
13934 inherit_rpath=$inherit_rpath
13935
13936 # Whether libtool must link a program against all its dependency libraries.
13937 link_all_deplibs=$link_all_deplibs
13938
13939 # Fix the shell variable \$srcfile for the compiler.
13940 fix_srcfile_path=$lt_fix_srcfile_path
13941
13942 # Set to "yes" if exported symbols are required.
13943 always_export_symbols=$always_export_symbols
13944
13945 # The commands to list exported symbols.
13946 export_symbols_cmds=$lt_export_symbols_cmds
13947
13948 # Symbols that should not be listed in the preloaded symbols.
13949 exclude_expsyms=$lt_exclude_expsyms
13950
13951 # Symbols that must always be exported.
13952 include_expsyms=$lt_include_expsyms
13953
13954 # Commands necessary for linking programs (against libraries) with templates.
13955 prelink_cmds=$lt_prelink_cmds
13956
13957 # Specify filename containing input files.
13958 file_list_spec=$lt_file_list_spec
13959
13960 # How to hardcode a shared library path into an executable.
13961 hardcode_action=$hardcode_action
13962
13963 # ### END LIBTOOL CONFIG
13964
13965 _LT_EOF
13966
13967 case $host_os in
13968 aix3*)
13969 cat <<\_LT_EOF >> "$cfgfile"
13970 # AIX sometimes has problems with the GCC collect2 program. For some
13971 # reason, if we set the COLLECT_NAMES environment variable, the problems
13972 # vanish in a puff of smoke.
13973 if test "X${COLLECT_NAMES+set}" != Xset; then
13974 COLLECT_NAMES=
13975 export COLLECT_NAMES
13976 fi
13977 _LT_EOF
13978 ;;
13979 esac
13980
13981
13982 ltmain="$ac_aux_dir/ltmain.sh"
13983
13984
13985 # We use sed instead of cat because bash on DJGPP gets confused if
13986 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13987 # text mode, it properly converts lines to CR/LF. This bash problem
13988 # is reportedly fixed, but why not run on old versions too?
13989 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13990 || (rm -f "$cfgfile"; exit 1)
13991
13992 case $xsi_shell in
13993 yes)
13994 cat << \_LT_EOF >> "$cfgfile"
13995
13996 # func_dirname file append nondir_replacement
13997 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13998 # otherwise set result to NONDIR_REPLACEMENT.
13999 func_dirname ()
14000 {
14001 case ${1} in
14002 */*) func_dirname_result="${1%/*}${2}" ;;
14003 * ) func_dirname_result="${3}" ;;
14004 esac
14005 }
14006
14007 # func_basename file
14008 func_basename ()
14009 {
14010 func_basename_result="${1##*/}"
14011 }
14012
14013 # func_dirname_and_basename file append nondir_replacement
14014 # perform func_basename and func_dirname in a single function
14015 # call:
14016 # dirname: Compute the dirname of FILE. If nonempty,
14017 # add APPEND to the result, otherwise set result
14018 # to NONDIR_REPLACEMENT.
14019 # value returned in "$func_dirname_result"
14020 # basename: Compute filename of FILE.
14021 # value retuned in "$func_basename_result"
14022 # Implementation must be kept synchronized with func_dirname
14023 # and func_basename. For efficiency, we do not delegate to
14024 # those functions but instead duplicate the functionality here.
14025 func_dirname_and_basename ()
14026 {
14027 case ${1} in
14028 */*) func_dirname_result="${1%/*}${2}" ;;
14029 * ) func_dirname_result="${3}" ;;
14030 esac
14031 func_basename_result="${1##*/}"
14032 }
14033
14034 # func_stripname prefix suffix name
14035 # strip PREFIX and SUFFIX off of NAME.
14036 # PREFIX and SUFFIX must not contain globbing or regex special
14037 # characters, hashes, percent signs, but SUFFIX may contain a leading
14038 # dot (in which case that matches only a dot).
14039 func_stripname ()
14040 {
14041 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14042 # positional parameters, so assign one to ordinary parameter first.
14043 func_stripname_result=${3}
14044 func_stripname_result=${func_stripname_result#"${1}"}
14045 func_stripname_result=${func_stripname_result%"${2}"}
14046 }
14047
14048 # func_opt_split
14049 func_opt_split ()
14050 {
14051 func_opt_split_opt=${1%%=*}
14052 func_opt_split_arg=${1#*=}
14053 }
14054
14055 # func_lo2o object
14056 func_lo2o ()
14057 {
14058 case ${1} in
14059 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14060 *) func_lo2o_result=${1} ;;
14061 esac
14062 }
14063
14064 # func_xform libobj-or-source
14065 func_xform ()
14066 {
14067 func_xform_result=${1%.*}.lo
14068 }
14069
14070 # func_arith arithmetic-term...
14071 func_arith ()
14072 {
14073 func_arith_result=$(( $* ))
14074 }
14075
14076 # func_len string
14077 # STRING may not start with a hyphen.
14078 func_len ()
14079 {
14080 func_len_result=${#1}
14081 }
14082
14083 _LT_EOF
14084 ;;
14085 *) # Bourne compatible functions.
14086 cat << \_LT_EOF >> "$cfgfile"
14087
14088 # func_dirname file append nondir_replacement
14089 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14090 # otherwise set result to NONDIR_REPLACEMENT.
14091 func_dirname ()
14092 {
14093 # Extract subdirectory from the argument.
14094 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14095 if test "X$func_dirname_result" = "X${1}"; then
14096 func_dirname_result="${3}"
14097 else
14098 func_dirname_result="$func_dirname_result${2}"
14099 fi
14100 }
14101
14102 # func_basename file
14103 func_basename ()
14104 {
14105 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14106 }
14107
14108
14109 # func_stripname prefix suffix name
14110 # strip PREFIX and SUFFIX off of NAME.
14111 # PREFIX and SUFFIX must not contain globbing or regex special
14112 # characters, hashes, percent signs, but SUFFIX may contain a leading
14113 # dot (in which case that matches only a dot).
14114 # func_strip_suffix prefix name
14115 func_stripname ()
14116 {
14117 case ${2} in
14118 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14119 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14120 esac
14121 }
14122
14123 # sed scripts:
14124 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14125 my_sed_long_arg='1s/^-[^=]*=//'
14126
14127 # func_opt_split
14128 func_opt_split ()
14129 {
14130 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14131 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14132 }
14133
14134 # func_lo2o object
14135 func_lo2o ()
14136 {
14137 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14138 }
14139
14140 # func_xform libobj-or-source
14141 func_xform ()
14142 {
14143 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14144 }
14145
14146 # func_arith arithmetic-term...
14147 func_arith ()
14148 {
14149 func_arith_result=`expr "$@"`
14150 }
14151
14152 # func_len string
14153 # STRING may not start with a hyphen.
14154 func_len ()
14155 {
14156 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14157 }
14158
14159 _LT_EOF
14160 esac
14161
14162 case $lt_shell_append in
14163 yes)
14164 cat << \_LT_EOF >> "$cfgfile"
14165
14166 # func_append var value
14167 # Append VALUE to the end of shell variable VAR.
14168 func_append ()
14169 {
14170 eval "$1+=\$2"
14171 }
14172 _LT_EOF
14173 ;;
14174 *)
14175 cat << \_LT_EOF >> "$cfgfile"
14176
14177 # func_append var value
14178 # Append VALUE to the end of shell variable VAR.
14179 func_append ()
14180 {
14181 eval "$1=\$$1\$2"
14182 }
14183
14184 _LT_EOF
14185 ;;
14186 esac
14187
14188
14189 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14190 || (rm -f "$cfgfile"; exit 1)
14191
14192 mv -f "$cfgfile" "$ofile" ||
14193 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14194 chmod +x "$ofile"
14195
14196 ;;
14197
14198 esac
14199 done # for ac_tag
14200
14201
14202 as_fn_exit 0
14203 _ACEOF
14204 ac_clean_files=$ac_clean_files_save
14205
14206 test $ac_write_fail = 0 ||
14207 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14208
14209
14210 # configure is writing to config.log, and then calls config.status.
14211 # config.status does its own redirection, appending to config.log.
14212 # Unfortunately, on DOS this fails, as config.log is still kept open
14213 # by configure, so config.status won't be able to write to it; its
14214 # output is simply discarded. So we exec the FD to /dev/null,
14215 # effectively closing config.log, so it can be properly (re)opened and
14216 # appended to by config.status. When coming back to configure, we
14217 # need to make the FD available again.
14218 if test "$no_create" != yes; then
14219 ac_cs_success=:
14220 ac_config_status_args=
14221 test "$silent" = yes &&
14222 ac_config_status_args="$ac_config_status_args --quiet"
14223 exec 5>/dev/null
14224 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14225 exec 5>>config.log
14226 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14227 # would make configure fail if this is the last instruction.
14228 $ac_cs_success || as_fn_exit 1
14229 fi
14230 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14232 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14233 fi
14234
14235