1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libltdl 2.4.2.
4 #
5 # Report bugs to <bug-libtool@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: bug-libtool@gnu.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369 } # as_fn_mkdir_p
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
590 # Identity of this package.
591 PACKAGE_NAME='libltdl'
592 PACKAGE_TARNAME='libltdl'
593 PACKAGE_VERSION='2.4.2'
594 PACKAGE_STRING='libltdl 2.4.2'
595 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
596 PACKAGE_URL=''
598 ac_unique_file="ltdl.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LTDLOPEN
639 LT_CONFIG_H
640 CONVENIENCE_LTDL_FALSE
641 CONVENIENCE_LTDL_TRUE
642 INSTALL_LTDL_FALSE
643 INSTALL_LTDL_TRUE
644 ARGZ_H
645 LIBOBJS
646 sys_symbol_underscore
647 LIBADD_DL
648 LT_DLPREOPEN
649 LIBADD_DLD_LINK
650 LIBADD_SHL_LOAD
651 LIBADD_DLOPEN
652 LT_DLLOADERS
653 CPP
654 OTOOL64
655 OTOOL
656 LIPO
657 NMEDIT
658 DSYMUTIL
659 MANIFEST_TOOL
660 RANLIB
661 ac_ct_AR
662 AR
663 LN_S
664 NM
665 ac_ct_DUMPBIN
666 DUMPBIN
667 LD
668 FGREP
669 EGREP
670 GREP
671 SED
672 am__fastdepCC_FALSE
673 am__fastdepCC_TRUE
674 CCDEPMODE
675 am__nodep
676 AMDEPBACKSLASH
677 AMDEP_FALSE
678 AMDEP_TRUE
679 am__quote
680 am__include
681 DEPDIR
682 OBJEXT
683 EXEEXT
684 ac_ct_CC
685 CPPFLAGS
686 LDFLAGS
687 CFLAGS
688 CC
689 host_os
690 host_vendor
691 host_cpu
692 host
693 build_os
694 build_vendor
695 build_cpu
696 build
697 LIBTOOL
698 OBJDUMP
699 DLLTOOL
700 AS
701 AM_BACKSLASH
702 AM_DEFAULT_VERBOSITY
703 AM_DEFAULT_V
704 AM_V
705 am__untar
706 am__tar
707 AMTAR
708 am__leading_dot
709 SET_MAKE
710 AWK
711 mkdir_p
712 MKDIR_P
713 INSTALL_STRIP_PROGRAM
714 STRIP
715 install_sh
716 MAKEINFO
717 AUTOHEADER
718 AUTOMAKE
719 AUTOCONF
720 ACLOCAL
721 VERSION
722 PACKAGE
723 CYGPATH_W
724 am__isrc
725 INSTALL_DATA
726 INSTALL_SCRIPT
727 INSTALL_PROGRAM
728 target_alias
729 host_alias
730 build_alias
731 LIBS
732 ECHO_T
733 ECHO_N
734 ECHO_C
735 DEFS
736 mandir
737 localedir
738 libdir
739 psdir
740 pdfdir
741 dvidir
742 htmldir
743 infodir
744 docdir
745 oldincludedir
746 includedir
747 localstatedir
748 sharedstatedir
749 sysconfdir
750 datadir
751 datarootdir
752 libexecdir
753 sbindir
754 bindir
755 program_transform_name
756 prefix
757 exec_prefix
758 PACKAGE_URL
759 PACKAGE_BUGREPORT
760 PACKAGE_STRING
761 PACKAGE_VERSION
762 PACKAGE_TARNAME
763 PACKAGE_NAME
764 PATH_SEPARATOR
765 SHELL'
766 ac_subst_files=''
767 ac_user_opts='
768 enable_option_checking
769 enable_silent_rules
770 enable_shared
771 enable_static
772 with_pic
773 enable_fast_install
774 enable_dependency_tracking
775 with_gnu_ld
776 with_sysroot
777 enable_libtool_lock
778 enable_ltdl_install
779 '
780 ac_precious_vars='build_alias
781 host_alias
782 target_alias
783 CC
784 CFLAGS
785 LDFLAGS
786 LIBS
787 CPPFLAGS
788 CPP'
791 # Initialize some variables set by options.
792 ac_init_help=
793 ac_init_version=false
794 ac_unrecognized_opts=
795 ac_unrecognized_sep=
796 # The variables have the same names as the options, with
797 # dashes changed to underlines.
798 cache_file=/dev/null
799 exec_prefix=NONE
800 no_create=
801 no_recursion=
802 prefix=NONE
803 program_prefix=NONE
804 program_suffix=NONE
805 program_transform_name=s,x,x,
806 silent=
807 site=
808 srcdir=
809 verbose=
810 x_includes=NONE
811 x_libraries=NONE
813 # Installation directory options.
814 # These are left unexpanded so users can "make install exec_prefix=/foo"
815 # and all the variables that are supposed to be based on exec_prefix
816 # by default will actually change.
817 # Use braces instead of parens because sh, perl, etc. also accept them.
818 # (The list follows the same order as the GNU Coding Standards.)
819 bindir='${exec_prefix}/bin'
820 sbindir='${exec_prefix}/sbin'
821 libexecdir='${exec_prefix}/libexec'
822 datarootdir='${prefix}/share'
823 datadir='${datarootdir}'
824 sysconfdir='${prefix}/etc'
825 sharedstatedir='${prefix}/com'
826 localstatedir='${prefix}/var'
827 includedir='${prefix}/include'
828 oldincludedir='/usr/include'
829 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
830 infodir='${datarootdir}/info'
831 htmldir='${docdir}'
832 dvidir='${docdir}'
833 pdfdir='${docdir}'
834 psdir='${docdir}'
835 libdir='${exec_prefix}/lib'
836 localedir='${datarootdir}/locale'
837 mandir='${datarootdir}/man'
839 ac_prev=
840 ac_dashdash=
841 for ac_option
842 do
843 # If the previous option needs an argument, assign it.
844 if test -n "$ac_prev"; then
845 eval $ac_prev=\$ac_option
846 ac_prev=
847 continue
848 fi
850 case $ac_option in
851 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 *=) ac_optarg= ;;
853 *) ac_optarg=yes ;;
854 esac
856 # Accept the important Cygnus configure options, so we can diagnose typos.
858 case $ac_dashdash$ac_option in
859 --)
860 ac_dashdash=yes ;;
862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 ac_prev=bindir ;;
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 bindir=$ac_optarg ;;
867 -build | --build | --buil | --bui | --bu)
868 ac_prev=build_alias ;;
869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870 build_alias=$ac_optarg ;;
872 -cache-file | --cache-file | --cache-fil | --cache-fi \
873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874 ac_prev=cache_file ;;
875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877 cache_file=$ac_optarg ;;
879 --config-cache | -C)
880 cache_file=config.cache ;;
882 -datadir | --datadir | --datadi | --datad)
883 ac_prev=datadir ;;
884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
885 datadir=$ac_optarg ;;
887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888 | --dataroo | --dataro | --datar)
889 ac_prev=datarootdir ;;
890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892 datarootdir=$ac_optarg ;;
894 -disable-* | --disable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error $? "invalid feature name: $ac_useropt"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
902 *"
903 "enable_$ac_useropt"
904 "*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=no ;;
910 -docdir | --docdir | --docdi | --doc | --do)
911 ac_prev=docdir ;;
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 docdir=$ac_optarg ;;
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 ac_prev=dvidir ;;
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 dvidir=$ac_optarg ;;
920 -enable-* | --enable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error $? "invalid feature name: $ac_useropt"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
928 *"
929 "enable_$ac_useropt"
930 "*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=\$ac_optarg ;;
936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938 | --exec | --exe | --ex)
939 ac_prev=exec_prefix ;;
940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942 | --exec=* | --exe=* | --ex=*)
943 exec_prefix=$ac_optarg ;;
945 -gas | --gas | --ga | --g)
946 # Obsolete; use --with-gas.
947 with_gas=yes ;;
949 -help | --help | --hel | --he | -h)
950 ac_init_help=long ;;
951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952 ac_init_help=recursive ;;
953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954 ac_init_help=short ;;
956 -host | --host | --hos | --ho)
957 ac_prev=host_alias ;;
958 -host=* | --host=* | --hos=* | --ho=*)
959 host_alias=$ac_optarg ;;
961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962 ac_prev=htmldir ;;
963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964 | --ht=*)
965 htmldir=$ac_optarg ;;
967 -includedir | --includedir | --includedi | --included | --include \
968 | --includ | --inclu | --incl | --inc)
969 ac_prev=includedir ;;
970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971 | --includ=* | --inclu=* | --incl=* | --inc=*)
972 includedir=$ac_optarg ;;
974 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 ac_prev=infodir ;;
976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977 infodir=$ac_optarg ;;
979 -libdir | --libdir | --libdi | --libd)
980 ac_prev=libdir ;;
981 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 libdir=$ac_optarg ;;
984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985 | --libexe | --libex | --libe)
986 ac_prev=libexecdir ;;
987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988 | --libexe=* | --libex=* | --libe=*)
989 libexecdir=$ac_optarg ;;
991 -localedir | --localedir | --localedi | --localed | --locale)
992 ac_prev=localedir ;;
993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994 localedir=$ac_optarg ;;
996 -localstatedir | --localstatedir | --localstatedi | --localstated \
997 | --localstate | --localstat | --localsta | --localst | --locals)
998 ac_prev=localstatedir ;;
999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001 localstatedir=$ac_optarg ;;
1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 ac_prev=mandir ;;
1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006 mandir=$ac_optarg ;;
1008 -nfp | --nfp | --nf)
1009 # Obsolete; use --without-fp.
1010 with_fp=no ;;
1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013 | --no-cr | --no-c | -n)
1014 no_create=yes ;;
1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 no_recursion=yes ;;
1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022 | --oldin | --oldi | --old | --ol | --o)
1023 ac_prev=oldincludedir ;;
1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027 oldincludedir=$ac_optarg ;;
1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 ac_prev=prefix ;;
1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032 prefix=$ac_optarg ;;
1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035 | --program-pre | --program-pr | --program-p)
1036 ac_prev=program_prefix ;;
1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039 program_prefix=$ac_optarg ;;
1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042 | --program-suf | --program-su | --program-s)
1043 ac_prev=program_suffix ;;
1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046 program_suffix=$ac_optarg ;;
1048 -program-transform-name | --program-transform-name \
1049 | --program-transform-nam | --program-transform-na \
1050 | --program-transform-n | --program-transform- \
1051 | --program-transform | --program-transfor \
1052 | --program-transfo | --program-transf \
1053 | --program-trans | --program-tran \
1054 | --progr-tra | --program-tr | --program-t)
1055 ac_prev=program_transform_name ;;
1056 -program-transform-name=* | --program-transform-name=* \
1057 | --program-transform-nam=* | --program-transform-na=* \
1058 | --program-transform-n=* | --program-transform-=* \
1059 | --program-transform=* | --program-transfor=* \
1060 | --program-transfo=* | --program-transf=* \
1061 | --program-trans=* | --program-tran=* \
1062 | --progr-tra=* | --program-tr=* | --program-t=*)
1063 program_transform_name=$ac_optarg ;;
1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 ac_prev=pdfdir ;;
1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068 pdfdir=$ac_optarg ;;
1070 -psdir | --psdir | --psdi | --psd | --ps)
1071 ac_prev=psdir ;;
1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 psdir=$ac_optarg ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 silent=yes ;;
1079 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080 ac_prev=sbindir ;;
1081 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082 | --sbi=* | --sb=*)
1083 sbindir=$ac_optarg ;;
1085 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1086 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1087 | --sharedst | --shareds | --shared | --share | --shar \
1088 | --sha | --sh)
1089 ac_prev=sharedstatedir ;;
1090 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1091 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1092 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093 | --sha=* | --sh=*)
1094 sharedstatedir=$ac_optarg ;;
1096 -site | --site | --sit)
1097 ac_prev=site ;;
1098 -site=* | --site=* | --sit=*)
1099 site=$ac_optarg ;;
1101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102 ac_prev=srcdir ;;
1103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1104 srcdir=$ac_optarg ;;
1106 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1107 | --syscon | --sysco | --sysc | --sys | --sy)
1108 ac_prev=sysconfdir ;;
1109 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1110 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1111 sysconfdir=$ac_optarg ;;
1113 -target | --target | --targe | --targ | --tar | --ta | --t)
1114 ac_prev=target_alias ;;
1115 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1116 target_alias=$ac_optarg ;;
1118 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119 verbose=yes ;;
1121 -version | --version | --versio | --versi | --vers | -V)
1122 ac_init_version=: ;;
1124 -with-* | --with-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error $? "invalid package name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1132 *"
1133 "with_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval with_$ac_useropt=\$ac_optarg ;;
1140 -without-* | --without-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid package name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1148 *"
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=no ;;
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1174 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1175 Try \`$0 --help' for more information"
1176 ;;
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 case $ac_envvar in #(
1182 '' | [0-9]* | *[!_$as_cr_alnum]* )
1183 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1184 esac
1185 eval $ac_envvar=\$ac_optarg
1186 export $ac_envvar ;;
1188 *)
1189 # FIXME: should be removed in autoconf 3.0.
1190 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1194 ;;
1196 esac
1197 done
1199 if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201 as_fn_error $? "missing argument to $ac_option"
1202 fi
1204 if test -n "$ac_unrecognized_opts"; then
1205 case $enable_option_checking in
1206 no) ;;
1207 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1208 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209 esac
1210 fi
1212 # Check all directory arguments for consistency.
1213 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir
1217 do
1218 eval ac_val=\$$ac_var
1219 # Remove trailing slashes.
1220 case $ac_val in
1221 */ )
1222 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1223 eval $ac_var=\$ac_val;;
1224 esac
1225 # Be sure to have absolute directory names.
1226 case $ac_val in
1227 [\\/$]* | ?:[\\/]* ) continue;;
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229 esac
1230 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1231 done
1233 # There might be people who depend on the old broken behavior: `$host'
1234 # used to hold the argument of --host etc.
1235 # FIXME: To remove some day.
1236 build=$build_alias
1237 host=$host_alias
1238 target=$target_alias
1240 # FIXME: To remove some day.
1241 if test "x$host_alias" != x; then
1242 if test "x$build_alias" = x; then
1243 cross_compiling=maybe
1244 elif test "x$build_alias" != "x$host_alias"; then
1245 cross_compiling=yes
1246 fi
1247 fi
1249 ac_tool_prefix=
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252 test "$silent" = yes && exec 6>/dev/null
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 as_fn_error $? "working directory cannot be determined"
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 as_fn_error $? "pwd does not report name of working directory"
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$as_myself" ||
1268 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$as_myself" : 'X\(//\)[^/]' \| \
1270 X"$as_myself" : 'X\(//\)$' \| \
1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272 $as_echo X"$as_myself" |
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\).*/{
1286 s//\1/
1287 q
1288 }
1289 s/.*/./; q'`
1290 srcdir=$ac_confdir
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 srcdir=..
1293 fi
1294 else
1295 ac_srcdir_defaulted=no
1296 fi
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1300 fi
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 ac_abs_confdir=`(
1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1304 pwd)`
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 srcdir=.
1308 fi
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1312 case $srcdir in
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 esac
1315 for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 done
1322 #
1323 # Report the --help message.
1324 #
1325 if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1328 cat <<_ACEOF
1329 \`configure' configures libltdl 2.4.2 to adapt to many kinds of systems.
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE. See below for descriptions of some of the useful variables.
1336 Defaults for the options are specified in brackets.
1338 Configuration:
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking ...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349 Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
1351 [$ac_default_prefix]
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 [PREFIX]
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1360 For better control, use the options below.
1362 Fine tuning of the installation directories:
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1382 _ACEOF
1384 cat <<\_ACEOF
1386 Program names:
1387 --program-prefix=PREFIX prepend PREFIX to installed program names
1388 --program-suffix=SUFFIX append SUFFIX to installed program names
1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391 System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 _ACEOF
1395 fi
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of libltdl 2.4.2:";;
1400 esac
1401 cat <<\_ACEOF
1403 Optional Features:
1404 --disable-option-checking ignore unrecognized --enable/--with options
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-silent-rules less verbose build output (undo: "make V=1")
1408 --disable-silent-rules verbose build output (undo: "make V=0")
1409 --enable-shared[=PKGS] build shared libraries [default=yes]
1410 --enable-static[=PKGS] build static libraries [default=yes]
1411 --enable-fast-install[=PKGS]
1412 optimize for fast installation [default=yes]
1413 --enable-dependency-tracking
1414 do not reject slow dependency extractors
1415 --disable-dependency-tracking
1416 speeds up one-time build
1417 --disable-libtool-lock avoid locking (might break parallel builds)
1418 --enable-ltdl-install install libltdl
1420 Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1424 both]
1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1426 --with-sysroot=DIR Search for dependent libraries within DIR
1427 (or the compiler's sysroot if not specified).
1429 Some influential environment variables:
1430 CC C compiler command
1431 CFLAGS C compiler flags
1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1433 nonstandard directory <lib dir>
1434 LIBS libraries to pass to the linker, e.g. -l<library>
1435 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1436 you have headers in a nonstandard directory <include dir>
1437 CPP C preprocessor
1439 Use these variables to override the choices made by `configure' or to help
1440 it to find libraries and programs with nonstandard names/locations.
1442 Report bugs to <bug-libtool@gnu.org>.
1443 _ACEOF
1444 ac_status=$?
1445 fi
1447 if test "$ac_init_help" = "recursive"; then
1448 # If there are subdirs, report their specific --help.
1449 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1450 test -d "$ac_dir" ||
1451 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1452 continue
1453 ac_builddir=.
1455 case "$ac_dir" in
1456 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 *)
1458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1459 # A ".." for each directory in $ac_dir_suffix.
1460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1461 case $ac_top_builddir_sub in
1462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1464 esac ;;
1465 esac
1466 ac_abs_top_builddir=$ac_pwd
1467 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1468 # for backward compatibility:
1469 ac_top_builddir=$ac_top_build_prefix
1471 case $srcdir in
1472 .) # We are building in place.
1473 ac_srcdir=.
1474 ac_top_srcdir=$ac_top_builddir_sub
1475 ac_abs_top_srcdir=$ac_pwd ;;
1476 [\\/]* | ?:[\\/]* ) # Absolute name.
1477 ac_srcdir=$srcdir$ac_dir_suffix;
1478 ac_top_srcdir=$srcdir
1479 ac_abs_top_srcdir=$srcdir ;;
1480 *) # Relative name.
1481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1482 ac_top_srcdir=$ac_top_build_prefix$srcdir
1483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1484 esac
1485 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1487 cd "$ac_dir" || { ac_status=$?; continue; }
1488 # Check for guested configure.
1489 if test -f "$ac_srcdir/configure.gnu"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1492 elif test -f "$ac_srcdir/configure"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure" --help=recursive
1495 else
1496 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1497 fi || ac_status=$?
1498 cd "$ac_pwd" || { ac_status=$?; break; }
1499 done
1500 fi
1502 test -n "$ac_init_help" && exit $ac_status
1503 if $ac_init_version; then
1504 cat <<\_ACEOF
1505 libltdl configure 2.4.2
1506 generated by GNU Autoconf 2.69
1508 Copyright (C) 2012 Free Software Foundation, Inc.
1509 This configure script is free software; the Free Software Foundation
1510 gives unlimited permission to copy, distribute and modify it.
1511 _ACEOF
1512 exit
1513 fi
1515 ## ------------------------ ##
1516 ## Autoconf initialization. ##
1517 ## ------------------------ ##
1519 # ac_fn_c_try_compile LINENO
1520 # --------------------------
1521 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1522 ac_fn_c_try_compile ()
1523 {
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 rm -f conftest.$ac_objext
1526 if { { ac_try="$ac_compile"
1527 case "(($ac_try" in
1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529 *) ac_try_echo=$ac_try;;
1530 esac
1531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532 $as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_compile") 2>conftest.err
1534 ac_status=$?
1535 if test -s conftest.err; then
1536 grep -v '^ *+' conftest.err >conftest.er1
1537 cat conftest.er1 >&5
1538 mv -f conftest.er1 conftest.err
1539 fi
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } && {
1542 test -z "$ac_c_werror_flag" ||
1543 test ! -s conftest.err
1544 } && test -s conftest.$ac_objext; then :
1545 ac_retval=0
1546 else
1547 $as_echo "$as_me: failed program was:" >&5
1548 sed 's/^/| /' conftest.$ac_ext >&5
1550 ac_retval=1
1551 fi
1552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1553 as_fn_set_status $ac_retval
1555 } # ac_fn_c_try_compile
1557 # ac_fn_c_try_link LINENO
1558 # -----------------------
1559 # Try to link conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_link ()
1561 {
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext conftest$ac_exeext
1564 if { { ac_try="$ac_link"
1565 case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_link") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest$ac_exeext && {
1583 test "$cross_compiling" = yes ||
1584 test -x conftest$ac_exeext
1585 }; then :
1586 ac_retval=0
1587 else
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1591 ac_retval=1
1592 fi
1593 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1594 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1595 # interfere with the next link command; also delete a directory that is
1596 # left behind by Apple's compiler. We do this before executing the actions.
1597 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599 as_fn_set_status $ac_retval
1601 } # ac_fn_c_try_link
1603 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1604 # -------------------------------------------------------
1605 # Tests whether HEADER exists and can be compiled using the include files in
1606 # INCLUDES, setting the cache variable VAR accordingly.
1607 ac_fn_c_check_header_compile ()
1608 {
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1611 $as_echo_n "checking for $2... " >&6; }
1612 if eval \${$3+:} false; then :
1613 $as_echo_n "(cached) " >&6
1614 else
1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616 /* end confdefs.h. */
1617 $4
1618 #include <$2>
1619 _ACEOF
1620 if ac_fn_c_try_compile "$LINENO"; then :
1621 eval "$3=yes"
1622 else
1623 eval "$3=no"
1624 fi
1625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1626 fi
1627 eval ac_res=\$$3
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629 $as_echo "$ac_res" >&6; }
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 } # ac_fn_c_check_header_compile
1634 # ac_fn_c_try_cpp LINENO
1635 # ----------------------
1636 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1637 ac_fn_c_try_cpp ()
1638 {
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if { { ac_try="$ac_cpp conftest.$ac_ext"
1641 case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1648 ac_status=$?
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1653 fi
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } > conftest.i && {
1656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 }; then :
1659 ac_retval=0
1660 else
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1664 ac_retval=1
1665 fi
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1669 } # ac_fn_c_try_cpp
1671 # ac_fn_c_try_run LINENO
1672 # ----------------------
1673 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1674 # that executables *can* be run.
1675 ac_fn_c_try_run ()
1676 {
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 if { { ac_try="$ac_link"
1679 case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>&5
1686 ac_status=$?
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1689 { { case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_try") 2>&5
1696 ac_status=$?
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; }; }; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: program exited with status $ac_status" >&5
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1705 ac_retval=$ac_status
1706 fi
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1711 } # ac_fn_c_try_run
1713 # ac_fn_c_check_func LINENO FUNC VAR
1714 # ----------------------------------
1715 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1716 ac_fn_c_check_func ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if eval \${$3+:} false; then :
1722 $as_echo_n "(cached) " >&6
1723 else
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1726 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1728 #define $2 innocuous_$2
1730 /* System header to define __stub macros and hopefully few prototypes,
1731 which can conflict with char $2 (); below.
1732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1733 <limits.h> exists even on freestanding compilers. */
1735 #ifdef __STDC__
1736 # include <limits.h>
1737 #else
1738 # include <assert.h>
1739 #endif
1741 #undef $2
1743 /* Override any GCC internal prototype to avoid an error.
1744 Use char because int might match the return type of a GCC
1745 builtin and then its argument prototype would still apply. */
1746 #ifdef __cplusplus
1747 extern "C"
1748 #endif
1749 char $2 ();
1750 /* The GNU C library defines this for functions which it implements
1751 to always fail with ENOSYS. Some functions are actually named
1752 something starting with __ and the normal name is an alias. */
1753 #if defined __stub_$2 || defined __stub___$2
1754 choke me
1755 #endif
1757 int
1758 main ()
1759 {
1760 return $2 ();
1761 ;
1762 return 0;
1763 }
1764 _ACEOF
1765 if ac_fn_c_try_link "$LINENO"; then :
1766 eval "$3=yes"
1767 else
1768 eval "$3=no"
1769 fi
1770 rm -f core conftest.err conftest.$ac_objext \
1771 conftest$ac_exeext conftest.$ac_ext
1772 fi
1773 eval ac_res=\$$3
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 } # ac_fn_c_check_func
1780 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1781 # ---------------------------------------------
1782 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1783 # accordingly.
1784 ac_fn_c_check_decl ()
1785 {
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 as_decl_name=`echo $2|sed 's/ *(.*//'`
1788 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1790 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1791 if eval \${$3+:} false; then :
1792 $as_echo_n "(cached) " >&6
1793 else
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 $4
1797 int
1798 main ()
1799 {
1800 #ifndef $as_decl_name
1801 #ifdef __cplusplus
1802 (void) $as_decl_use;
1803 #else
1804 (void) $as_decl_name;
1805 #endif
1806 #endif
1808 ;
1809 return 0;
1810 }
1811 _ACEOF
1812 if ac_fn_c_try_compile "$LINENO"; then :
1813 eval "$3=yes"
1814 else
1815 eval "$3=no"
1816 fi
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 fi
1819 eval ac_res=\$$3
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 } # ac_fn_c_check_decl
1826 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1827 # -------------------------------------------
1828 # Tests whether TYPE exists after having included INCLUDES, setting cache
1829 # variable VAR accordingly.
1830 ac_fn_c_check_type ()
1831 {
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \${$3+:} false; then :
1836 $as_echo_n "(cached) " >&6
1837 else
1838 eval "$3=no"
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1841 $4
1842 int
1843 main ()
1844 {
1845 if (sizeof ($2))
1846 return 0;
1847 ;
1848 return 0;
1849 }
1850 _ACEOF
1851 if ac_fn_c_try_compile "$LINENO"; then :
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1854 $4
1855 int
1856 main ()
1857 {
1858 if (sizeof (($2)))
1859 return 0;
1860 ;
1861 return 0;
1862 }
1863 _ACEOF
1864 if ac_fn_c_try_compile "$LINENO"; then :
1866 else
1867 eval "$3=yes"
1868 fi
1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 fi
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 } # ac_fn_c_check_type
1879 cat >config.log <<_ACEOF
1880 This file contains any messages produced by compilers while
1881 running configure, to aid debugging if configure makes a mistake.
1883 It was created by libltdl $as_me 2.4.2, which was
1884 generated by GNU Autoconf 2.69. Invocation command line was
1886 $ $0 $@
1888 _ACEOF
1889 exec 5>>config.log
1890 {
1891 cat <<_ASUNAME
1892 ## --------- ##
1893 ## Platform. ##
1894 ## --------- ##
1896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1897 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1898 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1899 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1900 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1903 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1905 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1906 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1908 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1909 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1910 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1911 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1913 _ASUNAME
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1917 do
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
1920 $as_echo "PATH: $as_dir"
1921 done
1922 IFS=$as_save_IFS
1924 } >&5
1926 cat >&5 <<_ACEOF
1929 ## ----------- ##
1930 ## Core tests. ##
1931 ## ----------- ##
1933 _ACEOF
1936 # Keep a trace of the command line.
1937 # Strip out --no-create and --no-recursion so they do not pile up.
1938 # Strip out --silent because we don't want to record it for future runs.
1939 # Also quote any args containing shell meta-characters.
1940 # Make two passes to allow for proper duplicate-argument suppression.
1941 ac_configure_args=
1942 ac_configure_args0=
1943 ac_configure_args1=
1944 ac_must_keep_next=false
1945 for ac_pass in 1 2
1946 do
1947 for ac_arg
1948 do
1949 case $ac_arg in
1950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952 | -silent | --silent | --silen | --sile | --sil)
1953 continue ;;
1954 *\'*)
1955 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 esac
1957 case $ac_pass in
1958 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1959 2)
1960 as_fn_append ac_configure_args1 " '$ac_arg'"
1961 if test $ac_must_keep_next = true; then
1962 ac_must_keep_next=false # Got value, back to normal.
1963 else
1964 case $ac_arg in
1965 *=* | --config-cache | -C | -disable-* | --disable-* \
1966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968 | -with-* | --with-* | -without-* | --without-* | --x)
1969 case "$ac_configure_args0 " in
1970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971 esac
1972 ;;
1973 -* ) ac_must_keep_next=true ;;
1974 esac
1975 fi
1976 as_fn_append ac_configure_args " '$ac_arg'"
1977 ;;
1978 esac
1979 done
1980 done
1981 { ac_configure_args0=; unset ac_configure_args0;}
1982 { ac_configure_args1=; unset ac_configure_args1;}
1984 # When interrupted or exit'd, cleanup temporary files, and complete
1985 # config.log. We remove comments because anyway the quotes in there
1986 # would cause problems or look ugly.
1987 # WARNING: Use '\'' to represent an apostrophe within the trap.
1988 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989 trap 'exit_status=$?
1990 # Save into config.log some information that might help in debugging.
1991 {
1992 echo
1994 $as_echo "## ---------------- ##
1995 ## Cache variables. ##
1996 ## ---------------- ##"
1997 echo
1998 # The following way of writing the cache mishandles newlines in values,
1999 (
2000 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2001 eval ac_val=\$$ac_var
2002 case $ac_val in #(
2003 *${as_nl}*)
2004 case $ac_var in #(
2005 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2006 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2007 esac
2008 case $ac_var in #(
2009 _ | IFS | as_nl) ;; #(
2010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2011 *) { eval $ac_var=; unset $ac_var;} ;;
2012 esac ;;
2013 esac
2014 done
2015 (set) 2>&1 |
2016 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2017 *${as_nl}ac_space=\ *)
2018 sed -n \
2019 "s/'\''/'\''\\\\'\'''\''/g;
2020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2021 ;; #(
2022 *)
2023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2024 ;;
2025 esac |
2026 sort
2027 )
2028 echo
2030 $as_echo "## ----------------- ##
2031 ## Output variables. ##
2032 ## ----------------- ##"
2033 echo
2034 for ac_var in $ac_subst_vars
2035 do
2036 eval ac_val=\$$ac_var
2037 case $ac_val in
2038 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039 esac
2040 $as_echo "$ac_var='\''$ac_val'\''"
2041 done | sort
2042 echo
2044 if test -n "$ac_subst_files"; then
2045 $as_echo "## ------------------- ##
2046 ## File substitutions. ##
2047 ## ------------------- ##"
2048 echo
2049 for ac_var in $ac_subst_files
2050 do
2051 eval ac_val=\$$ac_var
2052 case $ac_val in
2053 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054 esac
2055 $as_echo "$ac_var='\''$ac_val'\''"
2056 done | sort
2057 echo
2058 fi
2060 if test -s confdefs.h; then
2061 $as_echo "## ----------- ##
2062 ## confdefs.h. ##
2063 ## ----------- ##"
2064 echo
2065 cat confdefs.h
2066 echo
2067 fi
2068 test "$ac_signal" != 0 &&
2069 $as_echo "$as_me: caught signal $ac_signal"
2070 $as_echo "$as_me: exit $exit_status"
2071 } >&5
2072 rm -f core *.core core.conftest.* &&
2073 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2074 exit $exit_status
2075 ' 0
2076 for ac_signal in 1 2 13 15; do
2077 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2078 done
2079 ac_signal=0
2081 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2082 rm -f -r conftest* confdefs.h
2084 $as_echo "/* confdefs.h */" > confdefs.h
2086 # Predefined preprocessor variables.
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_NAME "$PACKAGE_NAME"
2090 _ACEOF
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2094 _ACEOF
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2098 _ACEOF
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_STRING "$PACKAGE_STRING"
2102 _ACEOF
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2106 _ACEOF
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_URL "$PACKAGE_URL"
2110 _ACEOF
2113 # Let the site file select an alternate cache file if it wants to.
2114 # Prefer an explicitly selected file to automatically selected ones.
2115 ac_site_file1=NONE
2116 ac_site_file2=NONE
2117 if test -n "$CONFIG_SITE"; then
2118 # We do not want a PATH search for config.site.
2119 case $CONFIG_SITE in #((
2120 -*) ac_site_file1=./$CONFIG_SITE;;
2121 */*) ac_site_file1=$CONFIG_SITE;;
2122 *) ac_site_file1=./$CONFIG_SITE;;
2123 esac
2124 elif test "x$prefix" != xNONE; then
2125 ac_site_file1=$prefix/share/config.site
2126 ac_site_file2=$prefix/etc/config.site
2127 else
2128 ac_site_file1=$ac_default_prefix/share/config.site
2129 ac_site_file2=$ac_default_prefix/etc/config.site
2130 fi
2131 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2132 do
2133 test "x$ac_site_file" = xNONE && continue
2134 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2136 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2137 sed 's/^/| /' "$ac_site_file" >&5
2138 . "$ac_site_file" \
2139 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2141 as_fn_error $? "failed to load site script $ac_site_file
2142 See \`config.log' for more details" "$LINENO" 5; }
2143 fi
2144 done
2146 if test -r "$cache_file"; then
2147 # Some versions of bash will fail to source /dev/null (special files
2148 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2149 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2151 $as_echo "$as_me: loading cache $cache_file" >&6;}
2152 case $cache_file in
2153 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2154 *) . "./$cache_file";;
2155 esac
2156 fi
2157 else
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2159 $as_echo "$as_me: creating cache $cache_file" >&6;}
2160 >$cache_file
2161 fi
2163 # Check that the precious variables saved in the cache have kept the same
2164 # value.
2165 ac_cache_corrupted=false
2166 for ac_var in $ac_precious_vars; do
2167 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2168 eval ac_new_set=\$ac_env_${ac_var}_set
2169 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2170 eval ac_new_val=\$ac_env_${ac_var}_value
2171 case $ac_old_set,$ac_new_set in
2172 set,)
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2174 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2175 ac_cache_corrupted=: ;;
2176 ,set)
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2178 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2179 ac_cache_corrupted=: ;;
2180 ,);;
2181 *)
2182 if test "x$ac_old_val" != "x$ac_new_val"; then
2183 # differences in whitespace do not lead to failure.
2184 ac_old_val_w=`echo x $ac_old_val`
2185 ac_new_val_w=`echo x $ac_new_val`
2186 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2188 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2189 ac_cache_corrupted=:
2190 else
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2192 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2193 eval $ac_var=\$ac_old_val
2194 fi
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2196 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2198 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2199 fi;;
2200 esac
2201 # Pass precious variables to config.status.
2202 if test "$ac_new_set" = set; then
2203 case $ac_new_val in
2204 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2205 *) ac_arg=$ac_var=$ac_new_val ;;
2206 esac
2207 case " $ac_configure_args " in
2208 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2209 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2210 esac
2211 fi
2212 done
2213 if $ac_cache_corrupted; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2217 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2218 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2219 fi
2220 ## -------------------- ##
2221 ## Main body of script. ##
2222 ## -------------------- ##
2224 ac_ext=c
2225 ac_cpp='$CPP $CPPFLAGS'
2226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2231 ac_config_headers="$ac_config_headers config.h:config-h.in"
2234 ac_aux_dir=
2235 for ac_dir in config "$srcdir"/config; do
2236 if test -f "$ac_dir/install-sh"; then
2237 ac_aux_dir=$ac_dir
2238 ac_install_sh="$ac_aux_dir/install-sh -c"
2239 break
2240 elif test -f "$ac_dir/install.sh"; then
2241 ac_aux_dir=$ac_dir
2242 ac_install_sh="$ac_aux_dir/install.sh -c"
2243 break
2244 elif test -f "$ac_dir/shtool"; then
2245 ac_aux_dir=$ac_dir
2246 ac_install_sh="$ac_aux_dir/shtool install -c"
2247 break
2248 fi
2249 done
2250 if test -z "$ac_aux_dir"; then
2251 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2252 fi
2254 # These three variables are undocumented and unsupported,
2255 # and are intended to be withdrawn in a future Autoconf release.
2256 # They can cause serious problems if a builder's source tree is in a directory
2257 # whose full name contains unusual characters.
2258 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2259 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2260 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2269 # I am me!
2272 ## ------------------------ ##
2273 ## Automake Initialisation. ##
2274 ## ------------------------ ##
2276 am__api_version='1.14'
2278 # Find a good install program. We prefer a C program (faster),
2279 # so one script is as good as another. But avoid the broken or
2280 # incompatible versions:
2281 # SysV /etc/install, /usr/sbin/install
2282 # SunOS /usr/etc/install
2283 # IRIX /sbin/install
2284 # AIX /bin/install
2285 # AmigaOS /C/install, which installs bootblocks on floppy discs
2286 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2287 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2288 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2289 # OS/2's system install, which has a completely different semantic
2290 # ./install, which can be erroneously created by make from ./install.sh.
2291 # Reject install programs that cannot install multiple files.
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2293 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2294 if test -z "$INSTALL"; then
2295 if ${ac_cv_path_install+:} false; then :
2296 $as_echo_n "(cached) " >&6
2297 else
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH
2300 do
2301 IFS=$as_save_IFS
2302 test -z "$as_dir" && as_dir=.
2303 # Account for people who put trailing slashes in PATH elements.
2304 case $as_dir/ in #((
2305 ./ | .// | /[cC]/* | \
2306 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2307 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2308 /usr/ucb/* ) ;;
2309 *)
2310 # OSF1 and SCO ODT 3.0 have their own names for install.
2311 # Don't use installbsd from OSF since it installs stuff as root
2312 # by default.
2313 for ac_prog in ginstall scoinst install; do
2314 for ac_exec_ext in '' $ac_executable_extensions; do
2315 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2316 if test $ac_prog = install &&
2317 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2318 # AIX install. It has an incompatible calling convention.
2319 :
2320 elif test $ac_prog = install &&
2321 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2322 # program-specific install script used by HP pwplus--don't use.
2323 :
2324 else
2325 rm -rf conftest.one conftest.two conftest.dir
2326 echo one > conftest.one
2327 echo two > conftest.two
2328 mkdir conftest.dir
2329 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2330 test -s conftest.one && test -s conftest.two &&
2331 test -s conftest.dir/conftest.one &&
2332 test -s conftest.dir/conftest.two
2333 then
2334 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2335 break 3
2336 fi
2337 fi
2338 fi
2339 done
2340 done
2341 ;;
2342 esac
2344 done
2345 IFS=$as_save_IFS
2347 rm -rf conftest.one conftest.two conftest.dir
2349 fi
2350 if test "${ac_cv_path_install+set}" = set; then
2351 INSTALL=$ac_cv_path_install
2352 else
2353 # As a last resort, use the slow shell script. Don't cache a
2354 # value for INSTALL within a source directory, because that will
2355 # break other packages using the cache if that directory is
2356 # removed, or if the value is a relative name.
2357 INSTALL=$ac_install_sh
2358 fi
2359 fi
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2361 $as_echo "$INSTALL" >&6; }
2363 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2364 # It thinks the first close brace ends the variable substitution.
2365 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2367 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2369 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2372 $as_echo_n "checking whether build environment is sane... " >&6; }
2373 # Reject unsafe characters in $srcdir or the absolute working directory
2374 # name. Accept space and tab only in the latter.
2375 am_lf='
2376 '
2377 case `pwd` in
2378 *[\\\"\#\$\&\'\`$am_lf]*)
2379 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2380 esac
2381 case $srcdir in
2382 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2383 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2384 esac
2386 # Do 'set' in a subshell so we don't clobber the current shell's
2387 # arguments. Must try -L first in case configure is actually a
2388 # symlink; some systems play weird games with the mod time of symlinks
2389 # (eg FreeBSD returns the mod time of the symlink's containing
2390 # directory).
2391 if (
2392 am_has_slept=no
2393 for am_try in 1 2; do
2394 echo "timestamp, slept: $am_has_slept" > conftest.file
2395 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2396 if test "$*" = "X"; then
2397 # -L didn't work.
2398 set X `ls -t "$srcdir/configure" conftest.file`
2399 fi
2400 if test "$*" != "X $srcdir/configure conftest.file" \
2401 && test "$*" != "X conftest.file $srcdir/configure"; then
2403 # If neither matched, then we have a broken ls. This can happen
2404 # if, for instance, CONFIG_SHELL is bash and it inherits a
2405 # broken ls alias from the environment. This has actually
2406 # happened. Such a system could not be considered "sane".
2407 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2408 alias in your environment" "$LINENO" 5
2409 fi
2410 if test "$2" = conftest.file || test $am_try -eq 2; then
2411 break
2412 fi
2413 # Just in case.
2414 sleep 1
2415 am_has_slept=yes
2416 done
2417 test "$2" = conftest.file
2418 )
2419 then
2420 # Ok.
2421 :
2422 else
2423 as_fn_error $? "newly created file is older than distributed files!
2424 Check your system clock" "$LINENO" 5
2425 fi
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2427 $as_echo "yes" >&6; }
2428 # If we didn't sleep, we still need to ensure time stamps of config.status and
2429 # generated files are strictly newer.
2430 am_sleep_pid=
2431 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2432 ( sleep 1 ) &
2433 am_sleep_pid=$!
2434 fi
2436 rm -f conftest.file
2438 test "$program_prefix" != NONE &&
2439 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2440 # Use a double $ so make ignores it.
2441 test "$program_suffix" != NONE &&
2442 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2443 # Double any \ or $.
2444 # By default was `s,x,x', remove it if useless.
2445 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2446 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2448 # expand $ac_aux_dir to an absolute path
2449 am_aux_dir=`cd $ac_aux_dir && pwd`
2451 if test x"${MISSING+set}" != xset; then
2452 case $am_aux_dir in
2453 *\ * | *\ *)
2454 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2455 *)
2456 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2457 esac
2458 fi
2459 # Use eval to expand $SHELL
2460 if eval "$MISSING --is-lightweight"; then
2461 am_missing_run="$MISSING "
2462 else
2463 am_missing_run=
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2465 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2466 fi
2468 if test x"${install_sh}" != xset; then
2469 case $am_aux_dir in
2470 *\ * | *\ *)
2471 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2472 *)
2473 install_sh="\${SHELL} $am_aux_dir/install-sh"
2474 esac
2475 fi
2477 # Installed binaries are usually stripped using 'strip' when the user
2478 # run "make install-strip". However 'strip' might not be the right
2479 # tool to use in cross-compilation environments, therefore Automake
2480 # will honor the 'STRIP' environment variable to overrule this program.
2481 if test "$cross_compiling" != no; then
2482 if test -n "$ac_tool_prefix"; then
2483 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2484 set dummy ${ac_tool_prefix}strip; ac_word=$2
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2486 $as_echo_n "checking for $ac_word... " >&6; }
2487 if ${ac_cv_prog_STRIP+:} false; then :
2488 $as_echo_n "(cached) " >&6
2489 else
2490 if test -n "$STRIP"; then
2491 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2495 do
2496 IFS=$as_save_IFS
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2500 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 break 2
2503 fi
2504 done
2505 done
2506 IFS=$as_save_IFS
2508 fi
2509 fi
2510 STRIP=$ac_cv_prog_STRIP
2511 if test -n "$STRIP"; then
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2513 $as_echo "$STRIP" >&6; }
2514 else
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2516 $as_echo "no" >&6; }
2517 fi
2520 fi
2521 if test -z "$ac_cv_prog_STRIP"; then
2522 ac_ct_STRIP=$STRIP
2523 # Extract the first word of "strip", so it can be a program name with args.
2524 set dummy strip; ac_word=$2
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2526 $as_echo_n "checking for $ac_word... " >&6; }
2527 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2528 $as_echo_n "(cached) " >&6
2529 else
2530 if test -n "$ac_ct_STRIP"; then
2531 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2532 else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2535 do
2536 IFS=$as_save_IFS
2537 test -z "$as_dir" && as_dir=.
2538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2540 ac_cv_prog_ac_ct_STRIP="strip"
2541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 break 2
2543 fi
2544 done
2545 done
2546 IFS=$as_save_IFS
2548 fi
2549 fi
2550 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2551 if test -n "$ac_ct_STRIP"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2553 $as_echo "$ac_ct_STRIP" >&6; }
2554 else
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2556 $as_echo "no" >&6; }
2557 fi
2559 if test "x$ac_ct_STRIP" = x; then
2560 STRIP=":"
2561 else
2562 case $cross_compiling:$ac_tool_warned in
2563 yes:)
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2566 ac_tool_warned=yes ;;
2567 esac
2568 STRIP=$ac_ct_STRIP
2569 fi
2570 else
2571 STRIP="$ac_cv_prog_STRIP"
2572 fi
2574 fi
2575 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2578 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2579 if test -z "$MKDIR_P"; then
2580 if ${ac_cv_path_mkdir+:} false; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2585 do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_prog in mkdir gmkdir; do
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2591 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2592 'mkdir (GNU coreutils) '* | \
2593 'mkdir (coreutils) '* | \
2594 'mkdir (fileutils) '4.1*)
2595 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2596 break 3;;
2597 esac
2598 done
2599 done
2600 done
2601 IFS=$as_save_IFS
2603 fi
2605 test -d ./--version && rmdir ./--version
2606 if test "${ac_cv_path_mkdir+set}" = set; then
2607 MKDIR_P="$ac_cv_path_mkdir -p"
2608 else
2609 # As a last resort, use the slow shell script. Don't cache a
2610 # value for MKDIR_P within a source directory, because that will
2611 # break other packages using the cache if that directory is
2612 # removed, or if the value is a relative name.
2613 MKDIR_P="$ac_install_sh -d"
2614 fi
2615 fi
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2617 $as_echo "$MKDIR_P" >&6; }
2619 for ac_prog in gawk mawk nawk awk
2620 do
2621 # Extract the first word of "$ac_prog", so it can be a program name with args.
2622 set dummy $ac_prog; ac_word=$2
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624 $as_echo_n "checking for $ac_word... " >&6; }
2625 if ${ac_cv_prog_AWK+:} false; then :
2626 $as_echo_n "(cached) " >&6
2627 else
2628 if test -n "$AWK"; then
2629 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2638 ac_cv_prog_AWK="$ac_prog"
2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 break 2
2641 fi
2642 done
2643 done
2644 IFS=$as_save_IFS
2646 fi
2647 fi
2648 AWK=$ac_cv_prog_AWK
2649 if test -n "$AWK"; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2651 $as_echo "$AWK" >&6; }
2652 else
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654 $as_echo "no" >&6; }
2655 fi
2658 test -n "$AWK" && break
2659 done
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2662 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2663 set x ${MAKE-make}
2664 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2665 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 cat >conftest.make <<\_ACEOF
2669 SHELL = /bin/sh
2670 all:
2671 @echo '@@@%%%=$(MAKE)=@@@%%%'
2672 _ACEOF
2673 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2674 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2675 *@@@%%%=?*=@@@%%%*)
2676 eval ac_cv_prog_make_${ac_make}_set=yes;;
2677 *)
2678 eval ac_cv_prog_make_${ac_make}_set=no;;
2679 esac
2680 rm -f conftest.make
2681 fi
2682 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2684 $as_echo "yes" >&6; }
2685 SET_MAKE=
2686 else
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2689 SET_MAKE="MAKE=${MAKE-make}"
2690 fi
2692 rm -rf .tst 2>/dev/null
2693 mkdir .tst 2>/dev/null
2694 if test -d .tst; then
2695 am__leading_dot=.
2696 else
2697 am__leading_dot=_
2698 fi
2699 rmdir .tst 2>/dev/null
2701 # Check whether --enable-silent-rules was given.
2702 if test "${enable_silent_rules+set}" = set; then :
2703 enableval=$enable_silent_rules;
2704 fi
2706 case $enable_silent_rules in # (((
2707 yes) AM_DEFAULT_VERBOSITY=0;;
2708 no) AM_DEFAULT_VERBOSITY=1;;
2709 *) AM_DEFAULT_VERBOSITY=1;;
2710 esac
2711 am_make=${MAKE-make}
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2713 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2714 if ${am_cv_make_support_nested_variables+:} false; then :
2715 $as_echo_n "(cached) " >&6
2716 else
2717 if $as_echo 'TRUE=$(BAR$(V))
2718 BAR0=false
2719 BAR1=true
2720 V=1
2721 am__doit:
2722 @$(TRUE)
2723 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2724 am_cv_make_support_nested_variables=yes
2725 else
2726 am_cv_make_support_nested_variables=no
2727 fi
2728 fi
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2730 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2731 if test $am_cv_make_support_nested_variables = yes; then
2732 AM_V='$(V)'
2733 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2734 else
2735 AM_V=$AM_DEFAULT_VERBOSITY
2736 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2737 fi
2738 AM_BACKSLASH='\'
2740 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2741 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2742 # is not polluted with repeated "-I."
2743 am__isrc=' -I$(srcdir)'
2744 # test to see if srcdir already configured
2745 if test -f $srcdir/config.status; then
2746 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2747 fi
2748 fi
2750 # test whether we have cygpath
2751 if test -z "$CYGPATH_W"; then
2752 if (cygpath --version) >/dev/null 2>/dev/null; then
2753 CYGPATH_W='cygpath -w'
2754 else
2755 CYGPATH_W=echo
2756 fi
2757 fi
2760 # Define the identity of the package.
2761 PACKAGE='libltdl'
2762 VERSION='2.4.2'
2765 cat >>confdefs.h <<_ACEOF
2766 #define PACKAGE "$PACKAGE"
2767 _ACEOF
2770 cat >>confdefs.h <<_ACEOF
2771 #define VERSION "$VERSION"
2772 _ACEOF
2774 # Some tools Automake needs.
2776 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2779 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2782 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2785 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2788 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2790 # For better backward compatibility. To be removed once Automake 1.9.x
2791 # dies out for good. For more background, see:
2792 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2793 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2794 mkdir_p='$(MKDIR_P)'
2796 # We need awk for the "check" target. The system "awk" is bad on
2797 # some platforms.
2798 # Always define AMTAR for backward compatibility. Yes, it's still used
2799 # in the wild :-( We should find a proper way to deprecate it ...
2800 AMTAR='$${TAR-tar}'
2803 # We'll loop over all known methods to create a tar archive until one works.
2804 _am_tools='gnutar pax cpio none'
2806 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2813 # POSIX will say in a future version that running "rm -f" with no argument
2814 # is OK; and we want to be able to make that assumption in our Makefile
2815 # recipes. So use an aggressive probe to check that the usage we want is
2816 # actually supported "in the wild" to an acceptable degree.
2817 # See automake bug#10828.
2818 # To make any issue more visible, cause the running configure to be aborted
2819 # by default if the 'rm' program in use doesn't match our expectations; the
2820 # user can still override this though.
2821 if rm -f && rm -fr && rm -rf; then : OK; else
2822 cat >&2 <<'END'
2823 Oops!
2825 Your 'rm' program seems unable to run without file operands specified
2826 on the command line, even when the '-f' option is present. This is contrary
2827 to the behaviour of most rm programs out there, and not conforming with
2828 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2830 Please tell bug-automake@gnu.org about your system, including the value
2831 of your $PATH and any error possibly output before this message. This
2832 can help us improve future automake versions.
2834 END
2835 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2836 echo 'Configuration will proceed anyway, since you have set the' >&2
2837 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2838 echo >&2
2839 else
2840 cat >&2 <<'END'
2841 Aborting the configuration process, to ensure you take notice of the issue.
2843 You can download and install GNU coreutils to get an 'rm' implementation
2844 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2846 If you want to complete the configuration process using your problematic
2847 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2848 to "yes", and re-run configure.
2850 END
2851 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2852 fi
2853 fi
2856 ## ------------------------------- ##
2857 ## Libtool specific configuration. ##
2858 ## ------------------------------- ##
2859 pkgdatadir='${datadir}'"/${PACKAGE}"
2862 ## ----------------------- ##
2863 ## Libtool initialisation. ##
2864 ## ----------------------- ##
2865 case `pwd` in
2866 *\ * | *\ *)
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2868 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2869 esac
2873 macro_version='2.4.2'
2874 macro_revision='1.3337'
2888 ltmain="$ac_aux_dir/ltmain.sh"
2890 # Make sure we can run config.sub.
2891 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2892 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2895 $as_echo_n "checking build system type... " >&6; }
2896 if ${ac_cv_build+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 ac_build_alias=$build_alias
2900 test "x$ac_build_alias" = x &&
2901 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2902 test "x$ac_build_alias" = x &&
2903 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2904 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2905 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2907 fi
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2909 $as_echo "$ac_cv_build" >&6; }
2910 case $ac_cv_build in
2911 *-*-*) ;;
2912 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2913 esac
2914 build=$ac_cv_build
2915 ac_save_IFS=$IFS; IFS='-'
2916 set x $ac_cv_build
2917 shift
2918 build_cpu=$1
2919 build_vendor=$2
2920 shift; shift
2921 # Remember, the first character of IFS is used to create $*,
2922 # except with old shells:
2923 build_os=$*
2924 IFS=$ac_save_IFS
2925 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2929 $as_echo_n "checking host system type... " >&6; }
2930 if ${ac_cv_host+:} false; then :
2931 $as_echo_n "(cached) " >&6
2932 else
2933 if test "x$host_alias" = x; then
2934 ac_cv_host=$ac_cv_build
2935 else
2936 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2937 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2938 fi
2940 fi
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2942 $as_echo "$ac_cv_host" >&6; }
2943 case $ac_cv_host in
2944 *-*-*) ;;
2945 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2946 esac
2947 host=$ac_cv_host
2948 ac_save_IFS=$IFS; IFS='-'
2949 set x $ac_cv_host
2950 shift
2951 host_cpu=$1
2952 host_vendor=$2
2953 shift; shift
2954 # Remember, the first character of IFS is used to create $*,
2955 # except with old shells:
2956 host_os=$*
2957 IFS=$ac_save_IFS
2958 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2961 # Backslashify metacharacters that are still active within
2962 # double-quoted strings.
2963 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2965 # Same as above, but do not quote variable references.
2966 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2968 # Sed substitution to delay expansion of an escaped shell variable in a
2969 # double_quote_subst'ed string.
2970 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2972 # Sed substitution to delay expansion of an escaped single quote.
2973 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2975 # Sed substitution to avoid accidental globbing in evaled expressions
2976 no_glob_subst='s/\*/\\\*/g'
2978 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2979 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2980 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2983 $as_echo_n "checking how to print strings... " >&6; }
2984 # Test print first, because it will be a builtin if present.
2985 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2986 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2987 ECHO='print -r --'
2988 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2989 ECHO='printf %s\n'
2990 else
2991 # Use this function as a fallback that always works.
2992 func_fallback_echo ()
2993 {
2994 eval 'cat <<_LTECHO_EOF
2995 $1
2996 _LTECHO_EOF'
2997 }
2998 ECHO='func_fallback_echo'
2999 fi
3001 # func_echo_all arg...
3002 # Invoke $ECHO with all args, space-separated.
3003 func_echo_all ()
3004 {
3005 $ECHO ""
3006 }
3008 case "$ECHO" in
3009 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3010 $as_echo "printf" >&6; } ;;
3011 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3012 $as_echo "print -r" >&6; } ;;
3013 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3014 $as_echo "cat" >&6; } ;;
3015 esac
3030 DEPDIR="${am__leading_dot}deps"
3032 ac_config_commands="$ac_config_commands depfiles"
3035 am_make=${MAKE-make}
3036 cat > confinc << 'END'
3037 am__doit:
3038 @echo this is the am__doit target
3039 .PHONY: am__doit
3040 END
3041 # If we don't find an include directive, just comment out the code.
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3043 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3044 am__include="#"
3045 am__quote=
3046 _am_result=none
3047 # First try GNU make style include.
3048 echo "include confinc" > confmf
3049 # Ignore all kinds of additional output from 'make'.
3050 case `$am_make -s -f confmf 2> /dev/null` in #(
3051 *the\ am__doit\ target*)
3052 am__include=include
3053 am__quote=
3054 _am_result=GNU
3055 ;;
3056 esac
3057 # Now try BSD make style include.
3058 if test "$am__include" = "#"; then
3059 echo '.include "confinc"' > confmf
3060 case `$am_make -s -f confmf 2> /dev/null` in #(
3061 *the\ am__doit\ target*)
3062 am__include=.include
3063 am__quote="\""
3064 _am_result=BSD
3065 ;;
3066 esac
3067 fi
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3071 $as_echo "$_am_result" >&6; }
3072 rm -f confinc confmf
3074 # Check whether --enable-dependency-tracking was given.
3075 if test "${enable_dependency_tracking+set}" = set; then :
3076 enableval=$enable_dependency_tracking;
3077 fi
3079 if test "x$enable_dependency_tracking" != xno; then
3080 am_depcomp="$ac_aux_dir/depcomp"
3081 AMDEPBACKSLASH='\'
3082 am__nodep='_no'
3083 fi
3084 if test "x$enable_dependency_tracking" != xno; then
3085 AMDEP_TRUE=
3086 AMDEP_FALSE='#'
3087 else
3088 AMDEP_TRUE='#'
3089 AMDEP_FALSE=
3090 fi
3093 ac_ext=c
3094 ac_cpp='$CPP $CPPFLAGS'
3095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3098 if test -n "$ac_tool_prefix"; then
3099 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3100 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102 $as_echo_n "checking for $ac_word... " >&6; }
3103 if ${ac_cv_prog_CC+:} false; then :
3104 $as_echo_n "(cached) " >&6
3105 else
3106 if test -n "$CC"; then
3107 ac_cv_prog_CC="$CC" # Let the user override the test.
3108 else
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3111 do
3112 IFS=$as_save_IFS
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3116 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 break 2
3119 fi
3120 done
3121 done
3122 IFS=$as_save_IFS
3124 fi
3125 fi
3126 CC=$ac_cv_prog_CC
3127 if test -n "$CC"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3129 $as_echo "$CC" >&6; }
3130 else
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132 $as_echo "no" >&6; }
3133 fi
3136 fi
3137 if test -z "$ac_cv_prog_CC"; then
3138 ac_ct_CC=$CC
3139 # Extract the first word of "gcc", so it can be a program name with args.
3140 set dummy gcc; ac_word=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 $as_echo_n "checking for $ac_word... " >&6; }
3143 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 if test -n "$ac_ct_CC"; then
3147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_ac_ct_CC="gcc"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 break 2
3159 fi
3160 done
3161 done
3162 IFS=$as_save_IFS
3164 fi
3165 fi
3166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3167 if test -n "$ac_ct_CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3169 $as_echo "$ac_ct_CC" >&6; }
3170 else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3173 fi
3175 if test "x$ac_ct_CC" = x; then
3176 CC=""
3177 else
3178 case $cross_compiling:$ac_tool_warned in
3179 yes:)
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3182 ac_tool_warned=yes ;;
3183 esac
3184 CC=$ac_ct_CC
3185 fi
3186 else
3187 CC="$ac_cv_prog_CC"
3188 fi
3190 if test -z "$CC"; then
3191 if test -n "$ac_tool_prefix"; then
3192 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3193 set dummy ${ac_tool_prefix}cc; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_CC+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 if test -n "$CC"; then
3200 ac_cv_prog_CC="$CC" # Let the user override the test.
3201 else
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3204 do
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209 ac_cv_prog_CC="${ac_tool_prefix}cc"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 break 2
3212 fi
3213 done
3214 done
3215 IFS=$as_save_IFS
3217 fi
3218 fi
3219 CC=$ac_cv_prog_CC
3220 if test -n "$CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3222 $as_echo "$CC" >&6; }
3223 else
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3226 fi
3229 fi
3230 fi
3231 if test -z "$CC"; then
3232 # Extract the first word of "cc", so it can be a program name with args.
3233 set dummy cc; ac_word=$2
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if ${ac_cv_prog_CC+:} false; then :
3237 $as_echo_n "(cached) " >&6
3238 else
3239 if test -n "$CC"; then
3240 ac_cv_prog_CC="$CC" # Let the user override the test.
3241 else
3242 ac_prog_rejected=no
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3251 ac_prog_rejected=yes
3252 continue
3253 fi
3254 ac_cv_prog_CC="cc"
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 break 2
3257 fi
3258 done
3259 done
3260 IFS=$as_save_IFS
3262 if test $ac_prog_rejected = yes; then
3263 # We found a bogon in the path, so make sure we never use it.
3264 set dummy $ac_cv_prog_CC
3265 shift
3266 if test $# != 0; then
3267 # We chose a different compiler from the bogus one.
3268 # However, it has the same basename, so the bogon will be chosen
3269 # first if we set CC to just the basename; use the full file name.
3270 shift
3271 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3272 fi
3273 fi
3274 fi
3275 fi
3276 CC=$ac_cv_prog_CC
3277 if test -n "$CC"; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3279 $as_echo "$CC" >&6; }
3280 else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 fi
3286 fi
3287 if test -z "$CC"; then
3288 if test -n "$ac_tool_prefix"; then
3289 for ac_prog in cl.exe
3290 do
3291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294 $as_echo_n "checking for $ac_word... " >&6; }
3295 if ${ac_cv_prog_CC+:} false; then :
3296 $as_echo_n "(cached) " >&6
3297 else
3298 if test -n "$CC"; then
3299 ac_cv_prog_CC="$CC" # Let the user override the test.
3300 else
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH
3303 do
3304 IFS=$as_save_IFS
3305 test -z "$as_dir" && as_dir=.
3306 for ac_exec_ext in '' $ac_executable_extensions; do
3307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3310 break 2
3311 fi
3312 done
3313 done
3314 IFS=$as_save_IFS
3316 fi
3317 fi
3318 CC=$ac_cv_prog_CC
3319 if test -n "$CC"; then
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3321 $as_echo "$CC" >&6; }
3322 else
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 fi
3328 test -n "$CC" && break
3329 done
3330 fi
3331 if test -z "$CC"; then
3332 ac_ct_CC=$CC
3333 for ac_prog in cl.exe
3334 do
3335 # Extract the first word of "$ac_prog", so it can be a program name with args.
3336 set dummy $ac_prog; ac_word=$2
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3338 $as_echo_n "checking for $ac_word... " >&6; }
3339 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3340 $as_echo_n "(cached) " >&6
3341 else
3342 if test -n "$ac_ct_CC"; then
3343 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352 ac_cv_prog_ac_ct_CC="$ac_prog"
3353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 break 2
3355 fi
3356 done
3357 done
3358 IFS=$as_save_IFS
3360 fi
3361 fi
3362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3363 if test -n "$ac_ct_CC"; then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3365 $as_echo "$ac_ct_CC" >&6; }
3366 else
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3369 fi
3372 test -n "$ac_ct_CC" && break
3373 done
3375 if test "x$ac_ct_CC" = x; then
3376 CC=""
3377 else
3378 case $cross_compiling:$ac_tool_warned in
3379 yes:)
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3382 ac_tool_warned=yes ;;
3383 esac
3384 CC=$ac_ct_CC
3385 fi
3386 fi
3388 fi
3391 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 as_fn_error $? "no acceptable C compiler found in \$PATH
3394 See \`config.log' for more details" "$LINENO" 5; }
3396 # Provide some information about the compiler.
3397 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3398 set X $ac_compile
3399 ac_compiler=$2
3400 for ac_option in --version -v -V -qversion; do
3401 { { ac_try="$ac_compiler $ac_option >&5"
3402 case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405 esac
3406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407 $as_echo "$ac_try_echo"; } >&5
3408 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3409 ac_status=$?
3410 if test -s conftest.err; then
3411 sed '10a\
3412 ... rest of stderr output deleted ...
3413 10q' conftest.err >conftest.er1
3414 cat conftest.er1 >&5
3415 fi
3416 rm -f conftest.er1 conftest.err
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }
3419 done
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3424 int
3425 main ()
3426 {
3428 ;
3429 return 0;
3430 }
3431 _ACEOF
3432 ac_clean_files_save=$ac_clean_files
3433 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3434 # Try to create an executable without -o first, disregard a.out.
3435 # It will help us diagnose broken compilers, and finding out an intuition
3436 # of exeext.
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3438 $as_echo_n "checking whether the C compiler works... " >&6; }
3439 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3441 # The possible output files:
3442 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3444 ac_rmfiles=
3445 for ac_file in $ac_files
3446 do
3447 case $ac_file in
3448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3449 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3450 esac
3451 done
3452 rm -f $ac_rmfiles
3454 if { { ac_try="$ac_link_default"
3455 case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_link_default") 2>&5
3462 ac_status=$?
3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }; then :
3465 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3466 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3467 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3468 # so that the user can short-circuit this test for compilers unknown to
3469 # Autoconf.
3470 for ac_file in $ac_files ''
3471 do
3472 test -f "$ac_file" || continue
3473 case $ac_file in
3474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3475 ;;
3476 [ab].out )
3477 # We found the default executable, but exeext='' is most
3478 # certainly right.
3479 break;;
3480 *.* )
3481 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3482 then :; else
3483 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3484 fi
3485 # We set ac_cv_exeext here because the later test for it is not
3486 # safe: cross compilers may not add the suffix if given an `-o'
3487 # argument, so we may need to know it at that point already.
3488 # Even if this section looks crufty: it has the advantage of
3489 # actually working.
3490 break;;
3491 * )
3492 break;;
3493 esac
3494 done
3495 test "$ac_cv_exeext" = no && ac_cv_exeext=
3497 else
3498 ac_file=''
3499 fi
3500 if test -z "$ac_file"; then :
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3503 $as_echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508 as_fn_error 77 "C compiler cannot create executables
3509 See \`config.log' for more details" "$LINENO" 5; }
3510 else
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3512 $as_echo "yes" >&6; }
3513 fi
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3515 $as_echo_n "checking for C compiler default output file name... " >&6; }
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3517 $as_echo "$ac_file" >&6; }
3518 ac_exeext=$ac_cv_exeext
3520 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3521 ac_clean_files=$ac_clean_files_save
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3523 $as_echo_n "checking for suffix of executables... " >&6; }
3524 if { { ac_try="$ac_link"
3525 case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528 esac
3529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530 $as_echo "$ac_try_echo"; } >&5
3531 (eval "$ac_link") 2>&5
3532 ac_status=$?
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }; then :
3535 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3536 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3537 # work properly (i.e., refer to `conftest.exe'), while it won't with
3538 # `rm'.
3539 for ac_file in conftest.exe conftest conftest.*; do
3540 test -f "$ac_file" || continue
3541 case $ac_file in
3542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3543 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3544 break;;
3545 * ) break;;
3546 esac
3547 done
3548 else
3549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3552 See \`config.log' for more details" "$LINENO" 5; }
3553 fi
3554 rm -f conftest conftest$ac_cv_exeext
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3556 $as_echo "$ac_cv_exeext" >&6; }
3558 rm -f conftest.$ac_ext
3559 EXEEXT=$ac_cv_exeext
3560 ac_exeext=$EXEEXT
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3563 #include <stdio.h>
3564 int
3565 main ()
3566 {
3567 FILE *f = fopen ("conftest.out", "w");
3568 return ferror (f) || fclose (f) != 0;
3570 ;
3571 return 0;
3572 }
3573 _ACEOF
3574 ac_clean_files="$ac_clean_files conftest.out"
3575 # Check that the compiler produces executables we can run. If not, either
3576 # the compiler is broken, or we cross compile.
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3578 $as_echo_n "checking whether we are cross compiling... " >&6; }
3579 if test "$cross_compiling" != yes; then
3580 { { ac_try="$ac_link"
3581 case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3584 esac
3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586 $as_echo "$ac_try_echo"; } >&5
3587 (eval "$ac_link") 2>&5
3588 ac_status=$?
3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590 test $ac_status = 0; }
3591 if { ac_try='./conftest$ac_cv_exeext'
3592 { { case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595 esac
3596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597 $as_echo "$ac_try_echo"; } >&5
3598 (eval "$ac_try") 2>&5
3599 ac_status=$?
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }; }; then
3602 cross_compiling=no
3603 else
3604 if test "$cross_compiling" = maybe; then
3605 cross_compiling=yes
3606 else
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error $? "cannot run C compiled programs.
3610 If you meant to cross compile, use \`--host'.
3611 See \`config.log' for more details" "$LINENO" 5; }
3612 fi
3613 fi
3614 fi
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3616 $as_echo "$cross_compiling" >&6; }
3618 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3619 ac_clean_files=$ac_clean_files_save
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3621 $as_echo_n "checking for suffix of object files... " >&6; }
3622 if ${ac_cv_objext+:} false; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3628 int
3629 main ()
3630 {
3632 ;
3633 return 0;
3634 }
3635 _ACEOF
3636 rm -f conftest.o conftest.obj
3637 if { { ac_try="$ac_compile"
3638 case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3641 esac
3642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643 $as_echo "$ac_try_echo"; } >&5
3644 (eval "$ac_compile") 2>&5
3645 ac_status=$?
3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647 test $ac_status = 0; }; then :
3648 for ac_file in conftest.o conftest.obj conftest.*; do
3649 test -f "$ac_file" || continue;
3650 case $ac_file in
3651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3652 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3653 break;;
3654 esac
3655 done
3656 else
3657 $as_echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662 as_fn_error $? "cannot compute suffix of object files: cannot compile
3663 See \`config.log' for more details" "$LINENO" 5; }
3664 fi
3665 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3666 fi
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3668 $as_echo "$ac_cv_objext" >&6; }
3669 OBJEXT=$ac_cv_objext
3670 ac_objext=$OBJEXT
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3672 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3673 if ${ac_cv_c_compiler_gnu+:} false; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3679 int
3680 main ()
3681 {
3682 #ifndef __GNUC__
3683 choke me
3684 #endif
3686 ;
3687 return 0;
3688 }
3689 _ACEOF
3690 if ac_fn_c_try_compile "$LINENO"; then :
3691 ac_compiler_gnu=yes
3692 else
3693 ac_compiler_gnu=no
3694 fi
3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3698 fi
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3700 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3701 if test $ac_compiler_gnu = yes; then
3702 GCC=yes
3703 else
3704 GCC=
3705 fi
3706 ac_test_CFLAGS=${CFLAGS+set}
3707 ac_save_CFLAGS=$CFLAGS
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3709 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3710 if ${ac_cv_prog_cc_g+:} false; then :
3711 $as_echo_n "(cached) " >&6
3712 else
3713 ac_save_c_werror_flag=$ac_c_werror_flag
3714 ac_c_werror_flag=yes
3715 ac_cv_prog_cc_g=no
3716 CFLAGS="-g"
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3720 int
3721 main ()
3722 {
3724 ;
3725 return 0;
3726 }
3727 _ACEOF
3728 if ac_fn_c_try_compile "$LINENO"; then :
3729 ac_cv_prog_cc_g=yes
3730 else
3731 CFLAGS=""
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3735 int
3736 main ()
3737 {
3739 ;
3740 return 0;
3741 }
3742 _ACEOF
3743 if ac_fn_c_try_compile "$LINENO"; then :
3745 else
3746 ac_c_werror_flag=$ac_save_c_werror_flag
3747 CFLAGS="-g"
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3751 int
3752 main ()
3753 {
3755 ;
3756 return 0;
3757 }
3758 _ACEOF
3759 if ac_fn_c_try_compile "$LINENO"; then :
3760 ac_cv_prog_cc_g=yes
3761 fi
3762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 fi
3764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765 fi
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 ac_c_werror_flag=$ac_save_c_werror_flag
3768 fi
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3770 $as_echo "$ac_cv_prog_cc_g" >&6; }
3771 if test "$ac_test_CFLAGS" = set; then
3772 CFLAGS=$ac_save_CFLAGS
3773 elif test $ac_cv_prog_cc_g = yes; then
3774 if test "$GCC" = yes; then
3775 CFLAGS="-g -O2"
3776 else
3777 CFLAGS="-g"
3778 fi
3779 else
3780 if test "$GCC" = yes; then
3781 CFLAGS="-O2"
3782 else
3783 CFLAGS=
3784 fi
3785 fi
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3787 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3788 if ${ac_cv_prog_cc_c89+:} false; then :
3789 $as_echo_n "(cached) " >&6
3790 else
3791 ac_cv_prog_cc_c89=no
3792 ac_save_CC=$CC
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795 #include <stdarg.h>
3796 #include <stdio.h>
3797 struct stat;
3798 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3799 struct buf { int x; };
3800 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3801 static char *e (p, i)
3802 char **p;
3803 int i;
3804 {
3805 return p[i];
3806 }
3807 static char *f (char * (*g) (char **, int), char **p, ...)
3808 {
3809 char *s;
3810 va_list v;
3811 va_start (v,p);
3812 s = g (p, va_arg (v,int));
3813 va_end (v);
3814 return s;
3815 }
3817 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3818 function prototypes and stuff, but not '\xHH' hex character constants.
3819 These don't provoke an error unfortunately, instead are silently treated
3820 as 'x'. The following induces an error, until -std is added to get
3821 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3822 array size at least. It's necessary to write '\x00'==0 to get something
3823 that's true only with -std. */
3824 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3826 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3827 inside strings and character constants. */
3828 #define FOO(x) 'x'
3829 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3831 int test (int i, double x);
3832 struct s1 {int (*f) (int a);};
3833 struct s2 {int (*f) (double a);};
3834 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3835 int argc;
3836 char **argv;
3837 int
3838 main ()
3839 {
3840 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3841 ;
3842 return 0;
3843 }
3844 _ACEOF
3845 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3846 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3847 do
3848 CC="$ac_save_CC $ac_arg"
3849 if ac_fn_c_try_compile "$LINENO"; then :
3850 ac_cv_prog_cc_c89=$ac_arg
3851 fi
3852 rm -f core conftest.err conftest.$ac_objext
3853 test "x$ac_cv_prog_cc_c89" != "xno" && break
3854 done
3855 rm -f conftest.$ac_ext
3856 CC=$ac_save_CC
3858 fi
3859 # AC_CACHE_VAL
3860 case "x$ac_cv_prog_cc_c89" in
3861 x)
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3863 $as_echo "none needed" >&6; } ;;
3864 xno)
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3866 $as_echo "unsupported" >&6; } ;;
3867 *)
3868 CC="$CC $ac_cv_prog_cc_c89"
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3870 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3871 esac
3872 if test "x$ac_cv_prog_cc_c89" != xno; then :
3874 fi
3876 ac_ext=c
3877 ac_cpp='$CPP $CPPFLAGS'
3878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3882 ac_ext=c
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3888 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3889 if ${am_cv_prog_cc_c_o+:} false; then :
3890 $as_echo_n "(cached) " >&6
3891 else
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h. */
3895 int
3896 main ()
3897 {
3899 ;
3900 return 0;
3901 }
3902 _ACEOF
3903 # Make sure it works both with $CC and with simple cc.
3904 # Following AC_PROG_CC_C_O, we do the test twice because some
3905 # compilers refuse to overwrite an existing .o file with -o,
3906 # though they will create one.
3907 am_cv_prog_cc_c_o=yes
3908 for am_i in 1 2; do
3909 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3910 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } \
3914 && test -f conftest2.$ac_objext; then
3915 : OK
3916 else
3917 am_cv_prog_cc_c_o=no
3918 break
3919 fi
3920 done
3921 rm -f core conftest*
3922 unset am_i
3923 fi
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3925 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3926 if test "$am_cv_prog_cc_c_o" != yes; then
3927 # Losing compiler, so override with the script.
3928 # FIXME: It is wrong to rewrite CC.
3929 # But if we don't then we get into trouble of one sort or another.
3930 # A longer-term fix would be to have automake use am__CC in this case,
3931 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3932 CC="$am_aux_dir/compile $CC"
3933 fi
3934 ac_ext=c
3935 ac_cpp='$CPP $CPPFLAGS'
3936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3941 depcc="$CC" am_compiler_list=
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3944 $as_echo_n "checking dependency style of $depcc... " >&6; }
3945 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3946 $as_echo_n "(cached) " >&6
3947 else
3948 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3949 # We make a subdir and do the tests there. Otherwise we can end up
3950 # making bogus files that we don't know about and never remove. For
3951 # instance it was reported that on HP-UX the gcc test will end up
3952 # making a dummy file named 'D' -- because '-MD' means "put the output
3953 # in D".
3954 rm -rf conftest.dir
3955 mkdir conftest.dir
3956 # Copy depcomp to subdir because otherwise we won't find it if we're
3957 # using a relative directory.
3958 cp "$am_depcomp" conftest.dir
3959 cd conftest.dir
3960 # We will build objects and dependencies in a subdirectory because
3961 # it helps to detect inapplicable dependency modes. For instance
3962 # both Tru64's cc and ICC support -MD to output dependencies as a
3963 # side effect of compilation, but ICC will put the dependencies in
3964 # the current directory while Tru64 will put them in the object
3965 # directory.
3966 mkdir sub
3968 am_cv_CC_dependencies_compiler_type=none
3969 if test "$am_compiler_list" = ""; then
3970 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3971 fi
3972 am__universal=false
3973 case " $depcc " in #(
3974 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3975 esac
3977 for depmode in $am_compiler_list; do
3978 # Setup a source with many dependencies, because some compilers
3979 # like to wrap large dependency lists on column 80 (with \), and
3980 # we should not choose a depcomp mode which is confused by this.
3981 #
3982 # We need to recreate these files for each test, as the compiler may
3983 # overwrite some of them when testing with obscure command lines.
3984 # This happens at least with the AIX C compiler.
3985 : > sub/conftest.c
3986 for i in 1 2 3 4 5 6; do
3987 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3988 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3989 # Solaris 10 /bin/sh.
3990 echo '/* dummy */' > sub/conftst$i.h
3991 done
3992 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3994 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3995 # mode. It turns out that the SunPro C++ compiler does not properly
3996 # handle '-M -o', and we need to detect this. Also, some Intel
3997 # versions had trouble with output in subdirs.
3998 am__obj=sub/conftest.${OBJEXT-o}
3999 am__minus_obj="-o $am__obj"
4000 case $depmode in
4001 gcc)
4002 # This depmode causes a compiler race in universal mode.
4003 test "$am__universal" = false || continue
4004 ;;
4005 nosideeffect)
4006 # After this tag, mechanisms are not by side-effect, so they'll
4007 # only be used when explicitly requested.
4008 if test "x$enable_dependency_tracking" = xyes; then
4009 continue
4010 else
4011 break
4012 fi
4013 ;;
4014 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4015 # This compiler won't grok '-c -o', but also, the minuso test has
4016 # not run yet. These depmodes are late enough in the game, and
4017 # so weak that their functioning should not be impacted.
4018 am__obj=conftest.${OBJEXT-o}
4019 am__minus_obj=
4020 ;;
4021 none) break ;;
4022 esac
4023 if depmode=$depmode \
4024 source=sub/conftest.c object=$am__obj \
4025 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4026 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4027 >/dev/null 2>conftest.err &&
4028 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4029 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4030 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4031 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4032 # icc doesn't choke on unknown options, it will just issue warnings
4033 # or remarks (even with -Werror). So we grep stderr for any message
4034 # that says an option was ignored or not supported.
4035 # When given -MP, icc 7.0 and 7.1 complain thusly:
4036 # icc: Command line warning: ignoring option '-M'; no argument required
4037 # The diagnosis changed in icc 8.0:
4038 # icc: Command line remark: option '-MP' not supported
4039 if (grep 'ignoring option' conftest.err ||
4040 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4041 am_cv_CC_dependencies_compiler_type=$depmode
4042 break
4043 fi
4044 fi
4045 done
4047 cd ..
4048 rm -rf conftest.dir
4049 else
4050 am_cv_CC_dependencies_compiler_type=none
4051 fi
4053 fi
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4055 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4056 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4058 if
4059 test "x$enable_dependency_tracking" != xno \
4060 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4061 am__fastdepCC_TRUE=
4062 am__fastdepCC_FALSE='#'
4063 else
4064 am__fastdepCC_TRUE='#'
4065 am__fastdepCC_FALSE=
4066 fi
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4070 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4071 if ${ac_cv_path_SED+:} false; then :
4072 $as_echo_n "(cached) " >&6
4073 else
4074 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4075 for ac_i in 1 2 3 4 5 6 7; do
4076 ac_script="$ac_script$as_nl$ac_script"
4077 done
4078 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4079 { ac_script=; unset ac_script;}
4080 if test -z "$SED"; then
4081 ac_path_SED_found=false
4082 # Loop through the user's path and test for each of PROGNAME-LIST
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 for as_dir in $PATH
4085 do
4086 IFS=$as_save_IFS
4087 test -z "$as_dir" && as_dir=.
4088 for ac_prog in sed gsed; do
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4091 as_fn_executable_p "$ac_path_SED" || continue
4092 # Check for GNU ac_path_SED and select it if it is found.
4093 # Check for GNU $ac_path_SED
4094 case `"$ac_path_SED" --version 2>&1` in
4095 *GNU*)
4096 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4097 *)
4098 ac_count=0
4099 $as_echo_n 0123456789 >"conftest.in"
4100 while :
4101 do
4102 cat "conftest.in" "conftest.in" >"conftest.tmp"
4103 mv "conftest.tmp" "conftest.in"
4104 cp "conftest.in" "conftest.nl"
4105 $as_echo '' >> "conftest.nl"
4106 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4108 as_fn_arith $ac_count + 1 && ac_count=$as_val
4109 if test $ac_count -gt ${ac_path_SED_max-0}; then
4110 # Best one so far, save it but keep looking for a better one
4111 ac_cv_path_SED="$ac_path_SED"
4112 ac_path_SED_max=$ac_count
4113 fi
4114 # 10*(2^10) chars as input seems more than enough
4115 test $ac_count -gt 10 && break
4116 done
4117 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4118 esac
4120 $ac_path_SED_found && break 3
4121 done
4122 done
4123 done
4124 IFS=$as_save_IFS
4125 if test -z "$ac_cv_path_SED"; then
4126 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4127 fi
4128 else
4129 ac_cv_path_SED=$SED
4130 fi
4132 fi
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4134 $as_echo "$ac_cv_path_SED" >&6; }
4135 SED="$ac_cv_path_SED"
4136 rm -f conftest.sed
4138 test -z "$SED" && SED=sed
4139 Xsed="$SED -e 1s/^X//"
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4152 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4153 if ${ac_cv_path_GREP+:} false; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 if test -z "$GREP"; then
4157 ac_path_GREP_found=false
4158 # Loop through the user's path and test for each of PROGNAME-LIST
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4161 do
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_prog in grep ggrep; do
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4167 as_fn_executable_p "$ac_path_GREP" || continue
4168 # Check for GNU ac_path_GREP and select it if it is found.
4169 # Check for GNU $ac_path_GREP
4170 case `"$ac_path_GREP" --version 2>&1` in
4171 *GNU*)
4172 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4173 *)
4174 ac_count=0
4175 $as_echo_n 0123456789 >"conftest.in"
4176 while :
4177 do
4178 cat "conftest.in" "conftest.in" >"conftest.tmp"
4179 mv "conftest.tmp" "conftest.in"
4180 cp "conftest.in" "conftest.nl"
4181 $as_echo 'GREP' >> "conftest.nl"
4182 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4183 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4184 as_fn_arith $ac_count + 1 && ac_count=$as_val
4185 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4186 # Best one so far, save it but keep looking for a better one
4187 ac_cv_path_GREP="$ac_path_GREP"
4188 ac_path_GREP_max=$ac_count
4189 fi
4190 # 10*(2^10) chars as input seems more than enough
4191 test $ac_count -gt 10 && break
4192 done
4193 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4194 esac
4196 $ac_path_GREP_found && break 3
4197 done
4198 done
4199 done
4200 IFS=$as_save_IFS
4201 if test -z "$ac_cv_path_GREP"; then
4202 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4203 fi
4204 else
4205 ac_cv_path_GREP=$GREP
4206 fi
4208 fi
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4210 $as_echo "$ac_cv_path_GREP" >&6; }
4211 GREP="$ac_cv_path_GREP"
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4215 $as_echo_n "checking for egrep... " >&6; }
4216 if ${ac_cv_path_EGREP+:} false; then :
4217 $as_echo_n "(cached) " >&6
4218 else
4219 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4220 then ac_cv_path_EGREP="$GREP -E"
4221 else
4222 if test -z "$EGREP"; then
4223 ac_path_EGREP_found=false
4224 # Loop through the user's path and test for each of PROGNAME-LIST
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4227 do
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_prog in egrep; do
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4233 as_fn_executable_p "$ac_path_EGREP" || continue
4234 # Check for GNU ac_path_EGREP and select it if it is found.
4235 # Check for GNU $ac_path_EGREP
4236 case `"$ac_path_EGREP" --version 2>&1` in
4237 *GNU*)
4238 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4239 *)
4240 ac_count=0
4241 $as_echo_n 0123456789 >"conftest.in"
4242 while :
4243 do
4244 cat "conftest.in" "conftest.in" >"conftest.tmp"
4245 mv "conftest.tmp" "conftest.in"
4246 cp "conftest.in" "conftest.nl"
4247 $as_echo 'EGREP' >> "conftest.nl"
4248 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4250 as_fn_arith $ac_count + 1 && ac_count=$as_val
4251 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4252 # Best one so far, save it but keep looking for a better one
4253 ac_cv_path_EGREP="$ac_path_EGREP"
4254 ac_path_EGREP_max=$ac_count
4255 fi
4256 # 10*(2^10) chars as input seems more than enough
4257 test $ac_count -gt 10 && break
4258 done
4259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4260 esac
4262 $ac_path_EGREP_found && break 3
4263 done
4264 done
4265 done
4266 IFS=$as_save_IFS
4267 if test -z "$ac_cv_path_EGREP"; then
4268 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4269 fi
4270 else
4271 ac_cv_path_EGREP=$EGREP
4272 fi
4274 fi
4275 fi
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4277 $as_echo "$ac_cv_path_EGREP" >&6; }
4278 EGREP="$ac_cv_path_EGREP"
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4282 $as_echo_n "checking for fgrep... " >&6; }
4283 if ${ac_cv_path_FGREP+:} false; then :
4284 $as_echo_n "(cached) " >&6
4285 else
4286 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4287 then ac_cv_path_FGREP="$GREP -F"
4288 else
4289 if test -z "$FGREP"; then
4290 ac_path_FGREP_found=false
4291 # Loop through the user's path and test for each of PROGNAME-LIST
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4294 do
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_prog in fgrep; do
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4300 as_fn_executable_p "$ac_path_FGREP" || continue
4301 # Check for GNU ac_path_FGREP and select it if it is found.
4302 # Check for GNU $ac_path_FGREP
4303 case `"$ac_path_FGREP" --version 2>&1` in
4304 *GNU*)
4305 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4306 *)
4307 ac_count=0
4308 $as_echo_n 0123456789 >"conftest.in"
4309 while :
4310 do
4311 cat "conftest.in" "conftest.in" >"conftest.tmp"
4312 mv "conftest.tmp" "conftest.in"
4313 cp "conftest.in" "conftest.nl"
4314 $as_echo 'FGREP' >> "conftest.nl"
4315 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4316 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4317 as_fn_arith $ac_count + 1 && ac_count=$as_val
4318 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4319 # Best one so far, save it but keep looking for a better one
4320 ac_cv_path_FGREP="$ac_path_FGREP"
4321 ac_path_FGREP_max=$ac_count
4322 fi
4323 # 10*(2^10) chars as input seems more than enough
4324 test $ac_count -gt 10 && break
4325 done
4326 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4327 esac
4329 $ac_path_FGREP_found && break 3
4330 done
4331 done
4332 done
4333 IFS=$as_save_IFS
4334 if test -z "$ac_cv_path_FGREP"; then
4335 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4336 fi
4337 else
4338 ac_cv_path_FGREP=$FGREP
4339 fi
4341 fi
4342 fi
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4344 $as_echo "$ac_cv_path_FGREP" >&6; }
4345 FGREP="$ac_cv_path_FGREP"
4348 test -z "$GREP" && GREP=grep
4368 # Check whether --with-gnu-ld was given.
4369 if test "${with_gnu_ld+set}" = set; then :
4370 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4371 else
4372 with_gnu_ld=no
4373 fi
4375 ac_prog=ld
4376 if test "$GCC" = yes; then
4377 # Check if gcc -print-prog-name=ld gives a path.
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4379 $as_echo_n "checking for ld used by $CC... " >&6; }
4380 case $host in
4381 *-*-mingw*)
4382 # gcc leaves a trailing carriage return which upsets mingw
4383 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4384 *)
4385 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4386 esac
4387 case $ac_prog in
4388 # Accept absolute paths.
4389 [\\/]* | ?:[\\/]*)
4390 re_direlt='/[^/][^/]*/\.\./'
4391 # Canonicalize the pathname of ld
4392 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4393 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4394 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4395 done
4396 test -z "$LD" && LD="$ac_prog"
4397 ;;
4398 "")
4399 # If it fails, then pretend we aren't using GCC.
4400 ac_prog=ld
4401 ;;
4402 *)
4403 # If it is relative, then search for the first ld in PATH.
4404 with_gnu_ld=unknown
4405 ;;
4406 esac
4407 elif test "$with_gnu_ld" = yes; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4409 $as_echo_n "checking for GNU ld... " >&6; }
4410 else
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4412 $as_echo_n "checking for non-GNU ld... " >&6; }
4413 fi
4414 if ${lt_cv_path_LD+:} false; then :
4415 $as_echo_n "(cached) " >&6
4416 else
4417 if test -z "$LD"; then
4418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4419 for ac_dir in $PATH; do
4420 IFS="$lt_save_ifs"
4421 test -z "$ac_dir" && ac_dir=.
4422 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4423 lt_cv_path_LD="$ac_dir/$ac_prog"
4424 # Check to see if the program is GNU ld. I'd rather use --version,
4425 # but apparently some variants of GNU ld only accept -v.
4426 # Break only if it was the GNU/non-GNU ld that we prefer.
4427 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4428 *GNU* | *'with BFD'*)
4429 test "$with_gnu_ld" != no && break
4430 ;;
4431 *)
4432 test "$with_gnu_ld" != yes && break
4433 ;;
4434 esac
4435 fi
4436 done
4437 IFS="$lt_save_ifs"
4438 else
4439 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4440 fi
4441 fi
4443 LD="$lt_cv_path_LD"
4444 if test -n "$LD"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4446 $as_echo "$LD" >&6; }
4447 else
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4450 fi
4451 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4453 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4454 if ${lt_cv_prog_gnu_ld+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4458 case `$LD -v 2>&1 </dev/null` in
4459 *GNU* | *'with BFD'*)
4460 lt_cv_prog_gnu_ld=yes
4461 ;;
4462 *)
4463 lt_cv_prog_gnu_ld=no
4464 ;;
4465 esac
4466 fi
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4468 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4469 with_gnu_ld=$lt_cv_prog_gnu_ld
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4480 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4481 if ${lt_cv_path_NM+:} false; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 if test -n "$NM"; then
4485 # Let the user override the test.
4486 lt_cv_path_NM="$NM"
4487 else
4488 lt_nm_to_check="${ac_tool_prefix}nm"
4489 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4490 lt_nm_to_check="$lt_nm_to_check nm"
4491 fi
4492 for lt_tmp_nm in $lt_nm_to_check; do
4493 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4494 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4495 IFS="$lt_save_ifs"
4496 test -z "$ac_dir" && ac_dir=.
4497 tmp_nm="$ac_dir/$lt_tmp_nm"
4498 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4499 # Check to see if the nm accepts a BSD-compat flag.
4500 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4501 # nm: unknown option "B" ignored
4502 # Tru64's nm complains that /dev/null is an invalid object file
4503 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4504 */dev/null* | *'Invalid file or object type'*)
4505 lt_cv_path_NM="$tmp_nm -B"
4506 break
4507 ;;
4508 *)
4509 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4510 */dev/null*)
4511 lt_cv_path_NM="$tmp_nm -p"
4512 break
4513 ;;
4514 *)
4515 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4516 continue # so that we can try to find one that supports BSD flags
4517 ;;
4518 esac
4519 ;;
4520 esac
4521 fi
4522 done
4523 IFS="$lt_save_ifs"
4524 done
4525 : ${lt_cv_path_NM=no}
4526 fi
4527 fi
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4529 $as_echo "$lt_cv_path_NM" >&6; }
4530 if test "$lt_cv_path_NM" != "no"; then
4531 NM="$lt_cv_path_NM"
4532 else
4533 # Didn't find any BSD compatible name lister, look for dumpbin.
4534 if test -n "$DUMPBIN"; then :
4535 # Let the user override the test.
4536 else
4537 if test -n "$ac_tool_prefix"; then
4538 for ac_prog in dumpbin "link -dump"
4539 do
4540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4543 $as_echo_n "checking for $ac_word... " >&6; }
4544 if ${ac_cv_prog_DUMPBIN+:} false; then :
4545 $as_echo_n "(cached) " >&6
4546 else
4547 if test -n "$DUMPBIN"; then
4548 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4549 else
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH
4552 do
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 break 2
4560 fi
4561 done
4562 done
4563 IFS=$as_save_IFS
4565 fi
4566 fi
4567 DUMPBIN=$ac_cv_prog_DUMPBIN
4568 if test -n "$DUMPBIN"; then
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4570 $as_echo "$DUMPBIN" >&6; }
4571 else
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 $as_echo "no" >&6; }
4574 fi
4577 test -n "$DUMPBIN" && break
4578 done
4579 fi
4580 if test -z "$DUMPBIN"; then
4581 ac_ct_DUMPBIN=$DUMPBIN
4582 for ac_prog in dumpbin "link -dump"
4583 do
4584 # Extract the first word of "$ac_prog", so it can be a program name with args.
4585 set dummy $ac_prog; ac_word=$2
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 $as_echo_n "checking for $ac_word... " >&6; }
4588 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 if test -n "$ac_ct_DUMPBIN"; then
4592 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4593 else
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4596 do
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4601 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 break 2
4604 fi
4605 done
4606 done
4607 IFS=$as_save_IFS
4609 fi
4610 fi
4611 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4612 if test -n "$ac_ct_DUMPBIN"; then
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4614 $as_echo "$ac_ct_DUMPBIN" >&6; }
4615 else
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617 $as_echo "no" >&6; }
4618 fi
4621 test -n "$ac_ct_DUMPBIN" && break
4622 done
4624 if test "x$ac_ct_DUMPBIN" = x; then
4625 DUMPBIN=":"
4626 else
4627 case $cross_compiling:$ac_tool_warned in
4628 yes:)
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4631 ac_tool_warned=yes ;;
4632 esac
4633 DUMPBIN=$ac_ct_DUMPBIN
4634 fi
4635 fi
4637 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4638 *COFF*)
4639 DUMPBIN="$DUMPBIN -symbols"
4640 ;;
4641 *)
4642 DUMPBIN=:
4643 ;;
4644 esac
4645 fi
4647 if test "$DUMPBIN" != ":"; then
4648 NM="$DUMPBIN"
4649 fi
4650 fi
4651 test -z "$NM" && NM=nm
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4659 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4660 if ${lt_cv_nm_interface+:} false; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 lt_cv_nm_interface="BSD nm"
4664 echo "int some_variable = 0;" > conftest.$ac_ext
4665 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4666 (eval "$ac_compile" 2>conftest.err)
4667 cat conftest.err >&5
4668 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4669 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4670 cat conftest.err >&5
4671 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4672 cat conftest.out >&5
4673 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4674 lt_cv_nm_interface="MS dumpbin"
4675 fi
4676 rm -f conftest*
4677 fi
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4679 $as_echo "$lt_cv_nm_interface" >&6; }
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4682 $as_echo_n "checking whether ln -s works... " >&6; }
4683 LN_S=$as_ln_s
4684 if test "$LN_S" = "ln -s"; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4686 $as_echo "yes" >&6; }
4687 else
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4689 $as_echo "no, using $LN_S" >&6; }
4690 fi
4692 # find the maximum length of command line arguments
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4694 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4695 if ${lt_cv_sys_max_cmd_len+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 i=0
4699 teststring="ABCD"
4701 case $build_os in
4702 msdosdjgpp*)
4703 # On DJGPP, this test can blow up pretty badly due to problems in libc
4704 # (any single argument exceeding 2000 bytes causes a buffer overrun
4705 # during glob expansion). Even if it were fixed, the result of this
4706 # check would be larger than it should be.
4707 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4708 ;;
4710 gnu*)
4711 # Under GNU Hurd, this test is not required because there is
4712 # no limit to the length of command line arguments.
4713 # Libtool will interpret -1 as no limit whatsoever
4714 lt_cv_sys_max_cmd_len=-1;
4715 ;;
4717 cygwin* | mingw* | cegcc*)
4718 # On Win9x/ME, this test blows up -- it succeeds, but takes
4719 # about 5 minutes as the teststring grows exponentially.
4720 # Worse, since 9x/ME are not pre-emptively multitasking,
4721 # you end up with a "frozen" computer, even though with patience
4722 # the test eventually succeeds (with a max line length of 256k).
4723 # Instead, let's just punt: use the minimum linelength reported by
4724 # all of the supported platforms: 8192 (on NT/2K/XP).
4725 lt_cv_sys_max_cmd_len=8192;
4726 ;;
4728 mint*)
4729 # On MiNT this can take a long time and run out of memory.
4730 lt_cv_sys_max_cmd_len=8192;
4731 ;;
4733 amigaos*)
4734 # On AmigaOS with pdksh, this test takes hours, literally.
4735 # So we just punt and use a minimum line length of 8192.
4736 lt_cv_sys_max_cmd_len=8192;
4737 ;;
4739 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4740 # This has been around since 386BSD, at least. Likely further.
4741 if test -x /sbin/sysctl; then
4742 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4743 elif test -x /usr/sbin/sysctl; then
4744 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4745 else
4746 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4747 fi
4748 # And add a safety zone
4749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4751 ;;
4753 interix*)
4754 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4755 lt_cv_sys_max_cmd_len=196608
4756 ;;
4758 os2*)
4759 # The test takes a long time on OS/2.
4760 lt_cv_sys_max_cmd_len=8192
4761 ;;
4763 osf*)
4764 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4765 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4766 # nice to cause kernel panics so lets avoid the loop below.
4767 # First set a reasonable default.
4768 lt_cv_sys_max_cmd_len=16384
4769 #
4770 if test -x /sbin/sysconfig; then
4771 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4772 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4773 esac
4774 fi
4775 ;;
4776 sco3.2v5*)
4777 lt_cv_sys_max_cmd_len=102400
4778 ;;
4779 sysv5* | sco5v6* | sysv4.2uw2*)
4780 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4781 if test -n "$kargmax"; then
4782 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4783 else
4784 lt_cv_sys_max_cmd_len=32768
4785 fi
4786 ;;
4787 *)
4788 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4789 if test -n "$lt_cv_sys_max_cmd_len" && \
4790 test undefined != "$lt_cv_sys_max_cmd_len"; then
4791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4793 else
4794 # Make teststring a little bigger before we do anything with it.
4795 # a 1K string should be a reasonable start.
4796 for i in 1 2 3 4 5 6 7 8 ; do
4797 teststring=$teststring$teststring
4798 done
4799 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4800 # If test is not a shell built-in, we'll probably end up computing a
4801 # maximum length that is only half of the actual maximum length, but
4802 # we can't tell.
4803 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4804 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4805 test $i != 17 # 1/2 MB should be enough
4806 do
4807 i=`expr $i + 1`
4808 teststring=$teststring$teststring
4809 done
4810 # Only check the string length outside the loop.
4811 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4812 teststring=
4813 # Add a significant safety factor because C++ compilers can tack on
4814 # massive amounts of additional arguments before passing them to the
4815 # linker. It appears as though 1/2 is a usable value.
4816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4817 fi
4818 ;;
4819 esac
4821 fi
4823 if test -n $lt_cv_sys_max_cmd_len ; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4825 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4826 else
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4828 $as_echo "none" >&6; }
4829 fi
4830 max_cmd_len=$lt_cv_sys_max_cmd_len
4837 : ${CP="cp -f"}
4838 : ${MV="mv -f"}
4839 : ${RM="rm -f"}
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4842 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4843 # Try some XSI features
4844 xsi_shell=no
4845 ( _lt_dummy="a/b/c"
4846 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4847 = c,a/b,b/c, \
4848 && eval 'test $(( 1 + 1 )) -eq 2 \
4849 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4850 && xsi_shell=yes
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4852 $as_echo "$xsi_shell" >&6; }
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4856 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4857 lt_shell_append=no
4858 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4859 >/dev/null 2>&1 \
4860 && lt_shell_append=yes
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4862 $as_echo "$lt_shell_append" >&6; }
4865 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4866 lt_unset=unset
4867 else
4868 lt_unset=false
4869 fi
4875 # test EBCDIC or ASCII
4876 case `echo X|tr X '\101'` in
4877 A) # ASCII based system
4878 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4879 lt_SP2NL='tr \040 \012'
4880 lt_NL2SP='tr \015\012 \040\040'
4881 ;;
4882 *) # EBCDIC based system
4883 lt_SP2NL='tr \100 \n'
4884 lt_NL2SP='tr \r\n \100\100'
4885 ;;
4886 esac
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4897 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4898 if ${lt_cv_to_host_file_cmd+:} false; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 case $host in
4902 *-*-mingw* )
4903 case $build in
4904 *-*-mingw* ) # actually msys
4905 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4906 ;;
4907 *-*-cygwin* )
4908 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4909 ;;
4910 * ) # otherwise, assume *nix
4911 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4912 ;;
4913 esac
4914 ;;
4915 *-*-cygwin* )
4916 case $build in
4917 *-*-mingw* ) # actually msys
4918 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4919 ;;
4920 *-*-cygwin* )
4921 lt_cv_to_host_file_cmd=func_convert_file_noop
4922 ;;
4923 * ) # otherwise, assume *nix
4924 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4925 ;;
4926 esac
4927 ;;
4928 * ) # unhandled hosts (and "normal" native builds)
4929 lt_cv_to_host_file_cmd=func_convert_file_noop
4930 ;;
4931 esac
4933 fi
4935 to_host_file_cmd=$lt_cv_to_host_file_cmd
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4937 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4944 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4945 if ${lt_cv_to_tool_file_cmd+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 #assume ordinary cross tools, or native build.
4949 lt_cv_to_tool_file_cmd=func_convert_file_noop
4950 case $host in
4951 *-*-mingw* )
4952 case $build in
4953 *-*-mingw* ) # actually msys
4954 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4955 ;;
4956 esac
4957 ;;
4958 esac
4960 fi
4962 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4964 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4971 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4972 if ${lt_cv_ld_reload_flag+:} false; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 lt_cv_ld_reload_flag='-r'
4976 fi
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4978 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4979 reload_flag=$lt_cv_ld_reload_flag
4980 case $reload_flag in
4981 "" | " "*) ;;
4982 *) reload_flag=" $reload_flag" ;;
4983 esac
4984 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4985 case $host_os in
4986 cygwin* | mingw* | pw32* | cegcc*)
4987 if test "$GCC" != yes; then
4988 reload_cmds=false
4989 fi
4990 ;;
4991 darwin*)
4992 if test "$GCC" = yes; then
4993 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4994 else
4995 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4996 fi
4997 ;;
4998 esac
5008 if test -n "$ac_tool_prefix"; then
5009 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5010 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012 $as_echo_n "checking for $ac_word... " >&6; }
5013 if ${ac_cv_prog_OBJDUMP+:} false; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 if test -n "$OBJDUMP"; then
5017 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5029 fi
5030 done
5031 done
5032 IFS=$as_save_IFS
5034 fi
5035 fi
5036 OBJDUMP=$ac_cv_prog_OBJDUMP
5037 if test -n "$OBJDUMP"; then
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5039 $as_echo "$OBJDUMP" >&6; }
5040 else
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 $as_echo "no" >&6; }
5043 fi
5046 fi
5047 if test -z "$ac_cv_prog_OBJDUMP"; then
5048 ac_ct_OBJDUMP=$OBJDUMP
5049 # Extract the first word of "objdump", so it can be a program name with args.
5050 set dummy objdump; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056 if test -n "$ac_ct_OBJDUMP"; then
5057 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5066 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 break 2
5069 fi
5070 done
5071 done
5072 IFS=$as_save_IFS
5074 fi
5075 fi
5076 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5077 if test -n "$ac_ct_OBJDUMP"; then
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5079 $as_echo "$ac_ct_OBJDUMP" >&6; }
5080 else
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5083 fi
5085 if test "x$ac_ct_OBJDUMP" = x; then
5086 OBJDUMP="false"
5087 else
5088 case $cross_compiling:$ac_tool_warned in
5089 yes:)
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5092 ac_tool_warned=yes ;;
5093 esac
5094 OBJDUMP=$ac_ct_OBJDUMP
5095 fi
5096 else
5097 OBJDUMP="$ac_cv_prog_OBJDUMP"
5098 fi
5100 test -z "$OBJDUMP" && OBJDUMP=objdump
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5108 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5109 if ${lt_cv_deplibs_check_method+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 lt_cv_file_magic_cmd='$MAGIC_CMD'
5113 lt_cv_file_magic_test_file=
5114 lt_cv_deplibs_check_method='unknown'
5115 # Need to set the preceding variable on all platforms that support
5116 # interlibrary dependencies.
5117 # 'none' -- dependencies not supported.
5118 # `unknown' -- same as none, but documents that we really don't know.
5119 # 'pass_all' -- all dependencies passed with no checks.
5120 # 'test_compile' -- check by making test program.
5121 # 'file_magic [[regex]]' -- check by looking for files in library path
5122 # which responds to the $file_magic_cmd with a given extended regex.
5123 # If you have `file' or equivalent on your system and you're not sure
5124 # whether `pass_all' will *always* work, you probably want this one.
5126 case $host_os in
5127 aix[4-9]*)
5128 lt_cv_deplibs_check_method=pass_all
5129 ;;
5131 beos*)
5132 lt_cv_deplibs_check_method=pass_all
5133 ;;
5135 bsdi[45]*)
5136 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5137 lt_cv_file_magic_cmd='/usr/bin/file -L'
5138 lt_cv_file_magic_test_file=/shlib/libc.so
5139 ;;
5141 cygwin*)
5142 # func_win32_libid is a shell function defined in ltmain.sh
5143 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5144 lt_cv_file_magic_cmd='func_win32_libid'
5145 ;;
5147 mingw* | pw32*)
5148 # Base MSYS/MinGW do not provide the 'file' command needed by
5149 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5150 # unless we find 'file', for example because we are cross-compiling.
5151 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5152 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5153 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5154 lt_cv_file_magic_cmd='func_win32_libid'
5155 else
5156 # Keep this pattern in sync with the one in func_win32_libid.
5157 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5158 lt_cv_file_magic_cmd='$OBJDUMP -f'
5159 fi
5160 ;;
5162 cegcc*)
5163 # use the weaker test based on 'objdump'. See mingw*.
5164 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5165 lt_cv_file_magic_cmd='$OBJDUMP -f'
5166 ;;
5168 darwin* | rhapsody*)
5169 lt_cv_deplibs_check_method=pass_all
5170 ;;
5172 freebsd* | dragonfly*)
5173 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5174 case $host_cpu in
5175 i*86 )
5176 # Not sure whether the presence of OpenBSD here was a mistake.
5177 # Let's accept both of them until this is cleared up.
5178 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5179 lt_cv_file_magic_cmd=/usr/bin/file
5180 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5181 ;;
5182 esac
5183 else
5184 lt_cv_deplibs_check_method=pass_all
5185 fi
5186 ;;
5188 haiku*)
5189 lt_cv_deplibs_check_method=pass_all
5190 ;;
5192 hpux10.20* | hpux11*)
5193 lt_cv_file_magic_cmd=/usr/bin/file
5194 case $host_cpu in
5195 ia64*)
5196 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5197 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5198 ;;
5199 hppa*64*)
5200 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]'
5201 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5202 ;;
5203 *)
5204 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5205 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5206 ;;
5207 esac
5208 ;;
5210 interix[3-9]*)
5211 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5213 ;;
5215 irix5* | irix6* | nonstopux*)
5216 case $LD in
5217 *-32|*"-32 ") libmagic=32-bit;;
5218 *-n32|*"-n32 ") libmagic=N32;;
5219 *-64|*"-64 ") libmagic=64-bit;;
5220 *) libmagic=never-match;;
5221 esac
5222 lt_cv_deplibs_check_method=pass_all
5223 ;;
5225 # This must be glibc/ELF.
5226 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5227 lt_cv_deplibs_check_method=pass_all
5228 ;;
5230 netbsd* | netbsdelf*-gnu)
5231 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5232 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5233 else
5234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5235 fi
5236 ;;
5238 newos6*)
5239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5240 lt_cv_file_magic_cmd=/usr/bin/file
5241 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5242 ;;
5244 *nto* | *qnx*)
5245 lt_cv_deplibs_check_method=pass_all
5246 ;;
5248 openbsd*)
5249 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5251 else
5252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5253 fi
5254 ;;
5256 osf3* | osf4* | osf5*)
5257 lt_cv_deplibs_check_method=pass_all
5258 ;;
5260 rdos*)
5261 lt_cv_deplibs_check_method=pass_all
5262 ;;
5264 solaris*)
5265 lt_cv_deplibs_check_method=pass_all
5266 ;;
5268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5269 lt_cv_deplibs_check_method=pass_all
5270 ;;
5272 sysv4 | sysv4.3*)
5273 case $host_vendor in
5274 motorola)
5275 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]'
5276 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5277 ;;
5278 ncr)
5279 lt_cv_deplibs_check_method=pass_all
5280 ;;
5281 sequent)
5282 lt_cv_file_magic_cmd='/bin/file'
5283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5284 ;;
5285 sni)
5286 lt_cv_file_magic_cmd='/bin/file'
5287 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5288 lt_cv_file_magic_test_file=/lib/libc.so
5289 ;;
5290 siemens)
5291 lt_cv_deplibs_check_method=pass_all
5292 ;;
5293 pc)
5294 lt_cv_deplibs_check_method=pass_all
5295 ;;
5296 esac
5297 ;;
5299 tpf*)
5300 lt_cv_deplibs_check_method=pass_all
5301 ;;
5302 esac
5304 fi
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5306 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5308 file_magic_glob=
5309 want_nocaseglob=no
5310 if test "$build" = "$host"; then
5311 case $host_os in
5312 mingw* | pw32*)
5313 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5314 want_nocaseglob=yes
5315 else
5316 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5317 fi
5318 ;;
5319 esac
5320 fi
5322 file_magic_cmd=$lt_cv_file_magic_cmd
5323 deplibs_check_method=$lt_cv_deplibs_check_method
5324 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5347 if test -n "$ac_tool_prefix"; then
5348 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5349 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_prog_DLLTOOL+:} false; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 if test -n "$DLLTOOL"; then
5356 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5357 else
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5360 do
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5368 fi
5369 done
5370 done
5371 IFS=$as_save_IFS
5373 fi
5374 fi
5375 DLLTOOL=$ac_cv_prog_DLLTOOL
5376 if test -n "$DLLTOOL"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5378 $as_echo "$DLLTOOL" >&6; }
5379 else
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5382 fi
5385 fi
5386 if test -z "$ac_cv_prog_DLLTOOL"; then
5387 ac_ct_DLLTOOL=$DLLTOOL
5388 # Extract the first word of "dlltool", so it can be a program name with args.
5389 set dummy dlltool; ac_word=$2
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391 $as_echo_n "checking for $ac_word... " >&6; }
5392 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 if test -n "$ac_ct_DLLTOOL"; then
5396 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5397 else
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5400 do
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5408 fi
5409 done
5410 done
5411 IFS=$as_save_IFS
5413 fi
5414 fi
5415 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5416 if test -n "$ac_ct_DLLTOOL"; then
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5418 $as_echo "$ac_ct_DLLTOOL" >&6; }
5419 else
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5422 fi
5424 if test "x$ac_ct_DLLTOOL" = x; then
5425 DLLTOOL="false"
5426 else
5427 case $cross_compiling:$ac_tool_warned in
5428 yes:)
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5431 ac_tool_warned=yes ;;
5432 esac
5433 DLLTOOL=$ac_ct_DLLTOOL
5434 fi
5435 else
5436 DLLTOOL="$ac_cv_prog_DLLTOOL"
5437 fi
5439 test -z "$DLLTOOL" && DLLTOOL=dlltool
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5448 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5449 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5450 $as_echo_n "(cached) " >&6
5451 else
5452 lt_cv_sharedlib_from_linklib_cmd='unknown'
5454 case $host_os in
5455 cygwin* | mingw* | pw32* | cegcc*)
5456 # two different shell functions defined in ltmain.sh
5457 # decide which to use based on capabilities of $DLLTOOL
5458 case `$DLLTOOL --help 2>&1` in
5459 *--identify-strict*)
5460 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5461 ;;
5462 *)
5463 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5464 ;;
5465 esac
5466 ;;
5467 *)
5468 # fallback: assume linklib IS sharedlib
5469 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5470 ;;
5471 esac
5473 fi
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5475 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5476 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5477 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5486 if test -n "$ac_tool_prefix"; then
5487 for ac_prog in ar
5488 do
5489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5492 $as_echo_n "checking for $ac_word... " >&6; }
5493 if ${ac_cv_prog_AR+:} false; then :
5494 $as_echo_n "(cached) " >&6
5495 else
5496 if test -n "$AR"; then
5497 ac_cv_prog_AR="$AR" # Let the user override the test.
5498 else
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 for as_dir in $PATH
5501 do
5502 IFS=$as_save_IFS
5503 test -z "$as_dir" && as_dir=.
5504 for ac_exec_ext in '' $ac_executable_extensions; do
5505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5506 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5508 break 2
5509 fi
5510 done
5511 done
5512 IFS=$as_save_IFS
5514 fi
5515 fi
5516 AR=$ac_cv_prog_AR
5517 if test -n "$AR"; then
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5519 $as_echo "$AR" >&6; }
5520 else
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522 $as_echo "no" >&6; }
5523 fi
5526 test -n "$AR" && break
5527 done
5528 fi
5529 if test -z "$AR"; then
5530 ac_ct_AR=$AR
5531 for ac_prog in ar
5532 do
5533 # Extract the first word of "$ac_prog", so it can be a program name with args.
5534 set dummy $ac_prog; ac_word=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 $as_echo_n "checking for $ac_word... " >&6; }
5537 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 if test -n "$ac_ct_AR"; then
5541 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546 IFS=$as_save_IFS
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550 ac_cv_prog_ac_ct_AR="$ac_prog"
5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 break 2
5553 fi
5554 done
5555 done
5556 IFS=$as_save_IFS
5558 fi
5559 fi
5560 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5561 if test -n "$ac_ct_AR"; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5563 $as_echo "$ac_ct_AR" >&6; }
5564 else
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5567 fi
5570 test -n "$ac_ct_AR" && break
5571 done
5573 if test "x$ac_ct_AR" = x; then
5574 AR="false"
5575 else
5576 case $cross_compiling:$ac_tool_warned in
5577 yes:)
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5580 ac_tool_warned=yes ;;
5581 esac
5582 AR=$ac_ct_AR
5583 fi
5584 fi
5586 : ${AR=ar}
5587 : ${AR_FLAGS=cru}
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5600 $as_echo_n "checking for archiver @FILE support... " >&6; }
5601 if ${lt_cv_ar_at_file+:} false; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 lt_cv_ar_at_file=no
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5608 int
5609 main ()
5610 {
5612 ;
5613 return 0;
5614 }
5615 _ACEOF
5616 if ac_fn_c_try_compile "$LINENO"; then :
5617 echo conftest.$ac_objext > conftest.lst
5618 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5620 (eval $lt_ar_try) 2>&5
5621 ac_status=$?
5622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5623 test $ac_status = 0; }
5624 if test "$ac_status" -eq 0; then
5625 # Ensure the archiver fails upon bogus file names.
5626 rm -f conftest.$ac_objext libconftest.a
5627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5628 (eval $lt_ar_try) 2>&5
5629 ac_status=$?
5630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5631 test $ac_status = 0; }
5632 if test "$ac_status" -ne 0; then
5633 lt_cv_ar_at_file=@
5634 fi
5635 fi
5636 rm -f conftest.* libconftest.a
5638 fi
5639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641 fi
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5643 $as_echo "$lt_cv_ar_at_file" >&6; }
5645 if test "x$lt_cv_ar_at_file" = xno; then
5646 archiver_list_spec=
5647 else
5648 archiver_list_spec=$lt_cv_ar_at_file
5649 fi
5657 if test -n "$ac_tool_prefix"; then
5658 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5659 set dummy ${ac_tool_prefix}strip; ac_word=$2
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5661 $as_echo_n "checking for $ac_word... " >&6; }
5662 if ${ac_cv_prog_STRIP+:} false; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 if test -n "$STRIP"; then
5666 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5670 do
5671 IFS=$as_save_IFS
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5675 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 break 2
5678 fi
5679 done
5680 done
5681 IFS=$as_save_IFS
5683 fi
5684 fi
5685 STRIP=$ac_cv_prog_STRIP
5686 if test -n "$STRIP"; then
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5688 $as_echo "$STRIP" >&6; }
5689 else
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5692 fi
5695 fi
5696 if test -z "$ac_cv_prog_STRIP"; then
5697 ac_ct_STRIP=$STRIP
5698 # Extract the first word of "strip", so it can be a program name with args.
5699 set dummy strip; ac_word=$2
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701 $as_echo_n "checking for $ac_word... " >&6; }
5702 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5703 $as_echo_n "(cached) " >&6
5704 else
5705 if test -n "$ac_ct_STRIP"; then
5706 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5707 else
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5710 do
5711 IFS=$as_save_IFS
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5715 ac_cv_prog_ac_ct_STRIP="strip"
5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 break 2
5718 fi
5719 done
5720 done
5721 IFS=$as_save_IFS
5723 fi
5724 fi
5725 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5726 if test -n "$ac_ct_STRIP"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5728 $as_echo "$ac_ct_STRIP" >&6; }
5729 else
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731 $as_echo "no" >&6; }
5732 fi
5734 if test "x$ac_ct_STRIP" = x; then
5735 STRIP=":"
5736 else
5737 case $cross_compiling:$ac_tool_warned in
5738 yes:)
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5741 ac_tool_warned=yes ;;
5742 esac
5743 STRIP=$ac_ct_STRIP
5744 fi
5745 else
5746 STRIP="$ac_cv_prog_STRIP"
5747 fi
5749 test -z "$STRIP" && STRIP=:
5756 if test -n "$ac_tool_prefix"; then
5757 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5758 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 $as_echo_n "checking for $ac_word... " >&6; }
5761 if ${ac_cv_prog_RANLIB+:} false; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5764 if test -n "$RANLIB"; then
5765 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5766 else
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5769 do
5770 IFS=$as_save_IFS
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5774 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 break 2
5777 fi
5778 done
5779 done
5780 IFS=$as_save_IFS
5782 fi
5783 fi
5784 RANLIB=$ac_cv_prog_RANLIB
5785 if test -n "$RANLIB"; then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5787 $as_echo "$RANLIB" >&6; }
5788 else
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5791 fi
5794 fi
5795 if test -z "$ac_cv_prog_RANLIB"; then
5796 ac_ct_RANLIB=$RANLIB
5797 # Extract the first word of "ranlib", so it can be a program name with args.
5798 set dummy ranlib; ac_word=$2
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800 $as_echo_n "checking for $ac_word... " >&6; }
5801 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 if test -n "$ac_ct_RANLIB"; then
5805 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5806 else
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH
5809 do
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5814 ac_cv_prog_ac_ct_RANLIB="ranlib"
5815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 break 2
5817 fi
5818 done
5819 done
5820 IFS=$as_save_IFS
5822 fi
5823 fi
5824 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5825 if test -n "$ac_ct_RANLIB"; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5827 $as_echo "$ac_ct_RANLIB" >&6; }
5828 else
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830 $as_echo "no" >&6; }
5831 fi
5833 if test "x$ac_ct_RANLIB" = x; then
5834 RANLIB=":"
5835 else
5836 case $cross_compiling:$ac_tool_warned in
5837 yes:)
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5840 ac_tool_warned=yes ;;
5841 esac
5842 RANLIB=$ac_ct_RANLIB
5843 fi
5844 else
5845 RANLIB="$ac_cv_prog_RANLIB"
5846 fi
5848 test -z "$RANLIB" && RANLIB=:
5855 # Determine commands to create old-style static archives.
5856 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5857 old_postinstall_cmds='chmod 644 $oldlib'
5858 old_postuninstall_cmds=
5860 if test -n "$RANLIB"; then
5861 case $host_os in
5862 openbsd*)
5863 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5864 ;;
5865 *)
5866 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5867 ;;
5868 esac
5869 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5870 fi
5872 case $host_os in
5873 darwin*)
5874 lock_old_archive_extraction=yes ;;
5875 *)
5876 lock_old_archive_extraction=no ;;
5877 esac
5917 # If no C compiler was specified, use CC.
5918 LTCC=${LTCC-"$CC"}
5920 # If no C compiler flags were specified, use CFLAGS.
5921 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5923 # Allow CC to be a program name with arguments.
5924 compiler=$CC
5927 # Check for command to grab the raw symbol name followed by C symbol from nm.
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5929 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5930 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5934 # These are sane defaults that work on at least a few old systems.
5935 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5937 # Character class describing NM global symbol codes.
5938 symcode='[BCDEGRST]'
5940 # Regexp to match symbols that can be accessed directly from C.
5941 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5943 # Define system-specific variables.
5944 case $host_os in
5945 aix*)
5946 symcode='[BCDT]'
5947 ;;
5948 cygwin* | mingw* | pw32* | cegcc*)
5949 symcode='[ABCDGISTW]'
5950 ;;
5951 hpux*)
5952 if test "$host_cpu" = ia64; then
5953 symcode='[ABCDEGRST]'
5954 fi
5955 ;;
5956 irix* | nonstopux*)
5957 symcode='[BCDEGRST]'
5958 ;;
5959 osf*)
5960 symcode='[BCDEGQRST]'
5961 ;;
5962 solaris*)
5963 symcode='[BDRT]'
5964 ;;
5965 sco3.2v5*)
5966 symcode='[DT]'
5967 ;;
5968 sysv4.2uw2*)
5969 symcode='[DT]'
5970 ;;
5971 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5972 symcode='[ABDT]'
5973 ;;
5974 sysv4)
5975 symcode='[DFNSTU]'
5976 ;;
5977 esac
5979 # If we're using GNU nm, then use its standard symbol codes.
5980 case `$NM -V 2>&1` in
5981 *GNU* | *'with BFD'*)
5982 symcode='[ABCDGIRSTW]' ;;
5983 esac
5985 # Transform an extracted symbol line into a proper C declaration.
5986 # Some systems (esp. on ia64) link data and code symbols differently,
5987 # so use this general approach.
5988 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5990 # Transform an extracted symbol line into symbol name and symbol address
5991 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5992 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'"
5994 # Handle CRLF in mingw tool chain
5995 opt_cr=
5996 case $build_os in
5997 mingw*)
5998 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5999 ;;
6000 esac
6002 # Try without a prefix underscore, then with it.
6003 for ac_symprfx in "" "_"; do
6005 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6006 symxfrm="\\1 $ac_symprfx\\2 \\2"
6008 # Write the raw and C identifiers.
6009 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6010 # Fake it for dumpbin and say T for any non-static function
6011 # and D for any global variable.
6012 # Also find C++ and __fastcall symbols from MSVC++,
6013 # which start with @ or ?.
6014 lt_cv_sys_global_symbol_pipe="$AWK '"\
6015 " {last_section=section; section=\$ 3};"\
6016 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6017 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6018 " \$ 0!~/External *\|/{next};"\
6019 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6020 " {if(hide[section]) next};"\
6021 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6022 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6023 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6024 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6025 " ' prfx=^$ac_symprfx"
6026 else
6027 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6028 fi
6029 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6031 # Check to see that the pipe works correctly.
6032 pipe_works=no
6034 rm -f conftest*
6035 cat > conftest.$ac_ext <<_LT_EOF
6036 #ifdef __cplusplus
6037 extern "C" {
6038 #endif
6039 char nm_test_var;
6040 void nm_test_func(void);
6041 void nm_test_func(void){}
6042 #ifdef __cplusplus
6043 }
6044 #endif
6045 int main(){nm_test_var='a';nm_test_func();return(0);}
6046 _LT_EOF
6048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6049 (eval $ac_compile) 2>&5
6050 ac_status=$?
6051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6052 test $ac_status = 0; }; then
6053 # Now try to grab the symbols.
6054 nlist=conftest.nm
6055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6056 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6057 ac_status=$?
6058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6059 test $ac_status = 0; } && test -s "$nlist"; then
6060 # Try sorting and uniquifying the output.
6061 if sort "$nlist" | uniq > "$nlist"T; then
6062 mv -f "$nlist"T "$nlist"
6063 else
6064 rm -f "$nlist"T
6065 fi
6067 # Make sure that we snagged all the symbols we need.
6068 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6069 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6070 cat <<_LT_EOF > conftest.$ac_ext
6071 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6072 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6073 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6074 relocations are performed -- see ld's documentation on pseudo-relocs. */
6075 # define LT_DLSYM_CONST
6076 #elif defined(__osf__)
6077 /* This system does not cope well with relocations in const data. */
6078 # define LT_DLSYM_CONST
6079 #else
6080 # define LT_DLSYM_CONST const
6081 #endif
6083 #ifdef __cplusplus
6084 extern "C" {
6085 #endif
6087 _LT_EOF
6088 # Now generate the symbol file.
6089 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6091 cat <<_LT_EOF >> conftest.$ac_ext
6093 /* The mapping between symbol names and symbols. */
6094 LT_DLSYM_CONST struct {
6095 const char *name;
6096 void *address;
6097 }
6098 lt__PROGRAM__LTX_preloaded_symbols[] =
6099 {
6100 { "@PROGRAM@", (void *) 0 },
6101 _LT_EOF
6102 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6103 cat <<\_LT_EOF >> conftest.$ac_ext
6104 {0, (void *) 0}
6105 };
6107 /* This works around a problem in FreeBSD linker */
6108 #ifdef FREEBSD_WORKAROUND
6109 static const void *lt_preloaded_setup() {
6110 return lt__PROGRAM__LTX_preloaded_symbols;
6111 }
6112 #endif
6114 #ifdef __cplusplus
6115 }
6116 #endif
6117 _LT_EOF
6118 # Now try linking the two files.
6119 mv conftest.$ac_objext conftstm.$ac_objext
6120 lt_globsym_save_LIBS=$LIBS
6121 lt_globsym_save_CFLAGS=$CFLAGS
6122 LIBS="conftstm.$ac_objext"
6123 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6125 (eval $ac_link) 2>&5
6126 ac_status=$?
6127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6128 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6129 pipe_works=yes
6130 fi
6131 LIBS=$lt_globsym_save_LIBS
6132 CFLAGS=$lt_globsym_save_CFLAGS
6133 else
6134 echo "cannot find nm_test_func in $nlist" >&5
6135 fi
6136 else
6137 echo "cannot find nm_test_var in $nlist" >&5
6138 fi
6139 else
6140 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6141 fi
6142 else
6143 echo "$progname: failed program was:" >&5
6144 cat conftest.$ac_ext >&5
6145 fi
6146 rm -rf conftest* conftst*
6148 # Do not use the global_symbol_pipe unless it works.
6149 if test "$pipe_works" = yes; then
6150 break
6151 else
6152 lt_cv_sys_global_symbol_pipe=
6153 fi
6154 done
6156 fi
6158 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6159 lt_cv_sys_global_symbol_to_cdecl=
6160 fi
6161 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6163 $as_echo "failed" >&6; }
6164 else
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6166 $as_echo "ok" >&6; }
6167 fi
6169 # Response file support.
6170 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6171 nm_file_list_spec='@'
6172 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6173 nm_file_list_spec='@'
6174 fi
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6203 $as_echo_n "checking for sysroot... " >&6; }
6205 # Check whether --with-sysroot was given.
6206 if test "${with_sysroot+set}" = set; then :
6207 withval=$with_sysroot;
6208 else
6209 with_sysroot=no
6210 fi
6213 lt_sysroot=
6214 case ${with_sysroot} in #(
6215 yes)
6216 if test "$GCC" = yes; then
6217 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6218 fi
6219 ;; #(
6220 /*)
6221 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6222 ;; #(
6223 no|'')
6224 ;; #(
6225 *)
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6227 $as_echo "${with_sysroot}" >&6; }
6228 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6229 ;;
6230 esac
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6233 $as_echo "${lt_sysroot:-no}" >&6; }
6239 # Check whether --enable-libtool-lock was given.
6240 if test "${enable_libtool_lock+set}" = set; then :
6241 enableval=$enable_libtool_lock;
6242 fi
6244 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6246 # Some flags need to be propagated to the compiler or linker for good
6247 # libtool support.
6248 case $host in
6249 ia64-*-hpux*)
6250 # Find out which ABI we are using.
6251 echo 'int i;' > conftest.$ac_ext
6252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6253 (eval $ac_compile) 2>&5
6254 ac_status=$?
6255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6256 test $ac_status = 0; }; then
6257 case `/usr/bin/file conftest.$ac_objext` in
6258 *ELF-32*)
6259 HPUX_IA64_MODE="32"
6260 ;;
6261 *ELF-64*)
6262 HPUX_IA64_MODE="64"
6263 ;;
6264 esac
6265 fi
6266 rm -rf conftest*
6267 ;;
6268 *-*-irix6*)
6269 # Find out which ABI we are using.
6270 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6272 (eval $ac_compile) 2>&5
6273 ac_status=$?
6274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6275 test $ac_status = 0; }; then
6276 if test "$lt_cv_prog_gnu_ld" = yes; then
6277 case `/usr/bin/file conftest.$ac_objext` in
6278 *32-bit*)
6279 LD="${LD-ld} -melf32bsmip"
6280 ;;
6281 *N32*)
6282 LD="${LD-ld} -melf32bmipn32"
6283 ;;
6284 *64-bit*)
6285 LD="${LD-ld} -melf64bmip"
6286 ;;
6287 esac
6288 else
6289 case `/usr/bin/file conftest.$ac_objext` in
6290 *32-bit*)
6291 LD="${LD-ld} -32"
6292 ;;
6293 *N32*)
6294 LD="${LD-ld} -n32"
6295 ;;
6296 *64-bit*)
6297 LD="${LD-ld} -64"
6298 ;;
6299 esac
6300 fi
6301 fi
6302 rm -rf conftest*
6303 ;;
6305 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6306 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6307 # Find out which ABI we are using.
6308 echo 'int i;' > conftest.$ac_ext
6309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6310 (eval $ac_compile) 2>&5
6311 ac_status=$?
6312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6313 test $ac_status = 0; }; then
6314 case `/usr/bin/file conftest.o` in
6315 *32-bit*)
6316 case $host in
6317 x86_64-*kfreebsd*-gnu)
6318 LD="${LD-ld} -m elf_i386_fbsd"
6319 ;;
6320 x86_64-*linux*)
6321 case `/usr/bin/file conftest.o` in
6322 *x86-64*)
6323 LD="${LD-ld} -m elf32_x86_64"
6324 ;;
6325 *)
6326 LD="${LD-ld} -m elf_i386"
6327 ;;
6328 esac
6329 ;;
6330 powerpc64le-*)
6331 LD="${LD-ld} -m elf32lppclinux"
6332 ;;
6333 powerpc64-*)
6334 LD="${LD-ld} -m elf32ppclinux"
6335 ;;
6336 s390x-*linux*)
6337 LD="${LD-ld} -m elf_s390"
6338 ;;
6339 sparc64-*linux*)
6340 LD="${LD-ld} -m elf32_sparc"
6341 ;;
6342 esac
6343 ;;
6344 *64-bit*)
6345 case $host in
6346 x86_64-*kfreebsd*-gnu)
6347 LD="${LD-ld} -m elf_x86_64_fbsd"
6348 ;;
6349 x86_64-*linux*)
6350 LD="${LD-ld} -m elf_x86_64"
6351 ;;
6352 powerpcle-*)
6353 LD="${LD-ld} -m elf64lppc"
6354 ;;
6355 powerpc-*)
6356 LD="${LD-ld} -m elf64ppc"
6357 ;;
6358 s390*-*linux*|s390*-*tpf*)
6359 LD="${LD-ld} -m elf64_s390"
6360 ;;
6361 sparc*-*linux*)
6362 LD="${LD-ld} -m elf64_sparc"
6363 ;;
6364 esac
6365 ;;
6366 esac
6367 fi
6368 rm -rf conftest*
6369 ;;
6371 *-*-sco3.2v5*)
6372 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6373 SAVE_CFLAGS="$CFLAGS"
6374 CFLAGS="$CFLAGS -belf"
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6376 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6377 if ${lt_cv_cc_needs_belf+:} false; then :
6378 $as_echo_n "(cached) " >&6
6379 else
6380 ac_ext=c
6381 ac_cpp='$CPP $CPPFLAGS'
6382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6389 int
6390 main ()
6391 {
6393 ;
6394 return 0;
6395 }
6396 _ACEOF
6397 if ac_fn_c_try_link "$LINENO"; then :
6398 lt_cv_cc_needs_belf=yes
6399 else
6400 lt_cv_cc_needs_belf=no
6401 fi
6402 rm -f core conftest.err conftest.$ac_objext \
6403 conftest$ac_exeext conftest.$ac_ext
6404 ac_ext=c
6405 ac_cpp='$CPP $CPPFLAGS'
6406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6410 fi
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6412 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6413 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6414 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6415 CFLAGS="$SAVE_CFLAGS"
6416 fi
6417 ;;
6418 *-*solaris*)
6419 # Find out which ABI we are using.
6420 echo 'int i;' > conftest.$ac_ext
6421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6422 (eval $ac_compile) 2>&5
6423 ac_status=$?
6424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6425 test $ac_status = 0; }; then
6426 case `/usr/bin/file conftest.o` in
6427 *64-bit*)
6428 case $lt_cv_prog_gnu_ld in
6429 yes*)
6430 case $host in
6431 i?86-*-solaris*)
6432 LD="${LD-ld} -m elf_x86_64"
6433 ;;
6434 sparc*-*-solaris*)
6435 LD="${LD-ld} -m elf64_sparc"
6436 ;;
6437 esac
6438 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6439 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6440 LD="${LD-ld}_sol2"
6441 fi
6442 ;;
6443 *)
6444 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6445 LD="${LD-ld} -64"
6446 fi
6447 ;;
6448 esac
6449 ;;
6450 esac
6451 fi
6452 rm -rf conftest*
6453 ;;
6454 esac
6456 need_locks="$enable_libtool_lock"
6458 if test -n "$ac_tool_prefix"; then
6459 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6460 set dummy ${ac_tool_prefix}mt; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 if test -n "$MANIFEST_TOOL"; then
6467 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6471 do
6472 IFS=$as_save_IFS
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6476 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478 break 2
6479 fi
6480 done
6481 done
6482 IFS=$as_save_IFS
6484 fi
6485 fi
6486 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6487 if test -n "$MANIFEST_TOOL"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6489 $as_echo "$MANIFEST_TOOL" >&6; }
6490 else
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6493 fi
6496 fi
6497 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6498 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6499 # Extract the first word of "mt", so it can be a program name with args.
6500 set dummy mt; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 if test -n "$ac_ct_MANIFEST_TOOL"; then
6507 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6508 else
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6511 do
6512 IFS=$as_save_IFS
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6516 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 break 2
6519 fi
6520 done
6521 done
6522 IFS=$as_save_IFS
6524 fi
6525 fi
6526 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6527 if test -n "$ac_ct_MANIFEST_TOOL"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6529 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6530 else
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6533 fi
6535 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6536 MANIFEST_TOOL=":"
6537 else
6538 case $cross_compiling:$ac_tool_warned in
6539 yes:)
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542 ac_tool_warned=yes ;;
6543 esac
6544 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6545 fi
6546 else
6547 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6548 fi
6550 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6552 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6553 if ${lt_cv_path_mainfest_tool+:} false; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 lt_cv_path_mainfest_tool=no
6557 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6558 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6559 cat conftest.err >&5
6560 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6561 lt_cv_path_mainfest_tool=yes
6562 fi
6563 rm -f conftest*
6564 fi
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6566 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6567 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6568 MANIFEST_TOOL=:
6569 fi
6576 case $host_os in
6577 rhapsody* | darwin*)
6578 if test -n "$ac_tool_prefix"; then
6579 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6580 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586 if test -n "$DSYMUTIL"; then
6587 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6588 else
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590 for as_dir in $PATH
6591 do
6592 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6596 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 break 2
6599 fi
6600 done
6601 done
6602 IFS=$as_save_IFS
6604 fi
6605 fi
6606 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6607 if test -n "$DSYMUTIL"; then
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6609 $as_echo "$DSYMUTIL" >&6; }
6610 else
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612 $as_echo "no" >&6; }
6613 fi
6616 fi
6617 if test -z "$ac_cv_prog_DSYMUTIL"; then
6618 ac_ct_DSYMUTIL=$DSYMUTIL
6619 # Extract the first word of "dsymutil", so it can be a program name with args.
6620 set dummy dsymutil; ac_word=$2
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6622 $as_echo_n "checking for $ac_word... " >&6; }
6623 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6624 $as_echo_n "(cached) " >&6
6625 else
6626 if test -n "$ac_ct_DSYMUTIL"; then
6627 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6628 else
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in $PATH
6631 do
6632 IFS=$as_save_IFS
6633 test -z "$as_dir" && as_dir=.
6634 for ac_exec_ext in '' $ac_executable_extensions; do
6635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6636 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 break 2
6639 fi
6640 done
6641 done
6642 IFS=$as_save_IFS
6644 fi
6645 fi
6646 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6647 if test -n "$ac_ct_DSYMUTIL"; then
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6649 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6650 else
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6652 $as_echo "no" >&6; }
6653 fi
6655 if test "x$ac_ct_DSYMUTIL" = x; then
6656 DSYMUTIL=":"
6657 else
6658 case $cross_compiling:$ac_tool_warned in
6659 yes:)
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6662 ac_tool_warned=yes ;;
6663 esac
6664 DSYMUTIL=$ac_ct_DSYMUTIL
6665 fi
6666 else
6667 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6668 fi
6670 if test -n "$ac_tool_prefix"; then
6671 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6672 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674 $as_echo_n "checking for $ac_word... " >&6; }
6675 if ${ac_cv_prog_NMEDIT+:} false; then :
6676 $as_echo_n "(cached) " >&6
6677 else
6678 if test -n "$NMEDIT"; then
6679 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684 IFS=$as_save_IFS
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6688 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 break 2
6691 fi
6692 done
6693 done
6694 IFS=$as_save_IFS
6696 fi
6697 fi
6698 NMEDIT=$ac_cv_prog_NMEDIT
6699 if test -n "$NMEDIT"; then
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6701 $as_echo "$NMEDIT" >&6; }
6702 else
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704 $as_echo "no" >&6; }
6705 fi
6708 fi
6709 if test -z "$ac_cv_prog_NMEDIT"; then
6710 ac_ct_NMEDIT=$NMEDIT
6711 # Extract the first word of "nmedit", so it can be a program name with args.
6712 set dummy nmedit; ac_word=$2
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714 $as_echo_n "checking for $ac_word... " >&6; }
6715 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 if test -n "$ac_ct_NMEDIT"; then
6719 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6720 else
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 for as_dir in $PATH
6723 do
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6728 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 break 2
6731 fi
6732 done
6733 done
6734 IFS=$as_save_IFS
6736 fi
6737 fi
6738 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6739 if test -n "$ac_ct_NMEDIT"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6741 $as_echo "$ac_ct_NMEDIT" >&6; }
6742 else
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744 $as_echo "no" >&6; }
6745 fi
6747 if test "x$ac_ct_NMEDIT" = x; then
6748 NMEDIT=":"
6749 else
6750 case $cross_compiling:$ac_tool_warned in
6751 yes:)
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6754 ac_tool_warned=yes ;;
6755 esac
6756 NMEDIT=$ac_ct_NMEDIT
6757 fi
6758 else
6759 NMEDIT="$ac_cv_prog_NMEDIT"
6760 fi
6762 if test -n "$ac_tool_prefix"; then
6763 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6764 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if ${ac_cv_prog_LIPO+:} false; then :
6768 $as_echo_n "(cached) " >&6
6769 else
6770 if test -n "$LIPO"; then
6771 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6775 do
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6780 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 break 2
6783 fi
6784 done
6785 done
6786 IFS=$as_save_IFS
6788 fi
6789 fi
6790 LIPO=$ac_cv_prog_LIPO
6791 if test -n "$LIPO"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6793 $as_echo "$LIPO" >&6; }
6794 else
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6797 fi
6800 fi
6801 if test -z "$ac_cv_prog_LIPO"; then
6802 ac_ct_LIPO=$LIPO
6803 # Extract the first word of "lipo", so it can be a program name with args.
6804 set dummy lipo; ac_word=$2
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806 $as_echo_n "checking for $ac_word... " >&6; }
6807 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6808 $as_echo_n "(cached) " >&6
6809 else
6810 if test -n "$ac_ct_LIPO"; then
6811 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6812 else
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 for as_dir in $PATH
6815 do
6816 IFS=$as_save_IFS
6817 test -z "$as_dir" && as_dir=.
6818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6820 ac_cv_prog_ac_ct_LIPO="lipo"
6821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 break 2
6823 fi
6824 done
6825 done
6826 IFS=$as_save_IFS
6828 fi
6829 fi
6830 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6831 if test -n "$ac_ct_LIPO"; then
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6833 $as_echo "$ac_ct_LIPO" >&6; }
6834 else
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836 $as_echo "no" >&6; }
6837 fi
6839 if test "x$ac_ct_LIPO" = x; then
6840 LIPO=":"
6841 else
6842 case $cross_compiling:$ac_tool_warned in
6843 yes:)
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6846 ac_tool_warned=yes ;;
6847 esac
6848 LIPO=$ac_ct_LIPO
6849 fi
6850 else
6851 LIPO="$ac_cv_prog_LIPO"
6852 fi
6854 if test -n "$ac_tool_prefix"; then
6855 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}otool; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if ${ac_cv_prog_OTOOL+:} false; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 if test -n "$OTOOL"; then
6863 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6875 fi
6876 done
6877 done
6878 IFS=$as_save_IFS
6880 fi
6881 fi
6882 OTOOL=$ac_cv_prog_OTOOL
6883 if test -n "$OTOOL"; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6885 $as_echo "$OTOOL" >&6; }
6886 else
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888 $as_echo "no" >&6; }
6889 fi
6892 fi
6893 if test -z "$ac_cv_prog_OTOOL"; then
6894 ac_ct_OTOOL=$OTOOL
6895 # Extract the first word of "otool", so it can be a program name with args.
6896 set dummy otool; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898 $as_echo_n "checking for $ac_word... " >&6; }
6899 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 if test -n "$ac_ct_OTOOL"; then
6903 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6904 else
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 for as_dir in $PATH
6907 do
6908 IFS=$as_save_IFS
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6912 ac_cv_prog_ac_ct_OTOOL="otool"
6913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 break 2
6915 fi
6916 done
6917 done
6918 IFS=$as_save_IFS
6920 fi
6921 fi
6922 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6923 if test -n "$ac_ct_OTOOL"; then
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6925 $as_echo "$ac_ct_OTOOL" >&6; }
6926 else
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928 $as_echo "no" >&6; }
6929 fi
6931 if test "x$ac_ct_OTOOL" = x; then
6932 OTOOL=":"
6933 else
6934 case $cross_compiling:$ac_tool_warned in
6935 yes:)
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6938 ac_tool_warned=yes ;;
6939 esac
6940 OTOOL=$ac_ct_OTOOL
6941 fi
6942 else
6943 OTOOL="$ac_cv_prog_OTOOL"
6944 fi
6946 if test -n "$ac_tool_prefix"; then
6947 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6948 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6950 $as_echo_n "checking for $ac_word... " >&6; }
6951 if ${ac_cv_prog_OTOOL64+:} false; then :
6952 $as_echo_n "(cached) " >&6
6953 else
6954 if test -n "$OTOOL64"; then
6955 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6956 else
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6959 do
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6964 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6967 fi
6968 done
6969 done
6970 IFS=$as_save_IFS
6972 fi
6973 fi
6974 OTOOL64=$ac_cv_prog_OTOOL64
6975 if test -n "$OTOOL64"; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6977 $as_echo "$OTOOL64" >&6; }
6978 else
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6981 fi
6984 fi
6985 if test -z "$ac_cv_prog_OTOOL64"; then
6986 ac_ct_OTOOL64=$OTOOL64
6987 # Extract the first word of "otool64", so it can be a program name with args.
6988 set dummy otool64; ac_word=$2
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 $as_echo_n "checking for $ac_word... " >&6; }
6991 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6992 $as_echo_n "(cached) " >&6
6993 else
6994 if test -n "$ac_ct_OTOOL64"; then
6995 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6996 else
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 for as_dir in $PATH
6999 do
7000 IFS=$as_save_IFS
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7004 ac_cv_prog_ac_ct_OTOOL64="otool64"
7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 break 2
7007 fi
7008 done
7009 done
7010 IFS=$as_save_IFS
7012 fi
7013 fi
7014 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7015 if test -n "$ac_ct_OTOOL64"; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7017 $as_echo "$ac_ct_OTOOL64" >&6; }
7018 else
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7021 fi
7023 if test "x$ac_ct_OTOOL64" = x; then
7024 OTOOL64=":"
7025 else
7026 case $cross_compiling:$ac_tool_warned in
7027 yes:)
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7030 ac_tool_warned=yes ;;
7031 esac
7032 OTOOL64=$ac_ct_OTOOL64
7033 fi
7034 else
7035 OTOOL64="$ac_cv_prog_OTOOL64"
7036 fi
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7065 $as_echo_n "checking for -single_module linker flag... " >&6; }
7066 if ${lt_cv_apple_cc_single_mod+:} false; then :
7067 $as_echo_n "(cached) " >&6
7068 else
7069 lt_cv_apple_cc_single_mod=no
7070 if test -z "${LT_MULTI_MODULE}"; then
7071 # By default we will add the -single_module flag. You can override
7072 # by either setting the environment variable LT_MULTI_MODULE
7073 # non-empty at configure time, or by adding -multi_module to the
7074 # link flags.
7075 rm -rf libconftest.dylib*
7076 echo "int foo(void){return 1;}" > conftest.c
7077 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7078 -dynamiclib -Wl,-single_module conftest.c" >&5
7079 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7080 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7081 _lt_result=$?
7082 # If there is a non-empty error log, and "single_module"
7083 # appears in it, assume the flag caused a linker warning
7084 if test -s conftest.err && $GREP single_module conftest.err; then
7085 cat conftest.err >&5
7086 # Otherwise, if the output was created with a 0 exit code from
7087 # the compiler, it worked.
7088 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7089 lt_cv_apple_cc_single_mod=yes
7090 else
7091 cat conftest.err >&5
7092 fi
7093 rm -rf libconftest.dylib*
7094 rm -f conftest.*
7095 fi
7096 fi
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7098 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7101 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7102 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 lt_cv_ld_exported_symbols_list=no
7106 save_LDFLAGS=$LDFLAGS
7107 echo "_main" > conftest.sym
7108 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7112 int
7113 main ()
7114 {
7116 ;
7117 return 0;
7118 }
7119 _ACEOF
7120 if ac_fn_c_try_link "$LINENO"; then :
7121 lt_cv_ld_exported_symbols_list=yes
7122 else
7123 lt_cv_ld_exported_symbols_list=no
7124 fi
7125 rm -f core conftest.err conftest.$ac_objext \
7126 conftest$ac_exeext conftest.$ac_ext
7127 LDFLAGS="$save_LDFLAGS"
7129 fi
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7131 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7134 $as_echo_n "checking for -force_load linker flag... " >&6; }
7135 if ${lt_cv_ld_force_load+:} false; then :
7136 $as_echo_n "(cached) " >&6
7137 else
7138 lt_cv_ld_force_load=no
7139 cat > conftest.c << _LT_EOF
7140 int forced_loaded() { return 2;}
7141 _LT_EOF
7142 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7143 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7144 echo "$AR cru libconftest.a conftest.o" >&5
7145 $AR cru libconftest.a conftest.o 2>&5
7146 echo "$RANLIB libconftest.a" >&5
7147 $RANLIB libconftest.a 2>&5
7148 cat > conftest.c << _LT_EOF
7149 int main() { return 0;}
7150 _LT_EOF
7151 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7152 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7153 _lt_result=$?
7154 if test -s conftest.err && $GREP force_load conftest.err; then
7155 cat conftest.err >&5
7156 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7157 lt_cv_ld_force_load=yes
7158 else
7159 cat conftest.err >&5
7160 fi
7161 rm -f conftest.err libconftest.a conftest conftest.c
7162 rm -rf conftest.dSYM
7164 fi
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7166 $as_echo "$lt_cv_ld_force_load" >&6; }
7167 case $host_os in
7168 rhapsody* | darwin1.[012])
7169 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7170 darwin1.*)
7171 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7172 darwin*) # darwin 5.x on
7173 # if running on 10.5 or later, the deployment target defaults
7174 # to the OS version, if on x86, and 10.4, the deployment
7175 # target defaults to 10.4. Don't you love it?
7176 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7177 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7178 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7179 10.[012]*)
7180 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7181 10.*)
7182 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7183 esac
7184 ;;
7185 esac
7186 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7187 _lt_dar_single_mod='$single_module'
7188 fi
7189 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7190 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7191 else
7192 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7193 fi
7194 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7195 _lt_dsymutil='~$DSYMUTIL $lib || :'
7196 else
7197 _lt_dsymutil=
7198 fi
7199 ;;
7200 esac
7202 ac_ext=c
7203 ac_cpp='$CPP $CPPFLAGS'
7204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7208 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7209 # On Suns, sometimes $CPP names a directory.
7210 if test -n "$CPP" && test -d "$CPP"; then
7211 CPP=
7212 fi
7213 if test -z "$CPP"; then
7214 if ${ac_cv_prog_CPP+:} false; then :
7215 $as_echo_n "(cached) " >&6
7216 else
7217 # Double quotes because CPP needs to be expanded
7218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7219 do
7220 ac_preproc_ok=false
7221 for ac_c_preproc_warn_flag in '' yes
7222 do
7223 # Use a header file that comes with gcc, so configuring glibc
7224 # with a fresh cross-compiler works.
7225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7226 # <limits.h> exists even on freestanding compilers.
7227 # On the NeXT, cc -E runs the code through the compiler's parser,
7228 # not just through cpp. "Syntax error" is here to catch this case.
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7231 #ifdef __STDC__
7232 # include <limits.h>
7233 #else
7234 # include <assert.h>
7235 #endif
7236 Syntax error
7237 _ACEOF
7238 if ac_fn_c_try_cpp "$LINENO"; then :
7240 else
7241 # Broken: fails on valid input.
7242 continue
7243 fi
7244 rm -f conftest.err conftest.i conftest.$ac_ext
7246 # OK, works on sane cases. Now check whether nonexistent headers
7247 # can be detected and how.
7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7250 #include <ac_nonexistent.h>
7251 _ACEOF
7252 if ac_fn_c_try_cpp "$LINENO"; then :
7253 # Broken: success on invalid input.
7254 continue
7255 else
7256 # Passes both tests.
7257 ac_preproc_ok=:
7258 break
7259 fi
7260 rm -f conftest.err conftest.i conftest.$ac_ext
7262 done
7263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7264 rm -f conftest.i conftest.err conftest.$ac_ext
7265 if $ac_preproc_ok; then :
7266 break
7267 fi
7269 done
7270 ac_cv_prog_CPP=$CPP
7272 fi
7273 CPP=$ac_cv_prog_CPP
7274 else
7275 ac_cv_prog_CPP=$CPP
7276 fi
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7278 $as_echo "$CPP" >&6; }
7279 ac_preproc_ok=false
7280 for ac_c_preproc_warn_flag in '' yes
7281 do
7282 # Use a header file that comes with gcc, so configuring glibc
7283 # with a fresh cross-compiler works.
7284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7285 # <limits.h> exists even on freestanding compilers.
7286 # On the NeXT, cc -E runs the code through the compiler's parser,
7287 # not just through cpp. "Syntax error" is here to catch this case.
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7290 #ifdef __STDC__
7291 # include <limits.h>
7292 #else
7293 # include <assert.h>
7294 #endif
7295 Syntax error
7296 _ACEOF
7297 if ac_fn_c_try_cpp "$LINENO"; then :
7299 else
7300 # Broken: fails on valid input.
7301 continue
7302 fi
7303 rm -f conftest.err conftest.i conftest.$ac_ext
7305 # OK, works on sane cases. Now check whether nonexistent headers
7306 # can be detected and how.
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7309 #include <ac_nonexistent.h>
7310 _ACEOF
7311 if ac_fn_c_try_cpp "$LINENO"; then :
7312 # Broken: success on invalid input.
7313 continue
7314 else
7315 # Passes both tests.
7316 ac_preproc_ok=:
7317 break
7318 fi
7319 rm -f conftest.err conftest.i conftest.$ac_ext
7321 done
7322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7323 rm -f conftest.i conftest.err conftest.$ac_ext
7324 if $ac_preproc_ok; then :
7326 else
7327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7329 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7330 See \`config.log' for more details" "$LINENO" 5; }
7331 fi
7333 ac_ext=c
7334 ac_cpp='$CPP $CPPFLAGS'
7335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7341 $as_echo_n "checking for ANSI C header files... " >&6; }
7342 if ${ac_cv_header_stdc+:} false; then :
7343 $as_echo_n "(cached) " >&6
7344 else
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7347 #include <stdlib.h>
7348 #include <stdarg.h>
7349 #include <string.h>
7350 #include <float.h>
7352 int
7353 main ()
7354 {
7356 ;
7357 return 0;
7358 }
7359 _ACEOF
7360 if ac_fn_c_try_compile "$LINENO"; then :
7361 ac_cv_header_stdc=yes
7362 else
7363 ac_cv_header_stdc=no
7364 fi
7365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367 if test $ac_cv_header_stdc = yes; then
7368 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7371 #include <string.h>
7373 _ACEOF
7374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7375 $EGREP "memchr" >/dev/null 2>&1; then :
7377 else
7378 ac_cv_header_stdc=no
7379 fi
7380 rm -f conftest*
7382 fi
7384 if test $ac_cv_header_stdc = yes; then
7385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387 /* end confdefs.h. */
7388 #include <stdlib.h>
7390 _ACEOF
7391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7392 $EGREP "free" >/dev/null 2>&1; then :
7394 else
7395 ac_cv_header_stdc=no
7396 fi
7397 rm -f conftest*
7399 fi
7401 if test $ac_cv_header_stdc = yes; then
7402 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7403 if test "$cross_compiling" = yes; then :
7404 :
7405 else
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7408 #include <ctype.h>
7409 #include <stdlib.h>
7410 #if ((' ' & 0x0FF) == 0x020)
7411 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7412 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7413 #else
7414 # define ISLOWER(c) \
7415 (('a' <= (c) && (c) <= 'i') \
7416 || ('j' <= (c) && (c) <= 'r') \
7417 || ('s' <= (c) && (c) <= 'z'))
7418 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7419 #endif
7421 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7422 int
7423 main ()
7424 {
7425 int i;
7426 for (i = 0; i < 256; i++)
7427 if (XOR (islower (i), ISLOWER (i))
7428 || toupper (i) != TOUPPER (i))
7429 return 2;
7430 return 0;
7431 }
7432 _ACEOF
7433 if ac_fn_c_try_run "$LINENO"; then :
7435 else
7436 ac_cv_header_stdc=no
7437 fi
7438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7439 conftest.$ac_objext conftest.beam conftest.$ac_ext
7440 fi
7442 fi
7443 fi
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7445 $as_echo "$ac_cv_header_stdc" >&6; }
7446 if test $ac_cv_header_stdc = yes; then
7448 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7450 fi
7452 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7453 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7454 inttypes.h stdint.h unistd.h
7455 do :
7456 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7457 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7458 "
7459 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7460 cat >>confdefs.h <<_ACEOF
7461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7462 _ACEOF
7464 fi
7466 done
7469 for ac_header in dlfcn.h
7470 do :
7471 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7472 "
7473 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7474 cat >>confdefs.h <<_ACEOF
7475 #define HAVE_DLFCN_H 1
7476 _ACEOF
7478 fi
7480 done
7486 # Set options
7487 enable_dlopen=yes
7488 enable_win32_dll=yes
7490 case $host in
7491 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7492 if test -n "$ac_tool_prefix"; then
7493 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7494 set dummy ${ac_tool_prefix}as; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if ${ac_cv_prog_AS+:} false; then :
7498 $as_echo_n "(cached) " >&6
7499 else
7500 if test -n "$AS"; then
7501 ac_cv_prog_AS="$AS" # Let the user override the test.
7502 else
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510 ac_cv_prog_AS="${ac_tool_prefix}as"
7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 break 2
7513 fi
7514 done
7515 done
7516 IFS=$as_save_IFS
7518 fi
7519 fi
7520 AS=$ac_cv_prog_AS
7521 if test -n "$AS"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7523 $as_echo "$AS" >&6; }
7524 else
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7527 fi
7530 fi
7531 if test -z "$ac_cv_prog_AS"; then
7532 ac_ct_AS=$AS
7533 # Extract the first word of "as", so it can be a program name with args.
7534 set dummy as; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 if test -n "$ac_ct_AS"; then
7541 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7542 else
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550 ac_cv_prog_ac_ct_AS="as"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7553 fi
7554 done
7555 done
7556 IFS=$as_save_IFS
7558 fi
7559 fi
7560 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7561 if test -n "$ac_ct_AS"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7563 $as_echo "$ac_ct_AS" >&6; }
7564 else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7567 fi
7569 if test "x$ac_ct_AS" = x; then
7570 AS="false"
7571 else
7572 case $cross_compiling:$ac_tool_warned in
7573 yes:)
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7576 ac_tool_warned=yes ;;
7577 esac
7578 AS=$ac_ct_AS
7579 fi
7580 else
7581 AS="$ac_cv_prog_AS"
7582 fi
7584 if test -n "$ac_tool_prefix"; then
7585 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7586 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if ${ac_cv_prog_DLLTOOL+:} false; then :
7590 $as_echo_n "(cached) " >&6
7591 else
7592 if test -n "$DLLTOOL"; then
7593 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7594 else
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 break 2
7605 fi
7606 done
7607 done
7608 IFS=$as_save_IFS
7610 fi
7611 fi
7612 DLLTOOL=$ac_cv_prog_DLLTOOL
7613 if test -n "$DLLTOOL"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7615 $as_echo "$DLLTOOL" >&6; }
7616 else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7622 fi
7623 if test -z "$ac_cv_prog_DLLTOOL"; then
7624 ac_ct_DLLTOOL=$DLLTOOL
7625 # Extract the first word of "dlltool", so it can be a program name with args.
7626 set dummy dlltool; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7630 $as_echo_n "(cached) " >&6
7631 else
7632 if test -n "$ac_ct_DLLTOOL"; then
7633 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638 IFS=$as_save_IFS
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7642 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 break 2
7645 fi
7646 done
7647 done
7648 IFS=$as_save_IFS
7650 fi
7651 fi
7652 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7653 if test -n "$ac_ct_DLLTOOL"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7655 $as_echo "$ac_ct_DLLTOOL" >&6; }
7656 else
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7659 fi
7661 if test "x$ac_ct_DLLTOOL" = x; then
7662 DLLTOOL="false"
7663 else
7664 case $cross_compiling:$ac_tool_warned in
7665 yes:)
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7668 ac_tool_warned=yes ;;
7669 esac
7670 DLLTOOL=$ac_ct_DLLTOOL
7671 fi
7672 else
7673 DLLTOOL="$ac_cv_prog_DLLTOOL"
7674 fi
7676 if test -n "$ac_tool_prefix"; then
7677 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7678 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if ${ac_cv_prog_OBJDUMP+:} false; then :
7682 $as_echo_n "(cached) " >&6
7683 else
7684 if test -n "$OBJDUMP"; then
7685 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7686 else
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7689 do
7690 IFS=$as_save_IFS
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 break 2
7697 fi
7698 done
7699 done
7700 IFS=$as_save_IFS
7702 fi
7703 fi
7704 OBJDUMP=$ac_cv_prog_OBJDUMP
7705 if test -n "$OBJDUMP"; then
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7707 $as_echo "$OBJDUMP" >&6; }
7708 else
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7711 fi
7714 fi
7715 if test -z "$ac_cv_prog_OBJDUMP"; then
7716 ac_ct_OBJDUMP=$OBJDUMP
7717 # Extract the first word of "objdump", so it can be a program name with args.
7718 set dummy objdump; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 if test -n "$ac_ct_OBJDUMP"; then
7725 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 break 2
7737 fi
7738 done
7739 done
7740 IFS=$as_save_IFS
7742 fi
7743 fi
7744 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7745 if test -n "$ac_ct_OBJDUMP"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7747 $as_echo "$ac_ct_OBJDUMP" >&6; }
7748 else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7753 if test "x$ac_ct_OBJDUMP" = x; then
7754 OBJDUMP="false"
7755 else
7756 case $cross_compiling:$ac_tool_warned in
7757 yes:)
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7760 ac_tool_warned=yes ;;
7761 esac
7762 OBJDUMP=$ac_ct_OBJDUMP
7763 fi
7764 else
7765 OBJDUMP="$ac_cv_prog_OBJDUMP"
7766 fi
7768 ;;
7769 esac
7771 test -z "$AS" && AS=as
7777 test -z "$DLLTOOL" && DLLTOOL=dlltool
7783 test -z "$OBJDUMP" && OBJDUMP=objdump
7793 # Check whether --enable-shared was given.
7794 if test "${enable_shared+set}" = set; then :
7795 enableval=$enable_shared; p=${PACKAGE-default}
7796 case $enableval in
7797 yes) enable_shared=yes ;;
7798 no) enable_shared=no ;;
7799 *)
7800 enable_shared=no
7801 # Look at the argument we got. We use all the common list separators.
7802 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7803 for pkg in $enableval; do
7804 IFS="$lt_save_ifs"
7805 if test "X$pkg" = "X$p"; then
7806 enable_shared=yes
7807 fi
7808 done
7809 IFS="$lt_save_ifs"
7810 ;;
7811 esac
7812 else
7813 enable_shared=yes
7814 fi
7824 # Check whether --enable-static was given.
7825 if test "${enable_static+set}" = set; then :
7826 enableval=$enable_static; p=${PACKAGE-default}
7827 case $enableval in
7828 yes) enable_static=yes ;;
7829 no) enable_static=no ;;
7830 *)
7831 enable_static=no
7832 # Look at the argument we got. We use all the common list separators.
7833 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7834 for pkg in $enableval; do
7835 IFS="$lt_save_ifs"
7836 if test "X$pkg" = "X$p"; then
7837 enable_static=yes
7838 fi
7839 done
7840 IFS="$lt_save_ifs"
7841 ;;
7842 esac
7843 else
7844 enable_static=yes
7845 fi
7856 # Check whether --with-pic was given.
7857 if test "${with_pic+set}" = set; then :
7858 withval=$with_pic; lt_p=${PACKAGE-default}
7859 case $withval in
7860 yes|no) pic_mode=$withval ;;
7861 *)
7862 pic_mode=default
7863 # Look at the argument we got. We use all the common list separators.
7864 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7865 for lt_pkg in $withval; do
7866 IFS="$lt_save_ifs"
7867 if test "X$lt_pkg" = "X$lt_p"; then
7868 pic_mode=yes
7869 fi
7870 done
7871 IFS="$lt_save_ifs"
7872 ;;
7873 esac
7874 else
7875 pic_mode=default
7876 fi
7879 test -z "$pic_mode" && pic_mode=default
7887 # Check whether --enable-fast-install was given.
7888 if test "${enable_fast_install+set}" = set; then :
7889 enableval=$enable_fast_install; p=${PACKAGE-default}
7890 case $enableval in
7891 yes) enable_fast_install=yes ;;
7892 no) enable_fast_install=no ;;
7893 *)
7894 enable_fast_install=no
7895 # Look at the argument we got. We use all the common list separators.
7896 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7897 for pkg in $enableval; do
7898 IFS="$lt_save_ifs"
7899 if test "X$pkg" = "X$p"; then
7900 enable_fast_install=yes
7901 fi
7902 done
7903 IFS="$lt_save_ifs"
7904 ;;
7905 esac
7906 else
7907 enable_fast_install=yes
7908 fi
7920 # This can be used to rebuild libtool when needed
7921 LIBTOOL_DEPS="$ltmain"
7923 # Always use our own libtool.
7924 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7955 test -z "$LN_S" && LN_S="ln -s"
7970 if test -n "${ZSH_VERSION+set}" ; then
7971 setopt NO_GLOB_SUBST
7972 fi
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7975 $as_echo_n "checking for objdir... " >&6; }
7976 if ${lt_cv_objdir+:} false; then :
7977 $as_echo_n "(cached) " >&6
7978 else
7979 rm -f .libs 2>/dev/null
7980 mkdir .libs 2>/dev/null
7981 if test -d .libs; then
7982 lt_cv_objdir=.libs
7983 else
7984 # MS-DOS does not allow filenames that begin with a dot.
7985 lt_cv_objdir=_libs
7986 fi
7987 rmdir .libs 2>/dev/null
7988 fi
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7990 $as_echo "$lt_cv_objdir" >&6; }
7991 objdir=$lt_cv_objdir
7997 cat >>confdefs.h <<_ACEOF
7998 #define LT_OBJDIR "$lt_cv_objdir/"
7999 _ACEOF
8004 case $host_os in
8005 aix3*)
8006 # AIX sometimes has problems with the GCC collect2 program. For some
8007 # reason, if we set the COLLECT_NAMES environment variable, the problems
8008 # vanish in a puff of smoke.
8009 if test "X${COLLECT_NAMES+set}" != Xset; then
8010 COLLECT_NAMES=
8011 export COLLECT_NAMES
8012 fi
8013 ;;
8014 esac
8016 # Global variables:
8017 ofile=libtool
8018 can_build_shared=yes
8020 # All known linkers require a `.a' archive for static linking (except MSVC,
8021 # which needs '.lib').
8022 libext=a
8024 with_gnu_ld="$lt_cv_prog_gnu_ld"
8026 old_CC="$CC"
8027 old_CFLAGS="$CFLAGS"
8029 # Set sane defaults for various variables
8030 test -z "$CC" && CC=cc
8031 test -z "$LTCC" && LTCC=$CC
8032 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8033 test -z "$LD" && LD=ld
8034 test -z "$ac_objext" && ac_objext=o
8036 for cc_temp in $compiler""; do
8037 case $cc_temp in
8038 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8039 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8040 \-*) ;;
8041 *) break;;
8042 esac
8043 done
8044 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8047 # Only perform the check for file, if the check method requires it
8048 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8049 case $deplibs_check_method in
8050 file_magic*)
8051 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8053 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8054 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8055 $as_echo_n "(cached) " >&6
8056 else
8057 case $MAGIC_CMD in
8058 [\\/*] | ?:[\\/]*)
8059 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8060 ;;
8061 *)
8062 lt_save_MAGIC_CMD="$MAGIC_CMD"
8063 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8064 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8065 for ac_dir in $ac_dummy; do
8066 IFS="$lt_save_ifs"
8067 test -z "$ac_dir" && ac_dir=.
8068 if test -f $ac_dir/${ac_tool_prefix}file; then
8069 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8070 if test -n "$file_magic_test_file"; then
8071 case $deplibs_check_method in
8072 "file_magic "*)
8073 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8074 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8075 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8076 $EGREP "$file_magic_regex" > /dev/null; then
8077 :
8078 else
8079 cat <<_LT_EOF 1>&2
8081 *** Warning: the command libtool uses to detect shared libraries,
8082 *** $file_magic_cmd, produces output that libtool cannot recognize.
8083 *** The result is that libtool may fail to recognize shared libraries
8084 *** as such. This will affect the creation of libtool libraries that
8085 *** depend on shared libraries, but programs linked with such libtool
8086 *** libraries will work regardless of this problem. Nevertheless, you
8087 *** may want to report the problem to your system manager and/or to
8088 *** bug-libtool@gnu.org
8090 _LT_EOF
8091 fi ;;
8092 esac
8093 fi
8094 break
8095 fi
8096 done
8097 IFS="$lt_save_ifs"
8098 MAGIC_CMD="$lt_save_MAGIC_CMD"
8099 ;;
8100 esac
8101 fi
8103 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8104 if test -n "$MAGIC_CMD"; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8106 $as_echo "$MAGIC_CMD" >&6; }
8107 else
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 $as_echo "no" >&6; }
8110 fi
8116 if test -z "$lt_cv_path_MAGIC_CMD"; then
8117 if test -n "$ac_tool_prefix"; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8119 $as_echo_n "checking for file... " >&6; }
8120 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8121 $as_echo_n "(cached) " >&6
8122 else
8123 case $MAGIC_CMD in
8124 [\\/*] | ?:[\\/]*)
8125 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8126 ;;
8127 *)
8128 lt_save_MAGIC_CMD="$MAGIC_CMD"
8129 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8130 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8131 for ac_dir in $ac_dummy; do
8132 IFS="$lt_save_ifs"
8133 test -z "$ac_dir" && ac_dir=.
8134 if test -f $ac_dir/file; then
8135 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8136 if test -n "$file_magic_test_file"; then
8137 case $deplibs_check_method in
8138 "file_magic "*)
8139 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8140 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8141 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8142 $EGREP "$file_magic_regex" > /dev/null; then
8143 :
8144 else
8145 cat <<_LT_EOF 1>&2
8147 *** Warning: the command libtool uses to detect shared libraries,
8148 *** $file_magic_cmd, produces output that libtool cannot recognize.
8149 *** The result is that libtool may fail to recognize shared libraries
8150 *** as such. This will affect the creation of libtool libraries that
8151 *** depend on shared libraries, but programs linked with such libtool
8152 *** libraries will work regardless of this problem. Nevertheless, you
8153 *** may want to report the problem to your system manager and/or to
8154 *** bug-libtool@gnu.org
8156 _LT_EOF
8157 fi ;;
8158 esac
8159 fi
8160 break
8161 fi
8162 done
8163 IFS="$lt_save_ifs"
8164 MAGIC_CMD="$lt_save_MAGIC_CMD"
8165 ;;
8166 esac
8167 fi
8169 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8170 if test -n "$MAGIC_CMD"; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8172 $as_echo "$MAGIC_CMD" >&6; }
8173 else
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175 $as_echo "no" >&6; }
8176 fi
8179 else
8180 MAGIC_CMD=:
8181 fi
8182 fi
8184 fi
8185 ;;
8186 esac
8188 # Use C for the default configuration in the libtool script
8190 lt_save_CC="$CC"
8191 ac_ext=c
8192 ac_cpp='$CPP $CPPFLAGS'
8193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8198 # Source file extension for C test sources.
8199 ac_ext=c
8201 # Object file extension for compiled C test sources.
8202 objext=o
8203 objext=$objext
8205 # Code to be used in simple compile tests
8206 lt_simple_compile_test_code="int some_variable = 0;"
8208 # Code to be used in simple link tests
8209 lt_simple_link_test_code='int main(){return(0);}'
8217 # If no C compiler was specified, use CC.
8218 LTCC=${LTCC-"$CC"}
8220 # If no C compiler flags were specified, use CFLAGS.
8221 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8223 # Allow CC to be a program name with arguments.
8224 compiler=$CC
8226 # Save the default compiler, since it gets overwritten when the other
8227 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8228 compiler_DEFAULT=$CC
8230 # save warnings/boilerplate of simple test code
8231 ac_outfile=conftest.$ac_objext
8232 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8233 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8234 _lt_compiler_boilerplate=`cat conftest.err`
8235 $RM conftest*
8237 ac_outfile=conftest.$ac_objext
8238 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8239 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8240 _lt_linker_boilerplate=`cat conftest.err`
8241 $RM -r conftest*
8244 ## CAVEAT EMPTOR:
8245 ## There is no encapsulation within the following macros, do not change
8246 ## the running order or otherwise move them around unless you know exactly
8247 ## what you are doing...
8248 if test -n "$compiler"; then
8250 lt_prog_compiler_no_builtin_flag=
8252 if test "$GCC" = yes; then
8253 case $cc_basename in
8254 nvcc*)
8255 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8256 *)
8257 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8258 esac
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8261 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8262 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8263 $as_echo_n "(cached) " >&6
8264 else
8265 lt_cv_prog_compiler_rtti_exceptions=no
8266 ac_outfile=conftest.$ac_objext
8267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8268 lt_compiler_flag="-fno-rtti -fno-exceptions"
8269 # Insert the option either (1) after the last *FLAGS variable, or
8270 # (2) before a word containing "conftest.", or (3) at the end.
8271 # Note that $ac_compile itself does not contain backslashes and begins
8272 # with a dollar sign (not a hyphen), so the echo should work correctly.
8273 # The option is referenced via a variable to avoid confusing sed.
8274 lt_compile=`echo "$ac_compile" | $SED \
8275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8277 -e 's:$: $lt_compiler_flag:'`
8278 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8279 (eval "$lt_compile" 2>conftest.err)
8280 ac_status=$?
8281 cat conftest.err >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 if (exit $ac_status) && test -s "$ac_outfile"; then
8284 # The compiler can only warn and ignore the option if not recognized
8285 # So say no if there are warnings other than the usual output.
8286 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8287 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8288 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8289 lt_cv_prog_compiler_rtti_exceptions=yes
8290 fi
8291 fi
8292 $RM conftest*
8294 fi
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8296 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8298 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8299 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8300 else
8301 :
8302 fi
8304 fi
8311 lt_prog_compiler_wl=
8312 lt_prog_compiler_pic=
8313 lt_prog_compiler_static=
8316 if test "$GCC" = yes; then
8317 lt_prog_compiler_wl='-Wl,'
8318 lt_prog_compiler_static='-static'
8320 case $host_os in
8321 aix*)
8322 # All AIX code is PIC.
8323 if test "$host_cpu" = ia64; then
8324 # AIX 5 now supports IA64 processor
8325 lt_prog_compiler_static='-Bstatic'
8326 fi
8327 ;;
8329 amigaos*)
8330 case $host_cpu in
8331 powerpc)
8332 # see comment about AmigaOS4 .so support
8333 lt_prog_compiler_pic='-fPIC'
8334 ;;
8335 m68k)
8336 # FIXME: we need at least 68020 code to build shared libraries, but
8337 # adding the `-m68020' flag to GCC prevents building anything better,
8338 # like `-m68040'.
8339 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8340 ;;
8341 esac
8342 ;;
8344 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8345 # PIC is the default for these OSes.
8346 ;;
8348 mingw* | cygwin* | pw32* | os2* | cegcc*)
8349 # This hack is so that the source file can tell whether it is being
8350 # built for inclusion in a dll (and should export symbols for example).
8351 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8352 # (--disable-auto-import) libraries
8353 lt_prog_compiler_pic='-DDLL_EXPORT'
8354 ;;
8356 darwin* | rhapsody*)
8357 # PIC is the default on this platform
8358 # Common symbols not allowed in MH_DYLIB files
8359 lt_prog_compiler_pic='-fno-common'
8360 ;;
8362 haiku*)
8363 # PIC is the default for Haiku.
8364 # The "-static" flag exists, but is broken.
8365 lt_prog_compiler_static=
8366 ;;
8368 hpux*)
8369 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8370 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8371 # sets the default TLS model and affects inlining.
8372 case $host_cpu in
8373 hppa*64*)
8374 # +Z the default
8375 ;;
8376 *)
8377 lt_prog_compiler_pic='-fPIC'
8378 ;;
8379 esac
8380 ;;
8382 interix[3-9]*)
8383 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8384 # Instead, we relocate shared libraries at runtime.
8385 ;;
8387 msdosdjgpp*)
8388 # Just because we use GCC doesn't mean we suddenly get shared libraries
8389 # on systems that don't support them.
8390 lt_prog_compiler_can_build_shared=no
8391 enable_shared=no
8392 ;;
8394 *nto* | *qnx*)
8395 # QNX uses GNU C++, but need to define -shared option too, otherwise
8396 # it will coredump.
8397 lt_prog_compiler_pic='-fPIC -shared'
8398 ;;
8400 sysv4*MP*)
8401 if test -d /usr/nec; then
8402 lt_prog_compiler_pic=-Kconform_pic
8403 fi
8404 ;;
8406 *)
8407 lt_prog_compiler_pic='-fPIC'
8408 ;;
8409 esac
8411 case $cc_basename in
8412 nvcc*) # Cuda Compiler Driver 2.2
8413 lt_prog_compiler_wl='-Xlinker '
8414 if test -n "$lt_prog_compiler_pic"; then
8415 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8416 fi
8417 ;;
8418 esac
8419 else
8420 # PORTME Check for flag to pass linker flags through the system compiler.
8421 case $host_os in
8422 aix*)
8423 lt_prog_compiler_wl='-Wl,'
8424 if test "$host_cpu" = ia64; then
8425 # AIX 5 now supports IA64 processor
8426 lt_prog_compiler_static='-Bstatic'
8427 else
8428 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8429 fi
8430 ;;
8432 mingw* | cygwin* | pw32* | os2* | cegcc*)
8433 # This hack is so that the source file can tell whether it is being
8434 # built for inclusion in a dll (and should export symbols for example).
8435 lt_prog_compiler_pic='-DDLL_EXPORT'
8436 ;;
8438 hpux9* | hpux10* | hpux11*)
8439 lt_prog_compiler_wl='-Wl,'
8440 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8441 # not for PA HP-UX.
8442 case $host_cpu in
8443 hppa*64*|ia64*)
8444 # +Z the default
8445 ;;
8446 *)
8447 lt_prog_compiler_pic='+Z'
8448 ;;
8449 esac
8450 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8451 lt_prog_compiler_static='${wl}-a ${wl}archive'
8452 ;;
8454 irix5* | irix6* | nonstopux*)
8455 lt_prog_compiler_wl='-Wl,'
8456 # PIC (with -KPIC) is the default.
8457 lt_prog_compiler_static='-non_shared'
8458 ;;
8460 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8461 case $cc_basename in
8462 # old Intel for x86_64 which still supported -KPIC.
8463 ecc*)
8464 lt_prog_compiler_wl='-Wl,'
8465 lt_prog_compiler_pic='-KPIC'
8466 lt_prog_compiler_static='-static'
8467 ;;
8468 # icc used to be incompatible with GCC.
8469 # ICC 10 doesn't accept -KPIC any more.
8470 icc* | ifort*)
8471 lt_prog_compiler_wl='-Wl,'
8472 lt_prog_compiler_pic='-fPIC'
8473 lt_prog_compiler_static='-static'
8474 ;;
8475 # Lahey Fortran 8.1.
8476 lf95*)
8477 lt_prog_compiler_wl='-Wl,'
8478 lt_prog_compiler_pic='--shared'
8479 lt_prog_compiler_static='--static'
8480 ;;
8481 nagfor*)
8482 # NAG Fortran compiler
8483 lt_prog_compiler_wl='-Wl,-Wl,,'
8484 lt_prog_compiler_pic='-PIC'
8485 lt_prog_compiler_static='-Bstatic'
8486 ;;
8487 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8488 # Portland Group compilers (*not* the Pentium gcc compiler,
8489 # which looks to be a dead project)
8490 lt_prog_compiler_wl='-Wl,'
8491 lt_prog_compiler_pic='-fpic'
8492 lt_prog_compiler_static='-Bstatic'
8493 ;;
8494 ccc*)
8495 lt_prog_compiler_wl='-Wl,'
8496 # All Alpha code is PIC.
8497 lt_prog_compiler_static='-non_shared'
8498 ;;
8499 xl* | bgxl* | bgf* | mpixl*)
8500 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8501 lt_prog_compiler_wl='-Wl,'
8502 lt_prog_compiler_pic='-qpic'
8503 lt_prog_compiler_static='-qstaticlink'
8504 ;;
8505 *)
8506 case `$CC -V 2>&1 | sed 5q` in
8507 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8508 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8509 lt_prog_compiler_pic='-KPIC'
8510 lt_prog_compiler_static='-Bstatic'
8511 lt_prog_compiler_wl=''
8512 ;;
8513 *Sun\ F* | *Sun*Fortran*)
8514 lt_prog_compiler_pic='-KPIC'
8515 lt_prog_compiler_static='-Bstatic'
8516 lt_prog_compiler_wl='-Qoption ld '
8517 ;;
8518 *Sun\ C*)
8519 # Sun C 5.9
8520 lt_prog_compiler_pic='-KPIC'
8521 lt_prog_compiler_static='-Bstatic'
8522 lt_prog_compiler_wl='-Wl,'
8523 ;;
8524 *Intel*\ [CF]*Compiler*)
8525 lt_prog_compiler_wl='-Wl,'
8526 lt_prog_compiler_pic='-fPIC'
8527 lt_prog_compiler_static='-static'
8528 ;;
8529 *Portland\ Group*)
8530 lt_prog_compiler_wl='-Wl,'
8531 lt_prog_compiler_pic='-fpic'
8532 lt_prog_compiler_static='-Bstatic'
8533 ;;
8534 esac
8535 ;;
8536 esac
8537 ;;
8539 newsos6)
8540 lt_prog_compiler_pic='-KPIC'
8541 lt_prog_compiler_static='-Bstatic'
8542 ;;
8544 *nto* | *qnx*)
8545 # QNX uses GNU C++, but need to define -shared option too, otherwise
8546 # it will coredump.
8547 lt_prog_compiler_pic='-fPIC -shared'
8548 ;;
8550 osf3* | osf4* | osf5*)
8551 lt_prog_compiler_wl='-Wl,'
8552 # All OSF/1 code is PIC.
8553 lt_prog_compiler_static='-non_shared'
8554 ;;
8556 rdos*)
8557 lt_prog_compiler_static='-non_shared'
8558 ;;
8560 solaris*)
8561 lt_prog_compiler_pic='-KPIC'
8562 lt_prog_compiler_static='-Bstatic'
8563 case $cc_basename in
8564 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8565 lt_prog_compiler_wl='-Qoption ld ';;
8566 *)
8567 lt_prog_compiler_wl='-Wl,';;
8568 esac
8569 ;;
8571 sunos4*)
8572 lt_prog_compiler_wl='-Qoption ld '
8573 lt_prog_compiler_pic='-PIC'
8574 lt_prog_compiler_static='-Bstatic'
8575 ;;
8577 sysv4 | sysv4.2uw2* | sysv4.3*)
8578 lt_prog_compiler_wl='-Wl,'
8579 lt_prog_compiler_pic='-KPIC'
8580 lt_prog_compiler_static='-Bstatic'
8581 ;;
8583 sysv4*MP*)
8584 if test -d /usr/nec ;then
8585 lt_prog_compiler_pic='-Kconform_pic'
8586 lt_prog_compiler_static='-Bstatic'
8587 fi
8588 ;;
8590 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8591 lt_prog_compiler_wl='-Wl,'
8592 lt_prog_compiler_pic='-KPIC'
8593 lt_prog_compiler_static='-Bstatic'
8594 ;;
8596 unicos*)
8597 lt_prog_compiler_wl='-Wl,'
8598 lt_prog_compiler_can_build_shared=no
8599 ;;
8601 uts4*)
8602 lt_prog_compiler_pic='-pic'
8603 lt_prog_compiler_static='-Bstatic'
8604 ;;
8606 *)
8607 lt_prog_compiler_can_build_shared=no
8608 ;;
8609 esac
8610 fi
8612 case $host_os in
8613 # For platforms which do not support PIC, -DPIC is meaningless:
8614 *djgpp*)
8615 lt_prog_compiler_pic=
8616 ;;
8617 *)
8618 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8619 ;;
8620 esac
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8623 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8624 if ${lt_cv_prog_compiler_pic+:} false; then :
8625 $as_echo_n "(cached) " >&6
8626 else
8627 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8628 fi
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8630 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8631 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8633 #
8634 # Check to make sure the PIC flag actually works.
8635 #
8636 if test -n "$lt_prog_compiler_pic"; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8638 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8639 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8640 $as_echo_n "(cached) " >&6
8641 else
8642 lt_cv_prog_compiler_pic_works=no
8643 ac_outfile=conftest.$ac_objext
8644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8645 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
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 # The option is referenced via a variable to avoid confusing sed.
8651 lt_compile=`echo "$ac_compile" | $SED \
8652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8654 -e 's:$: $lt_compiler_flag:'`
8655 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8656 (eval "$lt_compile" 2>conftest.err)
8657 ac_status=$?
8658 cat conftest.err >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 if (exit $ac_status) && test -s "$ac_outfile"; then
8661 # The compiler can only warn and ignore the option if not recognized
8662 # So say no if there are warnings other than the usual output.
8663 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8664 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8665 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8666 lt_cv_prog_compiler_pic_works=yes
8667 fi
8668 fi
8669 $RM conftest*
8671 fi
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8673 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8675 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8676 case $lt_prog_compiler_pic in
8677 "" | " "*) ;;
8678 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8679 esac
8680 else
8681 lt_prog_compiler_pic=
8682 lt_prog_compiler_can_build_shared=no
8683 fi
8685 fi
8697 #
8698 # Check to make sure the static flag actually works.
8699 #
8700 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8702 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8703 if ${lt_cv_prog_compiler_static_works+:} false; then :
8704 $as_echo_n "(cached) " >&6
8705 else
8706 lt_cv_prog_compiler_static_works=no
8707 save_LDFLAGS="$LDFLAGS"
8708 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8709 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8710 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8711 # The linker can only warn and ignore the option if not recognized
8712 # So say no if there are warnings
8713 if test -s conftest.err; then
8714 # Append any errors to the config.log.
8715 cat conftest.err 1>&5
8716 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8718 if diff conftest.exp conftest.er2 >/dev/null; then
8719 lt_cv_prog_compiler_static_works=yes
8720 fi
8721 else
8722 lt_cv_prog_compiler_static_works=yes
8723 fi
8724 fi
8725 $RM -r conftest*
8726 LDFLAGS="$save_LDFLAGS"
8728 fi
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8730 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8732 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8733 :
8734 else
8735 lt_prog_compiler_static=
8736 fi
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8745 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8746 if ${lt_cv_prog_compiler_c_o+:} false; then :
8747 $as_echo_n "(cached) " >&6
8748 else
8749 lt_cv_prog_compiler_c_o=no
8750 $RM -r conftest 2>/dev/null
8751 mkdir conftest
8752 cd conftest
8753 mkdir out
8754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8756 lt_compiler_flag="-o out/conftest2.$ac_objext"
8757 # Insert the option either (1) after the last *FLAGS variable, or
8758 # (2) before a word containing "conftest.", or (3) at the end.
8759 # Note that $ac_compile itself does not contain backslashes and begins
8760 # with a dollar sign (not a hyphen), so the echo should work correctly.
8761 lt_compile=`echo "$ac_compile" | $SED \
8762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8764 -e 's:$: $lt_compiler_flag:'`
8765 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8766 (eval "$lt_compile" 2>out/conftest.err)
8767 ac_status=$?
8768 cat out/conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8771 then
8772 # The compiler can only warn and ignore the option if not recognized
8773 # So say no if there are warnings
8774 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8775 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8776 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8777 lt_cv_prog_compiler_c_o=yes
8778 fi
8779 fi
8780 chmod u+w . 2>&5
8781 $RM conftest*
8782 # SGI C++ compiler will create directory out/ii_files/ for
8783 # template instantiation
8784 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8785 $RM out/* && rmdir out
8786 cd ..
8787 $RM -r conftest
8788 $RM conftest*
8790 fi
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8792 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8800 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8801 if ${lt_cv_prog_compiler_c_o+:} false; then :
8802 $as_echo_n "(cached) " >&6
8803 else
8804 lt_cv_prog_compiler_c_o=no
8805 $RM -r conftest 2>/dev/null
8806 mkdir conftest
8807 cd conftest
8808 mkdir out
8809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8811 lt_compiler_flag="-o out/conftest2.$ac_objext"
8812 # Insert the option either (1) after the last *FLAGS variable, or
8813 # (2) before a word containing "conftest.", or (3) at the end.
8814 # Note that $ac_compile itself does not contain backslashes and begins
8815 # with a dollar sign (not a hyphen), so the echo should work correctly.
8816 lt_compile=`echo "$ac_compile" | $SED \
8817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8819 -e 's:$: $lt_compiler_flag:'`
8820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8821 (eval "$lt_compile" 2>out/conftest.err)
8822 ac_status=$?
8823 cat out/conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8826 then
8827 # The compiler can only warn and ignore the option if not recognized
8828 # So say no if there are warnings
8829 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8830 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8831 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8832 lt_cv_prog_compiler_c_o=yes
8833 fi
8834 fi
8835 chmod u+w . 2>&5
8836 $RM conftest*
8837 # SGI C++ compiler will create directory out/ii_files/ for
8838 # template instantiation
8839 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8840 $RM out/* && rmdir out
8841 cd ..
8842 $RM -r conftest
8843 $RM conftest*
8845 fi
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8847 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8852 hard_links="nottested"
8853 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8854 # do not overwrite the value of need_locks provided by the user
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8856 $as_echo_n "checking if we can lock with hard links... " >&6; }
8857 hard_links=yes
8858 $RM conftest*
8859 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8860 touch conftest.a
8861 ln conftest.a conftest.b 2>&5 || hard_links=no
8862 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8864 $as_echo "$hard_links" >&6; }
8865 if test "$hard_links" = no; then
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8867 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8868 need_locks=warn
8869 fi
8870 else
8871 need_locks=no
8872 fi
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8880 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8882 runpath_var=
8883 allow_undefined_flag=
8884 always_export_symbols=no
8885 archive_cmds=
8886 archive_expsym_cmds=
8887 compiler_needs_object=no
8888 enable_shared_with_static_runtimes=no
8889 export_dynamic_flag_spec=
8890 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8891 hardcode_automatic=no
8892 hardcode_direct=no
8893 hardcode_direct_absolute=no
8894 hardcode_libdir_flag_spec=
8895 hardcode_libdir_separator=
8896 hardcode_minus_L=no
8897 hardcode_shlibpath_var=unsupported
8898 inherit_rpath=no
8899 link_all_deplibs=unknown
8900 module_cmds=
8901 module_expsym_cmds=
8902 old_archive_from_new_cmds=
8903 old_archive_from_expsyms_cmds=
8904 thread_safe_flag_spec=
8905 whole_archive_flag_spec=
8906 # include_expsyms should be a list of space-separated symbols to be *always*
8907 # included in the symbol list
8908 include_expsyms=
8909 # exclude_expsyms can be an extended regexp of symbols to exclude
8910 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8911 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8912 # as well as any symbol that contains `d'.
8913 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8914 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8915 # platforms (ab)use it in PIC code, but their linkers get confused if
8916 # the symbol is explicitly referenced. Since portable code cannot
8917 # rely on this symbol name, it's probably fine to never include it in
8918 # preloaded symbol tables.
8919 # Exclude shared library initialization/finalization symbols.
8920 extract_expsyms_cmds=
8922 case $host_os in
8923 cygwin* | mingw* | pw32* | cegcc*)
8924 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8925 # When not using gcc, we currently assume that we are using
8926 # Microsoft Visual C++.
8927 if test "$GCC" != yes; then
8928 with_gnu_ld=no
8929 fi
8930 ;;
8931 interix*)
8932 # we just hope/assume this is gcc and not c89 (= MSVC++)
8933 with_gnu_ld=yes
8934 ;;
8935 openbsd*)
8936 with_gnu_ld=no
8937 ;;
8938 linux* | k*bsd*-gnu | gnu*)
8939 link_all_deplibs=no
8940 ;;
8941 esac
8943 ld_shlibs=yes
8945 # On some targets, GNU ld is compatible enough with the native linker
8946 # that we're better off using the native interface for both.
8947 lt_use_gnu_ld_interface=no
8948 if test "$with_gnu_ld" = yes; then
8949 case $host_os in
8950 aix*)
8951 # The AIX port of GNU ld has always aspired to compatibility
8952 # with the native linker. However, as the warning in the GNU ld
8953 # block says, versions before 2.19.5* couldn't really create working
8954 # shared libraries, regardless of the interface used.
8955 case `$LD -v 2>&1` in
8956 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8957 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8958 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8959 *)
8960 lt_use_gnu_ld_interface=yes
8961 ;;
8962 esac
8963 ;;
8964 *)
8965 lt_use_gnu_ld_interface=yes
8966 ;;
8967 esac
8968 fi
8970 if test "$lt_use_gnu_ld_interface" = yes; then
8971 # If archive_cmds runs LD, not CC, wlarc should be empty
8972 wlarc='${wl}'
8974 # Set some defaults for GNU ld with shared library support. These
8975 # are reset later if shared libraries are not supported. Putting them
8976 # here allows them to be overridden if necessary.
8977 runpath_var=LD_RUN_PATH
8978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8979 export_dynamic_flag_spec='${wl}--export-dynamic'
8980 # ancient GNU ld didn't support --whole-archive et. al.
8981 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8982 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8983 else
8984 whole_archive_flag_spec=
8985 fi
8986 supports_anon_versioning=no
8987 case `$LD -v 2>&1` in
8988 *GNU\ gold*) supports_anon_versioning=yes ;;
8989 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8990 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8991 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8992 *\ 2.11.*) ;; # other 2.11 versions
8993 *) supports_anon_versioning=yes ;;
8994 esac
8996 # See if GNU ld supports shared libraries.
8997 case $host_os in
8998 aix[3-9]*)
8999 # On AIX/PPC, the GNU linker is very broken
9000 if test "$host_cpu" != ia64; then
9001 ld_shlibs=no
9002 cat <<_LT_EOF 1>&2
9004 *** Warning: the GNU linker, at least up to release 2.19, is reported
9005 *** to be unable to reliably create shared libraries on AIX.
9006 *** Therefore, libtool is disabling shared libraries support. If you
9007 *** really care for shared libraries, you may want to install binutils
9008 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9009 *** You will then need to restart the configuration process.
9011 _LT_EOF
9012 fi
9013 ;;
9015 amigaos*)
9016 case $host_cpu in
9017 powerpc)
9018 # see comment about AmigaOS4 .so support
9019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9020 archive_expsym_cmds=''
9021 ;;
9022 m68k)
9023 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)'
9024 hardcode_libdir_flag_spec='-L$libdir'
9025 hardcode_minus_L=yes
9026 ;;
9027 esac
9028 ;;
9030 beos*)
9031 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9032 allow_undefined_flag=unsupported
9033 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9034 # support --undefined. This deserves some investigation. FIXME
9035 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9036 else
9037 ld_shlibs=no
9038 fi
9039 ;;
9041 cygwin* | mingw* | pw32* | cegcc*)
9042 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9043 # as there is no search path for DLLs.
9044 hardcode_libdir_flag_spec='-L$libdir'
9045 export_dynamic_flag_spec='${wl}--export-all-symbols'
9046 allow_undefined_flag=unsupported
9047 always_export_symbols=no
9048 enable_shared_with_static_runtimes=yes
9049 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9050 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9052 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9054 # If the export-symbols file already is a .def file (1st line
9055 # is EXPORTS), use it as is; otherwise, prepend...
9056 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9057 cp $export_symbols $output_objdir/$soname.def;
9058 else
9059 echo EXPORTS > $output_objdir/$soname.def;
9060 cat $export_symbols >> $output_objdir/$soname.def;
9061 fi~
9062 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9063 else
9064 ld_shlibs=no
9065 fi
9066 ;;
9068 haiku*)
9069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9070 link_all_deplibs=yes
9071 ;;
9073 interix[3-9]*)
9074 hardcode_direct=no
9075 hardcode_shlibpath_var=no
9076 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9077 export_dynamic_flag_spec='${wl}-E'
9078 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9079 # Instead, shared libraries are loaded at an image base (0x10000000 by
9080 # default) and relocated if they conflict, which is a slow very memory
9081 # consuming and fragmenting process. To avoid this, we pick a random,
9082 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9083 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9084 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9085 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'
9086 ;;
9088 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9089 tmp_diet=no
9090 if test "$host_os" = linux-dietlibc; then
9091 case $cc_basename in
9092 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9093 esac
9094 fi
9095 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9096 && test "$tmp_diet" = no
9097 then
9098 tmp_addflag=' $pic_flag'
9099 tmp_sharedflag='-shared'
9100 case $cc_basename,$host_cpu in
9101 pgcc*) # Portland Group C compiler
9102 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'
9103 tmp_addflag=' $pic_flag'
9104 ;;
9105 pgf77* | pgf90* | pgf95* | pgfortran*)
9106 # Portland Group f77 and f90 compilers
9107 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'
9108 tmp_addflag=' $pic_flag -Mnomain' ;;
9109 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9110 tmp_addflag=' -i_dynamic' ;;
9111 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9112 tmp_addflag=' -i_dynamic -nofor_main' ;;
9113 ifc* | ifort*) # Intel Fortran compiler
9114 tmp_addflag=' -nofor_main' ;;
9115 lf95*) # Lahey Fortran 8.1
9116 whole_archive_flag_spec=
9117 tmp_sharedflag='--shared' ;;
9118 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9119 tmp_sharedflag='-qmkshrobj'
9120 tmp_addflag= ;;
9121 nvcc*) # Cuda Compiler Driver 2.2
9122 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'
9123 compiler_needs_object=yes
9124 ;;
9125 esac
9126 case `$CC -V 2>&1 | sed 5q` in
9127 *Sun\ C*) # Sun C 5.9
9128 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'
9129 compiler_needs_object=yes
9130 tmp_sharedflag='-G' ;;
9131 *Sun\ F*) # Sun Fortran 8.3
9132 tmp_sharedflag='-G' ;;
9133 esac
9134 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9136 if test "x$supports_anon_versioning" = xyes; then
9137 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9138 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9139 echo "local: *; };" >> $output_objdir/$libname.ver~
9140 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9141 fi
9143 case $cc_basename in
9144 xlf* | bgf* | bgxlf* | mpixlf*)
9145 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9146 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9147 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9148 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9149 if test "x$supports_anon_versioning" = xyes; then
9150 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9151 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9152 echo "local: *; };" >> $output_objdir/$libname.ver~
9153 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9154 fi
9155 ;;
9156 esac
9157 else
9158 ld_shlibs=no
9159 fi
9160 ;;
9162 netbsd* | netbsdelf*-gnu)
9163 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9164 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9165 wlarc=
9166 else
9167 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9168 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9169 fi
9170 ;;
9172 solaris*)
9173 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9174 ld_shlibs=no
9175 cat <<_LT_EOF 1>&2
9177 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9178 *** create shared libraries on Solaris systems. Therefore, libtool
9179 *** is disabling shared libraries support. We urge you to upgrade GNU
9180 *** binutils to release 2.9.1 or newer. Another option is to modify
9181 *** your PATH or compiler configuration so that the native linker is
9182 *** used, and then restart.
9184 _LT_EOF
9185 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9186 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9187 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9188 else
9189 ld_shlibs=no
9190 fi
9191 ;;
9193 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9194 case `$LD -v 2>&1` in
9195 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9196 ld_shlibs=no
9197 cat <<_LT_EOF 1>&2
9199 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9200 *** reliably create shared libraries on SCO systems. Therefore, libtool
9201 *** is disabling shared libraries support. We urge you to upgrade GNU
9202 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9203 *** your PATH or compiler configuration so that the native linker is
9204 *** used, and then restart.
9206 _LT_EOF
9207 ;;
9208 *)
9209 # For security reasons, it is highly recommended that you always
9210 # use absolute paths for naming shared libraries, and exclude the
9211 # DT_RUNPATH tag from executables and libraries. But doing so
9212 # requires that you compile everything twice, which is a pain.
9213 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9214 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9215 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9216 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9217 else
9218 ld_shlibs=no
9219 fi
9220 ;;
9221 esac
9222 ;;
9224 sunos4*)
9225 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9226 wlarc=
9227 hardcode_direct=yes
9228 hardcode_shlibpath_var=no
9229 ;;
9231 *)
9232 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9233 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9234 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9235 else
9236 ld_shlibs=no
9237 fi
9238 ;;
9239 esac
9241 if test "$ld_shlibs" = no; then
9242 runpath_var=
9243 hardcode_libdir_flag_spec=
9244 export_dynamic_flag_spec=
9245 whole_archive_flag_spec=
9246 fi
9247 else
9248 # PORTME fill in a description of your system's linker (not GNU ld)
9249 case $host_os in
9250 aix3*)
9251 allow_undefined_flag=unsupported
9252 always_export_symbols=yes
9253 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'
9254 # Note: this linker hardcodes the directories in LIBPATH if there
9255 # are no directories specified by -L.
9256 hardcode_minus_L=yes
9257 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9258 # Neither direct hardcoding nor static linking is supported with a
9259 # broken collect2.
9260 hardcode_direct=unsupported
9261 fi
9262 ;;
9264 aix[4-9]*)
9265 if test "$host_cpu" = ia64; then
9266 # On IA64, the linker does run time linking by default, so we don't
9267 # have to do anything special.
9268 aix_use_runtimelinking=no
9269 exp_sym_flag='-Bexport'
9270 no_entry_flag=""
9271 else
9272 # If we're using GNU nm, then we don't want the "-C" option.
9273 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9274 # Also, AIX nm treats weak defined symbols like other global
9275 # defined symbols, whereas GNU nm marks them as "W".
9276 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9277 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'
9278 else
9279 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9280 fi
9281 aix_use_runtimelinking=no
9283 # Test if we are trying to use run time linking or normal
9284 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9285 # need to do runtime linking.
9286 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9287 for ld_flag in $LDFLAGS; do
9288 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9289 aix_use_runtimelinking=yes
9290 break
9291 fi
9292 done
9293 ;;
9294 esac
9296 exp_sym_flag='-bexport'
9297 no_entry_flag='-bnoentry'
9298 fi
9300 # When large executables or shared objects are built, AIX ld can
9301 # have problems creating the table of contents. If linking a library
9302 # or program results in "error TOC overflow" add -mminimal-toc to
9303 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9304 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9306 archive_cmds=''
9307 hardcode_direct=yes
9308 hardcode_direct_absolute=yes
9309 hardcode_libdir_separator=':'
9310 link_all_deplibs=yes
9311 file_list_spec='${wl}-f,'
9313 if test "$GCC" = yes; then
9314 case $host_os in aix4.[012]|aix4.[012].*)
9315 # We only want to do this on AIX 4.2 and lower, the check
9316 # below for broken collect2 doesn't work under 4.3+
9317 collect2name=`${CC} -print-prog-name=collect2`
9318 if test -f "$collect2name" &&
9319 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9320 then
9321 # We have reworked collect2
9322 :
9323 else
9324 # We have old collect2
9325 hardcode_direct=unsupported
9326 # It fails to find uninstalled libraries when the uninstalled
9327 # path is not listed in the libpath. Setting hardcode_minus_L
9328 # to unsupported forces relinking
9329 hardcode_minus_L=yes
9330 hardcode_libdir_flag_spec='-L$libdir'
9331 hardcode_libdir_separator=
9332 fi
9333 ;;
9334 esac
9335 shared_flag='-shared'
9336 if test "$aix_use_runtimelinking" = yes; then
9337 shared_flag="$shared_flag "'${wl}-G'
9338 fi
9339 link_all_deplibs=no
9340 else
9341 # not using gcc
9342 if test "$host_cpu" = ia64; then
9343 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9344 # chokes on -Wl,-G. The following line is correct:
9345 shared_flag='-G'
9346 else
9347 if test "$aix_use_runtimelinking" = yes; then
9348 shared_flag='${wl}-G'
9349 else
9350 shared_flag='${wl}-bM:SRE'
9351 fi
9352 fi
9353 fi
9355 export_dynamic_flag_spec='${wl}-bexpall'
9356 # It seems that -bexpall does not export symbols beginning with
9357 # underscore (_), so it is better to generate a list of symbols to export.
9358 always_export_symbols=yes
9359 if test "$aix_use_runtimelinking" = yes; then
9360 # Warning - without using the other runtime loading flags (-brtl),
9361 # -berok will link without error, but may produce a broken library.
9362 allow_undefined_flag='-berok'
9363 # Determine the default libpath from the value encoded in an
9364 # empty executable.
9365 if test "${lt_cv_aix_libpath+set}" = set; then
9366 aix_libpath=$lt_cv_aix_libpath
9367 else
9368 if ${lt_cv_aix_libpath_+:} false; then :
9369 $as_echo_n "(cached) " >&6
9370 else
9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h. */
9374 int
9375 main ()
9376 {
9378 ;
9379 return 0;
9380 }
9381 _ACEOF
9382 if ac_fn_c_try_link "$LINENO"; then :
9384 lt_aix_libpath_sed='
9385 /Import File Strings/,/^$/ {
9386 /^0/ {
9387 s/^0 *\([^ ]*\) *$/\1/
9388 p
9389 }
9390 }'
9391 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9392 # Check for a 64-bit object if we didn't find anything.
9393 if test -z "$lt_cv_aix_libpath_"; then
9394 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9395 fi
9396 fi
9397 rm -f core conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext conftest.$ac_ext
9399 if test -z "$lt_cv_aix_libpath_"; then
9400 lt_cv_aix_libpath_="/usr/lib:/lib"
9401 fi
9403 fi
9405 aix_libpath=$lt_cv_aix_libpath_
9406 fi
9408 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9409 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"
9410 else
9411 if test "$host_cpu" = ia64; then
9412 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9413 allow_undefined_flag="-z nodefs"
9414 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"
9415 else
9416 # Determine the default libpath from the value encoded in an
9417 # empty executable.
9418 if test "${lt_cv_aix_libpath+set}" = set; then
9419 aix_libpath=$lt_cv_aix_libpath
9420 else
9421 if ${lt_cv_aix_libpath_+:} false; then :
9422 $as_echo_n "(cached) " >&6
9423 else
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9427 int
9428 main ()
9429 {
9431 ;
9432 return 0;
9433 }
9434 _ACEOF
9435 if ac_fn_c_try_link "$LINENO"; then :
9437 lt_aix_libpath_sed='
9438 /Import File Strings/,/^$/ {
9439 /^0/ {
9440 s/^0 *\([^ ]*\) *$/\1/
9441 p
9442 }
9443 }'
9444 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9445 # Check for a 64-bit object if we didn't find anything.
9446 if test -z "$lt_cv_aix_libpath_"; then
9447 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9448 fi
9449 fi
9450 rm -f core conftest.err conftest.$ac_objext \
9451 conftest$ac_exeext conftest.$ac_ext
9452 if test -z "$lt_cv_aix_libpath_"; then
9453 lt_cv_aix_libpath_="/usr/lib:/lib"
9454 fi
9456 fi
9458 aix_libpath=$lt_cv_aix_libpath_
9459 fi
9461 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9462 # Warning - without using the other run time loading flags,
9463 # -berok will link without error, but may produce a broken library.
9464 no_undefined_flag=' ${wl}-bernotok'
9465 allow_undefined_flag=' ${wl}-berok'
9466 if test "$with_gnu_ld" = yes; then
9467 # We only use this code for GNU lds that support --whole-archive.
9468 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9469 else
9470 # Exported symbols can be pulled into shared objects from archives
9471 whole_archive_flag_spec='$convenience'
9472 fi
9473 archive_cmds_need_lc=yes
9474 # This is similar to how AIX traditionally builds its shared libraries.
9475 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'
9476 fi
9477 fi
9478 ;;
9480 amigaos*)
9481 case $host_cpu in
9482 powerpc)
9483 # see comment about AmigaOS4 .so support
9484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9485 archive_expsym_cmds=''
9486 ;;
9487 m68k)
9488 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)'
9489 hardcode_libdir_flag_spec='-L$libdir'
9490 hardcode_minus_L=yes
9491 ;;
9492 esac
9493 ;;
9495 bsdi[45]*)
9496 export_dynamic_flag_spec=-rdynamic
9497 ;;
9499 cygwin* | mingw* | pw32* | cegcc*)
9500 # When not using gcc, we currently assume that we are using
9501 # Microsoft Visual C++.
9502 # hardcode_libdir_flag_spec is actually meaningless, as there is
9503 # no search path for DLLs.
9504 case $cc_basename in
9505 cl*)
9506 # Native MSVC
9507 hardcode_libdir_flag_spec=' '
9508 allow_undefined_flag=unsupported
9509 always_export_symbols=yes
9510 file_list_spec='@'
9511 # Tell ltmain to make .lib files, not .a files.
9512 libext=lib
9513 # Tell ltmain to make .dll files, not .so files.
9514 shrext_cmds=".dll"
9515 # FIXME: Setting linknames here is a bad hack.
9516 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9517 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9518 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9519 else
9520 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9521 fi~
9522 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9523 linknames='
9524 # The linker will not automatically build a static lib if we build a DLL.
9525 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9526 enable_shared_with_static_runtimes=yes
9527 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9528 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9529 # Don't use ranlib
9530 old_postinstall_cmds='chmod 644 $oldlib'
9531 postlink_cmds='lt_outputfile="@OUTPUT@"~
9532 lt_tool_outputfile="@TOOL_OUTPUT@"~
9533 case $lt_outputfile in
9534 *.exe|*.EXE) ;;
9535 *)
9536 lt_outputfile="$lt_outputfile.exe"
9537 lt_tool_outputfile="$lt_tool_outputfile.exe"
9538 ;;
9539 esac~
9540 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9541 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9542 $RM "$lt_outputfile.manifest";
9543 fi'
9544 ;;
9545 *)
9546 # Assume MSVC wrapper
9547 hardcode_libdir_flag_spec=' '
9548 allow_undefined_flag=unsupported
9549 # Tell ltmain to make .lib files, not .a files.
9550 libext=lib
9551 # Tell ltmain to make .dll files, not .so files.
9552 shrext_cmds=".dll"
9553 # FIXME: Setting linknames here is a bad hack.
9554 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9555 # The linker will automatically build a .lib file if we build a DLL.
9556 old_archive_from_new_cmds='true'
9557 # FIXME: Should let the user specify the lib program.
9558 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9559 enable_shared_with_static_runtimes=yes
9560 ;;
9561 esac
9562 ;;
9564 darwin* | rhapsody*)
9567 archive_cmds_need_lc=no
9568 hardcode_direct=no
9569 hardcode_automatic=yes
9570 hardcode_shlibpath_var=unsupported
9571 if test "$lt_cv_ld_force_load" = "yes"; then
9572 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\"`'
9574 else
9575 whole_archive_flag_spec=''
9576 fi
9577 link_all_deplibs=yes
9578 allow_undefined_flag="$_lt_dar_allow_undefined"
9579 case $cc_basename in
9580 ifort*) _lt_dar_can_shared=yes ;;
9581 *) _lt_dar_can_shared=$GCC ;;
9582 esac
9583 if test "$_lt_dar_can_shared" = "yes"; then
9584 output_verbose_link_cmd=func_echo_all
9585 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9586 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9587 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}"
9588 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}"
9590 else
9591 ld_shlibs=no
9592 fi
9594 ;;
9596 dgux*)
9597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9598 hardcode_libdir_flag_spec='-L$libdir'
9599 hardcode_shlibpath_var=no
9600 ;;
9602 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9603 # support. Future versions do this automatically, but an explicit c++rt0.o
9604 # does not break anything, and helps significantly (at the cost of a little
9605 # extra space).
9606 freebsd2.2*)
9607 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9608 hardcode_libdir_flag_spec='-R$libdir'
9609 hardcode_direct=yes
9610 hardcode_shlibpath_var=no
9611 ;;
9613 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9614 freebsd2.*)
9615 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9616 hardcode_direct=yes
9617 hardcode_minus_L=yes
9618 hardcode_shlibpath_var=no
9619 ;;
9621 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9622 freebsd* | dragonfly*)
9623 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9624 hardcode_libdir_flag_spec='-R$libdir'
9625 hardcode_direct=yes
9626 hardcode_shlibpath_var=no
9627 ;;
9629 hpux9*)
9630 if test "$GCC" = yes; then
9631 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9632 else
9633 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'
9634 fi
9635 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9636 hardcode_libdir_separator=:
9637 hardcode_direct=yes
9639 # hardcode_minus_L: Not really in the search PATH,
9640 # but as the default location of the library.
9641 hardcode_minus_L=yes
9642 export_dynamic_flag_spec='${wl}-E'
9643 ;;
9645 hpux10*)
9646 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9647 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9648 else
9649 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9650 fi
9651 if test "$with_gnu_ld" = no; then
9652 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9653 hardcode_libdir_separator=:
9654 hardcode_direct=yes
9655 hardcode_direct_absolute=yes
9656 export_dynamic_flag_spec='${wl}-E'
9657 # hardcode_minus_L: Not really in the search PATH,
9658 # but as the default location of the library.
9659 hardcode_minus_L=yes
9660 fi
9661 ;;
9663 hpux11*)
9664 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9665 case $host_cpu in
9666 hppa*64*)
9667 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9668 ;;
9669 ia64*)
9670 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9671 ;;
9672 *)
9673 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9674 ;;
9675 esac
9676 else
9677 case $host_cpu in
9678 hppa*64*)
9679 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9680 ;;
9681 ia64*)
9682 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9683 ;;
9684 *)
9686 # Older versions of the 11.00 compiler do not understand -b yet
9687 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9689 $as_echo_n "checking if $CC understands -b... " >&6; }
9690 if ${lt_cv_prog_compiler__b+:} false; then :
9691 $as_echo_n "(cached) " >&6
9692 else
9693 lt_cv_prog_compiler__b=no
9694 save_LDFLAGS="$LDFLAGS"
9695 LDFLAGS="$LDFLAGS -b"
9696 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9697 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9698 # The linker can only warn and ignore the option if not recognized
9699 # So say no if there are warnings
9700 if test -s conftest.err; then
9701 # Append any errors to the config.log.
9702 cat conftest.err 1>&5
9703 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9705 if diff conftest.exp conftest.er2 >/dev/null; then
9706 lt_cv_prog_compiler__b=yes
9707 fi
9708 else
9709 lt_cv_prog_compiler__b=yes
9710 fi
9711 fi
9712 $RM -r conftest*
9713 LDFLAGS="$save_LDFLAGS"
9715 fi
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9717 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9719 if test x"$lt_cv_prog_compiler__b" = xyes; then
9720 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9721 else
9722 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9723 fi
9725 ;;
9726 esac
9727 fi
9728 if test "$with_gnu_ld" = no; then
9729 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9730 hardcode_libdir_separator=:
9732 case $host_cpu in
9733 hppa*64*|ia64*)
9734 hardcode_direct=no
9735 hardcode_shlibpath_var=no
9736 ;;
9737 *)
9738 hardcode_direct=yes
9739 hardcode_direct_absolute=yes
9740 export_dynamic_flag_spec='${wl}-E'
9742 # hardcode_minus_L: Not really in the search PATH,
9743 # but as the default location of the library.
9744 hardcode_minus_L=yes
9745 ;;
9746 esac
9747 fi
9748 ;;
9750 irix5* | irix6* | nonstopux*)
9751 if test "$GCC" = yes; then
9752 archive_cmds='$CC -shared $pic_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'
9753 # Try to use the -exported_symbol ld option, if it does not
9754 # work, assume that -exports_file does not work either and
9755 # implicitly export all symbols.
9756 # This should be the same for all languages, so no per-tag cache variable.
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9758 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9759 if ${lt_cv_irix_exported_symbol+:} false; then :
9760 $as_echo_n "(cached) " >&6
9761 else
9762 save_LDFLAGS="$LDFLAGS"
9763 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h. */
9766 int foo (void) { return 0; }
9767 _ACEOF
9768 if ac_fn_c_try_link "$LINENO"; then :
9769 lt_cv_irix_exported_symbol=yes
9770 else
9771 lt_cv_irix_exported_symbol=no
9772 fi
9773 rm -f core conftest.err conftest.$ac_objext \
9774 conftest$ac_exeext conftest.$ac_ext
9775 LDFLAGS="$save_LDFLAGS"
9776 fi
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9778 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9779 if test "$lt_cv_irix_exported_symbol" = yes; then
9780 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
9781 fi
9782 else
9783 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'
9784 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'
9785 fi
9786 archive_cmds_need_lc='no'
9787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9788 hardcode_libdir_separator=:
9789 inherit_rpath=yes
9790 link_all_deplibs=yes
9791 ;;
9793 netbsd* | netbsdelf*-gnu)
9794 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9795 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9796 else
9797 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9798 fi
9799 hardcode_libdir_flag_spec='-R$libdir'
9800 hardcode_direct=yes
9801 hardcode_shlibpath_var=no
9802 ;;
9804 newsos6)
9805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9806 hardcode_direct=yes
9807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9808 hardcode_libdir_separator=:
9809 hardcode_shlibpath_var=no
9810 ;;
9812 *nto* | *qnx*)
9813 ;;
9815 openbsd*)
9816 if test -f /usr/libexec/ld.so; then
9817 hardcode_direct=yes
9818 hardcode_shlibpath_var=no
9819 hardcode_direct_absolute=yes
9820 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9821 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9822 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9823 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9824 export_dynamic_flag_spec='${wl}-E'
9825 else
9826 case $host_os in
9827 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9828 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9829 hardcode_libdir_flag_spec='-R$libdir'
9830 ;;
9831 *)
9832 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9833 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9834 ;;
9835 esac
9836 fi
9837 else
9838 ld_shlibs=no
9839 fi
9840 ;;
9842 os2*)
9843 hardcode_libdir_flag_spec='-L$libdir'
9844 hardcode_minus_L=yes
9845 allow_undefined_flag=unsupported
9846 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'
9847 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9848 ;;
9850 osf3*)
9851 if test "$GCC" = yes; then
9852 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9853 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'
9854 else
9855 allow_undefined_flag=' -expect_unresolved \*'
9856 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'
9857 fi
9858 archive_cmds_need_lc='no'
9859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9860 hardcode_libdir_separator=:
9861 ;;
9863 osf4* | osf5*) # as osf3* with the addition of -msym flag
9864 if test "$GCC" = yes; then
9865 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9866 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
9867 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9868 else
9869 allow_undefined_flag=' -expect_unresolved \*'
9870 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'
9871 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~
9872 $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'
9874 # Both c and cxx compiler support -rpath directly
9875 hardcode_libdir_flag_spec='-rpath $libdir'
9876 fi
9877 archive_cmds_need_lc='no'
9878 hardcode_libdir_separator=:
9879 ;;
9881 solaris*)
9882 no_undefined_flag=' -z defs'
9883 if test "$GCC" = yes; then
9884 wlarc='${wl}'
9885 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9886 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9887 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9888 else
9889 case `$CC -V 2>&1` in
9890 *"Compilers 5.0"*)
9891 wlarc=''
9892 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9893 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9894 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9895 ;;
9896 *)
9897 wlarc='${wl}'
9898 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9899 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9900 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9901 ;;
9902 esac
9903 fi
9904 hardcode_libdir_flag_spec='-R$libdir'
9905 hardcode_shlibpath_var=no
9906 case $host_os in
9907 solaris2.[0-5] | solaris2.[0-5].*) ;;
9908 *)
9909 # The compiler driver will combine and reorder linker options,
9910 # but understands `-z linker_flag'. GCC discards it without `$wl',
9911 # but is careful enough not to reorder.
9912 # Supported since Solaris 2.6 (maybe 2.5.1?)
9913 if test "$GCC" = yes; then
9914 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9915 else
9916 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9917 fi
9918 ;;
9919 esac
9920 link_all_deplibs=yes
9921 ;;
9923 sunos4*)
9924 if test "x$host_vendor" = xsequent; then
9925 # Use $CC to link under sequent, because it throws in some extra .o
9926 # files that make .init and .fini sections work.
9927 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9928 else
9929 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9930 fi
9931 hardcode_libdir_flag_spec='-L$libdir'
9932 hardcode_direct=yes
9933 hardcode_minus_L=yes
9934 hardcode_shlibpath_var=no
9935 ;;
9937 sysv4)
9938 case $host_vendor in
9939 sni)
9940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9941 hardcode_direct=yes # is this really true???
9942 ;;
9943 siemens)
9944 ## LD is ld it makes a PLAMLIB
9945 ## CC just makes a GrossModule.
9946 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9947 reload_cmds='$CC -r -o $output$reload_objs'
9948 hardcode_direct=no
9949 ;;
9950 motorola)
9951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9952 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9953 ;;
9954 esac
9955 runpath_var='LD_RUN_PATH'
9956 hardcode_shlibpath_var=no
9957 ;;
9959 sysv4.3*)
9960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9961 hardcode_shlibpath_var=no
9962 export_dynamic_flag_spec='-Bexport'
9963 ;;
9965 sysv4*MP*)
9966 if test -d /usr/nec; then
9967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9968 hardcode_shlibpath_var=no
9969 runpath_var=LD_RUN_PATH
9970 hardcode_runpath_var=yes
9971 ld_shlibs=yes
9972 fi
9973 ;;
9975 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9976 no_undefined_flag='${wl}-z,text'
9977 archive_cmds_need_lc=no
9978 hardcode_shlibpath_var=no
9979 runpath_var='LD_RUN_PATH'
9981 if test "$GCC" = yes; then
9982 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9983 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9984 else
9985 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9986 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9987 fi
9988 ;;
9990 sysv5* | sco3.2v5* | sco5v6*)
9991 # Note: We can NOT use -z defs as we might desire, because we do not
9992 # link with -lc, and that would cause any symbols used from libc to
9993 # always be unresolved, which means just about no library would
9994 # ever link correctly. If we're not using GNU ld we use -z text
9995 # though, which does catch some bad symbols but isn't as heavy-handed
9996 # as -z defs.
9997 no_undefined_flag='${wl}-z,text'
9998 allow_undefined_flag='${wl}-z,nodefs'
9999 archive_cmds_need_lc=no
10000 hardcode_shlibpath_var=no
10001 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10002 hardcode_libdir_separator=':'
10003 link_all_deplibs=yes
10004 export_dynamic_flag_spec='${wl}-Bexport'
10005 runpath_var='LD_RUN_PATH'
10007 if test "$GCC" = yes; then
10008 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10009 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10010 else
10011 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10012 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10013 fi
10014 ;;
10016 uts4*)
10017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10018 hardcode_libdir_flag_spec='-L$libdir'
10019 hardcode_shlibpath_var=no
10020 ;;
10022 *)
10023 ld_shlibs=no
10024 ;;
10025 esac
10027 if test x$host_vendor = xsni; then
10028 case $host in
10029 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10030 export_dynamic_flag_spec='${wl}-Blargedynsym'
10031 ;;
10032 esac
10033 fi
10034 fi
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10037 $as_echo "$ld_shlibs" >&6; }
10038 test "$ld_shlibs" = no && can_build_shared=no
10040 with_gnu_ld=$with_gnu_ld
10056 #
10057 # Do we need to explicitly link libc?
10058 #
10059 case "x$archive_cmds_need_lc" in
10060 x|xyes)
10061 # Assume -lc should be added
10062 archive_cmds_need_lc=yes
10064 if test "$enable_shared" = yes && test "$GCC" = yes; then
10065 case $archive_cmds in
10066 *'~'*)
10067 # FIXME: we may have to deal with multi-command sequences.
10068 ;;
10069 '$CC '*)
10070 # Test whether the compiler implicitly links with -lc since on some
10071 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10072 # to ld, don't add -lc before -lgcc.
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10074 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10075 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10076 $as_echo_n "(cached) " >&6
10077 else
10078 $RM conftest*
10079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10082 (eval $ac_compile) 2>&5
10083 ac_status=$?
10084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10085 test $ac_status = 0; } 2>conftest.err; then
10086 soname=conftest
10087 lib=conftest
10088 libobjs=conftest.$ac_objext
10089 deplibs=
10090 wl=$lt_prog_compiler_wl
10091 pic_flag=$lt_prog_compiler_pic
10092 compiler_flags=-v
10093 linker_flags=-v
10094 verstring=
10095 output_objdir=.
10096 libname=conftest
10097 lt_save_allow_undefined_flag=$allow_undefined_flag
10098 allow_undefined_flag=
10099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10100 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10101 ac_status=$?
10102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10103 test $ac_status = 0; }
10104 then
10105 lt_cv_archive_cmds_need_lc=no
10106 else
10107 lt_cv_archive_cmds_need_lc=yes
10108 fi
10109 allow_undefined_flag=$lt_save_allow_undefined_flag
10110 else
10111 cat conftest.err 1>&5
10112 fi
10113 $RM conftest*
10115 fi
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10117 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10118 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10119 ;;
10120 esac
10121 fi
10122 ;;
10123 esac
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10277 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10279 if test "$GCC" = yes; then
10280 case $host_os in
10281 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10282 *) lt_awk_arg="/^libraries:/" ;;
10283 esac
10284 case $host_os in
10285 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10286 *) lt_sed_strip_eq="s,=/,/,g" ;;
10287 esac
10288 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10289 case $lt_search_path_spec in
10290 *\;*)
10291 # if the path contains ";" then we assume it to be the separator
10292 # otherwise default to the standard path separator (i.e. ":") - it is
10293 # assumed that no part of a normal pathname contains ";" but that should
10294 # okay in the real world where ";" in dirpaths is itself problematic.
10295 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10296 ;;
10297 *)
10298 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10299 ;;
10300 esac
10301 # Ok, now we have the path, separated by spaces, we can step through it
10302 # and add multilib dir if necessary.
10303 lt_tmp_lt_search_path_spec=
10304 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10305 for lt_sys_path in $lt_search_path_spec; do
10306 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10307 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10308 else
10309 test -d "$lt_sys_path" && \
10310 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10311 fi
10312 done
10313 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10314 BEGIN {RS=" "; FS="/|\n";} {
10315 lt_foo="";
10316 lt_count=0;
10317 for (lt_i = NF; lt_i > 0; lt_i--) {
10318 if ($lt_i != "" && $lt_i != ".") {
10319 if ($lt_i == "..") {
10320 lt_count++;
10321 } else {
10322 if (lt_count == 0) {
10323 lt_foo="/" $lt_i lt_foo;
10324 } else {
10325 lt_count--;
10326 }
10327 }
10328 }
10329 }
10330 if (lt_foo != "") { lt_freq[lt_foo]++; }
10331 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10332 }'`
10333 # AWK program above erroneously prepends '/' to C:/dos/paths
10334 # for these hosts.
10335 case $host_os in
10336 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10337 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10338 esac
10339 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10340 else
10341 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10342 fi
10343 library_names_spec=
10344 libname_spec='lib$name'
10345 soname_spec=
10346 shrext_cmds=".so"
10347 postinstall_cmds=
10348 postuninstall_cmds=
10349 finish_cmds=
10350 finish_eval=
10351 shlibpath_var=
10352 shlibpath_overrides_runpath=unknown
10353 version_type=none
10354 dynamic_linker="$host_os ld.so"
10355 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10356 need_lib_prefix=unknown
10357 hardcode_into_libs=no
10359 # when you set need_version to no, make sure it does not cause -set_version
10360 # flags to be left without arguments
10361 need_version=unknown
10363 case $host_os in
10364 aix3*)
10365 version_type=linux # correct to gnu/linux during the next big refactor
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10367 shlibpath_var=LIBPATH
10369 # AIX 3 has no versioning support, so we append a major version to the name.
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 ;;
10373 aix[4-9]*)
10374 version_type=linux # correct to gnu/linux during the next big refactor
10375 need_lib_prefix=no
10376 need_version=no
10377 hardcode_into_libs=yes
10378 if test "$host_cpu" = ia64; then
10379 # AIX 5 supports IA64
10380 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10381 shlibpath_var=LD_LIBRARY_PATH
10382 else
10383 # With GCC up to 2.95.x, collect2 would create an import file
10384 # for dependence libraries. The import file would start with
10385 # the line `#! .'. This would cause the generated library to
10386 # depend on `.', always an invalid library. This was fixed in
10387 # development snapshots of GCC prior to 3.0.
10388 case $host_os in
10389 aix4 | aix4.[01] | aix4.[01].*)
10390 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10391 echo ' yes '
10392 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10393 :
10394 else
10395 can_build_shared=no
10396 fi
10397 ;;
10398 esac
10399 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10400 # soname into executable. Probably we can add versioning support to
10401 # collect2, so additional links can be useful in future.
10402 if test "$aix_use_runtimelinking" = yes; then
10403 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10404 # instead of lib<name>.a to let people know that these are not
10405 # typical AIX shared libraries.
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10407 else
10408 # We preserve .a as extension for shared libraries through AIX4.2
10409 # and later when we are not doing run time linking.
10410 library_names_spec='${libname}${release}.a $libname.a'
10411 soname_spec='${libname}${release}${shared_ext}$major'
10412 fi
10413 shlibpath_var=LIBPATH
10414 fi
10415 ;;
10417 amigaos*)
10418 case $host_cpu in
10419 powerpc)
10420 # Since July 2007 AmigaOS4 officially supports .so libraries.
10421 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10423 ;;
10424 m68k)
10425 library_names_spec='$libname.ixlibrary $libname.a'
10426 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10427 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'
10428 ;;
10429 esac
10430 ;;
10432 beos*)
10433 library_names_spec='${libname}${shared_ext}'
10434 dynamic_linker="$host_os ld.so"
10435 shlibpath_var=LIBRARY_PATH
10436 ;;
10438 bsdi[45]*)
10439 version_type=linux # correct to gnu/linux during the next big refactor
10440 need_version=no
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442 soname_spec='${libname}${release}${shared_ext}$major'
10443 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10444 shlibpath_var=LD_LIBRARY_PATH
10445 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10446 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10447 # the default ld.so.conf also contains /usr/contrib/lib and
10448 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10449 # libtool to hard-code these into programs
10450 ;;
10452 cygwin* | mingw* | pw32* | cegcc*)
10453 version_type=windows
10454 shrext_cmds=".dll"
10455 need_version=no
10456 need_lib_prefix=no
10458 case $GCC,$cc_basename in
10459 yes,*)
10460 # gcc
10461 library_names_spec='$libname.dll.a'
10462 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10463 postinstall_cmds='base_file=`basename \${file}`~
10464 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10465 dldir=$destdir/`dirname \$dlpath`~
10466 test -d \$dldir || mkdir -p \$dldir~
10467 $install_prog $dir/$dlname \$dldir/$dlname~
10468 chmod a+x \$dldir/$dlname~
10469 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10470 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10471 fi'
10472 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10473 dlpath=$dir/\$dldll~
10474 $RM \$dlpath'
10475 shlibpath_overrides_runpath=yes
10477 case $host_os in
10478 cygwin*)
10479 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10480 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10482 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10483 ;;
10484 mingw* | cegcc*)
10485 # MinGW DLLs use traditional 'lib' prefix
10486 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10487 ;;
10488 pw32*)
10489 # pw32 DLLs use 'pw' prefix rather than 'lib'
10490 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10491 ;;
10492 esac
10493 dynamic_linker='Win32 ld.exe'
10494 ;;
10496 *,cl*)
10497 # Native MSVC
10498 libname_spec='$name'
10499 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10500 library_names_spec='${libname}.dll.lib'
10502 case $build_os in
10503 mingw*)
10504 sys_lib_search_path_spec=
10505 lt_save_ifs=$IFS
10506 IFS=';'
10507 for lt_path in $LIB
10508 do
10509 IFS=$lt_save_ifs
10510 # Let DOS variable expansion print the short 8.3 style file name.
10511 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10512 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10513 done
10514 IFS=$lt_save_ifs
10515 # Convert to MSYS style.
10516 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10517 ;;
10518 cygwin*)
10519 # Convert to unix form, then to dos form, then back to unix form
10520 # but this time dos style (no spaces!) so that the unix form looks
10521 # like /cygdrive/c/PROGRA~1:/cygdr...
10522 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10523 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10524 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10525 ;;
10526 *)
10527 sys_lib_search_path_spec="$LIB"
10528 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10529 # It is most probably a Windows format PATH.
10530 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10531 else
10532 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10533 fi
10534 # FIXME: find the short name or the path components, as spaces are
10535 # common. (e.g. "Program Files" -> "PROGRA~1")
10536 ;;
10537 esac
10539 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10540 postinstall_cmds='base_file=`basename \${file}`~
10541 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10542 dldir=$destdir/`dirname \$dlpath`~
10543 test -d \$dldir || mkdir -p \$dldir~
10544 $install_prog $dir/$dlname \$dldir/$dlname'
10545 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10546 dlpath=$dir/\$dldll~
10547 $RM \$dlpath'
10548 shlibpath_overrides_runpath=yes
10549 dynamic_linker='Win32 link.exe'
10550 ;;
10552 *)
10553 # Assume MSVC wrapper
10554 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10555 dynamic_linker='Win32 ld.exe'
10556 ;;
10557 esac
10558 # FIXME: first we should search . and the directory the executable is in
10559 shlibpath_var=PATH
10560 ;;
10562 darwin* | rhapsody*)
10563 dynamic_linker="$host_os dyld"
10564 version_type=darwin
10565 need_lib_prefix=no
10566 need_version=no
10567 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10568 soname_spec='${libname}${release}${major}$shared_ext'
10569 shlibpath_overrides_runpath=yes
10570 shlibpath_var=DYLD_LIBRARY_PATH
10571 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10573 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10574 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10575 ;;
10577 dgux*)
10578 version_type=linux # correct to gnu/linux during the next big refactor
10579 need_lib_prefix=no
10580 need_version=no
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10582 soname_spec='${libname}${release}${shared_ext}$major'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 ;;
10586 freebsd* | dragonfly*)
10587 # DragonFly does not have aout. When/if they implement a new
10588 # versioning mechanism, adjust this.
10589 if test -x /usr/bin/objformat; then
10590 objformat=`/usr/bin/objformat`
10591 else
10592 case $host_os in
10593 freebsd[23].*) objformat=aout ;;
10594 *) objformat=elf ;;
10595 esac
10596 fi
10597 version_type=freebsd-$objformat
10598 case $version_type in
10599 freebsd-elf*)
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10601 need_version=no
10602 need_lib_prefix=no
10603 ;;
10604 freebsd-*)
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10606 need_version=yes
10607 ;;
10608 esac
10609 shlibpath_var=LD_LIBRARY_PATH
10610 case $host_os in
10611 freebsd2.*)
10612 shlibpath_overrides_runpath=yes
10613 ;;
10614 freebsd3.[01]* | freebsdelf3.[01]*)
10615 shlibpath_overrides_runpath=yes
10616 hardcode_into_libs=yes
10617 ;;
10618 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10619 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10620 shlibpath_overrides_runpath=no
10621 hardcode_into_libs=yes
10622 ;;
10623 *) # from 4.6 on, and DragonFly
10624 shlibpath_overrides_runpath=yes
10625 hardcode_into_libs=yes
10626 ;;
10627 esac
10628 ;;
10630 haiku*)
10631 version_type=linux # correct to gnu/linux during the next big refactor
10632 need_lib_prefix=no
10633 need_version=no
10634 dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
10638 shlibpath_overrides_runpath=yes
10639 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10640 hardcode_into_libs=yes
10641 ;;
10643 hpux9* | hpux10* | hpux11*)
10644 # Give a soname corresponding to the major version so that dld.sl refuses to
10645 # link against other versions.
10646 version_type=sunos
10647 need_lib_prefix=no
10648 need_version=no
10649 case $host_cpu in
10650 ia64*)
10651 shrext_cmds='.so'
10652 hardcode_into_libs=yes
10653 dynamic_linker="$host_os dld.so"
10654 shlibpath_var=LD_LIBRARY_PATH
10655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10657 soname_spec='${libname}${release}${shared_ext}$major'
10658 if test "X$HPUX_IA64_MODE" = X32; then
10659 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10660 else
10661 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10662 fi
10663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10664 ;;
10665 hppa*64*)
10666 shrext_cmds='.sl'
10667 hardcode_into_libs=yes
10668 dynamic_linker="$host_os dld.sl"
10669 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672 soname_spec='${libname}${release}${shared_ext}$major'
10673 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10675 ;;
10676 *)
10677 shrext_cmds='.sl'
10678 dynamic_linker="$host_os dld.sl"
10679 shlibpath_var=SHLIB_PATH
10680 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682 soname_spec='${libname}${release}${shared_ext}$major'
10683 ;;
10684 esac
10685 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10686 postinstall_cmds='chmod 555 $lib'
10687 # or fails outright, so override atomically:
10688 install_override_mode=555
10689 ;;
10691 interix[3-9]*)
10692 version_type=linux # correct to gnu/linux during the next big refactor
10693 need_lib_prefix=no
10694 need_version=no
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10696 soname_spec='${libname}${release}${shared_ext}$major'
10697 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10698 shlibpath_var=LD_LIBRARY_PATH
10699 shlibpath_overrides_runpath=no
10700 hardcode_into_libs=yes
10701 ;;
10703 irix5* | irix6* | nonstopux*)
10704 case $host_os in
10705 nonstopux*) version_type=nonstopux ;;
10706 *)
10707 if test "$lt_cv_prog_gnu_ld" = yes; then
10708 version_type=linux # correct to gnu/linux during the next big refactor
10709 else
10710 version_type=irix
10711 fi ;;
10712 esac
10713 need_lib_prefix=no
10714 need_version=no
10715 soname_spec='${libname}${release}${shared_ext}$major'
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10717 case $host_os in
10718 irix5* | nonstopux*)
10719 libsuff= shlibsuff=
10720 ;;
10721 *)
10722 case $LD in # libtool.m4 will add one of these switches to LD
10723 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10724 libsuff= shlibsuff= libmagic=32-bit;;
10725 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10726 libsuff=32 shlibsuff=N32 libmagic=N32;;
10727 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10728 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10729 *) libsuff= shlibsuff= libmagic=never-match;;
10730 esac
10731 ;;
10732 esac
10733 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10734 shlibpath_overrides_runpath=no
10735 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10736 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10737 hardcode_into_libs=yes
10738 ;;
10740 # No shared lib support for Linux oldld, aout, or coff.
10741 linux*oldld* | linux*aout* | linux*coff*)
10742 dynamic_linker=no
10743 ;;
10745 # This must be glibc/ELF.
10746 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10747 version_type=linux # correct to gnu/linux during the next big refactor
10748 need_lib_prefix=no
10749 need_version=no
10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10751 soname_spec='${libname}${release}${shared_ext}$major'
10752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10753 shlibpath_var=LD_LIBRARY_PATH
10754 shlibpath_overrides_runpath=no
10756 # Some binutils ld are patched to set DT_RUNPATH
10757 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10758 $as_echo_n "(cached) " >&6
10759 else
10760 lt_cv_shlibpath_overrides_runpath=no
10761 save_LDFLAGS=$LDFLAGS
10762 save_libdir=$libdir
10763 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10764 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766 /* end confdefs.h. */
10768 int
10769 main ()
10770 {
10772 ;
10773 return 0;
10774 }
10775 _ACEOF
10776 if ac_fn_c_try_link "$LINENO"; then :
10777 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10778 lt_cv_shlibpath_overrides_runpath=yes
10779 fi
10780 fi
10781 rm -f core conftest.err conftest.$ac_objext \
10782 conftest$ac_exeext conftest.$ac_ext
10783 LDFLAGS=$save_LDFLAGS
10784 libdir=$save_libdir
10786 fi
10788 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10790 # This implies no fast_install, which is unacceptable.
10791 # Some rework will be needed to allow for fast_install
10792 # before this can be enabled.
10793 hardcode_into_libs=yes
10795 # Append ld.so.conf contents to the search path
10796 if test -f /etc/ld.so.conf; then
10797 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' ' '`
10798 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10799 fi
10801 # We used to test for /lib/ld.so.1 and disable shared libraries on
10802 # powerpc, because MkLinux only supported shared libraries with the
10803 # GNU dynamic linker. Since this was broken with cross compilers,
10804 # most powerpc-linux boxes support dynamic linking these days and
10805 # people can always --disable-shared, the test was removed, and we
10806 # assume the GNU/Linux dynamic linker is in use.
10807 dynamic_linker='GNU/Linux ld.so'
10808 ;;
10810 netbsdelf*-gnu)
10811 version_type=linux
10812 need_lib_prefix=no
10813 need_version=no
10814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10815 soname_spec='${libname}${release}${shared_ext}$major'
10816 shlibpath_var=LD_LIBRARY_PATH
10817 shlibpath_overrides_runpath=no
10818 hardcode_into_libs=yes
10819 dynamic_linker='NetBSD ld.elf_so'
10820 ;;
10822 netbsd*)
10823 version_type=sunos
10824 need_lib_prefix=no
10825 need_version=no
10826 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10829 dynamic_linker='NetBSD (a.out) ld.so'
10830 else
10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10832 soname_spec='${libname}${release}${shared_ext}$major'
10833 dynamic_linker='NetBSD ld.elf_so'
10834 fi
10835 shlibpath_var=LD_LIBRARY_PATH
10836 shlibpath_overrides_runpath=yes
10837 hardcode_into_libs=yes
10838 ;;
10840 newsos6)
10841 version_type=linux # correct to gnu/linux during the next big refactor
10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10843 shlibpath_var=LD_LIBRARY_PATH
10844 shlibpath_overrides_runpath=yes
10845 ;;
10847 *nto* | *qnx*)
10848 version_type=qnx
10849 need_lib_prefix=no
10850 need_version=no
10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10852 soname_spec='${libname}${release}${shared_ext}$major'
10853 shlibpath_var=LD_LIBRARY_PATH
10854 shlibpath_overrides_runpath=no
10855 hardcode_into_libs=yes
10856 dynamic_linker='ldqnx.so'
10857 ;;
10859 openbsd*)
10860 version_type=sunos
10861 sys_lib_dlsearch_path_spec="/usr/lib"
10862 need_lib_prefix=no
10863 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10864 case $host_os in
10865 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10866 *) need_version=no ;;
10867 esac
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10869 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10870 shlibpath_var=LD_LIBRARY_PATH
10871 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10872 case $host_os in
10873 openbsd2.[89] | openbsd2.[89].*)
10874 shlibpath_overrides_runpath=no
10875 ;;
10876 *)
10877 shlibpath_overrides_runpath=yes
10878 ;;
10879 esac
10880 else
10881 shlibpath_overrides_runpath=yes
10882 fi
10883 ;;
10885 os2*)
10886 libname_spec='$name'
10887 shrext_cmds=".dll"
10888 need_lib_prefix=no
10889 library_names_spec='$libname${shared_ext} $libname.a'
10890 dynamic_linker='OS/2 ld.exe'
10891 shlibpath_var=LIBPATH
10892 ;;
10894 osf3* | osf4* | osf5*)
10895 version_type=osf
10896 need_lib_prefix=no
10897 need_version=no
10898 soname_spec='${libname}${release}${shared_ext}$major'
10899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10900 shlibpath_var=LD_LIBRARY_PATH
10901 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10902 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10903 ;;
10905 rdos*)
10906 dynamic_linker=no
10907 ;;
10909 solaris*)
10910 version_type=linux # correct to gnu/linux during the next big refactor
10911 need_lib_prefix=no
10912 need_version=no
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914 soname_spec='${libname}${release}${shared_ext}$major'
10915 shlibpath_var=LD_LIBRARY_PATH
10916 shlibpath_overrides_runpath=yes
10917 hardcode_into_libs=yes
10918 # ldd complains unless libraries are executable
10919 postinstall_cmds='chmod +x $lib'
10920 ;;
10922 sunos4*)
10923 version_type=sunos
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10925 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10926 shlibpath_var=LD_LIBRARY_PATH
10927 shlibpath_overrides_runpath=yes
10928 if test "$with_gnu_ld" = yes; then
10929 need_lib_prefix=no
10930 fi
10931 need_version=yes
10932 ;;
10934 sysv4 | sysv4.3*)
10935 version_type=linux # correct to gnu/linux during the next big refactor
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937 soname_spec='${libname}${release}${shared_ext}$major'
10938 shlibpath_var=LD_LIBRARY_PATH
10939 case $host_vendor in
10940 sni)
10941 shlibpath_overrides_runpath=no
10942 need_lib_prefix=no
10943 runpath_var=LD_RUN_PATH
10944 ;;
10945 siemens)
10946 need_lib_prefix=no
10947 ;;
10948 motorola)
10949 need_lib_prefix=no
10950 need_version=no
10951 shlibpath_overrides_runpath=no
10952 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10953 ;;
10954 esac
10955 ;;
10957 sysv4*MP*)
10958 if test -d /usr/nec ;then
10959 version_type=linux # correct to gnu/linux during the next big refactor
10960 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10961 soname_spec='$libname${shared_ext}.$major'
10962 shlibpath_var=LD_LIBRARY_PATH
10963 fi
10964 ;;
10966 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10967 version_type=freebsd-elf
10968 need_lib_prefix=no
10969 need_version=no
10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10971 soname_spec='${libname}${release}${shared_ext}$major'
10972 shlibpath_var=LD_LIBRARY_PATH
10973 shlibpath_overrides_runpath=yes
10974 hardcode_into_libs=yes
10975 if test "$with_gnu_ld" = yes; then
10976 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10977 else
10978 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10979 case $host_os in
10980 sco3.2v5*)
10981 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10982 ;;
10983 esac
10984 fi
10985 sys_lib_dlsearch_path_spec='/usr/lib'
10986 ;;
10988 tpf*)
10989 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10990 version_type=linux # correct to gnu/linux during the next big refactor
10991 need_lib_prefix=no
10992 need_version=no
10993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994 shlibpath_var=LD_LIBRARY_PATH
10995 shlibpath_overrides_runpath=no
10996 hardcode_into_libs=yes
10997 ;;
10999 uts4*)
11000 version_type=linux # correct to gnu/linux during the next big refactor
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11002 soname_spec='${libname}${release}${shared_ext}$major'
11003 shlibpath_var=LD_LIBRARY_PATH
11004 ;;
11006 *)
11007 dynamic_linker=no
11008 ;;
11009 esac
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11011 $as_echo "$dynamic_linker" >&6; }
11012 test "$dynamic_linker" = no && can_build_shared=no
11014 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11015 if test "$GCC" = yes; then
11016 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11017 fi
11019 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11020 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11021 fi
11022 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11023 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11024 fi
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11118 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11119 hardcode_action=
11120 if test -n "$hardcode_libdir_flag_spec" ||
11121 test -n "$runpath_var" ||
11122 test "X$hardcode_automatic" = "Xyes" ; then
11124 # We can hardcode non-existent directories.
11125 if test "$hardcode_direct" != no &&
11126 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11127 # have to relink, otherwise we might link with an installed library
11128 # when we should be linking with a yet-to-be-installed one
11129 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11130 test "$hardcode_minus_L" != no; then
11131 # Linking always hardcodes the temporary library directory.
11132 hardcode_action=relink
11133 else
11134 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11135 hardcode_action=immediate
11136 fi
11137 else
11138 # We cannot hardcode anything, or else we can only hardcode existing
11139 # directories.
11140 hardcode_action=unsupported
11141 fi
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11143 $as_echo "$hardcode_action" >&6; }
11145 if test "$hardcode_action" = relink ||
11146 test "$inherit_rpath" = yes; then
11147 # Fast installation is not supported
11148 enable_fast_install=no
11149 elif test "$shlibpath_overrides_runpath" = yes ||
11150 test "$enable_shared" = no; then
11151 # Fast installation is not necessary
11152 enable_fast_install=needless
11153 fi
11160 if test "x$enable_dlopen" != xyes; then
11161 enable_dlopen=unknown
11162 enable_dlopen_self=unknown
11163 enable_dlopen_self_static=unknown
11164 else
11165 lt_cv_dlopen=no
11166 lt_cv_dlopen_libs=
11168 case $host_os in
11169 beos*)
11170 lt_cv_dlopen="load_add_on"
11171 lt_cv_dlopen_libs=
11172 lt_cv_dlopen_self=yes
11173 ;;
11175 mingw* | pw32* | cegcc*)
11176 lt_cv_dlopen="LoadLibrary"
11177 lt_cv_dlopen_libs=
11178 ;;
11180 cygwin*)
11181 lt_cv_dlopen="dlopen"
11182 lt_cv_dlopen_libs=
11183 ;;
11185 darwin*)
11186 # if libdl is installed we need to link against it
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11188 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11189 if ${ac_cv_lib_dl_dlopen+:} false; then :
11190 $as_echo_n "(cached) " >&6
11191 else
11192 ac_check_lib_save_LIBS=$LIBS
11193 LIBS="-ldl $LIBS"
11194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11195 /* end confdefs.h. */
11197 /* Override any GCC internal prototype to avoid an error.
11198 Use char because int might match the return type of a GCC
11199 builtin and then its argument prototype would still apply. */
11200 #ifdef __cplusplus
11201 extern "C"
11202 #endif
11203 char dlopen ();
11204 int
11205 main ()
11206 {
11207 return dlopen ();
11208 ;
11209 return 0;
11210 }
11211 _ACEOF
11212 if ac_fn_c_try_link "$LINENO"; then :
11213 ac_cv_lib_dl_dlopen=yes
11214 else
11215 ac_cv_lib_dl_dlopen=no
11216 fi
11217 rm -f core conftest.err conftest.$ac_objext \
11218 conftest$ac_exeext conftest.$ac_ext
11219 LIBS=$ac_check_lib_save_LIBS
11220 fi
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11222 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11223 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11224 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11225 else
11227 lt_cv_dlopen="dyld"
11228 lt_cv_dlopen_libs=
11229 lt_cv_dlopen_self=yes
11231 fi
11233 ;;
11235 *)
11236 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11237 if test "x$ac_cv_func_shl_load" = xyes; then :
11238 lt_cv_dlopen="shl_load"
11239 else
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11241 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11242 if ${ac_cv_lib_dld_shl_load+:} false; then :
11243 $as_echo_n "(cached) " >&6
11244 else
11245 ac_check_lib_save_LIBS=$LIBS
11246 LIBS="-ldld $LIBS"
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11250 /* Override any GCC internal prototype to avoid an error.
11251 Use char because int might match the return type of a GCC
11252 builtin and then its argument prototype would still apply. */
11253 #ifdef __cplusplus
11254 extern "C"
11255 #endif
11256 char shl_load ();
11257 int
11258 main ()
11259 {
11260 return shl_load ();
11261 ;
11262 return 0;
11263 }
11264 _ACEOF
11265 if ac_fn_c_try_link "$LINENO"; then :
11266 ac_cv_lib_dld_shl_load=yes
11267 else
11268 ac_cv_lib_dld_shl_load=no
11269 fi
11270 rm -f core conftest.err conftest.$ac_objext \
11271 conftest$ac_exeext conftest.$ac_ext
11272 LIBS=$ac_check_lib_save_LIBS
11273 fi
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11275 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11276 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11277 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11278 else
11279 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11280 if test "x$ac_cv_func_dlopen" = xyes; then :
11281 lt_cv_dlopen="dlopen"
11282 else
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11284 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11285 if ${ac_cv_lib_dl_dlopen+:} false; then :
11286 $as_echo_n "(cached) " >&6
11287 else
11288 ac_check_lib_save_LIBS=$LIBS
11289 LIBS="-ldl $LIBS"
11290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11291 /* end confdefs.h. */
11293 /* Override any GCC internal prototype to avoid an error.
11294 Use char because int might match the return type of a GCC
11295 builtin and then its argument prototype would still apply. */
11296 #ifdef __cplusplus
11297 extern "C"
11298 #endif
11299 char dlopen ();
11300 int
11301 main ()
11302 {
11303 return dlopen ();
11304 ;
11305 return 0;
11306 }
11307 _ACEOF
11308 if ac_fn_c_try_link "$LINENO"; then :
11309 ac_cv_lib_dl_dlopen=yes
11310 else
11311 ac_cv_lib_dl_dlopen=no
11312 fi
11313 rm -f core conftest.err conftest.$ac_objext \
11314 conftest$ac_exeext conftest.$ac_ext
11315 LIBS=$ac_check_lib_save_LIBS
11316 fi
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11318 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11319 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11320 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11321 else
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11323 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11324 if ${ac_cv_lib_svld_dlopen+:} false; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 ac_check_lib_save_LIBS=$LIBS
11328 LIBS="-lsvld $LIBS"
11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330 /* end confdefs.h. */
11332 /* Override any GCC internal prototype to avoid an error.
11333 Use char because int might match the return type of a GCC
11334 builtin and then its argument prototype would still apply. */
11335 #ifdef __cplusplus
11336 extern "C"
11337 #endif
11338 char dlopen ();
11339 int
11340 main ()
11341 {
11342 return dlopen ();
11343 ;
11344 return 0;
11345 }
11346 _ACEOF
11347 if ac_fn_c_try_link "$LINENO"; then :
11348 ac_cv_lib_svld_dlopen=yes
11349 else
11350 ac_cv_lib_svld_dlopen=no
11351 fi
11352 rm -f core conftest.err conftest.$ac_objext \
11353 conftest$ac_exeext conftest.$ac_ext
11354 LIBS=$ac_check_lib_save_LIBS
11355 fi
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11357 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11358 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11359 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11360 else
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11362 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11363 if ${ac_cv_lib_dld_dld_link+:} false; then :
11364 $as_echo_n "(cached) " >&6
11365 else
11366 ac_check_lib_save_LIBS=$LIBS
11367 LIBS="-ldld $LIBS"
11368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11369 /* end confdefs.h. */
11371 /* Override any GCC internal prototype to avoid an error.
11372 Use char because int might match the return type of a GCC
11373 builtin and then its argument prototype would still apply. */
11374 #ifdef __cplusplus
11375 extern "C"
11376 #endif
11377 char dld_link ();
11378 int
11379 main ()
11380 {
11381 return dld_link ();
11382 ;
11383 return 0;
11384 }
11385 _ACEOF
11386 if ac_fn_c_try_link "$LINENO"; then :
11387 ac_cv_lib_dld_dld_link=yes
11388 else
11389 ac_cv_lib_dld_dld_link=no
11390 fi
11391 rm -f core conftest.err conftest.$ac_objext \
11392 conftest$ac_exeext conftest.$ac_ext
11393 LIBS=$ac_check_lib_save_LIBS
11394 fi
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11396 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11397 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11398 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11399 fi
11402 fi
11405 fi
11408 fi
11411 fi
11414 fi
11416 ;;
11417 esac
11419 if test "x$lt_cv_dlopen" != xno; then
11420 enable_dlopen=yes
11421 else
11422 enable_dlopen=no
11423 fi
11425 case $lt_cv_dlopen in
11426 dlopen)
11427 save_CPPFLAGS="$CPPFLAGS"
11428 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11430 save_LDFLAGS="$LDFLAGS"
11431 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11433 save_LIBS="$LIBS"
11434 LIBS="$lt_cv_dlopen_libs $LIBS"
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11437 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11438 if ${lt_cv_dlopen_self+:} false; then :
11439 $as_echo_n "(cached) " >&6
11440 else
11441 if test "$cross_compiling" = yes; then :
11442 lt_cv_dlopen_self=cross
11443 else
11444 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11445 lt_status=$lt_dlunknown
11446 cat > conftest.$ac_ext <<_LT_EOF
11447 #line $LINENO "configure"
11448 #include "confdefs.h"
11450 #if HAVE_DLFCN_H
11451 #include <dlfcn.h>
11452 #endif
11454 #include <stdio.h>
11456 #ifdef RTLD_GLOBAL
11457 # define LT_DLGLOBAL RTLD_GLOBAL
11458 #else
11459 # ifdef DL_GLOBAL
11460 # define LT_DLGLOBAL DL_GLOBAL
11461 # else
11462 # define LT_DLGLOBAL 0
11463 # endif
11464 #endif
11466 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11467 find out it does not work in some platform. */
11468 #ifndef LT_DLLAZY_OR_NOW
11469 # ifdef RTLD_LAZY
11470 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11471 # else
11472 # ifdef DL_LAZY
11473 # define LT_DLLAZY_OR_NOW DL_LAZY
11474 # else
11475 # ifdef RTLD_NOW
11476 # define LT_DLLAZY_OR_NOW RTLD_NOW
11477 # else
11478 # ifdef DL_NOW
11479 # define LT_DLLAZY_OR_NOW DL_NOW
11480 # else
11481 # define LT_DLLAZY_OR_NOW 0
11482 # endif
11483 # endif
11484 # endif
11485 # endif
11486 #endif
11488 /* When -fvisbility=hidden is used, assume the code has been annotated
11489 correspondingly for the symbols needed. */
11490 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11491 int fnord () __attribute__((visibility("default")));
11492 #endif
11494 int fnord () { return 42; }
11495 int main ()
11496 {
11497 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11498 int status = $lt_dlunknown;
11500 if (self)
11501 {
11502 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11503 else
11504 {
11505 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11506 else puts (dlerror ());
11507 }
11508 /* dlclose (self); */
11509 }
11510 else
11511 puts (dlerror ());
11513 return status;
11514 }
11515 _LT_EOF
11516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11517 (eval $ac_link) 2>&5
11518 ac_status=$?
11519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11520 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11521 (./conftest; exit; ) >&5 2>/dev/null
11522 lt_status=$?
11523 case x$lt_status in
11524 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11525 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11526 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11527 esac
11528 else :
11529 # compilation failed
11530 lt_cv_dlopen_self=no
11531 fi
11532 fi
11533 rm -fr conftest*
11536 fi
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11538 $as_echo "$lt_cv_dlopen_self" >&6; }
11540 if test "x$lt_cv_dlopen_self" = xyes; then
11541 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11543 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11544 if ${lt_cv_dlopen_self_static+:} false; then :
11545 $as_echo_n "(cached) " >&6
11546 else
11547 if test "$cross_compiling" = yes; then :
11548 lt_cv_dlopen_self_static=cross
11549 else
11550 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11551 lt_status=$lt_dlunknown
11552 cat > conftest.$ac_ext <<_LT_EOF
11553 #line $LINENO "configure"
11554 #include "confdefs.h"
11556 #if HAVE_DLFCN_H
11557 #include <dlfcn.h>
11558 #endif
11560 #include <stdio.h>
11562 #ifdef RTLD_GLOBAL
11563 # define LT_DLGLOBAL RTLD_GLOBAL
11564 #else
11565 # ifdef DL_GLOBAL
11566 # define LT_DLGLOBAL DL_GLOBAL
11567 # else
11568 # define LT_DLGLOBAL 0
11569 # endif
11570 #endif
11572 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11573 find out it does not work in some platform. */
11574 #ifndef LT_DLLAZY_OR_NOW
11575 # ifdef RTLD_LAZY
11576 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11577 # else
11578 # ifdef DL_LAZY
11579 # define LT_DLLAZY_OR_NOW DL_LAZY
11580 # else
11581 # ifdef RTLD_NOW
11582 # define LT_DLLAZY_OR_NOW RTLD_NOW
11583 # else
11584 # ifdef DL_NOW
11585 # define LT_DLLAZY_OR_NOW DL_NOW
11586 # else
11587 # define LT_DLLAZY_OR_NOW 0
11588 # endif
11589 # endif
11590 # endif
11591 # endif
11592 #endif
11594 /* When -fvisbility=hidden is used, assume the code has been annotated
11595 correspondingly for the symbols needed. */
11596 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11597 int fnord () __attribute__((visibility("default")));
11598 #endif
11600 int fnord () { return 42; }
11601 int main ()
11602 {
11603 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11604 int status = $lt_dlunknown;
11606 if (self)
11607 {
11608 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11609 else
11610 {
11611 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11612 else puts (dlerror ());
11613 }
11614 /* dlclose (self); */
11615 }
11616 else
11617 puts (dlerror ());
11619 return status;
11620 }
11621 _LT_EOF
11622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11623 (eval $ac_link) 2>&5
11624 ac_status=$?
11625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11626 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11627 (./conftest; exit; ) >&5 2>/dev/null
11628 lt_status=$?
11629 case x$lt_status in
11630 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11631 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11632 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11633 esac
11634 else :
11635 # compilation failed
11636 lt_cv_dlopen_self_static=no
11637 fi
11638 fi
11639 rm -fr conftest*
11642 fi
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11644 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11645 fi
11647 CPPFLAGS="$save_CPPFLAGS"
11648 LDFLAGS="$save_LDFLAGS"
11649 LIBS="$save_LIBS"
11650 ;;
11651 esac
11653 case $lt_cv_dlopen_self in
11654 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11655 *) enable_dlopen_self=unknown ;;
11656 esac
11658 case $lt_cv_dlopen_self_static in
11659 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11660 *) enable_dlopen_self_static=unknown ;;
11661 esac
11662 fi
11680 striplib=
11681 old_striplib=
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11683 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11684 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11685 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11686 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11688 $as_echo "yes" >&6; }
11689 else
11690 # FIXME - insert some real tests, host_os isn't really good enough
11691 case $host_os in
11692 darwin*)
11693 if test -n "$STRIP" ; then
11694 striplib="$STRIP -x"
11695 old_striplib="$STRIP -S"
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11697 $as_echo "yes" >&6; }
11698 else
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11700 $as_echo "no" >&6; }
11701 fi
11702 ;;
11703 *)
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11705 $as_echo "no" >&6; }
11706 ;;
11707 esac
11708 fi
11721 # Report which library types will actually be built
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11723 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11725 $as_echo "$can_build_shared" >&6; }
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11728 $as_echo_n "checking whether to build shared libraries... " >&6; }
11729 test "$can_build_shared" = "no" && enable_shared=no
11731 # On AIX, shared libraries and static libraries use the same namespace, and
11732 # are all built from PIC.
11733 case $host_os in
11734 aix3*)
11735 test "$enable_shared" = yes && enable_static=no
11736 if test -n "$RANLIB"; then
11737 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11738 postinstall_cmds='$RANLIB $lib'
11739 fi
11740 ;;
11742 aix[4-9]*)
11743 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11744 test "$enable_shared" = yes && enable_static=no
11745 fi
11746 ;;
11747 esac
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11749 $as_echo "$enable_shared" >&6; }
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11752 $as_echo_n "checking whether to build static libraries... " >&6; }
11753 # Make sure either enable_shared or enable_static is yes.
11754 test "$enable_shared" = yes || enable_static=yes
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11756 $as_echo "$enable_static" >&6; }
11761 fi
11762 ac_ext=c
11763 ac_cpp='$CPP $CPPFLAGS'
11764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11768 CC="$lt_save_CC"
11784 ac_config_commands="$ac_config_commands libtool"
11789 # Only expand once:
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11793 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11794 if ${libltdl_cv_shlibext+:} false; then :
11795 $as_echo_n "(cached) " >&6
11796 else
11798 module=yes
11799 eval libltdl_cv_shlibext=$shrext_cmds
11800 module=no
11801 eval libltdl_cv_shrext=$shrext_cmds
11803 fi
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11805 $as_echo "$libltdl_cv_shlibext" >&6; }
11806 if test -n "$libltdl_cv_shlibext"; then
11808 cat >>confdefs.h <<_ACEOF
11809 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11810 _ACEOF
11812 fi
11813 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
11815 cat >>confdefs.h <<_ACEOF
11816 #define LT_SHARED_EXT "$libltdl_cv_shrext"
11817 _ACEOF
11819 fi
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11822 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11823 if ${lt_cv_module_path_var+:} false; then :
11824 $as_echo_n "(cached) " >&6
11825 else
11826 lt_cv_module_path_var="$shlibpath_var"
11827 fi
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11829 $as_echo "$lt_cv_module_path_var" >&6; }
11830 if test -n "$lt_cv_module_path_var"; then
11832 cat >>confdefs.h <<_ACEOF
11833 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11834 _ACEOF
11836 fi
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11839 $as_echo_n "checking for the default library search path... " >&6; }
11840 if ${lt_cv_sys_dlsearch_path+:} false; then :
11841 $as_echo_n "(cached) " >&6
11842 else
11843 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11844 fi
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11846 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11847 if test -n "$lt_cv_sys_dlsearch_path"; then
11848 sys_dlsearch_path=
11849 for dir in $lt_cv_sys_dlsearch_path; do
11850 if test -z "$sys_dlsearch_path"; then
11851 sys_dlsearch_path="$dir"
11852 else
11853 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11854 fi
11855 done
11857 cat >>confdefs.h <<_ACEOF
11858 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11859 _ACEOF
11861 fi
11864 LT_DLLOADERS=
11867 ac_ext=c
11868 ac_cpp='$CPP $CPPFLAGS'
11869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11874 LIBADD_DLOPEN=
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11876 $as_echo_n "checking for library containing dlopen... " >&6; }
11877 if ${ac_cv_search_dlopen+:} false; then :
11878 $as_echo_n "(cached) " >&6
11879 else
11880 ac_func_search_save_LIBS=$LIBS
11881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882 /* end confdefs.h. */
11884 /* Override any GCC internal prototype to avoid an error.
11885 Use char because int might match the return type of a GCC
11886 builtin and then its argument prototype would still apply. */
11887 #ifdef __cplusplus
11888 extern "C"
11889 #endif
11890 char dlopen ();
11891 int
11892 main ()
11893 {
11894 return dlopen ();
11895 ;
11896 return 0;
11897 }
11898 _ACEOF
11899 for ac_lib in '' dl; do
11900 if test -z "$ac_lib"; then
11901 ac_res="none required"
11902 else
11903 ac_res=-l$ac_lib
11904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11905 fi
11906 if ac_fn_c_try_link "$LINENO"; then :
11907 ac_cv_search_dlopen=$ac_res
11908 fi
11909 rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext
11911 if ${ac_cv_search_dlopen+:} false; then :
11912 break
11913 fi
11914 done
11915 if ${ac_cv_search_dlopen+:} false; then :
11917 else
11918 ac_cv_search_dlopen=no
11919 fi
11920 rm conftest.$ac_ext
11921 LIBS=$ac_func_search_save_LIBS
11922 fi
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11924 $as_echo "$ac_cv_search_dlopen" >&6; }
11925 ac_res=$ac_cv_search_dlopen
11926 if test "$ac_res" != no; then :
11927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11929 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11931 if test "$ac_cv_search_dlopen" != "none required" ; then
11932 LIBADD_DLOPEN="-ldl"
11933 fi
11934 libltdl_cv_lib_dl_dlopen="yes"
11935 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11936 else
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11939 #if HAVE_DLFCN_H
11940 # include <dlfcn.h>
11941 #endif
11943 int
11944 main ()
11945 {
11946 dlopen(0, 0);
11947 ;
11948 return 0;
11949 }
11950 _ACEOF
11951 if ac_fn_c_try_link "$LINENO"; then :
11953 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11955 libltdl_cv_func_dlopen="yes"
11956 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11957 else
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11959 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11960 if ${ac_cv_lib_svld_dlopen+:} false; then :
11961 $as_echo_n "(cached) " >&6
11962 else
11963 ac_check_lib_save_LIBS=$LIBS
11964 LIBS="-lsvld $LIBS"
11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11968 /* Override any GCC internal prototype to avoid an error.
11969 Use char because int might match the return type of a GCC
11970 builtin and then its argument prototype would still apply. */
11971 #ifdef __cplusplus
11972 extern "C"
11973 #endif
11974 char dlopen ();
11975 int
11976 main ()
11977 {
11978 return dlopen ();
11979 ;
11980 return 0;
11981 }
11982 _ACEOF
11983 if ac_fn_c_try_link "$LINENO"; then :
11984 ac_cv_lib_svld_dlopen=yes
11985 else
11986 ac_cv_lib_svld_dlopen=no
11987 fi
11988 rm -f core conftest.err conftest.$ac_objext \
11989 conftest$ac_exeext conftest.$ac_ext
11990 LIBS=$ac_check_lib_save_LIBS
11991 fi
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11993 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11994 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11996 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11998 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11999 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12000 fi
12002 fi
12003 rm -f core conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12005 fi
12007 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12008 then
12009 lt_save_LIBS="$LIBS"
12010 LIBS="$LIBS $LIBADD_DLOPEN"
12011 for ac_func in dlerror
12012 do :
12013 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12014 if test "x$ac_cv_func_dlerror" = xyes; then :
12015 cat >>confdefs.h <<_ACEOF
12016 #define HAVE_DLERROR 1
12017 _ACEOF
12019 fi
12020 done
12022 LIBS="$lt_save_LIBS"
12023 fi
12026 LIBADD_SHL_LOAD=
12027 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12028 if test "x$ac_cv_func_shl_load" = xyes; then :
12030 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12032 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12033 else
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12035 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12036 if ${ac_cv_lib_dld_shl_load+:} false; then :
12037 $as_echo_n "(cached) " >&6
12038 else
12039 ac_check_lib_save_LIBS=$LIBS
12040 LIBS="-ldld $LIBS"
12041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12044 /* Override any GCC internal prototype to avoid an error.
12045 Use char because int might match the return type of a GCC
12046 builtin and then its argument prototype would still apply. */
12047 #ifdef __cplusplus
12048 extern "C"
12049 #endif
12050 char shl_load ();
12051 int
12052 main ()
12053 {
12054 return shl_load ();
12055 ;
12056 return 0;
12057 }
12058 _ACEOF
12059 if ac_fn_c_try_link "$LINENO"; then :
12060 ac_cv_lib_dld_shl_load=yes
12061 else
12062 ac_cv_lib_dld_shl_load=no
12063 fi
12064 rm -f core conftest.err conftest.$ac_objext \
12065 conftest$ac_exeext conftest.$ac_ext
12066 LIBS=$ac_check_lib_save_LIBS
12067 fi
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12069 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12070 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12072 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12074 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12075 LIBADD_SHL_LOAD="-ldld"
12076 fi
12078 fi
12082 case $host_os in
12083 darwin[1567].*)
12084 # We only want this for pre-Mac OS X 10.4.
12085 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12086 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12088 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12090 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12091 fi
12093 ;;
12094 beos*)
12095 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12096 ;;
12097 cygwin* | mingw* | os2* | pw32*)
12098 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12099 "
12100 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12101 ac_have_decl=1
12102 else
12103 ac_have_decl=0
12104 fi
12106 cat >>confdefs.h <<_ACEOF
12107 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12108 _ACEOF
12110 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12111 ;;
12112 esac
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12115 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12116 if ${ac_cv_lib_dld_dld_link+:} false; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 ac_check_lib_save_LIBS=$LIBS
12120 LIBS="-ldld $LIBS"
12121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h. */
12124 /* Override any GCC internal prototype to avoid an error.
12125 Use char because int might match the return type of a GCC
12126 builtin and then its argument prototype would still apply. */
12127 #ifdef __cplusplus
12128 extern "C"
12129 #endif
12130 char dld_link ();
12131 int
12132 main ()
12133 {
12134 return dld_link ();
12135 ;
12136 return 0;
12137 }
12138 _ACEOF
12139 if ac_fn_c_try_link "$LINENO"; then :
12140 ac_cv_lib_dld_dld_link=yes
12141 else
12142 ac_cv_lib_dld_dld_link=no
12143 fi
12144 rm -f core conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
12146 LIBS=$ac_check_lib_save_LIBS
12147 fi
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12149 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12150 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12152 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12154 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12155 fi
12160 LT_DLPREOPEN=
12161 if test -n "$LT_DLLOADERS"
12162 then
12163 for lt_loader in $LT_DLLOADERS; do
12164 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12165 done
12167 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12169 fi
12172 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12175 ac_ext=c
12176 ac_cpp='$CPP $CPPFLAGS'
12177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12183 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12184 if ${lt_cv_sys_symbol_underscore+:} false; then :
12185 $as_echo_n "(cached) " >&6
12186 else
12187 lt_cv_sys_symbol_underscore=no
12188 cat > conftest.$ac_ext <<_LT_EOF
12189 void nm_test_func(){}
12190 int main(){nm_test_func;return 0;}
12191 _LT_EOF
12192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12193 (eval $ac_compile) 2>&5
12194 ac_status=$?
12195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12196 test $ac_status = 0; }; then
12197 # Now try to grab the symbols.
12198 ac_nlist=conftest.nm
12199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12200 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12201 ac_status=$?
12202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12203 test $ac_status = 0; } && test -s "$ac_nlist"; then
12204 # See whether the symbols have a leading underscore.
12205 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12206 lt_cv_sys_symbol_underscore=yes
12207 else
12208 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12209 :
12210 else
12211 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12212 fi
12213 fi
12214 else
12215 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12216 fi
12217 else
12218 echo "configure: failed program was:" >&5
12219 cat conftest.c >&5
12220 fi
12221 rm -rf conftest*
12223 fi
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12225 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12226 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12229 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12230 if test x"$libltdl_cv_func_dlopen" = xyes ||
12231 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12233 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12234 if ${libltdl_cv_need_uscore+:} false; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 libltdl_cv_need_uscore=unknown
12238 save_LIBS="$LIBS"
12239 LIBS="$LIBS $LIBADD_DLOPEN"
12240 if test "$cross_compiling" = yes; then :
12241 libltdl_cv_need_uscore=cross
12242 else
12243 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12244 lt_status=$lt_dlunknown
12245 cat > conftest.$ac_ext <<_LT_EOF
12246 #line $LINENO "configure"
12247 #include "confdefs.h"
12249 #if HAVE_DLFCN_H
12250 #include <dlfcn.h>
12251 #endif
12253 #include <stdio.h>
12255 #ifdef RTLD_GLOBAL
12256 # define LT_DLGLOBAL RTLD_GLOBAL
12257 #else
12258 # ifdef DL_GLOBAL
12259 # define LT_DLGLOBAL DL_GLOBAL
12260 # else
12261 # define LT_DLGLOBAL 0
12262 # endif
12263 #endif
12265 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12266 find out it does not work in some platform. */
12267 #ifndef LT_DLLAZY_OR_NOW
12268 # ifdef RTLD_LAZY
12269 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12270 # else
12271 # ifdef DL_LAZY
12272 # define LT_DLLAZY_OR_NOW DL_LAZY
12273 # else
12274 # ifdef RTLD_NOW
12275 # define LT_DLLAZY_OR_NOW RTLD_NOW
12276 # else
12277 # ifdef DL_NOW
12278 # define LT_DLLAZY_OR_NOW DL_NOW
12279 # else
12280 # define LT_DLLAZY_OR_NOW 0
12281 # endif
12282 # endif
12283 # endif
12284 # endif
12285 #endif
12287 /* When -fvisbility=hidden is used, assume the code has been annotated
12288 correspondingly for the symbols needed. */
12289 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12290 int fnord () __attribute__((visibility("default")));
12291 #endif
12293 int fnord () { return 42; }
12294 int main ()
12295 {
12296 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12297 int status = $lt_dlunknown;
12299 if (self)
12300 {
12301 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12302 else
12303 {
12304 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12305 else puts (dlerror ());
12306 }
12307 /* dlclose (self); */
12308 }
12309 else
12310 puts (dlerror ());
12312 return status;
12313 }
12314 _LT_EOF
12315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12316 (eval $ac_link) 2>&5
12317 ac_status=$?
12318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12319 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12320 (./conftest; exit; ) >&5 2>/dev/null
12321 lt_status=$?
12322 case x$lt_status in
12323 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12324 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12325 x$lt_dlunknown|x*) ;;
12326 esac
12327 else :
12328 # compilation failed
12330 fi
12331 fi
12332 rm -fr conftest*
12334 LIBS="$save_LIBS"
12336 fi
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12338 $as_echo "$libltdl_cv_need_uscore" >&6; }
12339 fi
12340 fi
12342 if test x"$libltdl_cv_need_uscore" = xyes; then
12344 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12346 fi
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12349 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12350 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12351 $as_echo_n "(cached) " >&6
12352 else
12353 # PORTME does your system automatically load deplibs for dlopen?
12354 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12355 # For now, we just catch OSes we know something about -- in the
12356 # future, we'll try test this programmatically.
12357 lt_cv_sys_dlopen_deplibs=unknown
12358 case $host_os in
12359 aix3*|aix4.1.*|aix4.2.*)
12360 # Unknown whether this is true for these versions of AIX, but
12361 # we want this `case' here to explicitly catch those versions.
12362 lt_cv_sys_dlopen_deplibs=unknown
12363 ;;
12364 aix[4-9]*)
12365 lt_cv_sys_dlopen_deplibs=yes
12366 ;;
12367 amigaos*)
12368 case $host_cpu in
12369 powerpc)
12370 lt_cv_sys_dlopen_deplibs=no
12371 ;;
12372 esac
12373 ;;
12374 darwin*)
12375 # Assuming the user has installed a libdl from somewhere, this is true
12376 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12377 lt_cv_sys_dlopen_deplibs=yes
12378 ;;
12379 freebsd* | dragonfly*)
12380 lt_cv_sys_dlopen_deplibs=yes
12381 ;;
12382 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12383 # GNU and its variants, using gnu ld.so (Glibc)
12384 lt_cv_sys_dlopen_deplibs=yes
12385 ;;
12386 hpux10*|hpux11*)
12387 lt_cv_sys_dlopen_deplibs=yes
12388 ;;
12389 interix*)
12390 lt_cv_sys_dlopen_deplibs=yes
12391 ;;
12392 irix[12345]*|irix6.[01]*)
12393 # Catch all versions of IRIX before 6.2, and indicate that we don't
12394 # know how it worked for any of those versions.
12395 lt_cv_sys_dlopen_deplibs=unknown
12396 ;;
12397 irix*)
12398 # The case above catches anything before 6.2, and it's known that
12399 # at 6.2 and later dlopen does load deplibs.
12400 lt_cv_sys_dlopen_deplibs=yes
12401 ;;
12402 netbsd* | netbsdelf*-gnu)
12403 lt_cv_sys_dlopen_deplibs=yes
12404 ;;
12405 openbsd*)
12406 lt_cv_sys_dlopen_deplibs=yes
12407 ;;
12408 osf[1234]*)
12409 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12410 # it did *not* use an RPATH in a shared library to find objects the
12411 # library depends on, so we explicitly say `no'.
12412 lt_cv_sys_dlopen_deplibs=no
12413 ;;
12414 osf5.0|osf5.0a|osf5.1)
12415 # dlopen *does* load deplibs and with the right loader patch applied
12416 # it even uses RPATH in a shared library to search for shared objects
12417 # that the library depends on, but there's no easy way to know if that
12418 # patch is installed. Since this is the case, all we can really
12419 # say is unknown -- it depends on the patch being installed. If
12420 # it is, this changes to `yes'. Without it, it would be `no'.
12421 lt_cv_sys_dlopen_deplibs=unknown
12422 ;;
12423 osf*)
12424 # the two cases above should catch all versions of osf <= 5.1. Read
12425 # the comments above for what we know about them.
12426 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12427 # is used to find them so we can finally say `yes'.
12428 lt_cv_sys_dlopen_deplibs=yes
12429 ;;
12430 qnx*)
12431 lt_cv_sys_dlopen_deplibs=yes
12432 ;;
12433 solaris*)
12434 lt_cv_sys_dlopen_deplibs=yes
12435 ;;
12436 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12437 libltdl_cv_sys_dlopen_deplibs=yes
12438 ;;
12439 esac
12441 fi
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12443 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12444 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12446 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12448 fi
12450 :
12452 for ac_header in argz.h
12453 do :
12454 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12455 "
12456 if test "x$ac_cv_header_argz_h" = xyes; then :
12457 cat >>confdefs.h <<_ACEOF
12458 #define HAVE_ARGZ_H 1
12459 _ACEOF
12461 fi
12463 done
12466 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12467 # include <argz.h>
12468 #endif
12469 "
12470 if test "x$ac_cv_type_error_t" = xyes; then :
12472 cat >>confdefs.h <<_ACEOF
12473 #define HAVE_ERROR_T 1
12474 _ACEOF
12477 else
12479 $as_echo "#define error_t int" >>confdefs.h
12482 $as_echo "#define __error_t_defined 1" >>confdefs.h
12484 fi
12487 ARGZ_H=
12488 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12489 argz_next argz_stringify
12490 do :
12491 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12492 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12493 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12494 cat >>confdefs.h <<_ACEOF
12495 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12496 _ACEOF
12498 else
12499 ARGZ_H=argz.h; case " $LIBOBJS " in
12500 *" argz.$ac_objext "* ) ;;
12501 *) LIBOBJS="$LIBOBJS argz.$ac_objext"
12502 ;;
12503 esac
12505 fi
12506 done
12509 if test -z "$ARGZ_H"; then :
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12511 $as_echo_n "checking if argz actually works... " >&6; }
12512 if ${lt_cv_sys_argz_works+:} false; then :
12513 $as_echo_n "(cached) " >&6
12514 else
12515 case $host_os in #(
12516 *cygwin*)
12517 lt_cv_sys_argz_works=no
12518 if test "$cross_compiling" != no; then
12519 lt_cv_sys_argz_works="guessing no"
12520 else
12521 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12522 save_IFS=$IFS
12523 IFS=-.
12524 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12525 IFS=$save_IFS
12526 lt_os_major=${2-0}
12527 lt_os_minor=${3-0}
12528 lt_os_micro=${4-0}
12529 if test "$lt_os_major" -gt 1 \
12530 || { test "$lt_os_major" -eq 1 \
12531 && { test "$lt_os_minor" -gt 5 \
12532 || { test "$lt_os_minor" -eq 5 \
12533 && test "$lt_os_micro" -gt 24; }; }; }; then
12534 lt_cv_sys_argz_works=yes
12535 fi
12536 fi
12537 ;; #(
12538 *) lt_cv_sys_argz_works=yes ;;
12539 esac
12540 fi
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12542 $as_echo "$lt_cv_sys_argz_works" >&6; }
12543 if test "$lt_cv_sys_argz_works" = yes; then :
12545 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12547 else
12548 ARGZ_H=argz.h
12549 case " $LIBOBJS " in
12550 *" argz.$ac_objext "* ) ;;
12551 *) LIBOBJS="$LIBOBJS argz.$ac_objext"
12552 ;;
12553 esac
12555 fi
12556 fi
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12561 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12562 if ${libltdl_cv_preloaded_symbols+:} false; then :
12563 $as_echo_n "(cached) " >&6
12564 else
12565 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12566 libltdl_cv_preloaded_symbols=yes
12567 else
12568 libltdl_cv_preloaded_symbols=no
12569 fi
12571 fi
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12573 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12574 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12576 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12578 fi
12582 # Check whether --enable-ltdl-install was given.
12583 if test "${enable_ltdl_install+set}" = set; then :
12584 enableval=$enable_ltdl_install;
12585 fi
12588 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12589 *yes*) ;;
12590 *) enable_ltdl_convenience=yes ;;
12591 esac
12593 if test x"${enable_ltdl_install-no}" != xno; then
12594 INSTALL_LTDL_TRUE=
12595 INSTALL_LTDL_FALSE='#'
12596 else
12597 INSTALL_LTDL_TRUE='#'
12598 INSTALL_LTDL_FALSE=
12599 fi
12601 if test x"${enable_ltdl_convenience-no}" != xno; then
12602 CONVENIENCE_LTDL_TRUE=
12603 CONVENIENCE_LTDL_FALSE='#'
12604 else
12605 CONVENIENCE_LTDL_TRUE='#'
12606 CONVENIENCE_LTDL_FALSE=
12607 fi
12614 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12615 # the user used. This is so that ltdl.h can pick up the parent projects
12616 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12617 # definitions required by ltdl.c.
12618 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12622 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12623 do :
12624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12625 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12626 "
12627 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12628 cat >>confdefs.h <<_ACEOF
12629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12630 _ACEOF
12632 fi
12634 done
12637 for ac_func in closedir opendir readdir
12638 do :
12639 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12640 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12641 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12642 cat >>confdefs.h <<_ACEOF
12643 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12644 _ACEOF
12646 else
12647 case " $LIBOBJS " in
12648 *" lt__dirent.$ac_objext "* ) ;;
12649 *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext"
12650 ;;
12651 esac
12653 fi
12654 done
12656 for ac_func in strlcat strlcpy
12657 do :
12658 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12659 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12660 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12661 cat >>confdefs.h <<_ACEOF
12662 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12663 _ACEOF
12665 else
12666 case " $LIBOBJS " in
12667 *" lt__strl.$ac_objext "* ) ;;
12668 *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext"
12669 ;;
12670 esac
12672 fi
12673 done
12677 cat >>confdefs.h <<_ACEOF
12678 #define LT_LIBEXT "$libext"
12679 _ACEOF
12682 name=
12683 eval "lt_libprefix=\"$libname_spec\""
12685 cat >>confdefs.h <<_ACEOF
12686 #define LT_LIBPREFIX "$lt_libprefix"
12687 _ACEOF
12690 name=ltdl
12691 eval "LTDLOPEN=\"$libname_spec\""
12696 ## -------- ##
12697 ## Outputs. ##
12698 ## -------- ##
12699 ac_config_files="$ac_config_files Makefile"
12701 cat >confcache <<\_ACEOF
12702 # This file is a shell script that caches the results of configure
12703 # tests run on this system so they can be shared between configure
12704 # scripts and configure runs, see configure's option --config-cache.
12705 # It is not useful on other systems. If it contains results you don't
12706 # want to keep, you may remove or edit it.
12707 #
12708 # config.status only pays attention to the cache file if you give it
12709 # the --recheck option to rerun configure.
12710 #
12711 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12712 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12713 # following values.
12715 _ACEOF
12717 # The following way of writing the cache mishandles newlines in values,
12718 # but we know of no workaround that is simple, portable, and efficient.
12719 # So, we kill variables containing newlines.
12720 # Ultrix sh set writes to stderr and can't be redirected directly,
12721 # and sets the high bit in the cache file unless we assign to the vars.
12722 (
12723 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12724 eval ac_val=\$$ac_var
12725 case $ac_val in #(
12726 *${as_nl}*)
12727 case $ac_var in #(
12728 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12729 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12730 esac
12731 case $ac_var in #(
12732 _ | IFS | as_nl) ;; #(
12733 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12734 *) { eval $ac_var=; unset $ac_var;} ;;
12735 esac ;;
12736 esac
12737 done
12739 (set) 2>&1 |
12740 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12741 *${as_nl}ac_space=\ *)
12742 # `set' does not quote correctly, so add quotes: double-quote
12743 # substitution turns \\\\ into \\, and sed turns \\ into \.
12744 sed -n \
12745 "s/'/'\\\\''/g;
12746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12747 ;; #(
12748 *)
12749 # `set' quotes correctly as required by POSIX, so do not add quotes.
12750 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12751 ;;
12752 esac |
12753 sort
12754 ) |
12755 sed '
12756 /^ac_cv_env_/b end
12757 t clear
12758 :clear
12759 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12760 t end
12761 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12762 :end' >>confcache
12763 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12764 if test -w "$cache_file"; then
12765 if test "x$cache_file" != "x/dev/null"; then
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12767 $as_echo "$as_me: updating cache $cache_file" >&6;}
12768 if test ! -f "$cache_file" || test -h "$cache_file"; then
12769 cat confcache >"$cache_file"
12770 else
12771 case $cache_file in #(
12772 */* | ?:*)
12773 mv -f confcache "$cache_file"$$ &&
12774 mv -f "$cache_file"$$ "$cache_file" ;; #(
12775 *)
12776 mv -f confcache "$cache_file" ;;
12777 esac
12778 fi
12779 fi
12780 else
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12782 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12783 fi
12784 fi
12785 rm -f confcache
12787 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12788 # Let make expand exec_prefix.
12789 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12791 DEFS=-DHAVE_CONFIG_H
12793 ac_libobjs=
12794 ac_ltlibobjs=
12795 U=
12796 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12797 # 1. Remove the extension, and $U if already installed.
12798 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12799 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12800 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12801 # will be set to the directory where LIBOBJS objects are built.
12802 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12803 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12804 done
12805 LIBOBJS=$ac_libobjs
12807 LTLIBOBJS=$ac_ltlibobjs
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12811 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12812 if test -n "$am_sleep_pid"; then
12813 # Hide warnings about reused PIDs.
12814 wait $am_sleep_pid 2>/dev/null
12815 fi
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12817 $as_echo "done" >&6; }
12818 if test -n "$EXEEXT"; then
12819 am__EXEEXT_TRUE=
12820 am__EXEEXT_FALSE='#'
12821 else
12822 am__EXEEXT_TRUE='#'
12823 am__EXEEXT_FALSE=
12824 fi
12826 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12827 as_fn_error $? "conditional \"AMDEP\" was never defined.
12828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12829 fi
12830 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12831 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12833 fi
12834 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
12835 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
12836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12837 fi
12838 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
12839 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
12840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12841 fi
12842 LT_CONFIG_H=config.h
12844 : "${CONFIG_STATUS=./config.status}"
12845 ac_write_fail=0
12846 ac_clean_files_save=$ac_clean_files
12847 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12849 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12850 as_write_fail=0
12851 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12852 #! $SHELL
12853 # Generated by $as_me.
12854 # Run this file to recreate the current configuration.
12855 # Compiler output produced by configure, useful for debugging
12856 # configure, is in config.log if it exists.
12858 debug=false
12859 ac_cs_recheck=false
12860 ac_cs_silent=false
12862 SHELL=\${CONFIG_SHELL-$SHELL}
12863 export SHELL
12864 _ASEOF
12865 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12866 ## -------------------- ##
12867 ## M4sh Initialization. ##
12868 ## -------------------- ##
12870 # Be more Bourne compatible
12871 DUALCASE=1; export DUALCASE # for MKS sh
12872 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12873 emulate sh
12874 NULLCMD=:
12875 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12876 # is contrary to our usage. Disable this feature.
12877 alias -g '${1+"$@"}'='"$@"'
12878 setopt NO_GLOB_SUBST
12879 else
12880 case `(set -o) 2>/dev/null` in #(
12881 *posix*) :
12882 set -o posix ;; #(
12883 *) :
12884 ;;
12885 esac
12886 fi
12889 as_nl='
12890 '
12891 export as_nl
12892 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12893 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12894 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12895 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12896 # Prefer a ksh shell builtin over an external printf program on Solaris,
12897 # but without wasting forks for bash or zsh.
12898 if test -z "$BASH_VERSION$ZSH_VERSION" \
12899 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12900 as_echo='print -r --'
12901 as_echo_n='print -rn --'
12902 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12903 as_echo='printf %s\n'
12904 as_echo_n='printf %s'
12905 else
12906 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12907 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12908 as_echo_n='/usr/ucb/echo -n'
12909 else
12910 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12911 as_echo_n_body='eval
12912 arg=$1;
12913 case $arg in #(
12914 *"$as_nl"*)
12915 expr "X$arg" : "X\\(.*\\)$as_nl";
12916 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12917 esac;
12918 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12919 '
12920 export as_echo_n_body
12921 as_echo_n='sh -c $as_echo_n_body as_echo'
12922 fi
12923 export as_echo_body
12924 as_echo='sh -c $as_echo_body as_echo'
12925 fi
12927 # The user is always right.
12928 if test "${PATH_SEPARATOR+set}" != set; then
12929 PATH_SEPARATOR=:
12930 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12931 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12932 PATH_SEPARATOR=';'
12933 }
12934 fi
12937 # IFS
12938 # We need space, tab and new line, in precisely that order. Quoting is
12939 # there to prevent editors from complaining about space-tab.
12940 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12941 # splitting by setting IFS to empty value.)
12942 IFS=" "" $as_nl"
12944 # Find who we are. Look in the path if we contain no directory separator.
12945 as_myself=
12946 case $0 in #((
12947 *[\\/]* ) as_myself=$0 ;;
12948 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12950 do
12951 IFS=$as_save_IFS
12952 test -z "$as_dir" && as_dir=.
12953 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12954 done
12955 IFS=$as_save_IFS
12957 ;;
12958 esac
12959 # We did not find ourselves, most probably we were run as `sh COMMAND'
12960 # in which case we are not to be found in the path.
12961 if test "x$as_myself" = x; then
12962 as_myself=$0
12963 fi
12964 if test ! -f "$as_myself"; then
12965 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12966 exit 1
12967 fi
12969 # Unset variables that we do not need and which cause bugs (e.g. in
12970 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12971 # suppresses any "Segmentation fault" message there. '((' could
12972 # trigger a bug in pdksh 5.2.14.
12973 for as_var in BASH_ENV ENV MAIL MAILPATH
12974 do eval test x\${$as_var+set} = xset \
12975 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12976 done
12977 PS1='$ '
12978 PS2='> '
12979 PS4='+ '
12981 # NLS nuisances.
12982 LC_ALL=C
12983 export LC_ALL
12984 LANGUAGE=C
12985 export LANGUAGE
12987 # CDPATH.
12988 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12991 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12992 # ----------------------------------------
12993 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12994 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12995 # script with STATUS, using 1 if that was 0.
12996 as_fn_error ()
12997 {
12998 as_status=$1; test $as_status -eq 0 && as_status=1
12999 if test "$4"; then
13000 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13001 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13002 fi
13003 $as_echo "$as_me: error: $2" >&2
13004 as_fn_exit $as_status
13005 } # as_fn_error
13008 # as_fn_set_status STATUS
13009 # -----------------------
13010 # Set $? to STATUS, without forking.
13011 as_fn_set_status ()
13012 {
13013 return $1
13014 } # as_fn_set_status
13016 # as_fn_exit STATUS
13017 # -----------------
13018 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13019 as_fn_exit ()
13020 {
13021 set +e
13022 as_fn_set_status $1
13023 exit $1
13024 } # as_fn_exit
13026 # as_fn_unset VAR
13027 # ---------------
13028 # Portably unset VAR.
13029 as_fn_unset ()
13030 {
13031 { eval $1=; unset $1;}
13032 }
13033 as_unset=as_fn_unset
13034 # as_fn_append VAR VALUE
13035 # ----------------------
13036 # Append the text in VALUE to the end of the definition contained in VAR. Take
13037 # advantage of any shell optimizations that allow amortized linear growth over
13038 # repeated appends, instead of the typical quadratic growth present in naive
13039 # implementations.
13040 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13041 eval 'as_fn_append ()
13042 {
13043 eval $1+=\$2
13044 }'
13045 else
13046 as_fn_append ()
13047 {
13048 eval $1=\$$1\$2
13049 }
13050 fi # as_fn_append
13052 # as_fn_arith ARG...
13053 # ------------------
13054 # Perform arithmetic evaluation on the ARGs, and store the result in the
13055 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13056 # must be portable across $(()) and expr.
13057 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13058 eval 'as_fn_arith ()
13059 {
13060 as_val=$(( $* ))
13061 }'
13062 else
13063 as_fn_arith ()
13064 {
13065 as_val=`expr "$@" || test $? -eq 1`
13066 }
13067 fi # as_fn_arith
13070 if expr a : '\(a\)' >/dev/null 2>&1 &&
13071 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13072 as_expr=expr
13073 else
13074 as_expr=false
13075 fi
13077 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13078 as_basename=basename
13079 else
13080 as_basename=false
13081 fi
13083 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13084 as_dirname=dirname
13085 else
13086 as_dirname=false
13087 fi
13089 as_me=`$as_basename -- "$0" ||
13090 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13091 X"$0" : 'X\(//\)$' \| \
13092 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13093 $as_echo X/"$0" |
13094 sed '/^.*\/\([^/][^/]*\)\/*$/{
13095 s//\1/
13096 q
13097 }
13098 /^X\/\(\/\/\)$/{
13099 s//\1/
13100 q
13101 }
13102 /^X\/\(\/\).*/{
13103 s//\1/
13104 q
13105 }
13106 s/.*/./; q'`
13108 # Avoid depending upon Character Ranges.
13109 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13110 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13111 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13112 as_cr_digits='0123456789'
13113 as_cr_alnum=$as_cr_Letters$as_cr_digits
13115 ECHO_C= ECHO_N= ECHO_T=
13116 case `echo -n x` in #(((((
13117 -n*)
13118 case `echo 'xy\c'` in
13119 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13120 xy) ECHO_C='\c';;
13121 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13122 ECHO_T=' ';;
13123 esac;;
13124 *)
13125 ECHO_N='-n';;
13126 esac
13128 rm -f conf$$ conf$$.exe conf$$.file
13129 if test -d conf$$.dir; then
13130 rm -f conf$$.dir/conf$$.file
13131 else
13132 rm -f conf$$.dir
13133 mkdir conf$$.dir 2>/dev/null
13134 fi
13135 if (echo >conf$$.file) 2>/dev/null; then
13136 if ln -s conf$$.file conf$$ 2>/dev/null; then
13137 as_ln_s='ln -s'
13138 # ... but there are two gotchas:
13139 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13140 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13141 # In both cases, we have to default to `cp -pR'.
13142 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13143 as_ln_s='cp -pR'
13144 elif ln conf$$.file conf$$ 2>/dev/null; then
13145 as_ln_s=ln
13146 else
13147 as_ln_s='cp -pR'
13148 fi
13149 else
13150 as_ln_s='cp -pR'
13151 fi
13152 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13153 rmdir conf$$.dir 2>/dev/null
13156 # as_fn_mkdir_p
13157 # -------------
13158 # Create "$as_dir" as a directory, including parents if necessary.
13159 as_fn_mkdir_p ()
13160 {
13162 case $as_dir in #(
13163 -*) as_dir=./$as_dir;;
13164 esac
13165 test -d "$as_dir" || eval $as_mkdir_p || {
13166 as_dirs=
13167 while :; do
13168 case $as_dir in #(
13169 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13170 *) as_qdir=$as_dir;;
13171 esac
13172 as_dirs="'$as_qdir' $as_dirs"
13173 as_dir=`$as_dirname -- "$as_dir" ||
13174 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13175 X"$as_dir" : 'X\(//\)[^/]' \| \
13176 X"$as_dir" : 'X\(//\)$' \| \
13177 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13178 $as_echo X"$as_dir" |
13179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13180 s//\1/
13181 q
13182 }
13183 /^X\(\/\/\)[^/].*/{
13184 s//\1/
13185 q
13186 }
13187 /^X\(\/\/\)$/{
13188 s//\1/
13189 q
13190 }
13191 /^X\(\/\).*/{
13192 s//\1/
13193 q
13194 }
13195 s/.*/./; q'`
13196 test -d "$as_dir" && break
13197 done
13198 test -z "$as_dirs" || eval "mkdir $as_dirs"
13199 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13202 } # as_fn_mkdir_p
13203 if mkdir -p . 2>/dev/null; then
13204 as_mkdir_p='mkdir -p "$as_dir"'
13205 else
13206 test -d ./-p && rmdir ./-p
13207 as_mkdir_p=false
13208 fi
13211 # as_fn_executable_p FILE
13212 # -----------------------
13213 # Test if FILE is an executable regular file.
13214 as_fn_executable_p ()
13215 {
13216 test -f "$1" && test -x "$1"
13217 } # as_fn_executable_p
13218 as_test_x='test -x'
13219 as_executable_p=as_fn_executable_p
13221 # Sed expression to map a string onto a valid CPP name.
13222 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13224 # Sed expression to map a string onto a valid variable name.
13225 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13228 exec 6>&1
13229 ## ----------------------------------- ##
13230 ## Main body of $CONFIG_STATUS script. ##
13231 ## ----------------------------------- ##
13232 _ASEOF
13233 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13236 # Save the log message, to keep $0 and so on meaningful, and to
13237 # report actual input values of CONFIG_FILES etc. instead of their
13238 # values after options handling.
13239 ac_log="
13240 This file was extended by libltdl $as_me 2.4.2, which was
13241 generated by GNU Autoconf 2.69. Invocation command line was
13243 CONFIG_FILES = $CONFIG_FILES
13244 CONFIG_HEADERS = $CONFIG_HEADERS
13245 CONFIG_LINKS = $CONFIG_LINKS
13246 CONFIG_COMMANDS = $CONFIG_COMMANDS
13247 $ $0 $@
13249 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13250 "
13252 _ACEOF
13254 case $ac_config_files in *"
13255 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13256 esac
13258 case $ac_config_headers in *"
13259 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13260 esac
13263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13264 # Files that config.status was made for.
13265 config_files="$ac_config_files"
13266 config_headers="$ac_config_headers"
13267 config_commands="$ac_config_commands"
13269 _ACEOF
13271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13272 ac_cs_usage="\
13273 \`$as_me' instantiates files and other configuration actions
13274 from templates according to the current configuration. Unless the files
13275 and actions are specified as TAGs, all are instantiated by default.
13277 Usage: $0 [OPTION]... [TAG]...
13279 -h, --help print this help, then exit
13280 -V, --version print version number and configuration settings, then exit
13281 --config print configuration, then exit
13282 -q, --quiet, --silent
13283 do not print progress messages
13284 -d, --debug don't remove temporary files
13285 --recheck update $as_me by reconfiguring in the same conditions
13286 --file=FILE[:TEMPLATE]
13287 instantiate the configuration file FILE
13288 --header=FILE[:TEMPLATE]
13289 instantiate the configuration header FILE
13291 Configuration files:
13292 $config_files
13294 Configuration headers:
13295 $config_headers
13297 Configuration commands:
13298 $config_commands
13300 Report bugs to <bug-libtool@gnu.org>."
13302 _ACEOF
13303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13304 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13305 ac_cs_version="\\
13306 libltdl config.status 2.4.2
13307 configured by $0, generated by GNU Autoconf 2.69,
13308 with options \\"\$ac_cs_config\\"
13310 Copyright (C) 2012 Free Software Foundation, Inc.
13311 This config.status script is free software; the Free Software Foundation
13312 gives unlimited permission to copy, distribute and modify it."
13314 ac_pwd='$ac_pwd'
13315 srcdir='$srcdir'
13316 INSTALL='$INSTALL'
13317 MKDIR_P='$MKDIR_P'
13318 AWK='$AWK'
13319 test -n "\$AWK" || AWK=awk
13320 _ACEOF
13322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13323 # The default lists apply if the user does not specify any file.
13324 ac_need_defaults=:
13325 while test $# != 0
13326 do
13327 case $1 in
13328 --*=?*)
13329 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13330 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13331 ac_shift=:
13332 ;;
13333 --*=)
13334 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13335 ac_optarg=
13336 ac_shift=:
13337 ;;
13338 *)
13339 ac_option=$1
13340 ac_optarg=$2
13341 ac_shift=shift
13342 ;;
13343 esac
13345 case $ac_option in
13346 # Handling of the options.
13347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13348 ac_cs_recheck=: ;;
13349 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13350 $as_echo "$ac_cs_version"; exit ;;
13351 --config | --confi | --conf | --con | --co | --c )
13352 $as_echo "$ac_cs_config"; exit ;;
13353 --debug | --debu | --deb | --de | --d | -d )
13354 debug=: ;;
13355 --file | --fil | --fi | --f )
13356 $ac_shift
13357 case $ac_optarg in
13358 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13359 '') as_fn_error $? "missing file argument" ;;
13360 esac
13361 as_fn_append CONFIG_FILES " '$ac_optarg'"
13362 ac_need_defaults=false;;
13363 --header | --heade | --head | --hea )
13364 $ac_shift
13365 case $ac_optarg in
13366 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13367 esac
13368 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13369 ac_need_defaults=false;;
13370 --he | --h)
13371 # Conflict between --help and --header
13372 as_fn_error $? "ambiguous option: \`$1'
13373 Try \`$0 --help' for more information.";;
13374 --help | --hel | -h )
13375 $as_echo "$ac_cs_usage"; exit ;;
13376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13377 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13378 ac_cs_silent=: ;;
13380 # This is an error.
13381 -*) as_fn_error $? "unrecognized option: \`$1'
13382 Try \`$0 --help' for more information." ;;
13384 *) as_fn_append ac_config_targets " $1"
13385 ac_need_defaults=false ;;
13387 esac
13388 shift
13389 done
13391 ac_configure_extra_args=
13393 if $ac_cs_silent; then
13394 exec 6>/dev/null
13395 ac_configure_extra_args="$ac_configure_extra_args --silent"
13396 fi
13398 _ACEOF
13399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13400 if \$ac_cs_recheck; then
13401 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13402 shift
13403 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13404 CONFIG_SHELL='$SHELL'
13405 export CONFIG_SHELL
13406 exec "\$@"
13407 fi
13409 _ACEOF
13410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13411 exec 5>>config.log
13412 {
13413 echo
13414 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13415 ## Running $as_me. ##
13416 _ASBOX
13417 $as_echo "$ac_log"
13418 } >&5
13420 _ACEOF
13421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13422 #
13423 # INIT-COMMANDS
13424 #
13425 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13428 # The HP-UX ksh and POSIX shell print the target directory to stdout
13429 # if CDPATH is set.
13430 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13432 sed_quote_subst='$sed_quote_subst'
13433 double_quote_subst='$double_quote_subst'
13434 delay_variable_subst='$delay_variable_subst'
13435 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13436 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13437 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13438 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13439 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13440 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13441 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13442 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13443 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13444 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13445 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13446 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13447 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13448 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13449 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13450 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13451 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13452 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13453 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13454 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13455 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13456 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13457 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13458 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13459 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13460 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13461 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13462 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13463 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13464 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13465 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13466 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13467 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13468 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13469 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13470 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13471 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13472 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13473 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13474 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13475 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13476 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13477 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13478 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13479 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13480 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13481 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13482 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13483 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13484 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13485 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13486 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13487 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13488 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13489 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13490 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13491 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13492 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"`'
13493 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13494 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13495 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13496 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13497 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13498 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13499 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13500 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13501 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13502 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13503 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13504 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13505 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13506 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13507 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13508 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13509 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13510 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13511 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13512 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13513 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13514 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13515 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13516 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13517 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13518 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13519 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13520 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13521 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13522 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13523 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13524 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13525 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13526 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13527 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13528 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13529 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13530 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13531 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13532 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13533 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13534 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13535 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13536 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13537 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13538 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13539 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13540 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13541 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13542 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13543 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13544 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13545 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13546 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13547 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13548 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13549 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13550 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13551 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13552 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13553 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13554 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13555 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13556 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13557 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13558 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13559 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13560 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13561 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13562 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13563 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13564 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13565 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13567 LTCC='$LTCC'
13568 LTCFLAGS='$LTCFLAGS'
13569 compiler='$compiler_DEFAULT'
13571 # A function that is used when there is no print builtin or printf.
13572 func_fallback_echo ()
13573 {
13574 eval 'cat <<_LTECHO_EOF
13575 \$1
13576 _LTECHO_EOF'
13577 }
13579 # Quote evaled strings.
13580 for var in AS \
13581 DLLTOOL \
13582 OBJDUMP \
13583 SHELL \
13584 ECHO \
13585 PATH_SEPARATOR \
13586 SED \
13587 GREP \
13588 EGREP \
13589 FGREP \
13590 LD \
13591 NM \
13592 LN_S \
13593 lt_SP2NL \
13594 lt_NL2SP \
13595 reload_flag \
13596 deplibs_check_method \
13597 file_magic_cmd \
13598 file_magic_glob \
13599 want_nocaseglob \
13600 sharedlib_from_linklib_cmd \
13601 AR \
13602 AR_FLAGS \
13603 archiver_list_spec \
13604 STRIP \
13605 RANLIB \
13606 CC \
13607 CFLAGS \
13608 compiler \
13609 lt_cv_sys_global_symbol_pipe \
13610 lt_cv_sys_global_symbol_to_cdecl \
13611 lt_cv_sys_global_symbol_to_c_name_address \
13612 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13613 nm_file_list_spec \
13614 lt_prog_compiler_no_builtin_flag \
13615 lt_prog_compiler_pic \
13616 lt_prog_compiler_wl \
13617 lt_prog_compiler_static \
13618 lt_cv_prog_compiler_c_o \
13619 need_locks \
13620 MANIFEST_TOOL \
13621 DSYMUTIL \
13622 NMEDIT \
13623 LIPO \
13624 OTOOL \
13625 OTOOL64 \
13626 shrext_cmds \
13627 export_dynamic_flag_spec \
13628 whole_archive_flag_spec \
13629 compiler_needs_object \
13630 with_gnu_ld \
13631 allow_undefined_flag \
13632 no_undefined_flag \
13633 hardcode_libdir_flag_spec \
13634 hardcode_libdir_separator \
13635 exclude_expsyms \
13636 include_expsyms \
13637 file_list_spec \
13638 variables_saved_for_relink \
13639 libname_spec \
13640 library_names_spec \
13641 soname_spec \
13642 install_override_mode \
13643 finish_eval \
13644 old_striplib \
13645 striplib; do
13646 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13647 *[\\\\\\\`\\"\\\$]*)
13648 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13649 ;;
13650 *)
13651 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13652 ;;
13653 esac
13654 done
13656 # Double-quote double-evaled strings.
13657 for var in reload_cmds \
13658 old_postinstall_cmds \
13659 old_postuninstall_cmds \
13660 old_archive_cmds \
13661 extract_expsyms_cmds \
13662 old_archive_from_new_cmds \
13663 old_archive_from_expsyms_cmds \
13664 archive_cmds \
13665 archive_expsym_cmds \
13666 module_cmds \
13667 module_expsym_cmds \
13668 export_symbols_cmds \
13669 prelink_cmds \
13670 postlink_cmds \
13671 postinstall_cmds \
13672 postuninstall_cmds \
13673 finish_cmds \
13674 sys_lib_search_path_spec \
13675 sys_lib_dlsearch_path_spec; do
13676 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13677 *[\\\\\\\`\\"\\\$]*)
13678 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13679 ;;
13680 *)
13681 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13682 ;;
13683 esac
13684 done
13686 ac_aux_dir='$ac_aux_dir'
13687 xsi_shell='$xsi_shell'
13688 lt_shell_append='$lt_shell_append'
13690 # See if we are running on zsh, and set the options which allow our
13691 # commands through without removal of \ escapes INIT.
13692 if test -n "\${ZSH_VERSION+set}" ; then
13693 setopt NO_GLOB_SUBST
13694 fi
13697 PACKAGE='$PACKAGE'
13698 VERSION='$VERSION'
13699 TIMESTAMP='$TIMESTAMP'
13700 RM='$RM'
13701 ofile='$ofile'
13706 _ACEOF
13708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13710 # Handling of arguments.
13711 for ac_config_target in $ac_config_targets
13712 do
13713 case $ac_config_target in
13714 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
13715 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13716 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13717 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13719 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13720 esac
13721 done
13724 # If the user did not use the arguments to specify the items to instantiate,
13725 # then the envvar interface is used. Set only those that are not.
13726 # We use the long form for the default assignment because of an extremely
13727 # bizarre bug on SunOS 4.1.3.
13728 if $ac_need_defaults; then
13729 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13730 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13731 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13732 fi
13734 # Have a temporary directory for convenience. Make it in the build tree
13735 # simply because there is no reason against having it here, and in addition,
13736 # creating and moving files from /tmp can sometimes cause problems.
13737 # Hook for its removal unless debugging.
13738 # Note that there is a small window in which the directory will not be cleaned:
13739 # after its creation but before its name has been assigned to `$tmp'.
13740 $debug ||
13741 {
13742 tmp= ac_tmp=
13743 trap 'exit_status=$?
13744 : "${ac_tmp:=$tmp}"
13745 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13746 ' 0
13747 trap 'as_fn_exit 1' 1 2 13 15
13748 }
13749 # Create a (secure) tmp directory for tmp files.
13751 {
13752 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13753 test -d "$tmp"
13754 } ||
13755 {
13756 tmp=./conf$$-$RANDOM
13757 (umask 077 && mkdir "$tmp")
13758 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13759 ac_tmp=$tmp
13761 # Set up the scripts for CONFIG_FILES section.
13762 # No need to generate them if there are no CONFIG_FILES.
13763 # This happens for instance with `./config.status config.h'.
13764 if test -n "$CONFIG_FILES"; then
13767 ac_cr=`echo X | tr X '\015'`
13768 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13769 # But we know of no other shell where ac_cr would be empty at this
13770 # point, so we can use a bashism as a fallback.
13771 if test "x$ac_cr" = x; then
13772 eval ac_cr=\$\'\\r\'
13773 fi
13774 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13775 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13776 ac_cs_awk_cr='\\r'
13777 else
13778 ac_cs_awk_cr=$ac_cr
13779 fi
13781 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13782 _ACEOF
13785 {
13786 echo "cat >conf$$subs.awk <<_ACEOF" &&
13787 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13788 echo "_ACEOF"
13789 } >conf$$subs.sh ||
13790 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13791 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13792 ac_delim='%!_!# '
13793 for ac_last_try in false false false false false :; do
13794 . ./conf$$subs.sh ||
13795 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13797 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13798 if test $ac_delim_n = $ac_delim_num; then
13799 break
13800 elif $ac_last_try; then
13801 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13802 else
13803 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13804 fi
13805 done
13806 rm -f conf$$subs.sh
13808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13809 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13810 _ACEOF
13811 sed -n '
13812 h
13813 s/^/S["/; s/!.*/"]=/
13814 p
13815 g
13816 s/^[^!]*!//
13817 :repl
13818 t repl
13819 s/'"$ac_delim"'$//
13820 t delim
13821 :nl
13822 h
13823 s/\(.\{148\}\)..*/\1/
13824 t more1
13825 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13826 p
13827 n
13828 b repl
13829 :more1
13830 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13831 p
13832 g
13833 s/.\{148\}//
13834 t nl
13835 :delim
13836 h
13837 s/\(.\{148\}\)..*/\1/
13838 t more2
13839 s/["\\]/\\&/g; s/^/"/; s/$/"/
13840 p
13841 b
13842 :more2
13843 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13844 p
13845 g
13846 s/.\{148\}//
13847 t delim
13848 ' <conf$$subs.awk | sed '
13849 /^[^""]/{
13850 N
13851 s/\n//
13852 }
13853 ' >>$CONFIG_STATUS || ac_write_fail=1
13854 rm -f conf$$subs.awk
13855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13856 _ACAWK
13857 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13858 for (key in S) S_is_set[key] = 1
13859 FS = "\a"
13861 }
13862 {
13863 line = $ 0
13864 nfields = split(line, field, "@")
13865 substed = 0
13866 len = length(field[1])
13867 for (i = 2; i < nfields; i++) {
13868 key = field[i]
13869 keylen = length(key)
13870 if (S_is_set[key]) {
13871 value = S[key]
13872 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13873 len += length(value) + length(field[++i])
13874 substed = 1
13875 } else
13876 len += 1 + keylen
13877 }
13879 print line
13880 }
13882 _ACAWK
13883 _ACEOF
13884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13885 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13886 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13887 else
13888 cat
13889 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13890 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13891 _ACEOF
13893 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13894 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13895 # trailing colons and then remove the whole line if VPATH becomes empty
13896 # (actually we leave an empty line to preserve line numbers).
13897 if test "x$srcdir" = x.; then
13898 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13899 h
13900 s///
13901 s/^/:/
13902 s/[ ]*$/:/
13903 s/:\$(srcdir):/:/g
13904 s/:\${srcdir}:/:/g
13905 s/:@srcdir@:/:/g
13906 s/^:*//
13907 s/:*$//
13908 x
13909 s/\(=[ ]*\).*/\1/
13910 G
13911 s/\n//
13912 s/^[^=]*=[ ]*$//
13913 }'
13914 fi
13916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13917 fi # test -n "$CONFIG_FILES"
13919 # Set up the scripts for CONFIG_HEADERS section.
13920 # No need to generate them if there are no CONFIG_HEADERS.
13921 # This happens for instance with `./config.status Makefile'.
13922 if test -n "$CONFIG_HEADERS"; then
13923 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13924 BEGIN {
13925 _ACEOF
13927 # Transform confdefs.h into an awk script `defines.awk', embedded as
13928 # here-document in config.status, that substitutes the proper values into
13929 # config.h.in to produce config.h.
13931 # Create a delimiter string that does not exist in confdefs.h, to ease
13932 # handling of long lines.
13933 ac_delim='%!_!# '
13934 for ac_last_try in false false :; do
13935 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13936 if test -z "$ac_tt"; then
13937 break
13938 elif $ac_last_try; then
13939 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13940 else
13941 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13942 fi
13943 done
13945 # For the awk script, D is an array of macro values keyed by name,
13946 # likewise P contains macro parameters if any. Preserve backslash
13947 # newline sequences.
13949 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13950 sed -n '
13951 s/.\{148\}/&'"$ac_delim"'/g
13952 t rset
13953 :rset
13954 s/^[ ]*#[ ]*define[ ][ ]*/ /
13955 t def
13956 d
13957 :def
13958 s/\\$//
13959 t bsnl
13960 s/["\\]/\\&/g
13961 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13962 D["\1"]=" \3"/p
13963 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13964 d
13965 :bsnl
13966 s/["\\]/\\&/g
13967 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13968 D["\1"]=" \3\\\\\\n"\\/p
13969 t cont
13970 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13971 t cont
13972 d
13973 :cont
13974 n
13975 s/.\{148\}/&'"$ac_delim"'/g
13976 t clear
13977 :clear
13978 s/\\$//
13979 t bsnlc
13980 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13981 d
13982 :bsnlc
13983 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13984 b cont
13985 ' <confdefs.h | sed '
13986 s/'"$ac_delim"'/"\\\
13987 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13990 for (key in D) D_is_set[key] = 1
13991 FS = "\a"
13992 }
13993 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13994 line = \$ 0
13995 split(line, arg, " ")
13996 if (arg[1] == "#") {
13997 defundef = arg[2]
13998 mac1 = arg[3]
13999 } else {
14000 defundef = substr(arg[1], 2)
14001 mac1 = arg[2]
14002 }
14003 split(mac1, mac2, "(") #)
14004 macro = mac2[1]
14005 prefix = substr(line, 1, index(line, defundef) - 1)
14006 if (D_is_set[macro]) {
14007 # Preserve the white space surrounding the "#".
14008 print prefix "define", macro P[macro] D[macro]
14009 next
14010 } else {
14011 # Replace #undef with comments. This is necessary, for example,
14012 # in the case of _POSIX_SOURCE, which is predefined and required
14013 # on some systems where configure will not decide to define it.
14014 if (defundef == "undef") {
14015 print "/*", prefix defundef, macro, "*/"
14016 next
14017 }
14018 }
14019 }
14020 { print }
14021 _ACAWK
14022 _ACEOF
14023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14024 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14025 fi # test -n "$CONFIG_HEADERS"
14028 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14029 shift
14030 for ac_tag
14031 do
14032 case $ac_tag in
14033 :[FHLC]) ac_mode=$ac_tag; continue;;
14034 esac
14035 case $ac_mode$ac_tag in
14036 :[FHL]*:*);;
14037 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14038 :[FH]-) ac_tag=-:-;;
14039 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14040 esac
14041 ac_save_IFS=$IFS
14042 IFS=:
14043 set x $ac_tag
14044 IFS=$ac_save_IFS
14045 shift
14046 ac_file=$1
14047 shift
14049 case $ac_mode in
14050 :L) ac_source=$1;;
14051 :[FH])
14052 ac_file_inputs=
14053 for ac_f
14054 do
14055 case $ac_f in
14056 -) ac_f="$ac_tmp/stdin";;
14057 *) # Look for the file first in the build tree, then in the source tree
14058 # (if the path is not absolute). The absolute path cannot be DOS-style,
14059 # because $ac_f cannot contain `:'.
14060 test -f "$ac_f" ||
14061 case $ac_f in
14062 [\\/$]*) false;;
14063 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14064 esac ||
14065 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14066 esac
14067 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14068 as_fn_append ac_file_inputs " '$ac_f'"
14069 done
14071 # Let's still pretend it is `configure' which instantiates (i.e., don't
14072 # use $as_me), people would be surprised to read:
14073 # /* config.h. Generated by config.status. */
14074 configure_input='Generated from '`
14075 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14076 `' by configure.'
14077 if test x"$ac_file" != x-; then
14078 configure_input="$ac_file. $configure_input"
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14080 $as_echo "$as_me: creating $ac_file" >&6;}
14081 fi
14082 # Neutralize special characters interpreted by sed in replacement strings.
14083 case $configure_input in #(
14084 *\&* | *\|* | *\\* )
14085 ac_sed_conf_input=`$as_echo "$configure_input" |
14086 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14087 *) ac_sed_conf_input=$configure_input;;
14088 esac
14090 case $ac_tag in
14091 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14092 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14093 esac
14094 ;;
14095 esac
14097 ac_dir=`$as_dirname -- "$ac_file" ||
14098 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14099 X"$ac_file" : 'X\(//\)[^/]' \| \
14100 X"$ac_file" : 'X\(//\)$' \| \
14101 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14102 $as_echo X"$ac_file" |
14103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14104 s//\1/
14105 q
14106 }
14107 /^X\(\/\/\)[^/].*/{
14108 s//\1/
14109 q
14110 }
14111 /^X\(\/\/\)$/{
14112 s//\1/
14113 q
14114 }
14115 /^X\(\/\).*/{
14116 s//\1/
14117 q
14118 }
14119 s/.*/./; q'`
14120 as_dir="$ac_dir"; as_fn_mkdir_p
14121 ac_builddir=.
14123 case "$ac_dir" in
14124 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14125 *)
14126 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14127 # A ".." for each directory in $ac_dir_suffix.
14128 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14129 case $ac_top_builddir_sub in
14130 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14131 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14132 esac ;;
14133 esac
14134 ac_abs_top_builddir=$ac_pwd
14135 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14136 # for backward compatibility:
14137 ac_top_builddir=$ac_top_build_prefix
14139 case $srcdir in
14140 .) # We are building in place.
14141 ac_srcdir=.
14142 ac_top_srcdir=$ac_top_builddir_sub
14143 ac_abs_top_srcdir=$ac_pwd ;;
14144 [\\/]* | ?:[\\/]* ) # Absolute name.
14145 ac_srcdir=$srcdir$ac_dir_suffix;
14146 ac_top_srcdir=$srcdir
14147 ac_abs_top_srcdir=$srcdir ;;
14148 *) # Relative name.
14149 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14150 ac_top_srcdir=$ac_top_build_prefix$srcdir
14151 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14152 esac
14153 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14156 case $ac_mode in
14157 :F)
14158 #
14159 # CONFIG_FILE
14160 #
14162 case $INSTALL in
14163 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14164 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14165 esac
14166 ac_MKDIR_P=$MKDIR_P
14167 case $MKDIR_P in
14168 [\\/$]* | ?:[\\/]* ) ;;
14169 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14170 esac
14171 _ACEOF
14173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14174 # If the template does not know about datarootdir, expand it.
14175 # FIXME: This hack should be removed a few years after 2.60.
14176 ac_datarootdir_hack=; ac_datarootdir_seen=
14177 ac_sed_dataroot='
14178 /datarootdir/ {
14179 p
14180 q
14181 }
14182 /@datadir@/p
14183 /@docdir@/p
14184 /@infodir@/p
14185 /@localedir@/p
14186 /@mandir@/p'
14187 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14188 *datarootdir*) ac_datarootdir_seen=yes;;
14189 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14191 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14192 _ACEOF
14193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14194 ac_datarootdir_hack='
14195 s&@datadir@&$datadir&g
14196 s&@docdir@&$docdir&g
14197 s&@infodir@&$infodir&g
14198 s&@localedir@&$localedir&g
14199 s&@mandir@&$mandir&g
14200 s&\\\${datarootdir}&$datarootdir&g' ;;
14201 esac
14202 _ACEOF
14204 # Neutralize VPATH when `$srcdir' = `.'.
14205 # Shell code in configure.ac might set extrasub.
14206 # FIXME: do we really want to maintain this feature?
14207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14208 ac_sed_extra="$ac_vpsub
14209 $extrasub
14210 _ACEOF
14211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14212 :t
14213 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14214 s|@configure_input@|$ac_sed_conf_input|;t t
14215 s&@top_builddir@&$ac_top_builddir_sub&;t t
14216 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14217 s&@srcdir@&$ac_srcdir&;t t
14218 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14219 s&@top_srcdir@&$ac_top_srcdir&;t t
14220 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14221 s&@builddir@&$ac_builddir&;t t
14222 s&@abs_builddir@&$ac_abs_builddir&;t t
14223 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14224 s&@INSTALL@&$ac_INSTALL&;t t
14225 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14226 $ac_datarootdir_hack
14227 "
14228 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14229 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14231 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14232 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14233 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14234 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14236 which seems to be undefined. Please make sure it is defined" >&5
14237 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14238 which seems to be undefined. Please make sure it is defined" >&2;}
14240 rm -f "$ac_tmp/stdin"
14241 case $ac_file in
14242 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14243 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14244 esac \
14245 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14246 ;;
14247 :H)
14248 #
14249 # CONFIG_HEADER
14250 #
14251 if test x"$ac_file" != x-; then
14252 {
14253 $as_echo "/* $configure_input */" \
14254 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14255 } >"$ac_tmp/config.h" \
14256 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14257 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14259 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14260 else
14261 rm -f "$ac_file"
14262 mv "$ac_tmp/config.h" "$ac_file" \
14263 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14264 fi
14265 else
14266 $as_echo "/* $configure_input */" \
14267 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14268 || as_fn_error $? "could not create -" "$LINENO" 5
14269 fi
14270 # Compute "$ac_file"'s index in $config_headers.
14271 _am_arg="$ac_file"
14272 _am_stamp_count=1
14273 for _am_header in $config_headers :; do
14274 case $_am_header in
14275 $_am_arg | $_am_arg:* )
14276 break ;;
14277 * )
14278 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14279 esac
14280 done
14281 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14282 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14283 X"$_am_arg" : 'X\(//\)[^/]' \| \
14284 X"$_am_arg" : 'X\(//\)$' \| \
14285 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14286 $as_echo X"$_am_arg" |
14287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14288 s//\1/
14289 q
14290 }
14291 /^X\(\/\/\)[^/].*/{
14292 s//\1/
14293 q
14294 }
14295 /^X\(\/\/\)$/{
14296 s//\1/
14297 q
14298 }
14299 /^X\(\/\).*/{
14300 s//\1/
14301 q
14302 }
14303 s/.*/./; q'`/stamp-h$_am_stamp_count
14304 ;;
14306 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14307 $as_echo "$as_me: executing $ac_file commands" >&6;}
14308 ;;
14309 esac
14312 case $ac_file$ac_mode in
14313 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14314 # Older Autoconf quotes --file arguments for eval, but not when files
14315 # are listed without --file. Let's play safe and only enable the eval
14316 # if we detect the quoting.
14317 case $CONFIG_FILES in
14318 *\'*) eval set x "$CONFIG_FILES" ;;
14319 *) set x $CONFIG_FILES ;;
14320 esac
14321 shift
14322 for mf
14323 do
14324 # Strip MF so we end up with the name of the file.
14325 mf=`echo "$mf" | sed -e 's/:.*$//'`
14326 # Check whether this is an Automake generated Makefile or not.
14327 # We used to match only the files named 'Makefile.in', but
14328 # some people rename them; so instead we look at the file content.
14329 # Grep'ing the first line is not enough: some people post-process
14330 # each Makefile.in and add a new line on top of each file to say so.
14331 # Grep'ing the whole file is not good either: AIX grep has a line
14332 # limit of 2048, but all sed's we know have understand at least 4000.
14333 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14334 dirpart=`$as_dirname -- "$mf" ||
14335 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14336 X"$mf" : 'X\(//\)[^/]' \| \
14337 X"$mf" : 'X\(//\)$' \| \
14338 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14339 $as_echo X"$mf" |
14340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14341 s//\1/
14342 q
14343 }
14344 /^X\(\/\/\)[^/].*/{
14345 s//\1/
14346 q
14347 }
14348 /^X\(\/\/\)$/{
14349 s//\1/
14350 q
14351 }
14352 /^X\(\/\).*/{
14353 s//\1/
14354 q
14355 }
14356 s/.*/./; q'`
14357 else
14358 continue
14359 fi
14360 # Extract the definition of DEPDIR, am__include, and am__quote
14361 # from the Makefile without running 'make'.
14362 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14363 test -z "$DEPDIR" && continue
14364 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14365 test -z "$am__include" && continue
14366 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14367 # Find all dependency output files, they are included files with
14368 # $(DEPDIR) in their names. We invoke sed twice because it is the
14369 # simplest approach to changing $(DEPDIR) to its actual value in the
14370 # expansion.
14371 for file in `sed -n "
14372 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14373 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14374 # Make sure the directory exists.
14375 test -f "$dirpart/$file" && continue
14376 fdir=`$as_dirname -- "$file" ||
14377 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14378 X"$file" : 'X\(//\)[^/]' \| \
14379 X"$file" : 'X\(//\)$' \| \
14380 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14381 $as_echo X"$file" |
14382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14383 s//\1/
14384 q
14385 }
14386 /^X\(\/\/\)[^/].*/{
14387 s//\1/
14388 q
14389 }
14390 /^X\(\/\/\)$/{
14391 s//\1/
14392 q
14393 }
14394 /^X\(\/\).*/{
14395 s//\1/
14396 q
14397 }
14398 s/.*/./; q'`
14399 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14400 # echo "creating $dirpart/$file"
14401 echo '# dummy' > "$dirpart/$file"
14402 done
14403 done
14404 }
14405 ;;
14406 "libtool":C)
14408 # See if we are running on zsh, and set the options which allow our
14409 # commands through without removal of \ escapes.
14410 if test -n "${ZSH_VERSION+set}" ; then
14411 setopt NO_GLOB_SUBST
14412 fi
14414 cfgfile="${ofile}T"
14415 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14416 $RM "$cfgfile"
14418 cat <<_LT_EOF >> "$cfgfile"
14419 #! $SHELL
14421 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14422 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14423 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14424 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14425 #
14426 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14427 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14428 # Foundation, Inc.
14429 # Written by Gordon Matzigkeit, 1996
14430 #
14431 # This file is part of GNU Libtool.
14432 #
14433 # GNU Libtool is free software; you can redistribute it and/or
14434 # modify it under the terms of the GNU General Public License as
14435 # published by the Free Software Foundation; either version 2 of
14436 # the License, or (at your option) any later version.
14437 #
14438 # As a special exception to the GNU General Public License,
14439 # if you distribute this file as part of a program or library that
14440 # is built using GNU Libtool, you may include this file under the
14441 # same distribution terms that you use for the rest of that program.
14442 #
14443 # GNU Libtool is distributed in the hope that it will be useful,
14444 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14445 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14446 # GNU General Public License for more details.
14447 #
14448 # You should have received a copy of the GNU General Public License
14449 # along with GNU Libtool; see the file COPYING. If not, a copy
14450 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14451 # obtained by writing to the Free Software Foundation, Inc.,
14452 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14455 # The names of the tagged configurations supported by this script.
14456 available_tags=""
14458 # ### BEGIN LIBTOOL CONFIG
14460 # Which release of libtool.m4 was used?
14461 macro_version=$macro_version
14462 macro_revision=$macro_revision
14464 # Assembler program.
14465 AS=$lt_AS
14467 # DLL creation program.
14468 DLLTOOL=$lt_DLLTOOL
14470 # Object dumper program.
14471 OBJDUMP=$lt_OBJDUMP
14473 # Whether or not to build shared libraries.
14474 build_libtool_libs=$enable_shared
14476 # Whether or not to build static libraries.
14477 build_old_libs=$enable_static
14479 # What type of objects to build.
14480 pic_mode=$pic_mode
14482 # Whether or not to optimize for fast installation.
14483 fast_install=$enable_fast_install
14485 # Shell to use when invoking shell scripts.
14486 SHELL=$lt_SHELL
14488 # An echo program that protects backslashes.
14489 ECHO=$lt_ECHO
14491 # The PATH separator for the build system.
14492 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14494 # The host system.
14495 host_alias=$host_alias
14496 host=$host
14497 host_os=$host_os
14499 # The build system.
14500 build_alias=$build_alias
14501 build=$build
14502 build_os=$build_os
14504 # A sed program that does not truncate output.
14505 SED=$lt_SED
14507 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14508 Xsed="\$SED -e 1s/^X//"
14510 # A grep program that handles long lines.
14511 GREP=$lt_GREP
14513 # An ERE matcher.
14514 EGREP=$lt_EGREP
14516 # A literal string matcher.
14517 FGREP=$lt_FGREP
14519 # A BSD- or MS-compatible name lister.
14520 NM=$lt_NM
14522 # Whether we need soft or hard links.
14523 LN_S=$lt_LN_S
14525 # What is the maximum length of a command?
14526 max_cmd_len=$max_cmd_len
14528 # Object file suffix (normally "o").
14529 objext=$ac_objext
14531 # Executable file suffix (normally "").
14532 exeext=$exeext
14534 # whether the shell understands "unset".
14535 lt_unset=$lt_unset
14537 # turn spaces into newlines.
14538 SP2NL=$lt_lt_SP2NL
14540 # turn newlines into spaces.
14541 NL2SP=$lt_lt_NL2SP
14543 # convert \$build file names to \$host format.
14544 to_host_file_cmd=$lt_cv_to_host_file_cmd
14546 # convert \$build files to toolchain format.
14547 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14549 # Method to check whether dependent libraries are shared objects.
14550 deplibs_check_method=$lt_deplibs_check_method
14552 # Command to use when deplibs_check_method = "file_magic".
14553 file_magic_cmd=$lt_file_magic_cmd
14555 # How to find potential files when deplibs_check_method = "file_magic".
14556 file_magic_glob=$lt_file_magic_glob
14558 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14559 want_nocaseglob=$lt_want_nocaseglob
14561 # Command to associate shared and link libraries.
14562 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14564 # The archiver.
14565 AR=$lt_AR
14567 # Flags to create an archive.
14568 AR_FLAGS=$lt_AR_FLAGS
14570 # How to feed a file listing to the archiver.
14571 archiver_list_spec=$lt_archiver_list_spec
14573 # A symbol stripping program.
14574 STRIP=$lt_STRIP
14576 # Commands used to install an old-style archive.
14577 RANLIB=$lt_RANLIB
14578 old_postinstall_cmds=$lt_old_postinstall_cmds
14579 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14581 # Whether to use a lock for old archive extraction.
14582 lock_old_archive_extraction=$lock_old_archive_extraction
14584 # A C compiler.
14585 LTCC=$lt_CC
14587 # LTCC compiler flags.
14588 LTCFLAGS=$lt_CFLAGS
14590 # Take the output of nm and produce a listing of raw symbols and C names.
14591 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14593 # Transform the output of nm in a proper C declaration.
14594 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14596 # Transform the output of nm in a C name address pair.
14597 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14599 # Transform the output of nm in a C name address pair when lib prefix is needed.
14600 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14602 # Specify filename containing input files for \$NM.
14603 nm_file_list_spec=$lt_nm_file_list_spec
14605 # The root where to search for dependent libraries,and in which our libraries should be installed.
14606 lt_sysroot=$lt_sysroot
14608 # The name of the directory that contains temporary libtool files.
14609 objdir=$objdir
14611 # Used to examine libraries when file_magic_cmd begins with "file".
14612 MAGIC_CMD=$MAGIC_CMD
14614 # Must we lock files when doing compilation?
14615 need_locks=$lt_need_locks
14617 # Manifest tool.
14618 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14620 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14621 DSYMUTIL=$lt_DSYMUTIL
14623 # Tool to change global to local symbols on Mac OS X.
14624 NMEDIT=$lt_NMEDIT
14626 # Tool to manipulate fat objects and archives on Mac OS X.
14627 LIPO=$lt_LIPO
14629 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14630 OTOOL=$lt_OTOOL
14632 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14633 OTOOL64=$lt_OTOOL64
14635 # Old archive suffix (normally "a").
14636 libext=$libext
14638 # Shared library suffix (normally ".so").
14639 shrext_cmds=$lt_shrext_cmds
14641 # The commands to extract the exported symbol list from a shared archive.
14642 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14644 # Variables whose values should be saved in libtool wrapper scripts and
14645 # restored at link time.
14646 variables_saved_for_relink=$lt_variables_saved_for_relink
14648 # Do we need the "lib" prefix for modules?
14649 need_lib_prefix=$need_lib_prefix
14651 # Do we need a version for libraries?
14652 need_version=$need_version
14654 # Library versioning type.
14655 version_type=$version_type
14657 # Shared library runtime path variable.
14658 runpath_var=$runpath_var
14660 # Shared library path variable.
14661 shlibpath_var=$shlibpath_var
14663 # Is shlibpath searched before the hard-coded library search path?
14664 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14666 # Format of library name prefix.
14667 libname_spec=$lt_libname_spec
14669 # List of archive names. First name is the real one, the rest are links.
14670 # The last name is the one that the linker finds with -lNAME
14671 library_names_spec=$lt_library_names_spec
14673 # The coded name of the library, if different from the real name.
14674 soname_spec=$lt_soname_spec
14676 # Permission mode override for installation of shared libraries.
14677 install_override_mode=$lt_install_override_mode
14679 # Command to use after installation of a shared archive.
14680 postinstall_cmds=$lt_postinstall_cmds
14682 # Command to use after uninstallation of a shared archive.
14683 postuninstall_cmds=$lt_postuninstall_cmds
14685 # Commands used to finish a libtool library installation in a directory.
14686 finish_cmds=$lt_finish_cmds
14688 # As "finish_cmds", except a single script fragment to be evaled but
14689 # not shown.
14690 finish_eval=$lt_finish_eval
14692 # Whether we should hardcode library paths into libraries.
14693 hardcode_into_libs=$hardcode_into_libs
14695 # Compile-time system search path for libraries.
14696 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14698 # Run-time system search path for libraries.
14699 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14701 # Whether dlopen is supported.
14702 dlopen_support=$enable_dlopen
14704 # Whether dlopen of programs is supported.
14705 dlopen_self=$enable_dlopen_self
14707 # Whether dlopen of statically linked programs is supported.
14708 dlopen_self_static=$enable_dlopen_self_static
14710 # Commands to strip libraries.
14711 old_striplib=$lt_old_striplib
14712 striplib=$lt_striplib
14715 # The linker used to build libraries.
14716 LD=$lt_LD
14718 # How to create reloadable object files.
14719 reload_flag=$lt_reload_flag
14720 reload_cmds=$lt_reload_cmds
14722 # Commands used to build an old-style archive.
14723 old_archive_cmds=$lt_old_archive_cmds
14725 # A language specific compiler.
14726 CC=$lt_compiler
14728 # Is the compiler the GNU compiler?
14729 with_gcc=$GCC
14731 # Compiler flag to turn off builtin functions.
14732 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14734 # Additional compiler flags for building library objects.
14735 pic_flag=$lt_lt_prog_compiler_pic
14737 # How to pass a linker flag through the compiler.
14738 wl=$lt_lt_prog_compiler_wl
14740 # Compiler flag to prevent dynamic linking.
14741 link_static_flag=$lt_lt_prog_compiler_static
14743 # Does compiler simultaneously support -c and -o options?
14744 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14746 # Whether or not to add -lc for building shared libraries.
14747 build_libtool_need_lc=$archive_cmds_need_lc
14749 # Whether or not to disallow shared libs when runtime libs are static.
14750 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14752 # Compiler flag to allow reflexive dlopens.
14753 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14755 # Compiler flag to generate shared objects directly from archives.
14756 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14758 # Whether the compiler copes with passing no objects directly.
14759 compiler_needs_object=$lt_compiler_needs_object
14761 # Create an old-style archive from a shared archive.
14762 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14764 # Create a temporary old-style archive to link instead of a shared archive.
14765 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14767 # Commands used to build a shared archive.
14768 archive_cmds=$lt_archive_cmds
14769 archive_expsym_cmds=$lt_archive_expsym_cmds
14771 # Commands used to build a loadable module if different from building
14772 # a shared archive.
14773 module_cmds=$lt_module_cmds
14774 module_expsym_cmds=$lt_module_expsym_cmds
14776 # Whether we are building with GNU ld or not.
14777 with_gnu_ld=$lt_with_gnu_ld
14779 # Flag that allows shared libraries with undefined symbols to be built.
14780 allow_undefined_flag=$lt_allow_undefined_flag
14782 # Flag that enforces no undefined symbols.
14783 no_undefined_flag=$lt_no_undefined_flag
14785 # Flag to hardcode \$libdir into a binary during linking.
14786 # This must work even if \$libdir does not exist
14787 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14789 # Whether we need a single "-rpath" flag with a separated argument.
14790 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14792 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14793 # DIR into the resulting binary.
14794 hardcode_direct=$hardcode_direct
14796 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14797 # DIR into the resulting binary and the resulting library dependency is
14798 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14799 # library is relocated.
14800 hardcode_direct_absolute=$hardcode_direct_absolute
14802 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14803 # into the resulting binary.
14804 hardcode_minus_L=$hardcode_minus_L
14806 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14807 # into the resulting binary.
14808 hardcode_shlibpath_var=$hardcode_shlibpath_var
14810 # Set to "yes" if building a shared library automatically hardcodes DIR
14811 # into the library and all subsequent libraries and executables linked
14812 # against it.
14813 hardcode_automatic=$hardcode_automatic
14815 # Set to yes if linker adds runtime paths of dependent libraries
14816 # to runtime path list.
14817 inherit_rpath=$inherit_rpath
14819 # Whether libtool must link a program against all its dependency libraries.
14820 link_all_deplibs=$link_all_deplibs
14822 # Set to "yes" if exported symbols are required.
14823 always_export_symbols=$always_export_symbols
14825 # The commands to list exported symbols.
14826 export_symbols_cmds=$lt_export_symbols_cmds
14828 # Symbols that should not be listed in the preloaded symbols.
14829 exclude_expsyms=$lt_exclude_expsyms
14831 # Symbols that must always be exported.
14832 include_expsyms=$lt_include_expsyms
14834 # Commands necessary for linking programs (against libraries) with templates.
14835 prelink_cmds=$lt_prelink_cmds
14837 # Commands necessary for finishing linking programs.
14838 postlink_cmds=$lt_postlink_cmds
14840 # Specify filename containing input files.
14841 file_list_spec=$lt_file_list_spec
14843 # How to hardcode a shared library path into an executable.
14844 hardcode_action=$hardcode_action
14846 # ### END LIBTOOL CONFIG
14848 _LT_EOF
14850 case $host_os in
14851 aix3*)
14852 cat <<\_LT_EOF >> "$cfgfile"
14853 # AIX sometimes has problems with the GCC collect2 program. For some
14854 # reason, if we set the COLLECT_NAMES environment variable, the problems
14855 # vanish in a puff of smoke.
14856 if test "X${COLLECT_NAMES+set}" != Xset; then
14857 COLLECT_NAMES=
14858 export COLLECT_NAMES
14859 fi
14860 _LT_EOF
14861 ;;
14862 esac
14865 ltmain="$ac_aux_dir/ltmain.sh"
14868 # We use sed instead of cat because bash on DJGPP gets confused if
14869 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14870 # text mode, it properly converts lines to CR/LF. This bash problem
14871 # is reportedly fixed, but why not run on old versions too?
14872 sed '$q' "$ltmain" >> "$cfgfile" \
14873 || (rm -f "$cfgfile"; exit 1)
14875 if test x"$xsi_shell" = xyes; then
14876 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14877 func_dirname ()\
14878 {\
14879 \ case ${1} in\
14880 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14881 \ * ) func_dirname_result="${3}" ;;\
14882 \ esac\
14883 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14884 && mv -f "$cfgfile.tmp" "$cfgfile" \
14885 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14886 test 0 -eq $? || _lt_function_replace_fail=:
14889 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14890 func_basename ()\
14891 {\
14892 \ func_basename_result="${1##*/}"\
14893 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14894 && mv -f "$cfgfile.tmp" "$cfgfile" \
14895 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14896 test 0 -eq $? || _lt_function_replace_fail=:
14899 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14900 func_dirname_and_basename ()\
14901 {\
14902 \ case ${1} in\
14903 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14904 \ * ) func_dirname_result="${3}" ;;\
14905 \ esac\
14906 \ func_basename_result="${1##*/}"\
14907 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14908 && mv -f "$cfgfile.tmp" "$cfgfile" \
14909 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14910 test 0 -eq $? || _lt_function_replace_fail=:
14913 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14914 func_stripname ()\
14915 {\
14916 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14917 \ # positional parameters, so assign one to ordinary parameter first.\
14918 \ func_stripname_result=${3}\
14919 \ func_stripname_result=${func_stripname_result#"${1}"}\
14920 \ func_stripname_result=${func_stripname_result%"${2}"}\
14921 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14922 && mv -f "$cfgfile.tmp" "$cfgfile" \
14923 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14924 test 0 -eq $? || _lt_function_replace_fail=:
14927 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14928 func_split_long_opt ()\
14929 {\
14930 \ func_split_long_opt_name=${1%%=*}\
14931 \ func_split_long_opt_arg=${1#*=}\
14932 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14933 && mv -f "$cfgfile.tmp" "$cfgfile" \
14934 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14935 test 0 -eq $? || _lt_function_replace_fail=:
14938 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14939 func_split_short_opt ()\
14940 {\
14941 \ func_split_short_opt_arg=${1#??}\
14942 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14943 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14944 && mv -f "$cfgfile.tmp" "$cfgfile" \
14945 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14946 test 0 -eq $? || _lt_function_replace_fail=:
14949 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14950 func_lo2o ()\
14951 {\
14952 \ case ${1} in\
14953 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14954 \ *) func_lo2o_result=${1} ;;\
14955 \ esac\
14956 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14957 && mv -f "$cfgfile.tmp" "$cfgfile" \
14958 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14959 test 0 -eq $? || _lt_function_replace_fail=:
14962 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14963 func_xform ()\
14964 {\
14965 func_xform_result=${1%.*}.lo\
14966 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14967 && mv -f "$cfgfile.tmp" "$cfgfile" \
14968 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14969 test 0 -eq $? || _lt_function_replace_fail=:
14972 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14973 func_arith ()\
14974 {\
14975 func_arith_result=$(( $* ))\
14976 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14977 && mv -f "$cfgfile.tmp" "$cfgfile" \
14978 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14979 test 0 -eq $? || _lt_function_replace_fail=:
14982 sed -e '/^func_len ()$/,/^} # func_len /c\
14983 func_len ()\
14984 {\
14985 func_len_result=${#1}\
14986 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14987 && mv -f "$cfgfile.tmp" "$cfgfile" \
14988 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14989 test 0 -eq $? || _lt_function_replace_fail=:
14991 fi
14993 if test x"$lt_shell_append" = xyes; then
14994 sed -e '/^func_append ()$/,/^} # func_append /c\
14995 func_append ()\
14996 {\
14997 eval "${1}+=\\${2}"\
14998 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14999 && mv -f "$cfgfile.tmp" "$cfgfile" \
15000 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15001 test 0 -eq $? || _lt_function_replace_fail=:
15004 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15005 func_append_quoted ()\
15006 {\
15007 \ func_quote_for_eval "${2}"\
15008 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15009 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15010 && mv -f "$cfgfile.tmp" "$cfgfile" \
15011 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15012 test 0 -eq $? || _lt_function_replace_fail=:
15015 # Save a `func_append' function call where possible by direct use of '+='
15016 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15017 && mv -f "$cfgfile.tmp" "$cfgfile" \
15018 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15019 test 0 -eq $? || _lt_function_replace_fail=:
15020 else
15021 # Save a `func_append' function call even when '+=' is not available
15022 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15023 && mv -f "$cfgfile.tmp" "$cfgfile" \
15024 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15025 test 0 -eq $? || _lt_function_replace_fail=:
15026 fi
15028 if test x"$_lt_function_replace_fail" = x":"; then
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15030 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15031 fi
15034 mv -f "$cfgfile" "$ofile" ||
15035 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15036 chmod +x "$ofile"
15038 ;;
15040 esac
15041 done # for ac_tag
15044 as_fn_exit 0
15045 _ACEOF
15046 ac_clean_files=$ac_clean_files_save
15048 test $ac_write_fail = 0 ||
15049 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15052 # configure is writing to config.log, and then calls config.status.
15053 # config.status does its own redirection, appending to config.log.
15054 # Unfortunately, on DOS this fails, as config.log is still kept open
15055 # by configure, so config.status won't be able to write to it; its
15056 # output is simply discarded. So we exec the FD to /dev/null,
15057 # effectively closing config.log, so it can be properly (re)opened and
15058 # appended to by config.status. When coming back to configure, we
15059 # need to make the FD available again.
15060 if test "$no_create" != yes; then
15061 ac_cs_success=:
15062 ac_config_status_args=
15063 test "$silent" = yes &&
15064 ac_config_status_args="$ac_config_status_args --quiet"
15065 exec 5>/dev/null
15066 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15067 exec 5>>config.log
15068 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15069 # would make configure fail if this is the last instruction.
15070 $ac_cs_success || as_fn_exit 1
15071 fi
15072 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15074 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15075 fi